diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index 8064029670ca..52caf60ff1aa 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -1297,7 +1297,23 @@ protected function getNotifyUrl() { * @return array * the result in an nice formatted array (or an error object - but throwing exceptions is preferred) */ - protected function doDirectPayment(&$params) { + protected function doDirectPayment(&$params, $component = 'contribute') { + 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. + * + * @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; }