Ok, great. We have the right Paypal account now - took over the weekend to be approved by Paypal. So, we just get that error outlined above:
Item total is invalid.
10426
Invalid Data
UPDATE: i checked out more on it and I think what is happening is that we were testing with a fictitious item that cost ($1 (I changed to 1penny)). and the shipping cost had a Promotion for Free Shipping (so UPS charge would come up as $16.66, but then I have the discounts to discount the cost of Shipping altogether). So, there was not enough to pay UPS. Thus we'd get the error. It will not happen on any items where there's enough charge to pay UPS of course, ( changed very last item to $20, and it worked because there was a positive amt. left of about $4.00)
so, I will need to change the code to skip UPS function altogehter if the there's a PROMO in the cart for the item(s).
If you can let me know where to do that, it will speed it up for me, otherwise I'm trying to figure that out.
I guess it's this piece in webassist code?
function WAEC_eCart1_UPSShipping() {
$totalShipping = 0;
if (true && (("UPS"=="UPS")&&(isset($_SESSION["eCart1_UPS_Quote"]))&&(floatval($_SESSION["eCart1_UPS_Quote"]) != 0))) {
$totalShipping += floatval($_SESSION["eCart1_UPS_Quote"]) + 0;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
As of now I have on the Discounts functions:
function WAEC_eCart1_FreeShipping() {
$totalDiscount = 0;
if (true && (($this->ConditionalTotal("Quantity", "ShippingType", "promo") >= 1))) {
$totalDiscount += floatval($_SESSION["eCart1_UPS_Quote"]) + floatVal("4");//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
(the $4 is our handling charge)