Public Member Functions | |
getData ($key='', $index=null) | |
getMethodInstance () | |
encrypt ($data) | |
decrypt ($data) |
Definition at line 34 of file Info.php.
decrypt | ( | $ | data | ) |
encrypt | ( | $ | data | ) |
getData | ( | $ | key = '' , |
|
$ | index = null | |||
) |
Retrieve data
string | $key | |
mixed | $index |
Reimplemented from Varien_Object.
Definition at line 43 of file Info.php.
00044 { 00045 if ('cc_number'===$key) { 00046 if (empty($this->_data['cc_number']) && !empty($this->_data['cc_number_enc'])) { 00047 $this->_data['cc_number'] = $this->decrypt($this->getCcNumberEnc()); 00048 } 00049 } 00050 if ('cc_cid'===$key) { 00051 if (empty($this->_data['cc_cid']) && !empty($this->_data['cc_cid_enc'])) { 00052 $this->_data['cc_cid'] = $this->decrypt($this->getCcCidEnc()); 00053 } 00054 } 00055 return parent::getData($key, $index); 00056 }
getMethodInstance | ( | ) |
Retrieve payment method model object
Definition at line 63 of file Info.php.
00064 { 00065 if (!$this->hasMethodInstance()) { 00066 if ($method = $this->getMethod()) { 00067 if ($instance = Mage::helper('payment')->getMethodInstance($this->getMethod())) { 00068 $instance->setInfoInstance($this); 00069 $this->setMethodInstance($instance); 00070 return $instance; 00071 } 00072 } 00073 } else { 00074 return $this->_getData('method_instance'); 00075 } 00076 Mage::throwException(Mage::helper('payment')->__('Can not retrieve payment method instance')); 00077 }