简体   繁体   English

10609交易ID在Paypal沙箱中无效

[英]10609 Transaction id is invalid in paypal sandbox

I have gone through all the post related to this issue but i didn't find any specific solutions wrt my scenario and after trying these alternatives still the problem persist. 我遍历了所有与此问题相关的帖子,但是在我的方案中没有找到任何具体的解决方案,尝试了这些替代方法后问题仍然存在。

I am using paypal sandbox and below is the response from doExpressCheckout api response which is success. 我正在使用doExpressCheckout宝沙盒,下面是来自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

Now i am using the transaction id from this response for calling DoCapture api but i am getting "10609 Transaction id is invalid" . 现在,我正在使用此响应中的事务ID调用DoCapture api,但我收到"10609 Transaction id is invalid" Please note that in paypal the transaction is confirmed and i can see it there. 请注意,在贝宝中交易已确认,我可以在那看到它。

Below is the request for DoCapture api: 以下是对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

Response: 响应:

AUTHORIZATIONID=61065405X5999873U&TIMESTAMP=2015%2d02%2d03T11%3a36%3a42Z&CORRELATIONID=233e0f1acfe90&ACK=Failure&VERSION=119%2e0&BUILD=15110743&L_ERRORCODE0=10609&L_SHORTMESSAGE0=Invalid%20transactionID%2e&L_LONGMESSAGE0=Transaction%20id%20is%20invalid%2e&L_SEVERITYCODE0=Error AUTHORIZATIONID = 6106540​​5X5999873U&TIMESTAMP = 2015%2d02%2d03T11%3a36%3a42Z&CORRELATIONID = 233e0f1acfe90&ACK = Failure&VERSION = 119%2e0&BUILD = 15110743&L_ERRORCODE0 = 10609&L_SHORTMESS %%% 20%&Error_%20%&%20%&%_ Ess%ESS%0%= Invalid20%= Invalid20 %% Transaction = Invalid20%= 20%

Please provide your valuable suggestions. 请提供您宝贵的建议。

You do not need to call DoCapture -- and indeed cannot call DoCapture -- to capture a sale transaction. 您不需要致电DoCapture -实际上也可以不致电DoCapture来捕获销售交易。 A sale transaction, which is what you did in DoExpressCheckout, immediately transfers the money to your account. 您在DoExpressCheckout中所做的销售交易会立即将资金转入您的帐户。 The transaction is complete as soon as DoExpressCheckout returns. DoExpressCheckout返回后,交易即告完成。

If you want to only authorize the payment in DoExpressCheckout you would need to specify PAYMENTACTION=Authorization. 如果您只想在DoExpressCheckout中授权付款,则需要指定PAYMENTACTION = Authorization。 This will create a pending authorization instead of a sale transaction in the DoExpressCheckout call; 这将在DoExpressCheckout调用中创建待处理的授权,而不是销售交易; you would then call DoCapture at a later time (such as when you have shipped the goods) to complete the pending transaction and move the funds to your account. 然后,您将在以后的时间(例如,在您装运货物时)致电DoCapture,以完成挂起的交易并将资金转移到您的帐户中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM