Requests that require a redirect will return aDocumentation Index
Fetch the complete documentation index at: https://docs.mattildapayments.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
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.
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.
Summary
In this step you:- Sent a customer to the approval URL
- Handled the customer returning to your redirect URL