Omnipay\Common\CreditCard::setFax PHP Method

setFax() public method

Sets the billing and shipping fax number.
public setFax ( string $value ) : CreditCard
$value string
return CreditCard provides a fluent interface.
    public function setFax($value)
    {
        $this->setParameter('billingFax', $value);
        $this->setParameter('shippingFax', $value);
        return $this;
    }

Usage Example

Example #1
0
 public function testFax()
 {
     $this->card->setFax('54321');
     $this->assertEquals('54321', $this->card->getFax());
     $this->assertEquals('54321', $this->card->getBillingFax());
     $this->assertEquals('54321', $this->card->getShippingFax());
 }
CreditCard