title: Omnipay / Paypal Gateway - Transaction shows as success whereas Paypal Sandbox account do not show debt/credit of the transaction
body: <p>1) I am triying for a while to get Omnipay / Paypal to work. My issue is I get "ACK = Success" but when going into the Sandbox test accounts, neither the buyer nor seller shows the transaction as booked. </p>
  
  <p>2) I also got the feeling not all APIs are correctly transferred to Paypal (e.g. Brandname shows correctly using Angell library but with Omnipay it doesn't take the variable. </p>
  
  <p>Anybody who can help on those two issues.? - See my code below. I checked other articles here, they don't solve my problem.</p>
  
  <pre><code>&lt;?php
  //
  // Input Variables
  //
  
  
  // Config
  $domain = "http://localhost";
  $directory = "http://localhost/omnipay/";
  $returnURL = $directory."success.php";      
  $cancelURL = $directory."cancel.php";   
  $landingpage = "Billing";                                               
  
  $brandname = "TEST COMPANY";;   
  $customerservicenumber  = "";
  
  // Purchase Data
  $invoiceNumber = "0000200202023939";        
  $currencyCode = "USD";
  
  // PRODUCT DATA 
  
  $subscriptionName = "XXX";                          
  $subscriptionDesc = "ZZZ";  
  $subscriptionAmt = "5.00";                      
  
  
  
  require 'vendor/autoload.php';
  
  use Omnipay\Omnipay;
  
  
  $gateway = Omnipay::create('PayPal_Express');
  $gateway-&gt;setUsername('XXX');
  $gateway-&gt;setPassword('XXX');
  $gateway-&gt;setSignature('XXX');
  $gateway-&gt;setTestMode(true);
  
  $response = $gateway-&gt;purchase(
      array(
          // Settings
          'brandname' =&gt;  '',
              'customerservicenumber'=&gt; '',           
      'cancelURL' =&gt;  $cancelURL,
      'returnURL' =&gt;  $returnURL,
              'reqconfirmshipping' =&gt; '0',
              'noshipping' =&gt; '1',                            
  
      'allownote' =&gt;  '0',    
  
      // Buyer data
      'email' =&gt;  $email,                         
      'description'=&gt; $subscriptionDesc,
      'amount'=&gt;  $subscriptionAmt,
      'currency'=&gt;    $currencyCode,
       )  
  )-&gt;send();
  
  $response-&gt;redirect();
  
  ?&gt;
  </code></pre>
  
  <p>success.php is the same script, except for the end</p>
  
  <p>....</p>
  
  <pre><code>)-&gt;send();
  $data = $response-&gt;getData();
  
  //echo '&lt;pre&gt;'; print_r($data);
  
  if($data['ACK'] == "Success"){
  echo "ACK = Success!!!!!!";
  }
  ?&gt;
  </code></pre>
  
  <p>As said, I always got ACK = Success at the end, but the amounts are not deducted from the Sandbox user accounts. So something is wrong. Any idea?</p>