app/code/community/Adyen/Payment/Model/Billing/Agreement.php
public function getPaymentMethodInstance()
    {
        if (is_null($this->_paymentMethodInstance)) {
            $methodCode = $this->getMethodCode();
            if ($this->getMethodCode() == 'adyen_oneclick') {
                $referenceId = $this->getReferenceId();
                $methodInstanceName = $methodCode . "_" . $referenceId;
            } else {
                $methodInstanceName = $methodCode;
            }

            $this->_paymentMethodInstance = Mage::helper('payment')->getMethodInstance($methodInstanceName);

            if (!$this->_paymentMethodInstance) {
                $this->_paymentMethodInstance = Mage::helper('payment')->getMethodInstance($this->getMethodCode());
            }
        }

        if ($this->_paymentMethodInstance) {
            $this->_paymentMethodInstance->setStore($this->getStoreId());
        }

        return $this->_paymentMethodInstance;
    }
public function getPaymentMethodInstance()
    {
        if (is_null($this->_paymentMethodInstance)) {
            $methodCode = $this->getMethodCode();
            if ($this->getMethodCode() == 'adyen_oneclick') {
                $referenceId = $this->getReferenceId();
                $methodInstanceName = $methodCode . "_" . $referenceId;
            } else {
                $methodInstanceName = $methodCode;
            }

            $this->_paymentMethodInstance = Mage::helper('payment')->getMethodInstance($methodInstanceName);

            if (!$this->_paymentMethodInstance) {
                $this->_paymentMethodInstance = Mage::helper('payment')->getMethodInstance($this->getMethodCode());
            }
        }

        if ($this->_paymentMethodInstance) {
            $this->_paymentMethodInstance->setStore($this->getStoreId());
        }

        return $this->_paymentMethodInstance;
    }
public function getPaymentMethodInstance ( ) { if ( is_null ( $ this -> _paymentMethodInstance ) ) { $ methodCode = $ this -> getMethodCode ( ) ; if ( $ this -> getMethodCode ( ) == 'adyen_oneclick' ) { $ referenceId = $ this -> getReferenceId ( ) ; $ methodInstanceName = $ methodCode . "_" . $ referenceId ; } else { $ methodInstanceName = $ methodCode ; } $ this -> _paymentMethodInstance = Mage :: helper ( 'payment' ) -> getMethodInstance ( $ methodInstanceName ) ; if ( ! $ this -> _paymentMethodInstance ) { $ this -> _paymentMethodInstance = Mage :: helper ( 'payment' ) -> getMethodInstance ( $ this -> getMethodCode ( ) ) ; } } if ( $ this -> _paymentMethodInstance ) { $ this -> _paymentMethodInstance -> setStore ( $ this -> getStoreId ( ) ) ; } return $ this -> _paymentMethodInstance ; }
Retrieve payment method instance

@return Mage_Payment_Model_Method_Abstract
Retrieve payment method instance