/** * Assign data to info model instance * * @param mixed $data * @return Mage_Payment_Model_Info */ public function assignData($data) { if (!$data instanceof Varien_Object) { $data = new Varien_Object($data); } $key = $this->getCode() . '_payment_means'; if ($data->getData($key)) { $this->getAtosSession()->setData($key, $data->getData($key)); } if ($data->getAuroreDob()) { $dob = Mage::app()->getLocale()->date($data->getAuroreDob(), null, null, false)->toString('yyyy-MM-dd'); $this->getAtosSession()->setCustomerDob($dob); } return $this; }