Support » Plugin: WooCommerce PayPal Checkout Payment Gateway » Paypal error 10431

  • Resolved yopaapps


    WordPress v4.8
    WooCommerce PayPal Express Checkout Gateway v1.4.2

    My customer reported a Paypal error 10431.

    Checking the logs, I believe this is the offending portion:
    [L_PAYMENTREQUEST_0_NAME14] => Line Item Amount Offset
    [L_PAYMENTREQUEST_0_DESC14] => Adjust cart calculation discrepancy
    [L_PAYMENTREQUEST_0_AMT14] => 5.6843418860808E-14

    and the error message:
    [L_ERRORCODE0] => 10431
    [L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
    [L_LONGMESSAGE0] => Item amount is invalid.
    [L_SEVERITYCODE0] => Error

    Is this a bug?

Viewing 13 replies - 1 through 13 (of 13 total)
  • I reckon so! I am getting the exact same error with the same environment as you. Weird thing is that if you enable the ‘Checkout on cart page’ button it works from there…

    I just had a PayPal integration engineer confirm that it is an issue with the plugin not rounding the total before it gets sent to PayPal.
    He also suggested using in the interim.

    Plugin Support Shane Eckert


    Automattic Happiness Engineer


    What version of WooCommerce are you currently running? Are you on the latest version? I have seen one other report of this, but it was with version 2.6.14

    Thank you,

    Yep latest of all.
    – WordPress V4.8
    – WooCommerce V3.1.1
    – WooCommerce PayPal Express Checkout Gateway V1.4.2


    Plugin Support Shane Eckert


    Automattic Happiness Engineer

    Hi Henry,

    Thanks for confirming. Can you please open a ticket?

    We would love to dig in a bit deeper and get a login to your site.

    Thank you,

    Hi Shane,

    I opened a ticket over on GitHub. I would love to let you poke around but it is a clients live website and I am not sure they would appreciate that 😉


    Customers have reported the same problem for me as well. Though, without a coupon code being involved, just a standard order.
    Store currency is swedish crowns (SEK).

    • This reply was modified 2 years, 11 months ago by TStone.
    • This reply was modified 2 years, 11 months ago by TStone.

    Any news on this? It is causing huge problems.

    Plugin Contributor D Smith


    Automattic Happiness Engineer

    Hi y’all! I would encourage everyone to start a new thread for their issues, as it’s easier to troubleshoot one problem at a time.

    If you go to WooCommerce >> Settings >> Checkout >> PayPal Express >> Subtotal Mismatch Behavior and select “Do not send line items to PayPal” (as seen in this image), does that fix the error?

    I tried your suggestion, but will get back as soon as any of my client will process the payment …

    This thread appears to have died but the problem persists; I get a completed payment with no error but the paypal side still shows the “Adjust cart calculation discrepancy” in the memo.

    Plugin Support Mike W


    Hi Sushiguru,

    Apologies on the lateness of this response, are you still having issues with the adjust cart calculation discrepancy error?

    Thanks for the response but; short answer no; long answer, yes, but we’ve moved from woocommerce to shopify.

    Thanks anyhow.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Paypal error 10431’ is closed to new replies.