title: Paypal REST API Bug - Fee Charged By PayPal NOT SET in Response
body: <h1>UPDATE: Issue applies to both TEST and LIVE API Requests</h1>
  
  <p>At first I thought this was a Test Environment bug but I've confirms it applies to production as well. It's critical to know <code>Fees Charged By PayPal</code>. </p>
  
  <hr>
  
  <p><strong>Is there a way to get the Paypal Test environment (<a href="http://developer.paypal.com" rel="nofollow noreferrer">developer.paypal.com</a>) to respond with fees charged by PayPal?</strong>  <em>Neither a <code>Sale</code> or a <code>Sale Lookup</code> seem to return the <code>Paypal Fee</code> seen in live transactions.</em> Are we forced to test with live transactions (not a best practice)? Without the same fee values you see in the live environment, its hard to unit test our accounting system in development.</p>
  
  <h2>Request - Credit Card Charge ($43) with Stored Card</h2>
  
  <pre><code>        $cardToken = new CreditCardToken();
          $cardToken-&gt;setCredit_card_id( $cc-&gt;getRefid() );
  
          $fi = new FundingInstrument();
          $fi-&gt;setCredit_card_token( $cardToken );
  
          $payer = new Payer();
          $payer-&gt;setPayment_method('credit_card');
          $payer-&gt;setFunding_instruments(array($fi));
  
          $amount = new Amount();
          $amount-&gt;setCurrency('USD');
          $amount-&gt;setTotal('43.00');
  
          $transaction = new Transaction();
          $transaction-&gt;setAmount($amount);
          $transaction-&gt;setDescription($note);
  
          $payment = new Payment();
          $payment-&gt;setIntent('sale');
          $payment-&gt;setPayer($payer);
          $payment-&gt;setTransactions(array($transaction));
  
          $response = $payment-&gt;create();
  </code></pre>
  
  <h2>Response - Approved (<a href="http://pastebin.com/UvinBGuc" rel="nofollow noreferrer">full response</a>)</h2>
  
  <pre><code>PayPal\Api\Transaction Object
                          (
                              [_propMap:PPModel:private] =&gt; Array
                                  (
                                      [amount] =&gt; PayPal\Api\Amount Object
                                          (
                                              [_propMap:PPModel:private] =&gt; Array
                                                  (
                                                      [total] =&gt; 43.00
                                                      [currency] =&gt; USD
                                                      [details] =&gt; PayPal\Api\AmountDetails Object
                                                          (
                                                              [_propMap:PPModel:private] =&gt; Array
                                                                  (
                                                                      [subtotal] =&gt; 43.00
                                                                  )
  
                                                          )
  
                                                  )
  
                                          )
  </code></pre>
  
  <h2>Documentation - <code>Fee Charged By PayPal</code></h2>
  
  <p><strong>(Below Image)</strong> - details object <a href="https://developer.paypal.com/webapps/developer/docs/api/#details-object" rel="nofollow noreferrer">from the documentation</a> showing a <code>(string) fee charged by PayPal</code> - Which doesn't seem to expose itself in the test environment.</p>
  
  <p><img src="https://i.stack.imgur.com/2f8Lj.png" alt="enter image description here"></p>