#surajpatidar
1 messages · Page 1 of 1 (latest)
you need to modify the Subscription Schedule that is managing that Subscription to make those changes : https://stripe.com/docs/api/subscription_schedules/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
i'm not sure i understand the question?
how to upgrade plan using shedule need only one phase or change price only ?
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)
i have create subscription but it charge next month why
can you share the subscription id?
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
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
i want charge only this month changes not next month charge
and this month chage automca paid using lastpayment mthod
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?
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
i want upgrade like subscription modify work
Can you see this on Dashboard?
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
but i dont want next month charge
i want only this month changes charge
like only 164$
Why not? You want to provide your customer 1 month for free?
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
Let's dont' dive into code, let's talk until you got a clear vision what you want to do
yes
when i use stripe.Subscription.modify it work like that new_price charged immeditly with customer right ?
Your Platimum plan is $79, your Diamond plan is $249. You have charged $70 for July 12 -> Aug 12
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
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
but i dont want to charge next month bill from now
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
Okie, then pass proration_behavior to always_invoice
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i have passed
always_invoice
but it charge 413 i want charge now and only extra charge like 164
In which request you passed always_invoice?
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",
},
],
)````
dont' set proration_behavior inside the phase
Can you try setting the outer proration_behavior? https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If the update changes the current phase, indicates whether the changes should be prorated
no it not work
You should start over with another SubscriptionSchedule. This one already has the Proration generated
Please list down in sequences:
- Created the Subscription: req_xxx
- Generate the Subscription Schedule req_xxx
- Update the Subscription Schedule req_xxx
- Now the Subscription has this Invoice inv_xxx and the Upcoming Invoice of $yyy
Don't close chat
I will try one new
Can I delete this already subscription schedule for new one ?
You should start over with a completely new Subscription and Subscription Schedule
But what if user create schedule and after he want to cancel request this
That's a different thing. Should you focus on this proration_behavior setting first
btw that is Releasing Schedule https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#releasing-subscription
ok
i have relesaed the schedule when upgrade and use subscription mofiy api for upgrade
Ok, is there a specific issue?
no but what if user already have subscription.schedules or he want to upgrade
If the Subscription is controlled by a Schedule, then you'd update the Schedule directly (not the Subscription)
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
Correct, it's a different API with different parameters
I don't know what this means, sorry
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