#akkusomer1

1 messages · Page 1 of 1 (latest)

upbeat egretBOT
#

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.

timber mauve
#

hi, sure, what's the question?

honest zealot
#

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

timber mauve
#

you would expand "line_items.data.price.product"

honest zealot
#

okey i found now. Where are the property definitions of this expand written?

timber mauve
#

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"

honest zealot
timber mauve
#

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

timber mauve