public function setShippingPostcode($value) { return $this->setParameter('shippingPostcode', $value); }
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'); }