/** * $options array includes login parameters of merchant and optional currency. * * @param array $options */ public function __construct($options = array()) { parent::__construct($options); $this->required_options('login, password', $options); if (isset($options['currency'])) { self::$default_currency = $options['currency']; } $this->options = $options; }
/** * * @param array $options */ public function __construct($options = array()) { parent::__construct($options); $this->required_options('acquire_id, merchant_id, pos_id, user, password, channel_type', $options); if (isset($options['currency'])) { self::$default_currency = $options['currency']; } $this->options = $options; }
/** * Contructor * * @param string $options * @author Simon Hamilton */ public function __construct($options) { parent::__construct($options); $this->required_options('login, password', $options); $this->timestamp = strftime("%Y%m%d%H%M%S"); if (isset($options['currency'])) { self::$default_currency = $options['currency']; } $this->options = $options; }
public function __construct($options = array()) { parent::__construct($options); $this->required_options('login, password, client_id', $options); if (isset($options['currency'])) { self::$default_currency = $options['currency']; } $this->options = $options; $mode = $this->mode(); if ($mode == 'live') { $this->payment_mode = 'P'; } #Production mode }
public function __construct($options) { parent::__construct($options); $this->required_options('login, password', $options); $this->options = $options; }