}
$params['non_deductible_amount'] = $this->calculateNonDeductibleAmount($params, $formValues);
-
$contribution = CRM_Contribute_BAO_Contribution::create($params, $ids);
// process associated membership / participant, CRM-4395
'payment_instrument_id' => array_search('Check', $this->paymentInstruments),
'contribution_status_id' => 1,
'note' => 'Super cool and interesting stuff',
- ) + $this->getCreditCardParams (),
+ ) + $this->getCreditCardParams(),
CRM_Core_Action::ADD);
$this->callAPISuccessGetCount('Contribution', array('contact_id' => $this->_individualId), 1);
$note = $this->callAPISuccessGetSingle('note', array('entity_table' => 'civicrm_contribution'));
* @return array
* Credit card specific parameters.
*/
- function getCreditCardParams() {
+ protected function getCreditCardParams() {
return array(
'payment_processor_id' => $this->paymentProcessor->id,
'credit_card_exp_date' => array('M' => 5, 'Y' => 2012),