#wintercounter

1 messages · Page 1 of 1 (latest)

polar wadiBOT
frigid void
#

That is expected, so you will want to set metadata on your Checkout Session directly. Metadata is not automatically copied between objects like this

vital turtle
#

I'm using pricing table, I don't setup anything else.

frigid void
#

Interesting. Double checkiing if pricing table supports metadata like this

vital turtle
#

the problem is without metadata I don't know which product the user has purchased

frigid void
#

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

vital turtle
#

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?

frigid void
#

Correct

vital turtle
#

any ideas with what expand value I can receive the product metadata?