1

End of year and we are getting membership renewals. We've used PayPal for years no problem, but since Dec 1, the IPNs (instant purchase notifications) are not working correctly. The transactions are left in the 'Pending' state. I've gone into PayPal's IPN history page and manually resent a few IPNs and they they go through and are then marked as 'Completed' in CiviCRM. But due to bugs in the PayPal history page I can only resend for payments for the last few days. Why are they not going through the first time? This just started happening this month.

I found the patch line:

$paypalParams['notify_url'] = rawurldecode($paypalParams['notify_url']);

and added it to the CRM/Core/Payment/PayPalImpl.php file (I have a different file version from the github entry but found the spot anyway.) Then I made a contribution and the IPN worked, transaction marked as Completed in CiviCRM. Unfortunately there was an error someplace when returning to our site from PayPal's 'return to merchant' link.

Error:

We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.

Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.

Error type: Could not find a valid session key.

This is as far as I have gotten with this.

CiviCRM: 5.29.1 Wordpress: 5.5.3

3
  • Looks like the error on return from paypal is due to being logged into wordpress as admin at the same time. – P a u l Dec 23 '20 at 22:31
  • We have the same issue on a site at present and are digging our way through it. Various threads/Jira issues are running on this but the closest seems to be this one. lab.civicrm.org/dev/core/-/issues/1931. I'll post back depending on our findings but likely to be in the new year now. – Parvez Saleh Dec 23 '20 at 22:35
  • Yes that's the link I found and the patch line they discuss worked for me. Helps to be a programmer to have confidence in adding it by hand. – P a u l Dec 24 '20 at 1:05
1

Purportedly resolved in an update pushed by CiviCRM Admin Utilities 0.8 released on 20 November 2020 (https://lab.civicrm.org/dev/core/-/issues/1931). Payments have been closing for us fine since applying the patch - until today :-. We've had two transactions that wrote the incorrect IPN return URL and two right next to them that wrote the correct IPN return. Going to hit up the lab thread and see if others have run into this problem.

2
  • Can you check your access logs for the exact URL that PayPal is using? – Christian Wach Jan 4 at 12:55
  • The failing transactions (404) are trying to connect to: https://--.org/wp/user-dashboard/?civiwp=CiviCRM&q=civicrm/payment/ipn/3 The transactions that close properly have the correct IPN return URLs: https://--.org/wp/civicrm/payment/ipn/3/. I confirmed the configuration of the IPN return URL in PayPal and reset it, just in case :-) – Geof Newton Jan 5 at 15:59

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.