How a Retry Bug Double-Charged a Customer $340 and Exposed a Systemic Flaw
A software team discovered a critical payment bug after a customer reported being billed $340 twice within four seconds for the same order. The root cause was a checkout service that automatically retried timed-out payment requests, not realizing the original charge had already succeeded on the processor's side. Further investigation revealed that multiple other endpoints — including refund issuance, subscription upgrades, and bulk invites — shared the same vulnerability. The team resolved the issue by implementing idempotency keys, which use a client-generated UUID to detect and block duplicate operations before they execute. Since deploying the fix across all four affected endpoints, duplicate-charge and duplicate-refund support tickets have been effectively eliminated.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in