Add legacy methods to catch old code
authorMatthew Wire <mjw@mjwconsult.co.uk>
Sun, 11 Apr 2021 20:16:47 +0000 (21:16 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Sun, 11 Apr 2021 20:19:08 +0000 (21:19 +0100)
CRM/Core/Payment/PayPalImpl.php

index c60841e0f2b93c32b0643905fc495b843ab4d862..e0f5f1f64b9c789cefbf264b4c2b966a741aea85 100644 (file)
@@ -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