How to force Stripe subscription fees

Does anyone know how can I force my subscription renewals in Stripe? For example, we have an "expired" subscription and 3 attempts to charge during this "expired" period. The customer adds a new payment source (credit card) and wants to use it immediately. But the next charge in the "past years" schedule will be fulfilled in a few days. How can we call immediately (create an invoice and pay)? Any ideas are hugely appreciated!

+5


source to share


3 answers


Each subscription generates an invoice for each billing cycle. Once you have an unpaid (or failed payment) invoice, you can use the invoice payment scheme API call:

https://stripe.com/docs/api#pay_invoice

      

You can either wait for the next try or you can force the invoice to be paid.



Additionally, there is open source software that will do all of the subscription billing functionality with Stripe: https://github.com/service-bot/servicebot

try it.

+5


source


Sorry, you can't. You will either need to create a one-time payment using the saved payment source and customer

-argument; or you can take the amount owed, add it as a new invoice item to the customer record, and then create an invoice .

Finally, you must close and forgive all previous accounts so that they do not interfere with your earning more and take them out of expired status.



Another thing I could recommend is actually changing the retry logic in the toolbar. There are actually three options. If you set the logic to "do nothing" after the third attempt, it will not mark the invoice as unpaid, but will close it. This way, your life will eventually become much easier when they add a new payment method. You just need to remember when people miss payments.

+5


source


I made this API call: https://stripe.com/docs/api/invoices/pay

And I was able to get an invoice to process the payment, although I could not through the web console.

0


source







All Articles