Paypal 快速结帐错误订单总额丢失。错误 10400

Posted

技术标签:

【中文标题】Paypal 快速结帐错误订单总额丢失。错误 10400【英文标题】:Paypal express checkout error Order total is missing. Error 10400 【发布时间】:2013-04-24 00:15:02 【问题描述】:

我有问题,我正在尝试将多个项目发送到 Paypal,但它显示“订单总额丢失”。 - 10400 错误

版本:76.0 我正在贝宝沙盒上进行测试 我的要求:

&AMT=106.72
&RETURNURL=http%3A%2F%mydomainname.com%2Fpp%2Fpaypal%2Fprocess.php
&CANCELURL=http%3A%2F%mydomainname.com%2Fpp%2Fpaypal%2Fcancel_url.php
&L_PAYMENTREQUEST_0_QTY0=3
&L_PAYMENTREQUEST_0_AMT0=28.46
&L_PAYMENTREQUEST_0_NAME0=FIRSTitem
&L_PAYMENTREQUEST_0_NUMBER0=0
&L_PAYMENTREQUEST_0_QTY1=1
&L_PAYMENTREQUEST_0_AMT1=21.34
&L_PAYMENTREQUEST_0_NAME1=SECONDitem
&L_PAYMENTREQUEST_0_NUMBER1=1
&CURRENCYCODE=EUR 
&PAYMENTACTION=Sale 
&ALLOWNOTE=1 
&PAYMENTREQUEST_0_CURRENCYCODE=EUR
&PAYMENTREQUEST_0_AMT=106.72
&PAYMENTREQUEST_0_ITEMAMT=106.72

回复:

Array
(
    [TIMESTAMP] => 2013%2d04%2d30T06%3a27%3a40Z
    [CORRELATIONID] => f1eae8919df21
    [ACK] => Failure
    [VERSION] => 76%2e0
    [BUILD] => 5817241
    [L_ERRORCODE0] => 10400
    [L_SHORTMESSAGE0] => Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e
    [L_LONGMESSAGE0] => Order%20total%20is%20missing%2e
    [L_SEVERITYCODE0] => Error
)

我试图:

    更改服务器 - 服务器不是问题。 拿出&AMT=,还是不行,所以我拿了 &PAYMENTREQUEST_0_AMT= 离开 &AMT= 在...但仍然没有 工作..现在他们两个都有了。

谢谢!

【问题讨论】:

【参考方案1】:

首先,您将一些旧变量与新变量混合在一起,并且您正在使用一些新旧变量相同的变量。这是您的请求应该传递的内容。一旦您以这种格式传递这些变量,您的请求就会通过。

RETURNURL=http://www.mydomainname.com/pp/paypal/process.php
CANCELURL=http://www.mydomainname.com/pp/paypal/cancel_url.php
ALLOWNOTE=1
PAYMENTREQUEST_0_PAYMENTACTION=Sale
PAYMENTREQUEST_0_CURRENCYCODE=EUR
PAYMENTREQUEST_0_AMT=106.72
PAYMENTREQUEST_0_ITEMAMT=106.72
L_PAYMENTREQUEST_0_QTY0=3
L_PAYMENTREQUEST_0_AMT0=28.46
L_PAYMENTREQUEST_0_NAME0=FIRSTitem
L_PAYMENTREQUEST_0_NUMBER0=0
L_PAYMENTREQUEST_0_QTY1=1
L_PAYMENTREQUEST_0_AMT1=21.34
L_PAYMENTREQUEST_0_NAME1=SECONDitem
L_PAYMENTREQUEST_0_NUMBER1=1

以下是我在 Express Checkout API 调用中从头到尾传递的内容。

SetExpressCheckout API 请求:

USER=xxxxxxxxxx
PWD=xxxxxxxxxx
SIGNATURE=xxxxxxxxxx
METHOD=SetExpressCheckout
VERSION=98.0
RETURNURL=xxxxxxxxxx
CANCELURL=xxxxxxxxxx
ALLOWNOTE=1
PAYMENTREQUEST_0_PAYMENTACTION=Sale
PAYMENTREQUEST_0_CURRENCYCODE=EUR
PAYMENTREQUEST_0_AMT=106.72
PAYMENTREQUEST_0_ITEMAMT=106.72
L_PAYMENTREQUEST_0_QTY0=3
L_PAYMENTREQUEST_0_AMT0=28.46
L_PAYMENTREQUEST_0_NAME0=FIRSTitem
L_PAYMENTREQUEST_0_NUMBER0=0
L_PAYMENTREQUEST_0_QTY1=1
L_PAYMENTREQUEST_0_AMT1=21.34
L_PAYMENTREQUEST_0_NAME1=SECONDitem
L_PAYMENTREQUEST_0_NUMBER1=1

SetExpressCheckout API 响应:

TOKEN=EC-3TL21567PX031102F
TIMESTAMP=2013-05-01T17:55:07Z
CORRELATIONID=57357a4d9619c
ACK=Success
VERSION=98.0
BUILD=5817241

GetExpressCheckoutDetails API 请求:

USER=xxxxxxxxxx
PWD=xxxxxxxxxx
SIGNATURE=xxxxxxxxxx
METHOD=GetExpressCheckoutDetails
VERSION=98.0
TOKEN=EC-3TL21567PX031102F

GetExpressCheckoutDetails API 响应:

TOKEN=EC-3TL21567PX031102F
CHECKOUTSTATUS=PaymentActionNotInitiated
TIMESTAMP=2013-05-01T17:56:26Z
CORRELATIONID=69c3839d7aedd
ACK=Success
VERSION=98.0
BUILD=5817241
EMAIL=mts_us_per@ccaples.com
PAYERID=EW4KQ9CQX45F6
PAYERSTATUS=verified
FIRSTNAME=MTS
LASTNAME=Testing
COUNTRYCODE=US
SHIPTONAME=PayPal PayPal
SHIPTOSTREET=123 street
SHIPTOCITY=omaha
SHIPTOSTATE=NE
SHIPTOZIP=68138
SHIPTOCOUNTRYCODE=US
SHIPTOCOUNTRYNAME=United States
ADDRESSSTATUS=Confirmed
CURRENCYCODE=EUR
AMT=106.72
ITEMAMT=106.72
SHIPPINGAMT=0.00
HANDLINGAMT=0.00
TAXAMT=0.00
INSURANCEAMT=0.00
SHIPDISCAMT=0.00
L_NAME0=FIRSTitem
L_NAME1=SECONDitem
L_NUMBER0=0
L_NUMBER1=1
L_QTY0=3
L_QTY1=1
L_TAXAMT0=0.00
L_TAXAMT1=0.00
L_AMT0=28.46
L_AMT1=21.34
L_ITEMWEIGHTVALUE0= 0.00000
L_ITEMWEIGHTVALUE1= 0.00000
L_ITEMLENGTHVALUE0= 0.00000
L_ITEMLENGTHVALUE1= 0.00000
L_ITEMWIDTHVALUE0= 0.00000
L_ITEMWIDTHVALUE1= 0.00000
L_ITEMHEIGHTVALUE0= 0.00000
L_ITEMHEIGHTVALUE1= 0.00000
PAYMENTREQUEST_0_CURRENCYCODE=EUR
PAYMENTREQUEST_0_AMT=106.72
PAYMENTREQUEST_0_ITEMAMT=106.72
PAYMENTREQUEST_0_SHIPPINGAMT=0.00
PAYMENTREQUEST_0_HANDLINGAMT=0.00
PAYMENTREQUEST_0_TAXAMT=0.00
PAYMENTREQUEST_0_INSURANCEAMT=0.00
PAYMENTREQUEST_0_SHIPDISCAMT=0.00
PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED=false
PAYMENTREQUEST_0_SHIPTONAME=PayPal PayPal
PAYMENTREQUEST_0_SHIPTOSTREET=123 street
PAYMENTREQUEST_0_SHIPTOCITY=omaha
PAYMENTREQUEST_0_SHIPTOSTATE=NE
PAYMENTREQUEST_0_SHIPTOZIP=68138
PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=US
PAYMENTREQUEST_0_SHIPTOCOUNTRYNAME=United States
PAYMENTREQUEST_0_ADDRESSSTATUS=Confirmed
PAYMENTREQUEST_0_ADDRESSNORMALIZATIONSTATUS=None
L_PAYMENTREQUEST_0_NAME0=FIRSTitem
L_PAYMENTREQUEST_0_NAME1=SECONDitem
L_PAYMENTREQUEST_0_NUMBER0=0
L_PAYMENTREQUEST_0_NUMBER1=1
L_PAYMENTREQUEST_0_QTY0=3
L_PAYMENTREQUEST_0_QTY1=1
L_PAYMENTREQUEST_0_TAXAMT0=0.00
L_PAYMENTREQUEST_0_TAXAMT1=0.00
L_PAYMENTREQUEST_0_AMT0=28.46
L_PAYMENTREQUEST_0_AMT1=21.34
L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0= 0.00000
L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE1= 0.00000
L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0= 0.00000
L_PAYMENTREQUEST_0_ITEMLENGTHVALUE1= 0.00000
L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0= 0.00000
L_PAYMENTREQUEST_0_ITEMWIDTHVALUE1= 0.00000
L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0= 0.00000
L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE1= 0.00000
PAYMENTREQUESTINFO_0_ERRORCODE=0

DoExpressCheckoutPayment API 请求:

USER=xxxxxxxxxx
PWD=xxxxxxxxxx
SIGNATURE=xxxxxxxxxx
METHOD=DoExpressCheckoutPayment
VERSION=98.0
TOKEN=EC-3TL21567PX031102F
PAYERID=EW4KQ9CQX45F6
PAYMENTREQUEST_0_PAYMENTACTION=Sale
PAYMENTREQUEST_0_CURRENCYCODE=EUR
PAYMENTREQUEST_0_AMT=106.72
PAYMENTREQUEST_0_ITEMAMT=106.72
L_PAYMENTREQUEST_0_QTY0=3
L_PAYMENTREQUEST_0_AMT0=28.46
L_PAYMENTREQUEST_0_NAME0=FIRSTitem
L_PAYMENTREQUEST_0_NUMBER0=0
L_PAYMENTREQUEST_0_QTY1=1
L_PAYMENTREQUEST_0_AMT1=21.34
L_PAYMENTREQUEST_0_NAME1=SECONDitem
L_PAYMENTREQUEST_0_NUMBER1=1

DoExpressCheckoutPayment API 响应:

TOKEN=EC-3TL21567PX031102F
SUCCESSPAGEREDIRECTREQUESTED=false
TIMESTAMP=2013-05-01T17:57:16Z
CORRELATIONID=fb8b667b499a0
ACK=Success
VERSION=98.0
BUILD=5817241
INSURANCEOPTIONSELECTED=false
SHIPPINGOPTIONISDEFAULT=false
PAYMENTINFO_0_TRANSACTIONID=5YP27805RR1557744
PAYMENTINFO_0_TRANSACTIONTYPE=cart
PAYMENTINFO_0_PAYMENTTYPE=instant
PAYMENTINFO_0_ORDERTIME=2013-05-01T17:57:15Z
PAYMENTINFO_0_AMT=106.72
PAYMENTINFO_0_FEEAMT=3.44
PAYMENTINFO_0_SETTLEAMT=137.23
PAYMENTINFO_0_TAXAMT=0.00
PAYMENTINFO_0_CURRENCYCODE=EUR
PAYMENTINFO_0_EXCHANGERATE=1.32871
PAYMENTINFO_0_PAYMENTSTATUS=Completed
PAYMENTINFO_0_PENDINGREASON=None
PAYMENTINFO_0_REASONCODE=None
PAYMENTINFO_0_PROTECTIONELIGIBILITY=Eligible
PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE=ItemNotReceivedEligible,UnauthorizedPaymentEligible
PAYMENTINFO_0_SECUREMERCHANTACCOUNTID=6CFEBJAE59DAY
PAYMENTINFO_0_ERRORCODE=0
PAYMENTINFO_0_ACK=Success

【讨论】:

我按照你的说法改变了一切,但错误仍然存​​在.. - 我猜这不可能是服务器故障? - 因为当我用一件物品做这件事时,它工作得很好.. 我对这两个项目进行了相同的请求,这对我来说是成功的。我唯一添加的是我的凭据、版本和方法,因为它们不在您的示例中。 您添加了 GetExpressCheckoutDetails 吗?你用的是什么版本? 什么是“ItemNotReceivedEligible,UnauthorizedPaymentEligible”【参考方案2】:

我们有同样的问题,但我想通了,您需要将您的贝宝沙盒帐户登录到您正在测试贝宝付款的电脑

【讨论】:

以上是关于Paypal 快速结帐错误订单总额丢失。错误 10400的主要内容,如果未能解决你的问题,请参考以下文章

按下 Paypal 快速结帐按钮后 Wordpress Paypal 错误

Paypal 快速结帐错误 10007:权限被拒绝

Paypal 快速结帐:系统性 10486 错误

PayPal - 10001 内部错误:超时处理请求快速结帐

Magento 2 - Paypal 错误“我们无法启动快速结帐”。

PayPal SOAP API - 快速结帐 - 错误 10002