From a49b6cb6d2ab23d832525394a3f1996c0e273a0a Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 27 Mar 2021 10:37:36 +1300 Subject: [PATCH] Remove deprecated code --- api/v3/Payment.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/v3/Payment.php b/api/v3/Payment.php index 2e9649aba7..437d0e5a4e 100644 --- a/api/v3/Payment.php +++ b/api/v3/Payment.php @@ -135,12 +135,6 @@ function civicrm_api3_payment_create($params) { } } } - if (!empty($params['payment_processor'])) { - // I can't find evidence this is passed in - I was gonna just remove it but decided to deprecate as I see getToFinancialAccount - // also anticipates it. - CRM_Core_Error::deprecatedFunctionWarning('passing payment_processor is deprecated - use payment_processor_id'); - $params['payment_processor_id'] = $params['payment_processor']; - } // Check if it is an update if (!empty($params['id'])) { $amount = $params['total_amount']; -- 2.25.1