Omnipay\Common\CreditCard::setPhone PHP Method

setPhone() public method

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

Usage Example

Beispiel #1
0
 public function testPhone()
 {
     $this->card->setPhone('12345');
     $this->assertEquals('12345', $this->card->getPhone());
     $this->assertEquals('12345', $this->card->getBillingPhone());
     $this->assertEquals('12345', $this->card->getShippingPhone());
 }
All Usage Examples Of Omnipay\Common\CreditCard::setPhone
CreditCard