Esempio n. 1
0
 /**
  * @see Wirecard_CheckoutSeamless_Model_Abstract::getCustomerDob()
  */
 public function getCustomerDob()
 {
     $additionalInfo = $this->getInfoInstance();
     if ($additionalInfo->hasAdditionalInformation('wirecard_checkoutseamless_invoice_dob')) {
         $dob = $additionalInfo->getAdditionalInformation('wirecard_checkoutseamless_invoice_dob');
         if ($dob) {
             return new DateTime($dob);
         }
     }
     return parent::getCustomerDob();
 }
Esempio n. 2
0
 /**
  * Assign data to info model instance
  *
  * @param   mixed $data
  * @return  Mage_Payment_Model_Info
  */
 public function assignData($data)
 {
     $result = parent::assignData($data);
     $key = 'financialInstitution';
     if (is_array($data)) {
         $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
     } elseif ($data instanceof Varien_Object) {
         $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
     }
     return $result;
 }
Esempio n. 3
0
 protected function _getConsumerData()
 {
     $consumerData = parent::_getConsumerData();
     $billingAddress = $this->getOrder()->getBillingAddress();
     $consumerData->setCompanyName($billingAddress->getCompany());
     if (strlen($billingAddress->getData('vat_id'))) {
         $consumerData->setCompanyVatId($billingAddress->getData('vat_id'));
     }
     if (strlen($this->getCompanyTradeRegistrationNumber())) {
         $consumerData->setCompanyTradeRegistryNumber($this->getCompanyTradeRegistrationNumber());
     }
     return $consumerData;
 }