Category : laravel-cashier

Need help with setting up a monthly subscription with stripe. First I pass $intent variable to the view where the form is located: public function checkoutForm() { $user = auth()->user(); $intent = $user->createSetupIntent(); return view(‘app.payments.form’, compact(‘intent’)); } My HTML form: <form action="{{route(‘app.payments.checkout’)}}" method="POST" id="payment-form"> @csrf <div class="form-row"> <div> <label class="form-label">Email</label> <input id="email" name="email" class="form-control"> </div> ..

Read more

I’m attempting to use Laravel Cashier to retrieve line items of the client’s upcoming invoice. I’m having difficulty obtaining the invoice in the first place. Though I’ve found the undocumented public function "upcomingInvoice," I can’t get any of its protected properties out. Even with it, I’m having trouble understanding how to use the poorly documented ..

Read more

Why are methods not found in Authenticatable? Im using Laravel 6 Cashier 10 with Stripe API. Please see the following errors in my Subscription Controller. Method ‘createSetupIntent’ not found in IlluminateContractsAuthAuthenticatable|null Method ‘addPaymentMethod’ not found in IlluminateContractsAuthAuthenticatable|null Unhandled StripeExceptionApiErrorException The above errors show in up in PHP storm. When the code is actually ran in ..

Read more