public function setUp()
 {
     parent::setUp();
     $this->gateway = new HostedGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setPaystationId('500600');
     $this->gateway->setGatewayId('FOOBAR');
 }
Esempio n. 2
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' => '95.63', 'card' => $card, 'customerId' => '9966441');
     $this->captureOptions = array('amount' => '10.00', 'transactionReference' => '9988775');
     $this->voidOptions = array('accountNumber' => '12345678', 'storeId' => 'test', 'storePassword' => 'test', 'transactionReference' => '115147689');
     $this->storedDataOptions = array('amount' => '95.63', 'customerId' => '9966441', 'transactionReference' => '244530120');
 }
 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());
 }
 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');
     $this->voidOptions = array('transactionReference' => 'ASDFASDFASDF');
 }
 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', 'transactionId' => '123', 'transactionReference' => '{"SecurityKey":"JEUPDN1N7E","TxAuthNo":"4255","VPSTxId":"{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}","VendorTxCode":"438791"}');
 }
    public function setUp()
    {
        parent::setUp();
        $this->gateway = new MobileExpressGateway($this->getHttpClient(), $this->getHttpRequest());
        $this->gateway->setPartner('20880127040');
        $this->gateway->setKey('sc1n78r0faswga7jjrpf6o');
        $this->gateway->setSellerEmail('*****@*****.**');
        $this->gateway->setNotifyUrl('https://www.example.com/notify');
        $this->gateway->setReturnUrl('https://www.example.com/return');
        $this->gateway->setShowUrl('https://www.example.com/return1');
        $this->gateway->setPrivateKey('-----BEGIN RSA PRIVATE KEY-----
MIICWwIBAAKBgQDELAccoy5epvo9TEKr4sXLVNbM0ZXAu24G9z/k2D3SHtFuONCh
H1O5nF73332hSA1k1x/nexGNAMlot/H6IlucdRaL8zHcSA5AKVw0iCnD9BoVnXCG
tElayPXQeLgtEP5FAJ9Ba1w28UWTgkgTj8dAFwYxADiAMm9i4LfWMtay0wIDAQAB
AoGAdxtASivtqHx7bSJTTKeIblcZgAw0f2uDwHj4a0q75krd361RRrKNlCGUK62f
SoBD2Zkf/tzjIBh9MT6WBcg8lCZ1UaNxwmXoyZ76G3IrjeJd02foRd648v663Top
fTjoKjv2KrzSmUu2Km4uE+NZqFSL+Jd1z0DwHbhfd0I8BGECQQDvCg7muPcEUi7o
3GpK0QVsk8EzP1Q8fdlebpr+FcCvfL5uTMIY6z27fO4p0dONJL8s9gV7r464XekP
KnfImBnRAkEA0hdScmQaZuZLUsJwhWWPRmYraJ3FsplvPJ5opt+zeemgiW2sxOfx
cVY2eFSt0qstmqau/FbSFRjCyrs8hlAHYwJAezorLmPh65dWWXLvVLxmWG/fJEVW
K30RJq5MNnoOSCk9nmzxjpkOzO19+YgSz+tGpq35a6a4I3E+KTRSZdWLUQJAaMPa
iFKk29VRkHaHt+26Mcf3M5cho/thfiAcXcLF9DBtrrpzYkmrm/H6/ax0dc6I0kr2
jb0ZzA1p7cDK4Mt9swJACh0wFnEQvfFBVUZo/zWW5nEBnVQ4l1QhfG6DoWJJA866
jdamyj2vQOFHLE2qpD+wprkUa86FJsdaEcuKjUl1lw==
-----END RSA PRIVATE KEY-----');
        $this->options = array('out_trade_no' => '2014010122390001', 'subject' => 'test', 'total_fee' => '0.01');
    }
 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');
 }
Esempio n. 8
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setMerchantCode('ABCXYZ');
     $this->gateway->setAuthenticationCode('a;sldkfjasdf;aladjs');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new FatzebraGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->card = new CreditCard(array('firstName' => 'Example', 'lastName' => 'User', 'number' => '4111111111111111', 'expiryMonth' => '12', 'expiryYear' => '2016', 'cvv' => '123'));
     $this->options = array('amount' => '10.00', 'transactionId' => '123412341234', 'card' => $this->card);
 }
Esempio n. 10
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setTestMode(true);
     $this->options = array("userId" => "24a58d3c-4774-48bb-803a-b0ccc6b2d8d5", "paymentMethodId" => "c4ec7ad4-5b20-456a-8ab5-5ad5c2300a17", "destinationAccountId" => "23535718-e3a9-4b13-a28c-85f0838083b1", "code" => "global.payments.other", "amount" => '10.00', "username" => '32b53506-d3b2-405a-8c83-9b5c82b67575', "password" => 'test');
 }
Esempio n. 11
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setPurse($this->purse);
     $this->gateway->setSecret($this->secret);
     $this->gateway->setTestMode($this->testMode);
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new ConnectGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setSharedSecret('96MbdNvxTa');
     $this->gateway->setStoreId('1120540155');
     $this->options = array('amount' => '13.00', 'returnUrl' => 'https://www.example.com/return', 'card' => $this->getValidCard(), 'transactionId' => 'abc123', 'currency' => 'GBP', 'customerId' => 54321);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setShopId(0);
     $this->gateway->setMerchantId('0123456');
     $this->gateway->setMerchantKey('b36d8259346eaddb3c03236b37ad3a1d7a67cec6');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setApiKey('2F822Rw39fx762MaV7Yy86jXGTC7sCDy');
     $products = [['product-code' => 'SKU-123', 'description' => 'test', 'commodity-code' => 'abc', 'unit-of-measure' => 'lbs', 'unit-cost' => '5.00', 'quantity' => 1, 'total-amount' => 7.22, 'tax-amount' => 0.0, 'tax-rate' => 1.0, 'discount-amount' => 1.0, 'discount-rate' => 1.0, 'tax-type' => 'sales', 'alternate-tax-id' => '12345'], ['product-code' => 'SKU-12345', 'description' => 'test', 'commodity-code' => 'abc', 'unit-of-measure' => 'lbs', 'unit-cost' => '5.00', 'quantity' => 1, 'total-amount' => 7.22, 'tax-amount' => 0.0, 'tax-rate' => 1.0, 'discount-amount' => 1.0, 'discount-rate' => 1.0, 'tax-type' => 'sales', 'alternate-tax-id' => '12345']];
     $this->options = array('amount' => '10.00', 'returnUrl' => 'https://www.example.com/return', 'cilentIp' => '127.0.0.1', 'products' => $products, 'card' => new CreditCard(array('firstName' => 'Example', 'lastName' => 'User', 'number' => '4111111111111111', 'expiryMonth' => '12', 'expiryYear' => '2016', 'cvv' => '123', 'issueNumber' => '5', 'startMonth' => '4', 'startYear' => '2013')));
 }
Esempio n. 15
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setPurse($this->purse);
     $this->gateway->setSignKey($this->signKey);
     $this->gateway->setTestKey($this->testKey);
 }
Esempio n. 16
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' => '10.00', 'returnUrl' => 'https://www.example.com/return');
 }
 public function setUp()
 {
     parent::setUp();
     $wsdlFile = __DIR__ . '/Mock/AlliedWalletSoapClient.wsdl';
     // fwrite(STDERR, "WDSLFile = $wsdlFile\n");
     $this->mockSoapClient = $this->getMockFromWsdl($wsdlFile, 'AlliedWalletSoapClient');
     $this->gateway = new SoapGateway($this->getHttpClient(), $this->getHttpRequest(), $this->mockSoapClient);
 }
Esempio n. 18
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new IdealGateway($this->getHttpClient(), $this->getHttpRequest());
     // Test token was found on https://www.pay.nl/webshops/plugins
     $this->gateway->setApiToken('4830f1a5be689901d095ab8af595a9839ce7adb3');
     $this->gateway->setServiceId('SL-7378-6230');
 }
Esempio n. 19
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');
 }
Esempio n. 20
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new RestGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setToken('TEST-TOKEN-123');
     $this->gateway->setTokenExpires(time() + 600);
     $this->options = array('amount' => '10.00', 'card' => new CreditCard(array('firstName' => 'Example', 'lastName' => 'User', 'number' => '4111111111111111', 'expiryMonth' => '12', 'expiryYear' => '2016', 'cvv' => '123')));
 }
Esempio n. 21
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');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new AIMGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->purchaseOptions = array('amount' => '10.00', 'card' => $this->getValidCard());
     $this->captureOptions = array('amount' => '10.00', 'transactionReference' => '12345');
     $this->voidOptions = array('transactionReference' => '12345');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setUsername('Billy');
     $this->gateway->setPassword('really_secure');
     $this->card = new CreditCard(array('email' => '*****@*****.**'));
 }
Esempio n. 24
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new GlobalGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setGatewayId('1234');
     $this->gateway->setPassword('abcde');
     $this->options = array('amount' => '13.00', 'card' => $this->getValidCard(), 'transactionId' => 'order2', 'currency' => 'USD', 'testMode' => true);
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setMerNo('20777');
     $this->gateway->setGatewayNo('20777001');
     $this->gateway->setSignKey('y36aX5D');
 }
Esempio n. 26
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new SIMGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setApiLoginId('example');
     $this->gateway->setHashSecret('elpmaxe');
     $this->options = array('amount' => '10.00', 'transactionId' => '99', 'returnUrl' => 'https://www.example.com/return');
 }
Esempio n. 27
0
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setUsername('SOAP_USERNAME');
     $this->gateway->setPassword('oJ2rHLBVSbD5iGfT');
     $this->gateway->setTestMode(true);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setSerializer($this->getSerializerMock());
     $this->paymentOptions = ['card' => new CreditCard(['number' => '4200000000000000', 'expiryYear' => '2019', 'expiryMonth' => '01', 'name' => 'John Doe', 'firstName' => 'John', 'lastName' => 'Doe', 'address1' => '550 South Winchester blvd.', 'address2' => 'P.O. Box 850', 'country' => 'US', 'phone' => '+1(202)555-1234', 'email' => '*****@*****.**']), 'amount' => '500.00', 'currency' => 'EUR', 'countryCode' => 'DE', 'transactionId' => '9457892347623478'];
     $this->referencedOptions = ['transactionId' => '9457892347623478', 'transactionReference' => 'C242720181323966504820'];
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setAccount('410011680044609');
     $this->gateway->setPassword('dUtlwyajCX6osFzTuZriXPQJ');
     $this->authorizeOptions = array('notification_type' => 'p2p-incoming', 'operation_id' => '937356121364090009', 'amount' => '0.99', 'currency' => '643', 'datetime' => '2014-11-07T12:21:00Z', 'sender' => '41001451017477', 'codepro' => 'false', 'label' => '18', 'sha1_hash' => '3ec98f09655ce22d014f1a62706057c178fc0e66');
     $this->purchaseOptions = array('form_comment' => 'formcomment', 'orderId' => '123', 'amount' => '10.00', 'method' => 'AC', 'comment' => 'comment', 'returnUrl' => 'http://example.com/success', 'cancelUrl' => 'http://example.com/cancel');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gateway = new DirectPostGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->purchaseOptions = array('amount' => '10.00', 'card' => $this->getValidCard());
     $this->captureOptions = array('amount' => '10.00', 'transactionReference' => '2577708057');
     $this->voidOptions = array('transactionReference' => '2577708057');
     $this->refundOptions = array('transactionReference' => '2577725848');
 }