Skip to content
Snippets Groups Projects
Unverified Commit 9ab635e8 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #20463 from mattwire/transactdopayment

Don't pass doPayment by reference in Contribution.transact API
parents 15a79a58 a877d167
Branches
Tags
No related merge requests found
......@@ -58,7 +58,7 @@ function civicrm_api3_contribution_transact($params) {
$params['invoice_id'] = CRM_Utils_Array::value('invoice_id', $params, md5(uniqid(rand(), TRUE)));
$paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment($params['payment_processor'], $params['payment_processor_mode']);
$paymentProcessor['object']->doPayment($params);
$params = $paymentProcessor['object']->doPayment($params);
$params['payment_instrument_id'] = $paymentProcessor['object']->getPaymentInstrumentID();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment