Public Member Functions | |
getCcTypeName () | |
getCcStartMonth () | |
toPdf () | |
Protected Member Functions | |
_construct () | |
_getDirect () |
Definition at line 28 of file Info.php.
_construct | ( | ) | [protected] |
Init default template for block
Reimplemented from Mage_Payment_Block_Info_Cc.
Definition at line 30 of file Info.php.
00031 { 00032 parent::_construct(); 00033 $this->setTemplate('paypaluk/direct/info.phtml'); 00034 }
_getDirect | ( | ) | [protected] |
Definition at line 36 of file Info.php.
00037 { 00038 return Mage::getSingleton('paypaluk/direct'); 00039 }
getCcStartMonth | ( | ) |
getCcTypeName | ( | ) |
Retrieve credit card type name
Reimplemented from Mage_Payment_Block_Info_Cc.
Definition at line 46 of file Info.php.
00047 { 00048 $types = $this->_getDirect()->getApi()->getCcTypes(); 00049 if (isset($types[$this->getInfo()->getCcType()])) { 00050 return $types[$this->getInfo()->getCcType()]; 00051 } 00052 return $this->getInfo()->getCcType(); 00053 }
toPdf | ( | ) |
Reimplemented from Mage_Payment_Block_Info_Cc.
Definition at line 69 of file Info.php.
00070 { 00071 $this->setTemplate('paypaluk/direct/pdf/info.phtml'); 00072 return $this->toHtml(); 00073 }