title: How Do You Integrate Stripe Checkout Session With Laravel 8
body: <p>I'm new to Stripe and Laravel, but I managed to get Stripe elements working without a problem.  The issue is, I need to pass some shipping rates to the customer via Stripe Checkout Session, because you can't do it through Stripe Elements.  In my StripeController, everything is set up for Stripe Elements, but how exactly do you setup Stripe Checkout in the Laravel 8 controller and the javascript which appears to use express js?</p>
  <p>Here is my Stripe Controller as it is...</p>
  <pre><code>\Stripe\Stripe::setApiKey('####');
  
  // Token is created using Checkout or Elements!
  // Get the payment token ID submitted by the form:
  $token = $_POST['stripeToken'];
  
  $charge = \Stripe\Charge::create([
    'amount' =&gt; $total_amount*100,
    'currency' =&gt; 'usd',
    'description' =&gt; '',
    'source' =&gt; $token,
    'metadata' =&gt; ['order_id' =&gt; uniqid()],
  ]);
  
  // dd($charge);
  </code></pre>