#simonpalmer
1 messages · Page 1 of 1 (latest)
Just to make sure I have this right - you're current using stripe Checkout Sessions and you want to set something (like metadata) that you can check on the PaymentIntent so you know how to handle it on your backend
yes, after being notified that payment has been successful I want to send a handful of variables (strings and Json) to my backend API that generates the paid for service. (The variables are collected during the userflow leading up to checkout).
And are you using CHekcout Sessions in payment mode? Or something else (subscription mode)?
Checkout Sessions in payment mode
Perfect - so what you can do is set payment_intent_data.metadata when you create the CHeckout Session, and that should populate all that metadata directly on the PaymentIntent (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata)
Im using Stripe.Checkout.SessionCreateParams
@cerulean jetty did that end up working for you?