#Markan97-checkout
1 messages · Page 1 of 1 (latest)
Hello! Can you give me a little more context? When you say a list of items, what are hoping to get? A list of prices? Line items? products?
Try refreshing Discord
Here's my question again just in case you can't see it: Can you give me a little more context? When you say a list of items, what are hoping to get? A list of prices? Line items? products?
And what's your starting point - do you want to see this for a specific Checkout Session or across all of them?
all for customer
I want list of his payments with line items
I want to list everything he bought through checkout. I use it to fetch all the payment intents of that customer, but I don't get back the data of what he bought with that object.
So what you should do is list all Checkout Sessions for a customer (https://stripe.com/docs/api/checkout/sessions/list?event_types-payment_intent.payment_failed#list_checkout_sessions-customer) and expand line_items t o see all the line items that were purchased in each Checkout Session
and yes, for context payment intents don't store the line item data - you need to check the Checkout Session itself instead of the PI
Thank you man!