getData('method'); if (!($method instanceof Mage_Payment_Model_Method_Abstract)) { Mage::throwException($this->__('Cannot retrieve the payment method model object.')); } return $method; } /** * Retrieve payment method code * * @return string */ public function getMethodCode() { return $this->getMethod()->getCode(); } /** * Retrieve field value data from payment info object * * @param string $field * @return mixed */ public function getInfoData($field) { return $this->htmlEscape($this->getMethod()->getInfoInstance()->getData($field)); } /** * Check whether current payment method can create billing agreement * * @return bool */ public function canCreateBillingAgreement() { return $this->getMethod()->canCreateBillingAgreement(); } }