* @param int $contributionTypeId
* Financial type id.
* @param int|string $component component id
- * @param array $fieldTypes
- * Presumably relates to custom field types - used when building data for sendMail.
* @param $isTest
- * @param $isPayLater
*
* @throws CRM_Core_Exception
* @throws Exception
$contactID,
$contributionTypeId,
$component = 'contribution',
- $fieldTypes = NULL,
- $isTest,
- $isPayLater
+ $isTest
) {
CRM_Core_Payment_Form::mapParams($form->_bltID, $form->_params, $paymentParams, TRUE);
$lineItems = $form->_lineItem;
$contactID,
$financialTypeID,
'membership',
- array(),
- $isTest,
- $isPayLater
+ $isTest
);
if (!empty($paymentResult['contribution'])) {
// all the payment processors expect the name and address to be in the
// so we copy stuff over to first_name etc.
$paymentParams = $this->_params;
- $contributionTypeId = $this->_values['financial_type_id'];
- $fieldTypes = array();
if (!empty($paymentParams['onbehalf']) &&
is_array($paymentParams['onbehalf'])
) {
$this->_params[$key] = $value;
}
}
- $fieldTypes = array('Contact', 'Organization', 'Contribution');
}
- $financialTypeID = $this->wrangleFinancialTypeID($contributionTypeId);
$result = CRM_Contribute_BAO_Contribution_Utils::processConfirm($this, $paymentParams,
$contactID,
- $financialTypeID,
+ $this->wrangleFinancialTypeID($this->_values['financial_type_id']),
'contribution',
- $fieldTypes,
- ($this->_mode == 'test') ? 1 : 0,
- $isPayLater
+ ($this->_mode == 'test') ? 1 : 0
);
if (!empty($result['is_payment_failure'])) {