#jin-subscription-cancelandrefund
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- jinmatt, 1 day ago, 15 messages
oh, it's only possible from the dashboard?
correct. In the API you basically have to build this logic yourself. It's not too hard but definitely a bit annoying ๐ฆ
I'm confused, so what does exactly the Prorate flag do?
have you tried?
It will basically add the credit to the Customer's "credit balance": https://stripe.com/docs/billing/customer/balance to be used on future Invoices.
So you have to write code to basically refund that amount back to your Customer based on their recent Charge(s) and then zero out the balance
ok cool. That works, I can fetch the credit total and balance it out from last charge
thanks
note that the balance can be higher than the last charge so you need some "recursion" to go to the previous one until you're at 0
๐
is there a way to preview what will be the prorated amount before canceling?
thank you
let me know if you have more questions after trying to implement this in Test mode!