Checks · PAY-004
PAY-004 · Webhook handler not idempotent
P1 Needs attentionWhy it matters
Stripe retries events. Handling the same event twice can grant access or ship goods twice.
How we detect it
The handler does not store the event id.
How we fix it
Store processed event ids and skip ones you have already handled.
Can it be fixed automatically? Yes, with a template change