title: How do I use omnipay to check if it's a pending payment or not
body: <p>I'm using Omnipay 2.1 and CodeIgniter 2.1.4 to receive Paypal payments.</p>
  
  <p>I use this line to complete the purchase and check if the payment was sent:</p>
  
  <pre><code>$bool = $gateway-&gt;completePurchase(array('amount' =&gt; $total, 'currency' =&gt; 'EUR'))
                  -&gt;send()
                  -&gt;isSuccessful();
  </code></pre>
  
  <p>But I noticed that the method <code>isSuccessful()</code> will also return <code>true</code> if the payment is on pending.</p>
  
  <p>How can I use omnipay to check if it's a pending payment or not?</p>