#abishek-prices-prorate

1 messages · Page 1 of 1 (latest)

static cave
whole karma
#

@static cave I am basically canceling the current subscription and then raising a new invoice for the customer for the one-time payment

static cave
#

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

whole karma
#

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?

static cave
#

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

whole karma
#

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?

static cave
#

it will give them the prorated amount of unused time so (31-2)/31 * 19 (hand wavy calculation)