Skip to main content
After the buyer selects their method of payment in the previous step, the transaction is ready to be created.

Create a transaction

The transaction should be populated with the selected method, your redirect_url, and any other relevant transaction information.
  • payment_method.method - This is the method selected by the customer at checkout. This is one of the values retrieved from the payment options endpoint in the previous step.
  • payment_method.redirect_url - This should be provided to redirect the buyer back to the app after they have authenticated the payment. This is also required for card to support 3-D Secure.
See the POST /transactions API endpoint for more details.
The response of this transaction includes a status, which tells you how to handle the next step.
Requests that require a redirect return a status of buyer_approval_pending with a payment_method.approval_url. The next step shows you how to handle this situation.

Summary

In this step you:
  • Called the transactions endpoint
  • Handled the transaction response