payments · reliability
Retrying payment requests
Decision
Reuse the same idempotency key when retrying a payment request.
Why
A provider can accept a payment before our request times out. Reusing the key helps prevent a second charge.
Implementation
The Payments API applies this rule in ../src/payments.ts. Follow Payment runbook when investigating a failed retry.
