Payu\Serializer\PaymentRequestSerializer::serializeBilling PHP Method

serializeBilling() private method

private serializeBilling ( ) : array
return array
    private function serializeBilling()
    {
        /** @var $billing  \Payu\Component\Billing */
        $billing = $this->request->getBilling();
        return array('BILL_LNAME' => $billing->getLastName(), 'BILL_FNAME' => $billing->getFirstName(), 'BILL_EMAIL' => $billing->getEmail(), 'BILL_PHONE' => $billing->getPhone(), 'BILL_COUNTRYCODE' => $billing->getCountryCode(), 'BILL_FAX' => $billing->getFax(), 'BILL_ADDRESS' => $billing->getAddress(), 'BILL_ZIPCODE' => $billing->getZipCode(), 'BILL_CITY' => $billing->getCity(), 'BILL_STATE' => $billing->getState());
    }

Usage Example

 /**
  * @return array
  */
 protected function serializeBilling()
 {
     /** @var $billing  \Payu\Component\Billing */
     $billing = $this->request->getBilling();
     if (!$billing) {
         return array();
     }
     return parent::serializeBilling();
 }