예제 #1
0
 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')));
 }
예제 #2
0
 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');
 }
예제 #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');
 }
예제 #4
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setMerchantCode('ABCXYZ');
     $this->gateway->setAuthenticationCode('a;sldkfjasdf;aladjs');
 }
예제 #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');
 }
예제 #6
0
 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());
 }
예제 #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"}');
 }
예제 #8
0
 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');
 }
예제 #9
0
 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');
 }
예제 #10
0
 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');
 }
예제 #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');
 }
예제 #12
0
 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');
 }
예제 #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')));
 }
예제 #15
0
 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');
 }
예제 #17
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
 }
예제 #18
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => 1000);
 }
예제 #19
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new DirectPostGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setMerchantId('abc123');
 }
예제 #20
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new PxPostGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => '10.00', 'card' => $this->getValidCard());
 }
예제 #21
0
 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'));
 }
예제 #22
0
 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')));
 }
예제 #23
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new PxPayGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => 1000, 'returnUrl' => 'https://www.example.com/return');
 }