#PixelNinja

1 messages · Page 1 of 1 (latest)

rough urchinBOT
brazen grove
#

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

open ridge
#

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?

brazen grove
#

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

open ridge
#

Thanks!