0

我正在从 paypal 请求 setExpressCheckout 调用,我收到错误代码 10413。它工作得非常好,直到我从项目总额中扣除税款并将 &PAYMENTREQUEST_0_TAXAMT 添加到请求中。这是请求网址:

https://api.sandbox.paypal.com/nvp?
METHOD=setExpressCheckout&VERSION=87.0
&USER=XXXXXXXXXX
&PWD=XXXXXXXXXX
&SIGNATURE=XXXXXXXXXX
&RETURNURL=XXXXXXXXXX
&CANCELURL=XXXXXXXXXX
&L_PAYMENTREQUEST_0_NAME0=Hy+Guardian+Fly+Rug
&L_PAYMENTREQUEST_0_NUMBER0=HY-FLY
&L_PAYMENTREQUEST_0_DESC0=Size%3A+4+ft+6%2C+Size%3A+4+ft+6%2C+Size%3A+4+ft+6%2C+Size%3A+4+ft+6
&L_PAYMENTREQUEST_0_AMT0=47.00
&L_PAYMENTREQUEST_0_QTY0=1
&PAYMENTREQUEST_0_CURRENCYCODE=GBP
&PAYMENTREQUEST_0_ITEMAMT=37.60
&PAYMENTREQUEST_0_SHIPPINGAMT=11.25
&PAYMENTREQUEST_0_TAXAMT=9.40
&PAYMENTREQUEST_0_AMT=58.25
4

1 回答 1

3

根据我的评论,

您的总金额似乎与您的项目总金额不同。

IE

&PAYMENTREQUEST_0_CURRENCYCODE=GBP
&PAYMENTREQUEST_0_ITEMAMT=37.60
&PAYMENTREQUEST_0_SHIPPINGAMT=11.25
&PAYMENTREQUEST_0_TAXAMT=9.40
&PAYMENTREQUEST_0_AMT=58.25

显示 58.25

然而

L_PAYMENTREQUEST_0_AMT0=47.00

显示 47.00

价格不匹配很可能会导致这个问题;)

于 2012-08-08T12:47:02.687 回答