#quentin
1 messages ยท Page 1 of 1 (latest)
You wouldn't set that at the Price level, but you'd configure the Subscription to cancel as required when creating it. Are you using a yearly price?
So on the dashboard i can specify that the subscription is not renewable ?
I saw on the doc that I have to use a price id on the checkout session
If you're using the Dashboard to create a new Subscription with a yearly price, then you can configure it to automatically end after 1 cycle (i.e. a year)
Does that mean I have to manually create each subscription for each user?
Well, how are you planning to build your Subscription integration? You asked about the Dashboard
I want to create an annual subscription plan that is not renewable, and then during the checkout session, I want to pass the plan to the session.
Well, Checkout creates the Subscription for you. But you can't configure the subscription to automatically cancel via Checkout โ you'd need to do that post-session/payment
Do I have to create a product and a price related to the product on the dashboard before ?
You'd either create them in the Dashboard, or via the API yes. Alternatively you can create them inline when you create the Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_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.
But they're immutable and not reusable if done that way: https://stripe.com/docs/products-prices/pricing-models#inline-pricing
Ok thank you ! ๐