#tyson
1 messages · Page 1 of 1 (latest)
Have you read https://stripe.com/docs/billing/subscriptions/webhooks ?
customer.subscription.deleted is likely what you're looking for
yes
I was thinking using customer.subscription.deleted but this doesn't get triggered when its cancled
will it get trigured at the end of the period?
triggered*
it doesn't
I am thinking of a logic like this
When request data cancel at the end of period is true then run cascade
Can you share with me the request id of you cancelling a subscription where this event wasn't generated?
That's unexpected behavior
But i guys they still have the membership until the end of peroid so that might not work
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
evt_1MPSnnEmAsCUvewddrNIpqkv
Here you go
its only coming up at customer.subscription.updated
i guess i could delay database changes until the end of peroid
Oh
Yeah if you set it to not cancel immediately and cancel at the end of the billing period then the event will be sent at the end of the billing period. Apologies I misunderstood what you were saying
no worries
So you'll have to inspect the subscription update event payload to be able to tell that you set to cancel at the end of the billing period