Fix for #1579.
authorAllen Shaw <allen@JoineryHQ.com>
Wed, 5 Feb 2020 23:07:38 +0000 (17:07 -0600)
committerAllen Shaw <allen@JoineryHQ.com>
Wed, 5 Feb 2020 23:07:38 +0000 (17:07 -0600)
CRM/Core/Payment/PayPalProIPN.php

index 42c23e308799ef910f612eaae75f1dd3520857dc..e2000056c54bb6765eb719e93991734a0ce135ee 100644 (file)
@@ -457,7 +457,10 @@ INNER JOIN civicrm_membership_payment mp ON m.id = mp.membership_id AND mp.contr
       }
     }
 
-    $paymentProcessorID = self::getPayPalPaymentProcessorID();
+    $paymentProcessorID = CRM_Utils_Array::value('processor_id', $this->_inputParameters);
+    if (!$paymentProcessorID) {
+      $paymentProcessorID = self::getPayPalPaymentProcessorID();
+    }
 
     if (!$this->validateData($input, $ids, $objects, TRUE, $paymentProcessorID)) {
       return;