CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Fee Amounts on Contributions and Authorize.net as a processor
Pages: [1]

Author Topic: Fee Amounts on Contributions and Authorize.net as a processor  (Read 606 times)

GregoryHeller

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 3
Fee Amounts on Contributions and Authorize.net as a processor
August 19, 2011, 06:27:40 pm
I've seen a thread or two about fee amounts and paypal (http://forum.civicrm.org/index.php?topic=15721.0), but no mention of authorize.net or other processors.  CiviContribute has a field for Fee amount, and i would presume the fee amount is something relatively easy to calculate, or a value that many payment processors pass back to you in some way.

Is there a way to record the fee amount on transactions run through authorize.net?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fee Amounts on Contributions and Authorize.net as a processor
August 19, 2011, 08:08:20 pm

I took a quick look at paypal pro code and authorize.net code and seems like we are retrieving the gross_amount and transaction_id from the return packet, but not the net_amount or the fee_amount

I'm not sure if either of those two processors return the other amounts. If so, might not be too hard to actually retrieve and store the values in civicrm.

If you can take a look at auth.net API and see if it does return the net/fee amount that would be great. Maybe a CA developer could investigate and file an issue and a patch if so. The relevant files are:

CRM/Core/Payment/{PayPalImpl,AuthorizeNet}.php

the code is towards the end of the function doDirectPayment

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Fee Amounts on Contributions and Authorize.net as a processor

This forum was archived on 2017-11-26.