Omnipay\Common\CreditCard::setPhoneExtension PHP Method

setPhoneExtension() public method

Sets the billing and shipping phone number extension.
public setPhoneExtension ( string $value ) : CreditCard
$value string
return CreditCard provides a fluent interface.
    public function setPhoneExtension($value)
    {
        $this->setParameter('billingPhoneExtension', $value);
        $this->setParameter('shippingPhoneExtension', $value);
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 public function testPhoneExtension()
 {
     $this->card->setPhoneExtension('001');
     $this->assertEquals('001', $this->card->getPhoneExtension());
     $this->assertEquals('001', $this->card->getBillingPhoneExtension());
     $this->assertEquals('001', $this->card->getShippingPhoneExtension());
 }
CreditCard