#Saurabh-Subscription
1 messages · Page 1 of 1 (latest)
Hi there, you can cancel the subscription via API or dashboard. this doc shows you the how-tos https://stripe.com/docs/billing/subscriptions/cancel
I want to cancel subscription from platform automatically.
is there any webhook to catch payment is failed?
with reason why this payment is failed
You can use the subscription settings to automatically cancel the subscriptions when recurring payments are failed. https://stripe.com/docs/billing/subscriptions/overview#settings
is this setting is applied to all subscriptions?
Can we do different settings for different subscriptions ?
This setting applies to all subscriptions.
If you want to manage the subscriptions individually, there's my suggestion
- Listen to the
customer.subscription.updatedevent -> this event will be fired when the subscription status becomespast_due - When
customer.subscription.updatedevent occurs, call the API to cancel the subscription https://stripe.com/docs/billing/subscriptions/cancel?dashboard-or-api=api