#gregdough_nut-checkout
1 messages · Page 1 of 1 (latest)
unfortunately, i don't think this is possible unless you set the product_data and price_data each time, which would subsequently create a new Product and Price each time as well.
Thanks for your response. The main goal is to save Product Prices in different currencies, which can be easily updated in the Stripe Dashboard, but also displaying particular images during each Checkout Session. Creating a new Product and Price each time would not necessarily be an issue, as long as we could reference those saved Prices using the Price ID. Is this still not possible? I hope my question makes sense^^
you can still reference those saved Products and Prices using their ID, but you're going to end up with a lot of them. In this use case, these adhoc created Products and Prices are archived by default (if i remember correctly), and you typically wouldn't edit them further
i think it's best if you test it out on a couple of Checkout Sessions, then you'll be able to better understand what i mean
Ok thanks very much Alex. I appreciate your help. Have a great day^^
for easy reference, these are the parameters i was referring to :
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Yes, this is what I've been looking into. Thanks!
I think I found a solution, but maybe you can tell me if it could lead to some issues. Let's say I have a Stripe Product Mug. It has two associated Stripe Prices (USD, EUR). Prior to a Charge Object creation for a Checkout Session, I will update the product.image [ single image] array. I would perform this process for every Checkout Session in order to display each Users' personal mug image.
this wouldn't work since you may have two customers trying to buy the same Price/Product at the same time