Show
Ignore:
Timestamp:
12/20/2007 06:12:59 PM (13 months ago)
Author:
zombor
Message:

Add Trident Payment Gateway driver.
Some formatting and cleanup in other files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Payment.php

    r1449 r1597  
    1616                // The driver string 
    1717                'driver'      => NULL, 
    18                 // Curl config, see http://us.php.net/manual/en/function.curl-setopt.php for details 
    19                 'curl_config' => array 
    20                 ( 
    21                         CURLOPT_HEADER         => FALSE, 
    22                         CURLOPT_RETURNTRANSFER => TRUE, 
    23                         CURLOPT_SSL_VERIFYPEER => FALSE 
    24                 ), 
    2518                // Test mode is set to true by default 
    2619                'test_mode'   => TRUE, 
     
    2821 
    2922        protected $driver = NULL; 
    30         private $fields = array(); 
    3123 
    3224        /** 
     
    121113        public function set_fields($fields) 
    122114        { 
    123                 $this->driver->set_fields(array_merge($this->fields, (array) $fields)); 
     115                $this->driver->set_fields((array) $fields); 
    124116                 
    125117                return $this; 
     
    135127        public function process() 
    136128        { 
    137                 $this->set_fields($this->fields); 
    138129                return $this->driver->process(); 
    139130        }