now the scenario is i have subscribed to a basic plan and now i am trying to upgrade it to professional plan. it is doing as in it changes the plan but the amount for the next billing cycle is 190$
all i want is when i am switching from basic to professional it immediate generate invoice of 70$ which is 120 of professional plan - 50$ which i have a credit of basic plan
both buble stripe and stripe.js2 plaugin not doing it.
For example, if a customer upgrades from a 10 USD per month subscription to a 20 USD option, they’re charged prorated amounts for the time spent on each option. Assuming the change occurred halfway through the billing period, the customer is billed an additional 5 USD: -5 USD for unused time on the initial price, and 10 USD for the remaining time on the new price.
if the billing period is same it creates proration but will be adjusted to the next billing cycle. if u want to invoice immedietly u set the proration behaviour to send_invoice and billing cycle to now. and proration date will be user’s upcoming invoice lines item[0]. period start. so it will charge customer immedietly with the amount difference.
had to go through alot reading and references to make it work. but thank for replying .