Esempio n. 1
0
 /**
  * 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');
 }
Esempio n. 2
0
 /**
  * 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;
 }
Esempio n. 3
0
 /**
  * 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');
 }
Esempio n. 5
0
 /**
  * Constructor.
  *
  * @param  array  $options  Class options to set.
  * @see Payment_Process::setOptions()
  * @return void
  */
 function __construct($options = false)
 {
     parent::__construct($options);
     $this->_driver = 'LinkPoint';
 }
Esempio n. 6
0
 /**
  * Constructor.
  *
  * @param  array  $options  Class options to set.
  * @see Payment_Process::setOptions()
  * @return void
  */
 function __construct($options = false)
 {
     parent::__construct($options);
     $this->_driver = 'TrustCommerce';
 }
Esempio n. 7
0
 /**
  * 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');
 }
Esempio n. 8
0
 /**
  * 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;
 }