我正在尝试将TAXAMT添加到交易中。以下是查询发送的内容:
&PAYMENTREQUEST_0_PAYMENTACTION=Authorization
&RETURNURL=http://zzz.com/returnurl
&CANCELURL=http://zzz.com/cancelurl
&NOSHIPPING=1
&PAYMENTREQUEST_0_CURRENCYCODE=USD
&L_PAYMENTREQUEST_0_QTY0=1
&L_PAYMENTREQUEST_0_NAME0=Shirt
&L_PAYMENTREQUEST_0_AMT0=89.10
&L_PAYMENTREQUEST_0_TAXAMT0=3.56
&PAYMENTREQUEST_0_TAXAMT=3.56
&PAYMENTREQUEST_0_AMT=92.66
但由于某种原因,它不起作用。当我将TAXAMT作为普通项添加时,它会通过:
&PAYMENTREQUEST_0_PAYMENTACTION=Authorization
&RETURNURL=http://zzz.com/returnurl
&CANCELURL=http://zzz.com/cancelurl
&NOSHIPPING=1
&PAYMENTREQUEST_0_CURRENCYCODE=USD
&L_PAYMENTREQUEST_0_QTY0=1
&L_PAYMENTREQUEST_0_NAME0=Shirt
&L_PAYMENTREQUEST_0_AMT0=89.10
&L_PAYMENTREQUEST_0_QTY1=1
&L_PAYMENTREQUEST_0_NAME1=Sales+Tax
&L_PAYMENTREQUEST_0_AMT1=3.56
&PAYMENTREQUEST_0_AMT=92.66
任何人都可以帮我解决TAXAMT的问题。目前我收到以下错误:
SetExpressCheckout API call failed.
Detailed Error Message: The totals of the cart item amounts do not match order amounts.
Short Error Message: Transaction refused because of an invalid argument. See additional error messages for details.
Error Code: 10413
Error Severity Code: Error
答案 0 :(得分:1)
你错过了:
&PAYMENTREQUEST_0_ITEMAMT=89.10
L_PAYMENTREQUEST_xxxxx表示单个项目的金额 PAYMENTRQUEST_xxxx表示所有项目的总金额。