我正在从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
最佳答案
根据我的评论,
您的总金额似乎与商品的总金额不同。
即
&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
价格不匹配可能会导致此问题;)
关于php - Paypal setExpressCheckout NVP税额错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11863563/