From 163b562d5d9b6cb6c1fe1cde288bc00c3ae2bd7f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 5 Dec 2023 10:15:00 +1300 Subject: [PATCH] Add deprecation to transition components Deprecate transitionComponents --- CRM/Contribute/BAO/Contribution.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 82b0ff9334..c1bb81b39e 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -1778,11 +1778,14 @@ LEFT JOIN civicrm_contribution contribution ON ( componentPayment.contribution_ * Use api contribute.completetransaction * For failures use failPayment (preferably exposing by api in the process). * + * @deprecated since 5.69 Will be remvoed ASAP since this is old & crufty & + * should never have been used outside core. */ public static function transitionComponents($params) { // @todo fix the one place that calls this function to use Payment.create // remove this. // get minimum required values. + CRM_Core_Error::deprecatedFunctionWarning('use Payment.create api'); $contributionId = $params['contribution_id']; // we process only ( Completed, Cancelled, or Failed ) contributions. -- 2.25.1