Hi All,

I've been struggling with this one for a while but have finally got it to allow a transaction through :-)

From what I can work out the problem I've been having is due to the TAX & handling

For my store I display prices with TAX included (as is normal for retail sales in the UK) The subtotal then displays the total inc VAT, The tax is eg 15 then paypalwpp.php has been calculating a handling amount to offset this (of -15) so that subtotal+tax+handling = order total.

Problem is Paypal can't accept -ve values for the handling so this has been re set to the abs(handling) eg -15 becomes 15.

Paypal then adds up subtotal, tax and handling which gives a value of subtotal+15+15 which doesn't equal the order total. (Its out by twice the tax)

To get round this I have set both the tax and handling to 0 at line 1530 (Shipping also zero as free shipping anyway)

$optionsST['TAXAMT'] = 0;
$optionsST['SHIPPINGAMT'] = 0;
$optionsST['HANDLINGAMT'] = 0;

The subtotal then equals the order total (because they did anyway) and paypal happily lets it through!

This probably only works as: I display all prices inc of tax so the subtotal inc tax, and shipping is zero.

Seems to work with coupons as well!