#jimmiller - Checkout
1 messages · Page 1 of 1 (latest)
Hello! The line items from the Checkout Session are available in the line_items property on the Checkout Session, which you need to expand when fetching it from the API: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
If you need to go from a Payment Intent to a Checkout Session you can use the Checkout Session list API and specify the Payment Intent ID: https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_intent
Thanks Rubeus. I did see that I could get all of the items from the Checkout Session, but doesn't the session expire at some point or will the data always be there?
The Checkout Session does expire, but that only means it can't be used for payment (meaning someone can't go through the Checkout process). The Checkout Session object in the API will never go away.