From Dev.to
Stripe Webhook Handler Processes the Same Event Twice: Idempotency With a Postgres Unique Constraint
TL;DR: Stripe delivers webhooks at least once, not exactly once, so your handler will eventually see the same event.id twice (a retry after a slow response, a manual resend, a race between two workers...
