#surajpatidar
1 messages · Page 1 of 1 (latest)
Hello! What's the issue?
i have upgrade my subscription from gold yearly to platinum but it not work with my scenario
Can you provide more details? What exactly do you need help with?
yes
i want to like that
i have subscription plan 30$ and if i upgrade with plan 60$ after 10 days so this month charge extra for new plan like
current plan unsued = 30-10 = 20
new plan amount after 10 days = 60-20 = 40
extra charge is 40-20 = 20
i want like that
i have use subscription shedule for that
It sounds like you want to enable prorations: https://stripe.com/docs/billing/subscriptions/prorations
start_date = user.subscription.schedule.current_phase['start_date']
stripe.SubscriptionSchedule.modify(
user.subscription.schedule.id,
proration_behavior="always_invoice",
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,
},
],
)````
i have aready enabled but it not work
When you say it doesn't work what specific thing didn't work here?
have subscription plan 30$ and if i upgrade with plan 60$ after 10 days so this month charge extra for new plan like
current plan unsued = 30-10 = 20
new plan amount after 10 days = 60-20 = 40
extra charge is 40-20 = 20
this not work
Can you give me the Susbcription ID where this isn't working so I can take a look?
sub_1NTfHCECJUF37lWXVHjnf1qf
Not sure I understand, the amounts on this Subscriptions are very different from the ones you've been talking about. Can you explain in more detail? Is this the correct Subscription?
yes
hopping in here since rubeus has to head out
yes
With that subscription that you shared, the latest invoice was for $578.35 - what amount were you expecting instead?
have subscription plan 30$ and if i upgrade with plan 60$ after 10 days so this month charge extra for new plan like
current plan unsued = 30-10 = 20
new plan amount after 10 days = 60-20 = 40
extra charge is 40-20 = 20
ii am expecting like that
Instead of a generic example can you give the specific amount you'd expect for the subscription you shared?
like subscription.modify work using price changes
Again, it'd be way more helpful if you gave the EXACT amount you'd expect for the subscription you shared
From what you're describing, I think you're misunderstanding how our prorations work (https://stripe.com/docs/billing/subscriptions/prorations) which are calculated to the second, not day by day
i can shere exact amount bcz i have't see extra amount
thank you for your time
no need to help
i will crete my custom flow
Yeah if you need the behavior you described then creating it custom would be the best
we do something more like this:
have subscription plan 30$ and if i upgrade with plan 60$ after 10 days so this month charge extra for new plan like
proporation of days unused = 30-10/30 = .667
new plan amount for the unused days = 60* .667 = 40.02 <- so that's how much we charge
old plan for unused days = 30 * .667 = 20.01 <- this is how much we credit
so we'll have two line items:
- one for 40.02
- and one for -20.01