Forums / Built-in Shipping and Payment Modules / Pulling Paypal Payment Fee Information

Pulling Paypal Payment Fee Information

Views: 943

Results 1 to 6 of 6
7 Jun 2013, 10:26 PM
#1
nightdesigns avatar

nightdesigns

New Zenner

Join Date:
Nov 2008
Posts:
55
Plugin Contributions:
0

Pulling Paypal Payment Fee Information

I'm exporting some info from the database and one piece of information I cannot find is the Paypal "Payment Fee" field. If a user pays by paypal, it does show up in the "paypal" table under the "mc_fee" field, however if they pay by credit card through paypal that field is blank. In both cases, on the admin order details page, it does show all of the paypal transaction information along with the fee...so that info must be somewhere.

Thanks.

7 Jun 2013, 11:23 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Pulling Paypal Payment Fee Information

It is in the table "paypal" and is the record "payment_fee" I believe

Zen-Venom Get Bitten

8 Jun 2013, 3:03 AM
#3
nightdesigns avatar

nightdesigns

New Zenner

Join Date:
Nov 2008
Posts:
55
Plugin Contributions:
0

Re: Pulling Paypal Payment Fee Information

My "Payment_Fee" field is "NULL" throughout the entire table. The "MC_Fee" field is the only place that I've found something related to the payment fee.

8 Jun 2013, 11:33 AM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Pulling Paypal Payment Fee Information

The mc_fee field (all lower case) contains the fee you paid to PayPal.

8 Jun 2013, 4:45 PM
#5
nightdesigns avatar

nightdesigns

New Zenner

Join Date:
Nov 2008
Posts:
55
Plugin Contributions:
0

Re: Pulling Paypal Payment Fee Information

my mc_field contains data IF they paid via paypal. If they paid using a credit card via paypal website payments pro, that data is "NULL"

10 Jun 2013, 8:45 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Pulling Paypal Payment Fee Information

If the data is in the table, you can report on it.
If the data is not in the table, but displays in the Admin, then in the admin it is being retrieved in real-time directly from PayPal, and is not stored locally in your database ... thus you will not be able to run reports on it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.