Omnipay\Common\CreditCard::setAddress2 PHP Method

setAddress2() public method

Sets the billing and shipping address, line 2.
public setAddress2 ( string $value ) : CreditCard
$value string
return CreditCard provides a fluent interface.
    public function setAddress2($value)
    {
        $this->setParameter('billingAddress2', $value);
        $this->setParameter('shippingAddress2', $value);
        return $this;
    }

Usage Example

Exemplo 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());
 }
All Usage Examples Of Omnipay\Common\CreditCard::setAddress2
CreditCard