Esempio n. 1
0
 /**
  * On click payment button, this function is called to assign data
  *
  * @param mixed $data
  * @return self
  */
 public function assignData($data)
 {
     if (!$data instanceof Varien_Object) {
         $data = new Varien_Object($data);
     }
     if (strlen(Mage::registry('method_id')) == 0) {
         $method = $this->_api->getMethodByCode($data->_data['method']);
         Mage::register('method_id', $method['method_id']);
         Mage::register('issuer', Mage::app()->getRequest()->getParam($this->_code . '_issuer'));
     }
     return $this;
 }