app/code/community/Adyen/Payment/Model/Adyen/Abstract.php
public function isAvailable($quote = null)
    {
        if (!parent::isAvailable($quote)) {
            return false;
        }

        if (!is_null($quote)) {
            if ($this->_getConfigData('allowspecific', $this->_code)) {
                $country = $quote->getShippingAddress()->getCountry();
                $availableCountries = explode(',', $this->_getConfigData('specificcountry', $this->_code));
                if (!in_array($country, $availableCountries)) {
                    return false;
                }
            }
        }

        return true;
    }
public function isAvailable($quote = null)
    {
        if (!parent::isAvailable($quote)) {
            return false;
        }

        if (!is_null($quote)) {
            if ($this->_getConfigData('allowspecific', $this->_code)) {
                $country = $quote->getShippingAddress()->getCountry();
                $availableCountries = explode(',', $this->_getConfigData('specificcountry', $this->_code));
                if (!in_array($country, $availableCountries)) {
                    return false;
                }
            }
        }

        return true;
    }
public function isAvailable ( $ quote = null ) { if ( ! parent :: isAvailable ( $ quote ) ) { return false ; } if ( ! is_null ( $ quote ) ) { if ( $ this -> _getConfigData ( 'allowspecific' , $ this -> _code ) ) { $ country = $ quote -> getShippingAddress ( ) -> getCountry ( ) ; $ availableCountries = explode ( ',' , $ this -> _getConfigData ( 'specificcountry' , $ this -> _code ) ) ; if ( ! in_array ( $ country , $ availableCountries ) ) { return false ; } } } return true ; }
Return true if the method can be used at this time
@since 0.1.0.3r1
@return bool
Return true if the method can be used at this time