public function setUp()
 {
     parent::setUp();
     $this->gateway = new TwoPartyGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setSecureHash(md5('example'));
     $this->options = array('amount' => 1000, 'transactionId' => 12345, 'card' => new CreditCard(array('number' => '4111111111111111', 'expiryMonth' => '05', 'expiryYear' => '2013', 'cvv' => '123')));
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new SIMGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setApiLoginId('example');
     $this->options = array('amount' => '10.00', 'transactionId' => '99', 'returnUrl' => 'https://www.example.com/return');
 }
Exemple #3
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setCallbackPassword('bar123');
     $this->options = array('amount' => '10.00', 'returnUrl' => 'https://www.example.com/return');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setMerchantCode('ABCXYZ');
     $this->gateway->setAuthenticationCode('a;sldkfjasdf;aladjs');
 }
Exemple #5
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');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new TwoPartyGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setSecureHash(md5('example'));
     $this->options = array('amount' => '10.00', 'transactionId' => 12345, 'card' => $this->getValidCard());
 }
Exemple #7
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new DirectGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->purchaseOptions = array('amount' => '10.00', 'transactionId' => '123', 'card' => $this->getValidCard(), 'returnUrl' => 'https://www.example.com/return');
     $this->captureOptions = array('amount' => '10.00', 'transactionReference' => '{"SecurityKey":"JEUPDN1N7E","TxAuthNo":"4255","VPSTxId":"{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}","VendorTxCode":"438791"}');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setAppId('abc');
     $this->gateway->setAppSecret('123');
     $this->options = array('amount' => '10.00', 'returnUrl' => 'https://www.example.com/return');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new AIMGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->purchaseOptions = array('amount' => 1000, 'card' => $this->getValidCard());
     $this->captureOptions = array('amount' => 1000, 'transactionReference' => '12345');
     $this->voidOptions = array('transactionReference' => '12345');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setMerchantId('foo');
     $this->gateway->setPassword('bar');
     $this->options = array('amount' => '10.00', 'currency' => 'NOK', 'transactionId' => '123', 'returnUrl' => 'https://www.example.com/return');
 }
Exemple #11
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setAccountNumber('123456');
     $this->gateway->setSecretWord('secret');
     $this->options = array('amount' => 1000, 'returnUrl' => 'https://www.example.com/return');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setAccountId('111111');
     $this->gateway->setSiteId('222222');
     $this->gateway->setSiteCode('333333');
     $this->options = array('notifyUrl' => 'http://localhost/notify', 'cancelUrl' => 'http://localhost/cancel', 'returnUrl' => 'http://localhost/return', 'gateway' => 'IDEAL', 'issuer' => 'issuer', 'transactionId' => '123456', 'currency' => 'EUR', 'amount' => '100.00', 'description' => 'desc', 'extraData1' => 'extra 1', 'extraData2' => 'extra 2', 'extraData3' => 'extra 3', 'language' => 'a language', 'clientIp' => '127.0.0.1', 'googleAnalyticsCode' => 'analytics code', 'card' => array('email' => '*****@*****.**', 'firstName' => 'first name', 'lastName' => 'last name', 'address1' => 'address 1', 'address2' => 'address 2', 'postcode' => '1000', 'city' => 'a city', 'country' => 'a country', 'phone' => 'phone number'));
 }
 protected function setUp()
 {
     parent::setUp();
     $this->gateway = new DirectebankingGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setSubAccountId('123456');
 }
Exemple #14
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => 1000, 'returnUrl' => 'https://www.example.com/return', 'card' => new CreditCard(array('firstName' => 'Example', 'lastName' => 'User', 'number' => '4111111111111111', 'expiryMonth' => '12', 'expiryYear' => '2016', 'cvv' => '123')));
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new ExpressGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => '10.00', 'returnUrl' => 'https://www.example.com/return', 'cancelUrl' => 'https://www.example.com/cancel');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new ThreePartyGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => '10.00', 'transactionId' => 12345, 'returnUrl' => 'https://www.example.com/return');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => 1000);
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new DirectPostGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setMerchantId('abc123');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new PxPostGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => '10.00', 'card' => $this->getValidCard());
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new PaymentPageGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('merchant_id' => '12345', 'api_key' => '67890', 'description' => 'Ginger Ninger', 'amount' => '25.25', 'cancelUrl' => 'http://*****:*****@everest.net', 'billingFirstName' => 'Edmond', 'billingLastName' => 'Hillary'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new ProGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => '10.00', 'card' => new CreditCard(array('firstName' => 'Example', 'lastName' => 'User', 'number' => '4111111111111111', 'expiryMonth' => '12', 'expiryYear' => '2016', 'cvv' => '123')));
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new PxPayGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => 1000, 'returnUrl' => 'https://www.example.com/return');
 }