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:
Create a PayPal payment, passing a valid return_url and cancel_url
return_url
cancel_url
Get the approval_url from the response
approval_url
Redirect the customer to the approval URL
Get the paypal_payer_id from the return URL parameters
paypal_payer_id
Update the PayPal payment with the payer ID
PayPal payments are one-time payment sources and cannot be saved in customer wallets.
Last updated 1 year ago