0

我正在使用新版本的 paypal Checkout Express API 来实现并行支付,

当我发送请求时出现错误:

The totals of the cart item amounts do not match order amounts.

这是来自 api debug 的请求和响应:

INFO: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:ebay:api:PayPalAPI" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:ed="urn:ebay:apis:EnhancedDataTypes"><soapenv:Header><urn:RequesterCredentials><ebl:Credentials><ebl:Username>sdk-three_api1.sdk.com</ebl:Username><ebl:Password>QFZCWN5HZM8VBG7Q</ebl:Password><ebl:Signature>A-IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU</ebl:Signature></ebl:Credentials></urn:RequesterCredentials></soapenv:Header><soapenv:Body><urn:SetExpressCheckoutReq><urn:SetExpressCheckoutRequest><ebl:Version>92.0</ebl:Version><ebl:SetExpressCheckoutRequestDetails><ebl:ReturnURL>http://localhost:8080/EC/GetExpressCheckout?currencyCodeType=null</ebl:ReturnURL><ebl:CancelURL>http://localhost:8080/index.html</ebl:CancelURL><ebl:NoShipping>0</ebl:NoShipping><ebl:PaymentDetails><ebl:OrderTotal currencyID="USD">10.00</ebl:OrderTotal><ebl:ItemTotal currencyID="USD">10.0</ebl:ItemTotal><ebl:PaymentDetailsItem><ebl:Quantity>1</ebl:Quantity><ebl:Amount currencyID="USD">10.0</ebl:Amount></ebl:PaymentDetailsItem><ebl:PaymentDetailsItem><ebl:Quantity>1</ebl:Quantity><ebl:Amount currencyID="USD">10.0</ebl:Amount></ebl:PaymentDetailsItem><ebl:SellerDetails><ebl:PayPalAccountID>tarik._1341024461_biz@gmail.com</ebl:PayPalAccountID></ebl:SellerDetails><ebl:PaymentAction>Sale</ebl:PaymentAction><ebl:PaymentRequestID>1</ebl:PaymentRequestID></ebl:PaymentDetails><ebl:PaymentDetails><ebl:OrderTotal currencyID="USD">10.00</ebl:OrderTotal><ebl:ItemTotal currencyID="USD">10.0</ebl:ItemTotal><ebl:PaymentDetailsItem><ebl:Quantity>1</ebl:Quantity><ebl:Amount currencyID="USD">10.0</ebl:Amount></ebl:PaymentDetailsItem><ebl:PaymentDetailsItem><ebl:Quantity>1</ebl:Quantity><ebl:Amount currencyID="USD">10.0</ebl:Amount></ebl:PaymentDetailsItem><ebl:SellerDetails><ebl:PayPalAccountID> tarik._1341024461_biz@gmail.com</ebl:PayPalAccountID></ebl:SellerDetails><ebl:PaymentAction>Sale</ebl:PaymentAction><ebl:PaymentRequestID>2</ebl:PaymentRequestID></ebl:PaymentDetails></ebl:SetExpressCheckoutRequestDetails></urn:SetExpressCheckoutRequest></urn:SetExpressCheckoutReq></soapenv:Body></soapenv:Envelope>

9 août 2012 01:01:34 com.paypal.core.LoggingManager 日志信息:2012-08-08T23:01:33ZFailure222642713a617由于参数无效,交易被拒绝。有关详细信息,请参阅其他错误消息。购物车项目总金额与订单金额不匹配。10413Error92.03386080

4

1 回答 1

0

问题是它所说的:

The totals of the cart item amounts do not match order amounts.#

确保您从购物车中发送相同数量的物品以匹配订单金额。

于 2012-09-12T11:29:40.990 回答