Public Member Functions | |
getQuote () | |
getSelectedMethodCode () | |
Protected Member Functions | |
_canUseMethod ($method) |
Definition at line 35 of file Methods.php.
_canUseMethod | ( | $ | method | ) | [protected] |
Check and prepare payment method model
Reimplemented from Mage_Payment_Block_Form_Container.
Definition at line 47 of file Methods.php.
00048 { 00049 if (!$method || !$method->canUseCheckout()) { 00050 return false; 00051 } 00052 return parent::_canUseMethod($method); 00053 }
getQuote | ( | ) |
Definition at line 37 of file Methods.php.
00038 { 00039 return Mage::getSingleton('checkout/session')->getQuote(); 00040 }
getSelectedMethodCode | ( | ) |
Retrieve code of current payment method
Reimplemented from Mage_Payment_Block_Form_Container.
Definition at line 60 of file Methods.php.
00061 { 00062 if ($method = $this->getQuote()->getPayment()->getMethod()) { 00063 return $method; 00064 } 00065 return false; 00066 }