#surajpatidar

1 messages · Page 1 of 1 (latest)

errant oracleBOT
fallen storm
torpid shell
#

but i want to change only price

#

not dates

fallen storm
#

regardless, when there is a Subscription Schedule managing the Subscription, you cannot modify the Subscription in any way. You must make the changes to the Subscription Schedule

torpid shell
#

okay

#

so need only one item for upgrade now or add any another items

fallen storm
#

i'm not sure i understand the question?

torpid shell
#

how to upgrade plan using shedule need only one phase or change price only ?

fallen storm
#

you can retrieve the current Subscription Schedule that is managing that Subscription, then make a request to update the Subscription Schedule which passes in all the phases again, but with a different price (where relevant)

torpid shell
#

i have create subscription but it charge next month why

fallen storm
#

can you share the subscription id?

torpid shell
#

yes

#

sub_1NSw11ECJUF37lWXGidcpO2r

fallen storm
#

can you elaborate on what's the issue? It's a monthly subscription as far as I can tell, so it's normal for it to charge on a monthly basis

torpid shell
#

okay but why charge advance for the next month

#

i want only chargne this month changes

#

it charge this month + next month charge

#

and it not charge now why

#

hii

torpid shell
#

and this month chage automca paid using lastpayment mthod

mental furnace
#

Hey, sorry we don't really understand you as your sentences was quite confusing. Could you list down, by a concrete example, that in what day, do you expect to collect what price?

torpid shell
#

yes

#

i want to upgrade 79 to 249 plan i have use subscription schedule for that
but it charge 417$ , and it charge like that this month changes charge + next month plan charge
but i want only this month charge and immeditly cut from customer last payment mothod

mental furnace
torpid shell
#

i want upgrade like subscription modify work

mental furnace
#

Can you see this on Dashboard?

torpid shell
#

yes

#

it show 413$

mental furnace
#

It's because it charge next month cycle, and proration of this month

#

proration is what happen when you change the price of the Subscription

torpid shell
#

but i dont want next month charge

#

i want only this month changes charge

#

like only 164$

mental furnace
#

Why not? You want to provide your customer 1 month for free?

torpid shell
#
                        user.subscription.schedule.id,
                        phases=[
                            {'items':
                                [
                                    {
                                        'price': current_plan.id,
                                        'quantity': 1,
                                    }
                                ],
                                
                                "proration_behavior": "create_prorations",
                            },

                            {'items':
                                [
                                    {
                                        'price': new_plan.id,
                                        'quantity': 1,
                                    }
                                ],
                                'start_date': 'now',
                                'end_date': end_date,
                                "proration_behavior": "create_prorations",
                            },

                        ],
                    )
                    print("Price Greater then current price")
                    messages.success(request, "Plan Upgrade SuccessFully.")```
#

no i dont want to one month freee

#

i want only this month charge next month show upcomimg invioice

mental furnace
#

Let's dont' dive into code, let's talk until you got a clear vision what you want to do

torpid shell
#

yes

#

when i use stripe.Subscription.modify it work like that new_price charged immeditly with customer right ?

mental furnace
#

Your Platimum plan is $79, your Diamond plan is $249. You have charged $70 for July 12 -> Aug 12

torpid shell
#

client requerment like that if i have 79 plan and i will upgrade to 249 plan then charge calculate 164 extra for this month and charge immeditly after next month new invoice set

mental furnace
#

Then it behaves exactly like that. It will charge about $160 for the differences, and then $249 for Aug 12 -> Sep 12

#

So you have $413

torpid shell
#

but i dont want to charge next month bill from now

mental furnace
#

No it doesn't charge now, it will charge on Aug 12

#

That's upcoming Invoice

torpid shell
#

because if user not continue with platform end for the this subscrption

#

but i want charge now which is extra of this month

#

what if it use plan till Aug 12 and not continue with platform

#

thats why i want extra charge , charge immeditly and next month plan change from 249 so customer continue with monthly billing

mental furnace
#

Okie, then pass proration_behavior to always_invoice

torpid shell
#

i have passed

#

always_invoice

#

but it charge 413 i want charge now and only extra charge like 164

mental furnace
#

In which request you passed always_invoice?

torpid shell
#

bro i use subscription schedule

#

for upgrade

#
                        user.subscription.schedule.id,
                        phases=[
                            {'items':
                                [
                                    {
                                        'price': current_plan.id,
                                        'quantity': 1,
                                    }
                                ],
                                'end_date': 'now',
                                'start_date': start_date,
                            },

                            {'items':
                                [
                                    {
                                        'price': new_plan.id,
                                        'quantity': 1,
                                    }
                                ],
                                'start_date': 'now',
                                'end_date': end_date,
                                "proration_behavior": "always_invoice",
                            },

                        ],
                    )````
mental furnace
#

dont' set proration_behavior inside the phase

#

If the update changes the current phase, indicates whether the changes should be prorated

torpid shell
#

no it not work

mental furnace
#

You should start over with another SubscriptionSchedule. This one already has the Proration generated

#

Please list down in sequences:

  1. Created the Subscription: req_xxx
  2. Generate the Subscription Schedule req_xxx
  3. Update the Subscription Schedule req_xxx
  4. Now the Subscription has this Invoice inv_xxx and the Upcoming Invoice of $yyy
torpid shell
#

Don't close chat

#

I will try one new

#

Can I delete this already subscription schedule for new one ?

mental furnace
#

You should start over with a completely new Subscription and Subscription Schedule

torpid shell
#

But what if user create schedule and after he want to cancel request this

mental furnace
#

That's a different thing. Should you focus on this proration_behavior setting first

errant oracleBOT
torpid shell
#

ok

#

i have relesaed the schedule when upgrade and use subscription mofiy api for upgrade

trail needle
#

Ok, is there a specific issue?

torpid shell
#

no but what if user already have subscription.schedules or he want to upgrade

trail needle
#

If the Subscription is controlled by a Schedule, then you'd update the Schedule directly (not the Subscription)

torpid shell
#

i update schedule but it not work like modify

#

and i want process like how subscription modify work like cut amount now and then next month start from that time

trail needle
trail needle
torpid shell
#

when i use subscription modify api then it work like that current plan 79 new plan 249 after 1 day if i upgrade 79 to 249 , so it charge exrta immeditly

#

right ?

#

but this things i want in subscription schedule if i upgrade from 79 to 249 i want charge on this month extra immedilty but it charge this month extra and next month

torpid shell
#

hii

#

how to upgrade subscription using this