Create contribution before taking payment, per contribution page workflow
}
// CRM-20264: fetch CC type ID and number (last 4 digit) and assign it back to $params
+ // @todo remove this once backoffice form is doing it - front end is doing it twice.
+ // (in general they are sharing much more code than they should - anything that truly should be shared
+ // should not be on this class).
CRM_Contribute_Form_AbstractEditPayment::formatCreditCardDetails($params);
- $contribParams = array(
+ $contribParams = [
'contact_id' => $contactID,
'financial_type_id' => !empty($form->_values['event']['financial_type_id']) ? $form->_values['event']['financial_type_id'] : $params['financial_type_id'],
'receive_date' => $now,