title: "A token may not be passed in as a PaymentMethod. Instead, use payment_method_data with type=card Stripe Error in Laravel
body: <p>My Stripe Controller :-</p>
  <pre><code> try {
          $stripe = new \Stripe\StripeClient(env('STRIPE_SECRET'));
          $customer = $stripe-&gt;customers-&gt;create([
              // 'email' =&gt; 'email@example.com',
              'email' =&gt; $user-&gt;email,
              'name' =&gt; $user-&gt;name
              // 'name' =&gt; 'test'
          ]);
          $payemntid = $stripe-&gt;paymentIntents-&gt;create([
              'amount' =&gt; 100 * $total_amount,
              'currency' =&gt; 'usd',
              'payment_method_types' =&gt; ['card'],
              'customer' =&gt; $customer-&gt;id,
              'payment_method' =&gt; $request-&gt;stripeToken
          ]);
  </code></pre>
  <p>The Error Comes :- {&quot;success&quot;:false,&quot;message&quot;:&quot;A token may not be passed in as a PaymentMethod. Instead, use payment_method_data with type=card and card[token]=tok_1KtVZxSF6gyJgm24q5ZpEFWD.&quot;}</p>
  <p>Any Idea How to Fix This.
  Thanks In Advance</p>