From 379255c9f19da37918cf4de6cc30b9b231ff83d2 Mon Sep 17 00:00:00 2001 From: Allen Shaw Date: Wed, 5 Feb 2020 17:07:38 -0600 Subject: [PATCH] Fix for #1579. --- CRM/Core/Payment/PayPalProIPN.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Payment/PayPalProIPN.php b/CRM/Core/Payment/PayPalProIPN.php index 42c23e3087..e2000056c5 100644 --- a/CRM/Core/Payment/PayPalProIPN.php +++ b/CRM/Core/Payment/PayPalProIPN.php @@ -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; -- 2.25.1