如果您的应用程序有 paypal 月度订阅且 IPN 消息每月发送到 IPN 接收方 URL,那么标准程序是什么。
我们在用户注册时在注册表单中设置ipn_url
。
例如
我有一个域http://domain.com/ipn.php
,我在其中接收所有IPN。现在我的网站移动到 http://example.com/ipn.php
。请注意,我将 http://domain.com/ipn.php
作为 IPN URL 保存在 PayPal 帐户中。
最佳答案
This answer在 SO 上似乎是你要找的东西。帖子中有相互矛盾的答案,但似乎如果您在代码级别为您的 IPN 监听器设置 URL,即在您的 PayPal 表单中定义 notify_url
,则无法更新它。
来自上述帖子的最佳答案:
I had exactly the same problem .... I had to move servers which meant my IPN url changed. I have spoken to 3 different paypal reps and even had a meeting with a tech support guy from there.
Unfortunately, there is NO WAY to change the IPN url for existing customers/subscriptions.
I have been advised that all existing customers/subscriptions would need to be setup again, your customers would then need to start a new subscription based on the new IPN url. This is a right PITA ... I have just over 1500 customers I need to do this for, and I can guarantee I will lose some due to the hassle of this.
Sorry this wasn't the answer you were looking for :(
如果可行,我会将 IPN 监听器留在原处。
但是,上面的答案是几年前的,可能有我不知道的解决方案。或许您可以联系客户支持。
关于php - 更改域名后如何处理PayPal IPN?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32132546/