protected function hydrateBuyerData(HpsBuyerData $buyer)
    {
        return array(
            'BillingAddress1'    => $buyer->address->address,
            'BillingCity'        => $buyer->address->city,
            'BillingCountryCode' => $buyer->countryCode,
            'BillingFirstName'   => $buyer->firstName,
            'BillingLastName'    => $buyer->lastName,
            'BillingMiddleName'  => $buyer->middleName,
            'BillingPhone'       => $buyer->phoneNumber,
            'BillingPostalCode'  => $buyer->address->zip,
            'BillingState'       => $buyer->address->state,
        );
    }
protected function hydrateBuyerData(HpsBuyerData $buyer)
    {
        return array(
            'BillingAddress1'    => $buyer->address->address,
            'BillingCity'        => $buyer->address->city,
            'BillingCountryCode' => $buyer->countryCode,
            'BillingFirstName'   => $buyer->firstName,
            'BillingLastName'    => $buyer->lastName,
            'BillingMiddleName'  => $buyer->middleName,
            'BillingPhone'       => $buyer->phoneNumber,
            'BillingPostalCode'  => $buyer->address->zip,
            'BillingState'       => $buyer->address->state,
        );
    }
protected function hydrateBuyerData ( HpsBuyerData $ buyer ) { return array ( 'BillingAddress1' => $ buyer -> address -> address , 'BillingCity' => $ buyer -> address -> city , 'BillingCountryCode' => $ buyer -> countryCode , 'BillingFirstName' => $ buyer -> firstName , 'BillingLastName' => $ buyer -> lastName , 'BillingMiddleName' => $ buyer -> middleName , 'BillingPhone' => $ buyer -> phoneNumber , 'BillingPostalCode' => $ buyer -> address -> zip , 'BillingState' => $ buyer -> address -> state , ) ; }
Converts HpsBuyerData into expected format for Cardinal

@param HpsBuyerData $buyer buyer information

@return array<string, string>
Converts HpsBuyerData into expected format for Cardinal