From 0fb605ee00d748c084b6a4164f5132ff092e3cca Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Sun, 23 May 2021 11:26:13 +0100 Subject: [PATCH] If paymentprocessor still uses doTransferCheckout/doDirectPayment trigger deprecated function warning --- CRM/Core/Payment.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index 4254f3ce47a8..16f4691d06e6 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -1378,6 +1378,7 @@ public function doPayment(&$params, $component = 'contribute') { } if ($this->_paymentProcessor['billing_mode'] == 4) { + CRM_Core_Error::deprecatedFunctionWarning('doPayment', 'doTransferCheckout'); $result = $this->doTransferCheckout($params, $component); if (is_array($result) && !isset($result['payment_status_id'])) { $result['payment_status_id'] = array_search('Pending', $statuses); @@ -1385,6 +1386,7 @@ public function doPayment(&$params, $component = 'contribute') { } } else { + CRM_Core_Error::deprecatedFunctionWarning('doPayment', 'doDirectPayment'); $result = $this->doDirectPayment($params, $component); if (is_array($result) && !isset($result['payment_status_id'])) { if (!empty($params['is_recur'])) {