public function __construct() { parent::__construct(); $this->gatewayProdHost = 'https://checkout.payfort.com/'; $this->gatewaySandboxHost = 'https://sbcheckout.payfort.com/'; $this->logFileDir = WC_LOG_DIR . 'payfort_fort.log'; $this->init_settings(); $this->language = $this->_getShoppingCartConfig('language'); $this->merchantIdentifier = $this->_getShoppingCartConfig('merchant_identifier'); $this->accessCode = $this->_getShoppingCartConfig('access_code'); $this->command = $this->_getShoppingCartConfig('command'); $this->hashAlgorithm = $this->_getShoppingCartConfig('hash_algorithm'); $this->requestShaPhrase = $this->_getShoppingCartConfig('request_sha'); $this->responseShaPhrase = $this->_getShoppingCartConfig('response_sha'); $this->sandboxMode = $this->_getShoppingCartConfig('sandbox_mode'); $this->gatewayCurrency = 'base'; $this->debugMode = $this->_getShoppingCartConfig('debug_mode'); //$this->hostUrl = $this->_getShoppingCartConfig('hostUrl'); $this->successOrderStatusId = ''; $this->orderPlacement = $this->_getShoppingCartConfig('order_placement'); $this->status = $this->enabled; $this->ccStatus = $this->_getShoppingCartConfig('enable_credit_card'); $this->ccIntegrationType = $this->_getShoppingCartConfig('integration_type'); $this->sadadStatus = $this->_getShoppingCartConfig('enable_sadad'); $this->napsStatus = $this->_getShoppingCartConfig('enable_naps'); }
public function __construct() { parent::__construct(); $this->gatewayProdHost = 'https://checkout.payfort.com/'; $this->gatewaySandboxHost = 'https://sbcheckout.payfort.com/'; $this->logFileDir = _PS_ROOT_DIR_ . '/log/payfort_fort.log'; $this->language = $this->_getShoppingCartConfig('language'); $this->merchantIdentifier = $this->_getShoppingCartConfig('merchant_identifier'); $this->accessCode = $this->_getShoppingCartConfig('access_code'); $this->command = $this->_getShoppingCartConfig('command'); $this->hashAlgorithm = $this->_getShoppingCartConfig('sha_algorithm'); $this->requestShaPhrase = $this->_getShoppingCartConfig('request_sha_phrase'); $this->responseShaPhrase = $this->_getShoppingCartConfig('response_sha_phrase'); $this->sandboxMode = $this->_getShoppingCartConfig('sandbox_mode'); $this->gatewayCurrency = $this->_getShoppingCartConfig('gateway_currency'); $this->debugMode = $this->_getShoppingCartConfig('debug_mode'); //$this->hostUrl = $this->_getShoppingCartConfig('hostUrl'); $this->successOrderStatusId = $this->_getShoppingCartConfig('hold_review_os'); $this->orderPlacement = 'all'; $this->ccStatus = $this->_getShoppingCartConfig('credit_card'); $this->ccIntegrationType = $this->_getShoppingCartConfig('integration_type'); $this->sadadStatus = $this->_getShoppingCartConfig('sadad'); $this->napsStatus = $this->_getShoppingCartConfig('naps'); }
public function __construct() { parent::__construct(); $this->pfConfig = Payfort_Fort_Config::getInstance(); }
public function __construct() { parent::__construct(); $this->pfHelper = Payfort_Fort_Helper::getInstance(); $this->pfConfig = Payfort_Fort_Config::getInstance(); $this->pfOrder = new Payfort_Fort_Order(); }