stripe integration on checkoutpage
i am getting this message when i create a createSetupIntent
Undefined method 'createSetupIntent'
i have added the billable trait in the customer model. i have installed cashier but i keep getting this error.
3 Replies
That means at user doesn't have the method createSetupIntent.
You pronbably want to do:
$user = User::find(auth('customer')->id);
providing createSetup^ntent is on the user model.
I have tried that it is not working either
I am using the customer model
dd(auth('customer')->id) what di you get?