method
to afterpay
and the redirect_url
to the endpoint of your application that can handle the customer returning once they’ve completed approving the transaction on the Afterpay website.
See the POST /transactions
API endpoint for more details.
status
set to buyer_approval_pending
as well as a payment_method.approval_url
.
payment_method.approval_url
. After they’ve authenticated themselves, the customer will be redirected back to the redirect_url
that you set when creating the transaction.
redirect_url
will be appended with the transaction_id
.
transaction_status
in this callback, it’s
recommended to also fetch the latest status via the API, as the status may
have changed since.