app/code/community/Adyen/Payment/Model/Api.php
protected function _mapToPaymentMethod($variant)
    {
        if (is_null($this->_paymentMethodMap)) {
            //@todo abstract this away to some config?
            $this->_paymentMethodMap = array(
                'sepadirectdebit' => 'adyen_sepa'
            );


            $ccTypes = Mage::helper('adyen')->getCcTypes();
            $ccTypes = array_keys(array_change_key_case($ccTypes, CASE_LOWER));
            foreach ($ccTypes as $ccType) {
                $this->_paymentMethodMap[$ccType] = 'adyen_cc';
            }
        }

        return isset($this->_paymentMethodMap[$variant]) ? $this->_paymentMethodMap[$variant] : $variant;
    }
protected function _mapToPaymentMethod($variant)
    {
        if (is_null($this->_paymentMethodMap)) {
            //@todo abstract this away to some config?
            $this->_paymentMethodMap = array(
                'sepadirectdebit' => 'adyen_sepa'
            );


            $ccTypes = Mage::helper('adyen')->getCcTypes();
            $ccTypes = array_keys(array_change_key_case($ccTypes, CASE_LOWER));
            foreach ($ccTypes as $ccType) {
                $this->_paymentMethodMap[$ccType] = 'adyen_cc';
            }
        }

        return isset($this->_paymentMethodMap[$variant]) ? $this->_paymentMethodMap[$variant] : $variant;
    }
protected function _mapToPaymentMethod ( $ variant ) { if ( is_null ( $ this -> _paymentMethodMap ) ) { //@todo abstract this away to some config? $ this -> _paymentMethodMap = array ( 'sepadirectdebit' => 'adyen_sepa' ) ; $ ccTypes = Mage :: helper ( 'adyen' ) -> getCcTypes ( ) ; $ ccTypes = array_keys ( array_change_key_case ( $ ccTypes , CASE_LOWER ) ) ; foreach ( $ ccTypes as $ ccType ) { $ this -> _paymentMethodMap [ $ ccType ] = 'adyen_cc' ; } } return isset ( $ this -> _paymentMethodMap [ $ variant ] ) ? $ this -> _paymentMethodMap [ $ variant ] : $ variant ; }
Map the recurring variant to a Magento payment method.
@param $variant
@return mixed
Map the recurring variant to a Magento payment method .