#DeputyCheese
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
you can create custom prices on the go using price_data https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data but you need to have the product created first
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you could create the product using the API instead of going through the dashboard
Thanks, so without a product it's not possible?
We are selling digital products and dependent on the payment interval it can have different prices. But when I create a product in the dashboard I have to select the payment interval (monthly/yearly etc.). How would I ideally create that product?
correct
For example: do I have to add the product multiple times for multiple intervals? Like "Product XYZ weekly", "Product XYZ monthly" and so on?
the payment intervals are for prices and not products
you can have a product with multiple prices
each price having a different interval
Ah okay thanks
So I would select "client based pricing" here (https://dashboard.stripe.com/test/products/create)?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
And then add the individual price via the api?
Thanks, I saw that. But we wanted to define and maintain the prices of our products on our side and not in the stripe dashboard.
in that case you can just create a product
without a price
and then use price_data as described above
Okay thank you, understood
So, no way to create subscriptions without products, right?
yes
It worked, thanks for your help
One last question: is there a way to verify that the subscription has been created successfully in the dashboard?
I created this one (https://dashboard.stripe.com/test/payments/pi_3Lx8yAClDK2O5WMj0Q0sUarv) but I cannot see if it's monthly, yearly etc. or what the product is
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you need to look in the Subscriptions section
๐
Again thanks for your help, I really appreciate the awesome support Stripe has!