---
title: "Discussion on \"Why Stripe sends your webhook twice (and how to process it once)\" | Hashnode"
description: "Discussion on \"Why Stripe sends your webhook twice (and how to process it once)\". 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."
url: "https://hashnode.com/posts/why-stripe-sends-your-webhook-twice-and-how-to-process-it-once/6b02f840c2d0f1c4f7c6be30"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why Stripe sends your webhook twice (and how to process it once)](https://hamichidev.hashnode.dev/why-stripe-sends-your-webhook-twice-and-how-to-process-it-once?utm_source=hashnode&utm_medium=feed)

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.

2d ago · 5 min read · hamichidev.hashnode.dev  
Updated 16h ago  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#stripe](https://hashnode.com/tag/stripe)
-   [#webhooks](https://hashnode.com/tag/webhooks)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Hamichi](https://hashnode.com/@hamichidev)

@hamichidev · Internet

  
[View profile](https://hashnode.com/@hamichidev)

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.

## Responses 1

Markdown supported · ⌘↵ to post

[Paul Hartness](https://hashnode.com/@retryfix)

[1d ago](https://hashnode.com/posts/why-stripe-sends-your-webhook-twice-and-how-to-process-it-once/6b02f840c2d0f1c4f7c6be30/comment/6b0493284d92309afae2d1e6)

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.
