Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shan_cc's avatar

Cancelled subscription from Stripe and still user have access in App

I have integrated Cashier in Laravel and everything works perfectly except for one thing, which is if user cancels the subscription login into the user's Stripe account then the user still has access in the App.

I have tested this in sandbox, created a DAILY pricing plan, subscribed an user in the plan, logged into stripe account and cancelled the user's subscription, but the user still have access in the App after 2 days of cancellation.

But if I cancell the subscription through the App then it works perfectly.

0 likes
3 replies
automica's avatar

@shan_cc ah. sorry I missed cashier part, but no matter as spark also uses cashier and is Laravel.

Anyhoo, I would resolve this issue by setting up a webhook in stripe so that it calls your application when a plan is cancelled.

Set the webhook to trigger:

$user->subscription('default')->cancelNow();

see https://laravel.com/docs/8.x/billing#cancelling-subscriptions

Theres a whole series about stripe api on laracasts - the webhook episode is https://laracasts.com/series/how-to-accept-payments-with-stripe/episodes/11

Please or to participate in this conversation.