Gateway/Config/Config.php
public function isActive() {
        if (!$this->getValue(
                self::KEY_ACTIVE,
                $this->storeManager->getStore()
            )) {
            return false;
        }

        $quote = $this->checkoutSession->getQuote();

        return (bool) in_array($quote->getQuoteCurrencyCode(), $this->getAcceptedCurrencies());
    }
public function isActive() {
        if (!$this->getValue(
                self::KEY_ACTIVE,
                $this->storeManager->getStore()
            )) {
            return false;
        }

        $quote = $this->checkoutSession->getQuote();

        return (bool) in_array($quote->getQuoteCurrencyCode(), $this->getAcceptedCurrencies());
    }
public function isActive ( ) { if ( ! $ this -> getValue ( self :: KEY_ACTIVE , $ this -> storeManager -> getStore ( ) ) ) { return false ; } $ quote = $ this -> checkoutSession -> getQuote ( ) ; return ( bool ) in_array ( $ quote -> getQuoteCurrencyCode ( ) , $ this -> getAcceptedCurrencies ( ) ) ; }
Determines if the gateway is active.

@return bool
Determines if the gateway is active .