Skip to content

Commit

Permalink
Make it clear that doDirectPayment/doTransferCheckout are deprecated …
Browse files Browse the repository at this point in the history
…and should not be used
  • Loading branch information
mattwire committed Apr 9, 2021
1 parent 6c1f813 commit ca6c40f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion CRM/Core/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ca6c40f

Please sign in to comment.