app/code/community/Adyen/Payment/Helper/Payment/Data.php
public function getStoreMethods($store = null, $quote = null)
    {
        $res = array();
        foreach ($this->getPaymentMethods($store) as $code => $methodConfig) {
            $prefix = self::XML_PATH_PAYMENT_METHODS . '/' . $code . '/';
            if (!$model = Mage::getStoreConfig($prefix . 'model', $store)) {
                continue;
            }

            /** @var Mage_Payment_Model_Method_Abstract $methodInstance */
            $methodInstance = Mage::getModel($model);
            if (method_exists($methodInstance, 'setCode')) {
                $methodInstance->setCode($code);
            }

            if (!$methodInstance) {
                continue;
            }

            $methodInstance->setStore($store);
            if (!$methodInstance->isAvailable($quote)) {
                /* if the payment method cannot be used at this time */
                continue;
            }

            $sortOrder = (int)$methodInstance->getConfigData('sort_order', $store);
            $methodInstance->setSortOrder($sortOrder);
            $res[] = $methodInstance;
        }

        usort($res, array($this, '_sortMethods'));
        return $res;
    }
public function getStoreMethods($store = null, $quote = null)
    {
        $res = array();
        foreach ($this->getPaymentMethods($store) as $code => $methodConfig) {
            $prefix = self::XML_PATH_PAYMENT_METHODS . '/' . $code . '/';
            if (!$model = Mage::getStoreConfig($prefix . 'model', $store)) {
                continue;
            }

            /** @var Mage_Payment_Model_Method_Abstract $methodInstance */
            $methodInstance = Mage::getModel($model);
            if (method_exists($methodInstance, 'setCode')) {
                $methodInstance->setCode($code);
            }

            if (!$methodInstance) {
                continue;
            }

            $methodInstance->setStore($store);
            if (!$methodInstance->isAvailable($quote)) {
                /* if the payment method cannot be used at this time */
                continue;
            }

            $sortOrder = (int)$methodInstance->getConfigData('sort_order', $store);
            $methodInstance->setSortOrder($sortOrder);
            $res[] = $methodInstance;
        }

        usort($res, array($this, '_sortMethods'));
        return $res;
    }
public function getStoreMethods ( $ store = null , $ quote = null ) { $ res = array ( ) ; foreach ( $ this -> getPaymentMethods ( $ store ) as $ code => $ methodConfig ) { $ prefix = self :: XML_PATH_PAYMENT_METHODS . '/' . $ code . '/' ; if ( ! $ model = Mage :: getStoreConfig ( $ prefix . 'model' , $ store ) ) { continue ; } /** @var Mage_Payment_Model_Method_Abstract $methodInstance */ $ methodInstance = Mage :: getModel ( $ model ) ; if ( method_exists ( $ methodInstance , 'setCode' ) ) { $ methodInstance -> setCode ( $ code ) ; } if ( ! $ methodInstance ) { continue ; } $ methodInstance -> setStore ( $ store ) ; if ( ! $ methodInstance -> isAvailable ( $ quote ) ) { /* if the payment method cannot be used at this time */ continue ; } $ sortOrder = ( int ) $ methodInstance -> getConfigData ( 'sort_order' , $ store ) ; $ methodInstance -> setSortOrder ( $ sortOrder ) ; $ res [ ] = $ methodInstance ; } usort ( $ res , array ( $ this , '_sortMethods' ) ) ; return $ res ; }
Get and sort available payment methods for specified or current store

array structure:
$index => Varien_Simplexml_Element

@todo maybe we can use this method instead of loading the payment methods on each pageload.
@param mixed $store
@param Mage_Sales_Model_Quote $quote
@return array
Get and sort available payment methods for specified or current store