我遇到了SetExpressCheckout paypal nvp的问题。我收到以下错误
TIMESTAMP=2014%2d09%2d12T04%3a46%3a48Z&CORRELATIONID=bac06e6e9473d&ACK=Failure&VERSION=112%2e0&BUILD=127
86467&L_ERRORCODE0=10400&L_SHORTMESSAGE0=Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e&L_LONGMESSAGE0=Order%20total%20is%20missing%2e&L_SEVERITYCODE0=Error
我已经为setexpresscheckout传递了以下变量,
&RETURNURL=xxx&CANCELURL=yyy&ALLOWNOTE=1&PAYMENTREQUEST_0_PAYMENTACTION=Sale&L_PAYMENTREQUEST_0_NAME0=Nokia presents the Lumia a feature-rich mid-range smartphone&L_PAYMENTREQUEST_0_NUMBER0=xROwRr6F&L_PAYMENTREQUEST_0_AMT0=50&L_PAYMENTREQUEST_0_QTY0=1&LOGOIMG=mmm&PAYMENTREQUEST_0_SHIPPINGAMT=10&PAYMENTREQUEST_0_TAXAMT=0&PAYMENTREQUEST_0_ITEMAMT=50&PAYMENTREQUEST_0_AMT=60&PAYMENTREQUEST_0_CURRENCYCODE=USD
但错误说"order total is missing"
..所有传递的变量都是正确的吗?
请帮忙!
答案 0 :(得分:0)
我已修复此问题,因为所有项目金额,我已经给出了urlencode和returnURL& cancelURL,它在传递给paypal服务器之前解码。现在我从项目金额中删除了所有urlencode,这解决了问题。
谢谢!