#dopeboyz

1 messages · Page 1 of 1 (latest)

random thunderBOT
sweet flint
#

Hi there, can you describe the problem?

white merlin
#

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

summer ruin
#

Do you intend to downgrade subscription immediately or in the future?

white merlin
#

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

summer ruin
#

Could you share the subscription ID (sub_xxx)?

white merlin
#

sub_1MbdObA6RSS0ndD1LfCMiEfs

summer ruin
white merlin
#

So how do i fix it?

summer ruin
#

When do you want to downgrade the subscription? Is it next billing cycle?

white merlin
#

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

summer ruin
#

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.

white merlin
#

So do i add second phase too?

#

And what value will it have

white merlin
#

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

sweet flint
#

Hi @white merlin I'm taking over. Can you give me a short summary of your latest problem?

white merlin
#

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

sweet flint
#

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?

white merlin
#

Coz i want the user to use the upgraded perks until this upgraded plan cycle end

sweet flint
#

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?

white merlin
#

Yepp

sweet flint
#

You don't even need to use Schedules API

white merlin
#

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

sweet flint
#

You can achieve it by updating the subscription directly without using schedule

white merlin
#

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

sweet flint
#

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