#i'm a cyborg but that's okay
1 messages · Page 1 of 1 (latest)
When you revoke access depends entirely on your business I guess, but yes you can listen to invoice.payment_failed events: https://stripe.com/docs/billing/subscriptions/overview#subscription-events
Some payments may require 3DS in which they'd also fire a payment_failed event
More info on retries here: https://stripe.com/docs/billing/revenue-recovery/smart-retries
next_payment_attempt on the Invoice would be unset if it was the last attempt I imagine
Ah, cool. I'll check for this then.
Thanks for the help :)
One more thing @sharp heart , what's the value of next_payment_attempt for users who are just purchasing a subscription from checkout page, and the payment fails for some reason?
Hey! Taking over for my colleague. Let me catch up.
That will depends on your settings in the Dashboard:
After a payment attempt on an invoice, its next_payment_attempt value is set using the current subscription settings in your Dashboard.
https://stripe.com/docs/billing/subscriptions/overview#settings:~:text=After a payment,in your Dashboard.