2016-04-26 174 views
0

Paypal的沙盒API使用“无效的TransactionID”错误代码10609响应DoCapture。相同的操作在PayPal实时站点中正常工作。我认为可能会有一些弃用的参数在沙盒中被拒绝,但在PayPal实时站点中被接受。沙盒中的PayPal DoCapture失败,出现10609错误 - 无效的TransactionID

ff。是从IPN POST数据:

[mc_gross] => 1.05 [auth_exp] => 05:28:33 May 26, 2016 PDT [protection_eligibility] => Ineligible [payer_id] => SCBNBBCFDWQ54 [tax] => 0.00 [payment_date] => 05:28:33 Apr 26, 2016 PDT [payment_status] => Pending [charset] => windows-1252 [first_name] => SandboxStephen [option_selection1] => Lc1tCoAwCAbgu3iCxtYHdpghtEKoUc2IEd09G_ulPq8oYYtPwh7hSuH0PMGYlMCYbrB_r8kUaK2JRXCuqc7JLzzLPxmEogPCcVEUllzZlKq-U95CFL-QhJtyPagb-ub9AA,,~7634f [transaction_entity] => auth [option_selection2] => VU7LDgIhEPuX-QACw_CavfoHxjPZAAdNBLO4h43x3wXjxfYybZNOVyZ-dUaG6wOWzooYnBZIQSiDQqH8upphvbe9PmMtJZcMS2YlpJF_ICLpA8rgR2DRqsFABq11qK1Gr9D82tK-baWmI6aWy3wxvMv5NC83tvR4661OJRlgeX8A~97b17 [option_selection3] => S7QytKoutjK3UspNLS5OTE9Vsi62MrBSUrKuBQA,~2c5b4 [option_selection4] => S7QytqoutjK3UkrPTCuJL8lXsi62MrBSAlGWUMG0ovxcJGFDA6h4am5iZg5cohYA~2aa63 [notify_version] => 3.8 [custom] => [payer_status] => verified [business] => [email protected] [quantity] => 1 [verify_sign] => AvzodxdQ1l47jbnC5iCE7iEjAVYEAnMT6fQE9TdHnShf4zX8V6L99Kpe [payer_email] => [email protected] [option_name1] => Transkey [parent_txn_id] => [option_name2] => Syskey [option_name3] => Message [option_name4] => Gift [txn_id] => 4R146799GX924083N [payment_type] => instant [remaining_settle] => 10 [auth_id] => 4R146799GX924083N [last_name] => xxxxx [receiver_email] => [email protected] [auth_amount] => 1.05 [shipping_discount] => 0.00 [insurance_amount] => 0.00 [receiver_id] => F3XAHZBJYATHU [pending_reason] => authorization [txn_type] => web_accept [item_name] => Test New Deal 2 (Topic) [discount] => 0.00 [mc_currency] => USD [item_number] => [residence_country] => US [test_ipn] => 1 [shipping_method] => Default [handling_amount] => 0.00 [transaction_subject] => [payment_gross] => 1.05 [auth_status] => Pending [shipping] => 0.00 [ipn_track_id] => ff07a74b6ad10

的FF。是参数DoCapture:

[authorization_id] => 4R146799GX924083N [amount] => 1.05 [invoice_id] => 9569 [currency] => USD [CompleteCodeType] => Complete [note] => Acuerdo de pago

的FF。是PayPal的到DoCapture回应:

[AUTHORIZATIONID] => 4R146799GX924083N [TIMESTAMP] => 2016-04-26T12:28:57Z [CORRELATIONID] => 82d81683c3cc8 [ACK] => Failure [VERSION] => 62 [BUILD] => 21669447 [L_ERRORCODE0] => 10609 [L_SHORTMESSAGE0] => Invalid transactionID. [L_LONGMESSAGE0] => Transaction id is invalid. [L_SEVERITYCODE0] => Error

我已经测试网站上的新的PayPal安全升级,他们正常工作。我指定了API的一个非常旧的版本(62),所以这可能是问题,但我没有看到我需要更改才能使Sandbox正常工作。

谢谢。

回答

0

它看起来像混淆了沙箱环境和生活环境。您可以在实时环境中调用DoCapture,但在沙箱环境中会生成4R146799GX924083N事务。 当您调用Docapture API时,请确保API端点是https://api-3t.sandbox.paypal.com/nvp,端点更改为沙箱,而不是现场。

+0

请检查[here](http://stackoverflow.com/questions/36887028/create-paypal-sandbox-merchant-seller-account) – fresher

+0

这是我的问题。由于代码错误,我在沙箱中进行授权,并在现场进行捕获。非常感谢。 –