#gracine
1 messages · Page 1 of 1 (latest)
For that you could create a normal monthly subscription with a cancel_at date that is a year out. Then it would be a matter of not providing a cancelation option https://stripe.com/docs/api/subscriptions/create#create_subscription-cancel_at
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That being said, the user could obviously always do something like dispute the payment with their bank but there wouldn't be a way around that here
Ok thx, but if the user goes to the Stripe Billing Portal, will he be able to cancel anyway ?
You can disable the ability to cancel through the portal. One sec as I find that doc
You can do it via the dashboard: https://stripe.com/docs/customer-management/configure-portal
Or via the API: https://stripe.com/docs/customer-management/integrate-customer-portal#configure
excellent I will try it thank you
oih
I can restrict it but It seems it restricts it for all users
not for a specific one right
its do or don't
like for my other users who payes regular monthly pricing I want them to be able to cancel
Apologies I missed this message for a bit
If you use the API configuration, you can choose your configuration per portal session
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So you could check what subscription they have and allow or disallow cancellation based on that
The caveat being that that this wouldn't work if one user has both a monthly and yearly subscription as it has to be on or off the whole session. You can also restrict what products a session can manage, so maybe you could do something like make monthly only sessions that allow cancelation and then yearly only sessions that don't. But that might be a bit too confusing for users
ok that would work, we only support a single subscription plan