#caroline0

1 messages · Page 1 of 1 (latest)

left pawnBOT
dim scroll
#

to be more specific it looks like the Stripe.Subscription type doesn't include a product ID

quasi hemlock
#

Hi, how are you integrated with Stripe? Are you using Payment Element, Srtipe Checkout or something else in your Subscription Integration?

dim scroll
#

we're using stripe checkout

quasi hemlock
#

I see, in this case you can set your own Ids in the Metadata of both prices , https://stripe.com/docs/api/prices/create#create_price-metadataand products, https://stripe.com/docs/api/products/create#create_product-metadata. After completing the Checkout Session and when receiving the Webhook, https://stripe.com/docs/api/events/types#event_types-checkout.session.completed you’ll get the Prices with its metadata that contains your database related Ids, as you have access to the session's purchased items.

dim scroll
#

what do you mean by "the Metadata of both prices and prices"

#

?

quasi hemlock
dim scroll
#

also – will this solution make this metadata available to subscription webhook events? or only checkout?

#

because I need it in the subscription event

quasi hemlock
dim scroll
#

oh great thank you! I'll give this a try