How to handle PayPal 500 response with CaptureOrder.php ( V2SDK)?

Viewed 16

Good day,

From the PayPal doc. I understood you can do a retry (capture) using idempotency, when receiving a response with HTTP 500 statusCode.

But how would I handle that? The PHP script (CaptureOrder.php) cannot rerun itself after an exit (as far as I know).

Here on stackoverflow I didn't find contributions about the 500 error on V2 SDK.

For the HTTP 422 errors I managed to handle those. But for a 500 error I have no idea, unfortunately.

Does somebody have a solution (or idea) how to handle?

Thank you in advance.

0 Answers
Related