#jim19779
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Hi there!
How are you accepting payments? Checkout Session, Payment Element, something else?
Checkout session
And do you know the Checkout Session ID, or you only have the customer ID?
With only the Customer ID, you can get back the Checkout Session with this endpoint: https://stripe.com/docs/api/checkout/sessions/list?lang=node
And once you have the Checkout Session object, the product bought is in line_items: https://stripe.com/docs/api/checkout/sessions/object?lang=node#checkout_session_object-line_items
However note that line_items needs to be expanded to see it.
You can learn more about expand here: https://stripe.com/docs/expand
thanks