title: Stripe PaymentIntent with confirmation method manual fails every time
body: <p>I'm using Laravel with a personal integration of the Stripe API (using Stripe API from github).<br />
  Everything was working fine until i switched to manual confirmation mode, and now i'm receiving the following error:</p>
  <pre><code>This PaymentIntent pi_**************uVme cannot be confirmed using your publishable key because its `confirmation_method` is set to `manual`. Please use your secret key instead, or create a PaymentIntent with `confirmation_method` set to `automatic`.
  </code></pre>
  <p>Any idea?<br />
  This is my current code (which is not working):</p>
  <pre><code>Stripe::setApiKey(config('services.stripe.secret')); // config('services.stripe.secret') returns &quot;sk_test_gFi********************nMepv&quot;
  
  $paymentIntent = PaymentIntent::create([
      'amount' =&gt; $orderSession-&gt;order_total * 100,
      'currency' =&gt; 'eur',
      'description' =&gt; &quot;Pagamento di &quot;.(price($orderSession-&gt;order_total)).&quot;€ a &quot;.$orderSession-&gt;user-&gt;user_name.&quot; in data &quot;.(now()-&gt;format(&quot;d-m-Y H:m:s&quot;)),
      'metadata' =&gt; [
          'subtotal' =&gt; $orderSession-&gt;order_subtotal,
          'user'=&gt; &quot;{$orderSession-&gt;user_id} : {$orderSession-&gt;user-&gt;user_email}&quot;,
          'wines'=&gt; substr(
                          $orderSession-&gt;wines()-&gt;select('wine_id', 'quantity')-&gt;get()-&gt;each(
                              function($el){
                                  $el-&gt;q= $el-&gt;quantity;
                                  $el-&gt;id = $el-&gt;wine_id;
                                  unset($el-&gt;wine_id, $el-&gt;pivot, $el-&gt;quantity);
                              }
                          )-&gt;toJson(),
                          0,
                          500
                      ),
      ],
      'confirmation_method' =&gt; 'manual',
  ]);
  </code></pre>
  <p>JS frontend:</p>
  <pre><code>&lt;button class=&quot;myButtonPayment&quot; id=&quot;card-button&quot; type=&quot;button&quot; data-secret=&quot;{!!$stripePaymentIntent-&gt;client_secret!!}&quot; &gt;&lt;span&gt;Pay&lt;/span&gt;&lt;/button&gt;
  ...
  &lt;script&gt;
  cardButton.addEventListener('click', function() {
      if(!document.getElementById('order_telephone_number').value || /^\+?[0-9 ]{6,20}$/.test(document.getElementById('order_telephone_number').value)){
             stripe.handleCardPayment(
                 clientSecret, cardElement, {
                     payment_method_data: {
                           billing_details: {name: cardholderName.value}
                     }
                 }
             ).then(function (result) {
                 if (result.error) {
                     console.log(result.error);
                } else {
                     document.getElementById('myForm').submit();
                }
             });
      } 
  });
  &lt;/script&gt;
  </code></pre>
  <p>The error is occuring when I click on the button (so is not related to the part of the code where I confirm the payment)</p>
  <p>The error serialization is the following:</p>
  <pre><code>{
     &quot;type&quot;:&quot;invalid_request_error&quot;,
     &quot;code&quot;:&quot;payment_intent_invalid_parameter&quot;,
     &quot;doc_url&quot;:&quot;https://stripe.com/docs/error-codes/payment-intent-invalid-parameter&quot;,
     &quot;message&quot;:&quot;This PaymentIntent pi_1H3TQ*********T00uVme cannot be confirmed using your publishable key because its `confirmation_method` is set to `manual`. Please use your secret key instead, or create a PaymentIntent with `confirmation_method` set to `automatic`.&quot;,
     &quot;payment_intent&quot;:{
        &quot;id&quot;:&quot;pi_1H3***********uVme&quot;,
        &quot;object&quot;:&quot;payment_intent&quot;,
        &quot;amount&quot;:2060,
        &quot;canceled_at&quot;:null,
        &quot;cancellation_reason&quot;:null,
        &quot;capture_method&quot;:&quot;automatic&quot;,
        &quot;client_secret&quot;:&quot;pi_1H3TQ********T00uVme_secret_2T7Di*********nkoaceKx&quot;,
        &quot;confirmation_method&quot;:&quot;manual&quot;,
        &quot;created&quot;:1594415166,
        &quot;currency&quot;:&quot;eur&quot;,
        &quot;description&quot;:&quot;....&quot;,
        &quot;last_payment_error&quot;:null,
        &quot;livemode&quot;:false,
        &quot;next_action&quot;:null,
        &quot;payment_method&quot;:null,
        &quot;payment_method_types&quot;:[
           &quot;card&quot;
        ],
        &quot;receipt_email&quot;:null,
        &quot;setup_future_usage&quot;:null,
        &quot;shipping&quot;:null,
        &quot;source&quot;:null,
        &quot;status&quot;:&quot;requires_payment_method&quot;
     }
  }
  </code></pre>