10609 paypal沙箱中的交易ID无效

时间:2015-02-03 12:53:55

标签: java paypal paypal-sandbox

我已经完成了与此问题相关的所有帖子,但我没有找到任何特定的解决方案,在我的方案中,在尝试这些替代方案之后,问题仍然存在。

我使用的是paypal沙盒,下面是来自doExpressCheckout api响应的响应,这是成功的。

EC%2d9VU62103VP339240X&
SUCCESSPAGEREDIRECTREQUESTED=false&
TIMESTAMP=2015%2d02%2d03T12%3a18%3a36Z&
CORRELATIONID=7c3edc0fdf0dd&
ACK=Success&VERSION=119%2e0&
BUILD=15110743&INSURANCEOPTIONSELECTED=false&
SHIPPINGOPTIONISDEFAULT=false&
PAYMENTINFO_0_TRANSACTIONID=61065405X5999873U&
PAYMENTINFO_0_TRANSACTIONTYPE=expresscheckout&PAYMENTINFO_0_PAYMENTTYPE=instant&
PAYMENTINFO_0_ORDERTIME=2015%2d02%2d03T12%3a18%3a36Z&PAYMENTINFO_0_AMT=598%2e90&
PAYMENTINFO_0_FEEAMT=17%2e67&
PAYMENTINFO_0_TAXAMT=0%2e00&PAYMENTINFO_0_CURRENCYCODE=USD&
PAYMENTINFO_0_PAYMENTSTATUS=Completed&PAYMENTINFO_0_PENDINGREASON=None&
PAYMENTINFO_0_REASONCODE=None&PAYMENTINFO_0_PROTECTIONELIGIBILITY=Eligible&
PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE=ItemNotReceivedEligible%2cUnauthorizedPaymentEligible&
PAYMENTINFO_0_SECUREMERCHANTACCOUNTID=B59AFL78MCNRA&PAYMENTINFO_0_ERRORCODE=0&PAYMENTINFO_0_ACK=Success

现在我正在使用此响应中的交易ID来调用DoCapture api,但我得到了"10609 Transaction id is invalid"。请注意,在paypal中,交易已经确认,我可以在那里看到。

以下是DoCapture api的请求:

COMPLETETYPE=Complete&AMT=598.9
&PAYMENTREQUEST_0_PAYMENTACTION=Sale
&METHOD=DoCapture&
AUTHORIZATIONID=61065405X5999873U&PAYMENTREQUEST_0_CURRENCYCODE=USD
&VERSION=119.0&
USER=xxxxxxxxxxxxxxxxx
PWD=xxxxxxxxx&
SIGNATURE=xxxxxxxxx

响应:

  

AUTHORIZATIONID = 6106540​​5X5999873U&安培; TIMESTAMP = 2015%2d02%2d03T11%3a36%3a42Z&安培;的correlationID = 233e0f1acfe90&安培; ACK =失败&安培; VERSION = 119%2E0&安培; BUILD = 15110743&安培; L_ERRORCODE0 = 10609&安培; L_SHORTMESSAGE0 =无效%20transactionID%2E&安培; L_LONGMESSAGE0 =事务%20id%图20是%20invalid%2E&安培; L_SEVERITYCODE0 =错误

请提供宝贵的建议。

1 个答案:

答案 0 :(得分:0)

您无需致电DoCapture - 实际上无法调用DoCapture - 来捕获销售交易。您在DoExpressCheckout中执行的促销交易会立即将资金转入您的帐户。一旦DoExpressCheckout返回,交易就完成了。

如果您只想在DoExpressCheckout中授权付款,则需要指定PAYMENTACTION =授权。这将在DoExpressCheckout调用中创建待定授权而不是销售交易;然后,您可以稍后致电DoCapture(例如当您运送货物时)以完成待处理的交易并将资金转移到您的帐户。