Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor angelleye

    (@angelleye)

    Make sure logging is enabled in the Express Checkout settings. Then attempt the checkout and if it fails, go to /wp-content/plugins/woocommerce/logs/ on the server and you’ll see a log file for Express Checkout.

    Contact me directly and send me a copy of this log file so that I can take a look and help resolve the issue.

    Thread Starter SemiBur

    (@semibur)

    Just sent a message.
    Thank you.

    Plugin Contributor angelleye

    (@angelleye)

    As I mentioned in the email back to you (but also stating here for other viewers) the problem is that your item total is going into the negative and PayPal will not accept that.

    You’ve got the following:

    Shipping = 18.00
    Item 1 = 50.00
    Item 2 (discount) = -64.60

    This gives us a grand total of 3.40, however, the item amount sent to PayPal is -14.60 and they will not accept this.

    Instead, you’ll need to make the discount code so that it provides free shipping and then adjusts the discount accordingly so you’d end up with this:

    Shipping = 0.00
    Item 1 = 50.00
    Item 2 (discount) = -46.60

    This gives you an item total of 3.40 and PayPal will accept that.

    Not ideal, I know, but PayPal does not provide an actual DISCOUNT parameter in their API. That’s why we have to send it as a line item and this particular problem can arise sometimes because of that.

    I have a similar issue. I am using woocommerce measurements, and paypal does not accept any none whole number increments (defeating the purpose of measuerments). When trying to add 6.25lbs at $1.30/lb = $8.125 paypal complains because in the log it converts 6.25 to 6. What can i do? I need the increments and prefer to be able to support paypal.

    Plugin Contributor angelleye

    (@angelleye)

    @bkbillma1, I’m confused. What log are you looking at? You mention that it’s rounding 6.25 to 6…but that’s your measurement data. That has nothing to do with what the plugin would be doing. did you mean it’s rounding $8.125 to $8.13? Or what exactly are you seeing?

    The logging for express checkout. It is setting my quantity to 6. So it calculates 6*1.3 instead of 6.25*1.3

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘10426 – Item total is invalid’ is closed to new replies.