#shpatak

1 messages ยท Page 1 of 1 (latest)

obtuse sedgeBOT
bitter terrace
naive marten
#

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?

bitter terrace
#

Based on documentation, Stripe does not guarantee delivery of events in the order in which they are generated

naive marten
#

yup, that's correct

bitter terrace
#

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

naive marten
#

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.

bitter terrace
#

How long can a delay be?

naive marten
#

there's no way to know

bitter terrace
#

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

naive marten
#

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.

bitter terrace
#

I was prepared that that answer morally)

#

I hope Stripe fixes it in nearest future

#

Thank you mate

naive marten
#

NP! ๐Ÿ™‚ Happy to help

bitter terrace
#

Maybe you know place in documentation where I can. find the right order of the events (especially interested in dispute charges and refunds)

naive marten