#surajpatidar
1 messages · Page 1 of 1 (latest)
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,
}
],
)```
ok
i want to update subscription but cut full price of new plan
would you mind elaborating more?
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$
you wish to ignore the proration?
instead of using proration_behavior="always_invoice", use proration_behavior="none", and billing_cycle_anchor="now"
okay so it charge all new amount right ?
i want to new charge immeditly and billing cycle start on that day
yes
but if i use proration_behavior="none" then it not charge immedityly
i want to charge immeditly with new charge and new billing cycle
then you would use the parameters I shared above
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$
okay i will check
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 ?
yes