From 21a0550ee980bfed4afb1b54bec6e87b88857844 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Fri, 9 Apr 2021 11:13:58 +0100 Subject: [PATCH] Make it clear that doDirectPayment/doTransferCheckout are deprecated and should not be used --- CRM/Core/Payment.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index 8064029670..cdee696050 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -1298,6 +1298,23 @@ abstract class CRM_Core_Payment { * the result in an nice formatted array (or an error object - but throwing exceptions is preferred) */ protected function doDirectPayment(&$params) { + CRM_Core_Error::deprecatedFunctionWarning('doPayment'); + return $params; + } + + /** + * Calling this from outside the payment subsystem is deprecated - use doPayment. + * @deprecated + * + * @param array $params + * Assoc array of input parameters for this transaction. + * @param string $component + * + * @return array + * the result in an nice formatted array (or an error object - but throwing exceptions is preferred) + */ + protected function doTransferCheckout(&$params, $component = 'contribute') { + CRM_Core_Error::deprecatedFunctionWarning('doPayment'); return $params; } -- 2.25.1