What I did was: In paypaldp.php (Paypal Website Payments Pro class) insert this code to the rows 1301-1303, in paypalwpp.php (Paypal Express Checkout) insert to the rows 1519-1522:
PHP Code:
unset($optionsST['TAXAMT']);
unset($optionsST['SHIPPINGAMT']);
unset($optionsST['HANDLINGAMT']);
The modified code will like this in both files:
PHP Code:
// subtotals have to add up to AMT
// Thus, if there is a discrepancy, make adjustment to HANDLINGAMT:
$st = $optionsST['ITEMAMT'] + $optionsST['TAXAMT'] + $optionsST['SHIPPINGAMT'] + $optionsST['HANDLINGAMT'];
if ($st != $optionsST['AMT']) $optionsST['HANDLINGAMT'] += strval($optionsST['AMT'] - $st);
//**************inserted code for unset subtotals********************************************************************
unset($optionsST['TAXAMT']);
unset($optionsST['SHIPPINGAMT']);
unset($optionsST['HANDLINGAMT']);
//*********************************************************************************************
/* //PayPal API spec contradicts itself ... and apparently neither of these "requirements" are enforced.
//Thus skipping this section for now:
I suggest you, before make the change, backup both files, if you make mistake, you can upload the original files.