【发布时间】:2011-07-01 07:32:37
【问题描述】:
我设置了一个使用 IPN 的 PayPal 站点,但我无法让 PayPal 将 GET 变量发送到我指定的返回 URL。它正在将用户的浏览器发送到返回 URL,但没有通过 GET 或 POST 传递任何内容。
我将 PayPal 企业帐户中的一项设置:“付款数据传输(可选)”更改为在 PayPal 网站上生成“身份令牌”的设置。
我还收到一封来自 PayPal 的自动电子邮件:
---------- Forwarded message ----------
From: service@paypal.com <service@paypal.com>
Subject: Payment Data Transfer (PDT) Has Been Enabled
This email is to inform you that you have successfully enabled Payment Data Transfer.
PDT's primary function is to display payment transaction details to buyers when they are redirected back to your site upon payment completion. However, there are cases, such as with pending transactions, where you won't receive notification of all transactions. For this reason, PayPal strongly recommends that you also enable Instant Payment Notification (IPN).
To learn more about enabling and setting up IPN:
https://www.paypal.com/us/cgi-bin/?cmd=p/xcl/rec/ipn-intro-outside
To learn more about Payment Data Transfer, including setup instructions and a complete list of variables:
https://www.paypal.com/us/cgi-bin/?cmd=p/xcl/rec/pdt-intro-outside
Sincerely,
PayPal
点击第二个链接并点击“技术概述”(https://www.paypal.com/us/cgi-bin/webscr?cmd=p/xcl/rec/pdt-techview-outside)显示:
您的 POST 应发送至 https://www.paypal.com/cgi-bin/webscr。 您必须发布交易令牌 使用变量“tx”和值 之前的交易代币 收到(例如 “tx=transaction_token”),以及 使用特殊身份令牌 变量 at 和 PDT 的值 身份令牌(例如 “at=identity_token”)。你也会 需要附加一个名为“cmd”的变量 值为“_notify-synch”,对于 例如“cmd=_notify-synch”,到 POST 字符串。
但是,我根本没有传递身份令牌,但一切正常!
(a) Is this a problem?
(b) Why is it working if the documentation implies that it shouldn't?
(c) Is this a consequence of specifying an outdated API version (58.0)? What is the value I should be using?
【问题讨论】:
标签: paypal paypal-ipn