Skip to content

Commit

Permalink
Merge pull request #15591 from eileenmcnaughton/noisy_deprecate_transact
Browse files Browse the repository at this point in the history
Add noisy deprecation warning to Contribution.transact
  • Loading branch information
seamuslee001 authored Oct 23, 2019
2 parents f51963f + 647143d commit 7e66210
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v3/Contribution/Transact.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@ function _civicrm_api3_contribution_transact_spec(&$params) {
/**
* Process a transaction and record it against the contact.
*
* @deprecated
*
* @param array $params
* Input parameters.
*
* @return array
* contribution of created or updated record (or a civicrm error)
*/
function civicrm_api3_contribution_transact($params) {
CRM_Core_Error::deprecatedFunctionWarning('The contibution.transact api is unsupported & known to have issues. Please see the section at the bottom of https://docs.civicrm.org/dev/en/latest/financial/OrderAPI/ for getting off it');
// Set some params specific to payment processing
// @todo - fix this function - none of the results checked by civicrm_error would ever be an array with
// 'is_error' set
Expand Down

0 comments on commit 7e66210

Please sign in to comment.