6

I have a site that is using PayPal Standard as their Payment Processor and WordPress as the CMS. After the upgrade from 4.4.x to 4.5.8 Recurring Payments are no longer working.

Could this be related to issues where the PayPal IPN callback fails? I suspect that the issue is that PayPal is not communicating properly with the site. Where can we find the code that would handle this?

4

Currently this is working on my development site:

Code removed as the actual solution is now in CiviCRM v 4.6.3

The first part is gets the payment status to flip to completed, the second section lets the IPN call back complete and send the email. This is by no means perfect as if wp-load.php is NOT in the doc root it will fail.

It is a working solution for now. Will comment if a better more flexible solution can be found

Patches for this problem are documented here: https://issues.civicrm.org/jira/browse/CRM-15629

CiviCRM version 4.6.3 for WordPress fixes the issue

| improve this answer | |
3

There's a bug report that sounds like the same issue - it's because the WordPress wp-load.php file isn't getting bootstrapped properly in some circumstances. I had a similar problem and used Brian Shaughnessy's fix, which worked - but Kevin Cristiano reported that he needed to also alter an IPN file.

I got fed up with counting relative directories, so my actual code in CRM_Core_Permission_WordPress was:

    if (!defined(ABSPATH) || !defined(WPINC)) {
      $path = $_SERVER['DOCUMENT_ROOT'];
      $path .= "/wp-load.php";
      require_once($path); 
    } 

Obviously alter the location as your setup requires...

| improve this answer | |
  • wait - I just spotted that you are Kevin Cristiano :-) so presumably this fix wasn't enough? – Andrew West Apr 7 '15 at 15:51
0

I think we have the same issue in Drupal CiviCRM 4.5.5. PayPal IPN history shows the notifications are being sent through, but nothing is being recorded or updated in CiviCRM.

Thesee are recurring contributions which were previously set-up successfully.

| improve this answer | |
  • I've just spoken to PayPal today. If you have a recurring payment (or subscription) set up previously on an old domain you can't update the URL the IPN notifications are being sent to! Only new payments will receive the IPN to the right URL. – Jon-man Aug 24 '15 at 12:01

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.