#abishek-prices-prorate
1 messages · Page 1 of 1 (latest)
hello, can you share a request for how you're switching from a recurring Price to a one time one? the request ID from https://dashboard.stripe.com/test/logs
@static cave I am basically canceling the current subscription and then raising a new invoice for the customer for the one-time payment
ah ok that helps
yeah there isn't a way to prorate that, you'd have to do the proration calculation on your end first and then account for it in the one off Invoice you create
that won't work for one time prices?
is there a way to check on stripe if there is already any credits available for the customer?
that won't work for one time prices?
you will create an InvoiceItem with a one time Price
or add positive/negative InvoiceItems to offset for the prorations
is there a way to check on stripe if there is already any credits available for the customer?
once you cancel the Subscription, the Customer's Balance has any positive/negative Balance
so if a customer subscribes 2 days ago to a one month plan for $19 and then cancels after 2 days. what will be the customers balance?
it will give them the prorated amount of unused time so (31-2)/31 * 19 (hand wavy calculation)