Apply Credit to Failed Invoice

20 views
Skip to first unread message

Jonathan Parker

unread,
Jun 17, 2016, 3:08:37 PM6/17/16
to Stripe API Discussion
Scenario:
Customer has an invalid card on file, and a monthly subscription is attempted to be paid. After the initial payment fails, the customer's credit balance is update to have enough credit to cover the failed invoice.

What is the best way of handling this scenario? I attempted to pay the invoice through the API, but it still attempts to use the default card on file, rather than applying the credit balance. 

Should I forgive the invoice and manually deduct the invoice amount from the credit?

Remi J.

unread,
Jun 17, 2016, 3:10:29 PM6/17/16
to api-d...@lists.stripe.com
Hey Jonathan,

Once an invoice has been attempted, you can't modify its amount anymore. This means that adding an account balance or a coupon will not change the amount that we attempt to charge on the customer's card and instead apply to a future invoice.

As you assumed, I would recommend marking the invoice as forgiven and then deducting its amount from the account balance in your situation!

All the best,
Remi

--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.

Reply all
Reply to author
Forward
0 new messages