#smwlucaso
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- smwlucaso, 3 days ago, 4 messages
👋 happy to help
I'm not sure I fully follow what you're saying
what are you trying to achieve?
I've got two phases in my subscription (handled with a subscription schedule):
- You pay for 3 months (first phase)
- You pay per month (second, and final phase)
When they cancel in the first phase (paid for 3 months), I want to cancel it at the end of those three months. Otherwise, it should end at the end of the month.
What I was wondering is whether cancel_at_period_end deals with the SubscriptionSchedule properly, where the period end in the first phase is for the end of those 3 months, and the period end in the second phase is for the end of the 1 month period
I hope this makes it more understandable
When they cancel in the first phase (paid for 3 months), I want to cancel it at the end of those three months. Otherwise, it should end at the end of the month.
is the 1st phase price a monthly price with 3 iterations or a 3 month long price?
It starts with a monthly price with three iterations
But it basically comes down to users needing to pay for at least 3 months if they want a monthly subscription, whereafter it goes to monthly.
So for cancellation the first possible cancellation needs to be at the end of those three months if still in that phase, otherwise it should just be at the end of their monthly period.
It's still a monthly payment, they simply will need to be billed monthly until the first three months are up (if they cancel in that period)
ok
then you just need to update the schedule in that case
and only set one phase and use https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-end_behavior cancel
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
to cancel the subscription at the end of the 1st and only phase