engineering
The Idempotency Token Pattern: Why Your API Needs One Even If Stripe Does Not Force It
Every API that accepts non-idempotent operations eventually has the duplicate-charge incident. A customer's mobile client retries a payment because the request appeared to hang. The original request actually succeeded but the response was lost on the way back. The retry succeeds too. The customer is charged twice. The