228 |
228 |
$phone = (string)$payment->payer->payer_info->shipping_address->phone;
|
229 |
229 |
$phone = empty($phone) ? (string)$payment->payer->payer_info->phone : $phone;
|
230 |
230 |
|
231 |
|
$splitStreet = $this->splitStreet($street);
|
|
231 |
$house_no = '';
|
232 |
232 |
|
|
233 |
if(ACCOUNT_SPLIT_STREET_INFORMATION == 'true')
|
|
234 |
{
|
|
235 |
$splitStreet = $this->splitStreet($street);
|
|
236 |
$street = $splitStreet['street'];
|
|
237 |
$house_no = $splitStreet['house_no'];
|
|
238 |
}
|
233 |
239 |
$addressBlock = MainFactory::create('AddressBlock',
|
234 |
|
new CustomerGender(''),
|
235 |
|
new CustomerFirstname($firstName),
|
236 |
|
new CustomerLastname($lastName),
|
237 |
|
new CustomerCompany($company),
|
238 |
|
new CustomerB2BStatus(false),
|
|
240 |
new CustomerGender(''),
|
|
241 |
new CustomerFirstname($firstName),
|
|
242 |
new CustomerLastname($lastName),
|
|
243 |
new CustomerCompany($company),
|
|
244 |
new CustomerB2BStatus(false),
|
239 |
|
new CustomerStreet($splitStreet['street']),
|
240 |
|
new CustomerHouseNumber($splitStreet['house_no']),
|
|
245 |
new CustomerStreet($street),
|
|
246 |
new CustomerHouseNumber($house_no),
|
241 |
|
new CustomerAdditionalAddressInfo(''),
|
242 |
|
new CustomerSuburb(''),
|
243 |
|
new CustomerPostcode($postcode),
|
244 |
|
new CustomerCity($city),
|
245 |
|
$customerCountry,
|
246 |
|
$customerCountryZone
|
|
247 |
new CustomerAdditionalAddressInfo(''),
|
|
248 |
new CustomerSuburb(''),
|
|
249 |
new CustomerPostcode($postcode),
|
|
250 |
new CustomerCity($city),
|
|
251 |
$customerCountry,
|
|
252 |
$customerCountryZone
|
247 |
253 |
);
|
248 |
254 |
|
249 |
255 |
try
|