1

客户抱怨他得到:

[ACK] => 失败 [VERSION] => 89.0 [BUILD] => 5551055 [L_ERRORCODE0] => 10401 [L_ERRORCODE1] => 10426 [L_ERRORCODE2] => 10413 [L_ERRORCODE3] => 10431 [L_SHORTMESSAGE0] => 交易被拒绝,因为一个无效的论点。有关详细信息,请参阅其他错误消息。[L_SHORTMESSAGE1] => 由于参数无效,交易被拒绝。有关详细信息,请参阅其他错误消息。[L_SHORTMESSAGE2] => 由于参数无效,交易被拒绝。有关详细信息,请参阅其他错误消息。[L_SHORTMESSAGE3] => 由于参数无效,交易被拒绝。有关详细信息,请参阅其他错误消息。[L_LONGMESSAGE0] => 订单总额无效。[L_LONGMESSAGE1] => 项目总数无效。[L_LONGMESSAGE2] => 购物车商品总金额与订单金额不符。[L_LONGMESSAGE3] => 项目金额无效。[L_SEVERITYCODE0] => 错误 [L_SEVERITYCODE1] => 错误 [L_SEVERITYCODE2] => 错误 [L_SEVERITYCODE3] => 错误

但是当我拆分发送到 ExpressCheckout API 的字符串时,一切看起来都井井有条:

&L_NAME0=Socks OC11-002
&L_AMT0=10
&L_QTY0=1
&L_NAME1=Socks TC-001 X2
&L_AMT1=10
&L_QTY1=1
&L_NAME2=Tuxedo
&L_AMT2=650
&L_QTY2=1
&L_NAME3=Paypal Fee
&L_AMT3=26.13
&L_QTY3=1
&AMT=786.63
&TAXAMT=90.50
&ITEMAMT=696.13

税额为 13%。尽管有错误,但一切看起来都与我很相配。神秘。非常感谢任何见解!

4

1 回答 1

1

不确定,但这些是不推荐使用的变量。以下作品:

VERSION=97.0
L_PAYMENTREQUEST_0_NAME0=Socks OC11-002
L_PAYMENTREQUEST_0_AMT0=10
L_PAYMENTREQUEST_0_QTY0=1
L_PAYMENTREQUEST_0_NAME1=Socks TC-001 X2
L_PAYMENTREQUEST_0_AMT1=10
L_PAYMENTREQUEST_0_QTY1=1
L_PAYMENTREQUEST_0_NAME2=Tuxedo
L_PAYMENTREQUEST_0_AMT2=650
L_PAYMENTREQUEST_0_QTY2=1
L_PAYMENTREQUEST_0_NAME3=Paypal Fee
L_PAYMENTREQUEST_0_AMT3=26.13
L_PAYMENTREQUEST_0_QTY3=1
PAYMENTREQUEST_0_TAXAMT=90.50
PAYMENTREQUEST_0_ITEMAMT=696.13
PAYMENTREQUEST_0_AMT=786.63
PAYMENTREQUEST_0_CURRENCYCODE=USD
PAYMENTREQUEST_0_PAYMENTACTION=Sale

另外,请参阅 PayPal 用户协议部分:“4.6 无附加费”

于 2013-04-07T20:11:02.517 回答