#jignesh_13529-checkout-event-metadata
1 messages ยท Page 1 of 1 (latest)
Hi ๐ in your second screenshot, is that a Payment Intent object you're showing?
Yes
Gotcha, that's why you're not seeing the metadata. You're putting it on the Checkout Session object then looking for it on the Payment Intent object. metadata typically is not copied from one object to related objects without you doing so.
If you want to keep looking at the Payment Intent level for the metadata then you can pass it there when creating the Checkout Session via payment_intent_data.metadata (assuming you're working in payment mode):
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata
Otherwise you will need to inspect the Checkout Session afterwards to reference its metadata.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
checkout.session.completed would be a good type of Event to listen to. Our other Checkout Session related Events are also listed near this one:
https://stripe.com/docs/api/events/types#event_types-checkout.session.completed
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
jignesh_13529-checkout-event-metadata
Thanks