Requests that require a redirect return aDocumentation Index
Fetch the complete documentation index at: https://docs.gr4vy.com/llms.txt
Use this file to discover all available pages before exploring further.
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
The app needs to redirect the customer to thepayment_method.approval_url, where they are required to authenticate the payment. The exact way of this authentication depends on the payment method.
After they’ve authenticated themselves, the customer is redirected back to the redirect_url that was set when creating the transaction.
Handle the return to the app
When a customer is redirected back to the site, the transaction status is not known. The app therefore needs to call the API to get the latest transaction status. The next step shows how to do this. To do this, theredirect_url is appended with the transaction_id and status of the transaction.
Summary
In this step you:- Sent a customer to the approval URL
- Handled the customer returning to the redirect URL