ext/bestitamazonpay4oxid_order.php
public function getAmazonBillingAddress()
    {
        $oOrderReferenceDetails = $this->_getContainer()->getClient()->getOrderReferenceDetails();
        $oDetails = $oOrderReferenceDetails->GetOrderReferenceDetailsResult->OrderReferenceDetails;

        if (isset($oDetails->BillingAddress) === true) {
            $aParsedData = $this->_getContainer()
                ->getAddressUtil()
                ->parseAmazonAddress($oDetails->BillingAddress->PhysicalAddress);

            return array(
                'oxfname' => $aParsedData['FirstName'],
                'oxlname' => $aParsedData['LastName'],
                'oxcity' => $aParsedData['City'],
                'oxstateid' => $aParsedData['StateOrRegion'],
                'oxcountryid' => $aParsedData['CountryId'],
                'oxzip' => $aParsedData['PostalCode'],
                'oxstreet' => $aParsedData['Street'],
                'oxstreetnr' => $aParsedData['StreetNr'],
                'oxaddinfo' => $aParsedData['AddInfo'],
                'oxcompany' => $aParsedData['CompanyName']
            );
        }

        return null;
    }
public function getAmazonBillingAddress()
    {
        $oOrderReferenceDetails = $this->_getContainer()->getClient()->getOrderReferenceDetails();
        $oDetails = $oOrderReferenceDetails->GetOrderReferenceDetailsResult->OrderReferenceDetails;

        if (isset($oDetails->BillingAddress) === true) {
            $aParsedData = $this->_getContainer()
                ->getAddressUtil()
                ->parseAmazonAddress($oDetails->BillingAddress->PhysicalAddress);

            return array(
                'oxfname' => $aParsedData['FirstName'],
                'oxlname' => $aParsedData['LastName'],
                'oxcity' => $aParsedData['City'],
                'oxstateid' => $aParsedData['StateOrRegion'],
                'oxcountryid' => $aParsedData['CountryId'],
                'oxzip' => $aParsedData['PostalCode'],
                'oxstreet' => $aParsedData['Street'],
                'oxstreetnr' => $aParsedData['StreetNr'],
                'oxaddinfo' => $aParsedData['AddInfo'],
                'oxcompany' => $aParsedData['CompanyName']
            );
        }

        return null;
    }
public function getAmazonBillingAddress ( ) { $ oOrderReferenceDetails = $ this -> _getContainer ( ) -> getClient ( ) -> getOrderReferenceDetails ( ) ; $ oDetails = $ oOrderReferenceDetails -> GetOrderReferenceDetailsResult -> OrderReferenceDetails ; if ( isset ( $ oDetails -> BillingAddress ) === true ) { $ aParsedData = $ this -> _getContainer ( ) -> getAddressUtil ( ) -> parseAmazonAddress ( $ oDetails -> BillingAddress -> PhysicalAddress ) ; return array ( 'oxfname' => $ aParsedData [ 'FirstName' ] , 'oxlname' => $ aParsedData [ 'LastName' ] , 'oxcity' => $ aParsedData [ 'City' ] , 'oxstateid' => $ aParsedData [ 'StateOrRegion' ] , 'oxcountryid' => $ aParsedData [ 'CountryId' ] , 'oxzip' => $ aParsedData [ 'PostalCode' ] , 'oxstreet' => $ aParsedData [ 'Street' ] , 'oxstreetnr' => $ aParsedData [ 'StreetNr' ] , 'oxaddinfo' => $ aParsedData [ 'AddInfo' ] , 'oxcompany' => $ aParsedData [ 'CompanyName' ] ) ; } return null ; }
Returns the amazon billing address.

@return array|null
@throws Exception
@throws oxConnectionException
@throws oxSystemComponentException
Returns the amazon billing address .