#imcollector-products
1 messages · Page 1 of 1 (latest)
if you're using Checkout to collect payment, you can create the Product and Price at the same time you're creating the Checkout Session : 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
so with this I can make a subscription package that I made on the web
means I don't need to create a product and take the API ID
pretty much, but you'll likely end up with many Products that are the same
the same product? you mean?
so every time you create a Checkout Session, you're creating a new Product
if you create Checkout Session A, you end up with Product A
you create Checkout Session B, you end up with Product B
so on and so forth
even though Product A may be a green T-shirt and Product B is also a green T-shirt
So there is no way without making a product
yes, underlying every subscription is a Product and Price
you must create a Product and Price
it's just that the way which i mentioned allows you to do it (adhoc) at the same time that you're creating a Checkout Session
I could have implemented automatic product creation but also I can't seem to find a method to delete a product when a user unsubscribes