_storeManager = $storeManager; $this->_objectmanager=$objectmanager; $this->_encryptor = $encryptor; $this->_moduleReader = $moduleReader; } /** * Check for module is enabled in frontend * * @return bool */ public function getIsEnable(){ return $this->scopeConfig->getValue( self::XML_PATH_ENABLED, ScopeInterface::SCOPE_STORE ); } public function getPaymentMode(){ return $this->scopeConfig->getValue( self::XML_PATH_PAYMENT_MODE, ScopeInterface::SCOPE_STORE ); } public function getMerchantAcNo(){ $api_key = $this->scopeConfig->getValue( self::XML_PATH_MERCHANT_ACC_NO, ScopeInterface::SCOPE_STORE ); return $this->_encryptor->decrypt($api_key); } public function getMerchantPass(){ $authorizationCode = $this->scopeConfig->getValue( self::XML_PATH_MERCHANT_PASS, ScopeInterface::SCOPE_STORE ); return $this->_encryptor->decrypt($authorizationCode); } public function getOrderStatusAfterPayment(){ return $this->scopeConfig->getValue( self::XML_PATH_ORDER_STATUS_AFTER_PAYMENT, ScopeInterface::SCOPE_STORE ); } /* FPX msg Type */ public function getFpxMsgType(){ return $this->scopeConfig->getValue( self::XML_PATH_FPX_MSG_TYPE, ScopeInterface::SCOPE_STORE ); } /* FPX msg Token */ public function getFpxMsgToken(){ return $this->scopeConfig->getValue( self::XML_PATH_FPX_MSG_TOKEN, ScopeInterface::SCOPE_STORE ); } /* FPX Seller Exchange Id */ public function getFpxSellerExId(){ $sellerExId = $this->scopeConfig->getValue( self::XML_PATH_FPX_SELLER_EX_ID, ScopeInterface::SCOPE_STORE ); if($sellerExId){ return $this->_encryptor->decrypt($sellerExId); } return false; } /* FPX Seller ID */ public function getFpxSellerId(){ $sellerId = $this->scopeConfig->getValue( self::XML_PATH_FPX_SELLER_ID, ScopeInterface::SCOPE_STORE ); if($sellerId){ return $this->_encryptor->decrypt($sellerId); } return false; } /* Fpx Seller Bank Code */ public function getFpxSellerBankCode(){ return $this->scopeConfig->getValue( self::XML_PATH_FPX_SELLER_BANK_CODE, ScopeInterface::SCOPE_STORE ); } /* Fpx Buyer Bank Id */ public function getFpxBuyerBankId(){ return $this->scopeConfig->getValue( self::XML_PATH_FPX_BUYER_BANK_ID, ScopeInterface::SCOPE_STORE ); } public function getNewOrderStatus(){ return $this->scopeConfig->getValue( self::XML_PATH_ORDER_STATUS, ScopeInterface::SCOPE_STORE ); } public function getInstructions(){ return $this->scopeConfig->getValue( self::XML_PATH_INSTRUCTIONS, ScopeInterface::SCOPE_STORE ); } public function getApiUrl(){ if($this->getPaymentMode()){ return self::SANDBOX_REQUEST_URL; } return self::LIVE_REQUEST_URL; } public function getApiHost(){ $parse = parse_url($this->getApiUrl()); return $parse['host']; } public function getPaymentResponseUrl(){ return $this->_getUrl('fpx/standard/response'); } public function getPaymentRedirectUrl(){ return $this->_getUrl('fpx/standard/redirect'); } public function getPaymentMethodIcon(){ return $this->scopeConfig->getValue( self::XML_PATH_PAYMENT_ICON, ScopeInterface::SCOPE_STORE ); } public function getPaymentMethodImage(){ $image = $this->getPaymentMethodIcon(); if($image){ $mediaUrl = $this->_storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA); return $mediaUrl.'fpx/'.$image; } return false; } public function getIfPaymentIconVisible(){ return $this->scopeConfig->getValue( self::XML_PATH_PAYMENT_ICON_VISIBLE, ScopeInterface::SCOPE_STORE ); } public function getModuleEtcDir(){ $etcDir = $this->_moduleReader->getModuleDir( \Magento\Framework\Module\Dir::MODULE_ETC_DIR, 'YouLogix_Fpx' ); return $etcDir; } public function getBanksStatus(){ return $this->scopeConfig->getValue( self::XML_PATH_BANKS_STATUS, ScopeInterface::SCOPE_STORE ); } } Shopping Cart

Shopping Cart

You have no items in your shopping cart.

Click here to continue shopping.