什么是用于检索交易详细信息的 PayPal PDT URL?

What is the PayPal PDT URL to retrieve transaction details?

我正在 PayPal 中设置 Payment Data Transfer (PDT)

文档说下一步(图中的第 3 步)是:

Your return URL web page contains an HTML POST form that retrieves the transaction ID and sends the transaction ID and your unique PDT token to PayPal.

没关系。

但是我 POST 将此数据发送到什么 PayPal URL 以检索交易详细信息?我使用什么形式/参数名称?

我已经阅读了 PayPal documentation site 上的多个页面,但找不到任何对此 PDT URL 的引用!?

当您通过 PayPal 控制面板启用 PDT 时,PayPal 会向您发送一封确认电子邮件。在这封电子邮件中,有一份 link 似乎是隐藏文档!

https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/paymentdatatransfer/

Post a FORM to PayPal that includes the transaction ID and your identity token, a string value that identifies your account to PayPal. The form looks like this:

<form method=post action="https://www.paypal.com/cgi-bin/webscr">
  <input type="hidden" name="cmd" value="_notify-synch">
  <input type="hidden" name="tx" value="TransactionID">
  <input type="hidden" name="at" value="YourIdentityToken">
  <input type="submit" value="PDT">
</form>

In PayPal's reply to your post, the first line is SUCCESS or FAIL. A successful response looks like this, with the HTTP header omitted:

SUCCESS
first_name=Jane+Doe
last_name=Smith
payment_status=Completed
payer_email=janedoesmith%40hotmail.com
payment_gross=3.99
mc_currency=USD
custom=For+the+purchase+of+the+rare+book+Green+Eggs+%26+Ham
...

我最初没有阅读就丢弃了这封电子邮件,这就是为什么我错过了秘密文档!

我还发现 this stackexchange question 引用了一个更老的 PayPal 文档页面,上面说了同样的话:

https://www.paypal.com/us/cgi-bin/webscr?cmd=p/xcl/rec/pdt-techview-outside

但同样,文档页面不可浏览,因此您必须碰巧知道确切的 URL 才能找到它!