title: Stripe checkout button doesn't open checkout window
body: <p>I'm trying to integrate Stripe check out. For that I'm following this documentation:</p>
  
  <p><a href="https://stripe.com/docs/recipes/subscription-signup#creating-the-signup-form-using-checkout" rel="nofollow noreferrer">https://stripe.com/docs/recipes/subscription-signup#creating-the-signup-form-using-checkout</a></p>
  
  <p>So I pasted that <code>&lt;script&gt;</code> tag inside my form, like:</p>
  
  <pre><code>&lt;form action="/create_subscription.php" method="POST"&gt;
    &lt;script
      src="https://checkout.stripe.com/checkout.js" class="stripe-button"
      data-key="pk_test_lrpNHu3jIKBoBo2ZLZ8dzzBh"
      data-image="images/marketplace.png"
      data-name="Emma's Farm CSA"
      data-description="Subscription for 1 weekly box"
      data-amount="2000"
      data-label="Sign Me Up!"&gt;
    &lt;/script&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The document says that when the user clicks on the Signup button it should open a pop up asking card details, but instead of that it directly submits the form.</p>
  
  <p>I pretty sure that Stripe key has nothing to do with that, but still I have used the correct key. Also, there is no any Javascript error on the console.</p>
  
  <p>I have almost searched everything on the internet, however still no luck.</p>
  
  <p>PS: I'm on http and not https, not sure if that can be the issue.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I thought the issue was running on HTTP instead of HTTPS as it was mentioned here:</p>
  
  <p><a href="https://stripe.com/docs/checkout#does-checkout-require-https" rel="nofollow noreferrer">https://stripe.com/docs/checkout#does-checkout-require-https</a></p>
  
  <p>But now I don't think that it could be the issue as it working fine here on HTTP:</p>
  
  <p><a href="http://demo.ilovephp.net/stripe/stripe_pay_checkout_demo.php" rel="nofollow noreferrer">http://demo.ilovephp.net/stripe/stripe_pay_checkout_demo.php</a></p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I found the issue: Laravel's default app.js is making issue with Stripe's checkout.js. without app.js it is working fine.</p>
  
  <p><a href="https://laracasts.com/discuss/channels/laravel/issue-with-stripe-api-js-and-laravel-js?page=1" rel="nofollow noreferrer">https://laracasts.com/discuss/channels/laravel/issue-with-stripe-api-js-and-laravel-js?page=1</a></p>
  
  <p>Still I didn't get a good solution for that.</p>
  
  <p>Thanks</p>