For the complete documentation index, see llms.txt. This page is also available as Markdown.

Paypal payments

The PayPal payment object and the allowed CRUD operations on the related resource endpoint

PayPal payments are a type of payment source that lets you process payments through PayPal gateways.

PayPal payments can be created and associated with an order in a few steps:

  1. Create a PayPal payment, passing a valid return_url and cancel_url

  2. Get the approval_url from the response

  3. Redirect the customer to the approval URL

  4. Get the paypal_payer_id from the return URL parameters

If a PayPal transaction settles asynchronously (e.g. eCheck refunds), update the PayPal payment and pass the _refresh trigger attribute to reconcile its status.

Last updated