#Maxime Beaudry-checkout-sessions
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ if you're using Checkout Sessions, then those objects hold the relevant line-item information inside of its line_items parameter:
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Got it. So I get the CheckoutSession which will contain a reference to the PaymentIntent.
And is it possible to do it the other way around? In another word, if I have a PaymentIntent, how can I get the related CheckoutSession?
Apologies for the delay, if you have the ID of the Payment Intent then you can use that as input for our List all Checkout Sessions to locate the associated Checkout Session:
https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.