1 year ago

No such customer: cus_DW8c96lmiJ6L2e - Laravel Cashier

Posted 1 year ago by hdsavani

When create my test account it show me as Exception "no such customer", i want to create customer on stripe with Subscription. My controller method code:

public function orderPost(Request $request)
            $user = User::find(8);
            $input = $request->all();
            $token = $input['stripeToken'];
            try {
                        'email' => $user->email,
                return back()->with('success','Subscription is completed.');
            } catch (Exception $e) {
                return back()->with('success',$e->getMessage());

Please sign in or create an account to participate in this conversation.