#jelni
1 messages · Page 1 of 1 (latest)
Not sure what you mean. The line items don't have a metadata param: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
i'm trying to link purchased products to our internal product ids.
i thought of using the metadata field of products to store a product_id field
so i want to read the metadata field of purchased products
Ah yeah you can do that
But you'll need to expand it
So you'll need to retrieve the session via the api even though you receive the object via a webhook event
And pass expand to expand the params you need
that works for me, thank you!