CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Paypal standard IPN URL not updated after domain change
Pages: [1]

Author Topic: Paypal standard IPN URL not updated after domain change  (Read 1177 times)

andyg8

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • CiviCRM version: 4.3.2
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.22
Paypal standard IPN URL not updated after domain change
December 14, 2013, 05:30:13 am
Hi, we recently changed our domain name, and did a thorough flushing of caches etc. However, the URL used by Paypal Standard IPNs doesn't seem to have changed to reflect the new domain name. Paypal sent us a message saying IPNs sent to these URLs are failing:

http://our-old-domain.com/sites/all/modules/civicrm/extern/ipn.php?reset=1&contactID=971&contributionID=106&module=contribute&membershipID=1253&contributionRecurID=6&contributionPageID=3

http://our-old-domain.com/sites/all/modules/civicrm/extern/ipn.php?reset=1&contactID=725&contributionID=428&module=contribute&membershipID=1384&contributionRecurID=37&contributionPageID=16

We can see that recurring payments ceased being tracked after changing the domain.

Also, after changing our domain, a couple of days later we added SSL. Will that have any ramifications?

Where can we go to set all our recurring payments so they are using the correct IPN URLs?

Thanks for your help.

(By the way this is what we did to clear caches after changing our domain:)

Empty the Drupal performance cache
Empty the Drupal Views cache - see Views / settings / advanced
Rebuild permissions cache - Reports > Status Report > scroll to Node Access permissions and Rebuild permissions.
Run the CiviCRM scheduled job (Admin>System settings>Scheduled jobs) - clean up temporary data and files
Then access PHP MyAdmin - empty/truncate all tables with the word ‘cache’ in their title (drupal and civi). We need to do that in the separate Civicrm and Drupal databases, because, even thought the civi tables are still in the Drupal database, they’re not being used!
Then truncate the session table. (You select the table and in the bottom of the screen action menu select Empty)
Then via FTP:  empty the following directories (this is much quicker in cPanel file manager than in Filezilla):
<drupal-root>/sites/default/files/civicrm/templates_c/*
<drupal-root>/sites/default/files/civicrm/ConfigAndLog/Config.IDS.ini
<drupal-root>/sites/default/files/civicrm/ConfigAndLog/*
<civicrm_custom_extension_folder>/cache/*


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Paypal standard IPN URL not updated after domain change
December 14, 2013, 08:30:23 am

I think this is more a paypal question that a civi question

civi does not know (and hence does not let paypal know) that your domain has changed. You might want to check paypal console and see if you can change the ipn url there. Civi sets it only at creation time. There might be an api to change the ipn url, but pretty sure we dont use that api if it exists

please report back your findings

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

andyg8

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • CiviCRM version: 4.3.2
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.22
Re: Paypal standard IPN URL not updated after domain change
March 17, 2014, 07:27:03 am
Sorry, it's taken a while to reply to this with our findings:

We use: Paypal website standard, on a business account, and it does the following:

It has a field where you can change your IPN URL, so naturally its very important to make that change if you are changing your domain name. Paypal > My Account > Profile > Selling preferences, Instand Payment Notification preferences.

However, whenever a user sets up a payment profile (ie a recurring payment), the IPN URL is recorded for that profile. So if you change your domain name, then all the users' profiles set up before that date will have the old domain's IPN URL recorded with them.
It's therefore necessary to ensure you have a rewrite rule (eg in .htaccess) to ensure that the old IPN URLs will be forwarded to your new domain.

Paypal doesn't like it when IPN URLs fail on your account. They make it a policy to remove all IPN URL notifications if you have persistant failures, so you'd lose all IPN functionality if you don't attend to the above points. Not a very helpful scenario!

Finally, you can only have one IPN URL set within your account's settings. While individual profiles may have earlier IPNs attached to them, you can only have one current one.

Hope that all makes sense!
« Last Edit: March 17, 2014, 07:28:43 am by andyg8 »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Paypal standard IPN URL not updated after domain change

This forum was archived on 2017-11-26.