#ancient6057
1 messages · Page 1 of 1 (latest)
👋 happy to help
yes because the metadata you set was on the Checkout Session rather than the PaymentIntent
this is why you should instead listen to the checkout.session.completed
as I explained this is expected behavior
this metadata https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata will be stored on the Checkout Session object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
if you want to store metadata on the underlying PaymentIntent then you would need to pass it here instead https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-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.
Thanks, I'll look into it
but as I mentioned before it's better to listen to the checkout.session.completed event rather than the payment_intent.succeeded
Okay, I have seen that the test was successful, thank you