title: Stripe: Retrieving a paymentIntent in Laravel?
body: <p>I am trying to get a paymentIntent to look at the charged amount.  My code is:</p>
  <pre><code>public getIntent($paymentIntentId) 
  {
    $stripe = Stripe::setApiKey('____');
    $intent = $stripe-&gt;paymentIntents-&gt;retrieve($paymentIntentId, []);
    return $intent;
  }
  </code></pre>
  <p>I keep getting an error logging as <code>trying to retrieve property of non-object</code>.  I am not sure what I am doing wrong.  I verified the apiKey is correct and the <code>$paymentIntentId</code> is valid.  When I retrieve it via cURL, it works fine so I assume it's an issue with my Laravel code.</p>