title: Stripe TypeError: Cannot read property 'payment_intent' of undefined
body: <p>I'm integrating the payment methods to the app with Stripe and Paypal and now working on Stripe integration.</p>
  <p>The backend is Node, Sails.js, and the frontend is React.js.</p>
  <p>I followed the guide they provided but and tested the payment processing using testing card.</p>
  <p>But I got the error, which says <strong>TypeError: Cannot read property 'payment_intent' of undefined</strong>.</p>
  <p>Here is my code.</p>
  <pre><code>- Frontend
  this.props.stripe.createPaymentMethod({
      type: 'card',
      card: cardElement,
  }).then(({paymentMethod}) =&gt; {
  // API call
  })
  
  
  - Backend
  subscribe = await stripe.subscriptions.create({
       customer: customerId,
       items: [
          {price: plan.stripe.stripeId},
       ],
       expand: ['latest_invoice.payment_intent']
  });
  
  </code></pre>
  <p>Please help me to fix this issue.</p>