PayPal 错误 10413 - 购物车项目总金额与订单金额不匹配
Posted
技术标签:
【中文标题】PayPal 错误 10413 - 购物车项目总金额与订单金额不匹配【英文标题】:PayPal error 10413 - The totals of the cart item amounts do not match order amounts 【发布时间】:2016-10-13 18:03:51 【问题描述】:我向 PayPal 发送以下请求:
USER=APIUSERNAME&
PWD=APIPASSWORD&
SIGNATURE=APISIGNATURE&
METHOD=SetExpressCheckout&
VERSION=204&
PAYMENTREQUEST_0_PAYMENTACTION=SALE&
PAYMENTREQUEST_0_AMT=1.11&
PAYMENTREQUEST_0_CURRENCYCODE=EUR&
PAYMENTREQUEST_0_CUSTOM=148&
PAYMENTREQUEST_0_DESC=PayPal+Express+Checkout&
PAYMENTREQUEST_0_INVNUM=145001530&
RETURNURL=returnurl&
CANCELURL=cancelurl&
EMAIL=email%40live.nl&
PAYMENTREQUEST_0_SHIPTONAME=Testperson-nl+Approved&
PAYMENTREQUEST_0_SHIPTOSTREET=Neherkade+1XI&
PAYMENTREQUEST_0_SHIPTOCITY=Gravenhage&
PAYMENTREQUEST_0_SHIPTOZIP=2521VA&
PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=NL&
PAYMENTREQUEST_0_SHIPTOPHONENUM=0612345678&
L_PAYMENTREQUEST_0_NAME0=Jackie+O+Round+Sunglasses&
L_PAYMENTREQUEST_0_AMT0=1.11&
L_PAYMENTREQUEST_0_NUMBER0=ace001&
L_PAYMENTREQUEST_0_QTY0=1&
L_PAYMENTREQUEST_0_TAXAMT0=0.19&
PAYMENTREQUEST_0_TAXAMT=0.19
但是由于某种原因,我收到以下消息:
L_ERRORCODE0=10413& L_SHORTMESSAGE0=由于参数无效,交易被拒绝。有关详细信息,请参阅其他错误消息。& L_LONGMESSAGE0=购物车商品总金额与订单金额不符。
我尝试了许多不同的配置(添加不含税的物品数量等)。 那么,任何人都可以帮助我知道我做错了什么?
【问题讨论】:
【参考方案1】:PAYMENTREQUEST_0_AMT =(用户必须支付的总金额)
PAYMENTREQUEST_0_AMT= Everything including Tax,shipping cost, insurance etc
【讨论】:
以上是关于PayPal 错误 10413 - 购物车项目总金额与订单金额不匹配的主要内容,如果未能解决你的问题,请参考以下文章