#rosie-logs
1 messages · Page 1 of 1 (latest)
Hi! Yes it looks like the events are sorted by their time. However if multiple events are fired at the same time then I'm not sure how those are sorted. Why do you ask?
im trying to investigate a bug in our 3ds authentication flow but cant figure out what the actual flow is from the stripe events. i have these event types occuring at the exact same second but dont know what the sequence is :
payment_intent.requires_action
invoice.payment_failed
invoice.payment_action_required
customer.updated
invoice.created
invoice.finalized
customer.subscription.created
Can you share the payment intent ID?
"pi_3KicZP2Z9s5t7Ecj1Lr9GIP3"
Thanks! Give me a few minutes to look into this.
So what I see:
- You created a new subscription
- You tried to confirm the paymentintent of the first invoice of the subscription
- And you deleted the subscription, which cancelled the paymentintent
All of that happened in less than 5 seconds.
the payment_intent.created event fired up at 39 seconds.
the event list you see above was fired up at 40 seconds but im not sure what the exact sequence is.
and it resulted to my webhook deleting the subscription because of the failed payment at 42 seconds
i mean the delete subscription call was made at 42 seconds because of the failed payment event at 40 seconds
Got it, unfortunately you should not rely on the order of webhook events. You can learn more about this here: https://stripe.com/docs/webhooks/best-practices#event-ordering