10400 Code Error

Asked 2 years ago, Updated 2 years ago, 100 views

When I called the PayPal SetExpressCheckout API, I received an error code of 10400 in the response.

https://www.paypal.jp/uploadedFiles/wwwpaypaljp/Supporting_Content/jp/manual/PP_JP_NVPAPI_DeveloperGuide_JP.pdf

According to
, OrderTotal is missing.
Do you need anything other than the following parameters?

 [Parameters]
&METHOD=SetExpressCheckout
&VERSION=52.0
&USER=***
&PWD=***** 
&SIGNATURE= XXXXXXXX
&PAYMENTQUEST_0_PAYMENT=Sale 
&PAYMENTREQUEST_0_AMT=19.5
&RETURNURL=XXXXXX
&CANCELURL=XXXXXX"

[Response]
TIMESTAMP=2015-05-28T08:22:13Z
& CORRELATIONID=*****
&ACK=Failure
&VERSION=52.0
&BUILD=7333778
&L_ERRORCODE 0=10400
&L_SHORTMESSAGE0 = Transaction refused cause of an invalid argument.See additional error messages for details.
&L_LONGMESSAGE 0 = Order total is missing.
&L_SEVERITYCODE 0 = Error

paypal

2022-09-30 19:15

1 Answers

The version you specified is old, so let's renew it.Try VERSION=122.0.

The PAYMENTREQUEST_0_* parameter is not recognized in older versions, so
I think the required PAYMENTREQUEST_0_AMT parameter is an error that is considered unspecified.

The currency is US dollars by default.
Please send PAYMENT REQUEST_0_CURRENCYCODE=JPY to pay in Japanese yen.
Also, for Japanese yen, the value of PAYMENTREQUEST_0_AMT must be an integer.


2022-09-30 19:15

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.