#Eranga-subscriptions

1 messages · Page 1 of 1 (latest)

toxic dock
#

@solemn snow not sure why you specified not using a webhook - that is the answer.

#

webhooks are integral to using Stripe, especially for recurring charge_automatically subscriptions

solemn snow
#

In my use case, I have a webhook to listen to failed payments. And I update my database accordingly when a payment failed

#

Ideally I can use it to identify whether the user has any failed payments

#

When a user tries to add a new credit card, I am also listening to payment_method.attached event. When a payment method is attached, if the customer had failed payment, I am trying to confirm the last payment intent

#

I was hoping I can do this without relying on my database but only using Stripe

#

That is why I asked how to do this without the webhook for payment failure

toxic dock
#

you can certainly list all the open invoices for the customer who just added the card yep, and then attempt payment of those!