}
$financialTypeID = $this->wrangleFinancialTypeID($contributionTypeId);
- return CRM_Contribute_BAO_Contribution_Utils::processConfirm($this, $paymentParams,
+ $result = CRM_Contribute_BAO_Contribution_Utils::processConfirm($this, $paymentParams,
$premiumParams, $contactID,
$financialTypeID,
'contribution',
($this->_mode == 'test') ? 1 : 0,
$isPayLater
);
+
+ if (CRM_Utils_Array::value('contribution_status_id', $result) == 1) {
+ civicrm_api3('contribution', 'completetransaction', array('id' => $result['contribution']->id));
+ }
+ return $result;
}
}