#_sidharth
1 messages · Page 1 of 1 (latest)
do you have the event id?
ye just a minute
"id": "evt_1O02apSCyTW7Hz17GKasDLuA",
as mentioned, even after being success, it hits again and again
are you sure those failed delivery attempts are are all for the same event id?
I took a look and none of those failed delivery attempts are for evt_1O02apSCyTW7Hz17GKasDLuA
they're all for other event ids
oh...but in the app we had stopped the tests for checkout around 7:07 pm actually
https://stripe.com/docs/webhooks#retries - In test mode, Stripe retries three times over a few hours for events whose delivery have failed
oh
if you click on each specific row in the Dashboard, you can see the event id that failed delivery
yep different for a few..but i was concerned as if we had stopped the testing and the webhook was getting triggered again and again
i mean different for all
main problem is when the response of the webhook reaches our server, we create a subscription document for that user with some details, i.e i have written the subscription document creation inside the block where if event_type == 'checkout.session.completed': But due to this retry, it tends to create documents again and again
by document i meant NoSQL documents
entire code if needed\
ultimately, you need to ensure that you return a 200 to Stripe when you receive the webhook. If you look at the response for the failed webhook, I've seen 500 server error, time out, or 404 from your ngrok endpoint.
If your server doesn't return a 200, we assume delivery failed and will retry