#aksharj-events

1 messages · Page 1 of 1 (latest)

elfin horizon
acoustic robin
#

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

elfin horizon
acoustic robin
#

which amongst charge.succeeded or invoice.paid is triggered the last?

#

ah ok

acoustic robin
#

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

unique ice
#

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?

acoustic robin
#

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

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

acoustic robin
#

sounds good, thanks @unique ice for the help 🙂 good day

unique ice
#

Np!