It seems I found it, the issue is related to: https://github.com/laravel/cashier/issues/319 It looks like it will start return as not subscribed in the next day.
Aug 8, 2016
1
Level 1
L5.2 Cashier Check Subscription Status Issue
Hello,
I have a user who subscribed to a Plan with 1 Day Trial then the Payment fails and the Failed Subscriptions webhook has been called and it was successful (The ends_at filled as expected).
The Middleware still returning that the user still subscribed, and follows some more info:
$request->user()->subscribed('basic') returns 1
$request->user()->subscribed('basic', 'basic') returns 1
$request->user()->subscription('basic')->onTrial() returns 1
$request->user()->subscription('basic')->cancelled() returns 1
DB Fields for this user subscription:
trial_ends_at 2016-08-08 13:54:38 UTC
ends_at 2016-08-08 14:56:53 UTC
Until this moment it returns that it's subscribed user.
Please note that I'm running Stripe in Test mode. Any thoughts on this? What I'm doing wrong?
Thank you.
Please or to participate in this conversation.