#Mathankumar-subscription
1 messages · Page 1 of 1 (latest)
after 3 payment failed in 15 days i just need to downgrade subscription plan
Hi there, so you want to create the prices of the subscription when all payment retries fail?
no, i just want to know via webhook when all payment retries fail
You can listen to the customer.subscription.updated event and check its status, If all retries fail, the subscription will be canceled, unpaid or past_due according to your setting https://stripe.com/docs/billing/subscriptions/overview#smart-retries
okay, nice, can i get the instant update via webhook when payment failed
sure, you can listen to invoice.payment_failed
Yes
great...
how can test payment failed in stripe test mode account ?
You can use one of the decline test cards https://stripe.com/docs/testing#declined-payments