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

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

Sets the card start month.
public setStartMonth ( string $value ) : CreditCard
$value string
Результат CreditCard provides a fluent interface.
    public function setStartMonth($value)
    {
        return $this->setParameter('startMonth', (int) $value);
    }

Usage Example

 public function setUp()
 {
     $this->gateway = new \Omnipay\PaymentWall\Gateway();
     $gateway = $this->gateway;
     $this->card = new CreditCard($this->getValidCard());
     $this->card->setStartMonth(1);
     $this->card->setStartYear(2000);
     $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest());
     $this->request->initialize(array('apiType' => $gateway::API_GOODS, 'publicKey' => 'asdfasdf', 'privateKey' => 'asdfasdf', 'amount' => '10.00', 'currency' => 'AUD', 'clientIp' => '127.0.0.1', 'browserDomain' => 'PairMeUp', 'accountId' => 12341234, 'packageId' => 1234, 'packageName' => 'Super Deluxe Excellent Discount Package', 'description' => 'Super Deluxe Excellent Discount Package', 'email' => '*****@*****.**', 'card' => $this->card));
 }
All Usage Examples Of Omnipay\Common\CreditCard::setStartMonth
CreditCard