#Nacio
1 messages · Page 1 of 1 (latest)
We generally expect a 2xx response ~immediately (within seconds)
Oh, seconds is fine really. When a PI completes I'm only updating a user's database column and trying to make it safe from multiple events arriving at the same time, any examples on doing that or should I take care of it myself?
We generally recommend sending the 2xx response to us before processing any logic on your side
Hmm, the examples (at least the .NET ones) showed the actual logic before it returns OK, I'd consider that better since you know when it starts failing
We will eventually disable the webhook if your endpoint breaks a certain non-2xx threshold within a specific time, which could impact processing of other events
i.e. return a 2xx to us, process your own logic and log errors separately
Yeah I guess that's a valid reason, alright thanks, have a great day
Actually while at it, is it possible to send the events again from the dashboard or would I have to handle that myself after?
So let's say I return 200, it fails and I log it and then want to re-send that event
You can retry failed events from the Dashboard, yep. Or the CLI: https://stripe.com/docs/stripe-cli/overview
The Dashboard won't allow retries of events where we've received a 2xx response
Alright, thanks again