#wintercounter
1 messages · Page 1 of 1 (latest)
That is expected, so you will want to set metadata on your Checkout Session directly. Metadata is not automatically copied between objects like this
I'm using pricing table, I don't setup anything else.
Interesting. Double checkiing if pricing table supports metadata like this
the problem is without metadata I don't know which product the user has purchased
If you are just looking for the products, you can retrieve your Checkout Session and look at its line_items property
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
Note that you have to specifically expand the line_items property for it to be returned with the rest of the Session object https://stripe.com/docs/expand
so in the webhook I should make an extra call for the Checkout Session using the id i got in the checkout.session.completed event, right?
Correct
any ideas with what expand value I can receive the product metadata?