#nickdnk-yearly-subs
1 messages ยท Page 1 of 1 (latest)
You mean you want the yearly plan to continue till its ended, then switch them to a monthly plan?
Then subscription schedules like @raven hawk said would be your best bet: https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-from_subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You'd create a Subscription Schedule from the subscription, then schedule the next phase to coincide with the end date of the yearly plan and switch to monthly then
so pass start_date == current_period_end or?
I've never used this API
Would this not complicate users moving back and forth between subscription plans?
It depends how you want it to work. If you want the remainder of the yearly billing period to end before moving to a monthly plan, subscription schedules are the way to do that without setting your own cron job. If you don't mind prorating, you could just switch plans immediately
so a subscription schedule is basically just a "change the subscription at a later point in time"
This could potentially be complicated if your user starts with yearly, switches to monthly but then changes their mind and goes back to yearly, all before the initial yearly plan ends. It would mean you have to parse the phases hash and make changes to it
Yes exactly, it's basically way to schedule future updates to a subscription
Yeah that's what I was worried about
Personally I'd just change the plan immediately and give them a proration. That way if they switch back the prorated credit is immediately used and all the logic is handled by Stripe rather than you
That's what I currently do,yes, but it means they lose the discount that they technically did pay for
But also you can argue that they forfeit the discount when they switch plans
Yet we don't give them their money back
A little fishy
You can still apply coupons when updating a subscription
Yea but then we're back to the problem of going back to yearly billing
So you could check to see if they have an active discount and apply that when up/downgrading
I think this gets too complicated for our case. I was just wondering if there was an easy workaround, like say passing current period end to billing anchor
We might also use coupons for actual discounts, so if they are already on there due to proration adjustments it becomes a mess
When upgrading or downgrading you can't specify a future billing anchor, it's either now or unchanged
Hence why Subscription Schedules exist so you can schedule a future change
I got that, I'm just saying that I asked to figure out if a simple solution to this existed
but I think sub schedules are too complicated
unfortunately
with regards to going back and forth at will, which we will have to support
Prorations are probably the path of least resistance for you
Yes and that's what we already do
So I'll just leave it like this for now
Deal with the complaints instead ๐
๐