How to make a payment ready to be executed on Paypal
Problem
Your customer has approved the payment on Paypal – i.e. through PayPal checkout — and has been redirected to your client. You need to make sure it's ready to be executed.
Solution
To enable the payment execution with PayPal, you need to update the PayPal payment object. To do that, send a PATCH request to the /api/paypal_payments/:id endpoint, filling the payment_payer_id with the payer ID you just received from the client – see PayPal documentation for any reference.
Example
The following request updates the PayPal payment source identified by the "qaZPVIyoeg" ID with the payer ID received from the client: