#eleanor-subscriptions-error
1 messages · Page 1 of 1 (latest)
Depending on your setup, probably a combination of customer.subscription.updated and invoice.payment_failed.
On the customer.subscription.updated, you can check the status of the Subscription: https://stripe.com/docs/api/subscriptions/object#subscription_object-status
On invoice.payment_failed you would want to check its status as well: https://stripe.com/docs/api/invoices/object#invoice_object-status
When I use the Stripe CLI to track webhooks and then use test mode to try making a failed payment, the customer.subscription.updated one gives me status: active still
Also, would it matter whether I track invoice.payment_failed or payment_intent.payment_failed?
A single failed payment will not cancel the subscription by default. You can set what happens after all payment retries fail here: https://dashboard.stripe.com/settings/billing/automatic
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ah, okay! Thank you for this, super helpful! So if all retries fail then it would be status: incomplete?
Also, would it matter whether I track invoice.payment_failed or payment_intent.payment_failed?
Again, that depends on what you're trying to do. If you want to prompt your user for a new payment method, for example, you would want to use thesubscriptionevents and update the default payment method on the customer.
Yes, or open depending on if you're talking about the Invoice or the Subscription
Ok! I think this should cover everything for now, thanks