#aksharj-events
1 messages · Page 1 of 1 (latest)
hi @elfin horizon
i have some processing to do once a user makes a payment and i want to do it after the last webhook we receive from stripe in sequence
Hi @acoustic robin! Unfortunately Stripe cannot guarantee in which order you will receive the events. You can learn more about this in our doc here: https://stripe.com/docs/webhooks/best-practices#event-ordering
is there a workaround you can suggest for this scenario?
once a user makes the payment, i want to wait for all the event to be received before doing some further processing
Hey there. Taking over from @elfin horizon - just catching up
As noted, we can't guarantee ordering of webhooks. Why do you need to wait for all events?
so, we have two modes of payment. one is in app and another is standalone. once the user makes the payment via standalone mode, we get the webhook events in the app. if the user does not exist on the app i need to create it (ideally wait for all the events to complete)
Hi @unique ice
Got it. If you must wait for all the events to complete (which I would not recommend) you'll likely need to implement some kind of delay or queue in your webhook handler
sounds good, thanks @unique ice for the help 🙂 good day
Np!