10401 – Order total is invalid. – for Unsupported Currencies
-
Great Plugin.
But just noticed that for PayPal unsupported currencies the PP Express buttons are displayed and if the customer presses it they get “10401 – Order total is invalid.”Is there anyway to hide the PP Express buttons (Cart & Checkout) for unsupported currencies?
NOTE: For the standard PP at the bottom of the checkout page, it is removed for unsupported currencies.
Thanks
-
Can you provide the logs for when you get this failure? Logging would need to be enabled in your settings, of course. I think we would be getting a different error if it was an unsupported currency issue, so I’d like to see the exact request and response.
Below are two files the first is for currency CRC which looks to be supported by PP but gives the 10401. The second is for UGX giving error “10605 – Currency is not supported” which is what it is.
ThanksCRC: ##################################
08-26-2015 @ 09:25:02 – Start Express Checkout
08-26-2015 @ 09:25:03 – Test Mode: no
08-26-2015 @ 09:25:03 – Endpoint: https://api-3t.paypal.com/nvp
08-26-2015 @ 09:25:03 – Request: Array
(
[USER] => *****
[PWD] => *****
[VERSION] => 112.0
[BUTTONSOURCE] => AngellEYE_SP_WooCommerce
[SIGNATURE] => *****
[METHOD] => SetExpressCheckout
[RETURNURL] => http://bricky.com/checkout/review-order/?pp_action=revieworder
[CANCELURL] => http://bricky.com/cart/
[LOCALECODE] => en_US
[SOLUTIONTYPE] => Sole
[LANDINGPAGE] => Login
[PAYMENTREQUEST_0_AMT] => 8205.70
[PAYMENTREQUEST_0_CURRENCYCODE] => CRC
[PAYMENTREQUEST_0_SHIPPINGAMT] => 4939.06
[PAYMENTREQUEST_0_TAXAMT] => 1534.40
[PAYMENTREQUEST_0_PAYMENTACTION] => Sale
[L_PAYMENTREQUEST_0_NAME0] => Masons Mate – Builders Line Anchor Corner Brackets – Offers/Deals:: 1 Set[L_PAYMENTREQUEST_0_AMT0] => 1732.24
[L_PAYMENTREQUEST_0_NUMBER0] => MM
[L_PAYMENTREQUEST_0_QTY0] => 1
[PAYMENTREQUEST_0_ITEMAMT] => 1732.24
)08-26-2015 @ 09:25:03 – Response: Array
(
[TIMESTAMP] => 2015-08-26T08:25:03Z
[CORRELATIONID] => 69648ef4c24a0
[ACK] => Failure
[VERSION] => 112.0
[BUILD] => 000000
[L_ERRORCODE0] => 10401
[L_ERRORCODE1] => 10426
[L_ERRORCODE2] => 10427
[L_ERRORCODE3] => 10429
[L_ERRORCODE4] => 10431
[L_ERRORCODE5] => 10605
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_SHORTMESSAGE1] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_SHORTMESSAGE2] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_SHORTMESSAGE3] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_SHORTMESSAGE4] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_SHORTMESSAGE5] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_LONGMESSAGE0] => Order total is invalid.
[L_LONGMESSAGE1] => Item total is invalid.
[L_LONGMESSAGE2] => Shipping total is invalid.
[L_LONGMESSAGE3] => Tax total is invalid.
[L_LONGMESSAGE4] => Item amount is invalid.
[L_LONGMESSAGE5] => Currency is not supported
[L_SEVERITYCODE0] => Error
[L_SEVERITYCODE1] => Error
[L_SEVERITYCODE2] => Error
[L_SEVERITYCODE3] => Error
[L_SEVERITYCODE4] => Error
[L_SEVERITYCODE5] => Error
)08-26-2015 @ 09:25:03 – SetExpressCheckout API call failed.
08-26-2015 @ 09:25:03 – Detailed Error Message: Order total is invalid.
08-26-2015 @ 09:25:03 – Short Error Message: Transaction refused because of an invalid argument. See additional error messages for details.
08-26-2015 @ 09:25:03 – Error Code: 10401
08-26-2015 @ 09:25:03 – Error Severity Code: ErrorUGX: ###########################################
08-26-2015 @ 09:31:06 – Start Express Checkout
08-26-2015 @ 09:31:07 – Test Mode: no
08-26-2015 @ 09:31:07 – Endpoint: https://api-3t.paypal.com/nvp
08-26-2015 @ 09:31:07 – Request: Array
(
[USER] => *****
[PWD] => *****
[VERSION] => 112.0
[BUTTONSOURCE] => AngellEYE_SP_WooCommerce
[SIGNATURE] => *****
[METHOD] => SetExpressCheckout
[RETURNURL] => http://bricky.com/checkout/review-order/?pp_action=revieworder
[CANCELURL] => http://bricky.com/cart/
[LOCALECODE] => en_US
[SOLUTIONTYPE] => Sole
[LANDINGPAGE] => Login
[PAYMENTREQUEST_0_AMT] => 43588.90
[PAYMENTREQUEST_0_CURRENCYCODE] => UGX
[PAYMENTREQUEST_0_SHIPPINGAMT] => 26236.41
[PAYMENTREQUEST_0_TAXAMT] => 8150.77
[PAYMENTREQUEST_0_PAYMENTACTION] => Sale
[L_PAYMENTREQUEST_0_NAME0] => Masons Mate – Builders Line Anchor Corner Brackets – Offers/Deals:: 1 Set[L_PAYMENTREQUEST_0_AMT0] => 9201.72
[L_PAYMENTREQUEST_0_NUMBER0] => MM
[L_PAYMENTREQUEST_0_QTY0] => 1
[PAYMENTREQUEST_0_ITEMAMT] => 9201.72
)08-26-2015 @ 09:31:07 – Response: Array
(
[TIMESTAMP] => 2015-08-26T08:31:06Z
[CORRELATIONID] => b8ca3c16c0d20
[ACK] => Failure
[VERSION] => 112.0
[BUILD] => 000000
[L_ERRORCODE0] => 10605
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_LONGMESSAGE0] => Currency is not supported
[L_SEVERITYCODE0] => Error
)08-26-2015 @ 09:31:07 – SetExpressCheckout API call failed.
08-26-2015 @ 09:31:07 – Detailed Error Message: Currency is not supported
08-26-2015 @ 09:31:07 – Short Error Message: Transaction refused because of an invalid argument. See additional error messages for details.
08-26-2015 @ 09:31:07 – Error Code: 10605
08-26-2015 @ 09:31:07 – Error Severity Code: ErrorSorry, the CRC currency is not supported by PayPal also.
Ok, I see what you’re saying now. Yes, we should add some logic in the code to hide the buttons if the currency isn’t supported to avoid these errors in the first place, I agree.
I created this issue in our GitHub repo. We’ll get it included in a future update.
Thanks for the feedback!
This has has (finally) been resolved and will be included in the 1.2.4 update coming soon.
- The topic ‘10401 – Order total is invalid. – for Unsupported Currencies’ is closed to new replies.