Skip to content

Commit

Permalink
Merge pull request #9662 from JMAConsulting/CRM-19792
Browse files Browse the repository at this point in the history
CRM-19792, fixed payment processor params to include email
  • Loading branch information
eileenmcnaughton authored Mar 10, 2017
2 parents 360509b + b43ed44 commit 831d4f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CRM/Contribute/Form/Contribution/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,10 @@ protected function postProcessMembership(
// Since we have called the membership contribution (in a 2 contribution scenario) this is out
// primary-contribution compared to that - but let's face it - it's all just too hard & confusing at the moment!
$paymentParams = array_merge($form->_params, array('contributionID' => $form->_values['contribution_other_id']));

// CRM-19792 : set necessary fields for payment processor
CRM_Core_Payment_Form::mapParams($form->_bltID, $paymentParams, $paymentParams, TRUE);

$paymentActionResult = $payment->doPayment($paymentParams, 'contribute');
$paymentResults[] = array('contribution_id' => $paymentResult['contribution']->id, 'result' => $paymentActionResult);
// Do not send an email if Recurring transaction is done via Direct Mode
Expand Down Expand Up @@ -1759,6 +1763,10 @@ protected function processSecondaryFinancialTransaction($contactID, &$form, $tem
$contributionParams['payment_instrument_id'] = $form->_paymentProcessor['payment_instrument_id'];
}
}

// CRM-19792 : set necessary fields for payment processor
CRM_Core_Payment_Form::mapParams($form->_bltID, $form->_params, $tempParams, TRUE);

$membershipContribution = CRM_Contribute_Form_Contribution_Confirm::processFormContribution($form,
$tempParams,
$tempParams,
Expand Down

0 comments on commit 831d4f8

Please sign in to comment.