6

I would like to move my civi install to a new domain. I am able to change paypal IPN to new domain. But for all previous recurring contribution via paypal, i can't change the urls. what can be done?

7

I ran into this problem today, and found my solution.

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.

I was able to use a rewrite to redirect from Drupal to Wordpress, as follows:

RewriteRule ^sites/all/modules/civicrm/extern/ipn.php$ https://mysite.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.

  • hi Jon, can you please also include a rule for nginx, then I can accept it as an answer? many thanks. – Tapash Jul 31 '15 at 14:17
  • 1
    Note: more recent CiviCRM versions will have IPN urls like /civicrm/payment/ipn/NNN instead. – artfulrobot Feb 13 at 14:52
  • Also, I wonder if a 308 would be better. Supposed to behave the same way but tells client it's a permanent redirect. FWIW... – artfulrobot Feb 13 at 15:04
4

PayPal stores these URLs so there is no way to change this in CiviCRM, nor any other application in fact.

There is a way to change the URL via PayPal's site, however. For details how to do that, refer to Change the IPN url on existing subscription

  • I have already looked at this but seems paypal still did not facilitate to change the existing IPN URLs. – Tapash Apr 14 '15 at 8:25
2

You can actually change the IPN URL in PayPal settings. For previously failed IPN calls to a historic URL you can resend the messages from PayPal's control panel to the new URL.

In PayPal. Profile and Settings -> Selling Preferences -> Instant Payment Notification (IPN)

Change the notification URL here. Then click on the link to IPN history and run a search (this only shows the last 28 days worth though for me).

With the results showing Check a box at the top of the list which says apply profile and there will be a drop down box to resend the IPNs to the new URL.

Simples

  • Changing the IPN notification URL unfortunately does NOT update existing recurring payments. – Jon G - Megaphone Tech Jul 30 '15 at 18:25
1

Civi does not have the facility to do this. Your best bet is to check and see if you can do this in paypal directly or via the API. You might also experiment with setting up a redirect from the old to the new (not sure if this will work, since it is a POST request from paypal servers)

Please report back your findings. I suspect more and more folks will start running into this issue

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.