app/code/community/Adyen/Fee/Helper/Data.php
public function isPaymentFeeEnabled(Mage_Sales_Model_Quote $quote)
    {
        $paymentMethod = $quote->getPayment()->getMethod();

        if ($paymentMethod == 'adyen_openinvoice') {
            $fee = Mage::getStoreConfig('payment/adyen_openinvoice/fee');
            if ($fee) {
                return true;
            }
        } elseif ($paymentMethod == 'adyen_ideal') {
            $fee = Mage::getStoreConfig('payment/adyen_ideal/fee');
            if ($fee) {
                return true;
            }
        } elseif (substr($paymentMethod, 0, 10) == 'adyen_hpp_') {
            $fee = $this->getHppPaymentMethodFee($paymentMethod);
            if ($fee) {
                return true;
            }
        }

        return false;
    }
public function isPaymentFeeEnabled(Mage_Sales_Model_Quote $quote)
    {
        $paymentMethod = $quote->getPayment()->getMethod();

        if ($paymentMethod == 'adyen_openinvoice') {
            $fee = Mage::getStoreConfig('payment/adyen_openinvoice/fee');
            if ($fee) {
                return true;
            }
        } elseif ($paymentMethod == 'adyen_ideal') {
            $fee = Mage::getStoreConfig('payment/adyen_ideal/fee');
            if ($fee) {
                return true;
            }
        } elseif (substr($paymentMethod, 0, 10) == 'adyen_hpp_') {
            $fee = $this->getHppPaymentMethodFee($paymentMethod);
            if ($fee) {
                return true;
            }
        }

        return false;
    }
public function isPaymentFeeEnabled ( Mage_Sales_Model_Quote $ quote ) { $ paymentMethod = $ quote -> getPayment ( ) -> getMethod ( ) ; if ( $ paymentMethod == 'adyen_openinvoice' ) { $ fee = Mage :: getStoreConfig ( 'payment/adyen_openinvoice/fee' ) ; if ( $ fee ) { return true ; } } elseif ( $ paymentMethod == 'adyen_ideal' ) { $ fee = Mage :: getStoreConfig ( 'payment/adyen_ideal/fee' ) ; if ( $ fee ) { return true ; } } elseif ( substr ( $ paymentMethod , 0 , 10 ) == 'adyen_hpp_' ) { $ fee = $ this -> getHppPaymentMethodFee ( $ paymentMethod ) ; if ( $ fee ) { return true ; } } return false ; }
Check if payment method is enabled

@param Mage_Sales_Model_Quote
@return bool
Check if payment method is enabled