#shpatak
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Not sure I fully grasp the question. These events are generated & delivered asynchronously. So there's no way to know the order OR the timegap between them as such.
What's your usecase here?
Based on documentation, Stripe does not guarantee delivery of events in the order in which they are generated
yup, that's correct
Is it because they are almost fired at the same time?
I am asking because based on questions on stackoverflow guys experience a very small time gap between wrongly fired events
let say the dispute.closed with win or lose status (which is the last event of the dispute lifecycle) may be fired before dispute.update with status in review:
in this case I need to implement some mechanism on my server which debounces the response and checks if there were over events fired in the last 10 seconds so I could put them in the order and process
Yeah unfortunately, since these events are generated async it is possible that they get fired at the same time often and there might be a delay in other cases.
There's no way to get the exact timeline as such.
How long can a delay be?
there's no way to know
I know there may be not a clear answer for this question, however there should be something approximate - let's say for my app its vital to process each of the events and the sequences matters a lot - we could do a delay system but we need to know the details
I understand but each object might get handled differently and that would affect when/how these events are delivered.
I wish I could help provide an approximate but there's really no way to know when these events will be generated.
If the timing of the changes is vital then you'd likely want to poll the API to retrieve the statuses.
I was prepared that that answer morally)
I hope Stripe fixes it in nearest future
Thank you mate
NP! ๐ Happy to help
Maybe you know place in documentation where I can. find the right order of the events (especially interested in dispute charges and refunds)
I don't think we have any docs for this really ๐ฆ
An alternative would be to use the List all events API and passing in the type of the events
https://stripe.com/docs/api/events/list