我们刚刚在上周遇到过这个问题。
我们正在发送API SEPARATE订单/发票ID,它将返回SAME交易ID,而不是处理其中一个付款。我们没有在PayPal账户中收到付款,我们对API的回复是SAME交易ID作为第一笔交易,即使我们发送单独的订单,我们也会得到一个单独的相关ID。
直到8月份,我们一直处理罚款。这是刚开始出现这个问题的时候。当我们通过API发送超过1个订单时会发生这种情况。只有在通过系统发送多个事务ID时才会出现此问题。
我们正在使用[METHOD] => DoDirectPayment
=============== 来自我们的一位开发人员:
我们用这个。它的遗产!
https://developer.paypal.com/docs/classic/api/#wpp 我们特别使用这个功能。 https://developer.paypal.com/docs/classic/api/merchant/DoDirectPayment_API_Operation_NVP/
===============
我们有超过25个案例记录在案,PayPal似乎“丢失”并“没有处理”订单,导致API发回相同的交易ID,具有不同的相关ID。
我们尝试将订单/ inv号码从 - (连字符)更改为所有字母数字,我们尝试了后缀一个随机数。这些似乎都不起作用。
问题不会一直发生。它间歇性地发生。有时付款处理很好,有时候却没有,只有一小部分订单得到正确处理,而其他订单则发送了以前的交易ID。
我们今天在PayPal的电话上花了2个多小时和某人在一起。他们查找了一个样本相关ID和交易ID,并立即发现了一些错误。
不可能发送唯一的发票号 PayPal,然后支付交易ID是一个副本返回给我们说成功,但这就是PayPal返回给我们的。
我问你这个:
我们如何向您发送发票编号并向您返回唯一的相关ID和交易ID,然后47秒后我们会向您发送不同的发票编号,并且您将相同的交易ID作为发票返回47提前几秒?????
见到这里
发了3个订单。 1很好。我们抓到的第二个重复错误,第3次罚款。
这是日志..
first 3 orders.
<---start paypal send transaction details in function purchase--->
time: 08/20/15 12:10:47 PM
Array
(
[METHOD] => DoDirectPayment
[VERSION] => 85.0
[PAYMENTACTION] => Sale
[AMT] => 11.00
[CURRENCYCODE] => USD
[DESC] =>
[CREDITCARDTYPE] => visa
[EXPDATE] => 082017
[CVV2] => 665
[IPADDRESS] => xx.xx.xx.xx
[FIRSTNAME] => xx
[LASTNAME] => xx
[STREET] => xx
[STREET2] =>
[CITY] => xx
[STATE] => xx
[ZIP] => xx
[COUNTRYCODE] => US
[INVNUM] => AZ101425x001253x173933x1x761
)
<---end paypal send transaction details in function purchase--->
<---start paypal response transaction details in function purchase--->
time: 08/20/15 12:10:53 PM
Array
(
[TIMESTAMP] => 2015-08-20T19:10:53Z
[CORRELATIONID] => 34d8711050
[ACK] => Success
[VERSION] => 85.0
[BUILD] => 000000
[AMT] => 11.00
[CURRENCYCODE] => USD
[AVSCODE] => Y
[CVV2MATCH] => M
[TRANSACTIONID] => 8WS0295W561945T
)
<---end paypal response transaction details in function purchase--->
<---start paypal send transaction details in function purchase--->
time: 08/20/15 12:10:53 PM
Array
(
[METHOD] => DoDirectPayment
[VERSION] => 85.0
[PAYMENTACTION] => Sale
[AMT] => 11.00
[CURRENCYCODE] => USD
[DESC] =>
[CREDITCARDTYPE] => visa
[EXPDATE] => 082017
[CVV2] => 665
[IPADDRESS] => xx.xx.xx.xx
[FIRSTNAME] => xx
[LASTNAME] => xx
[STREET] => xx
[STREET2] =>
[CITY] => xx
[STATE] => xx
[ZIP] => xx
[COUNTRYCODE] => US
[INVNUM] => AZ101425x001252x352621x1x579
)
<---end paypal send transaction details in function purchase--->
<---start paypal response transaction details in function purchase--->
time: 08/20/15 12:10:57 PM
Array
(
[TIMESTAMP] => 2015-08-20T19:10:57Z
[CORRELATIONID] => 9abf23471a5
[ACK] => Success
[VERSION] => 85.0
[BUILD] => 000000
[AMT] => 11.00
[CURRENCYCODE] => USD
[AVSCODE] => Y
[CVV2MATCH] => M
[TRANSACTIONID] => 8WS0295W561945T
)
<---end paypal response transaction details in function purchase--->
<---start paypal send transaction details in function purchase--->
time: 08/20/15 12:10:57 PM
Array
(
[METHOD] => DoDirectPayment
[VERSION] => 85.0
[PAYMENTACTION] => Sale
[AMT] => 11.00
[CURRENCYCODE] => USD
[DESC] =>
[CREDITCARDTYPE] => visa
[EXPDATE] => 082017
[CVV2] => 665
[IPADDRESS] => xx.xx.xx.xx
[FIRSTNAME] => xx
[LASTNAME] => xx
[STREET] => xx
[STREET2] =>
[CITY] => xx
[STATE] => xx
[ZIP] => xx
[COUNTRYCODE] => US
[INVNUM] => AZ101425x001252x344289x1x941
)
<---end paypal send transaction details in function purchase--->
<---start paypal response transaction details in function purchase--->
time: 08/20/15 12:11:02 PM
Array
(
[TIMESTAMP] => 2015-08-20T19:11:02Z
[CORRELATIONID] => 4f41a4c7b33
[ACK] => Success
[VERSION] => 85.0
[BUILD] => 000000
[AMT] => 11.00
[CURRENCYCODE] => USD
[AVSCODE] => Y
[CVV2MATCH] => M
[TRANSACTIONID] => 9TP856375554029
)
<---end paypal response transaction details in function purchase--->
<---start return values from function multi_payment--->
time: 08/20/15 12:11:02 PM
Array
(
[photo] => Array
(
[id] => 8WS0295W561945T
)
)
Array
(
[photo] => Array
(
[status] => Error processing payment - Please try again.
)
)
Array
(
[photo] => Array
(
[id] => 9TP856375554029
)
)
THEN SHE PAYS AGAIN to get the duplicate..
<---start paypal send transaction details in function purchase--->
time: 08/20/15 12:11:44 PM
Array
(
[METHOD] => DoDirectPayment
[VERSION] => 85.0
[PAYMENTACTION] => Sale
[AMT] => 11.00
[CURRENCYCODE] => USD
[DESC] =>
[CREDITCARDTYPE] => visa
[EXPDATE] => 082017
[CVV2] => 665
[IPADDRESS] => xx.xx.xx.xx
[FIRSTNAME] => xx
[LASTNAME] => xx
[STREET] => xx
[STREET2] =>
[CITY] => xx
[STATE] => xx
[ZIP] => xx
[COUNTRYCODE] => US
[INVNUM] => AZ101425x001252x352621x1x349
)
<---end paypal send transaction details in function purchase--->
<---start paypal response transaction details in function purchase--->
time: 08/20/15 12:11:49 PM
Array
(
[TIMESTAMP] => 2015-08-20T19:11:49Z
[CORRELATIONID] => 8b30928b03
[ACK] => Success
[VERSION] => 85.0
[BUILD] => 000000
[AMT] => 11.00
[CURRENCYCODE] => USD
[AVSCODE] => Y
[CVV2MATCH] => M
[TRANSACTIONID] => 9TP856375554029
)
<---end paypal response transaction details in function purchase--->
这是她在上面尝试的第一批中的第三个副本。
怎么可能?!?!
(仅供参考,部分Corrlelation ID和交易ID因安全性而缩短)