From ecd3687745a50f1efd9ef34c2ea4b5090bb083a1 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Sun, 11 Apr 2021 21:16:47 +0100 Subject: [PATCH] Add legacy methods to catch old code --- CRM/Core/Payment/PayPalImpl.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index c60841e0f2..e0f5f1f64b 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -527,6 +527,15 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { 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 @@ -884,6 +893,15 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { ]; } + /** + * 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 -- 2.25.1