From a8fcc86a618991481e512bbf6ba3a0e02f061154 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 25 Jun 2015 11:59:51 +1200 Subject: [PATCH] CRM-16417 save trxn_id when completing status --- CRM/Contribute/Form/Contribution/Confirm.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.25.1