#mochihealth
1 messages · Page 1 of 1 (latest)
Hi, do you have an example here so I can further look at this? The intended behavior is that is there a credit balance, https://stripe.com/docs/billing/customer/balance on the customer, then the next invoice 's amount due decreases for that amount. For instance, if there is a credit balance of $5 but the next invoice is $20, the amount due should decrease to $15 and that amount should be credited back to the customer as your customer still owes you $15 on that invoicesince the payment failed.
pi_3NRMjmBPM36OC3gX30Kovs6e
Looking at the invoice, https://dashboard.stripe.com/invoices/in_1NRLmcBPM36OC3gXtUTf0pes it's working as intended. The $10 credit decresed the amount due on that invoice. The credit would not go back to the customer.
do i need to like void the invoice for the credit to be credited back
how can i ensure that the credit goes back to the customer if the payment fails because the subscription gets canceled and they will need to created a new one to get back in the system
Hm, let me test this on my end.
From my test, voiding the invoice works: https://stripe.com/docs/api/invoices/void and the credit balance goes back to the customer to decrease the next invoice amout due.
in general should i be voiding invoices that fail?
If you expect the customer to pay eventually, I would not as voiding is a terminal state: https://stripe.com/docs/invoicing/overview#void similar to deleting an invoice.
we have a custom integration with stripe so even if they paid again it would be on a new invoice not the existing one
since we cancel the subscription when the payment fails
so should i be voiding invoices in general in this way
Ah, you did mention that you cancel the subscription. In this case, that makes sense.
can i void the invoice from the dashboard
also should i void it or mark it as uncollectible
Yes, you should be able to void it from the Dashboard.
Please refer to this document, https://stripe.com/docs/invoicing/overview#uncollectible. It depends on your business use case.
From what you described above, I think void suits better.
However, this would be up to you and your business needs.
@raw haven let's keep chatting here if you have any follow up questions.