#mrcoles
1 messages · Page 1 of 1 (latest)
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).
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thx—and that has the effect of just creating the price and product, ya?
I don't quite understand you latest question, can you elaborate?
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?
It will create a new product and Stripe will archive this product upon checkout session completion.