#Swarnali
1 messages · Page 1 of 1 (latest)
Hi 👋
Sorry but I'm a little unclear on what your question is here
You are attaching a meeting ID via metadata. What are you attaching it to?
stripe.checkout.session.create({....
want to know status of payment, success/failure through webhooks
please help
What webhook events are you listening to?
checkout.session.async_payment_failed
checkout.session.async_payment_succeeded
checkout.session.completed
checkout.session.expired
do i need that many?
Actually for payment failure you might want to also listen to payment_intent.payment_failed. This webhook will include a PaymentIntent but it will also have the ID of the Checkout Session it is associated with.
On the Checkout Session?
yes
But you want to access it on successful or failed payment, correct?
both
Right, in that case I recommend you set the metadata on the Payment Intent and listen for payment_intent.payment_failed and payment_intent.payment_succeeded. You can specify it in the payment_intent_data.metadata
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata
actually checkout.session.completed
checkout.session.expired both are showing metadata
just wanted to be sure about checkout.session.async_payment_failed
checkout.session.async_payment_succeeded
as these 2 cases are not happening right now checkout.session.async_payment_failed
checkout.session.async_payment_succeeded
I don't see a question in there
checkout.session.async_payment_failed
checkout.session.async_payment_succeeded
do they also show metadata?
as these cases are not appearing as i try out payments, so wanted to clarify
All these methods return the Checkout Session object
Yes but I dont' think this will get you what you want