app/code/community/Adyen/Payment/Block/Adminhtml/System/Config/Fieldset/Method.php
protected function _isPaymentEnabled($element)
    {
        $groupConfig = $this->getGroup($element)->asArray();
        $activityPath = isset($groupConfig['activity_path']) ? $groupConfig['activity_path'] : '';

        if (empty($activityPath)) {
            return false;
        }

        // for ideal look at adyen HPP configuration
        if ($activityPath == "payment/adyen_ideal/active") {
            $activityPath = "payment/adyen_hpp/active";
        }

        $isPaymentEnabled = (bool)(string)$this->_getConfigDataModel()->getConfigDataValue($activityPath);

        return (bool)$isPaymentEnabled;
    }
protected function _isPaymentEnabled($element)
    {
        $groupConfig = $this->getGroup($element)->asArray();
        $activityPath = isset($groupConfig['activity_path']) ? $groupConfig['activity_path'] : '';

        if (empty($activityPath)) {
            return false;
        }

        // for ideal look at adyen HPP configuration
        if ($activityPath == "payment/adyen_ideal/active") {
            $activityPath = "payment/adyen_hpp/active";
        }

        $isPaymentEnabled = (bool)(string)$this->_getConfigDataModel()->getConfigDataValue($activityPath);

        return (bool)$isPaymentEnabled;
    }
protected function _isPaymentEnabled ( $ element ) { $ groupConfig = $ this -> getGroup ( $ element ) -> asArray ( ) ; $ activityPath = isset ( $ groupConfig [ 'activity_path' ] ) ? $ groupConfig [ 'activity_path' ] : '' ; if ( empty ( $ activityPath ) ) { return false ; } // for ideal look at adyen HPP configuration if ( $ activityPath == "payment/adyen_ideal/active" ) { $ activityPath = "payment/adyen_hpp/active" ; } $ isPaymentEnabled = ( bool ) ( string ) $ this -> _getConfigDataModel ( ) -> getConfigDataValue ( $ activityPath ) ; return ( bool ) $ isPaymentEnabled ; }
Check whether current payment method is enabled

@param Varien_Data_Form_Element_Abstract $element
@param callback|null $configCallback
@return bool
Check whether current payment method is enabled