#pob-the-dev

1 messages ยท Page 1 of 1 (latest)

dire veldt
#

Hi ๐Ÿ‘‹ your customers are only able to cancel their subscriptions if you give them a way to do so, either via the Customer Portal or custom code.

If you want to schedule your subscriptions to cancel automatically after a period of time, then our Subscription Schedules may be a good fit. They allow you to define phases for a Subscription, and can make changes to the Subscription when moving from one phase to the next.

You can set end_behavior of the schedule to cancel and it will cancel the related Subscription at the end of the Schedule's phases.
https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-end_behavior
https://stripe.com/docs/billing/subscriptions/subscription-schedules

slate cairn
#

Hey toby, is it possible to disable subscription cancellation in the Customer Portal?
What happen if a customer buy a 3 months subscription and cancel it right away? He will access all the content for less than a 1 month subscription, which I don't want. Is it possible to charge for the X remaining months of the "contract" after cancellation?

dire veldt
#

How to disable the option to cancel depends on how you're implementing the Customer Portal. If you are only using your default configuration then you can adjust that in the dashboard here:
https://dashboard.stripe.com/test/settings/billing/portal

If you're using multiple configurations, then you'll need to adjust that within the portal configuration objects via the features.subscription_cancel parameter:
https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_cancel

#

What happen if a customer buy a 3 months subscription and cancel it right away?
This is largely up to you. Our Subscriptions don't have the functionality to charge for the remaining time on their associated Subscription Schedule, but you could create a new Payment Intent to try to collect the remainder.

Alternatively, you could listen for webhook events, primarily customer.subscription.deleted, to be notified when a customer cancels a Subscription and take any necessary actions on your end such as terminating their access.
https://stripe.com/docs/webhooks
https://stripe.com/docs/api/events/types#event_types-customer.subscription.deleted

slate cairn
#

Okay, I think I have all the answers I needed! Thank you! ๐Ÿ™‚