Omnipay\Common\CreditCard::getBillingName PHP Method

getBillingName() public method

Get the card billing name.
public getBillingName ( ) : string
return string
    public function getBillingName()
    {
        return trim($this->getBillingFirstName() . ' ' . $this->getBillingLastName());
    }

Usage Example

Exemplo n.º 1
0
 public function testBillingName()
 {
     $this->card->setBillingFirstName('Bob');
     $this->card->setBillingLastName('Smith');
     $this->assertEquals('Bob Smith', $this->card->getBillingName());
     $this->card->setBillingName('John Foo');
     $this->assertEquals('John', $this->card->getBillingFirstName());
     $this->assertEquals('Foo', $this->card->getBillingLastName());
 }
CreditCard