G'day,
My brother has been having a problem with ZenCart using PayPal Website Payments Pro. The issue is that ZenCart was passing a series of values which did not add up to the order total. This was only on sites which were displaying prices including tax.
A fix, albeit a fairly hacky fix, is attached.
Hopefully this will help some other people with the same problem.
Update: To apply this patch without using the patch command, follow these steps:
1) Backup your files, database, and everything else that matters
2) Make a copy of includes/modules/payment/paypalwpp.php and call it includes/modules/payment/paypalwpp.php.orig
3) Edit the file includes/modules/payment/paypalwpp.php
at line 1446 add this code:
if (DISPLAY_PRICE_WITH_TAX == true)
$optionsST['ITEMAMT'] -= $optionsST['TAXAMT'];
I've included a copy of just this code in the attached file, I recommend copying & pasting it from there, so the indentation is correct.
4) Save the file, enjoy :)
Bookmarks