#datdudebeast
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.
- dat-checkout-fulfillment, 49 minutes ago, 15 messages
Is this for Checkout? If so, no, line items will only show up when you expand them. You need to fetch the Checkout Session with line items expanded after you receive the webhook.
yes so after the checkout even it complete I have it storing information like line items in my database but its coming back as an empty array
to find the items the user purchased would i used lineItems?
can you elaborate?
Yeah, line items isn't included by default. Line items won't be present in Checkout webhooks.
If you want the line items you need to retrieve the Checkout Session from the API and expand line_items: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
so I keep the checkout session id then use that id to fetch all the information i want from the checkout?
Yes. You get the Checkout Session ID from the webhook and use it to retrieve the Checkout Session with line_items expanded.
thanks, Ill try this