-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRM-20048 Parse "business" not "receiver_email" from IPN #9858
CRM-20048 Parse "business" not "receiver_email" from IPN #9858
Conversation
ajdavis
commented
Feb 18, 2017
•
edited by civicrm-builder
Loading
edited by civicrm-builder
- CRM-20048: PayPal IPNs not processed if "receiver_email" != "business"
Can one of the admins verify this patch? |
@eileenmcnaughton does this make sense to you, I know you have dealt in IPNs a bit |
@sunilpawar - what is your degree of confidence on this? |
@eileenmcnaughton We had same issue with Paypal email and after applying these changes our problem solved. its more than 6 month no issue reported by customer or detected in CiviCRM log. So i am 100% with this fix. |
Thanks @ajdavis, @seamuslee001 @sunilpawar - merged |
@eileenmcnaughton I'm not sure the JIRA issue was resolved, my read was that for some (many?) sites |
I understood from the report by @ajdavis & from @sunilpawar that business is always Ok & receiver_email is sometimes |
I guess @sunilpawar it's not 100% clear if you rolled out for all cividesk customers or just one - which would affect my read on your confidence |
We do use Worth noting that this block of code only gets hit if the IPN URL does not contain It seems we use It looks like this fix shouldn't even be required if we set notify_url correctly, the email lookup is just a failover. |
Thanks, folks. My CiviCRM / WordPress site is receiving IPNs like:
Where "info@REDACTED.COM" is the PayPal account's primary email address and "other_email@REDACTED.COM" is the address I set up for notifications. I see no processor_type. |
@xurizaemon from my read of your comments, we've been mapping the 'receiver_email' value from PayPal to 'user_name' in CiviCRM and this patch will change that to mapping the 'business' value from PayPal to 'user_name' in CiviCRM. This certainly sounds like the proper solution for the use case in https://issues.civicrm.org/jira/browse/CRM-20048 where there was an email change at PayPal. I have not tested this patch when there was _not _ an email change. @nganivet have you deployed this to all CiviDesk clients? If so and it is working, that would make me feel better. I'd prefer to be cautious here and ensure we are confident in this change before releasing 4.7.17. In @ajdavis 's case, we can apply this patch in the interim as it solves his issue. |
@ajdavis thanks. Can you confirm which CiviCRM version you're using? In 4.6 I don't expect you to get That value ought to be carried through to If you're on 4.7 and seeing IPN on a URL that includes such a processor ID either in the path or parameters, AND you're affected by the bug which this PR fixes, my feeling is that a better fix here should be to get processor lookup by passed in ID working. |
@kcristiano my read of the situation (discussion) is that IMO we need to better understand why this is presenting as a problem, and whether the proposed fix is safe for unaffected sites. |
Thanks @xurizaemon, we're running CiviCRM 4.6.24, so we don't have the processor_id parameter yet. |
OK - more questions for @sunilpawar - ie. did you test this on 4.7 or 4.6 (and have you been running on multiple sites over that time period). I believe that 4.7 would still be affected by IPNs for old recurring contributions - even if the new ones use the alternate method |
Change we did on 4.6 version and multiple site running on same code-base. |
Ah - so no-one has tested this on 4.7 - that makes me less comfortable. We need to ask better questions. However, the 'multiple site running on same code-base' gives me a fair bit of confidence and on 4.6 that line of code would have been hit MORE rather than less often than in 4.7 |
@kcristiano @eileenmcnaughton Yes, this patch been installed on all our customer sites on 7/26/2016 and we have not experienced any issues since. This is the comment that Sunil inserted in the code when making that change: |
thanks - that feels ok then |
CRM-20048 Parse "business" not "receiver_email" from IPN