#kirito - unpaid invoices

1 messages · Page 1 of 1 (latest)

hasty stratusBOT
sleek forge
#

Hello, can you tell me a bit more about what you are trying to do here? Was this the same kind of decline across your invoices or are you asking if there is a general way to approach this?

wispy rose
#

I'm let say that there is a user created a subscription and paid for the first month, but the payment for the 2nd , 3rd, 4th month has all failed (automatic payment), the user come back and want to continue use our service on the 5th month, but before that we want him to pay for the 2nd, 3rd, 4th, The solution I cam with is to show the user a custom page to update his user information, and I want that he will immediately get charged for all unpaid invoice from before , what stripe api call or method should I use for that.

sleek forge
#

kirito - unpaid invoices

wispy rose
#

then will the other invoice automatically be paid ?

sleek forge
#

No, so you will need to call that on each outstanding invoice

wispy rose
#

I understand thank you

wispy rose
#

How to get all unpaid invoice of subscription

sleek forge
wispy rose
#

which invoice status should I look for : draft, open, paid, uncollectible, or void

modern sable
#

It depends on your business needs, but typically open will be what you want

#

That means finalized (not drafts) and not yet paid

#

The others aren't used unless you configure your integration to use them

wispy rose
#

I understand thank you.

#

what event should I use for subscription default payment method update ?

modern sable
#

On the subscription itself? That would lead to customer.subscription.updated

wispy rose
#

is there not a specific one for only payment method ? I thought that a better solution would be any time subscription payment method update work, I check the status of the subscription and see if it's not active then look for all the invoice in this subscription and try to pay theme using the new payment method.