#mr_pablo-webhook

1 messages ยท Page 1 of 1 (latest)

spare vigil
#

๐Ÿ‘‹ Happy to help

#

customer.subscription.deleted doesn't contain the information which flow that a subscription is cancelled

fast rain
#

so there is some kind of data in the event that can be looked at?

#

(sorry, i was afk)

tawdry ingot
#

There's no way to differentiate between a user cancellation and a cancellation for say exceeding payment retries

fast rain
#

and what event, if any, is triggered if a payment is missed?

#

so i see that cancelling immediately triggers the delete event, and telling it to stop after the next period triggers the update event

#

but if payments fail, what event does that trigger?

tawdry ingot
fast rain
#

and, once a sub thats been told to cancel after the next period, is the delete event triggered when that date comes around?

#

eg i have a monthly sub that i have told to end after before the next move, the update event is fired, but at the end of the month, is the delete event triggered?

tawdry ingot
fast rain
#

so i just cancelled a sub, setting it to expire in 3 days time. its triggered the update event, with "cancel_at_period_end" set to false

#

in 3 days time (monday), will the delete event trigger?

tawdry ingot
#

with "cancel_at_period_end" set to false
In that scenario, cancel_at will be set with the 3 days timestamp

#

Which is when the customer.subscription.deleted event will fire

fast rain
#

just back to failed payments, if that triggers a sub update event, does that include info about why its failed? And, how many times does a payment fail before the subscription is automatically cancelled by stripe?

tawdry ingot
fast rain
#

ah ok, thanks

tawdry ingot
#

np!