title: Stripe Create Payment Intents Promise Never Resolves
body: <p>I signed up for a Stripe account and followed some simple steps to get up and running with Node. I just installed the package and tested a payment Intents with my test key:</p>
  <pre><code>const Stripe = require('stripe');
  
  const handleStripe = async () =&gt; {
      const stripe = Stripe(testKeyString);
     
      console.log(“we make it here”);
  
      try {
  
          const paymentIntent = await stripe.paymentIntents.create({
              amount: 1000,
              currency: 'usd',
              payment_method_types: ['card'],
              receipt_email: 'jenny.rosen@example.com',
          });
     
          //we never make it here
          console.log(paymentIntent);
      }
      catch(err){
          //we never make it here either
          console.log(err);
      }
  }
  
  </code></pre>
  <p>The console logs “we make it here”, but nothing else. The promise is never resolved.</p>
  <p>I suspect that this might be a bug with the stripe npm package. Anybody have any thoughts on why the promise is never returned?</p>
  <p>EDIT: sorry, I wasted everyone’s time here. I was following the docs QuickStart where it said “install a client library” and I assumed it was for the front end. So a very silly mistake on my part thinking that it was a good idea to make a payment intent from the front end with a secret key. Just getting going with the Stripe API and I’m off to a bad start. Thanks for your comments and answer</p>
  <p>Thanks</p>