#alex.esch
1 messages · Page 1 of 1 (latest)
Hi, are you encountering a specific error/issue?
our case is:
- existing subscription in stripe (plus)
- we need to upgrade this membership with free trial of superior membership (premium)
- in 1 month, we need to check some conditions, and:
- cancel the upgrade and rollback to previous subscription
- cancel the previous subscription and leave user on new one
no issue, i have difficulties understanding the documentation
how we can handle this case
so, couple of cuestions
as far i can understand, we have to use scheduled subscriptions
You'd start by following: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription
You can create the phases that map to your requirements and create a new schedule to control the existing subscription
- on create scheduled subscription, will it pause the existing one?
- if i'll cancel the scheduled subscription, will the previous subscription reactivated again?
on create scheduled subscription, will it pause the existing one?
Creating a schedule with thefrom_subscriptionparameter doesn't create a new subscription
It just means that the billing cycles/phases on the existing sub_xxx are now controlled by the schedule according to the phases and behaviours you set
user have a plus subscription with monthly payments
i want to upgrade him to another plan (premium)
- i'll create scheduled subscription, in which one i'll create phase
- change the membership plan, give him 1 month of free trial
in 20 days, after this action, user will decide to rollback to his old plan (plus)
so in this, case, the only thing i need to do, is to cancel the scheduled subscription, right?
No, if you cancel the schedule it'll cancel the subscription too. You'd need to either:
- Update the schedule with a new phase to 'rollback'
- Release the schedule and then update the sub directly to 'rollback'
ok, i 'll create first phase
- day 1 of december, upgrade membership to premium, give 1 month of free trial
user will decide to downgrade
add second phase,
- day 20 of december, downgrade to plus
so on day 20, the second phase will become active and will override the first one, right?
Yes, you'd configure the initial phase to be iterations: 1 (a month) and then it'll automatically transition into the 2nd phase
understood
Should be able to test this with a clock: https://stripe.com/docs/billing/testing/test-clocks