Paypal Express Error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 4 ans
I configured Paypal Express in Sandbox mode (incl. Sandbox Account) and get the following error message during checkout:
1. Log Entry:
Short: SetExpressCheckoutResponseType returned - Part 1 of 1
Full:
{"Token":null,"Timestamp":"2020-11-17T21:06:25Z","TimestampSpecified":true,"Ack":1,"CorrelationID":"6ed6591ef27b","Errors":[{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Order total is invalid.","ErrorCode":"10401","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Item total is invalid.","ErrorCode":"10426","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Shipping total is invalid.","ErrorCode":"10427","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Tax total is invalid.","ErrorCode":"10429","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Item amount is invalid.","ErrorCode":"10431","SeverityCode":1,"ErrorParameters":null}],"Version":"98.0","Build":"55058010","Any":null}

2. Log Entry:
Short: Error passing cart to PayPal
Full: 10401: Order total is invalid., 10426: Item total is invalid., 10427: Shipping total is invalid., 10429: Tax total is invalid., 10431: Item amount is invalid.

Nopcommerce 4.3 on Ubuntu 20.04. locale decimal_point   .

There are some old recommendations to change In NopSolutions.NopCommerce.Payment.Methods.PayPal.PayPalExpressPaymentProcessor.SetExpressCheckout to  .
But I cannot find this in 4.3

Many thanks for your help.
Il y a 4 ans
Are you thinking that the error is because you are sending PayPal a "," rather than a "." for decimal point?  What is your primary currency?  What is the currency code for it?
Il y a 4 ans
New York wrote:
Are you thinking that the error is because you are sending PayPal a "," rather than a "." for decimal point?  What is your primary currency?  What is the currency code for it?


I'm not sure on how to solve the error.
I configured the Swiss Franc as additional currency (rate 1):
Country code:  CHF
Rate 1.0000
Display locale Swiss German (Switzerland) gsw-CH (tried gsw-fr as well)
Custom formatting: tried to leve it emtpy,  and 0.00    and     "0,00"
default rounding
published

I got the same error when I only use the USD

I really would appreciate if someone can help me here. I'm helping a friend for free to setup a small shop for a small startup to sell organic baby clothes.
Il y a 4 ans
Which currency is marked as "Primary store currency"?
Il y a 4 ans
CHF, Swiss Franc is the primary currency.  
US Dollar as the second
Euro as the third currency.

The Paypal Sandbox API call history lists the follwing
HTTP status  URL  PayPal debug ID  API call date
  /v1/notifications/webhooks/713064025F921545G  xxxxxx  18 Nov 2020 11:43:23
  /v2/checkout/orders  821ea6336230e  17 Nov 2020 12:58:17
  /v1/notifications/webhooks  xxxxxx  17 Nov 2020 12:58:02
  /v1/notifications/webhooks  xxxxxx  17 Nov 2020 12:58:01
  /v1/notifications/webhooks/0RU26532ST066325T  xxxxxx  17 Nov 2020 12:21:01
  /v2/checkout/orders  79ccc4113c67d  17 Nov 2020 12:19:17
  /v1/notifications/webhooks  xxxxxx  17 Nov 2020 12:19:10
  /v1/notifications/webhooks  xxxxxx  17 Nov 2020 12:19:03
  /v2/checkout/orders  69a3466d5381b  17 Nov 2020 12:18:42
  /v2/checkout/orders  fc0c6e527ecb  17 Nov 2020 12:02:21



I tried to only use the USD as the primary currency and got the same error message.
Il y a 4 ans
I might found the root cause for the problem:

PayPal Express Checkout:  
Note: This integration has been deprecated and is not available for new stores.
According to:  https://support.bigcommerce.com/s/article/Comparison-of-PayPal-Integrations
Il y a 3 ans
geraldshoptest wrote:
I configured Paypal Express in Sandbox mode (incl. Sandbox Account) and get the following error message during checkout:
1. Log Entry:
Short: SetExpressCheckoutResponseType returned - Part 1 of 1
Full:
{"Token":null,"Timestamp":"2020-11-17T21:06:25Z","TimestampSpecified":true,"Ack":1,"CorrelationID":"6ed6591ef27b","Errors":[{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Order total is invalid.","ErrorCode":"10401","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Item total is invalid.","ErrorCode":"10426","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Shipping total is invalid.","ErrorCode":"10427","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Tax total is invalid.","ErrorCode":"10429","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Item amount is invalid.","ErrorCode":"10431","SeverityCode":1,"ErrorParameters":null}],"Version":"98.0","Build":"55058010","Any":null}

2. Log Entry:
Short: Error passing cart to PayPal
Full: 10401: Order total is invalid., 10426: Item total is invalid., 10427: Shipping total is invalid., 10429: Tax total is invalid., 10431: Item amount is invalid.

Nopcommerce 4.3 on Ubuntu 20.04. locale decimal_point   .

There are some old recommendations to change In NopSolutions.NopCommerce.Payment.Methods.PayPal.PayPalExpressPaymentProcessor.SetExpressCheckout to  .
But I cannot find this in 4.3

Many thanks for your help.


Hi,
I am getting same error can you please let know how you fixed that.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.