From 788e24b734c9d3c91c89219ccdecac9b72d31f26 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Wed, 9 Aug 2017 13:27:31 +0530 Subject: [PATCH] CRM-20800 : User Cannot Cancel Recurring Payment With Paypal --- CRM/Financial/BAO/PaymentProcessor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Financial/BAO/PaymentProcessor.php b/CRM/Financial/BAO/PaymentProcessor.php index c0c12b73d707..250d35a9a42f 100644 --- a/CRM/Financial/BAO/PaymentProcessor.php +++ b/CRM/Financial/BAO/PaymentProcessor.php @@ -543,6 +543,7 @@ public static function getProcessorForEntity($entityID, $component = 'contribute // The function looks to load the payment processor ID from the contribution page, which // can support multiple processors. } + $paymentProcessor['payment_processor_type'] = CRM_Core_PseudoConstant::paymentProcessorType(FALSE, $paymentProcessor['payment_processor_type_id'], 'name'); $result = Civi\Payment\System::singleton()->getByProcessor($paymentProcessor); } return $result;