#sstyer
1 messages ยท Page 1 of 1 (latest)
Hello ๐
We don't copy metadata to the underlying PaymentIntent implicitly. So this is expected. Technically, Checkout Session and PaymentIntent generate separate objects. So metadata is only set on the Checkout Session object in this case.
If you want to set it on the PaymentIntent, then you'd want to set payment_intent_data.metadata when you create a checkout session
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.
Ah, brilliant - will give that a try. Thank you!