#alasdairg-checkout-event
1 messages · Page 1 of 1 (latest)
That depends on what the goal is for storing information in the database. If you just want to be able to look up the Payment Intent details, then I'd wait for the checkout.session.completed event to get the Checkout Session and the Payment Intent ID.
So basically we're building a platform for buying vocals. We log the transaction process so when someone presses pay, and we take them to stripe. When the checkout.session.completed event runs we need to set that order to "completed" and paid
Yup, that will work. The checkout.session.completed event only fires when a payment is successful, so you can rely on it for fulfilling your orders
alasdairg-checkout-event
So if I passed the order_id through the payment_intent_data[metadata][order_id] then on the payment_intent.succeeded event I can use that?
That would work too, yes.