#alasdairg-checkout-event

1 messages · Page 1 of 1 (latest)

wise rockBOT
mild root
#

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.

late trout
#

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

mild root
#

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

late trout
#

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?

mild root
#

That would work too, yes.