#PixelNinja
1 messages · Page 1 of 1 (latest)
Yes, in that case storing the metadata on the payment intent or another closely related object would probably be best as you can update that no matter what state the payment intent itself is in
Ah, how do I get the payment intent of a checkout session?
is it just .payment_intent?
Ah yeah it is, so just store it in the payment intent metadata?
Exactly, that is how you access it after creation. You can also set initial metadata on the payment intent during creation by using the payment_intent_data.metadata argument when creating your 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.
Thanks!