#amarsbar2000

1 messages · Page 1 of 1 (latest)

timber flowerBOT
maiden river
#

Hi Vanya

little basin
#

Hi, let me help you with this.

maiden river
#

Can I give some more context?

little basin
#

I understand what you're trying to do.

maiden river
#

We have a subscription business. When our customers automatic payments fail. We send them a customer portal payment method update deep link. They click this link and update their payment method. But we get a lot of support tickets saying "I have updated my payment method but my subscription is still overdue"

#

Ok

little basin
#

You can listen to:
setup_intent.succeeded
payment_method.attached
Any would work.

#

However, you can also configure Stripe to send those emails automatically, and then you don't need to do anything else:

timber flowerBOT
maiden river
#

So if I listen to setup_intent.succeeded and fire some code on that webhook, how do I get the customers invoices, and retry any open invoices with the newest payment method?

#

I am using node

vital field
#

Passing customer and status parameters to get the open invoices

maiden river
#

Right that makes sense

#

But how can I retry the invoice charge with the payment method that the cusdtomer has just added (they may have lots of other payment methods on their account)

vital field
maiden river
#

Also, can you pay multiple invoices at once with

vital field
vital field
#

We don't really have any batch endpoints

maiden river
#

Ok thanks for your help.