// lineItem isn't set until Register postProcess
$this->_lineItem = $this->get('lineItem');
$this->_ccid = $this->get('ccid');
- $this->_paymentProcessor = $this->get('paymentProcessor');
+
$this->_params = $this->controller->exportValues('Main');
$this->_params['ip_address'] = CRM_Utils_System::ipAddress();
$this->_params['amount'] = $this->get('amount');
$this->_fields = $this->get('fields');
$this->_bltID = $this->get('bltID');
$this->_paymentProcessor = $this->get('paymentProcessor');
+ if (!$this->_paymentProcessor) {
+ $this->_paymentProcessor = array('object' => Civi\Payment\System::singleton()->getById(0));
+ }
$this->_priceSetId = $this->get('priceSetId');
$this->_priceSet = $this->get('priceSet');