public $_bltID;
- public $_fields;
+ public $_fields = array();
/**
* @var array current payment processor including a copy of the object in 'object' key
*/
public $_paymentProcessor;
- public $_recurPaymentProcessors;
+
+ /**
+ * Available recurring processors.
+ *
+ * @var array
+ */
+ public $_recurPaymentProcessors = array();
/**
* Array of processor options in the format id => array($id => $label)
protected $_formType;
- /**
- * @var mystery variable screaming out for documentation
- */
- protected $_cdType;
-
/**
* Array of fields to display on billingBlock.tpl - this is not fully implemented but basically intent is the panes/fieldsets on this page should
* be all in this array in order like
if (!empty($processor['description'])) {
$this->_processors[$id] .= ' : ' . ts($processor['description']);
}
+ if ($processor['is_recur']) {
+ $this->_recurPaymentProcessors[$id] = $this->_processors[$id];
+ }
}
- //get the valid recurring processors.
- $test = strtolower($this->_mode) == 'test' ? TRUE : FALSE;
- $recurring = CRM_Core_PseudoConstant::paymentProcessor(FALSE, $test, 'is_recur = 1');
- $this->_recurPaymentProcessors = array_intersect_key($this->_processors, $recurring);
}
$this->assign('recurringPaymentProcessorIds',
empty($this->_recurPaymentProcessors) ? '' : implode(',', array_keys($this->_recurPaymentProcessors))
$this->assignBillingType();
- $this->_fields = array();
- CRM_Core_Payment_Form::setPaymentFieldsByProcessor($this, $this->_paymentProcessor);
+ CRM_Core_Payment_Form::setPaymentFieldsByProcessor($this, $this->_paymentProcessor, FALSE, TRUE);
}
}
catch (CRM_Core_Exception $e) {