From: Eileen McNaughton Date: Wed, 24 Jun 2015 23:59:51 +0000 (+1200) Subject: CRM-16417 save trxn_id when completing status X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a8fcc86a618991481e512bbf6ba3a0e02f061154;p=civicrm-core.git CRM-16417 save trxn_id when completing status --- diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index 3b82a5cd4e..5e74ac38dd 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -2107,7 +2107,11 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr ); if (CRM_Utils_Array::value('contribution_status_id', $result) == 1) { - civicrm_api3('contribution', 'completetransaction', array('id' => $result['contribution']->id)); + civicrm_api3('contribution', 'completetransaction', array( + 'id' => $result['contribution']->id, + 'trxn_id' => CRM_Utils_Array::value('trxn_id', $result), + ) + ); } return $result; }