#Vish-checokut
1 messages · Page 1 of 1 (latest)
Thanks
I think a better way to do this (rather than relying on ordering) is using the line item ID to match them - https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items-data-id
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But do we get line item id when creating the checkout session?
We only get it when we retrieve it right?
You can create the Checkout Session and expand line_items to get it back from the creation response I believe