getBillingAddress2() public method

Get the billing address, line 2.
public getBillingAddress2 ( ) : string
return string
Ejemplo n.º 1
0
 public function testAddress2()
 {
     $this->card->setAddress2('Suburb');
     $this->assertEquals('Suburb', $this->card->getAddress2());
     $this->assertEquals('Suburb', $this->card->getBillingAddress2());
     $this->assertEquals('Suburb', $this->card->getShippingAddress2());
 }
 /**
  * Fills the card information
  *
  * @param SimpleXMLElement $data
  * @param CreditCard       $card
  */
 private function appendCustomerDetailsCard(SimpleXMLElement $data, CreditCard $card)
 {
     $data->customer_details[0]['salutation'] = $card->getGender();
     $data->customer_details[0]['title'] = $card->getBillingTitle();
     $data->customer_details[0]['firstName'] = $card->getBillingFirstName();
     $data->customer_details[0]['lastName'] = $card->getBillingLastName();
     $data->customer_details[0]['street'] = $card->getBillingAddress1();
     $data->customer_details[0]['streetNo'] = null;
     $data->customer_details[0]['addressAddition'] = $card->getBillingAddress2();
     $data->customer_details[0]['zip'] = $card->getBillingPostcode();
     $data->customer_details[0]['city'] = $card->getBillingCity();
     $data->customer_details[0]['country'] = $this->getCountryCode($card->getBillingCountry());
     $data->customer_details[0]['email'] = $card->getEmail();
     $data->customer_details[0]['phone'] = $card->getBillingPhone();
     $data->customer_details[0]['cellPhone'] = null;
     $data->customer_details[0]['birthday'] = $card->getBirthday('Ymd');
 }