Omnipay\Common\CreditCard::setState PHP Method

setState() public method

Sets the billing and shipping state.
public setState ( string $value ) : CreditCard
$value string
return CreditCard provides a fluent interface.
    public function setState($value)
    {
        $this->setParameter('billingState', $value);
        $this->setParameter('shippingState', $value);
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 public function testState()
 {
     $this->card->setState('RI');
     $this->assertEquals('RI', $this->card->getState());
     $this->assertEquals('RI', $this->card->getBillingState());
     $this->assertEquals('RI', $this->card->getShippingState());
 }
CreditCard