Short answer
When a customer cancels at period end, the subscription runs on until the period ends, cancel_at_period_end becomes true, and Stripe sends customer.subscription.updated. Access should continue until the period ends. When it ends, Stripe sends customer.subscription.deleted: that’s the event that should remove access. Removing access on the update cuts people off early; ignoring the deleted event never removes it.
Which event means what, and the fix
01
Access removed as soon as they cancel
“This allows the subscription to complete the duration of time the customer has already paid for.” Stripe, Cancel subscriptions
If your webhook handler treats customer.subscription.updated with cancel_at_period_end set as a cancellation, paying customers lose access early. Show “Cancels on [date]” in the app instead, and keep access until the subscription actually ends.
02
Access never removed
“The cancellation can result from a direct call to delete the subscription or when a subscription with cancel_at_period_end: true reaches the end of its billing period.” Stripe, Cancel subscriptions
If nothing listens for customer.subscription.deleted, the app never learns the subscription ended. Handle it, find the user by the customer or subscription ID, and remove access.
03
A canceled customer changed their mind
“To stop a scheduled cancellation using the API, set cancel_at_period_end to false.” Stripe, Cancel subscriptions
A scheduled cancellation can be undone any time before the period ends by setting cancel_at_period_end back to false. Stripe then sends another customer.subscription.updated, so clear the “Cancels on” notice when it arrives.
Checked against the vendor’s docs on : Stripe docs: Cancel subscriptions; Stripe docs: Integrate the customer portal (webhooks).
Rather hand it over?
Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.
- $950Stripe Billing Fix and SetupSubscriptions, webhooks, customer portal and failed payments set up or fixed, tested in Stripe test mode.See scope and start
- from $450App Fix TicketOne reproducible bug in an existing mobile or web app, diagnosed and fixed.See scope and start
Related: Stripe paid but account not upgraded · Webhook shows 200, database not updated · Stripe customer portal not working