Skip to content

Commit

Permalink
Add legacy methods to catch old code
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Apr 11, 2021
1 parent 42fcf59 commit ecd3687
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CRM/Core/Payment/PayPalImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,15 @@ public function doPayment(&$params, $component = 'contribute') {
return $result;
}

/**
* Temporary function to catch transition to doPaymentPayPalButton()
* @deprecated
*/
public function doDirectPayment(&$params) {
CRM_Core_Error::deprecatedFunctionWarning('doPayment');
return $this->doPaymentPayPalButton($params);
}

/**
* This function collects all the information from a web/api form and invokes
* the relevant payment processor specific functions to perform the transaction
Expand Down Expand Up @@ -884,6 +893,15 @@ public function doPreApproval(&$params) {
];
}

/**
* Temporary function to catch transition to doPaymentRedirectToPayPal()
* @deprecated
*/
public function doTransferCheckout(&$params, $component = 'contribute') {
CRM_Core_Error::deprecatedFunctionWarning('doPayment');
$this->doPaymentRedirectToPayPal($params);
}

/**
* @param array $params
* @param string $component
Expand Down

0 comments on commit ecd3687

Please sign in to comment.