#Umer-checkout
1 messages · Page 1 of 1 (latest)
@modern obsidian hi! I'd expect listing the line_items of the CheckoutSession object to give you the Prices used in the session and then they have the Product ID prod_xxx.
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items-data-price-product
Do you see differently/can you elaborate with an example?
yes. I'm using stripe.checkout.sessions.listLineItems(id) from stripe and for each object i do get a price object in it but the product_id seems to be not equal to the product_id i have on stripe.
@vapid rampart i`m not sure if it's because i'm using test environment or the id's actually vary.
well the IDs you pass to the Session are the ones you get back really
so I'm having a hard time understanding exactly what you mean without a specific example(the ID you expect to see, the JSON you got back, the ID of the CheckoutSession object, and the IDs you see instead and the code used to access them)