我从PayPal doExpressPayment请求收到此回复。
有人能指出我请求中的错误在哪里吗?
Array
(
[errors] => Array(
[TIMESTAMP] => 2012-12-11T16:58:29Z
[CORRELATIONID] => 6fc8ed447aeb7
[ACK] => Failure
[VERSION] => 63.0
[BUILD] => 4181146
[L_ERRORCODE0] => 10413
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_LONGMESSAGE0] => The totals of the cart item amounts do not match order amounts.
[L_SEVERITYCODE0] => Error
)
)
[request] => PAYMENTREQUEST_0_ITEMAMT=43.99
&PAYMENTREQUEST_0_SHIPPINGAMT=5.30
&PAYMENTREQUEST_n_TAXAMT=2.46
&PAYMENTREQUEST_0_AMT=51.75
&PAYMENTREQUEST_0_INSURANCEAMT=0
&PAYMENTREQUEST_0_PAYMENTACTION=Sale
&L_PAYMENTREQUEST_0_NAME0=Six+Snowmen+at+Your+Hipline
&L_PAYMENTREQUEST_0_QTY0=1
&L_PAYMENTREQUEST_0_DESC0=Six+Snowmen+at+Your+Hipline
&L_PAYMENTREQUEST_0_AMT0=43.99
&VERSION=63.0
答案 0 :(得分:1)
&PAYMENTREQUEST_n_TAXAMT=2.46
我认为这应该是:
&PAYMENTREQUEST_0_TAXAMT=2.46