#akkusomer1
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.
- akkusomer1, 5 days ago, 12 messages
- akkusomer1, 6 days ago, 11 messages
- akkusomer1, 6 days ago, 10 messages
hi, sure, what's the question?
After the payment process, I trigger the webhook and get the line items from the session. However, the line_items.price_data.product_data.metadata property is empty.
I fill it in the session, other information comes, but metadata comes empty.
I expand it using expand but I get an error
webhook method
you would expand "line_items.data.price.product"
okey i found now. Where are the property definitions of this expand written?
in the API reference I suppose
it's not specific. But like if you look at the definition of the LineItem, there is no such property as "price_data"
https://stripe.com/docs/api/checkout/sessions/create The definitions in this link always show errors, for example line_items.price_data.product_data
price_data is only a parameter , what it does is take data, and creates a Price object; the Price object is returned in the price property
those are parameters for the API call, not the properties of the returned object(which is https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items-data instead)