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

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

Sets the shipping state.
public setShippingState ( string $value ) : CreditCard
$value string
Результат CreditCard provides a fluent interface.
    public function setShippingState($value)
    {
        return $this->setParameter('shippingState', $value);
    }

Usage Example

Пример #1
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $card = new CreditCard($this->getValidCard());
     $card->setBillingAddress1('Wall street');
     $card->setBillingAddress2('Wall street 2');
     $card->setBillingCity('San Luis Obispo');
     $card->setBillingCountry('US');
     $card->setBillingPostcode('93401');
     $card->setBillingPhone('1234567');
     $card->setBillingState('CA');
     $card->setShippingAddress1('Shipping Wall street');
     $card->setShippingAddress2('Shipping Wall street 2');
     $card->setShippingCity('San Luis Obispo');
     $card->setShippingCountry('US');
     $card->setShippingPostcode('93401');
     $card->setShippingPhone('1234567');
     $card->setShippingState('CA');
     $card->setCompany('Test Business name');
     $card->setEmail('*****@*****.**');
     $this->purchaseOptions = array('amount' => 9563, 'card' => $card, 'customerId' => '9966441');
     $this->captureOptions = array('amount' => 1000, 'transactionReference' => '9988775');
     $this->voidOptions = array('accountNumber' => '12345678', 'storeId' => 'test', 'storePassword' => 'test', 'transactionReference' => '115147689');
 }
All Usage Examples Of Omnipay\Common\CreditCard::setShippingState
CreditCard