#Rupenbritz-webhook-order
1 messages · Page 1 of 1 (latest)
Hi 👋 you shouldn't rely on receiving events in a particular order as this is not something we can guarantee.
https://stripe.com/docs/webhooks/best-practices#event-ordering
Thats what I thought, but how can I get the clientreferenceid from invoice? I can't get the metadata i sent in checkout either
my current issue is that I have to use the same email in Stripe Checkout as the one im registered with in my app, but this doesn't make sense since I might just use a throwaway email for the app but when making payment I (the user) want to use my real one
TL:DR; how do I link the first invoice to ClientReferenceId?
Do I need to create the customer first rather then have your checkout automatically create one maybe?
Bear with me a moment while I run through a test case.
Thanks for your patience.
I think the easiest way would be to grab the subscription value from the Invoice object and pass it as a filter parameter into our List Checkout Sessions function:
https://stripe.com/docs/api/checkout/sessions/list?lang=python#list_checkout_sessions-subscription