Change the IPN url on existing subscription

丶灬走出姿态 提交于 2019-12-18 04:15:09

问题


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.

Any help is appreciated.

best regards Thomas


回答1:


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 :(




回答2:


I ran into this problem today.

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.

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]

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.




回答3:


If you need to chnage IPN Url make sure that it is still turned on check from History>IPN History and turn it on.

IPN can be enabled in one of 2 ways.

In the PayPal account Profile Passing an IPN URL as a parameter in an API call or button code. To enable IPN in your account profile follow these steps:

  1. Log into your account at https://www.paypal.com
  2. Click on the Profile
  3. subtab In "My selling tools" click Update in the Instant Payment Notifications section.
  4. Click the Edit button or Choose IPN settings
  5. Enter your IPN URL in the Notification URL field Make sure the radio button for 'Receive IPN messages (Enabled)' is selected
  6. Click Save

IPN can be enabled directly in this section of the account: https://www.paypal.com/ie/cgi-bin/webscr?cmd=_profile-ipn-notify-edit (access requires login)

To pass an IPN URL as a code-level parameter you should refer to the documentation of the feature you are implementing. Typically the API variable you would pass is 'NotifyURL' but it can differ based on the API call, if the API is Name-Value-Pair (NVP) or SOAP format or if you are using non-hosted PayPal Standard button code. For standard buttons the variable is "notify_url".

This profile setting is frequently overridden by shopping carts. Still, IPN should be enabled in the account.




回答4:


It's 1 May 2013 & PayPal has changed the location for the IPN.

Login, go to Profile -> My selling tools ->Instant Payment Notifications...(Update)

This shows your current IPN URL, and there is an EDIT button.




回答5:


I have just done it.

Login, go to Profile -> My Account Settings ->Instant Payment Notifications...(Update)

This shows your current IPN URL, and there is an EDIT button, which works.

This is April 2013, so PayPal might have changed since this question was posted



来源:https://stackoverflow.com/questions/11454900/change-the-ipn-url-on-existing-subscription

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!