/** * @return array */ public function getBillingAddressData() { if ($this->order->getAmazonAccount()->isMagentoOrdersBillingAddressSameAsShipping()) { return parent::getBillingAddressData(); } if ($this->order->getShippingAddress()->hasSameBuyerAndRecipient()) { return parent::getBillingAddressData(); } $customerNameParts = $this->getNameParts($this->order->getBuyerName()); return array('firstname' => $customerNameParts['firstname'], 'lastname' => $customerNameParts['lastname'], 'country_id' => '', 'region' => '', 'region_id' => '', 'city' => 'Amazon does not supply the complete billing Buyer information.', 'postcode' => '', 'street' => '', 'company' => ''); }
/** * @return array */ public function getBillingAddressData() { if (!$this->order->isUseGlobalShippingProgram()) { return parent::getBillingAddressData(); } return parent::getAddressData(); }