#BarrelRider
1 messages · Page 1 of 1 (latest)
I am using refund API to refund user and I assume that money goes from users credit balance
that's not true as far as I know. The credit balance is only used for applying discounts to future invoices for the customer, it doesn't get touched by the Refunds API.
- Point number two - when user cancels the subscription stripe creates another invoice, that invoice is a draft invoice - the prorated refund amount will not be available for hour in the users credit balance (happens in testing both with and without the use of clocks feature). There should be no draft right?
Creating the draft and waiting an hour is normal I think, that's how all recurring invoices for a subscription work. In this case it's important to wait an hour as it allows you or others to edit that final invoice to add in anything extra needed if required. You can call the Finalize Invoice API directly if you want to avoid the wait.
Your approach I think seems brittle, I'd try to just store direct IDs like the Invoice ID in_xxx in your system instead of heuristics or the name of items.
refund to the original payment method doesn't automatically adjust the balance does it?
correct
Thank you for clarification, this is what I understood:
-
Gotcha, refund API draws the money from my balance as in account owner balance. So if I am just starting that business it is good to top up my account with some money for extra fees and things.
-
I do store the invoice subscription ID's and subscription items ID's which I believe is more then enough to get the invoice details.
Ok that makes things clearer.
One thing though - am I right about adjusting balance flow? When I get confirmation event that invoice has been successfully refunded I should work out the amount by which the payment has been reduced (that reduction amount comes from what is available in the balance)?
Please just let me know if that entire conclusion seems fine and if there are any obvious problems just please point me into the right direction.
it seems fine and people do do things this way. Our credit system for Invoices is really just for invoices and offsetting future payments, it's not tied into refunds. So it's not uncommon for people to issue actual cash refunds to the payment method and then manually update the balance inside Stripe to reflect that