예제 #1
0
 public function __construct()
 {
     $this->registry = Payfort_Fort_Util::getRegistry();
     $this->gatewayProdHost = 'https://checkout.payfort.com/';
     $this->gatewaySandboxHost = 'https://sbcheckout.payfort.com/';
     $this->logFileDir = 'payfort_fort.log';
     $this->language = $this->_getShoppingCartConfig('entry_language');
     $this->merchantIdentifier = $this->_getShoppingCartConfig('entry_merchant_identifier');
     $this->accessCode = $this->_getShoppingCartConfig('entry_access_code');
     $this->command = $this->_getShoppingCartConfig('entry_command');
     $this->hashAlgorithm = $this->_getShoppingCartConfig('entry_hash_algorithm');
     $this->requestShaPhrase = $this->_getShoppingCartConfig('entry_request_sha_phrase');
     $this->responseShaPhrase = $this->_getShoppingCartConfig('entry_response_sha_phrase');
     $this->sandboxMode = $this->_getShoppingCartConfig('entry_sandbox_mode');
     $this->gatewayCurrency = $this->_getShoppingCartConfig('entry_gateway_currency');
     $this->debugMode = $this->_getShoppingCartConfig('debug');
     //$this->hostUrl = $this->_getShoppingCartConfig('hostUrl');
     $this->successOrderStatusId = $this->_getShoppingCartConfig('order_status_id');
     $this->orderPlacement = $this->_getShoppingCartConfig('order_placement');
     $this->status = $this->_getShoppingCartConfig('status');
     $this->ccStatus = $this->_getShoppingCartConfig('credit_card');
     $this->ccIntegrationType = $this->_getShoppingCartConfig('cc_integration_type');
     $this->sadadStatus = $this->_getShoppingCartConfig('sadad');
     $this->napsStatus = $this->_getShoppingCartConfig('naps');
 }
예제 #2
0
 public function __construct()
 {
     $this->pfConfig = Payfort_Fort_Config::getInstance();
     $this->registry = Payfort_Fort_Util::getRegistry();
 }
예제 #3
0
 public static function getCurrentLanguageCode()
 {
     return Payfort_Fort_Util::getRegistry()->get('language')->get('code');
 }