#donna_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1363971695899181226
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello there
Hi!
It is very possible for there to be duplicate Events created, see: https://docs.stripe.com/webhooks#handle-duplicate-events
You have to handle this gracefully on your end.
While I'm reading it, why does this happen?
I don't recall the technical reason exactly. It has to do with our internal infrastructure/partners who help facilitate these Webhooks.
Do you have an in-depth article? It only shows little on how I could get it done. ๐
An in depth article for how you would handle knowing the Events are duplicates?
How to prevent duplicate evenets
No there isn't a more comprehensive article. This is slightly more complicated for invoice.upcoming since the Event won't actually contain an Invoice object ID. But you can check the data... for instance you could look at the Subscription ID. Or you could track on your end if you already handled the Event -- that mostly depends on what you are using the Event for exactly and your own internal systems.
How can I prevent it?
Doing the manual to track the already handled events negates the use of webhook and automations
You can't prevent it.
I already explained that -- you have to handle this on your side.
When the webhook is triggered, it sends a message to Slack.
Then you'll need logic to check if you already performed that action for the relevant Subscription