问题描述
我们计划为我们的服务更改域名.因此,我们需要为现有客户更新 IPN-url.我曾尝试在谷歌上搜索有关如何更改当前订阅的 IPN-url 的解决方案,但我什么也没找到.
we plan to change the domain name for our service. Therefore we need to update the IPN-url for our existing customers. I have tried googling a solution on how to change the IPN-url for current subscriptions, but I haven't been able to find anything.
感谢任何帮助.
最好的问候托马斯
推荐答案
我今天遇到了这个问题.
I ran into this problem today.
那些说您可以更改现有 Paypal 定期付款上的 IPN URL 的人是不正确的;您不能,您只能更改 IPN URL 以备将来通知.
Folks who are saying that you can change the IPN URL on an existing Paypal recurring payment are incorrect; you can't, you can only change the IPN URL for future notifications.
为了解决这个问题,我使用了 Apache 重写:
To resolve this, I used an Apache rewrite:
RewriteRule ^sites/all/modules/civicrm/extern/ipn.php$ https://example.org/wp-content/plugins/civicrm/civicrm/extern/ipn.php [R=307,L]
RewriteRule ^sites/all/modules/civicrm/extern/ipn.php$ https://example.org/wp-content/plugins/civicrm/civicrm/extern/ipn.php [R=307,L]
神奇的是 R=307.307 重定向表示 POST 请求必须作为 POST 重新发送.否则您将丢失 IPN 数据.
The magic is the R=307. A 307 redirect indicates that a POST request must be resent as a POST. Otherwise you lose the IPN data.
这篇关于更改现有订阅的 IPN url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!