title: Get PayPal transaction fee without using IPN?
body: <p>First of all I know there seems to be a few related questions about this which I have read but I can't find a definitive answer to my query. I hope its OK posting this here.</p>
  
  <p>Related: <a href="https://stackoverflow.com/questions/15434555/receive-more-response-data-in-ci-merchant-library-codeigniter">receive more response data in ci-merchant library codeigniter</a></p>
  
  <p>Related: <a href="https://stackoverflow.com/questions/17249355/how-do-i-get-the-information-returned-in-the-ipn-after-a-transaction-in-paypal-u">How do I get the information returned in the IPN after a transaction in PayPal using ci_merchant library?</a></p>
  
  <p>I basically want to get what the paypal IPN returns with CI Merchant.</p>
  
  <p>Now I am calling purchase_return() which is great and returns something like this:</p>
  
  <pre><code>Merchant_paypal_api_response Object
  (
      [_status:protected] =&gt; complete
      [_message:protected] =&gt; 
      [_reference:protected] =&gt; XXXXX
      [_data:protected] =&gt; 
      [_redirect_url:protected] =&gt; 
      [_redirect_method:protected] =&gt; GET
      [_redirect_message:protected] =&gt; 
      [_redirect_data:protected] =&gt; 
  )
  </code></pre>
  
  <p>And I know that CI Merchant doesn't actually have a GetExpressCheckoutDetails call which would contain more details about the transaction.</p>
  
  <p>But according to here: <a href="https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/integration-guide/ECGettingStarted/" rel="nofollow noreferrer">https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/integration-guide/ECGettingStarted/</a> that call wouldn't return anything to do with <strong>mc_fee</strong> or <strong>payment_fee</strong> anyway?</p>
  
  <p>So I am simply asking is this at all possible to get the same sort of data that the paypal IPN returns without actually using it obviously. </p>
  
  <p>Seems a bit backward to have to call the paypal IPN as well just to get additional details like <strong>mc_fee</strong> or <strong>payment_fee</strong> when I am already using the CI Merchant API method which is supposed to eliminate having to use the IPN? I can't believe the API doesn't return this sort of info.</p>
  
  <p>Am I being completely mental here and missed the obvious? I just want to get the paypal fee for that transaction so I can do some accounting my end.</p>
  
  <p>Is this possible?</p>
  
  <p>Hope someone can shed some light.</p>
  
  <p>Thanks,</p>