Hi, I'm using Carl's paypal transaction script from here:
http://www.gravityhelp.com/forums/topic/adding-paypal-transaction-fee
Strangely, when I change the percent to 2.75% (instead of 2.4%) and remove the added ยข30 fee, I get the following message:
"The link you have used to enter the PayPal system contains an incorrectly formatted item amount."
The code I've changed is as follows:
return total + (total * 0.0275);
from the Javascript, so the 2.75% is included in the total on the form.
Then, in the add_filter, I change:
$fee = ($total * 0.024) + 0.3;
to:
$fee = $total * 0.0275;
(Note: I tried both with and without parenthesis around the operation.)
It took me a while to figure out that when I put the original code back in place, it worked fine. So what is it Paypal doesn't like about my 2.75%?
Any ideas? Thank you for your help!