status
of buyer_approval_pending
with a payment_method.approval_url
. In this situation, it’s required to redirect the buyer to this approval URL.
Start the approval
Your application will need to redirect your customer to thepayment_method.approval_url
, where they will be required to authenticate the payment. The exact way of this authentication will depend on the payment method.
After they’ve authenticated themselves, the customer will be redirected back to the redirect_url
that you set when creating the transaction.
If the customer abandons the checkout or somehow experiences network connection issues, the transaction state can get out of sync between your application and ours. We recommend the following best practices in handling these situations.
Handle the return to your app
When a customer is redirected back to your site, the transaction status is not known. Your application will therefore need to call our API to get the latest transaction status. We will show you how to do this in the next step. To do this, yourredirect_url
will be appended with the transaction_id
and status of the transaction.
Although we do provide the
transaction_status
in this callback, it’s recommended to also fetch the latest status vai the API, as the status may have changed since.Summary
In this step you:- Sent a customer to the approval URL
- Handled the customer returning to your redirect URL