#Tycho
1 messages · Page 1 of 1 (latest)
You should listen to checkout.session.completed instead. It's the event indicates the Checkout Session has been paid
Yeah that was my second best option, but it feels less clean since that event will fire on every payment and then I either have to overwrite it every time or check if it exists in my DB. I will also have to call the stripe API to add my userId to the customer metadata. Would be way more clean if all of this happened once on customer creation.
But if what I want to do is not possible, I will do it like that
With customer.created it will only contain the Customer information, so nothing from the Checkout Session would come in, unfortunately