我尝试制作以下设置快速结账paypal api请求:
TIMESTAMP=2015-10-20T22:20:32Z
ACK=Failure
VERSION=72.0
BUILD=18308778
L_ERRORCODE0=10401
L_ERRORCODE1=10426
L_ERRORCODE2=10413
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_LONGMESSAGE0=Order total is invalid.
L_LONGMESSAGE1=Item total is invalid.
L_LONGMESSAGE2=The totals of the cart item amounts do not match order amounts.
L_SEVERITYCODE0=Error
L_SEVERITYCODE1=Error
L_SEVERITYCODE2=Error
并得到以下回复:
PayPal
我错过了什么?有人能看到新鲜的眼睛吗?在eBay
和var panel = panels.Panel({
contentURL: self.data.url("page.html"),
contentScriptFile: [self.data.url("script.js"), self.data.url('libs/jss.js')],
contentStyleFile: self.data.url("style.css"),
onHide: handleHide
});
分离之后对api进行了哪些更改?
答案 0 :(得分:1)
金额值格式不正确。它应该是:
PAYMENTREQUEST_0_ITEMAMT=265.90
PAYMENTREQUEST_0_HANDLINGAMT=0.00
PAYMENTREQUEST_0_AMT=265.90