#datdudebeast

1 messages · Page 1 of 1 (latest)

valid mountainBOT
#

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.

elfin mortar
#

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.

weak plinth
#

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?

elfin mortar
#

Yeah, line items isn't included by default. Line items won't be present in Checkout webhooks.

weak plinth
#

so I keep the checkout session id then use that id to fetch all the information i want from the checkout?

elfin mortar
#

Yes. You get the Checkout Session ID from the webhook and use it to retrieve the Checkout Session with line_items expanded.

weak plinth
#

thanks, Ill try this