#mrcoles

1 messages · Page 1 of 1 (latest)

torn trenchBOT
gaunt walrus
#

Hi there, you can't override the description of an existing product in an ad-hoc way, you can use the product_data hash and pass all product data including description (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data).

glacial oracle
#

Thx—and that has the effect of just creating the price and product, ya?

gaunt walrus
#

I don't quite understand you latest question, can you elaborate?

glacial oracle
#

I don’t understand exactly what “create a new product object inline” means. I could interpret “inline” to mean a couple different things.

If I specify price_data.product_data in a checkout and complete it, does that result in a new Product being created? Will that product show up in my Stripe Dashboard /products page and can I query it via stripe.Product.list?

And if it’s created is it a unique one each time or is there some way that it reuses existing ones that match the parameters?

gaunt walrus
#

It will create a new product and Stripe will archive this product upon checkout session completion.