/** * Get the billing information and set in the attribute $_paymentRequest */ private function setBillingInformation() { $billing = $this->getBillingData(); $address = \UOL\PagSeguro\Helper\Data::addressConfig($billing['street']); $this->_paymentRequest->setBilling()->setAddress()->withParameters($this->getShippingAddress($address[0], $billing), $this->getShippingAddress($address[1]), $this->getShippingAddress($address[0]), \UOL\PagSeguro\Helper\Data::fixPostalCode($billing['postcode']), $billing['city'], $this->getRegionAbbreviation($billing['region']), $this->getCountryName($billing['country_id']), $this->getShippingAddress($address[2])); }