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

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

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

Usage Example

Пример #1
0
 public function testCountry()
 {
     $this->card->setCountry('US');
     $this->assertEquals('US', $this->card->getCountry());
     $this->assertEquals('US', $this->card->getBillingCountry());
     $this->assertEquals('US', $this->card->getShippingCountry());
 }
All Usage Examples Of Omnipay\Common\CreditCard::setCountry
CreditCard