title: Omnipay Payfast notify_url Laravel 4
body: <p>Im trying to complete my omnipay laravel 4 and Payfast Integration. I am at the point where i can successfully make a transaction, but I'm having trouble getting the notify_url to work.</p>
  
  <pre><code>$gateway = Omnipay::create('PayFast');
      $gateway-&gt;setMerchantId = '10000100';
      $gateway-&gt;setMerchantKey = '46f0cd694581a';
  
      $response = $gateway-&gt;purchase([
              'merchant_id' =&gt; '10000100',
              'merchant_key' =&gt; '46f0cd694581a', 
              'return_url' =&gt; 'http://signup.areweup.co.za/return',
              'cancel_url' =&gt; 'http://signup.areweup.co.za/cancel',
              'notify_url' =&gt; 'http://signup.areweup.co.za/notify',
              'name_first' =&gt; 'Warren',
              'name_last'  =&gt; 'Hansen',
              'm_payment_id' =&gt; '8542',
              'amount' =&gt; '39.00', 
              'item_name' =&gt; 'Are We Up',
              'description' =&gt; 'Peace of mind at just R39 a month.'
              ])-&gt;send();
  
      if ($response-&gt;isSuccessful()) {
          // payment was successful: update database
          print_r($response);
      } elseif ($response-&gt;isRedirect()) {
          // redirect to offsite payment gateway
          $response-&gt;redirect();
      } else {
          // payment failed: display message to customer
          echo $response-&gt;getMessage();
      }
  </code></pre>
  
  <p>I have a POST route setup to receive the ITN response</p>
  
  <pre><code>                $gateway = Omnipay::create('PayFast');
              $gateway-&gt;setMerchantId = '10000100';
              $gateway-&gt;setMerchantKey = '46f0cd694581a';
  
              $response = $gateway-&gt;CompletePurchase([
                      'merchant_id' =&gt; '10000100',
                      'merchant_key' =&gt; '46f0cd694581a', 
                      'return_url' =&gt; 'http://signup.areweup.co.za/return',
                      'cancel_url' =&gt; 'http://signup.areweup.co.za/cancel',
                      'notify_url' =&gt; 'http://signup.areweup.co.za/notify',
                      'name_first' =&gt; 'Warren',
                      'name_last'  =&gt; 'Hansen',
                      'm_payment_id' =&gt; '8542',
                      'amount' =&gt; '39.00', 
                      'item_name' =&gt; 'Are We Up',
                      'description' =&gt; 'Peace of mind at just R39 a month.'
                      ])-&gt;send();
  
              if ($response-&gt;isSuccessful()) {
                  // payment was successful: update database
                  print_r($response);
              } elseif ($response-&gt;isRedirect()) {
                  // redirect to offsite payment gateway
                  $response-&gt;redirect();
              } else {
                  // payment failed: display message to customer
                  echo $response-&gt;getMessage();
              }   
  </code></pre>
  
  <p>Only difference on the notify_url is that im calling the CompletePurchase method. Any help here would be greatly appreciated. The ITN Payfast Documentation is here:<a href="https://www.payfast.co.za/developers/itn" rel="nofollow">payfast itn documentation</a></p>