#andrewtav-checkout-paymentintent

1 messages · Page 1 of 1 (latest)

cyan belfryBOT
olive wave
#

andrewtav-checkout-paymentintent

#

When looking at a PaymentIntent, there's no way to know if it came from a Checkout Session. There are 2 options instead.
1/ Use the https://stripe.com/docs/api/checkout/sessions/list API and pass payment_intent: 'pi_123'
2/ Set metadata in payment_intent_data[metadata] on Checkout Session creation so that when you look at a PaymentIntent's metadata you know if it came from Checkout or not

rustic sand
#

ok thanks. @olive wave I don't have access to do 2. I will go with 1.