#Aby

1 messages · Page 1 of 1 (latest)

wet shaleBOT
broken stratus
#

No. The way those two interact with each other is such that each Product has only one Price, and vice-versa.

karmic cedar
#

Oh, I see. It's the case then we can create the same product with different prices or it's not recommended either?

broken stratus
#

Apologies, I think I misunderstood. It looks like Products can have multiple Prices, but the API only allows you to pass one default Price at a time. Is it possible that price_data on the Product object is what you're looking for? That lets you dynamically create Prices:
https://stripe.com/docs/api/products/create#create_product-default_price_data

#

Also, are you using Stripe Checkout? Or a custom payment form?

karmic cedar
#

Thank you for your response. In principle, we are using Stripe Checkout

broken stratus
karmic cedar
#

That's great, I will take a look into it, and if there's something that I need clarification on it, I will let you know. Thank you, your help is much appreciated!