我在我的网站上使用 paypal 选项。我在 paypal 中使用 expresscheckout。
我收到错误 10413:购物车商品总金额与订单金额不符。
此错误仅在商品数量大于 1 时发生。如果数量为 1,则无错误。
我发送到 PayPal 的请求是:
&METHOD=SetExpressCheckout&
RETURNURL=http%3A%2F%2Flocalhost%2Fnakshweb24%2Fcheckout%2Fpaypaltransaction&
CANCELURL=http%3A%2F%2Flocalhost%2Fnakshweb24%2Fcheckout%2Fpaypalcancel&
PAYMENTREQUEST_0_PAYMENTACTION=SALE&
L_PAYMENTREQUEST_0_NAME0=Affordable+Georgette+Saree&
L_PAYMENTREQUEST_0_NUMBER0=00B94003_8027_EBEF_A8F0_CF49DF7077D6&
L_PAYMENTREQUEST_0_AMT0=65.17&
L_PAYMENTREQUEST_0_QTY0=2&
L_PAYMENTREQUEST_0_NAME1=Lightweight+Georgette+Saree&
L_PAYMENTREQUEST_0_NUMBER1=053B4388_825D_2CD9_0056_289D994200D7&
L_PAYMENTREQUEST_0_AMT1=32.58&
L_PAYMENTREQUEST_0_QTY1=1&
NOSHIPPING=0&
PAYMENTREQUEST_0_ITEMAMT=97.75&
PAYMENTREQUEST_0_TAXAMT=0&
PAYMENTREQUEST_0_SHIPPINGAMT=60.64&
PAYMENTREQUEST_0_HANDLINGAMT=0&
PAYMENTREQUEST_0_SHIPDISCAMT=0&
PAYMENTREQUEST_0_INSURANCEAMT=0&
PAYMENTREQUEST_0_AMT=158.39&
PAYMENTREQUEST_0_CURRENCYCODE=USD&
ADDROVERRIDE=1&
PAYMENTREQUEST_0_SHIPTONAME=vithal+mandrekar&
PAYMENTREQUEST_0_SHIPTOSTREET=mumbai&
PAYMENTREQUEST_0_SHIPTOSTREET2=MUMBAI&
PAYMENTREQUEST_0_SHIPTOCITY=MUMBAI&
PAYMENTREQUEST_0_SHIPTOSTATE=MAHARASHTRA&
PAYMENTREQUEST_0_SHIPTOZIP=400101&
PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=&
PAYMENTREQUEST_0_SHIPTOPHONENUM=9821043732&
EMAIL=vithal.mandrekar%40gmail.com&
LOCALECODE=GB&
LOGOIMG=http://www.nakshcreation.com/img/naksh_logo1.png&CARTBORDERCOLOR=CCCC&ALLOWNOTE=1
Error : The totals of the cart item amounts do not match order amounts.
Array
(
[TIMESTAMP] => 2015%2d01%2d23T08%3a06%3a01Z
[CORRELATIONID] => ac1e4b992d8c4
[ACK] => Failure
[VERSION] => 109%2e0
[BUILD] => 14839371
[L_ERRORCODE0] => 10413
[L_SHORTMESSAGE0] => Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e
[L_LONGMESSAGE0] => The%20totals%20of%20the%20cart%20item%20amounts%20do%20not%20match%20order%20amounts%2e
[L_SEVERITYCODE0] => Error
)
Its work for Me try this for Magento
Go to Admin panel locate navigation System >> Configuration >> Sales >> Payment Method >> Choose Paypal (exiting Paypal method which enable in fronted for example Payments Pro (Includes Express Checkout)) >> find "Transfer Cart Line Items" choose option value : No
我是一名优秀的程序员,十分优秀!