#dopeboyz
1 messages · Page 1 of 1 (latest)
Hi there, can you describe the problem?
So i am trying to upgrade and downgrade subscription of users, where a user can go from $20-$50 package, while upgrading i am just resetting the billing cycle to now but if the user decided to downgrade $50-$20 i am schedule updating it but when i check it from dashboard it's showing $0 and not showing the schedule update chip either
This is the code for downgrading
Do you intend to downgrade subscription immediately or in the future?
This chip isn't showing up but when i manually downgrade it from dashboard it this chips shows
In future
Coz i want the user to use the premium perks even if he downgrades it
Could you share the subscription ID (sub_xxx)?
sub_1MbdObA6RSS0ndD1LfCMiEfs
In https://dashboard.stripe.com/test/logs/req_OCrtlhOtysBjZL, the first phase is current cycle. You're technically updating the subscription now (not future). Since the current schedule was updated immediately, Update scheduled badge won't be shown
So how do i fix it?
When do you want to downgrade the subscription? Is it next billing cycle?
Yepp
When the current $50 subscriptions
Ends
From the dashboard i follow these steps
I update the subscription with proration on and then i change the product in my case it's price then i schedule update it with end of the current period selected
If you wish to downgrade the subscription, you can add remain the first phase (phase 0) and add second phase (phase 1). Phase 1 will only kick in once phase 0 completes.
Your current code modifies first phase (current phase) currently.
Now scheduled chip showing up but the invoice is zero dollars
I think i am doing something wrong while upgrading how do i reset the billing cycle while upgrading, basically i want to set this option while upgrading
This is how i am upgrading the subscription
Hi @white merlin I'm taking over. Can you give me a short summary of your latest problem?
And do i have to release any schedule subscription if there's any
Hey @sweet flint could you please help me out i have been stuck on this problem for couple of weeks and the app is on production
We have to disable to payment method due to this issue
OK. So what's the business problem that you are trying to solve?
In the earlier discussion it looks like you want to upgrade/downgrade subscriptions. May I know why you want to use schedule instead of updating the subscription direclty?
Coz i want the user to use the upgraded perks until this upgraded plan cycle end
OK, so if I understand you correctly. When your customer downgrade, you don't want proration, and you want to only invoice your customer the new price in next invoice.
For instance, your customer is currently on a $30 plan that he subscribed on 1 Jan. One 2 Feb he chooses to downgrade to $10 plan.
You want him to continue using the $30 plan until the end of Jan and only charge him $10 on 1 Feb.
Is this the correct understanding?
Yepp
Got it. An easier way is to just disable proration when you updating the subscription https://stripe.com/docs/billing/subscriptions/prorations#disable-prorations
You don't even need to use Schedules API
I had it that way before
But we had some issues so we moved with this approach
So I'll tell you what i want to achieve
I create a subscription of $20 today then i decided to go from $20-$50 today so the next invoice should be $30 with proration on and resetting the billing cycle, but when again this use decided to go from $50-$20 with cycle i want it to be scheduled update with end of current cycle on
This is upgrade package code
This is my downgrade code
You can achieve it by updating the subscription directly without using schedule
But how could we do it with schedule update
Coz that's what we need to do
Can i send you a video you can look and can understand what i am trying to do maybe that'll make it more clear
Coz when i am downgrading it from the dashboard i am using schedule update then it's working perfectly
I still don't think you need schedule (maybe I don't have your full picture), sure if you have video, please send over to me