#daniell_74820

1 messages ยท Page 1 of 1 (latest)

subtle kelpBOT
#

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.

neat silo
#

Hi ๐Ÿ‘‹ yes, you can listen to an Event type that provides you with the ID of the Checkout Session, like checkout.session.completed, and then use that ID to retrieve the line items for that Checkout Session and see what it included:
https://stripe.com/docs/api/checkout/sessions/line_items

mighty moon
#

is it also possible to pass custom data to strip checkout session?

neat silo
mighty moon
neat silo
#

Yup

mighty moon
neat silo
#

Yup, sample code is in the API reference that I linked (I edited the message so that link wasn't there initially). Can you elaborate on what type of cases you're worried about?

mighty moon
neat silo
subtle kelpBOT
mighty moon
#

If I understand it right, the id of stripe event data object can be used for retrieving checkout sessions line items?

neat silo
#

No, the ID of the Checkout Session that is contained in the Event's data.object field (when listening for Event types that start with checkout.session.) can be used to retrieve the line items associated with that Checkout Session.

mighty moon
#

do you mean the id that I get in the webhook to retrieve line items?