#Saurabh-Subscription

1 messages · Page 1 of 1 (latest)

gentle moat
molten gull
#

I want to cancel subscription from platform automatically.

#

is there any webhook to catch payment is failed?

#

with reason why this payment is failed

gentle moat
molten gull
#

is this setting is applied to all subscriptions?
Can we do different settings for different subscriptions ?

gentle moat
#

This setting applies to all subscriptions.

If you want to manage the subscriptions individually, there's my suggestion

  1. Listen to the customer.subscription.updated event -> this event will be fired when the subscription status becomes past_due
  2. When customer.subscription.updated event occurs, call the API to cancel the subscription https://stripe.com/docs/billing/subscriptions/cancel?dashboard-or-api=api