title: How use Omnipay for Laravel 5?
body: <p>i have the test code, but how i can configure it for payments with paypal?</p>
  
  <p>this is the test code, but if i want do it with paypal? how should i do it?</p>
  
  <pre><code>$cardInput = [
          'number'      =&gt; '4444333322221111',
          'firstName'   =&gt; 'MR. WALTER WHITE',
          'expiryMonth' =&gt; '03',
          'expiryYear'  =&gt; '16',
          'cvv'         =&gt; '333',
      ];
  
      $card = Omnipay::creditCard($cardInput);
      $response = Omnipay::purchase([
          'amount'    =&gt; '100.00',
          'returnUrl' =&gt; 'http://bobjones.com/payment/return',
          'cancelUrl' =&gt; 'http://bobjones.com/payment/cancel',
          'card'      =&gt; $cardInput
      ])-&gt;send();
  
      dd($response-&gt;getMessage());
  </code></pre>
  
  <p>Here's documentation: <a href="https://github.com/ignited/laravel-omnipay" rel="nofollow">https://github.com/ignited/laravel-omnipay</a></p>
  
  <p>Thank's</p>