I've checked your recent REST API requests and it appears that you've creating the orders with an intent of "capture", to which our API is returning a status of "created", but you haven't then completed the orders by capturing them.
Below is an example response from one of your most recent orders :
{ "create_time": "2021-09-06T22:17:02Z", "id": "4A911150HN550304S", "intent": "CAPTURE", "links": [ { "href": "https://api.sandbox.paypal.com/v2/checkout/orders/4A911150HN550304S", "method": "GET", "rel": "self" }, { "href": "https://www.sandbox.paypal.com/checkoutnow?token=4A911150HN550304S", "method": "GET", "rel": "approve" }, { "href": "https://api.sandbox.paypal.com/v2/checkout/orders/4A911150HN550304S", "method": "PATCH", "rel": "update" }, { "href": "https://api.sandbox.paypal.com/v2/checkout/orders/4A911150HN550304S/capture", "method": "POST", "rel": "capture" } ], "purchase_units": [ { "amount": { "currency_code": "EUR", "value": "1.50" }, "payee": { "email_address": "*****", "merchant_id": "3GJJSWH6NN9RW" }, "reference_id": "default" } ], "status": "CREATED" }
Notice the "status" above shows "created". If the order had been captured, this would show "completed".
For this specific example, you would need to send a POST request to the following URL :
https://api-m.sandbox.paypal.com/v2/...50304S/capture
You should then receive a response of "completed", along with a transaction id for the completed capture. You should also now receive a webhook - PAYMENT.SALE.COMPLETED
The capture process is detailed here :
https://developer.paypal.com/docs/ap...orders_capture
Partager