/** * Constructor. * * @param array $options Class options to set. * @see Payment_Process::setOptions() * @return void */ function __construct($options = false) { parent::__construct($options); $this->_driver = 'Beanstream'; $this->_makeRequired('customerId', 'login', 'password', 'action', 'invoiceNumber'); }
/** * Validate the zip code. * * Zip is only required if AVS is enabled. * * @return boolean true on success, false otherwise. */ function _validateZip() { if (strlen($this->zip) || $this->performAvs) { return parent::_validateZip(); } return true; }
/** * Constructor. * * @param array $options Class options to set. * @see Payment_Process::setOptions() * @return void */ function __construct($options = false) { parent::__construct($options); $this->_driver = 'AuthorizeNet'; $this->_makeRequired('login', 'password', 'action'); }
/** * Constructor. * * @param array $options Class options to set. * @see Payment_Process::setOptions() * @return void */ function __construct($options = false) { parent::__construct($options); $this->_driver = 'AuthorizeNetSubscriptions'; $this->_makeRequired('login', 'password', 'refId', 'intervalLength', 'intervalUnit', 'startDate', 'totalOccurrences', 'amount'); }
/** * Constructor. * * @param array $options Class options to set. * @see Payment_Process::setOptions() * @return void */ function __construct($options = false) { parent::__construct($options); $this->_driver = 'LinkPoint'; }
/** * Constructor. * * @param array $options Class options to set. * @see Payment_Process::setOptions() * @return void */ function __construct($options = false) { parent::__construct($options); $this->_driver = 'TrustCommerce'; }
/** * Constructor. * * @param array $options Class options to set. * @see Payment_Process::setOptions() * @return void */ function __construct($options = false) { parent::__construct(); $this->_driver = 'Bibit'; $this->_makeRequired('login', 'password', 'ordercode', 'description', 'amount', 'currency', 'exponent', 'cardNumber', 'expDate', 'action'); }
/** * Prepare the batch data. * * This function handles the 'testTransaction' option, which is specific to * this processor. */ function _prepare() { $result = parent::_prepare(); if ($result !== TRUE) { return $result; } //Build batch file for each type of transaction type. if ($this->_payment->getType() == 'EFT') { $batch_fields = array('trnType', 'institutionId', 'transitNumber', 'accountNumber', 'trnAmount', 'trnOrderNumber', 'ordName'); if (is_array($batch_fields)) { $batch_data[] = substr($this->_payment->getType(), 0, 1); foreach ($batch_fields as $batch_field) { $batch_data[] = $this->_data[$batch_field]; } } } elseif ($this->_payment->getType() == 'ACH') { $batch_fields = array('trnType', 'routingNumber', 'accountNumber', 'accountCode', 'trnAmount', 'trnOrderNumber', 'ordName'); if (is_array($batch_fields)) { $batch_data[] = substr($this->_payment->getType(), 0, 1); foreach ($batch_fields as $batch_field) { if ($batch_field == 'accountCode') { $batch_data[] = 'CC'; } else { $batch_data[] = $this->_data[$batch_field]; } } } } if (is_array($batch_data)) { $this->batchFile = implode(',', $batch_data); } return TRUE; }