/** * @inheritdoc */ public function __construct($configFile = null) { $this->config = new Config($configFile); $this->merchant = $this->config->get('sadad.merchant'); $this->terminalId = $this->config->get('sadad.terminalId'); $this->transactionKey = $this->config->get('sadad.transactionKey'); $this->setDB(); $this->setMode(); parent::__construct(); }
/** * Initialize of class * * @param string $configFile * @return void */ public function __construct($configFile = null) { $this->config = new Config($configFile); $this->username = $this->config->get('mellat.username'); $this->password = $this->config->get('mellat.password'); $this->termId = $this->config->get('mellat.terminalId'); $this->setDB(); $this->setMode(); parent::__construct(); }
/** * Initialize of class * * @param string $configFile * @return void */ public function __construct($configFile = null) { $this->config = new Config($configFile); $this->merchantId = $this->config->get('zarinpal.merchant-id'); $this->setDB(); $this->setMode(); $this->setServer(); parent::__construct(); }