php – 更改域后如何处理PayPal IPN?

如果您的应用程序每月都有PayPal月订阅和IPN消息发送到IPN接收者URL,那将是一个标准程序.

当用户注册时,我们在注册表单中设置ipn_url.

例如

我有一个域名http://domain.com/ipn.php,我收到所有IPN.现在我的网站转到http://example.com/ipn.php.请注意,我将http://domain.com/ipn.php保存在PayPal帐户中作为IPN URL.

最佳答案
This answer on 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监听器留在原处.

但是,上面的答案是几年之久,可能有一个我不知道的解决方案.也许您可以联系客户支持.

点赞