#TazI1I-webhook
1 messages · Page 1 of 1 (latest)
You'd want to listen for customer.subscription.deleted event for cancellation
https://stripe.com/docs/billing/subscriptions/integrating-customer-portal?platform=billing#cancellation
Ah ok it's an other event
yup
update is just for subscription ?
not sure I understand the question
sorry ^^
the customer.subscription.update event sends a webhook only when a user subscribes
and customer.subscription.delete event sends a webhook only when a user cancel subscribes
ah no
Actually for a new subscription you'd want to listen to customer.subscription.created
https://stripe.com/docs/api/events/types#event_types-customer.subscription.created
For any changes that happen to a subscription (like upgrade, downgrade or even marking subscription for cancellation at the billing period end etc)
You'd receive customer.subscription.updated
And for cancellation customer.subscription.deleted
OK
if my client does not pay the subscription, 1 month later
is customer.subscription.deleted ?
sorry i'm french and my english is sooo bad
no for this example i received customer.subscription.updated, it's correct ?
All good
Yup. You'd receive .updated event where subscription status would be past_due
Ok perfect, thanks you for your help and for your explanations