#hpanseriya
1 messages · Page 1 of 1 (latest)
hello! what do you mean by price breakdown for prorated charges? can you illustrate this with an example?
I have subscribed silver plan $200 on 2nd Feb
Now, I am going to upgrade subscription on 8th feb as per the following
- silver plan $200 with 2 Qty
- gold plan $300
Now, we want to show how we calculated the amount of silver and gold plan
Like:
Silver Plan => $20
Gold Plan => $270
FYI: We also want to charge immediately.
Understood?
yep
Can you please let me know how we can achieve this via API?
do you have an invoice id that I can refer to? that'll help me be able to explain this better
ok
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
give me a while to type out the explanation
is this the specific invoice in_1OglQ8HpCCuanh4qPacpootn you want an explanation for?
yes
with reference to in_1OglQ8HpCCuanh4qPacpootn
you're adding a new subscription item (https://dashboard.stripe.com/test/logs/req_Ef2Lyw1P1g7rkF) and prorating. So it would be
Price or Plan amount / (subscription current_period_end - subscription current_period_start) * (line item's period end - period start)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
the time is the unix timestamp
Can you please give me elaborate with example?
in_1OglQ8HpCCuanh4qPacpootn
Price or Plan amount ($995) / (subscription current_period_end : 1709719066 - subscription current_period_start : 1707213466) * (line item's period end : 1709719066 - period start : 1707213507)
To show the pro-rated amount of specific plan. Right?
you can try it out
where is the quantity