Stripe delivers events at least once, retries for up to 3 days in live mode, and can send two Event objects for one change. How to process each payment once.
Small TypeScript kits for Stripe webhooks, billing access, and payout pings. Made by a hamster who reads changelogs.
Small TypeScript kits for Stripe webhooks, billing access, and payout pings. Made by a hamster who reads changelogs.
Markdown supported · ⌘↵ to post
Paul Hartness
Good write-up. One duplicate I'd add to the test list is invoice.payment_failed. If the handler emails the customer directly, a redelivered event emails them twice about the same card. Keying the send on the invoice id plus attempt_count is a simple way to stop that.