#surajpatidar

1 messages · Page 1 of 1 (latest)

pulsar mauveBOT
fresh venture
#

i want upgrade plan

#

👋 happy to help

waxen scaffold
#

i want to upgrade plan with full price of plan

#

right now use this api

                    subscription.id,
                    cancel_at_period_end=False,
                    proration_behavior="always_invoice",
                    items=[
                        {
                            "id": subscription["items"]["data"][0].id,
                            "price": price_id,
                        }
                    ],
                )```
fresh venture
#

ok

waxen scaffold
#

i want to update subscription but cut full price of new plan

fresh venture
#

would you mind elaborating more?

waxen scaffold
#

right now it work like that current plan 30$ new plan 60$
after 10 days i will upgrade with new plan 60$
remeaing amount of current plan is 20 and
new plan new amount is 40
40-20
it charge 20$ for new plan for 20days but
i want if i upgrade from 30 to 60 it charge immedilty 60$

fresh venture
#

you wish to ignore the proration?

waxen scaffold
#

yes

#

new plan start to new billing cycle

fresh venture
#

instead of using proration_behavior="always_invoice", use proration_behavior="none", and billing_cycle_anchor="now"

waxen scaffold
#

okay so it charge all new amount right ?

#

i want to new charge immeditly and billing cycle start on that day

fresh venture
#

yes

waxen scaffold
#

but if i use proration_behavior="none" then it not charge immedityly

fresh venture
#

yes

#

isn't that what you want?

waxen scaffold
#

i want to charge immeditly with new charge and new billing cycle

fresh venture
#

then you would use the parameters I shared above

waxen scaffold
#

like current 30$ plan after 10 days i will upgrade into 60$
then i want to simple start new billing cycle and charge immeditly 60$

waxen scaffold
#
                    subscription.id,
                    cancel_at_period_end=False,
                    proration_behavior="none",
                    billing_cycle_anchor="now",
                    items=[
                        {
                            "id": subscription["items"]["data"][0].id,
                            "price": price_id,
                        }
                    ],
                )```
#

it right ?

fresh venture
#

yes