Public Member Functions | |
getCcAvailableTypes () | |
getSsStartYears () | |
hasSsCardType () | |
Protected Member Functions | |
_construct () | |
_getDirect () |
Definition at line 28 of file Form.php.
_construct | ( | ) | [protected] |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Payment_Block_Form_Cc.
Definition at line 30 of file Form.php.
00031 { 00032 parent::_construct(); 00033 $this->setTemplate('paypaluk/direct/form.phtml'); 00034 }
_getDirect | ( | ) | [protected] |
Definition at line 36 of file Form.php.
00037 { 00038 return Mage::getSingleton('paypaluk/direct'); 00039 }
getCcAvailableTypes | ( | ) |
Retrieve availables credit card types
Reimplemented from Mage_Payment_Block_Form_Cc.
Definition at line 47 of file Form.php.
00048 { 00049 $types = $this->_getDirect()->getApi()->getCcTypes(); 00050 if ($method = $this->getMethod()) { 00051 $availableTypes = $method->getConfigData('cctypes'); 00052 if ($availableTypes) { 00053 $availableTypes = explode(',', $availableTypes); 00054 foreach ($types as $code=>$name) { 00055 if (!in_array($code, $availableTypes)) { 00056 unset($types[$code]); 00057 } 00058 } 00059 } 00060 } 00061 return $types; 00062 }
getSsStartYears | ( | ) |
hasSsCardType | ( | ) |
Definition at line 84 of file Form.php.
00085 { 00086 $availableTypes =$this->getMethod()->getConfigData('cctypes'); 00087 if ($availableTypes) { 00088 $availableTypes = explode(',', $availableTypes); 00089 if (in_array('SS', $availableTypes)) { 00090 return true; 00091 } 00092 } 00093 return false; 00094 }