Omnipay\Common\CreditCard::setPostcode PHP Метод

setPostcode() публичный Метод

Sets the billing and shipping postcode.
public setPostcode ( string $value ) : CreditCard
$value string
Результат CreditCard provides a fluent interface.
    public function setPostcode($value)
    {
        $this->setParameter('billingPostcode', $value);
        $this->setParameter('shippingPostcode', $value);
        return $this;
    }

Usage Example

Пример #1
0
 public function testPostcode()
 {
     $this->card->setPostcode('12345');
     $this->assertEquals('12345', $this->card->getPostcode());
     $this->assertEquals('12345', $this->card->getBillingPostcode());
     $this->assertEquals('12345', $this->card->getShippingPostcode());
 }
All Usage Examples Of Omnipay\Common\CreditCard::setPostcode
CreditCard