Closed JohnnyWalkerDigital closed 3 years ago
Hey there,
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to report back and I'll gladly help you out and re-open this issue.
Thanks!
Actually was just about to delete. I think it's fine. I just compared the cus and sub IDs and the ones that are failing are deleted customers. Thanks.
I have a custom user model in Laravel. Everything is working as expected, including Cashier. The only problem I'm having is with Stripe's webhook. I'm sure I've configured everything correctly, but I'm getting a weird error on
customer.subscription.deleted
events (and possibly others, too).The error is:
I have added
CASHIER_MODEL: App\Models\Person
to my .env file. Obviously the webhook must be talking to Laravel and reading the .env successfully to even get this error message. (How else would it know the "Person" model?)My question is: Why can't Cashier find the model?
My
App/Models/Person.php
is working perfectly fine with every other aspect of my app, including Cashier. I can register, create subscriptions, new Stripe users, etc. all fine. It's just the webhook.I have
use Laravel\Cashier\Billable;
at the top of the class. I have added the following toVerifyCsrfToken.php
:This is the full error: