Implement idempotency
DocsLimited
Last updated: Oct 1st, 9:13am
To prevent duplicate captures or order creation in failure scenarios, implement idempotency:
- Set a unique
PayPal-Request-Idheader for each API call. - Reuse the same ID when retrying after network issues or
5xxserver errors. - If a duplicate request is made with the same ID, PayPal returns the existing result instead of processing it again.
For more information, see PayPal-Request-Id.