From 23153041a9c81b5299102a2d649272f2688437c4 Mon Sep 17 00:00:00 2001 From: Steven Easton Date: Tue, 13 Aug 2013 13:14:48 +0100 Subject: [PATCH 001/333] SagePay uses shorthand type names for Mastercard and Diners Club --- .../SagePay/Message/DirectAuthorizeRequest.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php b/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php index 86f3f5a4..40cd6889 100644 --- a/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php +++ b/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php @@ -62,11 +62,23 @@ public function getData() $data = $this->getBaseAuthorizeData(); $this->getCard()->validate(); + $cardType = $this->getCard()->getBrand(); + + // list of brands SagePay names differently + $brands = array( + 'mastercard' => 'mc', + 'diners_club' => 'dc' + ); + + if (isset($brands[$cardType])) { + $cardType = $brands[$cardType]; + } + $data['CardHolder'] = $this->getCard()->getName(); $data['CardNumber'] = $this->getCard()->getNumber(); $data['CV2'] = $this->getCard()->getCvv(); $data['ExpiryDate'] = $this->getCard()->getExpiryDate('my'); - $data['CardType'] = $this->getCard()->getBrand(); + $data['CardType'] = $cardType; if ($this->getCard()->getStartMonth() and $this->getCard()->getStartYear()) { $data['StartDate'] = $this->getCard()->getStartDate('my'); From 03e4b79fb49d11bcbc63b8475d8857ee90b649ae Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Tue, 13 Aug 2013 10:11:41 -0700 Subject: [PATCH 002/333] Clean up Sage Pay card brand mapping and add tests. Refs #114 Closes #93 Closes #91 --- .../Message/DirectAuthorizeRequest.php | 29 +++++----- .../Message/DirectAuthorizeRequestTest.php | 55 +++++++++++++++++++ 2 files changed, 71 insertions(+), 13 deletions(-) create mode 100644 tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php diff --git a/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php b/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php index 40cd6889..ece198fc 100644 --- a/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php +++ b/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php @@ -17,6 +17,10 @@ class DirectAuthorizeRequest extends AbstractRequest { protected $action = 'DEFERRED'; + protected $cardBrandMap = array( + 'mastercard' => 'mc', + 'diners_club' => 'dc' + ); protected function getBaseAuthorizeData() { @@ -62,23 +66,11 @@ public function getData() $data = $this->getBaseAuthorizeData(); $this->getCard()->validate(); - $cardType = $this->getCard()->getBrand(); - - // list of brands SagePay names differently - $brands = array( - 'mastercard' => 'mc', - 'diners_club' => 'dc' - ); - - if (isset($brands[$cardType])) { - $cardType = $brands[$cardType]; - } - $data['CardHolder'] = $this->getCard()->getName(); $data['CardNumber'] = $this->getCard()->getNumber(); $data['CV2'] = $this->getCard()->getCvv(); $data['ExpiryDate'] = $this->getCard()->getExpiryDate('my'); - $data['CardType'] = $cardType; + $data['CardType'] = $this->getCardBrand(); if ($this->getCard()->getStartMonth() and $this->getCard()->getStartYear()) { $data['StartDate'] = $this->getCard()->getStartDate('my'); @@ -95,4 +87,15 @@ public function getService() { return 'vspdirect-register'; } + + protected function getCardBrand() + { + $brand = $this->getCard()->getBrand(); + + if (isset($this->cardBrandMap[$brand])) { + return $this->cardBrandMap[$brand]; + } + + return $brand; + } } diff --git a/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php b/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php new file mode 100644 index 00000000..0a33851d --- /dev/null +++ b/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php @@ -0,0 +1,55 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\SagePay\Message; + +use Omnipay\TestCase; + +class DirectAuthorizeRequestTest extends TestCase +{ + public function setUp() + { + parent::setUp(); + + $this->request = new DirectAuthorizeRequest($this->getHttpClient(), $this->getHttpRequest()); + $this->request->initialize( + array( + 'amount' => '12.00', + 'transactionId' => '123', + 'card' => $this->getValidCard(), + ) + ); + } + + public function testGetDataVisa() + { + $this->request->getCard()->setNumber('4929000000006'); + $data = $this->request->getData(); + + $this->assertSame('visa', $data['CardType']); + } + + public function testGetDataMastercard() + { + $this->request->getCard()->setNumber('5404000000000001'); + $data = $this->request->getData(); + + $this->assertSame('mc', $data['CardType']); + } + + public function testGetDataDinersClub() + { + $this->request->getCard()->setNumber('30569309025904'); + $data = $this->request->getData(); + + $this->assertSame('dc', $data['CardType']); + } +} From f2cb03d1e92d2781ec7ed2e5cbc0f116627f5e34 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Mon, 19 Aug 2013 09:17:46 -0700 Subject: [PATCH 003/333] Fix SagePay getService not returning correct value. Closes #117 Closes #118 --- .../SagePay/Message/AbstractRequest.php | 2 +- .../SagePay/Message/RefundRequestTest.php | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 tests/Omnipay/SagePay/Message/RefundRequestTest.php diff --git a/src/Omnipay/SagePay/Message/AbstractRequest.php b/src/Omnipay/SagePay/Message/AbstractRequest.php index f06f607e..714b3e11 100644 --- a/src/Omnipay/SagePay/Message/AbstractRequest.php +++ b/src/Omnipay/SagePay/Message/AbstractRequest.php @@ -42,7 +42,7 @@ public function setSimulatorMode($value) public function getService() { - return $this->getParameter('action'); + return $this->action; } protected function getBaseData() diff --git a/tests/Omnipay/SagePay/Message/RefundRequestTest.php b/tests/Omnipay/SagePay/Message/RefundRequestTest.php new file mode 100644 index 00000000..e45b24bc --- /dev/null +++ b/tests/Omnipay/SagePay/Message/RefundRequestTest.php @@ -0,0 +1,50 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\SagePay\Message; + +use Omnipay\TestCase; + +class RefundRequestTest extends TestCase +{ + public function setUp() + { + parent::setUp(); + + $this->request = new RefundRequest($this->getHttpClient(), $this->getHttpRequest()); + $this->request->initialize( + array( + 'amount' => '12.00', + 'transactionReference' => '{"SecurityKey":"JEUPDN1N7E","TxAuthNo":"4255","VPSTxId":"{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}","VendorTxCode":"438791"}', + 'testMode' => true, + ) + ); + } + + public function testGetData() + { + $data = $this->request->getData(); + + $this->assertSame('REFUND', $data['TxType']); + $this->assertSame('12.00', $data['Amount']); + $this->assertSame('438791', $data['RelatedVendorTxCode']); + $this->assertSame('{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}', $data['RelatedVPSTxId']); + $this->assertSame('JEUPDN1N7E', $data['RelatedSecurityKey']); + $this->assertSame('4255', $data['RelatedTxAuthNo']); + } + + public function testGetEndpoint() + { + $url = $this->request->getEndpoint(); + + $this->assertSame('https://test.sagepay.com/gateway/service/refund.vsp', $url); + } +} From e4fd0b4ecc6d4a7542b2223c70784a5e13397f07 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 25 Aug 2013 12:13:04 -0700 Subject: [PATCH 004/333] Add support and contribution guidelines --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 1fdca33b..f1e5f415 100644 --- a/README.md +++ b/README.md @@ -384,6 +384,26 @@ web server (PHP 5.4+): For more information, see the [example application directory](https://github.com/adrianmacneil/omnipay/tree/master/example). +## Support + +If you are having general issues with Omnipay, we suggest posting on +[Stack Overflow](http://stackoverflow.com/). Be sure to add the +[omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found. + +If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/adrianmacneil/omnipay/issues), +or better yet, fork the library and submit a pull request. + +## Contributing + +* Fork the project. +* Make your feature addition or bug fix. +* Add tests for it. This is important so I don't break it in a future version unintentionally. +* Commit just the modifications, do not mess with the composer.json or CHANGELOG.md files. +* Ensure your code is nicely formatted in the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) + style and that all tests pass. +* Send the pull request. +* Check that the [travis build](https://travis-ci.org/adrianmacneil/omnipay) passed. If not, rinse and repeat. + ## Feedback **Please provide feedback!** We want to make this library useful in as many projects as possible. From 2145cd43e467f41f66bfc41347f9e97b5bf20d37 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Wed, 28 Aug 2013 09:13:54 -0700 Subject: [PATCH 005/333] Add v1.0.3 release notes --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d35774b..5a338d58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog :zap: +# v1.0.3 (2013-08-28) + +* Stripe: Added fetchTransaction method (@cfreear) +* MultiSafepay: Assorted bug fixes (@aderuwe) +* Sage Pay: Fixed not sending correct card brand for MasterCard and Diners Club (@steveneaston) +* Sage Pay: Fixed RefundRequest not sending correct transaction type + # v1.0.2 (2013-07-23) * Added MultiSafepay gateway From 22fd00071c53f325b22c77baf613ad26a55a7551 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 7 Sep 2013 08:04:46 +1000 Subject: [PATCH 006/333] Add mailing list to readme --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f1e5f415..6e7367ec 100644 --- a/README.md +++ b/README.md @@ -390,6 +390,10 @@ If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found. +If you want to keep up to date with release anouncements, discuss ideas for the project, +or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which +you can subscribe to. + If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/adrianmacneil/omnipay/issues), or better yet, fork the library and submit a pull request. @@ -407,7 +411,7 @@ or better yet, fork the library and submit a pull request. ## Feedback **Please provide feedback!** We want to make this library useful in as many projects as possible. -Please raise a Github issue, and point out what you do and don't like, or fork the project and make -suggestions. **No issue is too small.** +Please head on over to the [mailing list](https://groups.google.com/forum/#!forum/omnipay) +and point out what you do and don't like, or fork the project and make suggestions. **No issue is too small.** [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/adrianmacneil/omnipay/trend.png)](https://bitdeli.com/free "Bitdeli Badge") From a9f01ba48b4c1bc201fa244616c3d763aa216f3d Mon Sep 17 00:00:00 2001 From: John Kary Date: Tue, 17 Sep 2013 19:59:36 +1000 Subject: [PATCH 007/333] Add more tests. Refs #125 --- .../PayPal/Message/AbstractRequest.php | 4 +- tests/Omnipay/CardSave/GatewayTest.php | 3 + .../Omnipay/CardSave/Message/ResponseTest.php | 32 +++++++++ .../Mock/PurchaseFailureWithoutStatusCode.txt | 10 +++ .../CardSave/Mock/PurchaseRedirect.txt | 10 +++ .../Message/CompletePurchaseRequestTest.php | 46 +++++++++++++ .../Netaxept/Message/PurchaseRequestTest.php | 66 +++++++++++++++++++ .../Omnipay/Netaxept/Message/ResponseTest.php | 2 + .../PayPal/Message/CaptureRequestTest.php | 46 +++++++++++++ .../Message/ExpressAuthorizeRequestTest.php | 64 +++++++++++++++++- ...e.php => ExpressAuthorizeResponseTest.php} | 12 ++-- .../ExpressCompleteAuthorizeRequestTest.php | 54 +++++++++++++++ .../PayPal/Message/RefundRequestTest.php | 61 +++++++++++++++++ 13 files changed, 403 insertions(+), 7 deletions(-) create mode 100644 tests/Omnipay/CardSave/Mock/PurchaseFailureWithoutStatusCode.txt create mode 100644 tests/Omnipay/CardSave/Mock/PurchaseRedirect.txt create mode 100644 tests/Omnipay/Netaxept/Message/CompletePurchaseRequestTest.php create mode 100644 tests/Omnipay/Netaxept/Message/PurchaseRequestTest.php create mode 100644 tests/Omnipay/PayPal/Message/CaptureRequestTest.php rename tests/Omnipay/PayPal/Message/{ExpressAuthorizeResponse.php => ExpressAuthorizeResponseTest.php} (82%) create mode 100644 tests/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequestTest.php create mode 100644 tests/Omnipay/PayPal/Message/RefundRequestTest.php diff --git a/src/Omnipay/PayPal/Message/AbstractRequest.php b/src/Omnipay/PayPal/Message/AbstractRequest.php index e7190141..7364c47f 100644 --- a/src/Omnipay/PayPal/Message/AbstractRequest.php +++ b/src/Omnipay/PayPal/Message/AbstractRequest.php @@ -16,6 +16,8 @@ */ abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest { + const API_VERSION = '85.0'; + protected $liveEndpoint = 'https://api-3t.paypal.com/nvp'; protected $testEndpoint = 'https://api-3t.sandbox.paypal.com/nvp'; @@ -93,7 +95,7 @@ protected function getBaseData($method) { $data = array(); $data['METHOD'] = $method; - $data['VERSION'] = '85.0'; + $data['VERSION'] = static::API_VERSION; $data['USER'] = $this->getUsername(); $data['PWD'] = $this->getPassword(); $data['SIGNATURE'] = $this->getSignature(); diff --git a/tests/Omnipay/CardSave/GatewayTest.php b/tests/Omnipay/CardSave/GatewayTest.php index 831d6d44..caf85898 100644 --- a/tests/Omnipay/CardSave/GatewayTest.php +++ b/tests/Omnipay/CardSave/GatewayTest.php @@ -32,6 +32,9 @@ public function setUp() 'expiryMonth' => '12', 'expiryYear' => '2016', 'cvv' => '123', + 'issueNumber' => '5', + 'startMonth' => '4', + 'startYear' => '2013', )), ); } diff --git a/tests/Omnipay/CardSave/Message/ResponseTest.php b/tests/Omnipay/CardSave/Message/ResponseTest.php index 518e3b68..5aa8b954 100644 --- a/tests/Omnipay/CardSave/Message/ResponseTest.php +++ b/tests/Omnipay/CardSave/Message/ResponseTest.php @@ -11,10 +11,20 @@ namespace Omnipay\CardSave\Message; +use Mockery as m; use Omnipay\TestCase; class ResponseTest extends TestCase { + /** + * @expectedException \Omnipay\Common\Exception\InvalidResponseException + */ + public function testPurchaseWithoutStatusCode() + { + $httpResponse = $this->getMockHttpResponse('PurchaseFailureWithoutStatusCode.txt'); + new Response($this->getMockRequest(), $httpResponse->getBody()); + } + public function testPurchaseSuccess() { $httpResponse = $this->getMockHttpResponse('PurchaseSuccess.txt'); @@ -23,6 +33,7 @@ public function testPurchaseSuccess() $this->assertTrue($response->isSuccessful()); $this->assertEquals('130215141054377801316798', $response->getTransactionReference()); $this->assertSame('AuthCode: 672167', $response->getMessage()); + $this->assertEmpty($response->getRedirectUrl()); } public function testPurchaseFailure() @@ -34,4 +45,25 @@ public function testPurchaseFailure() $this->assertSame('', $response->getTransactionReference()); $this->assertSame('Input variable errors', $response->getMessage()); } + + public function testRedirect() + { + $httpResponse = $this->getMockHttpResponse('PurchaseRedirect.txt'); + + $request = m::mock('\Omnipay\Common\Message\AbstractRequest'); + $request->shouldReceive('getReturnUrl')->once()->andReturn('http://store.example.com/'); + + $response = new Response($request, $httpResponse->getBody()); + + $this->assertTrue($response->isRedirect()); + $this->assertSame('POST', $response->getRedirectMethod()); + $this->assertSame('http://some.redirect.com/', $response->getRedirectUrl()); + + $expectedData = array( + 'PaReq' => 'Some PaREQ', + 'TermUrl' => 'http://store.example.com/', + 'MD' => '130215141054377801316798', + ); + $this->assertEquals($expectedData, $response->getRedirectData()); + } } diff --git a/tests/Omnipay/CardSave/Mock/PurchaseFailureWithoutStatusCode.txt b/tests/Omnipay/CardSave/Mock/PurchaseFailureWithoutStatusCode.txt new file mode 100644 index 00000000..5ef6f898 --- /dev/null +++ b/tests/Omnipay/CardSave/Mock/PurchaseFailureWithoutStatusCode.txt @@ -0,0 +1,10 @@ +HTTP/1.1 200 OK +Cache-Control: private, max-age=0 +Content-Length: 689 +Content-Type: text/xml; charset=utf-8 +Node: VENUS +X-Powered-By: ASP.NET +X-AspNet-Version: 4.0.30319 +Date: Fri, 15 Feb 2013 14:06:34 GMT + +Input variable errorsRequired variable (PaymentMessage.TransactionDetails.OrderID) is missing \ No newline at end of file diff --git a/tests/Omnipay/CardSave/Mock/PurchaseRedirect.txt b/tests/Omnipay/CardSave/Mock/PurchaseRedirect.txt new file mode 100644 index 00000000..05979a07 --- /dev/null +++ b/tests/Omnipay/CardSave/Mock/PurchaseRedirect.txt @@ -0,0 +1,10 @@ +HTTP/1.1 200 OK +Cache-Control: private, max-age=0 +Content-Length: 944 +Content-Type: text/xml; charset=utf-8 +Node: VENUS +X-Powered-By: ASP.NET +X-AspNet-Version: 4.0.30319 +Date: Fri, 15 Feb 2013 14:10:53 GMT + +3AuthCode: 672167672167http://some.redirect.com/Some PaREQNOT_ENROLLED \ No newline at end of file diff --git a/tests/Omnipay/Netaxept/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/Netaxept/Message/CompletePurchaseRequestTest.php new file mode 100644 index 00000000..e358429f --- /dev/null +++ b/tests/Omnipay/Netaxept/Message/CompletePurchaseRequestTest.php @@ -0,0 +1,46 @@ +getHttpClient(); + $this->httpRequest = $this->getHttpRequest(); + + $this->request = new CompletePurchaseRequest($client, $this->httpRequest); + } + + /** + * @expectedException \Omnipay\Common\Exception\InvalidResponseException + */ + public function testGetDataThrowsExceptionWithoutResponseCode() + { + $this->httpRequest->query->set('transactionId', 'TRANS-123'); + + $this->request->getData(); + } + + /** + * @expectedException \Omnipay\Common\Exception\InvalidResponseException + */ + public function testGetDataThrowsExceptionWithoutTransactionId() + { + $this->httpRequest->query->set('responseCode', 'ABC-123'); + + $this->request->getData(); + } +} diff --git a/tests/Omnipay/Netaxept/Message/PurchaseRequestTest.php b/tests/Omnipay/Netaxept/Message/PurchaseRequestTest.php new file mode 100644 index 00000000..07d9576f --- /dev/null +++ b/tests/Omnipay/Netaxept/Message/PurchaseRequestTest.php @@ -0,0 +1,66 @@ +getHttpClient(); + $request = $this->getHttpRequest(); + + $this->request = new PurchaseRequest($client, $request); + } + + public function testGetDataWithCard() + { + $this->request->setMerchantId('MERCH-123'); + $this->request->setPassword('PASSWORD-123'); + $this->request->setAmount('1.23'); + $this->request->setCurrency('USD'); + $this->request->setTransactionId('ABC-123'); + $this->request->setReturnUrl('http://return.domain.com/'); + + $card = new CreditCard(array( + 'firstName' => 'John', + 'lastName' => 'Doe', + 'email' => 'test@email.com', + 'phone' => '555-555-5555', + 'address1' => '123 NW Blvd', + 'address2' => 'Lynx Lane', + 'postcode' => '66605', + 'city' => 'Topeka', + 'country' => 'USA', + )); + $this->request->setCard($card); + + $expected = array( + 'merchantId' => 'MERCH-123', + 'token' => 'PASSWORD-123', + 'serviceType' => 'B', + 'orderNumber' => 'ABC-123', + 'currencyCode' => 'USD', + 'amount' => 123, + 'redirectUrl' => 'http://return.domain.com/', + 'customerFirstName' => 'John', + 'customerLastName' => 'Doe', + 'customerEmail' => 'test@email.com', + 'customerPhoneNumber' => '555-555-5555', + 'customerAddress1' => '123 NW Blvd', + 'customerAddress2' => 'Lynx Lane', + 'customerPostcode' => '66605', + 'customerTown' => 'Topeka', + 'customerCountry' => 'USA', + ); + + $this->assertEquals($expected, $this->request->getData()); + } +} diff --git a/tests/Omnipay/Netaxept/Message/ResponseTest.php b/tests/Omnipay/Netaxept/Message/ResponseTest.php index bf1dfffd..5fe1b1ba 100644 --- a/tests/Omnipay/Netaxept/Message/ResponseTest.php +++ b/tests/Omnipay/Netaxept/Message/ResponseTest.php @@ -33,6 +33,8 @@ public function testPurchaseFailure() $this->assertFalse($response->isSuccessful()); $this->assertFalse($response->isRedirect()); + $this->assertNull($response->getRedirectUrl()); + $this->assertNull($response->getRedirectData()); $this->assertNull($response->getTransactionReference()); $this->assertSame("Missing parameter: 'Order Number'", $response->getMessage()); } diff --git a/tests/Omnipay/PayPal/Message/CaptureRequestTest.php b/tests/Omnipay/PayPal/Message/CaptureRequestTest.php new file mode 100644 index 00000000..53a3b2fb --- /dev/null +++ b/tests/Omnipay/PayPal/Message/CaptureRequestTest.php @@ -0,0 +1,46 @@ +getHttpClient(); + $request = $this->getHttpRequest(); + $this->request = new CaptureRequest($client, $request); + } + + public function testGetData() + { + $this->request->setTransactionReference('ABC-123'); + $this->request->setAmount('1.23'); + $this->request->setCurrency('USD'); + $this->request->setUsername('testuser'); + $this->request->setPassword('testpass'); + $this->request->setSignature('SIG'); + $this->request->setSubject('SUB'); + + $expected = array(); + $expected['METHOD'] = 'DoCapture'; + $expected['AUTHORIZATIONID'] = 'ABC-123'; + $expected['AMT'] = '1.23'; + $expected['CURRENCYCODE'] = 'USD'; + $expected['COMPLETETYPE'] = 'Complete'; + $expected['USER'] = 'testuser'; + $expected['PWD'] = 'testpass'; + $expected['SIGNATURE'] = 'SIG'; + $expected['SUBJECT'] = 'SUB'; + $expected['VERSION'] = CaptureRequest::API_VERSION; + + $this->assertEquals($expected, $this->request->getData()); + } +} diff --git a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php index b04b423f..1006e7f7 100644 --- a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php +++ b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php @@ -11,6 +11,7 @@ namespace Omnipay\PayPal\Message; +use Omnipay\Common\CreditCard; use Omnipay\TestCase; class ExpressAuthorizeRequestTest extends TestCase @@ -29,7 +30,7 @@ public function setUp() ); } - public function testGetData() + public function testGetDataWithoutCard() { $this->request->initialize(array( 'amount' => '10.00', @@ -56,6 +57,67 @@ public function testGetData() $this->assertSame('https://www.example.com/header.jpg', $data['HDRIMG']); } + public function testGetDataWitCard() + { + $this->request->initialize(array( + 'amount' => '10.00', + 'currency' => 'AUD', + 'transactionId' => '111', + 'description' => 'Order Description', + 'returnUrl' => 'https://www.example.com/return', + 'cancelUrl' => 'https://www.example.com/cancel', + 'notifyUrl' => 'https://www.example.com/notify', + 'subject' => 'demo@example.com', + 'headerImageUrl' => 'https://www.example.com/header.jpg', + )); + + $card = new CreditCard(array( + 'name' => 'John Doe', + 'address1' => '123 NW Blvd', + 'address2' => 'Lynx Lane', + 'city' => 'Topeka', + 'state' => 'KS', + 'country' => 'USA', + 'postcode' => '66605', + 'phone' => '555-555-5555', + 'email' => 'test@email.com', + )); + $this->request->setCard($card); + + $expected = array( + 'METHOD' => 'SetExpressCheckout', + 'VERSION' => ExpressAuthorizeRequest::API_VERSION, + 'USER' => null, + 'PWD' => null, + 'SIGNATURE' => null, + 'PAYMENTREQUEST_0_PAYMENTACTION' => 'Authorization', + 'SOLUTIONTYPE' => null, + 'LANDINGPAGE' => null, + 'NOSHIPPING' => 1, + 'ALLOWNOTE' => 0, + 'PAYMENTREQUEST_0_AMT' => '10.00', + 'PAYMENTREQUEST_0_CURRENCYCODE' => 'AUD', + 'PAYMENTREQUEST_0_INVNUM' => '111', + 'PAYMENTREQUEST_0_DESC' => 'Order Description', + 'RETURNURL' => 'https://www.example.com/return', + 'CANCELURL' => 'https://www.example.com/cancel', + 'PAYMENTREQUEST_0_NOTIFYURL' => 'https://www.example.com/notify', + 'SUBJECT' => 'demo@example.com', + 'HDRIMG' => 'https://www.example.com/header.jpg', + 'PAYMENTREQUEST_0_SHIPTONAME' => 'John Doe', + 'PAYMENTREQUEST_0_SHIPTOSTREET' => '123 NW Blvd', + 'PAYMENTREQUEST_0_SHIPTOSTREET2' => 'Lynx Lane', + 'PAYMENTREQUEST_0_SHIPTOCITY' => 'Topeka', + 'PAYMENTREQUEST_0_SHIPTOSTATE' => 'KS', + 'PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE' => 'USA', + 'PAYMENTREQUEST_0_SHIPTOZIP' => '66605', + 'PAYMENTREQUEST_0_SHIPTOPHONENUM' => '555-555-5555', + 'EMAIL' => 'test@email.com', + ); + + $this->assertEquals($expected, $this->request->getData()); + } + public function testHeaderImageUrl() { $this->assertSame($this->request, $this->request->setHeaderImageUrl('https://www.example.com/header.jpg')); diff --git a/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php b/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php similarity index 82% rename from tests/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php rename to tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php index 98513b34..a28537b6 100644 --- a/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php +++ b/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php @@ -18,7 +18,8 @@ class ExpressAuthorizeResponseTest extends TestCase public function testConstruct() { // response should decode URL format data - $response = new ExpressAuthorizeResponse('example=value&foo=bar'); + $response = new ExpressAuthorizeResponse($this->getMockRequest(), 'example=value&foo=bar'); + $this->assertEquals(array('example' => 'value', 'foo' => 'bar'), $response->getData()); } @@ -27,10 +28,11 @@ public function testExpressPurchaseSuccess() $httpResponse = $this->getMockHttpResponse('ExpressPurchaseSuccess.txt'); $response = new ExpressAuthorizeResponse($this->getMockRequest(), $httpResponse->getBody()); - $this->assertTrue($response->isSuccessful()); - $this->assertSame('EC-42721413K79637829', $response->getExpressRedirectToken()); - $this->assertNull($response->getTransactionReference()); + $this->assertFalse($response->isSuccessful()); + $this->assertSame('EC-42721413K79637829', $response->getTransactionReference()); $this->assertNull($response->getMessage()); + $this->assertNull($response->getRedirectData()); + $this->assertSame('GET', $response->getRedirectMethod()); } public function testExpressPurchaseFailure() @@ -39,7 +41,7 @@ public function testExpressPurchaseFailure() $response = new ExpressAuthorizeResponse($this->getMockRequest(), $httpResponse->getBody()); $this->assertFalse($response->isSuccessful()); - $this->assertNull($response->getExpressRedirectToken()); + $this->assertNull($response->getTransactionReference()); $this->assertNull($response->getTransactionReference()); $this->assertSame('This transaction cannot be processed. The amount to be charged is zero.', $response->getMessage()); } diff --git a/tests/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequestTest.php b/tests/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequestTest.php new file mode 100644 index 00000000..46bb00b4 --- /dev/null +++ b/tests/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequestTest.php @@ -0,0 +1,54 @@ +getHttpClient(); + + $request = $this->getHttpRequest(); + $request->query->set('PayerID', 'Payer-1234'); + $request->query->set('token', 'TOKEN1234'); + + $this->request = new ExpressCompleteAuthorizeRequest($client, $request); + } + + public function testGetData() + { + $this->request->setAmount('1.23'); + $this->request->setCurrency('USD'); + $this->request->setTransactionId('ABC-123'); + $this->request->setUsername('testuser'); + $this->request->setPassword('testpass'); + $this->request->setSignature('SIG'); + $this->request->setSubject('SUB'); + $this->request->setDescription('DESC'); + + $expected = array(); + $expected['METHOD'] = 'DoExpressCheckoutPayment'; + $expected['PAYMENTREQUEST_0_PAYMENTACTION'] = 'Authorization'; + $expected['PAYMENTREQUEST_0_AMT'] = '1.23'; + $expected['PAYMENTREQUEST_0_CURRENCYCODE'] = 'USD'; + $expected['PAYMENTREQUEST_0_INVNUM'] = 'ABC-123'; + $expected['PAYMENTREQUEST_0_DESC'] = 'DESC'; + $expected['USER'] = 'testuser'; + $expected['PWD'] = 'testpass'; + $expected['SIGNATURE'] = 'SIG'; + $expected['SUBJECT'] = 'SUB'; + $expected['VERSION'] = ExpressCompleteAuthorizeRequest::API_VERSION; + $expected['TOKEN'] = 'TOKEN1234'; + $expected['PAYERID'] = 'Payer-1234'; + + $this->assertEquals($expected, $this->request->getData()); + } +} diff --git a/tests/Omnipay/PayPal/Message/RefundRequestTest.php b/tests/Omnipay/PayPal/Message/RefundRequestTest.php new file mode 100644 index 00000000..8a51b70e --- /dev/null +++ b/tests/Omnipay/PayPal/Message/RefundRequestTest.php @@ -0,0 +1,61 @@ +getHttpClient(); + + $request = $this->getHttpRequest(); + + $this->request = new RefundRequest($client, $request); + } + + /** + * @dataProvider provideRefundTypes + */ + public function testGetData($type, $amount) + { + $this->request->setAmount($amount); + $this->request->setCurrency('USD'); + $this->request->setTransactionReference('ABC-123'); + $this->request->setUsername('testuser'); + $this->request->setPassword('testpass'); + $this->request->setSignature('SIG'); + $this->request->setSubject('SUB'); + + $expected = array(); + $expected['REFUNDTYPE'] = $type; + $expected['METHOD'] = 'RefundTransaction'; + $expected['TRANSACTIONID'] = 'ABC-123'; + $expected['USER'] = 'testuser'; + $expected['PWD'] = 'testpass'; + $expected['SIGNATURE'] = 'SIG'; + $expected['SUBJECT'] = 'SUB'; + $expected['VERSION'] = RefundRequest::API_VERSION; + if ($amount) { + $expected['AMT'] = $amount; + $expected['CURRENCYCODE'] = 'USD'; + } + + $this->assertEquals($expected, $this->request->getData()); + } + + public function provideRefundTypes() + { + return array( + 'Partial' => array('Partial', '1.23'), + 'Full' => array('Full', '0'), + ); + } +} From 4ad07e1a7058b29bbfe370febd4c4f142e824af0 Mon Sep 17 00:00:00 2001 From: John Kary Date: Tue, 17 Sep 2013 20:16:01 +1000 Subject: [PATCH 008/333] Add more tests for AbstractRequest and AbstractResponse. Closes #125 --- .../Common/Message/AbstractRequestTest.php | 52 +++++++++++++++++++ .../Common/Message/AbstractResponseTest.php | 11 ++++ 2 files changed, 63 insertions(+) diff --git a/tests/Omnipay/Common/Message/AbstractRequestTest.php b/tests/Omnipay/Common/Message/AbstractRequestTest.php index 018d39dc..a779985c 100644 --- a/tests/Omnipay/Common/Message/AbstractRequestTest.php +++ b/tests/Omnipay/Common/Message/AbstractRequestTest.php @@ -189,4 +189,56 @@ public function testNotifyUrl() $this->assertSame($this->request, $this->request->setNotifyUrl('https://www.example.com/notify')); $this->assertSame('https://www.example.com/notify', $this->request->getNotifyUrl()); } + + public function testInitializedParametersAreSet() + { + $params = array('testMode' => 'success'); + + $this->request->initialize($params); + + $this->assertSame($this->request->getTestMode(), 'success'); + } + + public function testGetParameters() + { + $this->request->setTestMode(true); + $this->request->setToken('asdf'); + + $expected = array( + 'testMode' => true, + 'token' => 'asdf', + ); + $this->assertEquals($expected, $this->request->getParameters()); + } + + public function testCanValidateExistingParameters() + { + $this->request->setTestMode(true); + $this->request->setToken('asdf'); + + $this->assertNull($this->request->validate('testMode', 'token')); + } + + /** + * @expectedException \Omnipay\Common\Exception\InvalidRequestException + */ + public function testInvalidParametersThrowsException() + { + $this->request->setTestMode(true); + + $this->request->validate('testMode', 'token'); + } + + public function testNoCurrencyReturnedIfCurrencyNotSet() + { + $this->assertNull($this->request->getCurrencyNumeric()); + } + + /** + * @expectedException \Omnipay\Common\Exception\RuntimeException + */ + public function testMustSendRequestBeforeGettingResponse() + { + $this->request->getResponse(); + } } diff --git a/tests/Omnipay/Common/Message/AbstractResponseTest.php b/tests/Omnipay/Common/Message/AbstractResponseTest.php index f8f4e35b..c463dc75 100644 --- a/tests/Omnipay/Common/Message/AbstractResponseTest.php +++ b/tests/Omnipay/Common/Message/AbstractResponseTest.php @@ -24,5 +24,16 @@ public function testDefaultMethods() $this->assertNull($response->getData()); $this->assertNull($response->getTransactionReference()); $this->assertNull($response->getMessage()); + $this->assertNull($response->getCode()); + } + + /** + * @expectedException \Omnipay\Common\Exception\RuntimeException + */ + public function testCannotRedirectResponseThatIsNotRedirectResponseInterface() + { + $response = m::mock('\Omnipay\Common\Message\AbstractResponse[isSuccessful,isRedirect]'); + + $response->getRedirectResponse(); } } From 040938d0c5b3e534e01e7bd646707d3269182b54 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Tue, 17 Sep 2013 20:17:30 +1000 Subject: [PATCH 009/333] Whitespace fix --- tests/Omnipay/Stripe/Message/FetchTransactionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Omnipay/Stripe/Message/FetchTransactionTest.php b/tests/Omnipay/Stripe/Message/FetchTransactionTest.php index 31fbd7ba..b8110b5f 100644 --- a/tests/Omnipay/Stripe/Message/FetchTransactionTest.php +++ b/tests/Omnipay/Stripe/Message/FetchTransactionTest.php @@ -15,7 +15,7 @@ class FetchTransactionRequestTest extends TestCase { - public function setUp() + public function setUp() { $this->request = new FetchTransactionRequest($this->getHttpClient(), $this->getHttpRequest()); $this->request->setTransactionReference('ch_29yrvk84GVDsq9'); From 4f5e82232161939c0b14f5921c092ed77980d450 Mon Sep 17 00:00:00 2001 From: Justin Jones Date: Fri, 20 Sep 2013 16:55:47 +0800 Subject: [PATCH 010/333] Update pin gateway to add support for purchasing with card tokens from Pin.js. Closes #128 --- src/Omnipay/Pin/Message/PurchaseRequest.php | 8 ++- .../Pin/Message/PurchaseRequestTest.php | 60 +++++++++++++++++++ 2 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 tests/Omnipay/Pin/Message/PurchaseRequestTest.php diff --git a/src/Omnipay/Pin/Message/PurchaseRequest.php b/src/Omnipay/Pin/Message/PurchaseRequest.php index 06d67780..1c4b8ebf 100644 --- a/src/Omnipay/Pin/Message/PurchaseRequest.php +++ b/src/Omnipay/Pin/Message/PurchaseRequest.php @@ -33,15 +33,18 @@ public function setSecretKey($value) public function getData() { - $this->validate('amount'); + $this->validate('amount', 'card'); $data = array(); $data['amount'] = $this->getAmountInteger(); $data['currency'] = strtolower($this->getCurrency()); $data['description'] = $this->getDescription(); $data['ip_address'] = $this->getClientIp(); + $data['email'] = $this->getCard()->getEmail(); - if ($this->getCard()) { + if ($this->getToken()) { + $data['card_token'] = $this->getToken(); + } else { $this->getCard()->validate(); $data['card']['number'] = $this->getCard()->getNumber(); @@ -55,7 +58,6 @@ public function getData() $data['card']['address_postcode'] = $this->getCard()->getPostcode(); $data['card']['address_state'] = $this->getCard()->getState(); $data['card']['address_country'] = $this->getCard()->getCountry(); - $data['email'] = $this->getCard()->getEmail(); } return $data; diff --git a/tests/Omnipay/Pin/Message/PurchaseRequestTest.php b/tests/Omnipay/Pin/Message/PurchaseRequestTest.php new file mode 100644 index 00000000..626bdd88 --- /dev/null +++ b/tests/Omnipay/Pin/Message/PurchaseRequestTest.php @@ -0,0 +1,60 @@ +request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); + $this->request->initialize( + array( + 'amount' => '10.00', + 'currency' => 'AUD', + 'card' => $this->getValidCard(), + ) + ); + } + + public function testDataWithToken() + { + $this->request->setToken('abc'); + $data = $this->request->getData(); + + $this->assertSame('abc', $data['card_token']); + } + + public function testDataWithCard() + { + $card = $this->getValidCard(); + $this->request->setCard($card); + $data = $this->request->getData(); + + $this->assertSame($card['number'], $data['card']['number']); + } + + public function testSendSuccess() + { + $this->setMockHttpResponse('PurchaseSuccess.txt'); + + $response = $this->request->send(); + + $this->assertTrue($response->isSuccessful()); + $this->assertFalse($response->isRedirect()); + $this->assertEquals('ch_fXIxWf0gj1yFHJcV1W-d-w', $response->getTransactionReference()); + $this->assertSame('Success!', $response->getMessage()); + } + + public function testSendError() + { + $this->setMockHttpResponse('PurchaseFailure.txt'); + $response = $this->request->send(); + + $this->assertFalse($response->isSuccessful()); + $this->assertFalse($response->isRedirect()); + $this->assertNull($response->getTransactionReference()); + $this->assertSame('The current resource was deemed invalid.', $response->getMessage()); + } +} From 62c391957394058c7ae6c576f33856f31c7e3045 Mon Sep 17 00:00:00 2001 From: Alexander Deruwe Date: Wed, 25 Sep 2013 13:46:35 +0200 Subject: [PATCH 011/333] Remove unused use statements --- src/Omnipay/Common/GatewayFactory.php | 1 - src/Omnipay/Common/Message/AbstractResponse.php | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Omnipay/Common/GatewayFactory.php b/src/Omnipay/Common/GatewayFactory.php index d7702909..21189799 100644 --- a/src/Omnipay/Common/GatewayFactory.php +++ b/src/Omnipay/Common/GatewayFactory.php @@ -15,7 +15,6 @@ use RecursiveIteratorIterator; use ReflectionClass; use Guzzle\Http\ClientInterface; -use Guzzle\Http\Client as HttpClient; use Omnipay\Common\Exception\RuntimeException; use Symfony\Component\HttpFoundation\Request as HttpRequest; diff --git a/src/Omnipay/Common/Message/AbstractResponse.php b/src/Omnipay/Common/Message/AbstractResponse.php index 9e45f6c5..8ec97300 100644 --- a/src/Omnipay/Common/Message/AbstractResponse.php +++ b/src/Omnipay/Common/Message/AbstractResponse.php @@ -12,7 +12,6 @@ namespace Omnipay\Common\Message; use Omnipay\Common\Exception\RuntimeException; -use Omnipay\Common\Message\RequestInterface; use Symfony\Component\HttpFoundation\RedirectResponse as HttpRedirectResponse; use Symfony\Component\HttpFoundation\Response as HttpResponse; From 4815b8b80a7e41ba229b4f16f4c799180a37203c Mon Sep 17 00:00:00 2001 From: Alexander Deruwe Date: Wed, 25 Sep 2013 13:46:44 +0200 Subject: [PATCH 012/333] Fix CS --- src/Omnipay/Common/GatewayInterface.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Omnipay/Common/GatewayInterface.php b/src/Omnipay/Common/GatewayInterface.php index b9405fb1..b6fc4395 100644 --- a/src/Omnipay/Common/GatewayInterface.php +++ b/src/Omnipay/Common/GatewayInterface.php @@ -16,7 +16,6 @@ */ interface GatewayInterface { - /** * Get gateway display name * From df07d3b839bc99fe7900d46714ee4537a9e283f7 Mon Sep 17 00:00:00 2001 From: Matt Ross Date: Thu, 26 Sep 2013 06:49:03 +1000 Subject: [PATCH 013/333] Added MD5 hash secret parameter for Authorize.Net SIM. Closes #131 Closes #134 --- .../AuthorizeNet/Message/AbstractRequest.php | 10 ++++++ .../Message/SIMCompleteAuthorizeRequest.php | 2 +- src/Omnipay/AuthorizeNet/SIMGateway.php | 19 +++++++++++ .../SIMCompleteAuthorizeRequestTest.php | 34 +++++++++++++++++++ tests/Omnipay/AuthorizeNet/SIMGatewayTest.php | 5 +-- 5 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php diff --git a/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php b/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php index 001c131c..684cbccd 100644 --- a/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php @@ -59,6 +59,16 @@ public function setCustomerId($value) return $this->setParameter('customerId', $value); } + public function getHashSecret() + { + return $this->getParameter('hashSecret'); + } + + public function setHashSecret($value) + { + return $this->setParameter('hashSecret', $value); + } + protected function getBaseData() { $data = array(); diff --git a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php b/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php index bba4e3ad..56232b05 100644 --- a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php @@ -29,7 +29,7 @@ public function getData() public function getHash() { - return md5($this->getApiLoginId().$this->getTransactionId().$this->getAmount()); + return md5($this->getHashSecret().$this->getApiLoginId().$this->getTransactionId().$this->getAmount()); } public function send() diff --git a/src/Omnipay/AuthorizeNet/SIMGateway.php b/src/Omnipay/AuthorizeNet/SIMGateway.php index 4b4936c9..bf167029 100644 --- a/src/Omnipay/AuthorizeNet/SIMGateway.php +++ b/src/Omnipay/AuthorizeNet/SIMGateway.php @@ -24,6 +24,25 @@ public function getName() return 'Authorize.Net SIM'; } + public function getDefaultParameters() + { + $parameters = parent::getDefaultParameters(); + $parameters['hashSecret'] = ''; + + return $parameters; + } + + public function getHashSecret() + { + return $this->getParameter('hashSecret'); + } + + public function setHashSecret($value) + { + return $this->setParameter('hashSecret', $value); + } + + public function authorize(array $parameters = array()) { return $this->createRequest('\Omnipay\AuthorizeNet\Message\SIMAuthorizeRequest', $parameters); diff --git a/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php b/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php new file mode 100644 index 00000000..0b134418 --- /dev/null +++ b/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php @@ -0,0 +1,34 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\AuthorizeNet\Message; + +use Omnipay\TestCase; + +class SIMCompleteAuthorizeRequestTest extends TestCase +{ + public function setUp() + { + $this->request = new SIMCompleteAuthorizeRequest($this->getHttpClient(), $this->getHttpRequest()); + } + + public function testGetHash() + { + $this->assertSame(md5(''), $this->request->getHash()); + + $this->request->setHashSecret('hashsec'); + $this->request->setApiLoginId('apilogin'); + $this->request->setTransactionId('trnid'); + $this->request->setAmount('10.00'); + + $this->assertSame(md5('hashsecapilogintrnid10.00'), $this->request->getHash()); + } +} diff --git a/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php b/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php index 48c09310..934df4a5 100644 --- a/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php +++ b/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php @@ -21,6 +21,7 @@ public function setUp() $this->gateway = new SIMGateway($this->getHttpClient(), $this->getHttpRequest()); $this->gateway->setApiLoginId('example'); + $this->gateway->setHashSecret('elpmaxe'); $this->options = array( 'amount' => '10.00', @@ -47,7 +48,7 @@ public function testCompleteAuthorize() array( 'x_response_code' => '1', 'x_trans_id' => '12345', - 'x_MD5_Hash' => md5('example9910.00'), + 'x_MD5_Hash' => md5('elpmaxeexample9910.00'), ) ); @@ -76,7 +77,7 @@ public function testCompletePurchase() array( 'x_response_code' => '1', 'x_trans_id' => '12345', - 'x_MD5_Hash' => md5('example9910.00'), + 'x_MD5_Hash' => md5('elpmaxeexample9910.00'), ) ); From 9491b2bd0dc87e764b2525b84cb0a8d0ae39f100 Mon Sep 17 00:00:00 2001 From: Alexander Deruwe Date: Thu, 26 Sep 2013 21:00:58 +1000 Subject: [PATCH 014/333] Add TargetPay gateway. Closes #132 --- README.md | 1 + composer.json | 1 + src/Omnipay/TargetPay/AbstractGateway.php | 40 ++++++ .../TargetPay/DirectebankingGateway.php | 50 ++++++++ src/Omnipay/TargetPay/IdealGateway.php | 63 +++++++++ .../TargetPay/Message/AbstractRequest.php | 34 +++++ .../TargetPay/Message/AbstractResponse.php | 60 +++++++++ .../Message/CompletePurchaseRequest.php | 52 ++++++++ .../Message/CompletePurchaseResponse.php | 23 ++++ .../DirectebankingCompletePurchaseRequest.php | 23 ++++ .../Message/DirectebankingPurchaseRequest.php | 63 +++++++++ .../TargetPay/Message/FetchIssuersRequest.php | 40 ++++++ .../Message/FetchIssuersResponse.php | 41 ++++++ .../Message/IdealCompletePurchaseRequest.php | 23 ++++ .../Message/IdealPurchaseRequest.php | 52 ++++++++ .../Message/MrcashCompletePurchaseRequest.php | 23 ++++ .../Message/MrcashPurchaseRequest.php | 41 ++++++ .../TargetPay/Message/PurchaseRequest.php | 37 ++++++ .../TargetPay/Message/PurchaseResponse.php | 75 +++++++++++ src/Omnipay/TargetPay/MrcashGateway.php | 50 ++++++++ .../TargetPay/DirectebankingGatewayTest.php | 68 ++++++++++ tests/Omnipay/TargetPay/IdealGatewayTest.php | 75 +++++++++++ .../Message/CompletePurchaseRequestTest.php | 61 +++++++++ ...ectebankingCompletePurchaseRequestTest.php | 32 +++++ .../DirectebankingPurchaseRequestTest.php | 54 ++++++++ .../Message/FetchIssuersRequestTest.php | 52 ++++++++ .../IdealCompletePurchaseRequestTest.php | 32 +++++ .../Message/IdealPurchaseRequestTest.php | 51 ++++++++ .../MrcashCompletePurchaseRequestTest.php | 32 +++++ .../Message/MrcashPurchaseRequestTest.php | 50 ++++++++ .../TargetPay/Message/PurchaseRequestTest.php | 54 ++++++++ .../Mock/CompletePurchaseFailure.txt | 11 ++ .../Mock/CompletePurchaseSuccess.txt | 11 ++ .../TargetPay/Mock/FetchIssuersSuccess.txt | 9 ++ .../TargetPay/Mock/PurchaseFailure.txt | 11 ++ .../TargetPay/Mock/PurchaseSuccess.txt | 11 ++ tests/Omnipay/TargetPay/MrcashGatewayTest.php | 121 ++++++++++++++++++ 37 files changed, 1527 insertions(+) create mode 100644 src/Omnipay/TargetPay/AbstractGateway.php create mode 100644 src/Omnipay/TargetPay/DirectebankingGateway.php create mode 100644 src/Omnipay/TargetPay/IdealGateway.php create mode 100644 src/Omnipay/TargetPay/Message/AbstractRequest.php create mode 100644 src/Omnipay/TargetPay/Message/AbstractResponse.php create mode 100644 src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php create mode 100644 src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php create mode 100644 src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php create mode 100644 src/Omnipay/TargetPay/Message/DirectebankingPurchaseRequest.php create mode 100644 src/Omnipay/TargetPay/Message/FetchIssuersRequest.php create mode 100644 src/Omnipay/TargetPay/Message/FetchIssuersResponse.php create mode 100644 src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php create mode 100644 src/Omnipay/TargetPay/Message/IdealPurchaseRequest.php create mode 100644 src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php create mode 100644 src/Omnipay/TargetPay/Message/MrcashPurchaseRequest.php create mode 100644 src/Omnipay/TargetPay/Message/PurchaseRequest.php create mode 100644 src/Omnipay/TargetPay/Message/PurchaseResponse.php create mode 100644 src/Omnipay/TargetPay/MrcashGateway.php create mode 100644 tests/Omnipay/TargetPay/DirectebankingGatewayTest.php create mode 100644 tests/Omnipay/TargetPay/IdealGatewayTest.php create mode 100644 tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php create mode 100644 tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php create mode 100644 tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php create mode 100644 tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php create mode 100644 tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php create mode 100644 tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php create mode 100644 tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php create mode 100644 tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php create mode 100644 tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php create mode 100644 tests/Omnipay/TargetPay/Mock/CompletePurchaseFailure.txt create mode 100644 tests/Omnipay/TargetPay/Mock/CompletePurchaseSuccess.txt create mode 100644 tests/Omnipay/TargetPay/Mock/FetchIssuersSuccess.txt create mode 100644 tests/Omnipay/TargetPay/Mock/PurchaseFailure.txt create mode 100644 tests/Omnipay/TargetPay/Mock/PurchaseSuccess.txt create mode 100644 tests/Omnipay/TargetPay/MrcashGatewayTest.php diff --git a/README.md b/README.md index 6e7367ec..4536fed5 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ The following gateways are already implemented: * Sage Pay Server * SecurePay Direct Post * Stripe +* TargetPay * WorldPay Gateways are created and initialized like so: diff --git a/composer.json b/composer.json index 7abb7d28..03ab9626 100644 --- a/composer.json +++ b/composer.json @@ -37,6 +37,7 @@ "stripe", "tala", "tala-payments", + "targetpay", "twocheckout", "worldpay" ], diff --git a/src/Omnipay/TargetPay/AbstractGateway.php b/src/Omnipay/TargetPay/AbstractGateway.php new file mode 100644 index 00000000..4d8322df --- /dev/null +++ b/src/Omnipay/TargetPay/AbstractGateway.php @@ -0,0 +1,40 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay; + +use Omnipay\Common\AbstractGateway as BaseAbstractGateway; + +/** + * Abstract TargetPay gateway. + */ +abstract class AbstractGateway extends BaseAbstractGateway +{ + /** + * {@inheritdoc} + */ + public function getDefaultParameters() + { + return array( + 'subAccountId' => '', + ); + } + + public function getSubAccountId() + { + return $this->getParameter('subAccountId'); + } + + public function setSubAccountId($value) + { + return $this->setParameter('subAccountId', $value); + } +} diff --git a/src/Omnipay/TargetPay/DirectebankingGateway.php b/src/Omnipay/TargetPay/DirectebankingGateway.php new file mode 100644 index 00000000..c6ab93eb --- /dev/null +++ b/src/Omnipay/TargetPay/DirectebankingGateway.php @@ -0,0 +1,50 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay; + +use Omnipay\TargetPay\Message\CompletePurchaseRequest; + +/** + * TargetPay Directebanking gateway. + * + * @link https://www.targetpay.com/info/directebanking-docu + */ +class DirectebankingGateway extends AbstractGateway +{ + /** + * {@inheritdoc} + */ + public function getName() + { + return 'TargetPay Directebanking'; + } + + /** + * {@inheritdoc} + */ + public function purchase(array $parameters = array()) + { + return $this->createRequest('\Omnipay\TargetPay\Message\DirectebankingPurchaseRequest', $parameters); + } + + /** + * Complete a purchase. + * + * @param array $parameters An array of options + * + * @return CompletePurchaseRequest + */ + public function completePurchase(array $parameters = array()) + { + return $this->createRequest('\Omnipay\TargetPay\Message\DirectebankingCompletePurchaseRequest', $parameters); + } +} diff --git a/src/Omnipay/TargetPay/IdealGateway.php b/src/Omnipay/TargetPay/IdealGateway.php new file mode 100644 index 00000000..4357e4a6 --- /dev/null +++ b/src/Omnipay/TargetPay/IdealGateway.php @@ -0,0 +1,63 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay; + +use Omnipay\TargetPay\Message\CompletePurchaseRequest; +use Omnipay\TargetPay\Message\FetchIssuersRequest; + +/** + * TargetPay iDEAL gateway. + * + * @link https://www.targetpay.com/docs/TargetPay_iDEAL_V1.0_nl.pdf + */ +class IdealGateway extends AbstractGateway +{ + /** + * {@inheritdoc} + */ + public function getName() + { + return 'TargetPay iDEAL'; + } + + /** + * Retrieve iDEAL issuers. + * + * @param array $parameters An array of options + * + * @return FetchIssuersRequest + */ + public function fetchIssuers(array $parameters = array()) + { + return $this->createRequest('\Omnipay\TargetPay\Message\FetchIssuersRequest', $parameters); + } + + /** + * {@inheritdoc} + */ + public function purchase(array $parameters = array()) + { + return $this->createRequest('\Omnipay\TargetPay\Message\IdealPurchaseRequest', $parameters); + } + + /** + * Complete a purchase. + * + * @param array $parameters An array of options + * + * @return CompletePurchaseRequest + */ + public function completePurchase(array $parameters = array()) + { + return $this->createRequest('\Omnipay\TargetPay\Message\IdealCompletePurchaseRequest', $parameters); + } +} diff --git a/src/Omnipay/TargetPay/Message/AbstractRequest.php b/src/Omnipay/TargetPay/Message/AbstractRequest.php new file mode 100644 index 00000000..8bf43689 --- /dev/null +++ b/src/Omnipay/TargetPay/Message/AbstractRequest.php @@ -0,0 +1,34 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\Common\Message\AbstractRequest as BaseAbstractRequest; + +abstract class AbstractRequest extends BaseAbstractRequest +{ + public function getSubAccountId() + { + return $this->getParameter('subAccountId'); + } + + public function setSubAccountId($value) + { + return $this->setParameter('subAccountId', $value); + } + + /** + * Get the endpoint for the request. + * + * @return string + */ + abstract public function getEndpoint(); +} diff --git a/src/Omnipay/TargetPay/Message/AbstractResponse.php b/src/Omnipay/TargetPay/Message/AbstractResponse.php new file mode 100644 index 00000000..fa6a455f --- /dev/null +++ b/src/Omnipay/TargetPay/Message/AbstractResponse.php @@ -0,0 +1,60 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\Common\Message\AbstractResponse as BaseAbstractResponse; +use Omnipay\Common\Message\RequestInterface; + +abstract class AbstractResponse extends BaseAbstractResponse +{ + /** + * @var string + */ + protected $code; + + /** + * {@inheritdoc} + */ + public function __construct(RequestInterface $request, $data) + { + parent::__construct($request, $data); + + if (false !== preg_match('/^([A-Z0-9]{6})(.*)$/', $this->data, $matches)) { + $this->code = trim($matches[1]); + $this->data = trim($matches[2]); + } + } + + /** + * {@inheritdoc} + */ + public function getMessage() + { + if (!$this->isSuccessful()) { + return $this->data; + } + + return null; + } + + /** + * {@inheritdoc} + */ + public function getCode() + { + if (!$this->isSuccessful()) { + return $this->code; + } + + return null; + } +} diff --git a/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php new file mode 100644 index 00000000..7861ff3f --- /dev/null +++ b/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php @@ -0,0 +1,52 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +abstract class CompletePurchaseRequest extends AbstractRequest +{ + public function getExchangeOnce() + { + return $this->getParameter('exchangeOnce'); + } + + public function setExchangeOnce($value) + { + return $this->setParameter('exchangeOnce', $value); + } + + /** + * {@inheritdoc} + */ + public function getData() + { + $this->validate('transactionId'); + + return array( + 'rtlo' => $this->getSubAccountId(), + 'trxid' => $this->getTransactionId(), + 'once' => $this->getExchangeOnce(), + 'test' => $this->getTestMode(), + ); + } + + /** + * {@inheritdoc} + */ + public function send() + { + $httpResponse = $this->httpClient->get( + $this->getEndpoint().'?'.http_build_query($this->getData()) + )->send(); + + return $this->response = new CompletePurchaseResponse($this, $httpResponse->getBody(true)); + } +} diff --git a/src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php b/src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php new file mode 100644 index 00000000..42d89f8a --- /dev/null +++ b/src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php @@ -0,0 +1,23 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +class CompletePurchaseResponse extends AbstractResponse +{ + /** + * {@inheritdoc} + */ + public function isSuccessful() + { + return '000000' === $this->code; + } +} diff --git a/src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php new file mode 100644 index 00000000..26cec042 --- /dev/null +++ b/src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php @@ -0,0 +1,23 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +class DirectebankingCompletePurchaseRequest extends CompletePurchaseRequest +{ + /** + * {@inheritdoc} + */ + public function getEndpoint() + { + return 'https://www.targetpay.com/directebanking/check'; + } +} diff --git a/src/Omnipay/TargetPay/Message/DirectebankingPurchaseRequest.php b/src/Omnipay/TargetPay/Message/DirectebankingPurchaseRequest.php new file mode 100644 index 00000000..75692060 --- /dev/null +++ b/src/Omnipay/TargetPay/Message/DirectebankingPurchaseRequest.php @@ -0,0 +1,63 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +class DirectebankingPurchaseRequest extends PurchaseRequest +{ + public function getCountry() + { + return $this->getParameter('country'); + } + + public function setCountry($value) + { + return $this->setParameter('country', $value); + } + + public function getServiceType() + { + return $this->getParameter('serviceType'); + } + + public function setServiceType($value) + { + return $this->setParameter('serviceType', $value); + } + + /** + * {@inheritdoc} + */ + public function getData() + { + $this->validate('amount', 'description', 'country', 'serviceType', 'clientIp', 'returnUrl'); + + return array( + 'rtlo' => $this->getSubAccountId(), + 'description' => $this->getDescription(), + 'amount' => $this->getAmountInteger(), + 'country' => $this->getCountry(), + 'lang' => $this->getLanguage(), + 'type' => $this->getServiceType(), + 'userip' => $this->getClientIp(), + 'returnurl' => $this->getReturnUrl(), + 'reporturl' => $this->getNotifyUrl(), + ); + } + + /** + * {@inheritdoc} + */ + public function getEndpoint() + { + return 'https://www.targetpay.com/directebanking/start'; + } +} diff --git a/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php b/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php new file mode 100644 index 00000000..cec041e9 --- /dev/null +++ b/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php @@ -0,0 +1,40 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\Common\Message\AbstractRequest as BaseAbstractRequest; + +class FetchIssuersRequest extends BaseAbstractRequest +{ + /** + * @var string + */ + protected $endpoint = 'https://www.targetpay.com/ideal/getissuers.php?format=xml'; + + /** + * {@inheritdoc} + */ + public function getData() + { + return null; + } + + /** + * {@inheritdoc} + */ + public function send() + { + $httpResponse = $this->httpClient->get($this->endpoint)->send(); + + return $this->response = new FetchIssuersResponse($this, $httpResponse->xml()); + } +} diff --git a/src/Omnipay/TargetPay/Message/FetchIssuersResponse.php b/src/Omnipay/TargetPay/Message/FetchIssuersResponse.php new file mode 100644 index 00000000..b9abd754 --- /dev/null +++ b/src/Omnipay/TargetPay/Message/FetchIssuersResponse.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\Common\Message\AbstractResponse as BaseAbstractResponse; + +class FetchIssuersResponse extends BaseAbstractResponse +{ + /** + * {@inheritdoc} + */ + public function isSuccessful() + { + return true; + } + + /** + * Return available issuers as an associative array. + * + * @return array + */ + public function getIssuers() + { + $result = array(); + + foreach ($this->data as $issuer) { + $result[(string) $issuer['id']] = (string) $issuer; + } + + return $result; + } +} diff --git a/src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php new file mode 100644 index 00000000..16d02e74 --- /dev/null +++ b/src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php @@ -0,0 +1,23 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +class IdealCompletePurchaseRequest extends CompletePurchaseRequest +{ + /** + * {@inheritdoc} + */ + public function getEndpoint() + { + return 'https://www.targetpay.com/ideal/check'; + } +} diff --git a/src/Omnipay/TargetPay/Message/IdealPurchaseRequest.php b/src/Omnipay/TargetPay/Message/IdealPurchaseRequest.php new file mode 100644 index 00000000..f45bb6cb --- /dev/null +++ b/src/Omnipay/TargetPay/Message/IdealPurchaseRequest.php @@ -0,0 +1,52 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +class IdealPurchaseRequest extends PurchaseRequest +{ + public function getIssuer() + { + return $this->getParameter('issuer'); + } + + public function setIssuer($value) + { + return $this->setParameter('issuer', $value); + } + + /** + * {@inheritdoc} + */ + public function getData() + { + $this->validate('issuer', 'amount', 'description', 'returnUrl'); + + return array( + 'rtlo' => $this->getSubAccountId(), + 'bank' => $this->getIssuer(), + 'amount' => $this->getAmountInteger(), + 'description' => $this->getDescription(), + 'language' => $this->getLanguage(), + 'currency' => $this->getCurrency(), + 'returnurl' => $this->getReturnUrl(), + 'reporturl' => $this->getNotifyUrl(), + ); + } + + /** + * {@inheritdoc} + */ + public function getEndpoint() + { + return 'https://www.targetpay.com/ideal/start'; + } +} diff --git a/src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php new file mode 100644 index 00000000..f9e74f47 --- /dev/null +++ b/src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php @@ -0,0 +1,23 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +class MrcashCompletePurchaseRequest extends CompletePurchaseRequest +{ + /** + * {@inheritdoc} + */ + public function getEndpoint() + { + return 'https://www.targetpay.com/mrcash/check'; + } +} diff --git a/src/Omnipay/TargetPay/Message/MrcashPurchaseRequest.php b/src/Omnipay/TargetPay/Message/MrcashPurchaseRequest.php new file mode 100644 index 00000000..0652cee3 --- /dev/null +++ b/src/Omnipay/TargetPay/Message/MrcashPurchaseRequest.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +class MrcashPurchaseRequest extends PurchaseRequest +{ + /** + * {@inheritdoc} + */ + public function getData() + { + $this->validate('amount', 'description', 'clientIp', 'returnUrl'); + + return array( + 'rtlo' => $this->getSubAccountId(), + 'amount' => $this->getAmountInteger(), + 'description' => $this->getDescription(), + 'lang' => $this->getLanguage(), + 'userip' => $this->getClientIp(), + 'returnurl' => $this->getReturnUrl(), + 'reporturl' => $this->getNotifyUrl(), + ); + } + + /** + * {@inheritdoc} + */ + public function getEndpoint() + { + return 'https://www.targetpay.com/mrcash/start'; + } +} diff --git a/src/Omnipay/TargetPay/Message/PurchaseRequest.php b/src/Omnipay/TargetPay/Message/PurchaseRequest.php new file mode 100644 index 00000000..dc36705e --- /dev/null +++ b/src/Omnipay/TargetPay/Message/PurchaseRequest.php @@ -0,0 +1,37 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +abstract class PurchaseRequest extends AbstractRequest +{ + public function getLanguage() + { + return $this->getParameter('language'); + } + + public function setLanguage($value) + { + return $this->setParameter('language', $value); + } + + /** + * {@inheritdoc} + */ + public function send() + { + $httpResponse = $this->httpClient->get( + $this->getEndpoint().'?'.http_build_query($this->getData()) + )->send(); + + return $this->response = new PurchaseResponse($this, $httpResponse->getBody(true)); + } +} diff --git a/src/Omnipay/TargetPay/Message/PurchaseResponse.php b/src/Omnipay/TargetPay/Message/PurchaseResponse.php new file mode 100644 index 00000000..24d4b27e --- /dev/null +++ b/src/Omnipay/TargetPay/Message/PurchaseResponse.php @@ -0,0 +1,75 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\Common\Message\RedirectResponseInterface; + +class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface +{ + /** + * {@inheritdoc} + */ + public function isSuccessful() + { + return false; + } + + /** + * {@inheritdoc} + */ + public function isRedirect() + { + return '000000' === $this->code; + } + + /** + * {@inheritdoc} + */ + public function getRedirectUrl() + { + $parts = explode('|', $this->data); + if (2 == count($parts)) { + return $parts[1]; + } + + return null; + } + + /** + * {@inheritdoc} + */ + public function getRedirectMethod() + { + return 'GET'; + } + + /** + * {@inheritdoc} + */ + public function getRedirectData() + { + return null; + } + + /** + * {@inheritdoc} + */ + public function getTransactionReference() + { + $parts = explode('|', $this->data); + if (2 == count($parts)) { + return $parts[0]; + } + + return null; + } +} diff --git a/src/Omnipay/TargetPay/MrcashGateway.php b/src/Omnipay/TargetPay/MrcashGateway.php new file mode 100644 index 00000000..52f5636a --- /dev/null +++ b/src/Omnipay/TargetPay/MrcashGateway.php @@ -0,0 +1,50 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay; + +use Omnipay\TargetPay\Message\CompletePurchaseRequest; + +/** + * TargetPay MrCash gateway. + * + * @link https://www.targetpay.com/docs/TargetPay_MisterCash_V1.0_nl.pdf + */ +class MrcashGateway extends AbstractGateway +{ + /** + * {@inheritdoc} + */ + public function getName() + { + return 'TargetPay MrCash'; + } + + /** + * {@inheritdoc} + */ + public function purchase(array $parameters = array()) + { + return $this->createRequest('\Omnipay\TargetPay\Message\MrcashPurchaseRequest', $parameters); + } + + /** + * Complete a purchase. + * + * @param array $parameters An array of options + * + * @return CompletePurchaseRequest + */ + public function completePurchase(array $parameters = array()) + { + return $this->createRequest('\Omnipay\TargetPay\Message\MrcashCompletePurchaseRequest', $parameters); + } +} diff --git a/tests/Omnipay/TargetPay/DirectebankingGatewayTest.php b/tests/Omnipay/TargetPay/DirectebankingGatewayTest.php new file mode 100644 index 00000000..8fcd9bc1 --- /dev/null +++ b/tests/Omnipay/TargetPay/DirectebankingGatewayTest.php @@ -0,0 +1,68 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay; + +use Omnipay\GatewayTestCase; + +class DirectebankingGatewayTest extends GatewayTestCase +{ + /** + * @var DirectebankingGateway + */ + protected $gateway; + + protected function setUp() + { + parent::setUp(); + + $this->gateway = new DirectebankingGateway($this->getHttpClient(), $this->getHttpRequest()); + $this->gateway->setSubAccountId('123456'); + } + + public function testPurchase() + { + /** @var \Omnipay\TargetPay\Message\DirectebankingPurchaseRequest $request */ + $request = $this->gateway->purchase(array( + 'amount' => '100.00', + 'description' => 'desc', + 'clientIp' => '127.0.0.1', + 'country' => '00', + 'language' => 'EN', + 'serviceType' => '0', + 'returnUrl' => 'http://localhost/return', + 'notifyUrl' => 'http://localhost/notify', + )); + + $this->assertInstanceOf('Omnipay\TargetPay\Message\DirectebankingPurchaseRequest', $request); + $this->assertSame('100.00', $request->getAmount()); + $this->assertSame('desc', $request->getDescription()); + $this->assertSame('127.0.0.1', $request->getClientIp()); + $this->assertSame('00', $request->getCountry()); + $this->assertSame('EN', $request->getLanguage()); + $this->assertSame('0', $request->getServiceType()); + $this->assertSame('http://localhost/return', $request->getReturnUrl()); + $this->assertSame('http://localhost/notify', $request->getNotifyUrl()); + } + + public function testCompletePurchase() + { + /** @var \Omnipay\TargetPay\Message\CompletePurchaseRequest $request */ + $request = $this->gateway->completePurchase(array( + 'transactionId' => '123456', + 'exchangeOnce' => true, + )); + + $this->assertInstanceOf('Omnipay\TargetPay\Message\CompletePurchaseRequest', $request); + $this->assertSame('123456', $request->getTransactionId()); + $this->assertTrue($request->getExchangeOnce()); + } +} diff --git a/tests/Omnipay/TargetPay/IdealGatewayTest.php b/tests/Omnipay/TargetPay/IdealGatewayTest.php new file mode 100644 index 00000000..ff15946d --- /dev/null +++ b/tests/Omnipay/TargetPay/IdealGatewayTest.php @@ -0,0 +1,75 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay; + +use Omnipay\GatewayTestCase; + +class IdealGatewayTest extends GatewayTestCase +{ + /** + * @var IdealGateway + */ + protected $gateway; + + protected function setUp() + { + parent::setUp(); + + $this->gateway = new IdealGateway($this->getHttpClient(), $this->getHttpRequest()); + $this->gateway->setSubAccountId('123456'); + } + + public function testFetchIssuers() + { + /** @var \Omnipay\TargetPay\Message\FetchIssuersRequest $request */ + $request = $this->gateway->fetchIssuers(); + + $this->assertInstanceOf('Omnipay\TargetPay\Message\FetchIssuersRequest', $request); + $this->assertNull($request->getData()); + } + + public function testPurchase() + { + /** @var \Omnipay\TargetPay\Message\IdealPurchaseRequest $request */ + $request = $this->gateway->purchase(array( + 'issuer' => '0001', + 'amount' => '100.00', + 'currency' => 'EUR', + 'description' => 'desc', + 'language' => 'EN', + 'returnUrl' => 'http://localhost/return', + 'notifyUrl' => 'http://localhost/notify', + )); + + $this->assertInstanceOf('Omnipay\TargetPay\Message\IdealPurchaseRequest', $request); + $this->assertSame('0001', $request->getIssuer()); + $this->assertSame('100.00', $request->getAmount()); + $this->assertSame('EUR', $request->getCurrency()); + $this->assertSame('desc', $request->getDescription()); + $this->assertSame('EN', $request->getLanguage()); + $this->assertSame('http://localhost/return', $request->getReturnUrl()); + $this->assertSame('http://localhost/notify', $request->getNotifyUrl()); + } + + public function testCompletePurchase() + { + /** @var \Omnipay\TargetPay\Message\CompletePurchaseRequest $request */ + $request = $this->gateway->completePurchase(array( + 'transactionId' => '123456', + 'exchangeOnce' => true, + )); + + $this->assertInstanceOf('Omnipay\TargetPay\Message\CompletePurchaseRequest', $request); + $this->assertSame('123456', $request->getTransactionId()); + $this->assertTrue($request->getExchangeOnce()); + } +} diff --git a/tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php new file mode 100644 index 00000000..dc8ab26e --- /dev/null +++ b/tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php @@ -0,0 +1,61 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Mockery as m; +use Omnipay\TestCase; + +class CompletePurchaseRequestTest extends TestCase +{ + /** + * @var CompletePurchaseRequest + */ + private $request; + + protected function setUp() + { + $arguments = array($this->getHttpClient(), $this->getHttpRequest()); + $this->request = m::mock('Omnipay\TargetPay\Message\CompletePurchaseRequest[getEndpoint]', $arguments); + $this->request->shouldReceive('getEndpoint')->andReturn('http://localhost/'); + $this->request->setTransactionId('123456'); + } + + public function testData() + { + $data = $this->request->getData(); + + $this->assertArrayHasKey('rtlo', $data); + $this->assertSame('123456', $data['trxid']); + $this->assertArrayHasKey('once', $data); + $this->assertArrayHasKey('test', $data); + } + + public function testSendSuccess() + { + $this->setMockHttpResponse('CompletePurchaseSuccess.txt'); + + $response = $this->request->send(); + + $this->assertTrue($response->isSuccessful()); + } + + public function testSendFailure() + { + $this->setMockHttpResponse('CompletePurchaseFailure.txt'); + + $response = $this->request->send(); + + $this->assertFalse($response->isSuccessful()); + $this->assertEquals('Transaction was cancelled', $response->getMessage()); + $this->assertEquals('TP0013', $response->getCode()); + } +} diff --git a/tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php new file mode 100644 index 00000000..70cf8339 --- /dev/null +++ b/tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php @@ -0,0 +1,32 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\TestCase; + +class DirectebankingCompletePurchaseRequestTest extends TestCase +{ + /** + * @var DirectebankingCompletePurchaseRequest + */ + private $request; + + protected function setUp() + { + $this->request = new DirectebankingCompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); + } + + public function testEndpoint() + { + $this->assertSame('https://www.targetpay.com/directebanking/check', $this->request->getEndpoint()); + } +} diff --git a/tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php new file mode 100644 index 00000000..59870ed1 --- /dev/null +++ b/tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php @@ -0,0 +1,54 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\TestCase; + +class DirectebankingPurchaseRequestTest extends TestCase +{ + /** + * @var DirectebankingPurchaseRequest + */ + private $request; + + protected function setUp() + { + $this->request = new DirectebankingPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); + } + + public function testData() + { + $this->request->setAmount('100.00'); + $this->request->setDescription('desc'); + $this->request->setCountry('01'); + $this->request->setServiceType('1'); + $this->request->setClientIp('127.0.0.1'); + $this->request->setReturnUrl('http://localhost/return'); + + $data = $this->request->getData(); + + $this->assertArrayHasKey('rtlo', $data); + $this->assertSame('desc', $data['description']); + $this->assertSame(10000, $data['amount']); + $this->assertSame('01', $data['country']); + $this->assertArrayHasKey('lang', $data); + $this->assertSame('1', $data['type']); + $this->assertSame('127.0.0.1', $data['userip']); + $this->assertSame('http://localhost/return', $data['returnurl']); + $this->assertArrayHasKey('reporturl', $data); + } + + public function testEndpoint() + { + $this->assertSame('https://www.targetpay.com/directebanking/start', $this->request->getEndpoint()); + } +} diff --git a/tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php b/tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php new file mode 100644 index 00000000..8ed5d616 --- /dev/null +++ b/tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php @@ -0,0 +1,52 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\TestCase; + +class FetchIssuersRequestTest extends TestCase +{ + /** + * @var FetchIssuersRequest + */ + private $request; + + protected function setUp() + { + $this->request = new FetchIssuersRequest($this->getHttpClient(), $this->getHttpRequest()); + } + + /** + * @dataProvider issuersProvider + */ + public function testSendSuccess($expected) + { + $this->setMockHttpResponse('FetchIssuersSuccess.txt'); + + $response = $this->request->send(); + + $this->assertTrue($response->isSuccessful()); + $this->assertEquals($expected, $response->getIssuers()); + } + + public function issuersProvider() + { + return array( + array( + array( + '0001' => 'Sample 1', + '0002' => 'Sample 2', + ), + ), + ); + } +} diff --git a/tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php new file mode 100644 index 00000000..4d63765b --- /dev/null +++ b/tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php @@ -0,0 +1,32 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\TestCase; + +class IdealCompletePurchaseRequestTest extends TestCase +{ + /** + * @var IdealCompletePurchaseRequest + */ + private $request; + + protected function setUp() + { + $this->request = new IdealCompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); + } + + public function testEndpoint() + { + $this->assertSame('https://www.targetpay.com/ideal/check', $this->request->getEndpoint()); + } +} diff --git a/tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php new file mode 100644 index 00000000..4c1fe29e --- /dev/null +++ b/tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php @@ -0,0 +1,51 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\TestCase; + +class IdealPurchaseRequestTest extends TestCase +{ + /** + * @var IdealPurchaseRequest + */ + private $request; + + protected function setUp() + { + $this->request = new IdealPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); + } + + public function testData() + { + $this->request->setIssuer('0001'); + $this->request->setAmount('100.00'); + $this->request->setDescription('desc'); + $this->request->setReturnUrl('http://localhost/return'); + + $data = $this->request->getData(); + + $this->assertArrayHasKey('rtlo', $data); + $this->assertSame('0001', $data['bank']); + $this->assertSame(10000, $data['amount']); + $this->assertSame('desc', $data['description']); + $this->assertArrayHasKey('language', $data); + $this->assertArrayHasKey('currency', $data); + $this->assertSame('http://localhost/return', $data['returnurl']); + $this->assertArrayHasKey('reporturl', $data); + } + + public function testEndpoint() + { + $this->assertSame('https://www.targetpay.com/ideal/start', $this->request->getEndpoint()); + } +} diff --git a/tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php new file mode 100644 index 00000000..f42fc91f --- /dev/null +++ b/tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php @@ -0,0 +1,32 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\TestCase; + +class MrcashCompletePurchaseRequestTest extends TestCase +{ + /** + * @var MrcashCompletePurchaseRequest + */ + private $request; + + protected function setUp() + { + $this->request = new MrcashCompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); + } + + public function testEndpoint() + { + $this->assertSame('https://www.targetpay.com/mrcash/check', $this->request->getEndpoint()); + } +} diff --git a/tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php new file mode 100644 index 00000000..52b14719 --- /dev/null +++ b/tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php @@ -0,0 +1,50 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Omnipay\TestCase; + +class MrcashPurchaseRequestTest extends TestCase +{ + /** + * @var MrcashPurchaseRequest + */ + private $request; + + protected function setUp() + { + $this->request = new MrcashPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); + } + + public function testData() + { + $this->request->setAmount('100.00'); + $this->request->setDescription('desc'); + $this->request->setClientIp('127.0.0.1'); + $this->request->setReturnUrl('http://localhost/return'); + + $data = $this->request->getData(); + + $this->assertArrayHasKey('rtlo', $data); + $this->assertSame(10000, $data['amount']); + $this->assertSame('desc', $data['description']); + $this->assertArrayHasKey('lang', $data); + $this->assertSame('127.0.0.1', $data['userip']); + $this->assertSame('http://localhost/return', $data['returnurl']); + $this->assertArrayHasKey('reporturl', $data); + } + + public function testEndpoint() + { + $this->assertSame('https://www.targetpay.com/mrcash/start', $this->request->getEndpoint()); + } +} diff --git a/tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php new file mode 100644 index 00000000..9bff9248 --- /dev/null +++ b/tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php @@ -0,0 +1,54 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay\Message; + +use Mockery as m; +use Omnipay\TestCase; + +class PurchaseRequestTest extends TestCase +{ + /** + * @var PurchaseRequest + */ + private $request; + + protected function setUp() + { + $arguments = array($this->getHttpClient(), $this->getHttpRequest()); + $this->request = m::mock('Omnipay\TargetPay\Message\PurchaseRequest[getData,getEndpoint]', $arguments); + $this->request->shouldReceive('getData')->andReturn(array()); + $this->request->shouldReceive('getEndpoint')->andReturn('http://localhost/'); + } + + public function testSendSuccess() + { + $this->setMockHttpResponse('PurchaseSuccess.txt'); + + $response = $this->request->send(); + + $this->assertFalse($response->isSuccessful()); + $this->assertTrue($response->isRedirect()); + $this->assertEquals('https://www.targetpay.com/mrcash/start.php?trxid=15983095', $response->getRedirectUrl()); + $this->assertEquals('15983095', $response->getTransactionReference()); + } + + public function testSendFailure() + { + $this->setMockHttpResponse('PurchaseFailure.txt'); + + $response = $this->request->send(); + + $this->assertFalse($response->isSuccessful()); + $this->assertEquals('Account disabled.', $response->getMessage()); + $this->assertEquals('TP0016', $response->getCode()); + } +} diff --git a/tests/Omnipay/TargetPay/Mock/CompletePurchaseFailure.txt b/tests/Omnipay/TargetPay/Mock/CompletePurchaseFailure.txt new file mode 100644 index 00000000..27ed42ae --- /dev/null +++ b/tests/Omnipay/TargetPay/Mock/CompletePurchaseFailure.txt @@ -0,0 +1,11 @@ +HTTP/1.1 200 OK +Date: Mon, 23 Sep 2013 14:50:58 GMT +Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c +Content-Location: check.php +Vary: negotiate +TCN: choice +Content-Length: 32 +Content-Type: text/html; charset=ISO-8859-1 +X-Pad: avoid browser bug + +TP0013 Transaction was cancelled diff --git a/tests/Omnipay/TargetPay/Mock/CompletePurchaseSuccess.txt b/tests/Omnipay/TargetPay/Mock/CompletePurchaseSuccess.txt new file mode 100644 index 00000000..884f522f --- /dev/null +++ b/tests/Omnipay/TargetPay/Mock/CompletePurchaseSuccess.txt @@ -0,0 +1,11 @@ +HTTP/1.1 200 OK +Date: Mon, 23 Sep 2013 14:50:39 GMT +Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c +Content-Location: check.php +Vary: negotiate +TCN: choice +Content-Length: 9 +Content-Type: text/html; charset=ISO-8859-1 +X-Pad: avoid browser bug + +000000 OK diff --git a/tests/Omnipay/TargetPay/Mock/FetchIssuersSuccess.txt b/tests/Omnipay/TargetPay/Mock/FetchIssuersSuccess.txt new file mode 100644 index 00000000..debecd8a --- /dev/null +++ b/tests/Omnipay/TargetPay/Mock/FetchIssuersSuccess.txt @@ -0,0 +1,9 @@ +TTP/1.1 200 OK +Date: Tue, 24 Sep 2013 12:38:19 GMT +Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c +X-Powered-By: PHP/5.2.0-8+etch16 +Transfer-Encoding: chunked +Content-Type: text/xml + + +Sample 1Sample 2 diff --git a/tests/Omnipay/TargetPay/Mock/PurchaseFailure.txt b/tests/Omnipay/TargetPay/Mock/PurchaseFailure.txt new file mode 100644 index 00000000..f8ceae7b --- /dev/null +++ b/tests/Omnipay/TargetPay/Mock/PurchaseFailure.txt @@ -0,0 +1,11 @@ +HTTP/1.1 200 OK +Date: Fri, 20 Sep 2013 09:35:34 GMT +Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c +Content-Location: start.php +Vary: negotiate +TCN: choice +Content-Length: 24 +Content-Type: text/html; charset=ISO-8859-1 +X-Pad: avoid browser bug + +TP0016 Account disabled. diff --git a/tests/Omnipay/TargetPay/Mock/PurchaseSuccess.txt b/tests/Omnipay/TargetPay/Mock/PurchaseSuccess.txt new file mode 100644 index 00000000..67cffaff --- /dev/null +++ b/tests/Omnipay/TargetPay/Mock/PurchaseSuccess.txt @@ -0,0 +1,11 @@ +HTTP/1.1 200 OK +Date: Fri, 20 Sep 2013 12:57:22 GMT +Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c +Content-Location: start.php +Vary: negotiate +TCN: choice +Content-Length: 73 +Content-Type: text/html; charset=ISO-8859-1 +X-Pad: avoid browser bug + +000000 15983095|https://www.targetpay.com/mrcash/start.php?trxid=15983095 diff --git a/tests/Omnipay/TargetPay/MrcashGatewayTest.php b/tests/Omnipay/TargetPay/MrcashGatewayTest.php new file mode 100644 index 00000000..04b24251 --- /dev/null +++ b/tests/Omnipay/TargetPay/MrcashGatewayTest.php @@ -0,0 +1,121 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Omnipay\TargetPay; + +use Omnipay\GatewayTestCase; + +class MrcashGatewayTest extends GatewayTestCase +{ + /** + * @var MrcashGateway + */ + protected $gateway; + + protected function setUp() + { + parent::setUp(); + + $this->gateway = new MrcashGateway($this->getHttpClient(), $this->getHttpRequest()); + $this->gateway->setSubAccountId('123456'); + } + + public function testFetchIssuers() + { + /** @var \Omnipay\TargetPay\Message\FetchIssuersRequest $request */ + /*$request = $this->gateway->fetchIssuers(); + + $this->assertInstanceOf('Omnipay\TargetPay\Message\FetchIssuersRequest', $request); + $this->assertNull($request->getData());*/ + } + + public function testPurchase() + { + /** @var \Omnipay\TargetPay\Message\MrcashPurchaseRequest $request */ + $request = $this->gateway->purchase(array( + 'amount' => '100.00', + 'description' => 'desc', + 'clientIp' => '127.0.0.1', + 'language' => 'EN', + 'returnUrl' => 'http://localhost/return', + 'notifyUrl' => 'http://localhost/notify', + )); + + $this->assertInstanceOf('Omnipay\TargetPay\Message\MrcashPurchaseRequest', $request); + $this->assertSame('100.00', $request->getAmount()); + $this->assertSame('desc', $request->getDescription()); + $this->assertSame('127.0.0.1', $request->getClientIp()); + $this->assertSame('EN', $request->getLanguage()); + $this->assertSame('http://localhost/return', $request->getReturnUrl()); + $this->assertSame('http://localhost/notify', $request->getNotifyUrl()); + } + + public function testPurchaseIdeal() + { + /** @var \Omnipay\TargetPay\Message\IdealPurchaseRequest $request */ + /*$request = $this->gateway->purchase(array( + 'issuer' => '0001', + 'amount' => '100.00', + 'currency' => 'EUR', + 'description' => 'desc', + 'language' => 'EN', + 'returnUrl' => 'http://localhost/return', + 'notifyUrl' => 'http://localhost/notify', + )); + + $this->assertInstanceOf('Omnipay\TargetPay\Message\IdealPurchaseRequest', $request); + $this->assertSame('0001', $request->getIssuer()); + $this->assertSame('100.00', $request->getAmount()); + $this->assertSame('EUR', $request->getCurrency()); + $this->assertSame('desc', $request->getDescription()); + $this->assertSame('EN', $request->getLanguage()); + $this->assertSame('http://localhost/return', $request->getReturnUrl()); + $this->assertSame('http://localhost/notify', $request->getNotifyUrl());*/ + } + + public function testPurchaseDirectebanking() + { + /** @var \Omnipay\TargetPay\Message\DirectebankingPurchaseRequest $request */ + /*$request = $this->gateway->purchase(array( + 'amount' => '100.00', + 'description' => 'desc', + 'clientIp' => '127.0.0.1', + 'country' => '00', + 'language' => 'EN', + 'serviceType' => '0', + 'returnUrl' => 'http://localhost/return', + 'notifyUrl' => 'http://localhost/notify', + )); + + $this->assertInstanceOf('Omnipay\TargetPay\Message\DirectebankingPurchaseRequest', $request); + $this->assertSame('100.00', $request->getAmount()); + $this->assertSame('desc', $request->getDescription()); + $this->assertSame('127.0.0.1', $request->getClientIp()); + $this->assertSame('00', $request->getCountry()); + $this->assertSame('EN', $request->getLanguage()); + $this->assertSame('0', $request->getServiceType()); + $this->assertSame('http://localhost/return', $request->getReturnUrl()); + $this->assertSame('http://localhost/notify', $request->getNotifyUrl());*/ + } + + public function testCompletePurchase() + { + /** @var \Omnipay\TargetPay\Message\CompletePurchaseRequest $request */ + $request = $this->gateway->completePurchase(array( + 'transactionId' => '123456', + 'exchangeOnce' => true, + )); + + $this->assertInstanceOf('Omnipay\TargetPay\Message\CompletePurchaseRequest', $request); + $this->assertSame('123456', $request->getTransactionId()); + $this->assertTrue($request->getExchangeOnce()); + } +} From c448a30234dee67b613e98db608d6d153a94fa4f Mon Sep 17 00:00:00 2001 From: Alexander Deruwe Date: Thu, 26 Sep 2013 13:18:04 +0200 Subject: [PATCH 015/333] Add MultiSafepay to composer.json keywords --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 03ab9626..866948cb 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,7 @@ "merchant", "migs", "mollie", + "multisafepay", "netaxept", "netbanx", "pay", From 66485d3f8d79850ae52717d25aa586824de7408e Mon Sep 17 00:00:00 2001 From: Alexander Deruwe Date: Fri, 27 Sep 2013 11:27:21 +0200 Subject: [PATCH 016/333] Add branch-alias to composer.json --- composer.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composer.json b/composer.json index 866948cb..16d6bff3 100644 --- a/composer.json +++ b/composer.json @@ -65,5 +65,10 @@ "silex/silex": "1.0.*@dev", "squizlabs/php_codesniffer": "~1.4.4", "twig/twig": "~1.12" + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } } } From af3d89d35a56963791fa03f72402d5a88f924c05 Mon Sep 17 00:00:00 2001 From: Alexander Deruwe Date: Fri, 4 Oct 2013 16:07:47 +0200 Subject: [PATCH 017/333] Add forgotten purchase parameter to MultiSafepay gateway --- src/Omnipay/MultiSafepay/Message/PurchaseRequest.php | 11 +++++++++++ .../MultiSafepay/Message/PurchaseRequestTest.php | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php b/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php index 042d8327..e4114b23 100644 --- a/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php +++ b/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php @@ -86,6 +86,16 @@ public function setExtraData3($value) return $this->setParameter('extraData3', $value); } + public function getItems() + { + return $this->getParameter('items'); + } + + public function setItems($value) + { + return $this->setParameter('items', $value); + } + /** * {@inheritdoc} */ @@ -135,6 +145,7 @@ public function getData() $transaction->addChild('var1', $this->getExtraData1()); $transaction->addChild('var2', $this->getExtraData2()); $transaction->addChild('var3', $this->getExtraData3()); + $transaction->addChild('items', $this->getItems()); $data->addChild('signature', $this->generateSignature()); diff --git a/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php b/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php index d7a33beb..0b0fb401 100644 --- a/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php +++ b/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php @@ -41,6 +41,7 @@ protected function setUp() 'extraData2' => 'extra 2', 'extraData3' => 'extra 3', 'language' => 'a language', + 'items' => 'the items', 'clientIp' => '127.0.0.1', 'googleAnalyticsCode' => 'analytics code', 'card' => array( @@ -177,6 +178,7 @@ public function allDataProvider() extra 1 extra 2 extra 3 + the items ad447bab87b8597853432c891e341db1 @@ -224,6 +226,7 @@ public function noIssuerDataProvider() extra 1 extra 2 extra 3 + the items ad447bab87b8597853432c891e341db1 @@ -274,6 +277,7 @@ public function specialCharsDataProvider() extra 1 extra 2 extra 3 + the items ad447bab87b8597853432c891e341db1 From c08f7661638c653f112df46720b08ecb47e2cd8b Mon Sep 17 00:00:00 2001 From: Alexander Deruwe Date: Mon, 30 Sep 2013 10:57:22 +0200 Subject: [PATCH 018/333] Remove hardcoded values in ExpressAuthorizeRequest (Fixes #121) --- .../PayPal/Message/AbstractRequest.php | 20 +++++++++++++++++++ .../Message/ExpressAuthorizeRequest.php | 10 ++++++++-- .../Message/ExpressAuthorizeRequestTest.php | 17 +++++++++++++--- 3 files changed, 42 insertions(+), 5 deletions(-) diff --git a/src/Omnipay/PayPal/Message/AbstractRequest.php b/src/Omnipay/PayPal/Message/AbstractRequest.php index 7364c47f..ac095389 100644 --- a/src/Omnipay/PayPal/Message/AbstractRequest.php +++ b/src/Omnipay/PayPal/Message/AbstractRequest.php @@ -91,6 +91,26 @@ public function setHeaderImageUrl($value) return $this->setParameter('headerImageUrl', $value); } + public function getNoShipping() + { + return $this->getParameter('noShipping'); + } + + public function setNoShipping($value) + { + return $this->setParameter('noShipping', $value); + } + + public function getAllowNote() + { + return $this->getParameter('allowNote'); + } + + public function setAllowNote($value) + { + return $this->setParameter('allowNote', $value); + } + protected function getBaseData($method) { $data = array(); diff --git a/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php b/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php index 7f836373..b3527fe2 100644 --- a/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php +++ b/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php @@ -32,8 +32,6 @@ public function getData() // pp express specific fields $data['SOLUTIONTYPE'] = $this->getSolutionType(); $data['LANDINGPAGE'] = $this->getLandingPage(); - $data['NOSHIPPING'] = 1; - $data['ALLOWNOTE'] = 0; $data['RETURNURL'] = $this->getReturnUrl(); $data['CANCELURL'] = $this->getCancelUrl(); @@ -41,6 +39,14 @@ public function getData() $data['HDRIMG'] = $headerImageUrl; } + if (null !== ($noShipping = $this->getNoShipping())) { + $data['NOSHIPPING'] = $noShipping; + } + + if (null !== ($allowNote = $this->getAllowNote())) { + $data['ALLOWNOTE'] = $allowNote; + } + if ($card = $this->getCard()) { $data['PAYMENTREQUEST_0_SHIPTONAME'] = $card->getName(); $data['PAYMENTREQUEST_0_SHIPTOSTREET'] = $card->getAddress1(); diff --git a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php index 1006e7f7..66832bf0 100644 --- a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php +++ b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php @@ -16,6 +16,11 @@ class ExpressAuthorizeRequestTest extends TestCase { + /** + * @var ExpressAuthorizeRequest + */ + private $request; + public function setUp() { parent::setUp(); @@ -42,6 +47,8 @@ public function testGetDataWithoutCard() 'notifyUrl' => 'https://www.example.com/notify', 'subject' => 'demo@example.com', 'headerImageUrl' => 'https://www.example.com/header.jpg', + 'noShipping' => 0, + 'allowNote' => 0, )); $data = $this->request->getData(); @@ -55,9 +62,11 @@ public function testGetDataWithoutCard() $this->assertSame('https://www.example.com/notify', $data['PAYMENTREQUEST_0_NOTIFYURL']); $this->assertSame('demo@example.com', $data['SUBJECT']); $this->assertSame('https://www.example.com/header.jpg', $data['HDRIMG']); + $this->assertSame(0, $data['NOSHIPPING']); + $this->assertSame(0, $data['ALLOWNOTE']); } - public function testGetDataWitCard() + public function testGetDataWithCard() { $this->request->initialize(array( 'amount' => '10.00', @@ -69,6 +78,8 @@ public function testGetDataWitCard() 'notifyUrl' => 'https://www.example.com/notify', 'subject' => 'demo@example.com', 'headerImageUrl' => 'https://www.example.com/header.jpg', + 'noShipping' => 2, + 'allowNote' => 1, )); $card = new CreditCard(array( @@ -93,8 +104,8 @@ public function testGetDataWitCard() 'PAYMENTREQUEST_0_PAYMENTACTION' => 'Authorization', 'SOLUTIONTYPE' => null, 'LANDINGPAGE' => null, - 'NOSHIPPING' => 1, - 'ALLOWNOTE' => 0, + 'NOSHIPPING' => 2, + 'ALLOWNOTE' => 1, 'PAYMENTREQUEST_0_AMT' => '10.00', 'PAYMENTREQUEST_0_CURRENCYCODE' => 'AUD', 'PAYMENTREQUEST_0_INVNUM' => '111', From 529c9fe9926c6ba5d92e93dba8d711a8a00e1ae1 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 5 Oct 2013 20:21:29 +1000 Subject: [PATCH 019/333] Don't pass state to Sage Pay unless country is US --- .../Message/DirectAuthorizeRequest.php | 39 ++++++++++--------- .../Message/DirectAuthorizeRequestTest.php | 38 ++++++++++++++++++ tests/Omnipay/TestCase.php | 14 +++++++ 3 files changed, 72 insertions(+), 19 deletions(-) diff --git a/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php b/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php index ece198fc..bb380312 100644 --- a/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php +++ b/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php @@ -25,6 +25,7 @@ class DirectAuthorizeRequest extends AbstractRequest protected function getBaseAuthorizeData() { $this->validate('amount', 'card', 'transactionId'); + $card = $this->getCard(); $data = $this->getBaseData(); $data['Description'] = $this->getDescription(); @@ -36,27 +37,27 @@ protected function getBaseAuthorizeData() $data['Apply3DSecure'] = 0; // use account setting // billing details - $data['BillingFirstnames'] = $this->getCard()->getFirstName(); - $data['BillingSurname'] = $this->getCard()->getLastName(); - $data['BillingAddress1'] = $this->getCard()->getBillingAddress1(); - $data['BillingAddress2'] = $this->getCard()->getBillingAddress2(); - $data['BillingCity'] = $this->getCard()->getBillingCity(); - $data['BillingPostCode'] = $this->getCard()->getBillingPostcode(); - $data['BillingState'] = $this->getCard()->getBillingState(); - $data['BillingCountry'] = $this->getCard()->getBillingCountry(); - $data['BillingPhone'] = $this->getCard()->getBillingPhone(); + $data['BillingFirstnames'] = $card->getFirstName(); + $data['BillingSurname'] = $card->getLastName(); + $data['BillingAddress1'] = $card->getBillingAddress1(); + $data['BillingAddress2'] = $card->getBillingAddress2(); + $data['BillingCity'] = $card->getBillingCity(); + $data['BillingPostCode'] = $card->getBillingPostcode(); + $data['BillingState'] = $card->getBillingCountry() === 'US' ? $card->getBillingState() : null; + $data['BillingCountry'] = $card->getBillingCountry(); + $data['BillingPhone'] = $card->getBillingPhone(); // shipping details - $data['DeliveryFirstnames'] = $this->getCard()->getFirstName(); - $data['DeliverySurname'] = $this->getCard()->getLastName(); - $data['DeliveryAddress1'] = $this->getCard()->getShippingAddress1(); - $data['DeliveryAddress2'] = $this->getCard()->getShippingAddress2(); - $data['DeliveryCity'] = $this->getCard()->getShippingCity(); - $data['DeliveryPostCode'] = $this->getCard()->getShippingPostcode(); - $data['DeliveryState'] = $this->getCard()->getShippingState(); - $data['DeliveryCountry'] = $this->getCard()->getShippingCountry(); - $data['DeliveryPhone'] = $this->getCard()->getShippingPhone(); - $data['CustomerEMail'] = $this->getCard()->getEmail(); + $data['DeliveryFirstnames'] = $card->getFirstName(); + $data['DeliverySurname'] = $card->getLastName(); + $data['DeliveryAddress1'] = $card->getShippingAddress1(); + $data['DeliveryAddress2'] = $card->getShippingAddress2(); + $data['DeliveryCity'] = $card->getShippingCity(); + $data['DeliveryPostCode'] = $card->getShippingPostcode(); + $data['DeliveryState'] = $card->getShippingCountry() === 'US' ? $card->getShippingState() : null; + $data['DeliveryCountry'] = $card->getShippingCountry(); + $data['DeliveryPhone'] = $card->getShippingPhone(); + $data['CustomerEMail'] = $card->getEmail(); return $data; } diff --git a/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php b/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php index 0a33851d..cda6b3cf 100644 --- a/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php +++ b/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php @@ -29,6 +29,44 @@ public function setUp() ); } + public function testGetDataCustomerDetails() + { + $card = $this->request->getCard(); + $data = $this->request->getData(); + + $this->assertSame($card->getFirstName(), $data['BillingFirstnames']); + $this->assertSame($card->getLastName(), $data['BillingSurname']); + $this->assertSame($card->getBillingAddress1(), $data['BillingAddress1']); + $this->assertSame($card->getBillingAddress2(), $data['BillingAddress2']); + $this->assertSame($card->getBillingCity(), $data['BillingCity']); + $this->assertSame($card->getBillingPostcode(), $data['BillingPostCode']); + $this->assertSame($card->getBillingState(), $data['BillingState']); + $this->assertSame($card->getBillingCountry(), $data['BillingCountry']); + $this->assertSame($card->getBillingPhone(), $data['BillingPhone']); + + $this->assertSame($card->getFirstName(), $data['DeliveryFirstnames']); + $this->assertSame($card->getLastName(), $data['DeliverySurname']); + $this->assertSame($card->getShippingAddress1(), $data['DeliveryAddress1']); + $this->assertSame($card->getShippingAddress2(), $data['DeliveryAddress2']); + $this->assertSame($card->getShippingCity(), $data['DeliveryCity']); + $this->assertSame($card->getShippingPostcode(), $data['DeliveryPostCode']); + $this->assertSame($card->getShippingState(), $data['DeliveryState']); + $this->assertSame($card->getShippingCountry(), $data['DeliveryCountry']); + $this->assertSame($card->getShippingPhone(), $data['DeliveryPhone']); + } + + public function testGetDataCustomerDetailsIgnoresStateOutsideUS() + { + $card = $this->request->getCard(); + $card->setBillingCountry('UK'); + $card->setShippingCountry('NZ'); + + $data = $this->request->getData(); + + $this->assertNull($data['BillingState']); + $this->assertNull($data['DeliveryState']); + } + public function testGetDataVisa() { $this->request->getCard()->setNumber('4929000000006'); diff --git a/tests/Omnipay/TestCase.php b/tests/Omnipay/TestCase.php index 9213cef0..c3260040 100644 --- a/tests/Omnipay/TestCase.php +++ b/tests/Omnipay/TestCase.php @@ -123,6 +123,20 @@ public function getValidCard() 'expiryMonth' => rand(1, 12), 'expiryYear' => date('Y') + rand(1, 5), 'cvv' => rand(100, 999), + 'billingAddress1' => '123 Billing St', + 'billingAddress2' => 'Billsville', + 'billingCity' => 'Billstown', + 'billingPostcode' => '12345', + 'billingState' => 'CA', + 'billingCountry' => 'US', + 'billingPhone' => '(555) 123-4567', + 'shippingAddress1' => '123 Shipping St', + 'shippingAddress2' => 'Shipsville', + 'shippingCity' => 'Shipstown', + 'shippingPostcode' => '54321', + 'shippingState' => 'NY', + 'shippingCountry' => 'US', + 'shippingPhone' => '(555) 987-6543', ); } From c9cf6cc8bca8ff1e9e42d5d853835d4b1ed0d975 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 5 Oct 2013 20:51:59 +1000 Subject: [PATCH 020/333] Add extra Auth.net AIM response fields. Closes #145 --- .../AuthorizeNet/Message/AIMResponse.php | 26 ++++++++++++++++--- .../AuthorizeNet/Message/AIMResponseTest.php | 24 +++++++++++++++++ 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/src/Omnipay/AuthorizeNet/Message/AIMResponse.php b/src/Omnipay/AuthorizeNet/Message/AIMResponse.php index a6c0e550..eebccb94 100644 --- a/src/Omnipay/AuthorizeNet/Message/AIMResponse.php +++ b/src/Omnipay/AuthorizeNet/Message/AIMResponse.php @@ -32,16 +32,36 @@ public function __construct(RequestInterface $request, $data) public function isSuccessful() { - return '1' === $this->data[0]; + return '1' === $this->getCode(); } - public function getTransactionReference() + public function getCode() { - return $this->data[6]; + return $this->data[0]; + } + + public function getReasonCode() + { + return $this->data[2]; } public function getMessage() { return $this->data[3]; } + + public function getAuthorizationCode() + { + return $this->data[4]; + } + + public function getAVSCode() + { + return $this->data[5]; + } + + public function getTransactionReference() + { + return $this->data[6]; + } } diff --git a/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php b/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php index 79d29db1..559a09e6 100644 --- a/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php +++ b/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php @@ -31,6 +31,10 @@ public function testAuthorizeSuccess() $this->assertTrue($response->isSuccessful()); $this->assertSame('2184493132', $response->getTransactionReference()); $this->assertSame('This transaction has been approved.', $response->getMessage()); + $this->assertSame('1', $response->getCode()); + $this->assertSame('1', $response->getReasonCode()); + $this->assertSame('GA4OQP', $response->getAuthorizationCode()); + $this->assertSame('Y', $response->getAVSCode()); } public function testAuthorizeFailure() @@ -41,6 +45,10 @@ public function testAuthorizeFailure() $this->assertFalse($response->isSuccessful()); $this->assertSame('0', $response->getTransactionReference()); $this->assertSame('A valid amount is required.', $response->getMessage()); + $this->assertSame('3', $response->getCode()); + $this->assertSame('5', $response->getReasonCode()); + $this->assertSame('', $response->getAuthorizationCode()); + $this->assertSame('P', $response->getAVSCode()); } public function testCaptureSuccess() @@ -51,6 +59,10 @@ public function testCaptureSuccess() $this->assertTrue($response->isSuccessful()); $this->assertSame('2184494531', $response->getTransactionReference()); $this->assertSame('This transaction has been approved.', $response->getMessage()); + $this->assertSame('1', $response->getCode()); + $this->assertSame('1', $response->getReasonCode()); + $this->assertSame('F51OYG', $response->getAuthorizationCode()); + $this->assertSame('P', $response->getAVSCode()); } public function testCaptureFailure() @@ -61,6 +73,10 @@ public function testCaptureFailure() $this->assertFalse($response->isSuccessful()); $this->assertSame('0', $response->getTransactionReference()); $this->assertSame('The transaction cannot be found.', $response->getMessage()); + $this->assertSame('3', $response->getCode()); + $this->assertSame('16', $response->getReasonCode()); + $this->assertSame('', $response->getAuthorizationCode()); + $this->assertSame('P', $response->getAVSCode()); } public function testPurchaseSuccess() @@ -71,6 +87,10 @@ public function testPurchaseSuccess() $this->assertTrue($response->isSuccessful()); $this->assertSame('2184492509', $response->getTransactionReference()); $this->assertSame('This transaction has been approved.', $response->getMessage()); + $this->assertSame('1', $response->getCode()); + $this->assertSame('1', $response->getReasonCode()); + $this->assertSame('JE6JM1', $response->getAuthorizationCode()); + $this->assertSame('Y', $response->getAVSCode()); } public function testPurchaseFailure() @@ -81,5 +101,9 @@ public function testPurchaseFailure() $this->assertFalse($response->isSuccessful()); $this->assertSame('0', $response->getTransactionReference()); $this->assertSame('A valid amount is required.', $response->getMessage()); + $this->assertSame('3', $response->getCode()); + $this->assertSame('5', $response->getReasonCode()); + $this->assertSame('', $response->getAuthorizationCode()); + $this->assertSame('P', $response->getAVSCode()); } } From 381d1abbd12a7fc8d70497f4735aa83fdf71ead3 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 6 Oct 2013 18:38:53 +1100 Subject: [PATCH 021/333] Drop license boilerplate --- example/index.php | 9 --------- src/Omnipay/AuthorizeNet/AIMGateway.php | 9 --------- src/Omnipay/AuthorizeNet/Message/AIMAuthorizeRequest.php | 9 --------- src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php | 9 --------- src/Omnipay/AuthorizeNet/Message/AIMResponse.php | 9 --------- src/Omnipay/AuthorizeNet/Message/AIMVoidRequest.php | 9 --------- src/Omnipay/AuthorizeNet/Message/AbstractRequest.php | 9 --------- src/Omnipay/AuthorizeNet/Message/CaptureRequest.php | 9 --------- src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php | 9 --------- .../AuthorizeNet/Message/SIMAuthorizeResponse.php | 9 --------- .../AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php | 9 --------- .../Message/SIMCompleteAuthorizeResponse.php | 9 --------- src/Omnipay/AuthorizeNet/Message/SIMPurchaseRequest.php | 9 --------- src/Omnipay/AuthorizeNet/SIMGateway.php | 9 --------- src/Omnipay/Buckaroo/Gateway.php | 9 --------- src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php | 9 --------- .../Buckaroo/Message/CompletePurchaseResponse.php | 9 --------- src/Omnipay/Buckaroo/Message/PurchaseRequest.php | 9 --------- src/Omnipay/Buckaroo/Message/PurchaseResponse.php | 9 --------- src/Omnipay/CardSave/Gateway.php | 9 --------- src/Omnipay/CardSave/Message/CompletePurchaseRequest.php | 9 --------- src/Omnipay/CardSave/Message/PurchaseRequest.php | 9 --------- src/Omnipay/CardSave/Message/Response.php | 9 --------- src/Omnipay/Common/AbstractGateway.php | 9 --------- src/Omnipay/Common/CreditCard.php | 9 --------- src/Omnipay/Common/Currency.php | 9 --------- src/Omnipay/Common/Exception/BadMethodCallException.php | 9 --------- .../Common/Exception/InvalidCreditCardException.php | 9 --------- src/Omnipay/Common/Exception/InvalidRequestException.php | 9 --------- .../Common/Exception/InvalidResponseException.php | 9 --------- src/Omnipay/Common/Exception/OmnipayException.php | 9 --------- src/Omnipay/Common/Exception/RuntimeException.php | 9 --------- src/Omnipay/Common/GatewayFactory.php | 9 --------- src/Omnipay/Common/GatewayInterface.php | 9 --------- src/Omnipay/Common/Helper.php | 9 --------- src/Omnipay/Common/Message/AbstractRequest.php | 9 --------- src/Omnipay/Common/Message/AbstractResponse.php | 9 --------- src/Omnipay/Common/Message/MessageInterface.php | 9 --------- src/Omnipay/Common/Message/RedirectResponseInterface.php | 9 --------- src/Omnipay/Common/Message/RequestInterface.php | 9 --------- src/Omnipay/Common/Message/ResponseInterface.php | 9 --------- src/Omnipay/Dummy/Gateway.php | 9 --------- src/Omnipay/Dummy/Message/AuthorizeRequest.php | 9 --------- src/Omnipay/Dummy/Message/Response.php | 9 --------- .../Eway/Message/RapidCompletePurchaseRequest.php | 9 --------- src/Omnipay/Eway/Message/RapidPurchaseRequest.php | 9 --------- src/Omnipay/Eway/Message/RapidResponse.php | 9 --------- src/Omnipay/Eway/RapidGateway.php | 9 --------- src/Omnipay/GoCardless/Gateway.php | 9 --------- src/Omnipay/GoCardless/Message/AbstractRequest.php | 9 --------- .../GoCardless/Message/CompletePurchaseRequest.php | 9 --------- .../GoCardless/Message/CompletePurchaseResponse.php | 9 --------- src/Omnipay/GoCardless/Message/PurchaseRequest.php | 9 --------- src/Omnipay/GoCardless/Message/PurchaseResponse.php | 9 --------- src/Omnipay/Manual/Gateway.php | 9 --------- src/Omnipay/Manual/Message/Request.php | 9 --------- src/Omnipay/Manual/Message/Response.php | 9 --------- src/Omnipay/Migs/Message/AbstractRequest.php | 9 --------- src/Omnipay/Migs/Message/Response.php | 9 --------- .../Migs/Message/ThreePartyCompletePurchaseRequest.php | 9 --------- src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php | 9 --------- src/Omnipay/Migs/Message/ThreePartyPurchaseResponse.php | 9 --------- src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php | 9 --------- src/Omnipay/Migs/ThreePartyGateway.php | 9 --------- src/Omnipay/Migs/TwoPartyGateway.php | 9 --------- src/Omnipay/Mollie/Gateway.php | 9 --------- src/Omnipay/Mollie/Message/AbstractRequest.php | 9 --------- src/Omnipay/Mollie/Message/CompletePurchaseRequest.php | 9 --------- src/Omnipay/Mollie/Message/FetchIssuersRequest.php | 9 --------- src/Omnipay/Mollie/Message/PurchaseRequest.php | 9 --------- src/Omnipay/Mollie/Message/Response.php | 9 --------- src/Omnipay/MultiSafepay/Gateway.php | 9 --------- src/Omnipay/MultiSafepay/Message/AbstractRequest.php | 9 --------- src/Omnipay/MultiSafepay/Message/AbstractResponse.php | 9 --------- .../MultiSafepay/Message/CompletePurchaseRequest.php | 9 --------- .../MultiSafepay/Message/CompletePurchaseResponse.php | 9 --------- src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php | 9 --------- .../MultiSafepay/Message/FetchIssuersResponse.php | 9 --------- .../MultiSafepay/Message/FetchPaymentMethodsRequest.php | 9 --------- .../MultiSafepay/Message/FetchPaymentMethodsResponse.php | 9 --------- src/Omnipay/MultiSafepay/Message/PurchaseRequest.php | 9 --------- src/Omnipay/MultiSafepay/Message/PurchaseResponse.php | 9 --------- src/Omnipay/NetBanx/Gateway.php | 9 --------- src/Omnipay/NetBanx/Message/AbstractRequest.php | 9 --------- src/Omnipay/NetBanx/Message/AuthorizeRequest.php | 9 --------- src/Omnipay/NetBanx/Message/CaptureRequest.php | 9 --------- src/Omnipay/NetBanx/Message/PurchaseRequest.php | 9 --------- src/Omnipay/NetBanx/Message/Response.php | 9 --------- src/Omnipay/NetBanx/Message/VoidRequest.php | 9 --------- src/Omnipay/Netaxept/Gateway.php | 9 --------- src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php | 9 --------- src/Omnipay/Netaxept/Message/ErrorResponse.php | 9 --------- src/Omnipay/Netaxept/Message/PurchaseRequest.php | 9 --------- src/Omnipay/Netaxept/Message/Response.php | 9 --------- src/Omnipay/PayFast/Gateway.php | 9 --------- .../PayFast/Message/CompletePurchaseItnResponse.php | 9 --------- .../PayFast/Message/CompletePurchasePdtResponse.php | 9 --------- src/Omnipay/PayFast/Message/CompletePurchaseRequest.php | 9 --------- src/Omnipay/PayFast/Message/PurchaseRequest.php | 9 --------- src/Omnipay/PayFast/Message/PurchaseResponse.php | 9 --------- src/Omnipay/PayPal/ExpressGateway.php | 9 --------- src/Omnipay/PayPal/Message/AbstractRequest.php | 9 --------- src/Omnipay/PayPal/Message/CaptureRequest.php | 9 --------- src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php | 9 --------- src/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php | 9 --------- .../PayPal/Message/ExpressCompleteAuthorizeRequest.php | 9 --------- .../PayPal/Message/ExpressCompletePurchaseRequest.php | 9 --------- src/Omnipay/PayPal/Message/ProAuthorizeRequest.php | 9 --------- src/Omnipay/PayPal/Message/ProPurchaseRequest.php | 9 --------- src/Omnipay/PayPal/Message/RefundRequest.php | 9 --------- src/Omnipay/PayPal/Message/Response.php | 9 --------- src/Omnipay/PayPal/ProGateway.php | 9 --------- src/Omnipay/Payflow/Message/AuthorizeRequest.php | 9 --------- src/Omnipay/Payflow/Message/CaptureRequest.php | 9 --------- src/Omnipay/Payflow/Message/PurchaseRequest.php | 9 --------- src/Omnipay/Payflow/Message/RefundRequest.php | 9 --------- src/Omnipay/Payflow/Message/Response.php | 9 --------- src/Omnipay/Payflow/ProGateway.php | 9 --------- .../PaymentExpress/Message/PxPayAuthorizeRequest.php | 9 --------- .../PaymentExpress/Message/PxPayAuthorizeResponse.php | 9 --------- .../Message/PxPayCompleteAuthorizeRequest.php | 9 --------- .../PaymentExpress/Message/PxPayPurchaseRequest.php | 9 --------- .../PaymentExpress/Message/PxPostAuthorizeRequest.php | 9 --------- .../PaymentExpress/Message/PxPostCaptureRequest.php | 9 --------- .../PaymentExpress/Message/PxPostCreateCardRequest.php | 9 --------- .../PaymentExpress/Message/PxPostPurchaseRequest.php | 9 --------- .../PaymentExpress/Message/PxPostRefundRequest.php | 9 --------- src/Omnipay/PaymentExpress/Message/Response.php | 9 --------- src/Omnipay/PaymentExpress/PxPayGateway.php | 9 --------- src/Omnipay/PaymentExpress/PxPostGateway.php | 9 --------- src/Omnipay/Pin/Gateway.php | 9 --------- src/Omnipay/Pin/Message/PurchaseRequest.php | 9 --------- src/Omnipay/Pin/Message/Response.php | 9 --------- src/Omnipay/SagePay/DirectGateway.php | 9 --------- src/Omnipay/SagePay/Message/AbstractRequest.php | 9 --------- src/Omnipay/SagePay/Message/CaptureRequest.php | 9 --------- src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php | 9 --------- .../SagePay/Message/DirectCompleteAuthorizeRequest.php | 9 --------- src/Omnipay/SagePay/Message/DirectPurchaseRequest.php | 9 --------- src/Omnipay/SagePay/Message/RefundRequest.php | 9 --------- src/Omnipay/SagePay/Message/Response.php | 9 --------- src/Omnipay/SagePay/Message/ServerAuthorizeRequest.php | 9 --------- src/Omnipay/SagePay/Message/ServerAuthorizeResponse.php | 9 --------- .../SagePay/Message/ServerCompleteAuthorizeRequest.php | 9 --------- .../SagePay/Message/ServerCompleteAuthorizeResponse.php | 9 --------- src/Omnipay/SagePay/Message/ServerPurchaseRequest.php | 9 --------- src/Omnipay/SagePay/ServerGateway.php | 9 --------- src/Omnipay/SecurePay/DirectPostGateway.php | 9 --------- .../SecurePay/Message/DirectPostAbstractRequest.php | 9 --------- .../SecurePay/Message/DirectPostAuthorizeRequest.php | 9 --------- .../SecurePay/Message/DirectPostAuthorizeResponse.php | 9 --------- .../Message/DirectPostCompletePurchaseRequest.php | 9 --------- .../Message/DirectPostCompletePurchaseResponse.php | 9 --------- .../SecurePay/Message/DirectPostPurchaseRequest.php | 9 --------- src/Omnipay/Stripe/Gateway.php | 9 --------- src/Omnipay/Stripe/Message/AbstractRequest.php | 9 --------- src/Omnipay/Stripe/Message/AuthorizeRequest.php | 9 --------- src/Omnipay/Stripe/Message/CaptureRequest.php | 9 --------- src/Omnipay/Stripe/Message/CreateCardRequest.php | 9 --------- src/Omnipay/Stripe/Message/DeleteCardRequest.php | 9 --------- src/Omnipay/Stripe/Message/FetchTransactionRequest.php | 9 --------- src/Omnipay/Stripe/Message/PurchaseRequest.php | 9 --------- src/Omnipay/Stripe/Message/RefundRequest.php | 9 --------- src/Omnipay/Stripe/Message/Response.php | 9 --------- src/Omnipay/Stripe/Message/UpdateCardRequest.php | 9 --------- src/Omnipay/TargetPay/AbstractGateway.php | 9 --------- src/Omnipay/TargetPay/DirectebankingGateway.php | 9 --------- src/Omnipay/TargetPay/IdealGateway.php | 9 --------- src/Omnipay/TargetPay/Message/AbstractRequest.php | 9 --------- src/Omnipay/TargetPay/Message/AbstractResponse.php | 9 --------- .../TargetPay/Message/CompletePurchaseRequest.php | 9 --------- .../TargetPay/Message/CompletePurchaseResponse.php | 9 --------- .../Message/DirectebankingCompletePurchaseRequest.php | 9 --------- .../TargetPay/Message/DirectebankingPurchaseRequest.php | 9 --------- src/Omnipay/TargetPay/Message/FetchIssuersRequest.php | 9 --------- src/Omnipay/TargetPay/Message/FetchIssuersResponse.php | 9 --------- .../TargetPay/Message/IdealCompletePurchaseRequest.php | 9 --------- src/Omnipay/TargetPay/Message/IdealPurchaseRequest.php | 9 --------- .../TargetPay/Message/MrcashCompletePurchaseRequest.php | 9 --------- src/Omnipay/TargetPay/Message/MrcashPurchaseRequest.php | 9 --------- src/Omnipay/TargetPay/Message/PurchaseRequest.php | 9 --------- src/Omnipay/TargetPay/Message/PurchaseResponse.php | 9 --------- src/Omnipay/TargetPay/MrcashGateway.php | 9 --------- src/Omnipay/TwoCheckout/Gateway.php | 9 --------- .../TwoCheckout/Message/CompletePurchaseRequest.php | 9 --------- .../TwoCheckout/Message/CompletePurchaseResponse.php | 9 --------- src/Omnipay/TwoCheckout/Message/PurchaseRequest.php | 9 --------- src/Omnipay/TwoCheckout/Message/PurchaseResponse.php | 9 --------- src/Omnipay/WorldPay/Gateway.php | 9 --------- src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php | 9 --------- .../WorldPay/Message/CompletePurchaseResponse.php | 9 --------- src/Omnipay/WorldPay/Message/PurchaseRequest.php | 9 --------- src/Omnipay/WorldPay/Message/PurchaseResponse.php | 9 --------- tests/Omnipay/AuthorizeNet/AIMGatewayTest.php | 9 --------- tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php | 9 --------- .../Message/SIMCompleteAuthorizeRequestTest.php | 9 --------- .../Message/SIMCompleteAuthorizeResponseTest.php | 9 --------- tests/Omnipay/AuthorizeNet/SIMGatewayTest.php | 9 --------- tests/Omnipay/Buckaroo/GatewayTest.php | 9 --------- .../Buckaroo/Message/CompletePurchaseRequestTest.php | 9 --------- tests/Omnipay/Buckaroo/Message/PurchaseRequestTest.php | 9 --------- tests/Omnipay/CardSave/GatewayTest.php | 9 --------- tests/Omnipay/CardSave/Message/ResponseTest.php | 9 --------- tests/Omnipay/Common/AbstractGatewayTest.php | 9 --------- tests/Omnipay/Common/CreditCardTest.php | 9 --------- tests/Omnipay/Common/CurrencyTest.php | 9 --------- tests/Omnipay/Common/GatewayFactoryTest.php | 9 --------- tests/Omnipay/Common/HelperTest.php | 9 --------- tests/Omnipay/Common/Message/AbstractRequestTest.php | 9 --------- tests/Omnipay/Common/Message/AbstractResponseTest.php | 9 --------- tests/Omnipay/Dummy/GatewayTest.php | 9 --------- tests/Omnipay/Dummy/Message/AuthorizeRequestTest.php | 9 --------- tests/Omnipay/Dummy/Message/ResponseTest.php | 9 --------- .../Eway/Message/RapidCompletePurchaseRequestTest.php | 9 --------- tests/Omnipay/Eway/Message/RapidPurchaseRequestTest.php | 9 --------- tests/Omnipay/Eway/RapidGatewayTest.php | 9 --------- tests/Omnipay/GatewayTestCase.php | 9 --------- tests/Omnipay/GoCardless/GatewayTest.php | 9 --------- .../GoCardless/Message/CompletePurchaseResponseTest.php | 9 --------- tests/Omnipay/Manual/GatewayTest.php | 9 --------- .../Message/ThreePartyCompletePurchaseRequestTest.php | 9 --------- .../Migs/Message/ThreePartyPurchaseRequestTest.php | 9 --------- .../Migs/Message/ThreePartyPurchaseResponseTest.php | 9 --------- .../Omnipay/Migs/Message/TwoPartyPurchaseRequestTest.php | 9 --------- .../Migs/Message/TwoPartyPurchaseResponseTest.php | 9 --------- tests/Omnipay/Migs/ThreePartyGatewayTest.php | 9 --------- tests/Omnipay/Migs/TwoPartyGatewayTest.php | 9 --------- tests/Omnipay/Mollie/GatewayTest.php | 9 --------- .../Mollie/Message/CompletePurchaseRequestTest.php | 9 --------- tests/Omnipay/Mollie/Message/FetchIssuersRequestTest.php | 9 --------- tests/Omnipay/Mollie/Message/PurchaseRequestTest.php | 9 --------- tests/Omnipay/MultiSafepay/GatewayTest.php | 9 --------- .../Omnipay/MultiSafepay/Message/AbstractRequestTest.php | 9 --------- .../MultiSafepay/Message/CompletePurchaseRequestTest.php | 9 --------- .../MultiSafepay/Message/FetchIssuersRequestTest.php | 9 --------- .../Message/FetchPaymentMethodsRequestTest.php | 9 --------- .../Omnipay/MultiSafepay/Message/PurchaseRequestTest.php | 9 --------- tests/Omnipay/Netaxept/GatewayTest.php | 9 --------- tests/Omnipay/Netaxept/Message/ResponseTest.php | 9 --------- tests/Omnipay/PayFast/GatewayTest.php | 9 --------- .../PayFast/Message/CompletePurchaseRequestTest.php | 9 --------- tests/Omnipay/PayFast/Message/PurchaseRequestTest.php | 9 --------- tests/Omnipay/PayFast/Message/PurchaseResponseTest.php | 9 --------- tests/Omnipay/PayPal/ExpressGatewayTest.php | 9 --------- .../PayPal/Message/ExpressAuthorizeRequestTest.php | 9 --------- .../PayPal/Message/ExpressAuthorizeResponseTest.php | 9 --------- tests/Omnipay/PayPal/Message/ResponseTest.php | 9 --------- tests/Omnipay/PayPal/ProGatewayTest.php | 9 --------- tests/Omnipay/Payflow/Message/ResponseTest.php | 9 --------- tests/Omnipay/Payflow/ProGatewayTest.php | 9 --------- .../Message/PxPayAuthorizeResponseTest.php | 9 --------- tests/Omnipay/PaymentExpress/Message/ResponseTest.php | 9 --------- tests/Omnipay/PaymentExpress/PxPayGatewayTest.php | 9 --------- tests/Omnipay/PaymentExpress/PxPostGatewayTest.php | 9 --------- tests/Omnipay/Pin/GatewayTest.php | 9 --------- tests/Omnipay/Pin/Message/ResponseTest.php | 9 --------- tests/Omnipay/SagePay/DirectGatewayTest.php | 9 --------- .../SagePay/Message/DirectAuthorizeRequestTest.php | 9 --------- tests/Omnipay/SagePay/Message/RefundRequestTest.php | 9 --------- tests/Omnipay/SagePay/Message/ResponseTest.php | 9 --------- .../SagePay/Message/ServerAuthorizeResponseTest.php | 9 --------- .../Message/ServerCompleteAuthorizeResponseTest.php | 9 --------- tests/Omnipay/SagePay/ServerGatewayTest.php | 9 --------- tests/Omnipay/SecurePay/DirectPostGatewayTest.php | 9 --------- .../SecurePay/Message/DirectPostAuthorizeRequestTest.php | 9 --------- .../Message/DirectPostCompletePurchaseRequestTest.php | 9 --------- .../SecurePay/Message/DirectPostPurchaseRequestTest.php | 9 --------- tests/Omnipay/Stripe/GatewayTest.php | 9 --------- tests/Omnipay/Stripe/Message/AuthorizeRequestTest.php | 9 --------- tests/Omnipay/Stripe/Message/CaptureRequestTest.php | 9 --------- tests/Omnipay/Stripe/Message/CreateCardRequestTest.php | 9 --------- tests/Omnipay/Stripe/Message/DeleteCardRequestTest.php | 9 --------- tests/Omnipay/Stripe/Message/FetchTransactionTest.php | 9 --------- tests/Omnipay/Stripe/Message/PurchaseRequestTest.php | 9 --------- tests/Omnipay/Stripe/Message/RefundRequestTest.php | 9 --------- tests/Omnipay/Stripe/Message/ResponseTest.php | 9 --------- tests/Omnipay/Stripe/Message/UpdateCardRequestTest.php | 9 --------- tests/Omnipay/TargetPay/DirectebankingGatewayTest.php | 9 --------- tests/Omnipay/TargetPay/IdealGatewayTest.php | 9 --------- .../TargetPay/Message/CompletePurchaseRequestTest.php | 9 --------- .../DirectebankingCompletePurchaseRequestTest.php | 9 --------- .../Message/DirectebankingPurchaseRequestTest.php | 9 --------- .../TargetPay/Message/FetchIssuersRequestTest.php | 9 --------- .../Message/IdealCompletePurchaseRequestTest.php | 9 --------- .../TargetPay/Message/IdealPurchaseRequestTest.php | 9 --------- .../Message/MrcashCompletePurchaseRequestTest.php | 9 --------- .../TargetPay/Message/MrcashPurchaseRequestTest.php | 9 --------- tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php | 9 --------- tests/Omnipay/TargetPay/MrcashGatewayTest.php | 9 --------- tests/Omnipay/TestCase.php | 9 --------- tests/Omnipay/TwoCheckout/GatewayTest.php | 9 --------- .../TwoCheckout/Message/CompletePurchaseResponseTest.php | 9 --------- .../Omnipay/TwoCheckout/Message/PurchaseResponseTest.php | 9 --------- tests/Omnipay/WorldPay/GatewayTest.php | 9 --------- .../WorldPay/Message/CompletePurchaseResponseTest.php | 9 --------- tests/Omnipay/WorldPay/Message/PurchaseResponseTest.php | 9 --------- 296 files changed, 2664 deletions(-) diff --git a/example/index.php b/example/index.php index 81af49b5..88fa17c7 100644 --- a/example/index.php +++ b/example/index.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - require __DIR__.'/../vendor/autoload.php'; // create basic Silex application diff --git a/src/Omnipay/AuthorizeNet/AIMGateway.php b/src/Omnipay/AuthorizeNet/AIMGateway.php index ea85bfec..990c5928 100644 --- a/src/Omnipay/AuthorizeNet/AIMGateway.php +++ b/src/Omnipay/AuthorizeNet/AIMGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet; use Omnipay\AuthorizeNet\Message\AIMAuthorizeRequest; diff --git a/src/Omnipay/AuthorizeNet/Message/AIMAuthorizeRequest.php b/src/Omnipay/AuthorizeNet/Message/AIMAuthorizeRequest.php index effa8694..7e58c4d4 100644 --- a/src/Omnipay/AuthorizeNet/Message/AIMAuthorizeRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/AIMAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; /** diff --git a/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php b/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php index ded94de8..d663c37f 100644 --- a/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; /** diff --git a/src/Omnipay/AuthorizeNet/Message/AIMResponse.php b/src/Omnipay/AuthorizeNet/Message/AIMResponse.php index eebccb94..9fa0907e 100644 --- a/src/Omnipay/AuthorizeNet/Message/AIMResponse.php +++ b/src/Omnipay/AuthorizeNet/Message/AIMResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/AuthorizeNet/Message/AIMVoidRequest.php b/src/Omnipay/AuthorizeNet/Message/AIMVoidRequest.php index 47bcd708..857dfdbd 100644 --- a/src/Omnipay/AuthorizeNet/Message/AIMVoidRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/AIMVoidRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; /** diff --git a/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php b/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php index 684cbccd..4ec5fd12 100644 --- a/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; /** diff --git a/src/Omnipay/AuthorizeNet/Message/CaptureRequest.php b/src/Omnipay/AuthorizeNet/Message/CaptureRequest.php index 1e380420..096818cb 100644 --- a/src/Omnipay/AuthorizeNet/Message/CaptureRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/CaptureRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; /** diff --git a/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php b/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php index 2d049e66..4ccbcd69 100644 --- a/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; /** diff --git a/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeResponse.php b/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeResponse.php index cfed5df0..4b2ff264 100644 --- a/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeResponse.php +++ b/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php b/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php index 56232b05..164c155a 100644 --- a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; use Omnipay\Common\Exception\InvalidRequestException; diff --git a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponse.php b/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponse.php index a5cf26ab..1157121d 100644 --- a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponse.php +++ b/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/AuthorizeNet/Message/SIMPurchaseRequest.php b/src/Omnipay/AuthorizeNet/Message/SIMPurchaseRequest.php index eb5e1935..2c6dd4c0 100644 --- a/src/Omnipay/AuthorizeNet/Message/SIMPurchaseRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/SIMPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; /** diff --git a/src/Omnipay/AuthorizeNet/SIMGateway.php b/src/Omnipay/AuthorizeNet/SIMGateway.php index bf167029..3bd6b123 100644 --- a/src/Omnipay/AuthorizeNet/SIMGateway.php +++ b/src/Omnipay/AuthorizeNet/SIMGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet; use Omnipay\AuthorizeNet\Message\SIMAuthorizeRequest; diff --git a/src/Omnipay/Buckaroo/Gateway.php b/src/Omnipay/Buckaroo/Gateway.php index 194ef770..8d5ba1fe 100644 --- a/src/Omnipay/Buckaroo/Gateway.php +++ b/src/Omnipay/Buckaroo/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Buckaroo; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php b/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php index 46b5a25e..7edf5024 100644 --- a/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Buckaroo\Message; use Omnipay\Common\Exception\InvalidRequestException; diff --git a/src/Omnipay/Buckaroo/Message/CompletePurchaseResponse.php b/src/Omnipay/Buckaroo/Message/CompletePurchaseResponse.php index 4ca539f0..e2cc39ef 100644 --- a/src/Omnipay/Buckaroo/Message/CompletePurchaseResponse.php +++ b/src/Omnipay/Buckaroo/Message/CompletePurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Buckaroo\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/Buckaroo/Message/PurchaseRequest.php b/src/Omnipay/Buckaroo/Message/PurchaseRequest.php index d97c9caf..eff7afd4 100644 --- a/src/Omnipay/Buckaroo/Message/PurchaseRequest.php +++ b/src/Omnipay/Buckaroo/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Buckaroo\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/Buckaroo/Message/PurchaseResponse.php b/src/Omnipay/Buckaroo/Message/PurchaseResponse.php index e5edb87d..470747c7 100644 --- a/src/Omnipay/Buckaroo/Message/PurchaseResponse.php +++ b/src/Omnipay/Buckaroo/Message/PurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Buckaroo\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/CardSave/Gateway.php b/src/Omnipay/CardSave/Gateway.php index 82772e2c..8fbfc502 100644 --- a/src/Omnipay/CardSave/Gateway.php +++ b/src/Omnipay/CardSave/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\CardSave; use Omnipay\CardSave\Message\CompletePurchaseRequest; diff --git a/src/Omnipay/CardSave/Message/CompletePurchaseRequest.php b/src/Omnipay/CardSave/Message/CompletePurchaseRequest.php index 3292cef8..9a80601d 100644 --- a/src/Omnipay/CardSave/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/CardSave/Message/CompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\CardSave\Message; use SimpleXMLElement; diff --git a/src/Omnipay/CardSave/Message/PurchaseRequest.php b/src/Omnipay/CardSave/Message/PurchaseRequest.php index 89affe3e..537aa0f0 100644 --- a/src/Omnipay/CardSave/Message/PurchaseRequest.php +++ b/src/Omnipay/CardSave/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\CardSave\Message; use DOMDocument; diff --git a/src/Omnipay/CardSave/Message/Response.php b/src/Omnipay/CardSave/Message/Response.php index 274c060b..d56363c7 100644 --- a/src/Omnipay/CardSave/Message/Response.php +++ b/src/Omnipay/CardSave/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\CardSave\Message; use DOMDocument; diff --git a/src/Omnipay/Common/AbstractGateway.php b/src/Omnipay/Common/AbstractGateway.php index 161ef4e9..e30228fb 100644 --- a/src/Omnipay/Common/AbstractGateway.php +++ b/src/Omnipay/Common/AbstractGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; use Guzzle\Http\ClientInterface; diff --git a/src/Omnipay/Common/CreditCard.php b/src/Omnipay/Common/CreditCard.php index 4e26c3e0..27e2088f 100644 --- a/src/Omnipay/Common/CreditCard.php +++ b/src/Omnipay/Common/CreditCard.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; use Omnipay\Common\Exception\InvalidCreditCardException; diff --git a/src/Omnipay/Common/Currency.php b/src/Omnipay/Common/Currency.php index 6e2e4113..b0dbe986 100644 --- a/src/Omnipay/Common/Currency.php +++ b/src/Omnipay/Common/Currency.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; /** diff --git a/src/Omnipay/Common/Exception/BadMethodCallException.php b/src/Omnipay/Common/Exception/BadMethodCallException.php index 1dbca6d7..2396e697 100644 --- a/src/Omnipay/Common/Exception/BadMethodCallException.php +++ b/src/Omnipay/Common/Exception/BadMethodCallException.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Exception; /** diff --git a/src/Omnipay/Common/Exception/InvalidCreditCardException.php b/src/Omnipay/Common/Exception/InvalidCreditCardException.php index 836243a5..2e7f93a7 100644 --- a/src/Omnipay/Common/Exception/InvalidCreditCardException.php +++ b/src/Omnipay/Common/Exception/InvalidCreditCardException.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Exception; /** diff --git a/src/Omnipay/Common/Exception/InvalidRequestException.php b/src/Omnipay/Common/Exception/InvalidRequestException.php index 9e9aa5e9..1953c629 100644 --- a/src/Omnipay/Common/Exception/InvalidRequestException.php +++ b/src/Omnipay/Common/Exception/InvalidRequestException.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Exception; /** diff --git a/src/Omnipay/Common/Exception/InvalidResponseException.php b/src/Omnipay/Common/Exception/InvalidResponseException.php index 2216e55b..6737904e 100644 --- a/src/Omnipay/Common/Exception/InvalidResponseException.php +++ b/src/Omnipay/Common/Exception/InvalidResponseException.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Exception; /** diff --git a/src/Omnipay/Common/Exception/OmnipayException.php b/src/Omnipay/Common/Exception/OmnipayException.php index 4da47864..95870e04 100644 --- a/src/Omnipay/Common/Exception/OmnipayException.php +++ b/src/Omnipay/Common/Exception/OmnipayException.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Exception; /** diff --git a/src/Omnipay/Common/Exception/RuntimeException.php b/src/Omnipay/Common/Exception/RuntimeException.php index df204035..4f941d84 100644 --- a/src/Omnipay/Common/Exception/RuntimeException.php +++ b/src/Omnipay/Common/Exception/RuntimeException.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Exception; /** diff --git a/src/Omnipay/Common/GatewayFactory.php b/src/Omnipay/Common/GatewayFactory.php index 21189799..8f95201d 100644 --- a/src/Omnipay/Common/GatewayFactory.php +++ b/src/Omnipay/Common/GatewayFactory.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; use RecursiveDirectoryIterator; diff --git a/src/Omnipay/Common/GatewayInterface.php b/src/Omnipay/Common/GatewayInterface.php index b6fc4395..87bed4b2 100644 --- a/src/Omnipay/Common/GatewayInterface.php +++ b/src/Omnipay/Common/GatewayInterface.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; /** diff --git a/src/Omnipay/Common/Helper.php b/src/Omnipay/Common/Helper.php index 6039411c..634902ab 100644 --- a/src/Omnipay/Common/Helper.php +++ b/src/Omnipay/Common/Helper.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; /** diff --git a/src/Omnipay/Common/Message/AbstractRequest.php b/src/Omnipay/Common/Message/AbstractRequest.php index 4b5ea026..d44b6c34 100644 --- a/src/Omnipay/Common/Message/AbstractRequest.php +++ b/src/Omnipay/Common/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Message; use Guzzle\Http\ClientInterface; diff --git a/src/Omnipay/Common/Message/AbstractResponse.php b/src/Omnipay/Common/Message/AbstractResponse.php index 8ec97300..7f0105f9 100644 --- a/src/Omnipay/Common/Message/AbstractResponse.php +++ b/src/Omnipay/Common/Message/AbstractResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Message; use Omnipay\Common\Exception\RuntimeException; diff --git a/src/Omnipay/Common/Message/MessageInterface.php b/src/Omnipay/Common/Message/MessageInterface.php index 557b52ee..cc3cbd14 100644 --- a/src/Omnipay/Common/Message/MessageInterface.php +++ b/src/Omnipay/Common/Message/MessageInterface.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Message; /** diff --git a/src/Omnipay/Common/Message/RedirectResponseInterface.php b/src/Omnipay/Common/Message/RedirectResponseInterface.php index 1ae3885f..f12f4e03 100644 --- a/src/Omnipay/Common/Message/RedirectResponseInterface.php +++ b/src/Omnipay/Common/Message/RedirectResponseInterface.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Message; /** diff --git a/src/Omnipay/Common/Message/RequestInterface.php b/src/Omnipay/Common/Message/RequestInterface.php index 5f092bd5..348b39ca 100644 --- a/src/Omnipay/Common/Message/RequestInterface.php +++ b/src/Omnipay/Common/Message/RequestInterface.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Message; /** diff --git a/src/Omnipay/Common/Message/ResponseInterface.php b/src/Omnipay/Common/Message/ResponseInterface.php index 02ebdc9c..495ed183 100644 --- a/src/Omnipay/Common/Message/ResponseInterface.php +++ b/src/Omnipay/Common/Message/ResponseInterface.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Message; /** diff --git a/src/Omnipay/Dummy/Gateway.php b/src/Omnipay/Dummy/Gateway.php index 16e4a7ab..734fe5f3 100644 --- a/src/Omnipay/Dummy/Gateway.php +++ b/src/Omnipay/Dummy/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Dummy; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/Dummy/Message/AuthorizeRequest.php b/src/Omnipay/Dummy/Message/AuthorizeRequest.php index fd8793aa..64831272 100644 --- a/src/Omnipay/Dummy/Message/AuthorizeRequest.php +++ b/src/Omnipay/Dummy/Message/AuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Dummy\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/Dummy/Message/Response.php b/src/Omnipay/Dummy/Message/Response.php index aa8d65ba..bdd6fd6e 100644 --- a/src/Omnipay/Dummy/Message/Response.php +++ b/src/Omnipay/Dummy/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Dummy\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/Eway/Message/RapidCompletePurchaseRequest.php b/src/Omnipay/Eway/Message/RapidCompletePurchaseRequest.php index cb47b020..2f5a5190 100644 --- a/src/Omnipay/Eway/Message/RapidCompletePurchaseRequest.php +++ b/src/Omnipay/Eway/Message/RapidCompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Eway\Message; /** diff --git a/src/Omnipay/Eway/Message/RapidPurchaseRequest.php b/src/Omnipay/Eway/Message/RapidPurchaseRequest.php index 5459ca33..f97d0adb 100644 --- a/src/Omnipay/Eway/Message/RapidPurchaseRequest.php +++ b/src/Omnipay/Eway/Message/RapidPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Eway\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/Eway/Message/RapidResponse.php b/src/Omnipay/Eway/Message/RapidResponse.php index 9871aed8..2d96e70b 100644 --- a/src/Omnipay/Eway/Message/RapidResponse.php +++ b/src/Omnipay/Eway/Message/RapidResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Eway\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/Eway/RapidGateway.php b/src/Omnipay/Eway/RapidGateway.php index 5c7b3440..c917254e 100644 --- a/src/Omnipay/Eway/RapidGateway.php +++ b/src/Omnipay/Eway/RapidGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Eway; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/GoCardless/Gateway.php b/src/Omnipay/GoCardless/Gateway.php index 30868033..4f6b24f4 100644 --- a/src/Omnipay/GoCardless/Gateway.php +++ b/src/Omnipay/GoCardless/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\GoCardless; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/GoCardless/Message/AbstractRequest.php b/src/Omnipay/GoCardless/Message/AbstractRequest.php index d0b08998..42ddf935 100644 --- a/src/Omnipay/GoCardless/Message/AbstractRequest.php +++ b/src/Omnipay/GoCardless/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\GoCardless\Message; use Omnipay\GoCardless\Gateway; diff --git a/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php b/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php index bc7619ad..23e2b492 100644 --- a/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\GoCardless\Message; use Omnipay\Common\Exception\InvalidResponseException; diff --git a/src/Omnipay/GoCardless/Message/CompletePurchaseResponse.php b/src/Omnipay/GoCardless/Message/CompletePurchaseResponse.php index c1cb32da..03f9b742 100644 --- a/src/Omnipay/GoCardless/Message/CompletePurchaseResponse.php +++ b/src/Omnipay/GoCardless/Message/CompletePurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\GoCardless\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/GoCardless/Message/PurchaseRequest.php b/src/Omnipay/GoCardless/Message/PurchaseRequest.php index 21754f14..6a1eb5b1 100644 --- a/src/Omnipay/GoCardless/Message/PurchaseRequest.php +++ b/src/Omnipay/GoCardless/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\GoCardless\Message; /** diff --git a/src/Omnipay/GoCardless/Message/PurchaseResponse.php b/src/Omnipay/GoCardless/Message/PurchaseResponse.php index c1c8f646..0b3f89f0 100644 --- a/src/Omnipay/GoCardless/Message/PurchaseResponse.php +++ b/src/Omnipay/GoCardless/Message/PurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\GoCardless\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/Manual/Gateway.php b/src/Omnipay/Manual/Gateway.php index 9406ae9c..0db709d3 100644 --- a/src/Omnipay/Manual/Gateway.php +++ b/src/Omnipay/Manual/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Manual; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/Manual/Message/Request.php b/src/Omnipay/Manual/Message/Request.php index 781d5346..42e7759c 100644 --- a/src/Omnipay/Manual/Message/Request.php +++ b/src/Omnipay/Manual/Message/Request.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Manual\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/Manual/Message/Response.php b/src/Omnipay/Manual/Message/Response.php index f17f311b..ad6973c1 100644 --- a/src/Omnipay/Manual/Message/Response.php +++ b/src/Omnipay/Manual/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Manual\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/Migs/Message/AbstractRequest.php b/src/Omnipay/Migs/Message/AbstractRequest.php index bd850473..79e985ff 100644 --- a/src/Omnipay/Migs/Message/AbstractRequest.php +++ b/src/Omnipay/Migs/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; /** diff --git a/src/Omnipay/Migs/Message/Response.php b/src/Omnipay/Migs/Message/Response.php index ba16347c..10431f71 100644 --- a/src/Omnipay/Migs/Message/Response.php +++ b/src/Omnipay/Migs/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php b/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php index 49cd8316..313e40d0 100644 --- a/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php +++ b/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; use Omnipay\Common\Exception\InvalidRequestException; diff --git a/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php b/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php index e2e66177..0d6d9730 100644 --- a/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php +++ b/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; /** diff --git a/src/Omnipay/Migs/Message/ThreePartyPurchaseResponse.php b/src/Omnipay/Migs/Message/ThreePartyPurchaseResponse.php index dbfe7f90..1c4f02d2 100644 --- a/src/Omnipay/Migs/Message/ThreePartyPurchaseResponse.php +++ b/src/Omnipay/Migs/Message/ThreePartyPurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php b/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php index ee5898a6..086d268d 100644 --- a/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php +++ b/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; /** diff --git a/src/Omnipay/Migs/ThreePartyGateway.php b/src/Omnipay/Migs/ThreePartyGateway.php index 7a8b0a08..7bccae79 100644 --- a/src/Omnipay/Migs/ThreePartyGateway.php +++ b/src/Omnipay/Migs/ThreePartyGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs; /** diff --git a/src/Omnipay/Migs/TwoPartyGateway.php b/src/Omnipay/Migs/TwoPartyGateway.php index e9261c3f..584fa8c8 100644 --- a/src/Omnipay/Migs/TwoPartyGateway.php +++ b/src/Omnipay/Migs/TwoPartyGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/Mollie/Gateway.php b/src/Omnipay/Mollie/Gateway.php index 22d61fc3..8c6bf947 100644 --- a/src/Omnipay/Mollie/Gateway.php +++ b/src/Omnipay/Mollie/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Mollie; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/Mollie/Message/AbstractRequest.php b/src/Omnipay/Mollie/Message/AbstractRequest.php index e70645ea..4ff15258 100644 --- a/src/Omnipay/Mollie/Message/AbstractRequest.php +++ b/src/Omnipay/Mollie/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Mollie\Message; /** diff --git a/src/Omnipay/Mollie/Message/CompletePurchaseRequest.php b/src/Omnipay/Mollie/Message/CompletePurchaseRequest.php index f0be2990..b695f3ce 100644 --- a/src/Omnipay/Mollie/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/Mollie/Message/CompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Mollie\Message; /** diff --git a/src/Omnipay/Mollie/Message/FetchIssuersRequest.php b/src/Omnipay/Mollie/Message/FetchIssuersRequest.php index 60844e6c..1208a990 100644 --- a/src/Omnipay/Mollie/Message/FetchIssuersRequest.php +++ b/src/Omnipay/Mollie/Message/FetchIssuersRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Mollie\Message; /** diff --git a/src/Omnipay/Mollie/Message/PurchaseRequest.php b/src/Omnipay/Mollie/Message/PurchaseRequest.php index 47f701cc..59b4fabd 100644 --- a/src/Omnipay/Mollie/Message/PurchaseRequest.php +++ b/src/Omnipay/Mollie/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Mollie\Message; /** diff --git a/src/Omnipay/Mollie/Message/Response.php b/src/Omnipay/Mollie/Message/Response.php index 81ebde00..ed56d59c 100644 --- a/src/Omnipay/Mollie/Message/Response.php +++ b/src/Omnipay/Mollie/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Mollie\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/MultiSafepay/Gateway.php b/src/Omnipay/MultiSafepay/Gateway.php index 24f8dda9..62c1f51c 100644 --- a/src/Omnipay/MultiSafepay/Gateway.php +++ b/src/Omnipay/MultiSafepay/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/MultiSafepay/Message/AbstractRequest.php b/src/Omnipay/MultiSafepay/Message/AbstractRequest.php index 5ad4bb4c..5ff0db33 100644 --- a/src/Omnipay/MultiSafepay/Message/AbstractRequest.php +++ b/src/Omnipay/MultiSafepay/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use Omnipay\Common\Message\AbstractRequest as BaseAbstractRequest; diff --git a/src/Omnipay/MultiSafepay/Message/AbstractResponse.php b/src/Omnipay/MultiSafepay/Message/AbstractResponse.php index a66ffe1c..f70cd771 100644 --- a/src/Omnipay/MultiSafepay/Message/AbstractResponse.php +++ b/src/Omnipay/MultiSafepay/Message/AbstractResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use Omnipay\Common\Message\AbstractResponse as BaseAbstractResponse; diff --git a/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php b/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php index d985bda7..f00114d6 100644 --- a/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use SimpleXMLElement; diff --git a/src/Omnipay/MultiSafepay/Message/CompletePurchaseResponse.php b/src/Omnipay/MultiSafepay/Message/CompletePurchaseResponse.php index bee9cb25..825e1fa5 100644 --- a/src/Omnipay/MultiSafepay/Message/CompletePurchaseResponse.php +++ b/src/Omnipay/MultiSafepay/Message/CompletePurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; class CompletePurchaseResponse extends AbstractResponse diff --git a/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php b/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php index 39a26012..b4c5d7ec 100644 --- a/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php +++ b/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use SimpleXMLElement; diff --git a/src/Omnipay/MultiSafepay/Message/FetchIssuersResponse.php b/src/Omnipay/MultiSafepay/Message/FetchIssuersResponse.php index a5b7ad4a..60a25f5d 100644 --- a/src/Omnipay/MultiSafepay/Message/FetchIssuersResponse.php +++ b/src/Omnipay/MultiSafepay/Message/FetchIssuersResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; class FetchIssuersResponse extends AbstractResponse diff --git a/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php b/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php index 370af937..587fc5f6 100644 --- a/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php +++ b/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use SimpleXMLElement; diff --git a/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsResponse.php b/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsResponse.php index e0ed4561..c5254b71 100644 --- a/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsResponse.php +++ b/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; class FetchPaymentMethodsResponse extends AbstractResponse diff --git a/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php b/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php index e4114b23..fcadd9ab 100644 --- a/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php +++ b/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use Omnipay\Common\CreditCard; diff --git a/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php b/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php index 91d212ff..577b6c43 100644 --- a/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php +++ b/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use Omnipay\Common\Message\RedirectResponseInterface; diff --git a/src/Omnipay/NetBanx/Gateway.php b/src/Omnipay/NetBanx/Gateway.php index 7b360d0e..5b5ec6bc 100644 --- a/src/Omnipay/NetBanx/Gateway.php +++ b/src/Omnipay/NetBanx/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\NetBanx; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/NetBanx/Message/AbstractRequest.php b/src/Omnipay/NetBanx/Message/AbstractRequest.php index 166ff3f8..bd20d6ba 100644 --- a/src/Omnipay/NetBanx/Message/AbstractRequest.php +++ b/src/Omnipay/NetBanx/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\NetBanx\Message; use Omnipay\Common\CreditCard; diff --git a/src/Omnipay/NetBanx/Message/AuthorizeRequest.php b/src/Omnipay/NetBanx/Message/AuthorizeRequest.php index 0c1880bf..af3bdc21 100644 --- a/src/Omnipay/NetBanx/Message/AuthorizeRequest.php +++ b/src/Omnipay/NetBanx/Message/AuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\NetBanx\Message; use Omnipay\Common\CreditCard; diff --git a/src/Omnipay/NetBanx/Message/CaptureRequest.php b/src/Omnipay/NetBanx/Message/CaptureRequest.php index e7a5d6d6..ea4cc6aa 100644 --- a/src/Omnipay/NetBanx/Message/CaptureRequest.php +++ b/src/Omnipay/NetBanx/Message/CaptureRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\NetBanx\Message; /** diff --git a/src/Omnipay/NetBanx/Message/PurchaseRequest.php b/src/Omnipay/NetBanx/Message/PurchaseRequest.php index afb13224..32f6c4fa 100644 --- a/src/Omnipay/NetBanx/Message/PurchaseRequest.php +++ b/src/Omnipay/NetBanx/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\NetBanx\Message; /** diff --git a/src/Omnipay/NetBanx/Message/Response.php b/src/Omnipay/NetBanx/Message/Response.php index b6cecb67..17b00623 100644 --- a/src/Omnipay/NetBanx/Message/Response.php +++ b/src/Omnipay/NetBanx/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\NetBanx\Message; use Omnipay\NetBanx\Gateway; diff --git a/src/Omnipay/NetBanx/Message/VoidRequest.php b/src/Omnipay/NetBanx/Message/VoidRequest.php index c8fe62af..593f3115 100644 --- a/src/Omnipay/NetBanx/Message/VoidRequest.php +++ b/src/Omnipay/NetBanx/Message/VoidRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\NetBanx\Message; /** diff --git a/src/Omnipay/Netaxept/Gateway.php b/src/Omnipay/Netaxept/Gateway.php index 7be82516..00fb0ba5 100644 --- a/src/Omnipay/Netaxept/Gateway.php +++ b/src/Omnipay/Netaxept/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Netaxept; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php b/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php index ef91bfa5..55a10c51 100644 --- a/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Netaxept\Message; use Omnipay\Common\Exception\InvalidResponseException; diff --git a/src/Omnipay/Netaxept/Message/ErrorResponse.php b/src/Omnipay/Netaxept/Message/ErrorResponse.php index 691e00dd..f895f862 100644 --- a/src/Omnipay/Netaxept/Message/ErrorResponse.php +++ b/src/Omnipay/Netaxept/Message/ErrorResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Netaxept\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/Netaxept/Message/PurchaseRequest.php b/src/Omnipay/Netaxept/Message/PurchaseRequest.php index c8a337d5..f2c02f0b 100644 --- a/src/Omnipay/Netaxept/Message/PurchaseRequest.php +++ b/src/Omnipay/Netaxept/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Netaxept\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/Netaxept/Message/Response.php b/src/Omnipay/Netaxept/Message/Response.php index 25aa96a2..0f32bc37 100644 --- a/src/Omnipay/Netaxept/Message/Response.php +++ b/src/Omnipay/Netaxept/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Netaxept\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/PayFast/Gateway.php b/src/Omnipay/PayFast/Gateway.php index 671e0d68..a54eac44 100644 --- a/src/Omnipay/PayFast/Gateway.php +++ b/src/Omnipay/PayFast/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayFast; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/PayFast/Message/CompletePurchaseItnResponse.php b/src/Omnipay/PayFast/Message/CompletePurchaseItnResponse.php index f0e3a258..b097f583 100644 --- a/src/Omnipay/PayFast/Message/CompletePurchaseItnResponse.php +++ b/src/Omnipay/PayFast/Message/CompletePurchaseItnResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayFast\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/PayFast/Message/CompletePurchasePdtResponse.php b/src/Omnipay/PayFast/Message/CompletePurchasePdtResponse.php index 8709a55a..317a188f 100644 --- a/src/Omnipay/PayFast/Message/CompletePurchasePdtResponse.php +++ b/src/Omnipay/PayFast/Message/CompletePurchasePdtResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayFast\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php b/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php index b7d61263..d6931fdc 100644 --- a/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayFast\Message; use Omnipay\Common\Exception\InvalidRequestException; diff --git a/src/Omnipay/PayFast/Message/PurchaseRequest.php b/src/Omnipay/PayFast/Message/PurchaseRequest.php index 90554d5f..cf669046 100644 --- a/src/Omnipay/PayFast/Message/PurchaseRequest.php +++ b/src/Omnipay/PayFast/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayFast\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/PayFast/Message/PurchaseResponse.php b/src/Omnipay/PayFast/Message/PurchaseResponse.php index 2d6179c2..3b0609d4 100644 --- a/src/Omnipay/PayFast/Message/PurchaseResponse.php +++ b/src/Omnipay/PayFast/Message/PurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayFast\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/PayPal/ExpressGateway.php b/src/Omnipay/PayPal/ExpressGateway.php index b17afdc2..6de6f7ae 100644 --- a/src/Omnipay/PayPal/ExpressGateway.php +++ b/src/Omnipay/PayPal/ExpressGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal; use Omnipay\PayPal\Message\ExpressAuthorizeRequest; diff --git a/src/Omnipay/PayPal/Message/AbstractRequest.php b/src/Omnipay/PayPal/Message/AbstractRequest.php index ac095389..9d5c2b79 100644 --- a/src/Omnipay/PayPal/Message/AbstractRequest.php +++ b/src/Omnipay/PayPal/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; /** diff --git a/src/Omnipay/PayPal/Message/CaptureRequest.php b/src/Omnipay/PayPal/Message/CaptureRequest.php index 07e7f6ad..a18889cb 100644 --- a/src/Omnipay/PayPal/Message/CaptureRequest.php +++ b/src/Omnipay/PayPal/Message/CaptureRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; /** diff --git a/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php b/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php index b3527fe2..578eaad7 100644 --- a/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php +++ b/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; /** diff --git a/src/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php b/src/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php index c0f8747a..d85ade3d 100644 --- a/src/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php +++ b/src/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; use Omnipay\Common\Message\RedirectResponseInterface; diff --git a/src/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequest.php b/src/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequest.php index b57039ef..2cd08da6 100644 --- a/src/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequest.php +++ b/src/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; /** diff --git a/src/Omnipay/PayPal/Message/ExpressCompletePurchaseRequest.php b/src/Omnipay/PayPal/Message/ExpressCompletePurchaseRequest.php index c4a17323..91fec992 100644 --- a/src/Omnipay/PayPal/Message/ExpressCompletePurchaseRequest.php +++ b/src/Omnipay/PayPal/Message/ExpressCompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; /** diff --git a/src/Omnipay/PayPal/Message/ProAuthorizeRequest.php b/src/Omnipay/PayPal/Message/ProAuthorizeRequest.php index a4261eda..9399af51 100644 --- a/src/Omnipay/PayPal/Message/ProAuthorizeRequest.php +++ b/src/Omnipay/PayPal/Message/ProAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; /** diff --git a/src/Omnipay/PayPal/Message/ProPurchaseRequest.php b/src/Omnipay/PayPal/Message/ProPurchaseRequest.php index 769b25af..715f152d 100644 --- a/src/Omnipay/PayPal/Message/ProPurchaseRequest.php +++ b/src/Omnipay/PayPal/Message/ProPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; /** diff --git a/src/Omnipay/PayPal/Message/RefundRequest.php b/src/Omnipay/PayPal/Message/RefundRequest.php index 43c66f79..6d3c3cd2 100644 --- a/src/Omnipay/PayPal/Message/RefundRequest.php +++ b/src/Omnipay/PayPal/Message/RefundRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; /** diff --git a/src/Omnipay/PayPal/Message/Response.php b/src/Omnipay/PayPal/Message/Response.php index 64851b36..da5fdcc3 100644 --- a/src/Omnipay/PayPal/Message/Response.php +++ b/src/Omnipay/PayPal/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/PayPal/ProGateway.php b/src/Omnipay/PayPal/ProGateway.php index 19461c71..2accee74 100644 --- a/src/Omnipay/PayPal/ProGateway.php +++ b/src/Omnipay/PayPal/ProGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/Payflow/Message/AuthorizeRequest.php b/src/Omnipay/Payflow/Message/AuthorizeRequest.php index 217407b1..6b11c6ce 100644 --- a/src/Omnipay/Payflow/Message/AuthorizeRequest.php +++ b/src/Omnipay/Payflow/Message/AuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Payflow\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/Payflow/Message/CaptureRequest.php b/src/Omnipay/Payflow/Message/CaptureRequest.php index 78904c81..79939c33 100644 --- a/src/Omnipay/Payflow/Message/CaptureRequest.php +++ b/src/Omnipay/Payflow/Message/CaptureRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Payflow\Message; /** diff --git a/src/Omnipay/Payflow/Message/PurchaseRequest.php b/src/Omnipay/Payflow/Message/PurchaseRequest.php index 14513630..70c30573 100644 --- a/src/Omnipay/Payflow/Message/PurchaseRequest.php +++ b/src/Omnipay/Payflow/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Payflow\Message; /** diff --git a/src/Omnipay/Payflow/Message/RefundRequest.php b/src/Omnipay/Payflow/Message/RefundRequest.php index 50be991a..8f72157a 100644 --- a/src/Omnipay/Payflow/Message/RefundRequest.php +++ b/src/Omnipay/Payflow/Message/RefundRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Payflow\Message; /** diff --git a/src/Omnipay/Payflow/Message/Response.php b/src/Omnipay/Payflow/Message/Response.php index 55fb2bc4..ae38d611 100644 --- a/src/Omnipay/Payflow/Message/Response.php +++ b/src/Omnipay/Payflow/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Payflow\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/Payflow/ProGateway.php b/src/Omnipay/Payflow/ProGateway.php index 5ea5c2e9..8feada12 100644 --- a/src/Omnipay/Payflow/ProGateway.php +++ b/src/Omnipay/Payflow/ProGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Payflow; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php b/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php index ef8a9bfc..5ca11353 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php +++ b/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; use SimpleXMLElement; diff --git a/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponse.php b/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponse.php index c0d9a1eb..ba644860 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponse.php +++ b/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/PaymentExpress/Message/PxPayCompleteAuthorizeRequest.php b/src/Omnipay/PaymentExpress/Message/PxPayCompleteAuthorizeRequest.php index 3a40b31d..c11b3fea 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPayCompleteAuthorizeRequest.php +++ b/src/Omnipay/PaymentExpress/Message/PxPayCompleteAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; use SimpleXMLElement; diff --git a/src/Omnipay/PaymentExpress/Message/PxPayPurchaseRequest.php b/src/Omnipay/PaymentExpress/Message/PxPayPurchaseRequest.php index 47cbbf4f..f0d47f51 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPayPurchaseRequest.php +++ b/src/Omnipay/PaymentExpress/Message/PxPayPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; /** diff --git a/src/Omnipay/PaymentExpress/Message/PxPostAuthorizeRequest.php b/src/Omnipay/PaymentExpress/Message/PxPostAuthorizeRequest.php index 48419083..5e7b5aaa 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPostAuthorizeRequest.php +++ b/src/Omnipay/PaymentExpress/Message/PxPostAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/PaymentExpress/Message/PxPostCaptureRequest.php b/src/Omnipay/PaymentExpress/Message/PxPostCaptureRequest.php index 12783621..015ab23b 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPostCaptureRequest.php +++ b/src/Omnipay/PaymentExpress/Message/PxPostCaptureRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; /** diff --git a/src/Omnipay/PaymentExpress/Message/PxPostCreateCardRequest.php b/src/Omnipay/PaymentExpress/Message/PxPostCreateCardRequest.php index 82383ef6..3a9bebac 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPostCreateCardRequest.php +++ b/src/Omnipay/PaymentExpress/Message/PxPostCreateCardRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; /** diff --git a/src/Omnipay/PaymentExpress/Message/PxPostPurchaseRequest.php b/src/Omnipay/PaymentExpress/Message/PxPostPurchaseRequest.php index 760f78b6..cb22bfbf 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPostPurchaseRequest.php +++ b/src/Omnipay/PaymentExpress/Message/PxPostPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; /** diff --git a/src/Omnipay/PaymentExpress/Message/PxPostRefundRequest.php b/src/Omnipay/PaymentExpress/Message/PxPostRefundRequest.php index 7d31d975..cba34a8c 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPostRefundRequest.php +++ b/src/Omnipay/PaymentExpress/Message/PxPostRefundRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; /** diff --git a/src/Omnipay/PaymentExpress/Message/Response.php b/src/Omnipay/PaymentExpress/Message/Response.php index 75ee3a57..6a941893 100644 --- a/src/Omnipay/PaymentExpress/Message/Response.php +++ b/src/Omnipay/PaymentExpress/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/PaymentExpress/PxPayGateway.php b/src/Omnipay/PaymentExpress/PxPayGateway.php index 52c1ecd1..a2a721ab 100644 --- a/src/Omnipay/PaymentExpress/PxPayGateway.php +++ b/src/Omnipay/PaymentExpress/PxPayGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/PaymentExpress/PxPostGateway.php b/src/Omnipay/PaymentExpress/PxPostGateway.php index 8937faba..d9419dff 100644 --- a/src/Omnipay/PaymentExpress/PxPostGateway.php +++ b/src/Omnipay/PaymentExpress/PxPostGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/Pin/Gateway.php b/src/Omnipay/Pin/Gateway.php index 22a79816..4c01c346 100644 --- a/src/Omnipay/Pin/Gateway.php +++ b/src/Omnipay/Pin/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Pin; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/Pin/Message/PurchaseRequest.php b/src/Omnipay/Pin/Message/PurchaseRequest.php index 1c4b8ebf..d015460a 100644 --- a/src/Omnipay/Pin/Message/PurchaseRequest.php +++ b/src/Omnipay/Pin/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Pin\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/Pin/Message/Response.php b/src/Omnipay/Pin/Message/Response.php index 35129e3f..09f77e55 100644 --- a/src/Omnipay/Pin/Message/Response.php +++ b/src/Omnipay/Pin/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Pin\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/SagePay/DirectGateway.php b/src/Omnipay/SagePay/DirectGateway.php index 3c2e56a4..0d3401b3 100644 --- a/src/Omnipay/SagePay/DirectGateway.php +++ b/src/Omnipay/SagePay/DirectGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/SagePay/Message/AbstractRequest.php b/src/Omnipay/SagePay/Message/AbstractRequest.php index 714b3e11..456092d7 100644 --- a/src/Omnipay/SagePay/Message/AbstractRequest.php +++ b/src/Omnipay/SagePay/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; /** diff --git a/src/Omnipay/SagePay/Message/CaptureRequest.php b/src/Omnipay/SagePay/Message/CaptureRequest.php index 5a1e5061..16b58f4e 100644 --- a/src/Omnipay/SagePay/Message/CaptureRequest.php +++ b/src/Omnipay/SagePay/Message/CaptureRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; /** diff --git a/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php b/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php index bb380312..201f1611 100644 --- a/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php +++ b/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; /** diff --git a/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php b/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php index cbc95ba9..42bad718 100644 --- a/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php +++ b/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; /** diff --git a/src/Omnipay/SagePay/Message/DirectPurchaseRequest.php b/src/Omnipay/SagePay/Message/DirectPurchaseRequest.php index 190d0f5b..a583a0cd 100644 --- a/src/Omnipay/SagePay/Message/DirectPurchaseRequest.php +++ b/src/Omnipay/SagePay/Message/DirectPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; /** diff --git a/src/Omnipay/SagePay/Message/RefundRequest.php b/src/Omnipay/SagePay/Message/RefundRequest.php index 15de07be..75af2910 100644 --- a/src/Omnipay/SagePay/Message/RefundRequest.php +++ b/src/Omnipay/SagePay/Message/RefundRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; /** diff --git a/src/Omnipay/SagePay/Message/Response.php b/src/Omnipay/SagePay/Message/Response.php index c39e6d5c..f4c38a4e 100644 --- a/src/Omnipay/SagePay/Message/Response.php +++ b/src/Omnipay/SagePay/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/SagePay/Message/ServerAuthorizeRequest.php b/src/Omnipay/SagePay/Message/ServerAuthorizeRequest.php index 0e95b9e0..d943484a 100644 --- a/src/Omnipay/SagePay/Message/ServerAuthorizeRequest.php +++ b/src/Omnipay/SagePay/Message/ServerAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; /** diff --git a/src/Omnipay/SagePay/Message/ServerAuthorizeResponse.php b/src/Omnipay/SagePay/Message/ServerAuthorizeResponse.php index 7cca4ea0..15a7712c 100644 --- a/src/Omnipay/SagePay/Message/ServerAuthorizeResponse.php +++ b/src/Omnipay/SagePay/Message/ServerAuthorizeResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; /** diff --git a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php b/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php index 74b998cc..2d5ccb48 100644 --- a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php +++ b/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; use Omnipay\Common\Exception\InvalidResponseException; diff --git a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php b/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php index 8916bce1..d27d43ae 100644 --- a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php +++ b/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; use Omnipay\Common\Message\RequestInterface; diff --git a/src/Omnipay/SagePay/Message/ServerPurchaseRequest.php b/src/Omnipay/SagePay/Message/ServerPurchaseRequest.php index 4900ce0d..913592dd 100644 --- a/src/Omnipay/SagePay/Message/ServerPurchaseRequest.php +++ b/src/Omnipay/SagePay/Message/ServerPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; /** diff --git a/src/Omnipay/SagePay/ServerGateway.php b/src/Omnipay/SagePay/ServerGateway.php index 3d2b6e7a..acf64a76 100644 --- a/src/Omnipay/SagePay/ServerGateway.php +++ b/src/Omnipay/SagePay/ServerGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay; use Omnipay\SagePay\Message\ServerAuthorizeRequest; diff --git a/src/Omnipay/SecurePay/DirectPostGateway.php b/src/Omnipay/SecurePay/DirectPostGateway.php index 33c45a47..5fc4fc2b 100644 --- a/src/Omnipay/SecurePay/DirectPostGateway.php +++ b/src/Omnipay/SecurePay/DirectPostGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/SecurePay/Message/DirectPostAbstractRequest.php b/src/Omnipay/SecurePay/Message/DirectPostAbstractRequest.php index bc8ef1b4..57f77073 100644 --- a/src/Omnipay/SecurePay/Message/DirectPostAbstractRequest.php +++ b/src/Omnipay/SecurePay/Message/DirectPostAbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php b/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php index c0a0f510..1d620f02 100644 --- a/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php +++ b/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay\Message; /** diff --git a/src/Omnipay/SecurePay/Message/DirectPostAuthorizeResponse.php b/src/Omnipay/SecurePay/Message/DirectPostAuthorizeResponse.php index 56cbcffa..960be72b 100644 --- a/src/Omnipay/SecurePay/Message/DirectPostAuthorizeResponse.php +++ b/src/Omnipay/SecurePay/Message/DirectPostAuthorizeResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php b/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php index 9e408c4a..67578bfd 100644 --- a/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php +++ b/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay\Message; use Omnipay\Common\Exception\InvalidRequestException; diff --git a/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseResponse.php b/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseResponse.php index 0ffd4ef4..bf820cbb 100644 --- a/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseResponse.php +++ b/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/SecurePay/Message/DirectPostPurchaseRequest.php b/src/Omnipay/SecurePay/Message/DirectPostPurchaseRequest.php index 59c38f6b..a8139f59 100644 --- a/src/Omnipay/SecurePay/Message/DirectPostPurchaseRequest.php +++ b/src/Omnipay/SecurePay/Message/DirectPostPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay\Message; /** diff --git a/src/Omnipay/Stripe/Gateway.php b/src/Omnipay/Stripe/Gateway.php index 9c76873a..684a898e 100644 --- a/src/Omnipay/Stripe/Gateway.php +++ b/src/Omnipay/Stripe/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/Stripe/Message/AbstractRequest.php b/src/Omnipay/Stripe/Message/AbstractRequest.php index e03a4e0a..6913f7d4 100644 --- a/src/Omnipay/Stripe/Message/AbstractRequest.php +++ b/src/Omnipay/Stripe/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; /** diff --git a/src/Omnipay/Stripe/Message/AuthorizeRequest.php b/src/Omnipay/Stripe/Message/AuthorizeRequest.php index fce9c72d..21dc61e5 100644 --- a/src/Omnipay/Stripe/Message/AuthorizeRequest.php +++ b/src/Omnipay/Stripe/Message/AuthorizeRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; /** diff --git a/src/Omnipay/Stripe/Message/CaptureRequest.php b/src/Omnipay/Stripe/Message/CaptureRequest.php index 4860c36e..3a5ebd05 100644 --- a/src/Omnipay/Stripe/Message/CaptureRequest.php +++ b/src/Omnipay/Stripe/Message/CaptureRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; /** diff --git a/src/Omnipay/Stripe/Message/CreateCardRequest.php b/src/Omnipay/Stripe/Message/CreateCardRequest.php index e9c7a30f..3e467fab 100644 --- a/src/Omnipay/Stripe/Message/CreateCardRequest.php +++ b/src/Omnipay/Stripe/Message/CreateCardRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; /** diff --git a/src/Omnipay/Stripe/Message/DeleteCardRequest.php b/src/Omnipay/Stripe/Message/DeleteCardRequest.php index 27cfd397..57fdcb93 100644 --- a/src/Omnipay/Stripe/Message/DeleteCardRequest.php +++ b/src/Omnipay/Stripe/Message/DeleteCardRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; /** diff --git a/src/Omnipay/Stripe/Message/FetchTransactionRequest.php b/src/Omnipay/Stripe/Message/FetchTransactionRequest.php index 957b7b12..9d71cbe9 100644 --- a/src/Omnipay/Stripe/Message/FetchTransactionRequest.php +++ b/src/Omnipay/Stripe/Message/FetchTransactionRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; /** diff --git a/src/Omnipay/Stripe/Message/PurchaseRequest.php b/src/Omnipay/Stripe/Message/PurchaseRequest.php index b9935d17..895eb7b5 100644 --- a/src/Omnipay/Stripe/Message/PurchaseRequest.php +++ b/src/Omnipay/Stripe/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; /** diff --git a/src/Omnipay/Stripe/Message/RefundRequest.php b/src/Omnipay/Stripe/Message/RefundRequest.php index 84dee3cf..b4d29bbf 100644 --- a/src/Omnipay/Stripe/Message/RefundRequest.php +++ b/src/Omnipay/Stripe/Message/RefundRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; /** diff --git a/src/Omnipay/Stripe/Message/Response.php b/src/Omnipay/Stripe/Message/Response.php index dfa926a9..ba92406b 100644 --- a/src/Omnipay/Stripe/Message/Response.php +++ b/src/Omnipay/Stripe/Message/Response.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/Stripe/Message/UpdateCardRequest.php b/src/Omnipay/Stripe/Message/UpdateCardRequest.php index 54ff3476..45504184 100644 --- a/src/Omnipay/Stripe/Message/UpdateCardRequest.php +++ b/src/Omnipay/Stripe/Message/UpdateCardRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; /** diff --git a/src/Omnipay/TargetPay/AbstractGateway.php b/src/Omnipay/TargetPay/AbstractGateway.php index 4d8322df..832e9bcf 100644 --- a/src/Omnipay/TargetPay/AbstractGateway.php +++ b/src/Omnipay/TargetPay/AbstractGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay; use Omnipay\Common\AbstractGateway as BaseAbstractGateway; diff --git a/src/Omnipay/TargetPay/DirectebankingGateway.php b/src/Omnipay/TargetPay/DirectebankingGateway.php index c6ab93eb..75e2633b 100644 --- a/src/Omnipay/TargetPay/DirectebankingGateway.php +++ b/src/Omnipay/TargetPay/DirectebankingGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay; use Omnipay\TargetPay\Message\CompletePurchaseRequest; diff --git a/src/Omnipay/TargetPay/IdealGateway.php b/src/Omnipay/TargetPay/IdealGateway.php index 4357e4a6..5afb3324 100644 --- a/src/Omnipay/TargetPay/IdealGateway.php +++ b/src/Omnipay/TargetPay/IdealGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay; use Omnipay\TargetPay\Message\CompletePurchaseRequest; diff --git a/src/Omnipay/TargetPay/Message/AbstractRequest.php b/src/Omnipay/TargetPay/Message/AbstractRequest.php index 8bf43689..57a72de9 100644 --- a/src/Omnipay/TargetPay/Message/AbstractRequest.php +++ b/src/Omnipay/TargetPay/Message/AbstractRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\Common\Message\AbstractRequest as BaseAbstractRequest; diff --git a/src/Omnipay/TargetPay/Message/AbstractResponse.php b/src/Omnipay/TargetPay/Message/AbstractResponse.php index fa6a455f..3c40c909 100644 --- a/src/Omnipay/TargetPay/Message/AbstractResponse.php +++ b/src/Omnipay/TargetPay/Message/AbstractResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\Common\Message\AbstractResponse as BaseAbstractResponse; diff --git a/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php index 7861ff3f..25a0c22b 100644 --- a/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; abstract class CompletePurchaseRequest extends AbstractRequest diff --git a/src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php b/src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php index 42d89f8a..1becfc7b 100644 --- a/src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php +++ b/src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; class CompletePurchaseResponse extends AbstractResponse diff --git a/src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php index 26cec042..ceff77c9 100644 --- a/src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php +++ b/src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; class DirectebankingCompletePurchaseRequest extends CompletePurchaseRequest diff --git a/src/Omnipay/TargetPay/Message/DirectebankingPurchaseRequest.php b/src/Omnipay/TargetPay/Message/DirectebankingPurchaseRequest.php index 75692060..92adc96f 100644 --- a/src/Omnipay/TargetPay/Message/DirectebankingPurchaseRequest.php +++ b/src/Omnipay/TargetPay/Message/DirectebankingPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; class DirectebankingPurchaseRequest extends PurchaseRequest diff --git a/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php b/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php index cec041e9..2f9058a6 100644 --- a/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php +++ b/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\Common\Message\AbstractRequest as BaseAbstractRequest; diff --git a/src/Omnipay/TargetPay/Message/FetchIssuersResponse.php b/src/Omnipay/TargetPay/Message/FetchIssuersResponse.php index b9abd754..c8842775 100644 --- a/src/Omnipay/TargetPay/Message/FetchIssuersResponse.php +++ b/src/Omnipay/TargetPay/Message/FetchIssuersResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\Common\Message\AbstractResponse as BaseAbstractResponse; diff --git a/src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php index 16d02e74..098f144c 100644 --- a/src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php +++ b/src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; class IdealCompletePurchaseRequest extends CompletePurchaseRequest diff --git a/src/Omnipay/TargetPay/Message/IdealPurchaseRequest.php b/src/Omnipay/TargetPay/Message/IdealPurchaseRequest.php index f45bb6cb..05523368 100644 --- a/src/Omnipay/TargetPay/Message/IdealPurchaseRequest.php +++ b/src/Omnipay/TargetPay/Message/IdealPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; class IdealPurchaseRequest extends PurchaseRequest diff --git a/src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php index f9e74f47..e743eece 100644 --- a/src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php +++ b/src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; class MrcashCompletePurchaseRequest extends CompletePurchaseRequest diff --git a/src/Omnipay/TargetPay/Message/MrcashPurchaseRequest.php b/src/Omnipay/TargetPay/Message/MrcashPurchaseRequest.php index 0652cee3..daceb991 100644 --- a/src/Omnipay/TargetPay/Message/MrcashPurchaseRequest.php +++ b/src/Omnipay/TargetPay/Message/MrcashPurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; class MrcashPurchaseRequest extends PurchaseRequest diff --git a/src/Omnipay/TargetPay/Message/PurchaseRequest.php b/src/Omnipay/TargetPay/Message/PurchaseRequest.php index dc36705e..a059858d 100644 --- a/src/Omnipay/TargetPay/Message/PurchaseRequest.php +++ b/src/Omnipay/TargetPay/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; abstract class PurchaseRequest extends AbstractRequest diff --git a/src/Omnipay/TargetPay/Message/PurchaseResponse.php b/src/Omnipay/TargetPay/Message/PurchaseResponse.php index 24d4b27e..42175ad5 100644 --- a/src/Omnipay/TargetPay/Message/PurchaseResponse.php +++ b/src/Omnipay/TargetPay/Message/PurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\Common\Message\RedirectResponseInterface; diff --git a/src/Omnipay/TargetPay/MrcashGateway.php b/src/Omnipay/TargetPay/MrcashGateway.php index 52f5636a..a6070d4e 100644 --- a/src/Omnipay/TargetPay/MrcashGateway.php +++ b/src/Omnipay/TargetPay/MrcashGateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay; use Omnipay\TargetPay\Message\CompletePurchaseRequest; diff --git a/src/Omnipay/TwoCheckout/Gateway.php b/src/Omnipay/TwoCheckout/Gateway.php index 78605abe..31c98bd1 100644 --- a/src/Omnipay/TwoCheckout/Gateway.php +++ b/src/Omnipay/TwoCheckout/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TwoCheckout; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php b/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php index 1c7eb688..c0bd5018 100644 --- a/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TwoCheckout\Message; use Omnipay\Common\Exception\InvalidResponseException; diff --git a/src/Omnipay/TwoCheckout/Message/CompletePurchaseResponse.php b/src/Omnipay/TwoCheckout/Message/CompletePurchaseResponse.php index a769a132..9855dbcc 100644 --- a/src/Omnipay/TwoCheckout/Message/CompletePurchaseResponse.php +++ b/src/Omnipay/TwoCheckout/Message/CompletePurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TwoCheckout\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php b/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php index e62b7a59..e2d12fbe 100644 --- a/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php +++ b/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TwoCheckout\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/TwoCheckout/Message/PurchaseResponse.php b/src/Omnipay/TwoCheckout/Message/PurchaseResponse.php index 707bb781..c10e24cc 100644 --- a/src/Omnipay/TwoCheckout/Message/PurchaseResponse.php +++ b/src/Omnipay/TwoCheckout/Message/PurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TwoCheckout\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/WorldPay/Gateway.php b/src/Omnipay/WorldPay/Gateway.php index 13b7ec12..40aa6450 100644 --- a/src/Omnipay/WorldPay/Gateway.php +++ b/src/Omnipay/WorldPay/Gateway.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\WorldPay; use Omnipay\Common\AbstractGateway; diff --git a/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php b/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php index 322aab71..5b3032ef 100644 --- a/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\WorldPay\Message; use Omnipay\Common\Exception\InvalidResponseException; diff --git a/src/Omnipay/WorldPay/Message/CompletePurchaseResponse.php b/src/Omnipay/WorldPay/Message/CompletePurchaseResponse.php index b2e19869..5072b97f 100644 --- a/src/Omnipay/WorldPay/Message/CompletePurchaseResponse.php +++ b/src/Omnipay/WorldPay/Message/CompletePurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\WorldPay\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/src/Omnipay/WorldPay/Message/PurchaseRequest.php b/src/Omnipay/WorldPay/Message/PurchaseRequest.php index b64cdca0..faa0af22 100644 --- a/src/Omnipay/WorldPay/Message/PurchaseRequest.php +++ b/src/Omnipay/WorldPay/Message/PurchaseRequest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\WorldPay\Message; use Omnipay\Common\Message\AbstractRequest; diff --git a/src/Omnipay/WorldPay/Message/PurchaseResponse.php b/src/Omnipay/WorldPay/Message/PurchaseResponse.php index c584a7cc..fd3370cf 100644 --- a/src/Omnipay/WorldPay/Message/PurchaseResponse.php +++ b/src/Omnipay/WorldPay/Message/PurchaseResponse.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\WorldPay\Message; use Omnipay\Common\Message\AbstractResponse; diff --git a/tests/Omnipay/AuthorizeNet/AIMGatewayTest.php b/tests/Omnipay/AuthorizeNet/AIMGatewayTest.php index 87f3ab7e..ecfa320d 100644 --- a/tests/Omnipay/AuthorizeNet/AIMGatewayTest.php +++ b/tests/Omnipay/AuthorizeNet/AIMGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php b/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php index 559a09e6..97898fb9 100644 --- a/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php +++ b/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php b/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php index 0b134418..e716a50d 100644 --- a/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php +++ b/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponseTest.php b/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponseTest.php index b8d5b501..daa199b8 100644 --- a/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponseTest.php +++ b/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php b/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php index 934df4a5..6545aeea 100644 --- a/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php +++ b/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\AuthorizeNet; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Buckaroo/GatewayTest.php b/tests/Omnipay/Buckaroo/GatewayTest.php index 0f2b01b8..4a3309dc 100644 --- a/tests/Omnipay/Buckaroo/GatewayTest.php +++ b/tests/Omnipay/Buckaroo/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Buckaroo; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Buckaroo/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/Buckaroo/Message/CompletePurchaseRequestTest.php index 40796427..321587cb 100644 --- a/tests/Omnipay/Buckaroo/Message/CompletePurchaseRequestTest.php +++ b/tests/Omnipay/Buckaroo/Message/CompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Buckaroo\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Buckaroo/Message/PurchaseRequestTest.php b/tests/Omnipay/Buckaroo/Message/PurchaseRequestTest.php index a862bc94..80659fb3 100644 --- a/tests/Omnipay/Buckaroo/Message/PurchaseRequestTest.php +++ b/tests/Omnipay/Buckaroo/Message/PurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Buckaroo\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/CardSave/GatewayTest.php b/tests/Omnipay/CardSave/GatewayTest.php index caf85898..33e4af79 100644 --- a/tests/Omnipay/CardSave/GatewayTest.php +++ b/tests/Omnipay/CardSave/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\CardSave; use Omnipay\Common\CreditCard; diff --git a/tests/Omnipay/CardSave/Message/ResponseTest.php b/tests/Omnipay/CardSave/Message/ResponseTest.php index 5aa8b954..0fe3bf76 100644 --- a/tests/Omnipay/CardSave/Message/ResponseTest.php +++ b/tests/Omnipay/CardSave/Message/ResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\CardSave\Message; use Mockery as m; diff --git a/tests/Omnipay/Common/AbstractGatewayTest.php b/tests/Omnipay/Common/AbstractGatewayTest.php index 9a4233da..13bc0507 100644 --- a/tests/Omnipay/Common/AbstractGatewayTest.php +++ b/tests/Omnipay/Common/AbstractGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; use Mockery as m; diff --git a/tests/Omnipay/Common/CreditCardTest.php b/tests/Omnipay/Common/CreditCardTest.php index 98b5097c..c274aeb5 100644 --- a/tests/Omnipay/Common/CreditCardTest.php +++ b/tests/Omnipay/Common/CreditCardTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; use Omnipay\TestCase; diff --git a/tests/Omnipay/Common/CurrencyTest.php b/tests/Omnipay/Common/CurrencyTest.php index 07431f2e..0c3c965d 100644 --- a/tests/Omnipay/Common/CurrencyTest.php +++ b/tests/Omnipay/Common/CurrencyTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; use Omnipay\Common\Currency; diff --git a/tests/Omnipay/Common/GatewayFactoryTest.php b/tests/Omnipay/Common/GatewayFactoryTest.php index f40a2c83..24b51542 100644 --- a/tests/Omnipay/Common/GatewayFactoryTest.php +++ b/tests/Omnipay/Common/GatewayFactoryTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; use Omnipay\TestCase; diff --git a/tests/Omnipay/Common/HelperTest.php b/tests/Omnipay/Common/HelperTest.php index 546b693e..c824df28 100644 --- a/tests/Omnipay/Common/HelperTest.php +++ b/tests/Omnipay/Common/HelperTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common; use Mockery as m; diff --git a/tests/Omnipay/Common/Message/AbstractRequestTest.php b/tests/Omnipay/Common/Message/AbstractRequestTest.php index a779985c..e7b8da61 100644 --- a/tests/Omnipay/Common/Message/AbstractRequestTest.php +++ b/tests/Omnipay/Common/Message/AbstractRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Message; use Mockery as m; diff --git a/tests/Omnipay/Common/Message/AbstractResponseTest.php b/tests/Omnipay/Common/Message/AbstractResponseTest.php index c463dc75..290094a4 100644 --- a/tests/Omnipay/Common/Message/AbstractResponseTest.php +++ b/tests/Omnipay/Common/Message/AbstractResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Common\Message; use Mockery as m; diff --git a/tests/Omnipay/Dummy/GatewayTest.php b/tests/Omnipay/Dummy/GatewayTest.php index ab51c797..88323375 100644 --- a/tests/Omnipay/Dummy/GatewayTest.php +++ b/tests/Omnipay/Dummy/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Dummy; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Dummy/Message/AuthorizeRequestTest.php b/tests/Omnipay/Dummy/Message/AuthorizeRequestTest.php index b21dd120..9c7f04bf 100644 --- a/tests/Omnipay/Dummy/Message/AuthorizeRequestTest.php +++ b/tests/Omnipay/Dummy/Message/AuthorizeRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Dummy\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Dummy/Message/ResponseTest.php b/tests/Omnipay/Dummy/Message/ResponseTest.php index 93fdaf75..afbac564 100644 --- a/tests/Omnipay/Dummy/Message/ResponseTest.php +++ b/tests/Omnipay/Dummy/Message/ResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Dummy\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Eway/Message/RapidCompletePurchaseRequestTest.php b/tests/Omnipay/Eway/Message/RapidCompletePurchaseRequestTest.php index 468f17e4..77808f22 100644 --- a/tests/Omnipay/Eway/Message/RapidCompletePurchaseRequestTest.php +++ b/tests/Omnipay/Eway/Message/RapidCompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Eway\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Eway/Message/RapidPurchaseRequestTest.php b/tests/Omnipay/Eway/Message/RapidPurchaseRequestTest.php index 31a3b8c9..56d409ee 100644 --- a/tests/Omnipay/Eway/Message/RapidPurchaseRequestTest.php +++ b/tests/Omnipay/Eway/Message/RapidPurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Eway\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Eway/RapidGatewayTest.php b/tests/Omnipay/Eway/RapidGatewayTest.php index 5381127e..9ac2058d 100644 --- a/tests/Omnipay/Eway/RapidGatewayTest.php +++ b/tests/Omnipay/Eway/RapidGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Eway; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/GatewayTestCase.php b/tests/Omnipay/GatewayTestCase.php index 377b3f78..4b80bbae 100644 --- a/tests/Omnipay/GatewayTestCase.php +++ b/tests/Omnipay/GatewayTestCase.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay; /** diff --git a/tests/Omnipay/GoCardless/GatewayTest.php b/tests/Omnipay/GoCardless/GatewayTest.php index 486ad114..c3d44441 100644 --- a/tests/Omnipay/GoCardless/GatewayTest.php +++ b/tests/Omnipay/GoCardless/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\GoCardless; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/GoCardless/Message/CompletePurchaseResponseTest.php b/tests/Omnipay/GoCardless/Message/CompletePurchaseResponseTest.php index 46a53ea3..ba969f67 100644 --- a/tests/Omnipay/GoCardless/Message/CompletePurchaseResponseTest.php +++ b/tests/Omnipay/GoCardless/Message/CompletePurchaseResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\GoCardless\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Manual/GatewayTest.php b/tests/Omnipay/Manual/GatewayTest.php index 9cec6989..e1baaeb9 100644 --- a/tests/Omnipay/Manual/GatewayTest.php +++ b/tests/Omnipay/Manual/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Manual; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequestTest.php b/tests/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequestTest.php index bb962c90..fb0baf25 100644 --- a/tests/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequestTest.php +++ b/tests/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Migs/Message/ThreePartyPurchaseRequestTest.php b/tests/Omnipay/Migs/Message/ThreePartyPurchaseRequestTest.php index 7ec8f296..04be876d 100644 --- a/tests/Omnipay/Migs/Message/ThreePartyPurchaseRequestTest.php +++ b/tests/Omnipay/Migs/Message/ThreePartyPurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Migs/Message/ThreePartyPurchaseResponseTest.php b/tests/Omnipay/Migs/Message/ThreePartyPurchaseResponseTest.php index 29e95984..ddb383e2 100644 --- a/tests/Omnipay/Migs/Message/ThreePartyPurchaseResponseTest.php +++ b/tests/Omnipay/Migs/Message/ThreePartyPurchaseResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Migs/Message/TwoPartyPurchaseRequestTest.php b/tests/Omnipay/Migs/Message/TwoPartyPurchaseRequestTest.php index 3cee8c97..68ca8e50 100644 --- a/tests/Omnipay/Migs/Message/TwoPartyPurchaseRequestTest.php +++ b/tests/Omnipay/Migs/Message/TwoPartyPurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Migs/Message/TwoPartyPurchaseResponseTest.php b/tests/Omnipay/Migs/Message/TwoPartyPurchaseResponseTest.php index ce109d32..eb29ab44 100644 --- a/tests/Omnipay/Migs/Message/TwoPartyPurchaseResponseTest.php +++ b/tests/Omnipay/Migs/Message/TwoPartyPurchaseResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Migs/ThreePartyGatewayTest.php b/tests/Omnipay/Migs/ThreePartyGatewayTest.php index 26c6a18c..6ff706df 100644 --- a/tests/Omnipay/Migs/ThreePartyGatewayTest.php +++ b/tests/Omnipay/Migs/ThreePartyGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Migs/TwoPartyGatewayTest.php b/tests/Omnipay/Migs/TwoPartyGatewayTest.php index 9bdb1e67..6b5ef13c 100644 --- a/tests/Omnipay/Migs/TwoPartyGatewayTest.php +++ b/tests/Omnipay/Migs/TwoPartyGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Migs; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Mollie/GatewayTest.php b/tests/Omnipay/Mollie/GatewayTest.php index 34bc1156..cc251579 100644 --- a/tests/Omnipay/Mollie/GatewayTest.php +++ b/tests/Omnipay/Mollie/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Mollie; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Mollie/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/Mollie/Message/CompletePurchaseRequestTest.php index cf5090b5..fc02702a 100644 --- a/tests/Omnipay/Mollie/Message/CompletePurchaseRequestTest.php +++ b/tests/Omnipay/Mollie/Message/CompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Mollie\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Mollie/Message/FetchIssuersRequestTest.php b/tests/Omnipay/Mollie/Message/FetchIssuersRequestTest.php index f9421f8f..514a9620 100644 --- a/tests/Omnipay/Mollie/Message/FetchIssuersRequestTest.php +++ b/tests/Omnipay/Mollie/Message/FetchIssuersRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Mollie\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Mollie/Message/PurchaseRequestTest.php b/tests/Omnipay/Mollie/Message/PurchaseRequestTest.php index 371d3457..832c1e23 100644 --- a/tests/Omnipay/Mollie/Message/PurchaseRequestTest.php +++ b/tests/Omnipay/Mollie/Message/PurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Mollie\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/MultiSafepay/GatewayTest.php b/tests/Omnipay/MultiSafepay/GatewayTest.php index 71598999..9411c9d6 100644 --- a/tests/Omnipay/MultiSafepay/GatewayTest.php +++ b/tests/Omnipay/MultiSafepay/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay; use Omnipay\Common\CreditCard; diff --git a/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php b/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php index 2d3d6b20..f34496a0 100644 --- a/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php +++ b/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use Mockery as m; diff --git a/tests/Omnipay/MultiSafepay/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/MultiSafepay/Message/CompletePurchaseRequestTest.php index e066e9f6..f61a9b63 100644 --- a/tests/Omnipay/MultiSafepay/Message/CompletePurchaseRequestTest.php +++ b/tests/Omnipay/MultiSafepay/Message/CompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/MultiSafepay/Message/FetchIssuersRequestTest.php b/tests/Omnipay/MultiSafepay/Message/FetchIssuersRequestTest.php index 4e432987..d06e85c1 100644 --- a/tests/Omnipay/MultiSafepay/Message/FetchIssuersRequestTest.php +++ b/tests/Omnipay/MultiSafepay/Message/FetchIssuersRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequestTest.php b/tests/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequestTest.php index 72311862..7819cc70 100644 --- a/tests/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequestTest.php +++ b/tests/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php b/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php index 0b0fb401..589b93a0 100644 --- a/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php +++ b/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\MultiSafepay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Netaxept/GatewayTest.php b/tests/Omnipay/Netaxept/GatewayTest.php index ba35017b..fc355a14 100644 --- a/tests/Omnipay/Netaxept/GatewayTest.php +++ b/tests/Omnipay/Netaxept/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Netaxept; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Netaxept/Message/ResponseTest.php b/tests/Omnipay/Netaxept/Message/ResponseTest.php index 5fe1b1ba..88c1585d 100644 --- a/tests/Omnipay/Netaxept/Message/ResponseTest.php +++ b/tests/Omnipay/Netaxept/Message/ResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Netaxept\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/PayFast/GatewayTest.php b/tests/Omnipay/PayFast/GatewayTest.php index 20a1c541..c5674a0c 100644 --- a/tests/Omnipay/PayFast/GatewayTest.php +++ b/tests/Omnipay/PayFast/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayFast; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/PayFast/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/PayFast/Message/CompletePurchaseRequestTest.php index 5eba4acd..bd271099 100644 --- a/tests/Omnipay/PayFast/Message/CompletePurchaseRequestTest.php +++ b/tests/Omnipay/PayFast/Message/CompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayFast\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/PayFast/Message/PurchaseRequestTest.php b/tests/Omnipay/PayFast/Message/PurchaseRequestTest.php index a61a9d45..e6573702 100644 --- a/tests/Omnipay/PayFast/Message/PurchaseRequestTest.php +++ b/tests/Omnipay/PayFast/Message/PurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayFast\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/PayFast/Message/PurchaseResponseTest.php b/tests/Omnipay/PayFast/Message/PurchaseResponseTest.php index e7e9c4eb..b1080892 100644 --- a/tests/Omnipay/PayFast/Message/PurchaseResponseTest.php +++ b/tests/Omnipay/PayFast/Message/PurchaseResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayFast\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/PayPal/ExpressGatewayTest.php b/tests/Omnipay/PayPal/ExpressGatewayTest.php index 2f66c7c5..e033af2c 100644 --- a/tests/Omnipay/PayPal/ExpressGatewayTest.php +++ b/tests/Omnipay/PayPal/ExpressGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php index 66832bf0..87dc03de 100644 --- a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php +++ b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; use Omnipay\Common\CreditCard; diff --git a/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php b/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php index a28537b6..23604c86 100644 --- a/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php +++ b/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/PayPal/Message/ResponseTest.php b/tests/Omnipay/PayPal/Message/ResponseTest.php index 7f2720a5..fdfe84d1 100644 --- a/tests/Omnipay/PayPal/Message/ResponseTest.php +++ b/tests/Omnipay/PayPal/Message/ResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/PayPal/ProGatewayTest.php b/tests/Omnipay/PayPal/ProGatewayTest.php index 46cbdeaa..aec8c7bf 100644 --- a/tests/Omnipay/PayPal/ProGatewayTest.php +++ b/tests/Omnipay/PayPal/ProGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PayPal; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Payflow/Message/ResponseTest.php b/tests/Omnipay/Payflow/Message/ResponseTest.php index d4cf4ddc..3dd0438e 100644 --- a/tests/Omnipay/Payflow/Message/ResponseTest.php +++ b/tests/Omnipay/Payflow/Message/ResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Payflow\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Payflow/ProGatewayTest.php b/tests/Omnipay/Payflow/ProGatewayTest.php index 2b68d93a..e81a6bde 100644 --- a/tests/Omnipay/Payflow/ProGatewayTest.php +++ b/tests/Omnipay/Payflow/ProGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Payflow; use Omnipay\Common\CreditCard; diff --git a/tests/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponseTest.php b/tests/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponseTest.php index dc7a8a44..c0594572 100644 --- a/tests/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponseTest.php +++ b/tests/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/PaymentExpress/Message/ResponseTest.php b/tests/Omnipay/PaymentExpress/Message/ResponseTest.php index 4f968029..7312e031 100644 --- a/tests/Omnipay/PaymentExpress/Message/ResponseTest.php +++ b/tests/Omnipay/PaymentExpress/Message/ResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/PaymentExpress/PxPayGatewayTest.php b/tests/Omnipay/PaymentExpress/PxPayGatewayTest.php index 067558ba..e622700e 100644 --- a/tests/Omnipay/PaymentExpress/PxPayGatewayTest.php +++ b/tests/Omnipay/PaymentExpress/PxPayGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/PaymentExpress/PxPostGatewayTest.php b/tests/Omnipay/PaymentExpress/PxPostGatewayTest.php index 7c3f0b57..e0a4d9c2 100644 --- a/tests/Omnipay/PaymentExpress/PxPostGatewayTest.php +++ b/tests/Omnipay/PaymentExpress/PxPostGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\PaymentExpress; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Pin/GatewayTest.php b/tests/Omnipay/Pin/GatewayTest.php index 60f8ceae..4a3b188d 100644 --- a/tests/Omnipay/Pin/GatewayTest.php +++ b/tests/Omnipay/Pin/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Pin; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Pin/Message/ResponseTest.php b/tests/Omnipay/Pin/Message/ResponseTest.php index 8095176f..419e1f19 100644 --- a/tests/Omnipay/Pin/Message/ResponseTest.php +++ b/tests/Omnipay/Pin/Message/ResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Pin\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/SagePay/DirectGatewayTest.php b/tests/Omnipay/SagePay/DirectGatewayTest.php index 4e9066c3..52dd1b57 100644 --- a/tests/Omnipay/SagePay/DirectGatewayTest.php +++ b/tests/Omnipay/SagePay/DirectGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php b/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php index cda6b3cf..e046a57e 100644 --- a/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php +++ b/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/SagePay/Message/RefundRequestTest.php b/tests/Omnipay/SagePay/Message/RefundRequestTest.php index e45b24bc..21c3200e 100644 --- a/tests/Omnipay/SagePay/Message/RefundRequestTest.php +++ b/tests/Omnipay/SagePay/Message/RefundRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/SagePay/Message/ResponseTest.php b/tests/Omnipay/SagePay/Message/ResponseTest.php index 7cab2290..b3e370f8 100644 --- a/tests/Omnipay/SagePay/Message/ResponseTest.php +++ b/tests/Omnipay/SagePay/Message/ResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/SagePay/Message/ServerAuthorizeResponseTest.php b/tests/Omnipay/SagePay/Message/ServerAuthorizeResponseTest.php index 751f30ef..d3e18893 100644 --- a/tests/Omnipay/SagePay/Message/ServerAuthorizeResponseTest.php +++ b/tests/Omnipay/SagePay/Message/ServerAuthorizeResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php b/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php index 378e77e2..8226cab2 100644 --- a/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php +++ b/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/SagePay/ServerGatewayTest.php b/tests/Omnipay/SagePay/ServerGatewayTest.php index a0e557f9..ff668f42 100644 --- a/tests/Omnipay/SagePay/ServerGatewayTest.php +++ b/tests/Omnipay/SagePay/ServerGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SagePay; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/SecurePay/DirectPostGatewayTest.php b/tests/Omnipay/SecurePay/DirectPostGatewayTest.php index f496423b..f62af6d0 100644 --- a/tests/Omnipay/SecurePay/DirectPostGatewayTest.php +++ b/tests/Omnipay/SecurePay/DirectPostGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/SecurePay/Message/DirectPostAuthorizeRequestTest.php b/tests/Omnipay/SecurePay/Message/DirectPostAuthorizeRequestTest.php index dc2dd8e2..fcd2b717 100644 --- a/tests/Omnipay/SecurePay/Message/DirectPostAuthorizeRequestTest.php +++ b/tests/Omnipay/SecurePay/Message/DirectPostAuthorizeRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequestTest.php b/tests/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequestTest.php index 53a6e936..fecfdfc2 100644 --- a/tests/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequestTest.php +++ b/tests/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/SecurePay/Message/DirectPostPurchaseRequestTest.php b/tests/Omnipay/SecurePay/Message/DirectPostPurchaseRequestTest.php index 6317f0a0..84a859c3 100644 --- a/tests/Omnipay/SecurePay/Message/DirectPostPurchaseRequestTest.php +++ b/tests/Omnipay/SecurePay/Message/DirectPostPurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\SecurePay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Stripe/GatewayTest.php b/tests/Omnipay/Stripe/GatewayTest.php index 2a7a3985..b38a0e98 100644 --- a/tests/Omnipay/Stripe/GatewayTest.php +++ b/tests/Omnipay/Stripe/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/Stripe/Message/AuthorizeRequestTest.php b/tests/Omnipay/Stripe/Message/AuthorizeRequestTest.php index 7e3f28b2..9d5f76dc 100644 --- a/tests/Omnipay/Stripe/Message/AuthorizeRequestTest.php +++ b/tests/Omnipay/Stripe/Message/AuthorizeRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Stripe/Message/CaptureRequestTest.php b/tests/Omnipay/Stripe/Message/CaptureRequestTest.php index d1f7c8b7..6397675f 100644 --- a/tests/Omnipay/Stripe/Message/CaptureRequestTest.php +++ b/tests/Omnipay/Stripe/Message/CaptureRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Stripe/Message/CreateCardRequestTest.php b/tests/Omnipay/Stripe/Message/CreateCardRequestTest.php index e09e174b..7a067aab 100644 --- a/tests/Omnipay/Stripe/Message/CreateCardRequestTest.php +++ b/tests/Omnipay/Stripe/Message/CreateCardRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Stripe/Message/DeleteCardRequestTest.php b/tests/Omnipay/Stripe/Message/DeleteCardRequestTest.php index 9857b3ee..68bedd87 100644 --- a/tests/Omnipay/Stripe/Message/DeleteCardRequestTest.php +++ b/tests/Omnipay/Stripe/Message/DeleteCardRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Stripe/Message/FetchTransactionTest.php b/tests/Omnipay/Stripe/Message/FetchTransactionTest.php index b8110b5f..988b1e71 100644 --- a/tests/Omnipay/Stripe/Message/FetchTransactionTest.php +++ b/tests/Omnipay/Stripe/Message/FetchTransactionTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Stripe/Message/PurchaseRequestTest.php b/tests/Omnipay/Stripe/Message/PurchaseRequestTest.php index 52f12828..3c951eff 100644 --- a/tests/Omnipay/Stripe/Message/PurchaseRequestTest.php +++ b/tests/Omnipay/Stripe/Message/PurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Stripe/Message/RefundRequestTest.php b/tests/Omnipay/Stripe/Message/RefundRequestTest.php index 2df7fa23..a41809da 100644 --- a/tests/Omnipay/Stripe/Message/RefundRequestTest.php +++ b/tests/Omnipay/Stripe/Message/RefundRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Stripe/Message/ResponseTest.php b/tests/Omnipay/Stripe/Message/ResponseTest.php index 871c5cb0..2ee8012e 100644 --- a/tests/Omnipay/Stripe/Message/ResponseTest.php +++ b/tests/Omnipay/Stripe/Message/ResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/Stripe/Message/UpdateCardRequestTest.php b/tests/Omnipay/Stripe/Message/UpdateCardRequestTest.php index c46af31b..42732e38 100644 --- a/tests/Omnipay/Stripe/Message/UpdateCardRequestTest.php +++ b/tests/Omnipay/Stripe/Message/UpdateCardRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\Stripe\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/TargetPay/DirectebankingGatewayTest.php b/tests/Omnipay/TargetPay/DirectebankingGatewayTest.php index 8fcd9bc1..cef20ddb 100644 --- a/tests/Omnipay/TargetPay/DirectebankingGatewayTest.php +++ b/tests/Omnipay/TargetPay/DirectebankingGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/TargetPay/IdealGatewayTest.php b/tests/Omnipay/TargetPay/IdealGatewayTest.php index ff15946d..a2cca15e 100644 --- a/tests/Omnipay/TargetPay/IdealGatewayTest.php +++ b/tests/Omnipay/TargetPay/IdealGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php index dc8ab26e..1b11ded0 100644 --- a/tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php +++ b/tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Mockery as m; diff --git a/tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php index 70cf8339..516574ab 100644 --- a/tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php +++ b/tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php index 59870ed1..2b518d53 100644 --- a/tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php +++ b/tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php b/tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php index 8ed5d616..ffb9a81f 100644 --- a/tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php +++ b/tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php index 4d63765b..b693cdb0 100644 --- a/tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php +++ b/tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php index 4c1fe29e..f74f4049 100644 --- a/tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php +++ b/tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php index f42fc91f..2337cd3c 100644 --- a/tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php +++ b/tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php index 52b14719..715f2abf 100644 --- a/tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php +++ b/tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php index 9bff9248..c833fcb5 100644 --- a/tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php +++ b/tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay\Message; use Mockery as m; diff --git a/tests/Omnipay/TargetPay/MrcashGatewayTest.php b/tests/Omnipay/TargetPay/MrcashGatewayTest.php index 04b24251..c977da2a 100644 --- a/tests/Omnipay/TargetPay/MrcashGatewayTest.php +++ b/tests/Omnipay/TargetPay/MrcashGatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TargetPay; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/TestCase.php b/tests/Omnipay/TestCase.php index c3260040..67738d1c 100644 --- a/tests/Omnipay/TestCase.php +++ b/tests/Omnipay/TestCase.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay; use Mockery as m; diff --git a/tests/Omnipay/TwoCheckout/GatewayTest.php b/tests/Omnipay/TwoCheckout/GatewayTest.php index b04d364d..eb938f48 100644 --- a/tests/Omnipay/TwoCheckout/GatewayTest.php +++ b/tests/Omnipay/TwoCheckout/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TwoCheckout; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/TwoCheckout/Message/CompletePurchaseResponseTest.php b/tests/Omnipay/TwoCheckout/Message/CompletePurchaseResponseTest.php index 4ca2d367..4a89f9c0 100644 --- a/tests/Omnipay/TwoCheckout/Message/CompletePurchaseResponseTest.php +++ b/tests/Omnipay/TwoCheckout/Message/CompletePurchaseResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TwoCheckout\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/TwoCheckout/Message/PurchaseResponseTest.php b/tests/Omnipay/TwoCheckout/Message/PurchaseResponseTest.php index fb5dd826..b553a867 100644 --- a/tests/Omnipay/TwoCheckout/Message/PurchaseResponseTest.php +++ b/tests/Omnipay/TwoCheckout/Message/PurchaseResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\TwoCheckout\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/WorldPay/GatewayTest.php b/tests/Omnipay/WorldPay/GatewayTest.php index 67dd4bb8..087b6561 100644 --- a/tests/Omnipay/WorldPay/GatewayTest.php +++ b/tests/Omnipay/WorldPay/GatewayTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\WorldPay; use Omnipay\GatewayTestCase; diff --git a/tests/Omnipay/WorldPay/Message/CompletePurchaseResponseTest.php b/tests/Omnipay/WorldPay/Message/CompletePurchaseResponseTest.php index 863e8204..4231e2d9 100644 --- a/tests/Omnipay/WorldPay/Message/CompletePurchaseResponseTest.php +++ b/tests/Omnipay/WorldPay/Message/CompletePurchaseResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\WorldPay\Message; use Omnipay\TestCase; diff --git a/tests/Omnipay/WorldPay/Message/PurchaseResponseTest.php b/tests/Omnipay/WorldPay/Message/PurchaseResponseTest.php index f3864cbc..c3efbda6 100644 --- a/tests/Omnipay/WorldPay/Message/PurchaseResponseTest.php +++ b/tests/Omnipay/WorldPay/Message/PurchaseResponseTest.php @@ -1,14 +1,5 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace Omnipay\WorldPay\Message; use Omnipay\TestCase; From 4de6c429661af33ce6323d9a58f60b4e82fcf35d Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Fri, 11 Oct 2013 10:03:59 +1100 Subject: [PATCH 022/333] Print composer version during CI builds --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index ddc250e3..ca0329fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ env: before_script: - composer self-update + - composer --version - composer require symfony/http-foundation:${SYMFONY_VERSION} --no-update - composer require guzzle/http:${GUZZLE_VERSION} --no-update - composer install -n --dev --prefer-source From 2922cdb2f7e4b556e66b804db8a6b28ae2b69e6e Mon Sep 17 00:00:00 2001 From: Alexander Deruwe Date: Wed, 16 Oct 2013 11:29:00 +0200 Subject: [PATCH 023/333] Add contributors to "authors" section of composer.json --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index 16d6bff3..c9c690e0 100644 --- a/composer.json +++ b/composer.json @@ -48,6 +48,10 @@ { "name": "Adrian Macneil", "email": "adrian@adrianmacneil.com" + }, + { + "name": "Omnipay Community", + "homepage": "https://github.com/adrianmacneil/omnipay/graphs/contributors" } ], "autoload": { From 69838b77b52aa58881ca215667a07aaec371c140 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Fri, 18 Oct 2013 10:15:19 +0200 Subject: [PATCH 024/333] IDEAL now uses to speed things up --- .../MultiSafepay/Message/PurchaseRequest.php | 19 +++++++++----- .../MultiSafepay/Message/PurchaseResponse.php | 10 +++++-- .../Message/PurchaseRequestTest.php | 26 +++++++++---------- 3 files changed, 33 insertions(+), 22 deletions(-) diff --git a/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php b/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php index fcadd9ab..6badcd9c 100644 --- a/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php +++ b/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php @@ -94,7 +94,12 @@ public function getData() { $this->validate('transactionId', 'amount', 'currency', 'description', 'clientIp', 'card'); - $data = new SimpleXMLElement(''); + if ('IDEAL' === $this->getGateway() && $this->getIssuer()) { + $data = new SimpleXMLElement(''); + } else { + $data = new SimpleXMLElement(''); + } + $data->addAttribute('ua', $this->userAgent); $merchant = $data->addChild('merchant'); @@ -104,12 +109,6 @@ public function getData() $merchant->addChild('notification_url', htmlspecialchars($this->getNotifyUrl())); $merchant->addChild('cancel_url', htmlspecialchars($this->getCancelUrl())); $merchant->addChild('redirect_url', htmlspecialchars($this->getReturnUrl())); - $merchant->addChild('gateway', $this->getGateway()); - - if ('IDEAL' === $this->getGateway() && $this->getIssuer()) { - $gatewayInfo = $data->addChild('gatewayinfo'); - $gatewayInfo->addChild('issuerid', $this->getIssuer()); - } /** @var CreditCard $card */ $card = $this->getCard(); @@ -137,6 +136,12 @@ public function getData() $transaction->addChild('var2', $this->getExtraData2()); $transaction->addChild('var3', $this->getExtraData3()); $transaction->addChild('items', $this->getItems()); + $transaction->addChild('gateway', $this->getGateway()); + + if ('IDEAL' === $this->getGateway() && $this->getIssuer()) { + $gatewayInfo = $data->addChild('gatewayinfo'); + $gatewayInfo->addChild('issuerid', $this->getIssuer()); + } $data->addChild('signature', $this->generateSignature()); diff --git a/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php b/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php index 577b6c43..a6ce45ed 100644 --- a/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php +++ b/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php @@ -27,7 +27,7 @@ public function isSuccessful() */ public function isRedirect() { - return isset($this->data->transaction->payment_url); + return isset($this->data->transaction->payment_url) || isset($this->data->gatewayinfo->redirecturl); } /** @@ -35,7 +35,13 @@ public function isRedirect() */ public function getRedirectUrl() { - return $this->isRedirect() ? (string) $this->data->transaction->payment_url : null; + if (isset($this->data->gatewayinfo->redirecturl)) { + return (string) $this->data->gatewayinfo->redirecturl; + } elseif (isset($this->data->transaction->payment_url)) { + return (string) $this->data->transaction->payment_url; + } + + return null; } /** diff --git a/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php b/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php index 589b93a0..fabef147 100644 --- a/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php +++ b/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php @@ -134,7 +134,7 @@ public function allDataProvider() { $xml = << - + 111111 222222 @@ -142,11 +142,7 @@ public function allDataProvider() http://localhost/notify http://localhost/cancel http://localhost/return - IDEAL - - issuer - 127.0.0.1 a language @@ -170,9 +166,13 @@ public function allDataProvider() extra 2 extra 3 the items + IDEAL + + issuer + ad447bab87b8597853432c891e341db1 - + EOF; @@ -193,7 +193,6 @@ public function noIssuerDataProvider() http://localhost/notify http://localhost/cancel http://localhost/return - another 127.0.0.1 @@ -218,6 +217,7 @@ public function noIssuerDataProvider() extra 2 extra 3 the items + another ad447bab87b8597853432c891e341db1 @@ -233,7 +233,7 @@ public function specialCharsDataProvider() { $xml = << - + 111111 222222 @@ -241,11 +241,7 @@ public function specialCharsDataProvider() http://localhost/?one=1&two=2 http://localhost/?one=1&two=2 http://localhost/?one=1&two=2 - IDEAL - - issuer - 127.0.0.1 a language @@ -269,9 +265,13 @@ public function specialCharsDataProvider() extra 2 extra 3 the items + IDEAL + + issuer + ad447bab87b8597853432c891e341db1 - + EOF; From 6bd6fe308a404d0e8357ab507f03ea8a2c8fbb6b Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 19 Oct 2013 10:21:25 -0700 Subject: [PATCH 025/333] CS fix --- src/Omnipay/AuthorizeNet/SIMGateway.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Omnipay/AuthorizeNet/SIMGateway.php b/src/Omnipay/AuthorizeNet/SIMGateway.php index 3bd6b123..1ef4b4af 100644 --- a/src/Omnipay/AuthorizeNet/SIMGateway.php +++ b/src/Omnipay/AuthorizeNet/SIMGateway.php @@ -33,7 +33,6 @@ public function setHashSecret($value) return $this->setParameter('hashSecret', $value); } - public function authorize(array $parameters = array()) { return $this->createRequest('\Omnipay\AuthorizeNet\Message\SIMAuthorizeRequest', $parameters); From 3c957cb44e383378a9ba9fa604c4da502deb747e Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 19 Oct 2013 10:21:33 -0700 Subject: [PATCH 026/333] Add v1.1.0 release notes --- CHANGELOG.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a338d58..d616da6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog :zap: +# v1.1.0 (2013-10-19) + +* Paypal [BC BREAK]: Removed default value `1` for `noShipping` option and added `allowNote` option. + To retain previous behavior, pass `'noShipping' => 1` when creating the request. (@aderuwe) +* Add TargetPay gateway (@aderuwe) +* MultiSafepay: Add purchase parameter (@aderuwe) +* MultiSafepay: Add support for directtransaction (@ruudk) +* Authorize.Net SIM: Add support for hash secret (@amsross) +* Authorize.Net AIM: Add extra response getters +* Sage Pay Direct: Don't pass state unless country is US + +# v1.0.4 (2013-09-20) + +* Update Pin gateway to support using JS tokens (@nagash) +* More tests (@johnkary) + # v1.0.3 (2013-08-28) * Stripe: Added fetchTransaction method (@cfreear) From aac7a5aa1bf1cad43e9ff37d9fda8980157ba224 Mon Sep 17 00:00:00 2001 From: Andy Coates Date: Sat, 19 Oct 2013 12:09:25 -0700 Subject: [PATCH 027/333] Add First Data Connect gateway. Closes #139 --- README.md | 1 + composer.json | 2 + src/Omnipay/FirstData/ConnectGateway.php | 52 ++++++++++ .../Message/CompletePurchaseRequest.php | 51 ++++++++++ .../Message/CompletePurchaseResponse.php | 26 +++++ .../FirstData/Message/PurchaseRequest.php | 89 +++++++++++++++++ .../FirstData/Message/PurchaseResponse.php | 37 +++++++ tests/Omnipay/FirstData/GatewayTest.php | 96 +++++++++++++++++++ .../Message/CompletePurchaseResponseTest.php | 48 ++++++++++ .../Message/PurchaseResponseTest.php | 22 +++++ 10 files changed, 424 insertions(+) create mode 100644 src/Omnipay/FirstData/ConnectGateway.php create mode 100644 src/Omnipay/FirstData/Message/CompletePurchaseRequest.php create mode 100644 src/Omnipay/FirstData/Message/CompletePurchaseResponse.php create mode 100644 src/Omnipay/FirstData/Message/PurchaseRequest.php create mode 100644 src/Omnipay/FirstData/Message/PurchaseResponse.php create mode 100644 tests/Omnipay/FirstData/GatewayTest.php create mode 100644 tests/Omnipay/FirstData/Message/CompletePurchaseResponseTest.php create mode 100644 tests/Omnipay/FirstData/Message/PurchaseResponseTest.php diff --git a/README.md b/README.md index 4536fed5..0dcef779 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ The following gateways are already implemented: * CardSave * Dummy * eWAY Rapid 3.0 +* First Data Connect * GoCardless * Manual * Migs 2-Party diff --git a/composer.json b/composer.json index c9c690e0..326795e0 100644 --- a/composer.json +++ b/composer.json @@ -15,6 +15,8 @@ "egate", "eway", "express", + "first data", + "firstdata", "gateway", "gocardless", "ideal", diff --git a/src/Omnipay/FirstData/ConnectGateway.php b/src/Omnipay/FirstData/ConnectGateway.php new file mode 100644 index 00000000..e0516cbd --- /dev/null +++ b/src/Omnipay/FirstData/ConnectGateway.php @@ -0,0 +1,52 @@ + '', + 'sharedSecret' => '', + 'testMode' => false, + ); + } + + public function setStoreId($value) + { + return $this->setParameter('storeId', $value); + } + + public function getStoreId() + { + return $this->getParameter('storeId'); + } + + public function setSharedSecret($value) + { + return $this->setParameter('sharedSecret', $value); + } + + public function getSharedSecret() + { + return $this->getParameter('sharedSecret'); + } + + public function purchase(array $parameters = array()) + { + return $this->createRequest('\Omnipay\FirstData\Message\PurchaseRequest', $parameters); + } + + public function completePurchase(array $parameters = array()) + { + return $this->createRequest('\Omnipay\FirstData\Message\CompletePurchaseRequest', $parameters); + } +} diff --git a/src/Omnipay/FirstData/Message/CompletePurchaseRequest.php b/src/Omnipay/FirstData/Message/CompletePurchaseRequest.php new file mode 100644 index 00000000..ac99a4d7 --- /dev/null +++ b/src/Omnipay/FirstData/Message/CompletePurchaseRequest.php @@ -0,0 +1,51 @@ +httpRequest->request->get('response_hash'); + $dateTime = (string) $this->httpRequest->request->get('txndatetime'); + $amount = (string) $this->httpRequest->request->get('chargetotal'); + $code = (string) $this->httpRequest->request->get('approval_code'); + $ourHash = $this->createResponseHash($amount, $dateTime, $code); + if ($theirHash !== $ourHash) { + throw new InvalidResponseException("Callback hash does not match expected value"); + } + + return $this->httpRequest->request->all(); + } + + public function send() + { + return $this->response = new CompletePurchaseResponse($this, $this->getData()); + } + + /** + * Generate a hash string that matches the format of the one returned by the payment gateway + * @param string $amount + * @param string $dateTime + * @param string $code + * @return string + */ + public function createResponseHash($amount, $dateTime, $code) + { + $this->validate('storeId', 'sharedSecret', 'currency'); + + $storeId = $this->getStoreId(); + $sharedSecret = $this->getSharedSecret(); + $currency = $this->getCurrencyNumeric(); + + $stringToHash = $sharedSecret . $code . $amount . $currency . $dateTime . $storeId; + $ascii = bin2hex($stringToHash); + + return sha1($ascii); + } +} diff --git a/src/Omnipay/FirstData/Message/CompletePurchaseResponse.php b/src/Omnipay/FirstData/Message/CompletePurchaseResponse.php new file mode 100644 index 00000000..0293650d --- /dev/null +++ b/src/Omnipay/FirstData/Message/CompletePurchaseResponse.php @@ -0,0 +1,26 @@ +data['status']) && $this->data['status'] == 'APPROVED'; + } + + public function getTransactionReference() + { + return isset($this->data['oid']) ? $this->data['oid'] : null; + } + + public function getMessage() + { + return isset($this->data['status']) ? $this->data['status'] : null; + } +} diff --git a/src/Omnipay/FirstData/Message/PurchaseRequest.php b/src/Omnipay/FirstData/Message/PurchaseRequest.php new file mode 100644 index 00000000..e49ce35b --- /dev/null +++ b/src/Omnipay/FirstData/Message/PurchaseRequest.php @@ -0,0 +1,89 @@ +getParameter('storeId'); + } + + public function setStoreId($value) + { + return $this->setParameter('storeId', $value); + } + + public function setSharedSecret($value) + { + return $this->setParameter('sharedSecret', $value); + } + + public function getSharedSecret() + { + return $this->getParameter('sharedSecret'); + } + + public function getData() + { + $this->validate('amount', 'card'); + + $data = array(); + $data['storename'] = $this->getStoreId(); + $data['txntype'] = 'sale'; + $data['timezone'] = 'GMT'; + $data['chargetotal'] = $this->getAmount(); + $data['txndatetime'] = $this->getDateTime(); + $data['hash'] = $this->createHash($data['txndatetime'], $data['chargetotal']); + $data['currency'] = $this->getCurrencyNumeric(); + $data['mode'] = 'payonly'; + $data['full_bypass'] = 'true'; + $data['oid'] = $this->getParameter('transactionId'); + + $this->getCard()->validate(); + + $data['cardnumber'] = $this->getCard()->getNumber(); + $data['cvm'] = $this->getCard()->getCvv(); + $data['expmonth'] = $this->getCard()->getExpiryDate('m'); + $data['expyear'] = $this->getCard()->getExpiryDate('y'); + + $data['responseSuccessURL'] = $this->getParameter('returnUrl'); + $data['responseFailURL'] = $this->getParameter('returnUrl'); + + return $data; + } + + public function createHash($dateTime, $amount) + { + $storeId = $this->getStoreId(); + $sharedSecret = $this->getSharedSecret(); + $currency = $this->getCurrencyNumeric(); + $stringToHash = $storeId . $dateTime . $amount . $currency . $sharedSecret; + $ascii = bin2hex($stringToHash); + + return sha1($ascii); + } + + public function send() + { + return $this->response = new PurchaseResponse($this, $this->getData()); + } + + public function getEndpoint() + { + return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; + } +} diff --git a/src/Omnipay/FirstData/Message/PurchaseResponse.php b/src/Omnipay/FirstData/Message/PurchaseResponse.php new file mode 100644 index 00000000..829c0cfe --- /dev/null +++ b/src/Omnipay/FirstData/Message/PurchaseResponse.php @@ -0,0 +1,37 @@ +getRequest()->getEndpoint(); + } + + public function getRedirectMethod() + { + return 'POST'; + } + + public function getRedirectData() + { + return $this->data; + } +} diff --git a/tests/Omnipay/FirstData/GatewayTest.php b/tests/Omnipay/FirstData/GatewayTest.php new file mode 100644 index 00000000..e6d3a4e9 --- /dev/null +++ b/tests/Omnipay/FirstData/GatewayTest.php @@ -0,0 +1,96 @@ +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' + ); + } + + public function testPurchase() + { + $response = $this->gateway->purchase($this->options)->send(); + + $this->assertFalse($response->isSuccessful()); + $this->assertTrue($response->isRedirect()); + $this->assertNull($response->getTransactionReference()); + $this->assertContains('ipg-online.com/connect/gateway/processing', $response->getRedirectUrl()); + } + + public function testCompletePurchaseSuccess() + { + $this->getHttpRequest()->request->replace( + array( + 'chargetotal' => '110.00', + 'response_hash' => '796d7ca236576256236e92900dedfd55be08567a', + 'status' => 'APPROVED', + 'oid' => 'abc123456', + 'txndatetime' => '2013:09:27-16:06:26', + 'approval_code' => 'Y:136432:0013649958:PPXM:0015' + ) + ); + + $response = $this->gateway->completePurchase($this->options)->send(); + + $this->assertTrue($response->isSuccessful()); + $this->assertFalse($response->isRedirect()); + $this->assertEquals('abc123456', $response->getTransactionReference()); + $this->assertSame('APPROVED', $response->getMessage()); + } + + /** + * @expectedException \Omnipay\Common\Exception\InvalidResponseException + */ + public function testCompletePurchaseInvalidCallbackPassword() + { + $this->getHttpRequest()->request->replace( + array( + 'chargetotal' => '110.00', + 'response_hash' => 'FAKE', + 'status' => 'APPROVED', + 'oid' => 'abc123456', + 'txndatetime' => '2013:09:27-16:06:26', + 'approval_code' => 'Y:136432:0013649958:PPXM:0015' + ) + ); + + $response = $this->gateway->completePurchase($this->options)->send(); + } + + public function testCompletePurchaseError() + { + $this->getHttpRequest()->request->replace( + array( + 'chargetotal' => '110.00', + 'response_hash' => '0dfe9e4b3c6306343926207a8814a48f72087cc7', + 'status' => 'DECLINED', + 'oid' => 'abc1234', + 'txndatetime' => '2013:09:27-16:00:19', + 'approval_code' => 'N:05:DECLINED' + ) + ); + + $response = $this->gateway->completePurchase($this->options)->send(); + + $this->assertFalse($response->isSuccessful()); + $this->assertFalse($response->isRedirect()); + $this->assertEquals('abc1234', $response->getTransactionReference()); + $this->assertSame('DECLINED', $response->getMessage()); + } +} diff --git a/tests/Omnipay/FirstData/Message/CompletePurchaseResponseTest.php b/tests/Omnipay/FirstData/Message/CompletePurchaseResponseTest.php new file mode 100644 index 00000000..1875a1fd --- /dev/null +++ b/tests/Omnipay/FirstData/Message/CompletePurchaseResponseTest.php @@ -0,0 +1,48 @@ +getMockRequest(), + array( + 'chargetotal' => '110.00', + 'response_hash' => '796d7ca236576256236e92900dedfd55be08567a', + 'status' => 'APPROVED', + 'oid' => 'abc123456', + 'txndatetime' => '2013:09:27-16:06:26', + 'approval_code' => 'Y:136432:0013649958:PPXM:0015' + ) + ); + + $this->assertTrue($response->isSuccessful()); + $this->assertFalse($response->isRedirect()); + $this->assertSame('abc123456', $response->getTransactionReference()); + $this->assertSame('APPROVED', $response->getMessage()); + } + + public function testCompletePurchaseFailure() + { + $response = new CompletePurchaseresponse( + $this->getMockRequest(), + array( + 'chargetotal' => '110.00', + 'response_hash' => '0dfe9e4b3c6306343926207a8814a48f72087cc7', + 'status' => 'DECLINED', + 'oid' => 'abc1234', + 'txndatetime' => '2013:09:27-16:00:19', + 'approval_code' => 'N:05:DECLINED' + ) + ); + + $this->assertFalse($response->isSuccessful()); + $this->assertFalse($response->isRedirect()); + $this->assertSame('abc1234', $response->getTransactionReference()); + $this->assertSame('DECLINED', $response->getMessage()); + } +} diff --git a/tests/Omnipay/FirstData/Message/PurchaseResponseTest.php b/tests/Omnipay/FirstData/Message/PurchaseResponseTest.php new file mode 100644 index 00000000..f23028e9 --- /dev/null +++ b/tests/Omnipay/FirstData/Message/PurchaseResponseTest.php @@ -0,0 +1,22 @@ +getMockRequest(), array( + 'amount' => 1000, + 'returnUrl' => 'https://www.example.com/return', + )); + + $this->assertFalse($response->isSuccessful()); + $this->assertTrue($response->isRedirect()); + $this->assertNull($response->getTransactionReference()); + $this->assertNull($response->getMessage()); + $this->assertSame('POST', $response->getRedirectMethod()); + } +} From f48445040915dfc31d8c563a3f7efed6d724a3d0 Mon Sep 17 00:00:00 2001 From: Alexander Deruwe Date: Mon, 21 Oct 2013 09:20:08 +0200 Subject: [PATCH 028/333] Update branch-alias to point to 1.1.x --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 326795e0..5266a6ee 100644 --- a/composer.json +++ b/composer.json @@ -74,7 +74,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } } } From f6fe3aa2446f6ba585d2afb90741eb6138ad6069 Mon Sep 17 00:00:00 2001 From: Mark Tudor Date: Thu, 24 Oct 2013 10:57:30 +0100 Subject: [PATCH 029/333] Added a missing use statement for the InvalidResponseException in DirectCompleteAuthorizeRequest. --- src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php b/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php index 42bad718..287f0316 100644 --- a/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php +++ b/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php @@ -2,6 +2,8 @@ namespace Omnipay\SagePay\Message; +use Omnipay\Common\Exception\InvalidResponseException; + /** * Sage Pay Direct Complete Authorize Request */ From 41b9f162095b78521232fc7778cc3ad2f122e438 Mon Sep 17 00:00:00 2001 From: Daniel Chesterton Date: Sat, 26 Oct 2013 08:15:14 +1100 Subject: [PATCH 030/333] Add support for SagePay ERROR and INVALID responses. Closes #120 --- .../ServerCompleteAuthorizeResponse.php | 80 +++++++++++++++++-- .../ServerCompleteAuthorizeResponseTest.php | 41 ++++++++++ 2 files changed, 115 insertions(+), 6 deletions(-) diff --git a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php b/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php index d27d43ae..ca803506 100644 --- a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php +++ b/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php @@ -29,23 +29,91 @@ public function getTransactionReference() /** * Confirm (Sage Pay Server only) * + * Notify Sage Pay you received the payment details and wish to confirm the payment, and + * provide a URL to forward the customer to. + * + * @param string URL to forward the customer to. Note this is different to your standard + * return controller action URL. + * @param string Optional human readable reasons for accepting the transaction. + */ + public function confirm($nextUrl, $detail = null) + { + $this->sendResponse('OK', $nextUrl, $detail); + } + + /** + * Error (Sage Pay Server only) + * + * Notify Sage Pay you received the payment details but there was an error and the payment + * cannot be completed. Error should be called rarely, and only when something unforseen + * has happened on your server or database. + * + * @param string URL to foward the customer to. Note this is different to your standard + * return controller action URL. + * @param string Optional human readable reasons for not accepting the transaction. + */ + public function error($nextUrl, $detail = null) + { + $this->sendResponse('ERROR', $nextUrl, $detail); + } + + /** + * Invalid (Sage Pay Server only) + * + * Notify Sage Pay you received the payment details but they were invalid and the payment + * cannot be completed. Invalid should be called if you are not happy with the contents + * of the POST, such as the MD5 hash signatures did not match or you do not wish to proceed + * with the order. + * + * @param string URL to foward the customer to. Note this is different to your standard + * return controller action URL. + * @param string Optional human readable reasons for not accepting the transaction. + */ + public function invalid($nextUrl, $detail = null) + { + $this->sendResponse('INVALID', $nextUrl, $detail); + } + + /** + * Respond to SagePay confirming or rejecting the payment. + * * Sage Pay Server does things backwards compared to every other gateway (including Sage Pay * Direct). The return URL is called by their server, and they expect you to confirm receipt * and then pass a URL for them to forward the customer to. * * Because of this, an extra step is required. In your return controller, after calling - * $gateway->completePurchase(), you should update your database with details of the - * successful payment. You must then call $response->confirm() to notify Sage Pay you - * received the payment details, and provide a URL to forward the customer to. + * $gateway->completePurchase(), you should attempt to process the payment. You must then call + * either $response->confirm(), $response->error() or $response->invalid() to notify Sage Pay + * whether to complete the payment or not, and provide a URL to forward the customer to. * * Keep in mind your original confirmPurchase() script is being called by Sage Pay, not * the customer. * - * @param string URL to foward the customer to. Note this is different to your standard + * @param string The status to send to Sage Pay, either OK, INVALID or ERROR. + * @param string URL to forward the customer to. Note this is different to your standard * return controller action URL. + * @param string Optional human readable reasons for accepting the transaction. + */ + public function sendResponse($status, $nextUrl, $detail = null) + { + $message = "Status=$status\r\nRedirectUrl=$nextUrl"; + + if (null !== $detail) { + $message .= "\r\nStatusDetail=".$detail; + } + + $this->exitWith($message); + } + + /** + * Exit to ensure no other HTML, headers, comments, or text are included. + * + * @access private + * @codeCoverageIgnore */ - public function confirm($nextUrl) + public function exitWith($message) { - exit("Status=OK\r\nRedirectUrl=".$nextUrl); + echo $message; + exit; } } diff --git a/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php b/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php index 8226cab2..173dd173 100644 --- a/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php +++ b/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php @@ -3,6 +3,7 @@ namespace Omnipay\SagePay\Message; use Omnipay\TestCase; +use Mockery as m; class ServerCompleteAuthorizeResponseTest extends TestCase { @@ -45,4 +46,44 @@ public function testServerCompleteAuthorizeResponseFailure() $this->assertNull($response->getTransactionReference()); $this->assertNull($response->getMessage()); } + + public function testConfirm() + { + $response = m::mock('\Omnipay\SagePay\Message\ServerCompleteAuthorizeResponse[sendResponse]'); + $response->shouldReceive('sendResponse')->once()->with('OK', 'https://www.example.com/', 'detail'); + + $response->confirm('https://www.example.com/', 'detail'); + } + + public function testError() + { + $response = m::mock('\Omnipay\SagePay\Message\ServerCompleteAuthorizeResponse[sendResponse]'); + $response->shouldReceive('sendResponse')->once()->with('ERROR', 'https://www.example.com/', 'detail'); + + $response->error('https://www.example.com/', 'detail'); + } + + public function testInvalid() + { + $response = m::mock('\Omnipay\SagePay\Message\ServerCompleteAuthorizeResponse[sendResponse]'); + $response->shouldReceive('sendResponse')->once()->with('INVALID', 'https://www.example.com/', 'detail'); + + $response->invalid('https://www.example.com/', 'detail'); + } + + public function testSendResponse() + { + $response = m::mock('\Omnipay\SagePay\Message\ServerCompleteAuthorizeResponse[exitWith]'); + $response->shouldReceive('exitWith')->once()->with("Status=FOO\r\nRedirectUrl=https://www.example.com/"); + + $response->sendResponse('FOO', 'https://www.example.com/'); + } + + public function testSendResponseDetail() + { + $response = m::mock('\Omnipay\SagePay\Message\ServerCompleteAuthorizeResponse[exitWith]'); + $response->shouldReceive('exitWith')->once()->with("Status=FOO\r\nRedirectUrl=https://www.example.com/\r\nStatusDetail=Bar"); + + $response->sendResponse('FOO', 'https://www.example.com/', 'Bar'); + } } From f25a32c271e6cfb361f17eb92337624523327a7c Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 26 Oct 2013 17:30:11 +1100 Subject: [PATCH 031/333] Add Item and ItemBag classes --- src/Omnipay/Common/Item.php | 121 ++++++++++++++++++ src/Omnipay/Common/ItemBag.php | 81 ++++++++++++ src/Omnipay/Common/ItemInterface.php | 29 +++++ .../Common/Message/AbstractRequest.php | 25 ++++ tests/Omnipay/Common/ItemBagTest.php | 75 +++++++++++ tests/Omnipay/Common/ItemTest.php | 55 ++++++++ .../Common/Message/AbstractRequestTest.php | 25 ++++ 7 files changed, 411 insertions(+) create mode 100644 src/Omnipay/Common/Item.php create mode 100644 src/Omnipay/Common/ItemBag.php create mode 100644 src/Omnipay/Common/ItemInterface.php create mode 100644 tests/Omnipay/Common/ItemBagTest.php create mode 100644 tests/Omnipay/Common/ItemTest.php diff --git a/src/Omnipay/Common/Item.php b/src/Omnipay/Common/Item.php new file mode 100644 index 00000000..f5743b3a --- /dev/null +++ b/src/Omnipay/Common/Item.php @@ -0,0 +1,121 @@ +initialize($parameters); + } + + /** + * Initialize this item with the specified parameters + * + * @param array|null $parameters An array of parameters to set on this object + */ + public function initialize($parameters = null) + { + $this->parameters = new ParameterBag; + + Helper::initialize($this, $parameters); + + return $this; + } + + public function getParameters() + { + return $this->parameters->all(); + } + + protected function getParameter($key) + { + return $this->parameters->get($key); + } + + protected function setParameter($key, $value) + { + $this->parameters->set($key, $value); + + return $this; + } + + /** + * {@inheritDoc} + */ + public function getName() + { + return $this->getParameter('name'); + } + + /** + * Set the item name + */ + public function setName($value) + { + return $this->setParameter('name', $value); + } + + /** + * {@inheritDoc} + */ + public function getSku() + { + return $this->getParameter('sku'); + } + + /** + * Set the item SKU + */ + public function setSku($value) + { + return $this->setParameter('sku', $value); + } + + /** + * {@inheritDoc} + */ + public function getQuantity() + { + return $this->getParameter('quantity'); + } + + /** + * Set the item quantity + */ + public function setQuantity($value) + { + return $this->setParameter('quantity', $value); + } + + /** + * {@inheritDoc} + */ + public function getPrice() + { + return $this->getParameter('price'); + } + + /** + * Set the item price + */ + public function setPrice($value) + { + return $this->setParameter('price', $value); + } +} diff --git a/src/Omnipay/Common/ItemBag.php b/src/Omnipay/Common/ItemBag.php new file mode 100644 index 00000000..d5caa28b --- /dev/null +++ b/src/Omnipay/Common/ItemBag.php @@ -0,0 +1,81 @@ +replace($items); + } + + /** + * Return all the items + * + * @return array An array of items + */ + public function all() + { + return $this->items; + } + + /** + * Replace the contents of this bag with the specified items + * + * @param array $items An array of items + */ + public function replace(array $items = array()) + { + $this->items = array(); + + foreach ($items as $item) { + $this->add($item); + } + } + + /** + * Add an item to the bag + * + * @param ItemInterface|array $item An existing item, or associative array of item parameters + */ + public function add($item) + { + if ($item instanceof ItemInterface) { + $this->items[] = $item; + } else { + $this->items[] = new Item($item); + } + } + + /** + * Returns an iterator for items + * + * @return \ArrayIterator An \ArrayIterator instance + */ + public function getIterator() + { + return new \ArrayIterator($this->items); + } + + /** + * Returns the number of items + * + * @return int The number of items + */ + public function count() + { + return count($this->items); + } +} diff --git a/src/Omnipay/Common/ItemInterface.php b/src/Omnipay/Common/ItemInterface.php new file mode 100644 index 00000000..b11b450c --- /dev/null +++ b/src/Omnipay/Common/ItemInterface.php @@ -0,0 +1,29 @@ +setParameter('transactionReference', $value); } + /** + * A list of items in this order + * + * @return ItemBag|null A bag containing items in this order + */ + public function getItems() + { + return $this->getParameter('items'); + } + + /** + * Set the items in this order + * + * @param ItemBag|array $items An array of items in this order + */ + public function setItems($items) + { + if ($items && !$items instanceof ItemBag) { + $items = new ItemBag($items); + } + + return $this->setParameter('items', $items); + } + public function getClientIp() { return $this->getParameter('clientIp'); diff --git a/tests/Omnipay/Common/ItemBagTest.php b/tests/Omnipay/Common/ItemBagTest.php new file mode 100644 index 00000000..d073bc94 --- /dev/null +++ b/tests/Omnipay/Common/ItemBagTest.php @@ -0,0 +1,75 @@ +bag = new ItemBag; + } + + public function testConstruct() + { + $bag = new ItemBag(array(array('name' => 'Floppy Disk'))); + $this->assertCount(1, $bag); + } + + public function testAll() + { + $items = array(new Item, new Item); + $bag = new ItemBag($items); + + $this->assertSame($items, $bag->all()); + } + + public function testReplace() + { + $items = array(new Item, new Item); + $this->bag->replace($items); + + $this->assertSame($items, $this->bag->all()); + } + + public function testAddWithItem() + { + $item = new Item; + $item->setName('CD-ROM'); + $this->bag->add($item); + + $contents = $this->bag->all(); + $this->assertSame($item, $contents[0]); + } + + public function testAddWithArray() + { + $item = array('name' => 'CD-ROM'); + $this->bag->add($item); + + $contents = $this->bag->all(); + $this->assertInstanceOf('\Omnipay\Common\Item', $contents[0]); + $this->assertSame('CD-ROM', $contents[0]->getName()); + } + + public function testGetIterator() + { + $item = new Item; + $item->setName('CD-ROM'); + $this->bag->add($item); + + foreach ($this->bag as $bagItem) { + $this->assertSame($item, $bagItem); + } + } + + public function testCount() + { + $this->bag->add(new Item); + $this->bag->add(new Item); + $this->bag->add(new Item); + + $this->assertSame(3, count($this->bag)); + } +} diff --git a/tests/Omnipay/Common/ItemTest.php b/tests/Omnipay/Common/ItemTest.php new file mode 100644 index 00000000..09dbcdc5 --- /dev/null +++ b/tests/Omnipay/Common/ItemTest.php @@ -0,0 +1,55 @@ +item = new Item; + } + + public function testConstructWithParams() + { + $item = new Item(array('name' => 'Floppy Disk')); + $this->assertSame('Floppy Disk', $item->getName()); + } + + public function testInitializeWithParams() + { + $this->item->initialize(array('name' => 'Floppy Disk')); + $this->assertSame('Floppy Disk', $this->item->getName()); + } + + public function testGetParameters() + { + $this->item->setName('CD-ROM'); + $this->assertSame(array('name' => 'CD-ROM'), $this->item->getParameters()); + } + + public function testName() + { + $this->item->setName('CD-ROM'); + $this->assertSame('CD-ROM', $this->item->getName()); + } + + public function testSku() + { + $this->item->setSku('CD'); + $this->assertSame('CD', $this->item->getSku()); + } + + public function testQuantity() + { + $this->item->setQuantity(5); + $this->assertSame(5, $this->item->getQuantity()); + } + + public function testPrice() + { + $this->item->setPrice('10.01'); + $this->assertSame('10.01', $this->item->getPrice()); + } +} diff --git a/tests/Omnipay/Common/Message/AbstractRequestTest.php b/tests/Omnipay/Common/Message/AbstractRequestTest.php index e7b8da61..d4929041 100644 --- a/tests/Omnipay/Common/Message/AbstractRequestTest.php +++ b/tests/Omnipay/Common/Message/AbstractRequestTest.php @@ -4,6 +4,7 @@ use Mockery as m; use Omnipay\Common\CreditCard; +use Omnipay\Common\ItemBag; use Omnipay\TestCase; class AbstractRequestTest extends TestCase @@ -157,6 +158,30 @@ public function testTransactionReference() $this->assertSame('xyz', $this->request->getTransactionReference()); } + public function testItemsArray() + { + $this->assertSame($this->request, $this->request->setItems(array( + array('name' => 'Floppy Disk'), + array('name' => 'CD-ROM'), + ))); + + $itemBag = $this->request->getItems(); + $this->assertInstanceOf('\Omnipay\Common\ItemBag', $itemBag); + + $items = $itemBag->all(); + $this->assertSame('Floppy Disk', $items[0]->getName()); + $this->assertSame('CD-ROM', $items[1]->getName()); + } + + public function testItemsBag() + { + $itemBag = new ItemBag; + $itemBag->add(array('name' => 'Floppy Disk')); + + $this->assertSame($this->request, $this->request->setItems($itemBag)); + $this->assertSame($itemBag, $this->request->getItems()); + } + public function testClientIp() { $this->assertSame($this->request, $this->request->setClientIp('127.0.0.1')); From 5ff842e60ae5cb18a90a1190ab3a83be44b0fb54 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 26 Oct 2013 17:55:22 +1100 Subject: [PATCH 032/333] Add PayPal Express line items --- .../PayPal/Message/ExpressAuthorizeRequest.php | 9 +++++++++ .../Message/ExpressAuthorizeRequestTest.php | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php b/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php index 578eaad7..7a5d815c 100644 --- a/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php +++ b/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php @@ -50,6 +50,15 @@ public function getData() $data['EMAIL'] = $card->getEmail(); } + $items = $this->getItems(); + if ($items) { + foreach ($items as $n => $item) { + $data["PAYMENTREQUEST_0_NAME$n"] = $item->getName(); + $data["PAYMENTREQUEST_0_QTY$n"] = $item->getQuantity(); + $data["PAYMENTREQUEST_0_AMT$n"] = $item->getPrice(); + } + } + return $data; } diff --git a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php index 87dc03de..d8ba1ca2 100644 --- a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php +++ b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php @@ -120,6 +120,23 @@ public function testGetDataWithCard() $this->assertEquals($expected, $this->request->getData()); } + public function testGetDataWithItems() + { + $this->request->setItems(array( + array('name' => 'Floppy Disk', 'quantity' => 2, 'price' => '10.00'), + array('name' => 'CD-ROM', 'quantity' => 1, 'price' => '40.00'), + )); + + $data = $this->request->getData(); + $this->assertSame('Floppy Disk', $data['PAYMENTREQUEST_0_NAME0']); + $this->assertSame(2, $data['PAYMENTREQUEST_0_QTY0']); + $this->assertSame('10.00', $data['PAYMENTREQUEST_0_AMT0']); + + $this->assertSame('CD-ROM', $data['PAYMENTREQUEST_0_NAME1']); + $this->assertSame(1, $data['PAYMENTREQUEST_0_QTY1']); + $this->assertSame('40.00', $data['PAYMENTREQUEST_0_AMT1']); + } + public function testHeaderImageUrl() { $this->assertSame($this->request, $this->request->setHeaderImageUrl('https://www.example.com/header.jpg')); From 9284e7d7313e7c332943ecbee13b5491cf6a13ad Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 26 Oct 2013 18:46:41 +1100 Subject: [PATCH 033/333] Add AbstractRequest::formatCurrency() method --- src/Omnipay/Common/Message/AbstractRequest.php | 17 +++++++++++------ .../Common/Message/AbstractRequestTest.php | 11 +++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/Omnipay/Common/Message/AbstractRequest.php b/src/Omnipay/Common/Message/AbstractRequest.php index 4305a75d..19240d10 100644 --- a/src/Omnipay/Common/Message/AbstractRequest.php +++ b/src/Omnipay/Common/Message/AbstractRequest.php @@ -172,12 +172,7 @@ public function getAmount() ); } - return number_format( - $amount, - $this->getCurrencyDecimalPlaces(), - '.', - '' - ); + return $this->formatCurrency($amount); } } @@ -222,6 +217,16 @@ private function getCurrencyDecimalFactor() return pow(10, $this->getCurrencyDecimalPlaces()); } + public function formatCurrency($amount) + { + return number_format( + $amount, + $this->getCurrencyDecimalPlaces(), + '.', + '' + ); + } + public function getDescription() { return $this->getParameter('description'); diff --git a/tests/Omnipay/Common/Message/AbstractRequestTest.php b/tests/Omnipay/Common/Message/AbstractRequestTest.php index d4929041..35c21eb0 100644 --- a/tests/Omnipay/Common/Message/AbstractRequestTest.php +++ b/tests/Omnipay/Common/Message/AbstractRequestTest.php @@ -140,6 +140,17 @@ public function testCurrencyDecimals() $this->assertSame(0, $this->request->getCurrencyDecimalPlaces()); } + public function testFormatCurrency() + { + $this->assertSame('1234.00', $this->request->formatCurrency(1234)); + } + + public function testFormatCurrencyNoDecimals() + { + $this->request->setCurrency('JPY'); + $this->assertSame('1234', $this->request->formatCurrency(1234)); + } + public function testDescription() { $this->assertSame($this->request, $this->request->setDescription('Cool product')); From 17e79b37c05097489328ca2e8b6d8d775384c5c9 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 26 Oct 2013 18:50:53 +1100 Subject: [PATCH 034/333] Add item description parameter --- src/Omnipay/Common/Item.php | 10 +++++----- src/Omnipay/Common/ItemInterface.php | 4 ++-- tests/Omnipay/Common/ItemTest.php | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Omnipay/Common/Item.php b/src/Omnipay/Common/Item.php index f5743b3a..dae49aa6 100644 --- a/src/Omnipay/Common/Item.php +++ b/src/Omnipay/Common/Item.php @@ -74,17 +74,17 @@ public function setName($value) /** * {@inheritDoc} */ - public function getSku() + public function getDescription() { - return $this->getParameter('sku'); + return $this->getParameter('description'); } /** - * Set the item SKU + * Set the item description */ - public function setSku($value) + public function setDescription($value) { - return $this->setParameter('sku', $value); + return $this->setParameter('description', $value); } /** diff --git a/src/Omnipay/Common/ItemInterface.php b/src/Omnipay/Common/ItemInterface.php index b11b450c..c4035153 100644 --- a/src/Omnipay/Common/ItemInterface.php +++ b/src/Omnipay/Common/ItemInterface.php @@ -13,9 +13,9 @@ interface ItemInterface public function getName(); /** - * SKU of the item + * Description of the item */ - public function getSku(); + public function getDescription(); /** * Quantity of the item diff --git a/tests/Omnipay/Common/ItemTest.php b/tests/Omnipay/Common/ItemTest.php index 09dbcdc5..82a99323 100644 --- a/tests/Omnipay/Common/ItemTest.php +++ b/tests/Omnipay/Common/ItemTest.php @@ -35,10 +35,10 @@ public function testName() $this->assertSame('CD-ROM', $this->item->getName()); } - public function testSku() + public function testDescription() { - $this->item->setSku('CD'); - $this->assertSame('CD', $this->item->getSku()); + $this->item->setDescription('CD'); + $this->assertSame('CD', $this->item->getDescription()); } public function testQuantity() From 551584edf2b2617800175f1f26fe77f45ab1cb6f Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 26 Oct 2013 18:55:13 +1100 Subject: [PATCH 035/333] Update PayPal item details --- .../Message/ExpressAuthorizeRequest.php | 7 ++++--- .../Message/ExpressAuthorizeRequestTest.php | 20 ++++++++++--------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php b/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php index 7a5d815c..48607d8a 100644 --- a/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php +++ b/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php @@ -53,9 +53,10 @@ public function getData() $items = $this->getItems(); if ($items) { foreach ($items as $n => $item) { - $data["PAYMENTREQUEST_0_NAME$n"] = $item->getName(); - $data["PAYMENTREQUEST_0_QTY$n"] = $item->getQuantity(); - $data["PAYMENTREQUEST_0_AMT$n"] = $item->getPrice(); + $data["L_PAYMENTREQUEST_0_NAME$n"] = $item->getName(); + $data["L_PAYMENTREQUEST_0_DESC$n"] = $item->getDescription(); + $data["L_PAYMENTREQUEST_0_QTY$n"] = $item->getQuantity(); + $data["L_PAYMENTREQUEST_0_AMT$n"] = $this->formatCurrency($item->getPrice()); } } diff --git a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php index d8ba1ca2..7644f9bf 100644 --- a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php +++ b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php @@ -123,18 +123,20 @@ public function testGetDataWithCard() public function testGetDataWithItems() { $this->request->setItems(array( - array('name' => 'Floppy Disk', 'quantity' => 2, 'price' => '10.00'), - array('name' => 'CD-ROM', 'quantity' => 1, 'price' => '40.00'), + array('name' => 'Floppy Disk', 'description' => 'MS-DOS', 'quantity' => 2, 'price' => 10), + array('name' => 'CD-ROM', 'description' => 'Windows 95', 'quantity' => 1, 'price' => 40), )); $data = $this->request->getData(); - $this->assertSame('Floppy Disk', $data['PAYMENTREQUEST_0_NAME0']); - $this->assertSame(2, $data['PAYMENTREQUEST_0_QTY0']); - $this->assertSame('10.00', $data['PAYMENTREQUEST_0_AMT0']); - - $this->assertSame('CD-ROM', $data['PAYMENTREQUEST_0_NAME1']); - $this->assertSame(1, $data['PAYMENTREQUEST_0_QTY1']); - $this->assertSame('40.00', $data['PAYMENTREQUEST_0_AMT1']); + $this->assertSame('Floppy Disk', $data['L_PAYMENTREQUEST_0_NAME0']); + $this->assertSame('MS-DOS', $data['L_PAYMENTREQUEST_0_DESC0']); + $this->assertSame(2, $data['L_PAYMENTREQUEST_0_QTY0']); + $this->assertSame('10.00', $data['L_PAYMENTREQUEST_0_AMT0']); + + $this->assertSame('CD-ROM', $data['L_PAYMENTREQUEST_0_NAME1']); + $this->assertSame('Windows 95', $data['L_PAYMENTREQUEST_0_DESC1']); + $this->assertSame(1, $data['L_PAYMENTREQUEST_0_QTY1']); + $this->assertSame('40.00', $data['L_PAYMENTREQUEST_0_AMT1']); } public function testHeaderImageUrl() From ebf477090b3c01582a0c37c338c4e59ba95fc079 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 26 Oct 2013 21:34:04 +1100 Subject: [PATCH 036/333] Update CHANGELOG.md --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d616da6b..38051b1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,8 @@ # v1.1.0 (2013-10-19) -* Paypal [BC BREAK]: Removed default value `1` for `noShipping` option and added `allowNote` option. - To retain previous behavior, pass `'noShipping' => 1` when creating the request. (@aderuwe) +* Paypal [BC BREAK]: Removed default values for `noShipping` and `allowNote` Express Checkout options. + To retain previous behavior, pass `'noShipping' => 1` and `'allowNote' => 0` when creating the request. (@aderuwe) * Add TargetPay gateway (@aderuwe) * MultiSafepay: Add purchase parameter (@aderuwe) * MultiSafepay: Add support for directtransaction (@ruudk) From 141ce367b1f8d82766103bcc26f219bf790c9e9c Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Fri, 8 Nov 2013 21:56:12 +1100 Subject: [PATCH 037/333] Add RequestInterface::sendData() method --- src/Omnipay/Common/Message/AbstractRequest.php | 7 +++++++ src/Omnipay/Common/Message/RequestInterface.php | 8 ++++++++ .../Omnipay/Common/Message/AbstractRequestTest.php | 13 ++++++++++++- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/Omnipay/Common/Message/AbstractRequest.php b/src/Omnipay/Common/Message/AbstractRequest.php index 19240d10..2bbf4f9e 100644 --- a/src/Omnipay/Common/Message/AbstractRequest.php +++ b/src/Omnipay/Common/Message/AbstractRequest.php @@ -321,6 +321,13 @@ public function setNotifyUrl($value) return $this->setParameter('notifyUrl', $value); } + public function send() + { + $data = $this->getData(); + + return $this->sendData($data); + } + public function getResponse() { if (null === $this->response) { diff --git a/src/Omnipay/Common/Message/RequestInterface.php b/src/Omnipay/Common/Message/RequestInterface.php index 348b39ca..fdd192a8 100644 --- a/src/Omnipay/Common/Message/RequestInterface.php +++ b/src/Omnipay/Common/Message/RequestInterface.php @@ -32,4 +32,12 @@ public function getResponse(); * @return ResponseInterface */ public function send(); + + /** + * Send the request with specified data + * + * @param mixed $data The data to send + * @return ResponseInterface + */ + public function sendData($data); } diff --git a/tests/Omnipay/Common/Message/AbstractRequestTest.php b/tests/Omnipay/Common/Message/AbstractRequestTest.php index 35c21eb0..c25e0a8a 100644 --- a/tests/Omnipay/Common/Message/AbstractRequestTest.php +++ b/tests/Omnipay/Common/Message/AbstractRequestTest.php @@ -11,7 +11,7 @@ class AbstractRequestTest extends TestCase { public function setUp() { - $this->request = m::mock('\Omnipay\Common\Message\AbstractRequest[getData,send]'); + $this->request = m::mock('\Omnipay\Common\Message\AbstractRequest[getData,sendData]'); $this->request->initialize(); } @@ -261,6 +261,17 @@ public function testNoCurrencyReturnedIfCurrencyNotSet() $this->assertNull($this->request->getCurrencyNumeric()); } + public function testSend() + { + $response = m::mock('\Omnipay\Common\Message\ResponseInterface'); + $data = array('request data'); + + $this->request->shouldReceive('getData')->once()->andReturn($data); + $this->request->shouldReceive('sendData')->once()->with($data)->andReturn($response); + + $this->assertSame($response, $this->request->send()); + } + /** * @expectedException \Omnipay\Common\Exception\RuntimeException */ From f1205c1c7495136e8616229602a36548ac89d12c Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Fri, 8 Nov 2013 22:31:22 +1100 Subject: [PATCH 038/333] Update gateways to use new sendData method --- src/Omnipay/AuthorizeNet/Message/AbstractRequest.php | 4 ++-- src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php | 4 ++-- .../AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php | 4 ++-- src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php | 4 ++-- src/Omnipay/Buckaroo/Message/PurchaseRequest.php | 4 ++-- src/Omnipay/CardSave/Message/PurchaseRequest.php | 4 +--- src/Omnipay/Dummy/Message/AuthorizeRequest.php | 3 +-- src/Omnipay/Eway/Message/RapidPurchaseRequest.php | 4 ++-- src/Omnipay/FirstData/Message/CompletePurchaseRequest.php | 4 ++-- src/Omnipay/FirstData/Message/PurchaseRequest.php | 4 ++-- src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php | 4 ++-- src/Omnipay/GoCardless/Message/PurchaseRequest.php | 4 ++-- src/Omnipay/Manual/Message/Request.php | 4 ++-- .../Migs/Message/ThreePartyCompletePurchaseRequest.php | 4 ++-- src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php | 6 +++--- src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php | 4 ++-- src/Omnipay/Mollie/Message/AbstractRequest.php | 4 ++-- .../MultiSafepay/Message/CompletePurchaseRequest.php | 4 ++-- src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php | 4 ++-- .../MultiSafepay/Message/FetchPaymentMethodsRequest.php | 4 ++-- src/Omnipay/MultiSafepay/Message/PurchaseRequest.php | 4 ++-- src/Omnipay/NetBanx/Message/AbstractRequest.php | 4 ++-- src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php | 6 ++---- src/Omnipay/Netaxept/Message/PurchaseRequest.php | 4 ++-- src/Omnipay/PayFast/Message/CompletePurchaseRequest.php | 3 +-- src/Omnipay/PayFast/Message/PurchaseRequest.php | 4 ++-- src/Omnipay/PayPal/Message/AbstractRequest.php | 4 ++-- src/Omnipay/Payflow/Message/AuthorizeRequest.php | 4 ++-- .../PaymentExpress/Message/PxPayAuthorizeRequest.php | 4 ++-- .../PaymentExpress/Message/PxPostAuthorizeRequest.php | 4 ++-- src/Omnipay/Pin/Message/PurchaseRequest.php | 4 ++-- src/Omnipay/SagePay/Message/AbstractRequest.php | 4 ++-- .../SagePay/Message/ServerCompleteAuthorizeRequest.php | 4 ++-- .../SecurePay/Message/DirectPostAuthorizeRequest.php | 4 ++-- .../SecurePay/Message/DirectPostCompletePurchaseRequest.php | 4 ++-- src/Omnipay/Stripe/Message/AbstractRequest.php | 4 ++-- src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php | 4 ++-- src/Omnipay/TargetPay/Message/FetchIssuersRequest.php | 2 +- src/Omnipay/TargetPay/Message/PurchaseRequest.php | 4 ++-- src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php | 4 ++-- src/Omnipay/TwoCheckout/Message/PurchaseRequest.php | 4 ++-- src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php | 4 ++-- src/Omnipay/WorldPay/Message/PurchaseRequest.php | 4 ++-- tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php | 2 +- 44 files changed, 84 insertions(+), 90 deletions(-) diff --git a/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php b/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php index 4ec5fd12..a8d45f19 100644 --- a/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php @@ -115,9 +115,9 @@ protected function getBillingData() return $data; } - public function send() + public function sendData($data) { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $this->getData())->send(); + $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); return $this->response = new AIMResponse($this, $httpResponse->getBody()); } diff --git a/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php b/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php index 4ccbcd69..fc877eb0 100644 --- a/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php @@ -49,8 +49,8 @@ public function getHash($data) return hash_hmac('md5', $fingerprint, $this->getTransactionKey()); } - public function send() + public function sendData($data) { - return $this->response = new SIMAuthorizeResponse($this, $this->getData(), $this->getEndpoint()); + return $this->response = new SIMAuthorizeResponse($this, $data, $this->getEndpoint()); } } diff --git a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php b/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php index 164c155a..e3ecbb4a 100644 --- a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php @@ -23,8 +23,8 @@ public function getHash() return md5($this->getHashSecret().$this->getApiLoginId().$this->getTransactionId().$this->getAmount()); } - public function send() + public function sendData($data) { - return $this->response = new SIMCompleteAuthorizeResponse($this, $this->getData()); + return $this->response = new SIMCompleteAuthorizeResponse($this, $data); } } diff --git a/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php b/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php index 7edf5024..299f0d7f 100644 --- a/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php @@ -35,8 +35,8 @@ public function generateResponseSignature() ); } - public function send() + public function sendData($data) { - return $this->response = new CompletePurchaseResponse($this, $this->getData()); + return $this->response = new CompletePurchaseResponse($this, $data); } } diff --git a/src/Omnipay/Buckaroo/Message/PurchaseRequest.php b/src/Omnipay/Buckaroo/Message/PurchaseRequest.php index eff7afd4..8aac2cf2 100644 --- a/src/Omnipay/Buckaroo/Message/PurchaseRequest.php +++ b/src/Omnipay/Buckaroo/Message/PurchaseRequest.php @@ -63,9 +63,9 @@ public function generateSignature($data) ); } - public function send() + public function sendData($data) { - return $this->response = new PurchaseResponse($this, $this->getData()); + return $this->response = new PurchaseResponse($this, $data); } public function getEndpoint() diff --git a/src/Omnipay/CardSave/Message/PurchaseRequest.php b/src/Omnipay/CardSave/Message/PurchaseRequest.php index 537aa0f0..08c2a1be 100644 --- a/src/Omnipay/CardSave/Message/PurchaseRequest.php +++ b/src/Omnipay/CardSave/Message/PurchaseRequest.php @@ -77,10 +77,8 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - $data = $this->getData(); - // the PHP SOAP library sucks, and SimpleXML can't append element trees // TODO: find PSR-0 SOAP library $document = new DOMDocument('1.0', 'utf-8'); diff --git a/src/Omnipay/Dummy/Message/AuthorizeRequest.php b/src/Omnipay/Dummy/Message/AuthorizeRequest.php index 64831272..e6b30f02 100644 --- a/src/Omnipay/Dummy/Message/AuthorizeRequest.php +++ b/src/Omnipay/Dummy/Message/AuthorizeRequest.php @@ -18,9 +18,8 @@ public function getData() return array('amount' => $this->getAmount()); } - public function send() + public function sendData($data) { - $data = $this->getData(); $data['reference'] = uniqid(); $data['success'] = 0 === substr($this->getCard()->getNumber(), -1, 1) % 2; $data['message'] = $data['success'] ? 'Success' : 'Failure'; diff --git a/src/Omnipay/Eway/Message/RapidPurchaseRequest.php b/src/Omnipay/Eway/Message/RapidPurchaseRequest.php index f97d0adb..141e87bd 100644 --- a/src/Omnipay/Eway/Message/RapidPurchaseRequest.php +++ b/src/Omnipay/Eway/Message/RapidPurchaseRequest.php @@ -57,9 +57,9 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, json_encode($this->getData())) + $httpResponse = $this->httpClient->post($this->getEndpoint(), null, json_encode($data)) ->setAuth($this->getApiKey(), $this->getPassword()) ->send(); diff --git a/src/Omnipay/FirstData/Message/CompletePurchaseRequest.php b/src/Omnipay/FirstData/Message/CompletePurchaseRequest.php index ac99a4d7..5002f3ef 100644 --- a/src/Omnipay/FirstData/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/FirstData/Message/CompletePurchaseRequest.php @@ -23,9 +23,9 @@ public function getData() return $this->httpRequest->request->all(); } - public function send() + public function sendData($data) { - return $this->response = new CompletePurchaseResponse($this, $this->getData()); + return $this->response = new CompletePurchaseResponse($this, $data); } /** diff --git a/src/Omnipay/FirstData/Message/PurchaseRequest.php b/src/Omnipay/FirstData/Message/PurchaseRequest.php index e49ce35b..93dd86e9 100644 --- a/src/Omnipay/FirstData/Message/PurchaseRequest.php +++ b/src/Omnipay/FirstData/Message/PurchaseRequest.php @@ -77,9 +77,9 @@ public function createHash($dateTime, $amount) return sha1($ascii); } - public function send() + public function sendData($data) { - return $this->response = new PurchaseResponse($this, $this->getData()); + return $this->response = new PurchaseResponse($this, $data); } public function getEndpoint() diff --git a/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php b/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php index 23e2b492..b5d9721d 100644 --- a/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php @@ -26,12 +26,12 @@ public function getData() return $data; } - public function send() + public function sendData($data) { $httpRequest = $this->httpClient->post( $this->getEndpoint().'/api/v1/confirm', array('Accept' => 'application/json'), - Gateway::generateQueryString($this->getData()) + Gateway::generateQueryString($data) ); $httpResponse = $httpRequest->setAuth($this->getAppId(), $this->getAppSecret())->send(); diff --git a/src/Omnipay/GoCardless/Message/PurchaseRequest.php b/src/Omnipay/GoCardless/Message/PurchaseRequest.php index 6a1eb5b1..7c1c9248 100644 --- a/src/Omnipay/GoCardless/Message/PurchaseRequest.php +++ b/src/Omnipay/GoCardless/Message/PurchaseRequest.php @@ -39,9 +39,9 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - return $this->response = new PurchaseResponse($this, $this->getData()); + return $this->response = new PurchaseResponse($this, $data); } /** diff --git a/src/Omnipay/Manual/Message/Request.php b/src/Omnipay/Manual/Message/Request.php index 42e7759c..557d2153 100644 --- a/src/Omnipay/Manual/Message/Request.php +++ b/src/Omnipay/Manual/Message/Request.php @@ -16,8 +16,8 @@ public function getData() return $this->getParameters(); } - public function send() + public function sendData($data) { - return $this->response = new Response($this, $this->getData()); + return $this->response = new Response($this, $data); } } diff --git a/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php b/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php index 313e40d0..1470928d 100644 --- a/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php +++ b/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php @@ -21,9 +21,9 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - return $this->response = new Response($this, $this->getData()); + return $this->response = new Response($this, $data); } public function getEndpoint() diff --git a/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php b/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php index 0d6d9730..cbfcc17a 100644 --- a/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php +++ b/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php @@ -19,11 +19,11 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - $redirectUrl = $this->getEndpoint().'?'.http_build_query($this->getData()); + $redirectUrl = $this->getEndpoint().'?'.http_build_query($data); - return $this->response = new ThreePartyPurchaseResponse($this, $this->getData(), $redirectUrl); + return $this->response = new ThreePartyPurchaseResponse($this, $data, $redirectUrl); } public function getEndpoint() diff --git a/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php b/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php index 086d268d..54508373 100644 --- a/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php +++ b/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php @@ -24,9 +24,9 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $this->getData())->send(); + $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); return $this->response = new Response($this, $httpResponse->getBody()); } diff --git a/src/Omnipay/Mollie/Message/AbstractRequest.php b/src/Omnipay/Mollie/Message/AbstractRequest.php index 4ff15258..37a0806a 100644 --- a/src/Omnipay/Mollie/Message/AbstractRequest.php +++ b/src/Omnipay/Mollie/Message/AbstractRequest.php @@ -40,9 +40,9 @@ protected function getBaseData() return $data; } - public function send() + public function sendData($data) { - $httpResponse = $this->httpClient->post($this->endpoint, null, $this->getData())->send(); + $httpResponse = $this->httpClient->post($this->endpoint, null, $data)->send(); return $this->response = new Response($this, $httpResponse->xml()); } diff --git a/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php b/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php index f00114d6..aec5eb3f 100644 --- a/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php @@ -30,12 +30,12 @@ public function getData() /** * {@inheritdoc} */ - public function send() + public function sendData($data) { $httpResponse = $this->httpClient->post( $this->getEndpoint(), $this->getHeaders(), - $this->getData()->asXML() + $data->asXML() )->send(); return $this->response = new CompletePurchaseResponse($this, $httpResponse->xml()); diff --git a/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php b/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php index b4c5d7ec..9f13460a 100644 --- a/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php +++ b/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php @@ -25,12 +25,12 @@ public function getData() /** * {@inheritdoc} */ - public function send() + public function sendData($data) { $httpResponse = $this->httpClient->post( $this->getEndpoint(), $this->getHeaders(), - $this->getData()->asXML() + $data->asXML() )->send(); return $this->response = new FetchIssuersResponse($this, $httpResponse->xml()); diff --git a/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php b/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php index 587fc5f6..c84d25fe 100644 --- a/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php +++ b/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php @@ -38,12 +38,12 @@ public function getData() /** * {@inheritdoc} */ - public function send() + public function sendData($data) { $httpResponse = $this->httpClient->post( $this->getEndpoint(), $this->getHeaders(), - $this->getData()->asXML() + $data->asXML() )->send(); return $this->response = new FetchPaymentMethodsResponse($this, $httpResponse->xml()); diff --git a/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php b/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php index 6badcd9c..2d948dbf 100644 --- a/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php +++ b/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php @@ -151,12 +151,12 @@ public function getData() /** * {@inheritdoc} */ - public function send() + public function sendData($data) { $httpResponse = $this->httpClient->post( $this->getEndpoint(), $this->getHeaders(), - $this->getData()->asXML() + $data->asXML() )->send(); return $this->response = new PurchaseResponse($this, $httpResponse->xml()); diff --git a/src/Omnipay/NetBanx/Message/AbstractRequest.php b/src/Omnipay/NetBanx/Message/AbstractRequest.php index bd20d6ba..cc235184 100644 --- a/src/Omnipay/NetBanx/Message/AbstractRequest.php +++ b/src/Omnipay/NetBanx/Message/AbstractRequest.php @@ -112,9 +112,9 @@ public function setCustomerId($value) * * @return \Omnipay\Common\Message\ResponseInterface|void */ - public function send() + public function sendData($data) { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $this->getData())->send(); + $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); return $this->response = new Response($this, $httpResponse->getBody()); } diff --git a/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php b/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php index 55a10c51..150ac55c 100644 --- a/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php @@ -25,16 +25,14 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - $data = $this->getData(); - if ('OK' !== $data['responseCode']) { return $this->response = new ErrorResponse($this, $data); } $url = $this->getEndpoint().'/Netaxept/Process.aspx?'; - $httpResponse = $this->httpClient->get($url.http_build_query($this->getData()))->send(); + $httpResponse = $this->httpClient->get($url.http_build_query($data))->send(); return $this->response = new Response($this, $httpResponse->xml()); } diff --git a/src/Omnipay/Netaxept/Message/PurchaseRequest.php b/src/Omnipay/Netaxept/Message/PurchaseRequest.php index f2c02f0b..33a596e3 100644 --- a/src/Omnipay/Netaxept/Message/PurchaseRequest.php +++ b/src/Omnipay/Netaxept/Message/PurchaseRequest.php @@ -60,10 +60,10 @@ public function getData() return $data; } - public function send() + public function sendData($data) { $url = $this->getEndpoint().'/Netaxept/Register.aspx?'; - $httpResponse = $this->httpClient->get($url.http_build_query($this->getData()))->send(); + $httpResponse = $this->httpClient->get($url.http_build_query($data))->send(); return $this->response = new Response($this, $httpResponse->xml()); } diff --git a/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php b/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php index d6931fdc..0b695c0b 100644 --- a/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php @@ -35,9 +35,8 @@ public function getData() throw new InvalidRequestException('Missing PDT or ITN variables'); } - public function send() + public function sendData($data) { - $data = $this->getData(); if (isset($data['pt'])) { // validate PDT $url = $this->getEndpoint().'/query/fetch'; diff --git a/src/Omnipay/PayFast/Message/PurchaseRequest.php b/src/Omnipay/PayFast/Message/PurchaseRequest.php index cf669046..e22524dd 100644 --- a/src/Omnipay/PayFast/Message/PurchaseRequest.php +++ b/src/Omnipay/PayFast/Message/PurchaseRequest.php @@ -84,9 +84,9 @@ protected function generateSignature($data) return md5(http_build_query($fields)); } - public function send() + public function sendData($data) { - return $this->response = new PurchaseResponse($this, $this->getData(), $this->getEndpoint().'/process'); + return $this->response = new PurchaseResponse($this, $data, $this->getEndpoint().'/process'); } public function getEndpoint() diff --git a/src/Omnipay/PayPal/Message/AbstractRequest.php b/src/Omnipay/PayPal/Message/AbstractRequest.php index 9d5c2b79..94ac2f93 100644 --- a/src/Omnipay/PayPal/Message/AbstractRequest.php +++ b/src/Omnipay/PayPal/Message/AbstractRequest.php @@ -115,9 +115,9 @@ protected function getBaseData($method) return $data; } - public function send() + public function sendData($data) { - $url = $this->getEndpoint().'?'.http_build_query($this->getData()); + $url = $this->getEndpoint().'?'.http_build_query($data); $httpResponse = $this->httpClient->get($url)->send(); return $this->createResponse($httpResponse->getBody()); diff --git a/src/Omnipay/Payflow/Message/AuthorizeRequest.php b/src/Omnipay/Payflow/Message/AuthorizeRequest.php index 6b11c6ce..519d7d27 100644 --- a/src/Omnipay/Payflow/Message/AuthorizeRequest.php +++ b/src/Omnipay/Payflow/Message/AuthorizeRequest.php @@ -89,9 +89,9 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $this->getData())->send(); + $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); return $this->response = new Response($this, $httpResponse->getBody()); } diff --git a/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php b/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php index 5ca11353..afa7b2ef 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php +++ b/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php @@ -50,9 +50,9 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - $httpResponse = $this->httpClient->post($this->endpoint, null, $this->getData()->asXML())->send(); + $httpResponse = $this->httpClient->post($this->endpoint, null, $data->asXML())->send(); return $this->createResponse($httpResponse->xml()); } diff --git a/src/Omnipay/PaymentExpress/Message/PxPostAuthorizeRequest.php b/src/Omnipay/PaymentExpress/Message/PxPostAuthorizeRequest.php index 5e7b5aaa..37efb4a5 100644 --- a/src/Omnipay/PaymentExpress/Message/PxPostAuthorizeRequest.php +++ b/src/Omnipay/PaymentExpress/Message/PxPostAuthorizeRequest.php @@ -67,9 +67,9 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - $httpResponse = $this->httpClient->post($this->endpoint, null, $this->getData()->asXML())->send(); + $httpResponse = $this->httpClient->post($this->endpoint, null, $data->asXML())->send(); return $this->response = new Response($this, $httpResponse->xml()); } diff --git a/src/Omnipay/Pin/Message/PurchaseRequest.php b/src/Omnipay/Pin/Message/PurchaseRequest.php index d015460a..119b5bc8 100644 --- a/src/Omnipay/Pin/Message/PurchaseRequest.php +++ b/src/Omnipay/Pin/Message/PurchaseRequest.php @@ -54,7 +54,7 @@ public function getData() return $data; } - public function send() + public function sendData($data) { // don't throw exceptions for 4xx errors $this->httpClient->getEventDispatcher()->addListener( @@ -66,7 +66,7 @@ function ($event) { } ); - $httpResponse = $this->httpClient->post($this->getEndpoint().'/charges', null, $this->getData()) + $httpResponse = $this->httpClient->post($this->getEndpoint().'/charges', null, $data) ->setHeader('Authorization', 'Basic '.base64_encode($this->getSecretKey().':')) ->send(); diff --git a/src/Omnipay/SagePay/Message/AbstractRequest.php b/src/Omnipay/SagePay/Message/AbstractRequest.php index 456092d7..cf6c2d26 100644 --- a/src/Omnipay/SagePay/Message/AbstractRequest.php +++ b/src/Omnipay/SagePay/Message/AbstractRequest.php @@ -46,9 +46,9 @@ protected function getBaseData() return $data; } - public function send() + public function sendData($data) { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $this->getData())->send(); + $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); return $this->createResponse($httpResponse->getBody()); } diff --git a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php b/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php index 2d5ccb48..5caac6a3 100644 --- a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php +++ b/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php @@ -43,8 +43,8 @@ public function getData() return $this->httpRequest->request->all(); } - public function send() + public function sendData($data) { - return $this->response = new ServerCompleteAuthorizeResponse($this, $this->getData()); + return $this->response = new ServerCompleteAuthorizeResponse($this, $data); } } diff --git a/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php b/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php index 1d620f02..293cbbc6 100644 --- a/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php +++ b/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php @@ -46,8 +46,8 @@ public function generateFingerprint(array $data) return sha1($hash); } - public function send() + public function sendData($data) { - return $this->response = new DirectPostAuthorizeResponse($this, $this->getData(), $this->getEndpoint()); + return $this->response = new DirectPostAuthorizeResponse($this, $data, $this->getEndpoint()); } } diff --git a/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php b/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php index 67578bfd..1af3af78 100644 --- a/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php +++ b/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php @@ -37,8 +37,8 @@ public function generateResponseFingerprint($data) return sha1($fields); } - public function send() + public function sendData($data) { - return $this->response = new DirectPostCompletePurchaseResponse($this, $this->getData()); + return $this->response = new DirectPostCompletePurchaseResponse($this, $data); } } diff --git a/src/Omnipay/Stripe/Message/AbstractRequest.php b/src/Omnipay/Stripe/Message/AbstractRequest.php index 6913f7d4..fe580966 100644 --- a/src/Omnipay/Stripe/Message/AbstractRequest.php +++ b/src/Omnipay/Stripe/Message/AbstractRequest.php @@ -42,7 +42,7 @@ public function getHttpMethod() return 'POST'; } - public function send() + public function sendData($data) { // don't throw exceptions for 4xx errors $this->httpClient->getEventDispatcher()->addListener( @@ -58,7 +58,7 @@ function ($event) { $this->getHttpMethod(), $this->getEndpoint(), null, - $this->getData() + $data ); $httpResponse = $httpRequest ->setHeader('Authorization', 'Basic '.base64_encode($this->getApiKey().':')) diff --git a/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php index 25a0c22b..9c0381f7 100644 --- a/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php @@ -32,10 +32,10 @@ public function getData() /** * {@inheritdoc} */ - public function send() + public function sendData($data) { $httpResponse = $this->httpClient->get( - $this->getEndpoint().'?'.http_build_query($this->getData()) + $this->getEndpoint().'?'.http_build_query($data) )->send(); return $this->response = new CompletePurchaseResponse($this, $httpResponse->getBody(true)); diff --git a/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php b/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php index 2f9058a6..311ccbaf 100644 --- a/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php +++ b/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php @@ -22,7 +22,7 @@ public function getData() /** * {@inheritdoc} */ - public function send() + public function sendData($data) { $httpResponse = $this->httpClient->get($this->endpoint)->send(); diff --git a/src/Omnipay/TargetPay/Message/PurchaseRequest.php b/src/Omnipay/TargetPay/Message/PurchaseRequest.php index a059858d..d878e357 100644 --- a/src/Omnipay/TargetPay/Message/PurchaseRequest.php +++ b/src/Omnipay/TargetPay/Message/PurchaseRequest.php @@ -17,10 +17,10 @@ public function setLanguage($value) /** * {@inheritdoc} */ - public function send() + public function sendData($data) { $httpResponse = $this->httpClient->get( - $this->getEndpoint().'?'.http_build_query($this->getData()) + $this->getEndpoint().'?'.http_build_query($data) )->send(); return $this->response = new PurchaseResponse($this, $httpResponse->getBody(true)); diff --git a/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php b/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php index c0bd5018..41dc2ccf 100644 --- a/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php @@ -26,8 +26,8 @@ public function getData() return $this->httpRequest->request->all(); } - public function send() + public function sendData($data) { - return $this->response = new CompletePurchaseResponse($this, $this->getData()); + return $this->response = new CompletePurchaseResponse($this, $data); } } diff --git a/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php b/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php index e2d12fbe..4afd0b6d 100644 --- a/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php +++ b/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php @@ -61,8 +61,8 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - return $this->response = new PurchaseResponse($this, $this->getData()); + return $this->response = new PurchaseResponse($this, $data); } } diff --git a/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php b/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php index 5b3032ef..d352b9ad 100644 --- a/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php +++ b/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php @@ -19,8 +19,8 @@ public function getData() return $this->httpRequest->request->all(); } - public function send() + public function sendData($data) { - return $this->response = new CompletePurchaseResponse($this, $this->getData()); + return $this->response = new CompletePurchaseResponse($this, $data); } } diff --git a/src/Omnipay/WorldPay/Message/PurchaseRequest.php b/src/Omnipay/WorldPay/Message/PurchaseRequest.php index faa0af22..3ce34f85 100644 --- a/src/Omnipay/WorldPay/Message/PurchaseRequest.php +++ b/src/Omnipay/WorldPay/Message/PurchaseRequest.php @@ -77,9 +77,9 @@ public function getData() return $data; } - public function send() + public function sendData($data) { - return $this->response = new PurchaseResponse($this, $this->getData()); + return $this->response = new PurchaseResponse($this, $data); } public function getEndpoint() diff --git a/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php b/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php index f34496a0..11f01963 100644 --- a/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php +++ b/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php @@ -15,7 +15,7 @@ class AbstractRequestTest extends TestCase protected function setUp() { - $this->request = m::mock('\Omnipay\MultiSafepay\Message\AbstractRequest[getData,send]'); + $this->request = m::mock('\Omnipay\MultiSafepay\Message\AbstractRequest[getData,sendData]'); } /** From df939afdc92535593bbaf120cf664d1c838a4a84 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 17 Nov 2013 11:01:40 +1100 Subject: [PATCH 039/333] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0dcef779..22996151 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **An easy to use, consistent payment processing library for PHP 5.3+** -[![Build Status](https://travis-ci.org/adrianmacneil/omnipay.png?branch=master)](https://travis-ci.org/adrianmacneil/omnipay) +[![Build Status](https://travis-ci.org/omnipay/omnipay.png?branch=master)](https://travis-ci.org/omnipay/omnipay) [![Latest Stable Version](https://poser.pugx.org/omnipay/omnipay/version.png)](https://packagist.org/packages/omnipay/omnipay) [![Total Downloads](https://poser.pugx.org/omnipay/omnipay/d/total.png)](https://packagist.org/packages/omnipay/omnipay) @@ -22,7 +22,7 @@ is fully unit tested, and even comes with an example application to get you star **Important Note: Upgrading from <1.0** If you are upgrading from a pre-1.0 version of Omnipay, please note that the currency format has changed. -See the [changelog](https://github.com/adrianmacneil/omnipay/blob/master/CHANGELOG.md) for more details. +See the [changelog](https://github.com/omnipay/omnipay/blob/master/CHANGELOG.md) for more details. ## TL;DR @@ -83,8 +83,8 @@ And run composer to update your dependencies: ## Payment Gateways -All payment gateways must implement [GatewayInterface](https://github.com/adrianmacneil/omnipay/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually -extend [AbstractGateway](https://github.com/adrianmacneil/omnipay/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality. +All payment gateways must implement [GatewayInterface](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually +extend [AbstractGateway](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality. The following gateways are already implemented: @@ -152,7 +152,7 @@ gateway (other than by the methods they support). ## Credit Card / Payment Form Input -User form input is directed to an [CreditCard](https://github.com/adrianmacneil/omnipay/blob/master/src/Omnipay/Common/CreditCard.php) +User form input is directed to an [CreditCard](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/CreditCard.php) object. This provides a safe way to accept user input. The `CreditCard` object has the following fields: @@ -210,7 +210,7 @@ $card->setFirstName('Adrian'); ``` If you submit credit card details which are obviously invalid (missing required fields, or a number -which fails the Luhn check), [InvalidCreditCardException](https://github.com/adrianmacneil/omnipay/blob/master/src/Omnipay/Common/Exception/InvalidCreditCardException.php) +which fails the Luhn check), [InvalidCreditCardException](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/Exception/InvalidCreditCardException.php) will be thrown. You should validate the card details using your framework's validation library before submitting the details to your gateway, to avoid unnecessary API calls. @@ -277,7 +277,7 @@ To summarize the various parameters you have available to you: ## The Payment Response -The payment response must implement [ResponseInterface](https://github.com/adrianmacneil/omnipay/blob/master/src/Omnipay/Common/ResponseInterface.php). There are two main types of response: +The payment response must implement [ResponseInterface](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/ResponseInterface.php). There are two main types of response: * Payment was successful (standard response) * Website requires redirect to off-site payment form (redirect response) @@ -384,7 +384,7 @@ web server (PHP 5.4+): $ php composer.phar update --dev $ php -S localhost:8000 -t example/ -For more information, see the [example application directory](https://github.com/adrianmacneil/omnipay/tree/master/example). +For more information, see the [example application directory](https://github.com/omnipay/omnipay/tree/master/example). ## Support @@ -396,7 +396,7 @@ If you want to keep up to date with release anouncements, discuss ideas for the or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to. -If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/adrianmacneil/omnipay/issues), +If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/omnipay/omnipay/issues), or better yet, fork the library and submit a pull request. ## Contributing @@ -408,7 +408,7 @@ or better yet, fork the library and submit a pull request. * Ensure your code is nicely formatted in the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) style and that all tests pass. * Send the pull request. -* Check that the [travis build](https://travis-ci.org/adrianmacneil/omnipay) passed. If not, rinse and repeat. +* Check that the [travis build](https://travis-ci.org/omnipay/omnipay) passed. If not, rinse and repeat. ## Feedback From d9854df1c3373997d6c607a18517b696a3b7db45 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 17 Nov 2013 15:59:37 +1100 Subject: [PATCH 040/333] Split gateways into separate packages --- .gitignore | 3 - CHANGELOG.md | 54 - composer.json | 48 +- example/.htaccess | 4 - example/README.md | 25 - example/assets/bootstrap.css | 6158 ----------------- example/index.php | 312 - example/views/gateway.twig | 56 - example/views/index.twig | 12 - example/views/layout.twig | 19 - example/views/request.twig | 54 - example/views/response.twig | 66 - phpunit.xml.dist | 25 - src/Omnipay/AuthorizeNet/AIMGateway.php | 79 - .../Message/AIMAuthorizeRequest.php | 30 - .../Message/AIMPurchaseRequest.php | 29 - .../AuthorizeNet/Message/AIMResponse.php | 58 - .../AuthorizeNet/Message/AIMVoidRequest.php | 21 - .../AuthorizeNet/Message/AbstractRequest.php | 129 - .../AuthorizeNet/Message/CaptureRequest.php | 22 - .../Message/SIMAuthorizeRequest.php | 56 - .../Message/SIMAuthorizeResponse.php | 46 - .../Message/SIMCompleteAuthorizeRequest.php | 30 - .../Message/SIMCompleteAuthorizeResponse.php | 26 - .../Message/SIMPurchaseRequest.php | 11 - src/Omnipay/AuthorizeNet/SIMGateway.php | 55 - src/Omnipay/Buckaroo/Gateway.php | 55 - .../Message/CompletePurchaseRequest.php | 42 - .../Message/CompletePurchaseResponse.php | 40 - .../Buckaroo/Message/PurchaseRequest.php | 75 - .../Buckaroo/Message/PurchaseResponse.php | 37 - src/Omnipay/CardSave/Gateway.php | 58 - .../Message/CompletePurchaseRequest.php | 30 - .../CardSave/Message/PurchaseRequest.php | 102 - src/Omnipay/CardSave/Message/Response.php | 78 - src/Omnipay/Common/AbstractGateway.php | 217 - src/Omnipay/Common/CreditCard.php | 634 -- src/Omnipay/Common/Currency.php | 117 - .../Exception/BadMethodCallException.php | 10 - .../Exception/InvalidCreditCardException.php | 12 - .../Exception/InvalidRequestException.php | 12 - .../Exception/InvalidResponseException.php | 16 - .../Common/Exception/OmnipayException.php | 10 - .../Common/Exception/RuntimeException.php | 10 - src/Omnipay/Common/GatewayFactory.php | 59 - src/Omnipay/Common/GatewayInterface.php | 56 - src/Omnipay/Common/Helper.php | 106 - src/Omnipay/Common/Item.php | 121 - src/Omnipay/Common/ItemBag.php | 81 - src/Omnipay/Common/ItemInterface.php | 29 - .../Common/Message/AbstractRequest.php | 339 - .../Common/Message/AbstractResponse.php | 105 - .../Common/Message/MessageInterface.php | 17 - .../Message/RedirectResponseInterface.php | 29 - .../Common/Message/RequestInterface.php | 43 - .../Common/Message/ResponseInterface.php | 51 - src/Omnipay/Dummy/Gateway.php | 41 - .../Dummy/Message/AuthorizeRequest.php | 29 - src/Omnipay/Dummy/Message/Response.php | 26 - .../Message/RapidCompletePurchaseRequest.php | 19 - .../Eway/Message/RapidPurchaseRequest.php | 78 - src/Omnipay/Eway/Message/RapidResponse.php | 60 - src/Omnipay/Eway/RapidGateway.php | 55 - src/Omnipay/FirstData/ConnectGateway.php | 52 - .../Message/CompletePurchaseRequest.php | 51 - .../Message/CompletePurchaseResponse.php | 26 - .../FirstData/Message/PurchaseRequest.php | 89 - .../FirstData/Message/PurchaseResponse.php | 37 - src/Omnipay/GoCardless/Gateway.php | 114 - .../GoCardless/Message/AbstractRequest.php | 67 - .../Message/CompletePurchaseRequest.php | 44 - .../Message/CompletePurchaseResponse.php | 37 - .../GoCardless/Message/PurchaseRequest.php | 60 - .../GoCardless/Message/PurchaseResponse.php | 38 - src/Omnipay/Manual/Gateway.php | 39 - src/Omnipay/Manual/Message/Request.php | 23 - src/Omnipay/Manual/Message/Response.php | 16 - src/Omnipay/Migs/Message/AbstractRequest.php | 76 - src/Omnipay/Migs/Message/Response.php | 36 - .../ThreePartyCompletePurchaseRequest.php | 33 - .../Message/ThreePartyPurchaseRequest.php | 33 - .../Message/ThreePartyPurchaseResponse.php | 46 - .../Migs/Message/TwoPartyPurchaseRequest.php | 38 - src/Omnipay/Migs/ThreePartyGateway.php | 26 - src/Omnipay/Migs/TwoPartyGateway.php | 62 - src/Omnipay/Mollie/Gateway.php | 51 - .../Mollie/Message/AbstractRequest.php | 49 - .../Message/CompletePurchaseRequest.php | 21 - .../Mollie/Message/FetchIssuersRequest.php | 17 - .../Mollie/Message/PurchaseRequest.php | 25 - src/Omnipay/Mollie/Message/Response.php | 85 - src/Omnipay/MultiSafepay/Gateway.php | 107 - .../MultiSafepay/Message/AbstractRequest.php | 57 - .../MultiSafepay/Message/AbstractResponse.php | 32 - .../Message/CompletePurchaseRequest.php | 43 - .../Message/CompletePurchaseResponse.php | 92 - .../Message/FetchIssuersRequest.php | 38 - .../Message/FetchIssuersResponse.php | 30 - .../Message/FetchPaymentMethodsRequest.php | 51 - .../Message/FetchPaymentMethodsResponse.php | 30 - .../MultiSafepay/Message/PurchaseRequest.php | 178 - .../MultiSafepay/Message/PurchaseResponse.php | 62 - src/Omnipay/NetBanx/Gateway.php | 160 - .../NetBanx/Message/AbstractRequest.php | 189 - .../NetBanx/Message/AuthorizeRequest.php | 144 - .../NetBanx/Message/CaptureRequest.php | 59 - .../NetBanx/Message/PurchaseRequest.php | 28 - src/Omnipay/NetBanx/Message/Response.php | 75 - src/Omnipay/NetBanx/Message/VoidRequest.php | 60 - src/Omnipay/Netaxept/Gateway.php | 59 - .../Message/CompletePurchaseRequest.php | 39 - .../Netaxept/Message/ErrorResponse.php | 26 - .../Netaxept/Message/PurchaseRequest.php | 75 - src/Omnipay/Netaxept/Message/Response.php | 58 - src/Omnipay/PayFast/Gateway.php | 70 - .../Message/CompletePurchaseItnResponse.php | 39 - .../Message/CompletePurchasePdtResponse.php | 39 - .../Message/CompletePurchaseRequest.php | 55 - .../PayFast/Message/PurchaseRequest.php | 96 - .../PayFast/Message/PurchaseResponse.php | 46 - src/Omnipay/PayPal/ExpressGateway.php | 87 - .../PayPal/Message/AbstractRequest.php | 135 - src/Omnipay/PayPal/Message/CaptureRequest.php | 23 - .../Message/ExpressAuthorizeRequest.php | 70 - .../Message/ExpressAuthorizeResponse.php | 55 - .../ExpressCompleteAuthorizeRequest.php | 29 - .../ExpressCompletePurchaseRequest.php | 11 - .../PayPal/Message/ProAuthorizeRequest.php | 45 - .../PayPal/Message/ProPurchaseRequest.php | 11 - src/Omnipay/PayPal/Message/RefundRequest.php | 26 - src/Omnipay/PayPal/Message/Response.php | 37 - src/Omnipay/PayPal/ProGateway.php | 79 - .../Payflow/Message/AuthorizeRequest.php | 103 - .../Payflow/Message/CaptureRequest.php | 22 - .../Payflow/Message/PurchaseRequest.php | 11 - src/Omnipay/Payflow/Message/RefundRequest.php | 11 - src/Omnipay/Payflow/Message/Response.php | 39 - src/Omnipay/Payflow/ProGateway.php | 93 - .../Message/PxPayAuthorizeRequest.php | 64 - .../Message/PxPayAuthorizeResponse.php | 51 - .../Message/PxPayCompleteAuthorizeRequest.php | 33 - .../Message/PxPayPurchaseRequest.php | 11 - .../Message/PxPostAuthorizeRequest.php | 76 - .../Message/PxPostCaptureRequest.php | 22 - .../Message/PxPostCreateCardRequest.php | 25 - .../Message/PxPostPurchaseRequest.php | 11 - .../Message/PxPostRefundRequest.php | 11 - .../PaymentExpress/Message/Response.php | 37 - src/Omnipay/PaymentExpress/PxPayGateway.php | 67 - src/Omnipay/PaymentExpress/PxPostGateway.php | 73 - src/Omnipay/Pin/Gateway.php | 42 - src/Omnipay/Pin/Message/PurchaseRequest.php | 80 - src/Omnipay/Pin/Message/Response.php | 32 - src/Omnipay/SagePay/DirectGateway.php | 79 - .../SagePay/Message/AbstractRequest.php | 84 - .../SagePay/Message/CaptureRequest.php | 26 - .../Message/DirectAuthorizeRequest.php | 93 - .../DirectCompleteAuthorizeRequest.php | 30 - .../SagePay/Message/DirectPurchaseRequest.php | 11 - src/Omnipay/SagePay/Message/RefundRequest.php | 31 - src/Omnipay/SagePay/Message/Response.php | 103 - .../Message/ServerAuthorizeRequest.php | 29 - .../Message/ServerAuthorizeResponse.php | 34 - .../ServerCompleteAuthorizeRequest.php | 50 - .../ServerCompleteAuthorizeResponse.php | 119 - .../SagePay/Message/ServerPurchaseRequest.php | 11 - src/Omnipay/SagePay/ServerGateway.php | 38 - src/Omnipay/SecurePay/DirectPostGateway.php | 67 - .../Message/DirectPostAbstractRequest.php | 39 - .../Message/DirectPostAuthorizeRequest.php | 53 - .../Message/DirectPostAuthorizeResponse.php | 46 - .../DirectPostCompletePurchaseRequest.php | 44 - .../DirectPostCompletePurchaseResponse.php | 37 - .../Message/DirectPostPurchaseRequest.php | 11 - src/Omnipay/Stripe/Gateway.php | 77 - .../Stripe/Message/AbstractRequest.php | 89 - .../Stripe/Message/AuthorizeRequest.php | 38 - src/Omnipay/Stripe/Message/CaptureRequest.php | 27 - .../Stripe/Message/CreateCardRequest.php | 32 - .../Stripe/Message/DeleteCardRequest.php | 26 - .../Message/FetchTransactionRequest.php | 23 - .../Stripe/Message/PurchaseRequest.php | 17 - src/Omnipay/Stripe/Message/RefundRequest.php | 24 - src/Omnipay/Stripe/Message/Response.php | 37 - .../Stripe/Message/UpdateCardRequest.php | 31 - src/Omnipay/TargetPay/AbstractGateway.php | 31 - .../TargetPay/DirectebankingGateway.php | 41 - src/Omnipay/TargetPay/IdealGateway.php | 54 - .../TargetPay/Message/AbstractRequest.php | 25 - .../TargetPay/Message/AbstractResponse.php | 51 - .../Message/CompletePurchaseRequest.php | 43 - .../Message/CompletePurchaseResponse.php | 14 - .../DirectebankingCompletePurchaseRequest.php | 14 - .../Message/DirectebankingPurchaseRequest.php | 54 - .../TargetPay/Message/FetchIssuersRequest.php | 31 - .../Message/FetchIssuersResponse.php | 32 - .../Message/IdealCompletePurchaseRequest.php | 14 - .../Message/IdealPurchaseRequest.php | 43 - .../Message/MrcashCompletePurchaseRequest.php | 14 - .../Message/MrcashPurchaseRequest.php | 32 - .../TargetPay/Message/PurchaseRequest.php | 28 - .../TargetPay/Message/PurchaseResponse.php | 66 - src/Omnipay/TargetPay/MrcashGateway.php | 41 - src/Omnipay/TwoCheckout/Gateway.php | 59 - .../Message/CompletePurchaseRequest.php | 33 - .../Message/CompletePurchaseResponse.php | 21 - .../TwoCheckout/Message/PurchaseRequest.php | 68 - .../TwoCheckout/Message/PurchaseResponse.php | 39 - src/Omnipay/WorldPay/Gateway.php | 70 - .../Message/CompletePurchaseRequest.php | 26 - .../Message/CompletePurchaseResponse.php | 26 - .../WorldPay/Message/PurchaseRequest.php | 89 - .../WorldPay/Message/PurchaseResponse.php | 37 - tests/Omnipay/AuthorizeNet/AIMGatewayTest.php | 120 - .../AuthorizeNet/Message/AIMResponseTest.php | 100 - .../SIMCompleteAuthorizeRequestTest.php | 25 - .../SIMCompleteAuthorizeResponseTest.php | 26 - .../AuthorizeNet/Mock/AIMAuthorizeFailure.txt | 11 - .../AuthorizeNet/Mock/AIMAuthorizeSuccess.txt | 11 - .../AuthorizeNet/Mock/AIMCaptureFailure.txt | 11 - .../AuthorizeNet/Mock/AIMCaptureSuccess.txt | 11 - .../AuthorizeNet/Mock/AIMPurchaseFailure.txt | 11 - .../AuthorizeNet/Mock/AIMPurchaseSuccess.txt | 11 - .../AuthorizeNet/Mock/AIMVoidFailure.txt | 11 - .../AuthorizeNet/Mock/AIMVoidSuccess.txt | 11 - tests/Omnipay/AuthorizeNet/SIMGatewayTest.php | 81 - tests/Omnipay/Buckaroo/GatewayTest.php | 31 - .../Message/CompletePurchaseRequestTest.php | 85 - .../Buckaroo/Message/PurchaseRequestTest.php | 73 - tests/Omnipay/CardSave/GatewayTest.php | 53 - .../Omnipay/CardSave/Message/ResponseTest.php | 60 - .../Omnipay/CardSave/Mock/PurchaseFailure.txt | 10 - .../Mock/PurchaseFailureWithoutStatusCode.txt | 10 - .../CardSave/Mock/PurchaseRedirect.txt | 10 - .../Omnipay/CardSave/Mock/PurchaseSuccess.txt | 10 - tests/Omnipay/Common/AbstractGatewayTest.php | 24 - tests/Omnipay/Common/CreditCardTest.php | 501 -- tests/Omnipay/Common/CurrencyTest.php | 42 - tests/Omnipay/Common/GatewayFactoryTest.php | 30 - tests/Omnipay/Common/HelperTest.php | 137 - tests/Omnipay/Common/ItemBagTest.php | 75 - tests/Omnipay/Common/ItemTest.php | 55 - .../Common/Message/AbstractRequestTest.php | 282 - .../Common/Message/AbstractResponseTest.php | 30 - tests/Omnipay/Dummy/GatewayTest.php | 72 - .../Dummy/Message/AuthorizeRequestTest.php | 23 - tests/Omnipay/Dummy/Message/ResponseTest.php | 34 - .../RapidCompletePurchaseRequestTest.php | 55 - .../Eway/Message/RapidPurchaseRequestTest.php | 77 - .../RapidCompletePurchaseRequestFailure.txt | 16 - .../RapidCompletePurchaseRequestSuccess.txt | 16 - .../Eway/Mock/RapidPurchaseRequestFailure.txt | 17 - .../Eway/Mock/RapidPurchaseRequestSuccess.txt | 16 - tests/Omnipay/Eway/RapidGatewayTest.php | 31 - tests/Omnipay/FirstData/GatewayTest.php | 96 - .../Message/CompletePurchaseResponseTest.php | 48 - .../Message/PurchaseResponseTest.php | 22 - tests/Omnipay/GatewayTestCase.php | 346 - tests/Omnipay/GoCardless/GatewayTest.php | 86 - .../Message/CompletePurchaseResponseTest.php | 28 - .../Mock/CompletePurchaseFailure.txt | 3 - .../Mock/CompletePurchaseSuccess.txt | 3 - tests/Omnipay/Manual/GatewayTest.php | 52 - .../ThreePartyCompletePurchaseRequestTest.php | 51 - .../Message/ThreePartyPurchaseRequestTest.php | 60 - .../ThreePartyPurchaseResponseTest.php | 25 - .../Message/TwoPartyPurchaseRequestTest.php | 64 - .../Message/TwoPartyPurchaseResponseTest.php | 34 - .../Migs/Mock/TwoPartyPurchaseFailure.txt | 11 - .../Migs/Mock/TwoPartyPurchaseSuccess.txt | 11 - tests/Omnipay/Migs/ThreePartyGatewayTest.php | 39 - tests/Omnipay/Migs/TwoPartyGatewayTest.php | 53 - tests/Omnipay/Mollie/GatewayTest.php | 39 - .../Message/CompletePurchaseRequestTest.php | 35 - .../Message/FetchIssuersRequestTest.php | 56 - .../Mollie/Message/PurchaseRequestTest.php | 75 - .../Mollie/Mock/FetchIssuersFailure.txt | 14 - .../Mollie/Mock/FetchIssuersSuccess.txt | 16 - tests/Omnipay/Mollie/Mock/PurchaseFailure.txt | 15 - tests/Omnipay/Mollie/Mock/PurchaseSuccess.txt | 18 - tests/Omnipay/MultiSafepay/GatewayTest.php | 145 - .../Message/AbstractRequestTest.php | 33 - .../Message/CompletePurchaseRequestTest.php | 106 - .../Message/FetchIssuersRequestTest.php | 100 - .../FetchPaymentMethodsRequestTest.php | 99 - .../Message/PurchaseRequestTest.php | 282 - .../Mock/CompletePurchaseFailure.txt | 8 - .../Mock/CompletePurchaseSuccess.txt | 8 - .../MultiSafepay/Mock/FetchIssuersFailure.txt | 10 - .../MultiSafepay/Mock/FetchIssuersSuccess.txt | 10 - .../Mock/FetchPaymentMethodsFailure.txt | 10 - .../Mock/FetchPaymentMethodsSuccess.txt | 10 - .../MultiSafepay/Mock/PurchaseFailure.txt | 8 - .../MultiSafepay/Mock/PurchaseSuccess.txt | 8 - tests/Omnipay/NetBanx/GatewayTest.php | 335 - .../Omnipay/NetBanx/Mock/AuthorizeFailure.txt | 32 - .../Omnipay/NetBanx/Mock/AuthorizeSuccess.txt | 32 - tests/Omnipay/NetBanx/Mock/CaptureFailure.txt | 31 - tests/Omnipay/NetBanx/Mock/CaptureSuccess.txt | 30 - tests/Omnipay/NetBanx/Mock/CreateCard.txt | 32 - .../Omnipay/NetBanx/Mock/PurchaseFailure.txt | 31 - .../Omnipay/NetBanx/Mock/PurchaseSuccess.txt | 32 - .../Mock/StoredDataAuthorizeFailure.txt | 38 - .../Mock/StoredDataAuthorizeSuccess.txt | 32 - .../Mock/StoredDataPurchaseFailure.txt | 31 - .../Mock/StoredDataPurchaseSuccess.txt | 32 - tests/Omnipay/NetBanx/Mock/VoidFailure.txt | 31 - tests/Omnipay/NetBanx/Mock/VoidSuccess.txt | 30 - tests/Omnipay/Netaxept/GatewayTest.php | 104 - .../Message/CompletePurchaseRequestTest.php | 46 - .../Netaxept/Message/PurchaseRequestTest.php | 66 - .../Omnipay/Netaxept/Message/ResponseTest.php | 54 - .../Netaxept/Mock/CompletePurchaseFailure.txt | 15 - .../Netaxept/Mock/CompletePurchaseSuccess.txt | 19 - .../Omnipay/Netaxept/Mock/PurchaseFailure.txt | 15 - .../Omnipay/Netaxept/Mock/PurchaseSuccess.txt | 13 - tests/Omnipay/PayFast/GatewayTest.php | 31 - .../Message/CompletePurchaseRequestTest.php | 86 - .../PayFast/Message/PurchaseRequestTest.php | 49 - .../PayFast/Message/PurchaseResponseTest.php | 24 - .../Mock/CompletePurchaseItnFailure.txt | 13 - .../Mock/CompletePurchaseItnSuccess.txt | 12 - .../Mock/CompletePurchasePdtFailure.txt | 12 - .../Mock/CompletePurchasePdtSuccess.txt | 34 - tests/Omnipay/PayPal/ExpressGatewayTest.php | 69 - .../PayPal/Message/CaptureRequestTest.php | 46 - .../Message/ExpressAuthorizeRequestTest.php | 150 - .../Message/ExpressAuthorizeResponseTest.php | 39 - .../ExpressCompleteAuthorizeRequestTest.php | 54 - .../PayPal/Message/RefundRequestTest.php | 61 - tests/Omnipay/PayPal/Message/ResponseTest.php | 35 - .../Mock/ExpressCompletePurchaseFailure.txt | 8 - .../Mock/ExpressCompletePurchaseSuccess.txt | 8 - .../PayPal/Mock/ExpressPurchaseFailure.txt | 8 - .../PayPal/Mock/ExpressPurchaseSuccess.txt | 8 - .../PayPal/Mock/ProPurchaseFailure.txt | 8 - .../PayPal/Mock/ProPurchaseSuccess.txt | 8 - tests/Omnipay/PayPal/ProGatewayTest.php | 50 - .../Omnipay/Payflow/Message/ResponseTest.php | 38 - .../Omnipay/Payflow/Mock/PurchaseFailure.txt | 8 - .../Omnipay/Payflow/Mock/PurchaseSuccess.txt | 3 - tests/Omnipay/Payflow/ProGatewayTest.php | 98 - .../Message/PxPayAuthorizeResponseTest.php | 32 - .../PaymentExpress/Message/ResponseTest.php | 80 - .../Mock/PxPayCompletePurchaseFailure.txt | 9 - .../Mock/PxPayCompletePurchaseSuccess.txt | 9 - .../Mock/PxPayPurchaseFailure.txt | 9 - .../Mock/PxPayPurchaseSuccess.txt | 9 - .../Mock/PxPostCreateCardFailure.txt | 9 - .../Mock/PxPostCreateCardSuccess.txt | 9 - .../Mock/PxPostPurchaseFailure.txt | 9 - .../Mock/PxPostPurchaseSuccess.txt | 3 - .../PaymentExpress/PxPayGatewayTest.php | 148 - .../PaymentExpress/PxPostGatewayTest.php | 122 - tests/Omnipay/Pin/GatewayTest.php | 44 - .../Pin/Message/PurchaseRequestTest.php | 60 - tests/Omnipay/Pin/Message/ResponseTest.php | 30 - tests/Omnipay/Pin/Mock/PurchaseFailure.txt | 17 - tests/Omnipay/Pin/Mock/PurchaseSuccess.txt | 18 - tests/Omnipay/SagePay/DirectGatewayTest.php | 155 - .../Message/DirectAuthorizeRequestTest.php | 84 - .../SagePay/Message/RefundRequestTest.php | 41 - .../Omnipay/SagePay/Message/ResponseTest.php | 71 - .../Message/ServerAuthorizeResponseTest.php | 31 - .../ServerCompleteAuthorizeResponseTest.php | 89 - tests/Omnipay/SagePay/Mock/CaptureFailure.txt | 13 - tests/Omnipay/SagePay/Mock/CaptureSuccess.txt | 13 - .../SagePay/Mock/DirectPurchase3dSecure.txt | 16 - .../SagePay/Mock/DirectPurchaseFailure.txt | 13 - .../SagePay/Mock/DirectPurchaseSuccess.txt | 20 - .../SagePay/Mock/ServerPurchaseFailure.txt | 13 - .../SagePay/Mock/ServerPurchaseSuccess.txt | 16 - tests/Omnipay/SagePay/ServerGatewayTest.php | 156 - .../SecurePay/DirectPostGatewayTest.php | 48 - .../DirectPostAuthorizeRequestTest.php | 50 - .../DirectPostCompletePurchaseRequestTest.php | 96 - .../Message/DirectPostPurchaseRequestTest.php | 50 - tests/Omnipay/Stripe/GatewayTest.php | 78 - .../Stripe/Message/AuthorizeRequestTest.php | 85 - .../Stripe/Message/CaptureRequestTest.php | 54 - .../Stripe/Message/CreateCardRequestTest.php | 70 - .../Stripe/Message/DeleteCardRequestTest.php | 43 - .../Stripe/Message/FetchTransactionTest.php | 43 - .../Stripe/Message/PurchaseRequestTest.php | 50 - .../Stripe/Message/RefundRequestTest.php | 50 - tests/Omnipay/Stripe/Message/ResponseTest.php | 104 - .../Stripe/Message/UpdateCardRequestTest.php | 60 - tests/Omnipay/Stripe/Mock/CaptureFailure.txt | 16 - tests/Omnipay/Stripe/Mock/CaptureSuccess.txt | 57 - .../Omnipay/Stripe/Mock/CreateCardFailure.txt | 17 - .../Omnipay/Stripe/Mock/CreateCardSuccess.txt | 41 - .../Omnipay/Stripe/Mock/DeleteCardFailure.txt | 17 - .../Omnipay/Stripe/Mock/DeleteCardSuccess.txt | 14 - .../Stripe/Mock/FetchTransactionFailure.txt | 17 - .../Stripe/Mock/FetchTransactionSuccess.txt | 59 - tests/Omnipay/Stripe/Mock/PurchaseFailure.txt | 18 - tests/Omnipay/Stripe/Mock/PurchaseSuccess.txt | 56 - tests/Omnipay/Stripe/Mock/RefundFailure.txt | 3 - tests/Omnipay/Stripe/Mock/RefundSuccess.txt | 3 - .../Omnipay/Stripe/Mock/UpdateCardFailure.txt | 17 - .../Omnipay/Stripe/Mock/UpdateCardSuccess.txt | 23 - .../TargetPay/DirectebankingGatewayTest.php | 59 - tests/Omnipay/TargetPay/IdealGatewayTest.php | 66 - .../Message/CompletePurchaseRequestTest.php | 52 - ...ectebankingCompletePurchaseRequestTest.php | 23 - .../DirectebankingPurchaseRequestTest.php | 45 - .../Message/FetchIssuersRequestTest.php | 43 - .../IdealCompletePurchaseRequestTest.php | 23 - .../Message/IdealPurchaseRequestTest.php | 42 - .../MrcashCompletePurchaseRequestTest.php | 23 - .../Message/MrcashPurchaseRequestTest.php | 41 - .../TargetPay/Message/PurchaseRequestTest.php | 45 - .../Mock/CompletePurchaseFailure.txt | 11 - .../Mock/CompletePurchaseSuccess.txt | 11 - .../TargetPay/Mock/FetchIssuersSuccess.txt | 9 - .../TargetPay/Mock/PurchaseFailure.txt | 11 - .../TargetPay/Mock/PurchaseSuccess.txt | 11 - tests/Omnipay/TargetPay/MrcashGatewayTest.php | 112 - tests/Omnipay/TestCase.php | 160 - tests/Omnipay/TwoCheckout/GatewayTest.php | 64 - .../Message/CompletePurchaseResponseTest.php | 18 - .../Message/PurchaseResponseTest.php | 21 - tests/Omnipay/WorldPay/GatewayTest.php | 82 - .../Message/CompletePurchaseResponseTest.php | 52 - .../WorldPay/Message/PurchaseResponseTest.php | 26 - tests/bootstrap.php | 9 - 426 files changed, 31 insertions(+), 27837 deletions(-) delete mode 100644 CHANGELOG.md delete mode 100644 example/.htaccess delete mode 100644 example/README.md delete mode 100644 example/assets/bootstrap.css delete mode 100644 example/index.php delete mode 100644 example/views/gateway.twig delete mode 100644 example/views/index.twig delete mode 100644 example/views/layout.twig delete mode 100644 example/views/request.twig delete mode 100644 example/views/response.twig delete mode 100644 phpunit.xml.dist delete mode 100644 src/Omnipay/AuthorizeNet/AIMGateway.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/AIMAuthorizeRequest.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/AIMResponse.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/AIMVoidRequest.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/AbstractRequest.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/CaptureRequest.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/SIMAuthorizeResponse.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponse.php delete mode 100644 src/Omnipay/AuthorizeNet/Message/SIMPurchaseRequest.php delete mode 100644 src/Omnipay/AuthorizeNet/SIMGateway.php delete mode 100644 src/Omnipay/Buckaroo/Gateway.php delete mode 100644 src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/Buckaroo/Message/CompletePurchaseResponse.php delete mode 100644 src/Omnipay/Buckaroo/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/Buckaroo/Message/PurchaseResponse.php delete mode 100644 src/Omnipay/CardSave/Gateway.php delete mode 100644 src/Omnipay/CardSave/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/CardSave/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/CardSave/Message/Response.php delete mode 100644 src/Omnipay/Common/AbstractGateway.php delete mode 100644 src/Omnipay/Common/CreditCard.php delete mode 100644 src/Omnipay/Common/Currency.php delete mode 100644 src/Omnipay/Common/Exception/BadMethodCallException.php delete mode 100644 src/Omnipay/Common/Exception/InvalidCreditCardException.php delete mode 100644 src/Omnipay/Common/Exception/InvalidRequestException.php delete mode 100644 src/Omnipay/Common/Exception/InvalidResponseException.php delete mode 100644 src/Omnipay/Common/Exception/OmnipayException.php delete mode 100644 src/Omnipay/Common/Exception/RuntimeException.php delete mode 100644 src/Omnipay/Common/GatewayFactory.php delete mode 100644 src/Omnipay/Common/GatewayInterface.php delete mode 100644 src/Omnipay/Common/Helper.php delete mode 100644 src/Omnipay/Common/Item.php delete mode 100644 src/Omnipay/Common/ItemBag.php delete mode 100644 src/Omnipay/Common/ItemInterface.php delete mode 100644 src/Omnipay/Common/Message/AbstractRequest.php delete mode 100644 src/Omnipay/Common/Message/AbstractResponse.php delete mode 100644 src/Omnipay/Common/Message/MessageInterface.php delete mode 100644 src/Omnipay/Common/Message/RedirectResponseInterface.php delete mode 100644 src/Omnipay/Common/Message/RequestInterface.php delete mode 100644 src/Omnipay/Common/Message/ResponseInterface.php delete mode 100644 src/Omnipay/Dummy/Gateway.php delete mode 100644 src/Omnipay/Dummy/Message/AuthorizeRequest.php delete mode 100644 src/Omnipay/Dummy/Message/Response.php delete mode 100644 src/Omnipay/Eway/Message/RapidCompletePurchaseRequest.php delete mode 100644 src/Omnipay/Eway/Message/RapidPurchaseRequest.php delete mode 100644 src/Omnipay/Eway/Message/RapidResponse.php delete mode 100644 src/Omnipay/Eway/RapidGateway.php delete mode 100644 src/Omnipay/FirstData/ConnectGateway.php delete mode 100644 src/Omnipay/FirstData/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/FirstData/Message/CompletePurchaseResponse.php delete mode 100644 src/Omnipay/FirstData/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/FirstData/Message/PurchaseResponse.php delete mode 100644 src/Omnipay/GoCardless/Gateway.php delete mode 100644 src/Omnipay/GoCardless/Message/AbstractRequest.php delete mode 100644 src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/GoCardless/Message/CompletePurchaseResponse.php delete mode 100644 src/Omnipay/GoCardless/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/GoCardless/Message/PurchaseResponse.php delete mode 100644 src/Omnipay/Manual/Gateway.php delete mode 100644 src/Omnipay/Manual/Message/Request.php delete mode 100644 src/Omnipay/Manual/Message/Response.php delete mode 100644 src/Omnipay/Migs/Message/AbstractRequest.php delete mode 100644 src/Omnipay/Migs/Message/Response.php delete mode 100644 src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php delete mode 100644 src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php delete mode 100644 src/Omnipay/Migs/Message/ThreePartyPurchaseResponse.php delete mode 100644 src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php delete mode 100644 src/Omnipay/Migs/ThreePartyGateway.php delete mode 100644 src/Omnipay/Migs/TwoPartyGateway.php delete mode 100644 src/Omnipay/Mollie/Gateway.php delete mode 100644 src/Omnipay/Mollie/Message/AbstractRequest.php delete mode 100644 src/Omnipay/Mollie/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/Mollie/Message/FetchIssuersRequest.php delete mode 100644 src/Omnipay/Mollie/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/Mollie/Message/Response.php delete mode 100644 src/Omnipay/MultiSafepay/Gateway.php delete mode 100644 src/Omnipay/MultiSafepay/Message/AbstractRequest.php delete mode 100644 src/Omnipay/MultiSafepay/Message/AbstractResponse.php delete mode 100644 src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/MultiSafepay/Message/CompletePurchaseResponse.php delete mode 100644 src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php delete mode 100644 src/Omnipay/MultiSafepay/Message/FetchIssuersResponse.php delete mode 100644 src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php delete mode 100644 src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsResponse.php delete mode 100644 src/Omnipay/MultiSafepay/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/MultiSafepay/Message/PurchaseResponse.php delete mode 100644 src/Omnipay/NetBanx/Gateway.php delete mode 100644 src/Omnipay/NetBanx/Message/AbstractRequest.php delete mode 100644 src/Omnipay/NetBanx/Message/AuthorizeRequest.php delete mode 100644 src/Omnipay/NetBanx/Message/CaptureRequest.php delete mode 100644 src/Omnipay/NetBanx/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/NetBanx/Message/Response.php delete mode 100644 src/Omnipay/NetBanx/Message/VoidRequest.php delete mode 100644 src/Omnipay/Netaxept/Gateway.php delete mode 100644 src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/Netaxept/Message/ErrorResponse.php delete mode 100644 src/Omnipay/Netaxept/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/Netaxept/Message/Response.php delete mode 100644 src/Omnipay/PayFast/Gateway.php delete mode 100644 src/Omnipay/PayFast/Message/CompletePurchaseItnResponse.php delete mode 100644 src/Omnipay/PayFast/Message/CompletePurchasePdtResponse.php delete mode 100644 src/Omnipay/PayFast/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/PayFast/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/PayFast/Message/PurchaseResponse.php delete mode 100644 src/Omnipay/PayPal/ExpressGateway.php delete mode 100644 src/Omnipay/PayPal/Message/AbstractRequest.php delete mode 100644 src/Omnipay/PayPal/Message/CaptureRequest.php delete mode 100644 src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php delete mode 100644 src/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php delete mode 100644 src/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequest.php delete mode 100644 src/Omnipay/PayPal/Message/ExpressCompletePurchaseRequest.php delete mode 100644 src/Omnipay/PayPal/Message/ProAuthorizeRequest.php delete mode 100644 src/Omnipay/PayPal/Message/ProPurchaseRequest.php delete mode 100644 src/Omnipay/PayPal/Message/RefundRequest.php delete mode 100644 src/Omnipay/PayPal/Message/Response.php delete mode 100644 src/Omnipay/PayPal/ProGateway.php delete mode 100644 src/Omnipay/Payflow/Message/AuthorizeRequest.php delete mode 100644 src/Omnipay/Payflow/Message/CaptureRequest.php delete mode 100644 src/Omnipay/Payflow/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/Payflow/Message/RefundRequest.php delete mode 100644 src/Omnipay/Payflow/Message/Response.php delete mode 100644 src/Omnipay/Payflow/ProGateway.php delete mode 100644 src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php delete mode 100644 src/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponse.php delete mode 100644 src/Omnipay/PaymentExpress/Message/PxPayCompleteAuthorizeRequest.php delete mode 100644 src/Omnipay/PaymentExpress/Message/PxPayPurchaseRequest.php delete mode 100644 src/Omnipay/PaymentExpress/Message/PxPostAuthorizeRequest.php delete mode 100644 src/Omnipay/PaymentExpress/Message/PxPostCaptureRequest.php delete mode 100644 src/Omnipay/PaymentExpress/Message/PxPostCreateCardRequest.php delete mode 100644 src/Omnipay/PaymentExpress/Message/PxPostPurchaseRequest.php delete mode 100644 src/Omnipay/PaymentExpress/Message/PxPostRefundRequest.php delete mode 100644 src/Omnipay/PaymentExpress/Message/Response.php delete mode 100644 src/Omnipay/PaymentExpress/PxPayGateway.php delete mode 100644 src/Omnipay/PaymentExpress/PxPostGateway.php delete mode 100644 src/Omnipay/Pin/Gateway.php delete mode 100644 src/Omnipay/Pin/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/Pin/Message/Response.php delete mode 100644 src/Omnipay/SagePay/DirectGateway.php delete mode 100644 src/Omnipay/SagePay/Message/AbstractRequest.php delete mode 100644 src/Omnipay/SagePay/Message/CaptureRequest.php delete mode 100644 src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php delete mode 100644 src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php delete mode 100644 src/Omnipay/SagePay/Message/DirectPurchaseRequest.php delete mode 100644 src/Omnipay/SagePay/Message/RefundRequest.php delete mode 100644 src/Omnipay/SagePay/Message/Response.php delete mode 100644 src/Omnipay/SagePay/Message/ServerAuthorizeRequest.php delete mode 100644 src/Omnipay/SagePay/Message/ServerAuthorizeResponse.php delete mode 100644 src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php delete mode 100644 src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php delete mode 100644 src/Omnipay/SagePay/Message/ServerPurchaseRequest.php delete mode 100644 src/Omnipay/SagePay/ServerGateway.php delete mode 100644 src/Omnipay/SecurePay/DirectPostGateway.php delete mode 100644 src/Omnipay/SecurePay/Message/DirectPostAbstractRequest.php delete mode 100644 src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php delete mode 100644 src/Omnipay/SecurePay/Message/DirectPostAuthorizeResponse.php delete mode 100644 src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php delete mode 100644 src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseResponse.php delete mode 100644 src/Omnipay/SecurePay/Message/DirectPostPurchaseRequest.php delete mode 100644 src/Omnipay/Stripe/Gateway.php delete mode 100644 src/Omnipay/Stripe/Message/AbstractRequest.php delete mode 100644 src/Omnipay/Stripe/Message/AuthorizeRequest.php delete mode 100644 src/Omnipay/Stripe/Message/CaptureRequest.php delete mode 100644 src/Omnipay/Stripe/Message/CreateCardRequest.php delete mode 100644 src/Omnipay/Stripe/Message/DeleteCardRequest.php delete mode 100644 src/Omnipay/Stripe/Message/FetchTransactionRequest.php delete mode 100644 src/Omnipay/Stripe/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/Stripe/Message/RefundRequest.php delete mode 100644 src/Omnipay/Stripe/Message/Response.php delete mode 100644 src/Omnipay/Stripe/Message/UpdateCardRequest.php delete mode 100644 src/Omnipay/TargetPay/AbstractGateway.php delete mode 100644 src/Omnipay/TargetPay/DirectebankingGateway.php delete mode 100644 src/Omnipay/TargetPay/IdealGateway.php delete mode 100644 src/Omnipay/TargetPay/Message/AbstractRequest.php delete mode 100644 src/Omnipay/TargetPay/Message/AbstractResponse.php delete mode 100644 src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php delete mode 100644 src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php delete mode 100644 src/Omnipay/TargetPay/Message/DirectebankingPurchaseRequest.php delete mode 100644 src/Omnipay/TargetPay/Message/FetchIssuersRequest.php delete mode 100644 src/Omnipay/TargetPay/Message/FetchIssuersResponse.php delete mode 100644 src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php delete mode 100644 src/Omnipay/TargetPay/Message/IdealPurchaseRequest.php delete mode 100644 src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php delete mode 100644 src/Omnipay/TargetPay/Message/MrcashPurchaseRequest.php delete mode 100644 src/Omnipay/TargetPay/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/TargetPay/Message/PurchaseResponse.php delete mode 100644 src/Omnipay/TargetPay/MrcashGateway.php delete mode 100644 src/Omnipay/TwoCheckout/Gateway.php delete mode 100644 src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/TwoCheckout/Message/CompletePurchaseResponse.php delete mode 100644 src/Omnipay/TwoCheckout/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/TwoCheckout/Message/PurchaseResponse.php delete mode 100644 src/Omnipay/WorldPay/Gateway.php delete mode 100644 src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php delete mode 100644 src/Omnipay/WorldPay/Message/CompletePurchaseResponse.php delete mode 100644 src/Omnipay/WorldPay/Message/PurchaseRequest.php delete mode 100644 src/Omnipay/WorldPay/Message/PurchaseResponse.php delete mode 100644 tests/Omnipay/AuthorizeNet/AIMGatewayTest.php delete mode 100644 tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php delete mode 100644 tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php delete mode 100644 tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponseTest.php delete mode 100644 tests/Omnipay/AuthorizeNet/Mock/AIMAuthorizeFailure.txt delete mode 100644 tests/Omnipay/AuthorizeNet/Mock/AIMAuthorizeSuccess.txt delete mode 100644 tests/Omnipay/AuthorizeNet/Mock/AIMCaptureFailure.txt delete mode 100644 tests/Omnipay/AuthorizeNet/Mock/AIMCaptureSuccess.txt delete mode 100644 tests/Omnipay/AuthorizeNet/Mock/AIMPurchaseFailure.txt delete mode 100644 tests/Omnipay/AuthorizeNet/Mock/AIMPurchaseSuccess.txt delete mode 100644 tests/Omnipay/AuthorizeNet/Mock/AIMVoidFailure.txt delete mode 100644 tests/Omnipay/AuthorizeNet/Mock/AIMVoidSuccess.txt delete mode 100644 tests/Omnipay/AuthorizeNet/SIMGatewayTest.php delete mode 100644 tests/Omnipay/Buckaroo/GatewayTest.php delete mode 100644 tests/Omnipay/Buckaroo/Message/CompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/Buckaroo/Message/PurchaseRequestTest.php delete mode 100644 tests/Omnipay/CardSave/GatewayTest.php delete mode 100644 tests/Omnipay/CardSave/Message/ResponseTest.php delete mode 100644 tests/Omnipay/CardSave/Mock/PurchaseFailure.txt delete mode 100644 tests/Omnipay/CardSave/Mock/PurchaseFailureWithoutStatusCode.txt delete mode 100644 tests/Omnipay/CardSave/Mock/PurchaseRedirect.txt delete mode 100644 tests/Omnipay/CardSave/Mock/PurchaseSuccess.txt delete mode 100644 tests/Omnipay/Common/AbstractGatewayTest.php delete mode 100644 tests/Omnipay/Common/CreditCardTest.php delete mode 100644 tests/Omnipay/Common/CurrencyTest.php delete mode 100644 tests/Omnipay/Common/GatewayFactoryTest.php delete mode 100644 tests/Omnipay/Common/HelperTest.php delete mode 100644 tests/Omnipay/Common/ItemBagTest.php delete mode 100644 tests/Omnipay/Common/ItemTest.php delete mode 100644 tests/Omnipay/Common/Message/AbstractRequestTest.php delete mode 100644 tests/Omnipay/Common/Message/AbstractResponseTest.php delete mode 100644 tests/Omnipay/Dummy/GatewayTest.php delete mode 100644 tests/Omnipay/Dummy/Message/AuthorizeRequestTest.php delete mode 100644 tests/Omnipay/Dummy/Message/ResponseTest.php delete mode 100644 tests/Omnipay/Eway/Message/RapidCompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/Eway/Message/RapidPurchaseRequestTest.php delete mode 100644 tests/Omnipay/Eway/Mock/RapidCompletePurchaseRequestFailure.txt delete mode 100644 tests/Omnipay/Eway/Mock/RapidCompletePurchaseRequestSuccess.txt delete mode 100644 tests/Omnipay/Eway/Mock/RapidPurchaseRequestFailure.txt delete mode 100644 tests/Omnipay/Eway/Mock/RapidPurchaseRequestSuccess.txt delete mode 100644 tests/Omnipay/Eway/RapidGatewayTest.php delete mode 100644 tests/Omnipay/FirstData/GatewayTest.php delete mode 100644 tests/Omnipay/FirstData/Message/CompletePurchaseResponseTest.php delete mode 100644 tests/Omnipay/FirstData/Message/PurchaseResponseTest.php delete mode 100644 tests/Omnipay/GatewayTestCase.php delete mode 100644 tests/Omnipay/GoCardless/GatewayTest.php delete mode 100644 tests/Omnipay/GoCardless/Message/CompletePurchaseResponseTest.php delete mode 100644 tests/Omnipay/GoCardless/Mock/CompletePurchaseFailure.txt delete mode 100644 tests/Omnipay/GoCardless/Mock/CompletePurchaseSuccess.txt delete mode 100644 tests/Omnipay/Manual/GatewayTest.php delete mode 100644 tests/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/Migs/Message/ThreePartyPurchaseRequestTest.php delete mode 100644 tests/Omnipay/Migs/Message/ThreePartyPurchaseResponseTest.php delete mode 100644 tests/Omnipay/Migs/Message/TwoPartyPurchaseRequestTest.php delete mode 100644 tests/Omnipay/Migs/Message/TwoPartyPurchaseResponseTest.php delete mode 100644 tests/Omnipay/Migs/Mock/TwoPartyPurchaseFailure.txt delete mode 100644 tests/Omnipay/Migs/Mock/TwoPartyPurchaseSuccess.txt delete mode 100644 tests/Omnipay/Migs/ThreePartyGatewayTest.php delete mode 100644 tests/Omnipay/Migs/TwoPartyGatewayTest.php delete mode 100644 tests/Omnipay/Mollie/GatewayTest.php delete mode 100644 tests/Omnipay/Mollie/Message/CompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/Mollie/Message/FetchIssuersRequestTest.php delete mode 100644 tests/Omnipay/Mollie/Message/PurchaseRequestTest.php delete mode 100644 tests/Omnipay/Mollie/Mock/FetchIssuersFailure.txt delete mode 100644 tests/Omnipay/Mollie/Mock/FetchIssuersSuccess.txt delete mode 100644 tests/Omnipay/Mollie/Mock/PurchaseFailure.txt delete mode 100644 tests/Omnipay/Mollie/Mock/PurchaseSuccess.txt delete mode 100644 tests/Omnipay/MultiSafepay/GatewayTest.php delete mode 100644 tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php delete mode 100644 tests/Omnipay/MultiSafepay/Message/CompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/MultiSafepay/Message/FetchIssuersRequestTest.php delete mode 100644 tests/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequestTest.php delete mode 100644 tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php delete mode 100644 tests/Omnipay/MultiSafepay/Mock/CompletePurchaseFailure.txt delete mode 100644 tests/Omnipay/MultiSafepay/Mock/CompletePurchaseSuccess.txt delete mode 100644 tests/Omnipay/MultiSafepay/Mock/FetchIssuersFailure.txt delete mode 100644 tests/Omnipay/MultiSafepay/Mock/FetchIssuersSuccess.txt delete mode 100644 tests/Omnipay/MultiSafepay/Mock/FetchPaymentMethodsFailure.txt delete mode 100644 tests/Omnipay/MultiSafepay/Mock/FetchPaymentMethodsSuccess.txt delete mode 100644 tests/Omnipay/MultiSafepay/Mock/PurchaseFailure.txt delete mode 100644 tests/Omnipay/MultiSafepay/Mock/PurchaseSuccess.txt delete mode 100644 tests/Omnipay/NetBanx/GatewayTest.php delete mode 100644 tests/Omnipay/NetBanx/Mock/AuthorizeFailure.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/AuthorizeSuccess.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/CaptureFailure.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/CaptureSuccess.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/CreateCard.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/PurchaseFailure.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/PurchaseSuccess.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/StoredDataAuthorizeFailure.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/StoredDataAuthorizeSuccess.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/StoredDataPurchaseFailure.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/StoredDataPurchaseSuccess.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/VoidFailure.txt delete mode 100644 tests/Omnipay/NetBanx/Mock/VoidSuccess.txt delete mode 100644 tests/Omnipay/Netaxept/GatewayTest.php delete mode 100644 tests/Omnipay/Netaxept/Message/CompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/Netaxept/Message/PurchaseRequestTest.php delete mode 100644 tests/Omnipay/Netaxept/Message/ResponseTest.php delete mode 100644 tests/Omnipay/Netaxept/Mock/CompletePurchaseFailure.txt delete mode 100644 tests/Omnipay/Netaxept/Mock/CompletePurchaseSuccess.txt delete mode 100644 tests/Omnipay/Netaxept/Mock/PurchaseFailure.txt delete mode 100644 tests/Omnipay/Netaxept/Mock/PurchaseSuccess.txt delete mode 100644 tests/Omnipay/PayFast/GatewayTest.php delete mode 100644 tests/Omnipay/PayFast/Message/CompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/PayFast/Message/PurchaseRequestTest.php delete mode 100644 tests/Omnipay/PayFast/Message/PurchaseResponseTest.php delete mode 100644 tests/Omnipay/PayFast/Mock/CompletePurchaseItnFailure.txt delete mode 100644 tests/Omnipay/PayFast/Mock/CompletePurchaseItnSuccess.txt delete mode 100644 tests/Omnipay/PayFast/Mock/CompletePurchasePdtFailure.txt delete mode 100644 tests/Omnipay/PayFast/Mock/CompletePurchasePdtSuccess.txt delete mode 100644 tests/Omnipay/PayPal/ExpressGatewayTest.php delete mode 100644 tests/Omnipay/PayPal/Message/CaptureRequestTest.php delete mode 100644 tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php delete mode 100644 tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php delete mode 100644 tests/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequestTest.php delete mode 100644 tests/Omnipay/PayPal/Message/RefundRequestTest.php delete mode 100644 tests/Omnipay/PayPal/Message/ResponseTest.php delete mode 100644 tests/Omnipay/PayPal/Mock/ExpressCompletePurchaseFailure.txt delete mode 100644 tests/Omnipay/PayPal/Mock/ExpressCompletePurchaseSuccess.txt delete mode 100644 tests/Omnipay/PayPal/Mock/ExpressPurchaseFailure.txt delete mode 100644 tests/Omnipay/PayPal/Mock/ExpressPurchaseSuccess.txt delete mode 100644 tests/Omnipay/PayPal/Mock/ProPurchaseFailure.txt delete mode 100644 tests/Omnipay/PayPal/Mock/ProPurchaseSuccess.txt delete mode 100644 tests/Omnipay/PayPal/ProGatewayTest.php delete mode 100644 tests/Omnipay/Payflow/Message/ResponseTest.php delete mode 100644 tests/Omnipay/Payflow/Mock/PurchaseFailure.txt delete mode 100644 tests/Omnipay/Payflow/Mock/PurchaseSuccess.txt delete mode 100644 tests/Omnipay/Payflow/ProGatewayTest.php delete mode 100644 tests/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponseTest.php delete mode 100644 tests/Omnipay/PaymentExpress/Message/ResponseTest.php delete mode 100644 tests/Omnipay/PaymentExpress/Mock/PxPayCompletePurchaseFailure.txt delete mode 100644 tests/Omnipay/PaymentExpress/Mock/PxPayCompletePurchaseSuccess.txt delete mode 100644 tests/Omnipay/PaymentExpress/Mock/PxPayPurchaseFailure.txt delete mode 100644 tests/Omnipay/PaymentExpress/Mock/PxPayPurchaseSuccess.txt delete mode 100644 tests/Omnipay/PaymentExpress/Mock/PxPostCreateCardFailure.txt delete mode 100644 tests/Omnipay/PaymentExpress/Mock/PxPostCreateCardSuccess.txt delete mode 100644 tests/Omnipay/PaymentExpress/Mock/PxPostPurchaseFailure.txt delete mode 100644 tests/Omnipay/PaymentExpress/Mock/PxPostPurchaseSuccess.txt delete mode 100644 tests/Omnipay/PaymentExpress/PxPayGatewayTest.php delete mode 100644 tests/Omnipay/PaymentExpress/PxPostGatewayTest.php delete mode 100644 tests/Omnipay/Pin/GatewayTest.php delete mode 100644 tests/Omnipay/Pin/Message/PurchaseRequestTest.php delete mode 100644 tests/Omnipay/Pin/Message/ResponseTest.php delete mode 100644 tests/Omnipay/Pin/Mock/PurchaseFailure.txt delete mode 100644 tests/Omnipay/Pin/Mock/PurchaseSuccess.txt delete mode 100644 tests/Omnipay/SagePay/DirectGatewayTest.php delete mode 100644 tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php delete mode 100644 tests/Omnipay/SagePay/Message/RefundRequestTest.php delete mode 100644 tests/Omnipay/SagePay/Message/ResponseTest.php delete mode 100644 tests/Omnipay/SagePay/Message/ServerAuthorizeResponseTest.php delete mode 100644 tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php delete mode 100644 tests/Omnipay/SagePay/Mock/CaptureFailure.txt delete mode 100644 tests/Omnipay/SagePay/Mock/CaptureSuccess.txt delete mode 100644 tests/Omnipay/SagePay/Mock/DirectPurchase3dSecure.txt delete mode 100644 tests/Omnipay/SagePay/Mock/DirectPurchaseFailure.txt delete mode 100644 tests/Omnipay/SagePay/Mock/DirectPurchaseSuccess.txt delete mode 100644 tests/Omnipay/SagePay/Mock/ServerPurchaseFailure.txt delete mode 100644 tests/Omnipay/SagePay/Mock/ServerPurchaseSuccess.txt delete mode 100644 tests/Omnipay/SagePay/ServerGatewayTest.php delete mode 100644 tests/Omnipay/SecurePay/DirectPostGatewayTest.php delete mode 100644 tests/Omnipay/SecurePay/Message/DirectPostAuthorizeRequestTest.php delete mode 100644 tests/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/SecurePay/Message/DirectPostPurchaseRequestTest.php delete mode 100644 tests/Omnipay/Stripe/GatewayTest.php delete mode 100644 tests/Omnipay/Stripe/Message/AuthorizeRequestTest.php delete mode 100644 tests/Omnipay/Stripe/Message/CaptureRequestTest.php delete mode 100644 tests/Omnipay/Stripe/Message/CreateCardRequestTest.php delete mode 100644 tests/Omnipay/Stripe/Message/DeleteCardRequestTest.php delete mode 100644 tests/Omnipay/Stripe/Message/FetchTransactionTest.php delete mode 100644 tests/Omnipay/Stripe/Message/PurchaseRequestTest.php delete mode 100644 tests/Omnipay/Stripe/Message/RefundRequestTest.php delete mode 100644 tests/Omnipay/Stripe/Message/ResponseTest.php delete mode 100644 tests/Omnipay/Stripe/Message/UpdateCardRequestTest.php delete mode 100644 tests/Omnipay/Stripe/Mock/CaptureFailure.txt delete mode 100644 tests/Omnipay/Stripe/Mock/CaptureSuccess.txt delete mode 100644 tests/Omnipay/Stripe/Mock/CreateCardFailure.txt delete mode 100644 tests/Omnipay/Stripe/Mock/CreateCardSuccess.txt delete mode 100644 tests/Omnipay/Stripe/Mock/DeleteCardFailure.txt delete mode 100644 tests/Omnipay/Stripe/Mock/DeleteCardSuccess.txt delete mode 100644 tests/Omnipay/Stripe/Mock/FetchTransactionFailure.txt delete mode 100644 tests/Omnipay/Stripe/Mock/FetchTransactionSuccess.txt delete mode 100644 tests/Omnipay/Stripe/Mock/PurchaseFailure.txt delete mode 100644 tests/Omnipay/Stripe/Mock/PurchaseSuccess.txt delete mode 100644 tests/Omnipay/Stripe/Mock/RefundFailure.txt delete mode 100644 tests/Omnipay/Stripe/Mock/RefundSuccess.txt delete mode 100644 tests/Omnipay/Stripe/Mock/UpdateCardFailure.txt delete mode 100644 tests/Omnipay/Stripe/Mock/UpdateCardSuccess.txt delete mode 100644 tests/Omnipay/TargetPay/DirectebankingGatewayTest.php delete mode 100644 tests/Omnipay/TargetPay/IdealGatewayTest.php delete mode 100644 tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php delete mode 100644 tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php delete mode 100644 tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php delete mode 100644 tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php delete mode 100644 tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php delete mode 100644 tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php delete mode 100644 tests/Omnipay/TargetPay/Mock/CompletePurchaseFailure.txt delete mode 100644 tests/Omnipay/TargetPay/Mock/CompletePurchaseSuccess.txt delete mode 100644 tests/Omnipay/TargetPay/Mock/FetchIssuersSuccess.txt delete mode 100644 tests/Omnipay/TargetPay/Mock/PurchaseFailure.txt delete mode 100644 tests/Omnipay/TargetPay/Mock/PurchaseSuccess.txt delete mode 100644 tests/Omnipay/TargetPay/MrcashGatewayTest.php delete mode 100644 tests/Omnipay/TestCase.php delete mode 100644 tests/Omnipay/TwoCheckout/GatewayTest.php delete mode 100644 tests/Omnipay/TwoCheckout/Message/CompletePurchaseResponseTest.php delete mode 100644 tests/Omnipay/TwoCheckout/Message/PurchaseResponseTest.php delete mode 100644 tests/Omnipay/WorldPay/GatewayTest.php delete mode 100644 tests/Omnipay/WorldPay/Message/CompletePurchaseResponseTest.php delete mode 100644 tests/Omnipay/WorldPay/Message/PurchaseResponseTest.php delete mode 100644 tests/bootstrap.php diff --git a/.gitignore b/.gitignore index 24c7d969..8a282a56 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,3 @@ -*.log -.DS_Store -/.idea/ /vendor composer.lock composer.phar diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 38051b1a..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,54 +0,0 @@ -# Changelog :zap: - -# v1.1.0 (2013-10-19) - -* Paypal [BC BREAK]: Removed default values for `noShipping` and `allowNote` Express Checkout options. - To retain previous behavior, pass `'noShipping' => 1` and `'allowNote' => 0` when creating the request. (@aderuwe) -* Add TargetPay gateway (@aderuwe) -* MultiSafepay: Add purchase parameter (@aderuwe) -* MultiSafepay: Add support for directtransaction (@ruudk) -* Authorize.Net SIM: Add support for hash secret (@amsross) -* Authorize.Net AIM: Add extra response getters -* Sage Pay Direct: Don't pass state unless country is US - -# v1.0.4 (2013-09-20) - -* Update Pin gateway to support using JS tokens (@nagash) -* More tests (@johnkary) - -# v1.0.3 (2013-08-28) - -* Stripe: Added fetchTransaction method (@cfreear) -* MultiSafepay: Assorted bug fixes (@aderuwe) -* Sage Pay: Fixed not sending correct card brand for MasterCard and Diners Club (@steveneaston) -* Sage Pay: Fixed RefundRequest not sending correct transaction type - -# v1.0.2 (2013-07-23) - -* Added MultiSafepay gateway -* Added PayPal Subject parameter -* PHPDoc fixes - -# v1.0.1 (2013-06-29) - -* Added Buckaroo gateway -* Added eWAY Rapid 3.0 gateway -* Added `getRedirectResponse()` method to `AbstractResponse` -* A few minor bug fixes & typos - -# v1.0.0 (2013-06-24) - -`amount` is now specified as a decimal (i.e. `'10.00'` instead of `1000` -to represent $10.00. Passing integers will throw an exception, reminding you -to update your application code. To be clear, that means instead of this: - - $gateway->purchase(array('amount' => 1000, 'currency' => 'USD')); - -You must now create the request like so: - - $gateway->purchase(array('amount' => '10.00', 'currency' => 'USD')); - -This should avoid any further confusion over how to specify the amount. - -* Added Mollie payment gateway -* Added `notifyUrl` and `issuer` fields to example app diff --git a/composer.json b/composer.json index 5266a6ee..df783314 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "omnipay/omnipay", - "type": "library", - "description": "A framework agnostic, multi-gateway payment processing library", + "type": "metapackage", + "description": "Includes Omnipay payment processing library and all officially supported gateways", "keywords": [ "2checkout", "2co", @@ -44,7 +44,7 @@ "twocheckout", "worldpay" ], - "homepage": "https://github.com/adrianmacneil/omnipay", + "homepage": "https://github.com/omnipay/omnipay", "license": "MIT", "authors": [ { @@ -53,28 +53,42 @@ }, { "name": "Omnipay Community", - "homepage": "https://github.com/adrianmacneil/omnipay/graphs/contributors" + "homepage": "https://github.com/omnipay/omnipay/graphs/contributors" } ], - "autoload": { - "psr-0": { "Omnipay" : "src/" } - }, "require": { - "php": ">=5.3.2", - "guzzle/http": "~3.1", - "symfony/http-foundation": "~2.1" + "omnipay/2checkout": "~2.0", + "omnipay/authorizenet": "~2.0", + "omnipay/buckaroo": "~2.0", + "omnipay/cardsave": "~2.0", + "omnipay/common": "~2.0.0", + "omnipay/dummy": "~2.0", + "omnipay/eway": "~2.0", + "omnipay/firstdata": "~2.0", + "omnipay/gocardless": "~2.0", + "omnipay/manual": "~2.0", + "omnipay/migs": "~2.0", + "omnipay/mollie": "~2.0", + "omnipay/multisafepay": "~2.0", + "omnipay/netaxept": "~2.0", + "omnipay/netbanx": "~2.0", + "omnipay/payfast": "~2.0", + "omnipay/payflow": "~2.0", + "omnipay/paymentexpress": "~2.0", + "omnipay/paypal": "~2.0", + "omnipay/pin": "~2.0", + "omnipay/sagepay": "~2.0", + "omnipay/securepay": "~2.0", + "omnipay/stripe": "~2.0", + "omnipay/targetpay": "~2.0", + "omnipay/worldpay": "~2.0" }, "require-dev": { - "guzzle/plugin-mock": "~3.1", - "mockery/mockery": "~0.7", - "phpunit/phpunit": "~3.7.16", - "silex/silex": "1.0.*@dev", - "squizlabs/php_codesniffer": "~1.4.4", - "twig/twig": "~1.12" + "omnipay/tests": "~2.0" }, "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "2.0.x-dev" } } } diff --git a/example/.htaccess b/example/.htaccess deleted file mode 100644 index b104c122..00000000 --- a/example/.htaccess +++ /dev/null @@ -1,4 +0,0 @@ -RewriteEngine On -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule . /index.php [L] diff --git a/example/README.md b/example/README.md deleted file mode 100644 index c7892eeb..00000000 --- a/example/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# Omnipay: Example Application - -This is an example web application built using the [Silex micro-framework](http://silex.sensiolabs.org/). -It demonstrates using Omnipay to process payments using all supported payment gateways. - -## Getting Started - -To run the example application, you must first install the development dependencies via composer. -From the root `omnipay` directory, run: - - $ php composer.phar update --dev - -You can the use the built in web server (PHP 5.4+) to start the application: - - $ php -S localhost:8000 -t example/ - -The application will now be available at [http://localhost:8000/](http://localhost:8000/) - -## Configuration - -To test a gateway, you will need to have access to valid credentials. To obtain valid credentials, -contact the payment gateway's support. - -You can configure a gateways settings in the application. All data is stored using regular PHP -sessions, so will not be persisted between sessions. diff --git a/example/assets/bootstrap.css b/example/assets/bootstrap.css deleted file mode 100644 index b2550569..00000000 --- a/example/assets/bootstrap.css +++ /dev/null @@ -1,6158 +0,0 @@ -/*! - * Bootstrap v2.3.0 - * - * Copyright 2012 Twitter, Inc - * Licensed under the Apache License v2.0 - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Designed and built with all the love in the world @twitter by @mdo and @fat. - */ - -.clearfix { - *zoom: 1; -} - -.clearfix:before, -.clearfix:after { - display: table; - line-height: 0; - content: ""; -} - -.clearfix:after { - clear: both; -} - -.hide-text { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} - -.input-block-level { - display: block; - width: 100%; - min-height: 30px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -nav, -section { - display: block; -} - -audio, -canvas, -video { - display: inline-block; - *display: inline; - *zoom: 1; -} - -audio:not([controls]) { - display: none; -} - -html { - font-size: 100%; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} - -a:focus { - outline: thin dotted #333; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} - -a:hover, -a:active { - outline: 0; -} - -sub, -sup { - position: relative; - font-size: 75%; - line-height: 0; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -img { - width: auto\9; - height: auto; - max-width: 100%; - vertical-align: middle; - border: 0; - -ms-interpolation-mode: bicubic; -} - -#map_canvas img, -.google-maps img { - max-width: none; -} - -button, -input, -select, -textarea { - margin: 0; - font-size: 100%; - vertical-align: middle; -} - -button, -input { - *overflow: visible; - line-height: normal; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - padding: 0; - border: 0; -} - -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - cursor: pointer; - -webkit-appearance: button; -} - -label, -select, -button, -input[type="button"], -input[type="reset"], -input[type="submit"], -input[type="radio"], -input[type="checkbox"] { - cursor: pointer; -} - -input[type="search"] { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - -webkit-appearance: textfield; -} - -input[type="search"]::-webkit-search-decoration, -input[type="search"]::-webkit-search-cancel-button { - -webkit-appearance: none; -} - -textarea { - overflow: auto; - vertical-align: top; -} - -@media print { - * { - color: #000 !important; - text-shadow: none !important; - background: transparent !important; - box-shadow: none !important; - } - a, - a:visited { - text-decoration: underline; - } - a[href]:after { - content: " (" attr(href) ")"; - } - abbr[title]:after { - content: " (" attr(title) ")"; - } - .ir a:after, - a[href^="javascript:"]:after, - a[href^="#"]:after { - content: ""; - } - pre, - blockquote { - border: 1px solid #999; - page-break-inside: avoid; - } - thead { - display: table-header-group; - } - tr, - img { - page-break-inside: avoid; - } - img { - max-width: 100% !important; - } - @page { - margin: 0.5cm; - } - p, - h2, - h3 { - orphans: 3; - widows: 3; - } - h2, - h3 { - page-break-after: avoid; - } -} - -body { - margin: 0; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 14px; - line-height: 20px; - color: #333333; - background-color: #ffffff; -} - -a { - color: #0088cc; - text-decoration: none; -} - -a:hover, -a:focus { - color: #005580; - text-decoration: underline; -} - -.img-rounded { - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; -} - -.img-polaroid { - padding: 4px; - background-color: #fff; - border: 1px solid #ccc; - border: 1px solid rgba(0, 0, 0, 0.2); - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); -} - -.img-circle { - -webkit-border-radius: 500px; - -moz-border-radius: 500px; - border-radius: 500px; -} - -.row { - margin-left: -20px; - *zoom: 1; -} - -.row:before, -.row:after { - display: table; - line-height: 0; - content: ""; -} - -.row:after { - clear: both; -} - -[class*="span"] { - float: left; - min-height: 1px; - margin-left: 20px; -} - -.container, -.navbar-static-top .container, -.navbar-fixed-top .container, -.navbar-fixed-bottom .container { - width: 940px; -} - -.span12 { - width: 940px; -} - -.span11 { - width: 860px; -} - -.span10 { - width: 780px; -} - -.span9 { - width: 700px; -} - -.span8 { - width: 620px; -} - -.span7 { - width: 540px; -} - -.span6 { - width: 460px; -} - -.span5 { - width: 380px; -} - -.span4 { - width: 300px; -} - -.span3 { - width: 220px; -} - -.span2 { - width: 140px; -} - -.span1 { - width: 60px; -} - -.offset12 { - margin-left: 980px; -} - -.offset11 { - margin-left: 900px; -} - -.offset10 { - margin-left: 820px; -} - -.offset9 { - margin-left: 740px; -} - -.offset8 { - margin-left: 660px; -} - -.offset7 { - margin-left: 580px; -} - -.offset6 { - margin-left: 500px; -} - -.offset5 { - margin-left: 420px; -} - -.offset4 { - margin-left: 340px; -} - -.offset3 { - margin-left: 260px; -} - -.offset2 { - margin-left: 180px; -} - -.offset1 { - margin-left: 100px; -} - -.row-fluid { - width: 100%; - *zoom: 1; -} - -.row-fluid:before, -.row-fluid:after { - display: table; - line-height: 0; - content: ""; -} - -.row-fluid:after { - clear: both; -} - -.row-fluid [class*="span"] { - display: block; - float: left; - width: 100%; - min-height: 30px; - margin-left: 2.127659574468085%; - *margin-left: 2.074468085106383%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.row-fluid [class*="span"]:first-child { - margin-left: 0; -} - -.row-fluid .controls-row [class*="span"] + [class*="span"] { - margin-left: 2.127659574468085%; -} - -.row-fluid .span12 { - width: 100%; - *width: 99.94680851063829%; -} - -.row-fluid .span11 { - width: 91.48936170212765%; - *width: 91.43617021276594%; -} - -.row-fluid .span10 { - width: 82.97872340425532%; - *width: 82.92553191489361%; -} - -.row-fluid .span9 { - width: 74.46808510638297%; - *width: 74.41489361702126%; -} - -.row-fluid .span8 { - width: 65.95744680851064%; - *width: 65.90425531914893%; -} - -.row-fluid .span7 { - width: 57.44680851063829%; - *width: 57.39361702127659%; -} - -.row-fluid .span6 { - width: 48.93617021276595%; - *width: 48.88297872340425%; -} - -.row-fluid .span5 { - width: 40.42553191489362%; - *width: 40.37234042553192%; -} - -.row-fluid .span4 { - width: 31.914893617021278%; - *width: 31.861702127659576%; -} - -.row-fluid .span3 { - width: 23.404255319148934%; - *width: 23.351063829787233%; -} - -.row-fluid .span2 { - width: 14.893617021276595%; - *width: 14.840425531914894%; -} - -.row-fluid .span1 { - width: 6.382978723404255%; - *width: 6.329787234042553%; -} - -.row-fluid .offset12 { - margin-left: 104.25531914893617%; - *margin-left: 104.14893617021275%; -} - -.row-fluid .offset12:first-child { - margin-left: 102.12765957446808%; - *margin-left: 102.02127659574467%; -} - -.row-fluid .offset11 { - margin-left: 95.74468085106382%; - *margin-left: 95.6382978723404%; -} - -.row-fluid .offset11:first-child { - margin-left: 93.61702127659574%; - *margin-left: 93.51063829787232%; -} - -.row-fluid .offset10 { - margin-left: 87.23404255319149%; - *margin-left: 87.12765957446807%; -} - -.row-fluid .offset10:first-child { - margin-left: 85.1063829787234%; - *margin-left: 84.99999999999999%; -} - -.row-fluid .offset9 { - margin-left: 78.72340425531914%; - *margin-left: 78.61702127659572%; -} - -.row-fluid .offset9:first-child { - margin-left: 76.59574468085106%; - *margin-left: 76.48936170212764%; -} - -.row-fluid .offset8 { - margin-left: 70.2127659574468%; - *margin-left: 70.10638297872339%; -} - -.row-fluid .offset8:first-child { - margin-left: 68.08510638297872%; - *margin-left: 67.9787234042553%; -} - -.row-fluid .offset7 { - margin-left: 61.70212765957446%; - *margin-left: 61.59574468085106%; -} - -.row-fluid .offset7:first-child { - margin-left: 59.574468085106375%; - *margin-left: 59.46808510638297%; -} - -.row-fluid .offset6 { - margin-left: 53.191489361702125%; - *margin-left: 53.085106382978715%; -} - -.row-fluid .offset6:first-child { - margin-left: 51.063829787234035%; - *margin-left: 50.95744680851063%; -} - -.row-fluid .offset5 { - margin-left: 44.68085106382979%; - *margin-left: 44.57446808510638%; -} - -.row-fluid .offset5:first-child { - margin-left: 42.5531914893617%; - *margin-left: 42.4468085106383%; -} - -.row-fluid .offset4 { - margin-left: 36.170212765957444%; - *margin-left: 36.06382978723405%; -} - -.row-fluid .offset4:first-child { - margin-left: 34.04255319148936%; - *margin-left: 33.93617021276596%; -} - -.row-fluid .offset3 { - margin-left: 27.659574468085104%; - *margin-left: 27.5531914893617%; -} - -.row-fluid .offset3:first-child { - margin-left: 25.53191489361702%; - *margin-left: 25.425531914893618%; -} - -.row-fluid .offset2 { - margin-left: 19.148936170212764%; - *margin-left: 19.04255319148936%; -} - -.row-fluid .offset2:first-child { - margin-left: 17.02127659574468%; - *margin-left: 16.914893617021278%; -} - -.row-fluid .offset1 { - margin-left: 10.638297872340425%; - *margin-left: 10.53191489361702%; -} - -.row-fluid .offset1:first-child { - margin-left: 8.51063829787234%; - *margin-left: 8.404255319148938%; -} - -[class*="span"].hide, -.row-fluid [class*="span"].hide { - display: none; -} - -[class*="span"].pull-right, -.row-fluid [class*="span"].pull-right { - float: right; -} - -.container { - margin-right: auto; - margin-left: auto; - *zoom: 1; -} - -.container:before, -.container:after { - display: table; - line-height: 0; - content: ""; -} - -.container:after { - clear: both; -} - -.container-fluid { - padding-right: 20px; - padding-left: 20px; - *zoom: 1; -} - -.container-fluid:before, -.container-fluid:after { - display: table; - line-height: 0; - content: ""; -} - -.container-fluid:after { - clear: both; -} - -p { - margin: 0 0 10px; -} - -.lead { - margin-bottom: 20px; - font-size: 21px; - font-weight: 200; - line-height: 30px; -} - -small { - font-size: 85%; -} - -strong { - font-weight: bold; -} - -em { - font-style: italic; -} - -cite { - font-style: normal; -} - -.muted { - color: #999999; -} - -a.muted:hover, -a.muted:focus { - color: #808080; -} - -.text-warning { - color: #c09853; -} - -a.text-warning:hover, -a.text-warning:focus { - color: #a47e3c; -} - -.text-error { - color: #b94a48; -} - -a.text-error:hover, -a.text-error:focus { - color: #953b39; -} - -.text-info { - color: #3a87ad; -} - -a.text-info:hover, -a.text-info:focus { - color: #2d6987; -} - -.text-success { - color: #468847; -} - -a.text-success:hover, -a.text-success:focus { - color: #356635; -} - -.text-left { - text-align: left; -} - -.text-right { - text-align: right; -} - -.text-center { - text-align: center; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - margin: 10px 0; - font-family: inherit; - font-weight: bold; - line-height: 20px; - color: inherit; - text-rendering: optimizelegibility; -} - -h1 small, -h2 small, -h3 small, -h4 small, -h5 small, -h6 small { - font-weight: normal; - line-height: 1; - color: #999999; -} - -h1, -h2, -h3 { - line-height: 40px; -} - -h1 { - font-size: 38.5px; -} - -h2 { - font-size: 31.5px; -} - -h3 { - font-size: 24.5px; -} - -h4 { - font-size: 17.5px; -} - -h5 { - font-size: 14px; -} - -h6 { - font-size: 11.9px; -} - -h1 small { - font-size: 24.5px; -} - -h2 small { - font-size: 17.5px; -} - -h3 small { - font-size: 14px; -} - -h4 small { - font-size: 14px; -} - -.page-header { - padding-bottom: 9px; - margin: 20px 0 30px; - border-bottom: 1px solid #eeeeee; -} - -ul, -ol { - padding: 0; - margin: 0 0 10px 25px; -} - -ul ul, -ul ol, -ol ol, -ol ul { - margin-bottom: 0; -} - -li { - line-height: 20px; -} - -ul.unstyled, -ol.unstyled { - margin-left: 0; - list-style: none; -} - -ul.inline, -ol.inline { - margin-left: 0; - list-style: none; -} - -ul.inline > li, -ol.inline > li { - display: inline-block; - *display: inline; - padding-right: 5px; - padding-left: 5px; - *zoom: 1; -} - -dl { - margin-bottom: 20px; -} - -dt, -dd { - line-height: 20px; -} - -dt { - font-weight: bold; -} - -dd { - margin-left: 10px; -} - -.dl-horizontal { - *zoom: 1; -} - -.dl-horizontal:before, -.dl-horizontal:after { - display: table; - line-height: 0; - content: ""; -} - -.dl-horizontal:after { - clear: both; -} - -.dl-horizontal dt { - float: left; - width: 160px; - overflow: hidden; - clear: left; - text-align: right; - text-overflow: ellipsis; - white-space: nowrap; -} - -.dl-horizontal dd { - margin-left: 180px; -} - -hr { - margin: 20px 0; - border: 0; - border-top: 1px solid #eeeeee; - border-bottom: 1px solid #ffffff; -} - -abbr[title], -abbr[data-original-title] { - cursor: help; - border-bottom: 1px dotted #999999; -} - -abbr.initialism { - font-size: 90%; - text-transform: uppercase; -} - -blockquote { - padding: 0 0 0 15px; - margin: 0 0 20px; - border-left: 5px solid #eeeeee; -} - -blockquote p { - margin-bottom: 0; - font-size: 17.5px; - font-weight: 300; - line-height: 1.25; -} - -blockquote small { - display: block; - line-height: 20px; - color: #999999; -} - -blockquote small:before { - content: '\2014 \00A0'; -} - -blockquote.pull-right { - float: right; - padding-right: 15px; - padding-left: 0; - border-right: 5px solid #eeeeee; - border-left: 0; -} - -blockquote.pull-right p, -blockquote.pull-right small { - text-align: right; -} - -blockquote.pull-right small:before { - content: ''; -} - -blockquote.pull-right small:after { - content: '\00A0 \2014'; -} - -q:before, -q:after, -blockquote:before, -blockquote:after { - content: ""; -} - -address { - display: block; - margin-bottom: 20px; - font-style: normal; - line-height: 20px; -} - -code, -pre { - padding: 0 3px 2px; - font-family: Monaco, Menlo, Consolas, "Courier New", monospace; - font-size: 12px; - color: #333333; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; -} - -code { - padding: 2px 4px; - color: #d14; - white-space: nowrap; - background-color: #f7f7f9; - border: 1px solid #e1e1e8; -} - -pre { - display: block; - padding: 9.5px; - margin: 0 0 10px; - font-size: 13px; - line-height: 20px; - word-break: break-all; - word-wrap: break-word; - white-space: pre; - white-space: pre-wrap; - background-color: #f5f5f5; - border: 1px solid #ccc; - border: 1px solid rgba(0, 0, 0, 0.15); - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -pre.prettyprint { - margin-bottom: 20px; -} - -pre code { - padding: 0; - color: inherit; - white-space: pre; - white-space: pre-wrap; - background-color: transparent; - border: 0; -} - -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; -} - -form { - margin: 0 0 20px; -} - -fieldset { - padding: 0; - margin: 0; - border: 0; -} - -legend { - display: block; - width: 100%; - padding: 0; - margin-bottom: 20px; - font-size: 21px; - line-height: 40px; - color: #333333; - border: 0; - border-bottom: 1px solid #e5e5e5; -} - -legend small { - font-size: 15px; - color: #999999; -} - -label, -input, -button, -select, -textarea { - font-size: 14px; - font-weight: normal; - line-height: 20px; -} - -input, -button, -select, -textarea { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -} - -label { - display: block; - margin-bottom: 5px; -} - -select, -textarea, -input[type="text"], -input[type="password"], -input[type="datetime"], -input[type="datetime-local"], -input[type="date"], -input[type="month"], -input[type="time"], -input[type="week"], -input[type="number"], -input[type="email"], -input[type="url"], -input[type="search"], -input[type="tel"], -input[type="color"], -.uneditable-input { - display: inline-block; - height: 20px; - padding: 4px 6px; - margin-bottom: 10px; - font-size: 14px; - line-height: 20px; - color: #555555; - vertical-align: middle; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -input, -textarea, -.uneditable-input { - width: 206px; -} - -textarea { - height: auto; -} - -textarea, -input[type="text"], -input[type="password"], -input[type="datetime"], -input[type="datetime-local"], -input[type="date"], -input[type="month"], -input[type="time"], -input[type="week"], -input[type="number"], -input[type="email"], -input[type="url"], -input[type="search"], -input[type="tel"], -input[type="color"], -.uneditable-input { - background-color: #ffffff; - border: 1px solid #cccccc; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; - -moz-transition: border linear 0.2s, box-shadow linear 0.2s; - -o-transition: border linear 0.2s, box-shadow linear 0.2s; - transition: border linear 0.2s, box-shadow linear 0.2s; -} - -textarea:focus, -input[type="text"]:focus, -input[type="password"]:focus, -input[type="datetime"]:focus, -input[type="datetime-local"]:focus, -input[type="date"]:focus, -input[type="month"]:focus, -input[type="time"]:focus, -input[type="week"]:focus, -input[type="number"]:focus, -input[type="email"]:focus, -input[type="url"]:focus, -input[type="search"]:focus, -input[type="tel"]:focus, -input[type="color"]:focus, -.uneditable-input:focus { - border-color: rgba(82, 168, 236, 0.8); - outline: 0; - outline: thin dotted \9; - /* IE6-9 */ - - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); -} - -input[type="radio"], -input[type="checkbox"] { - margin: 4px 0 0; - margin-top: 1px \9; - *margin-top: 0; - line-height: normal; -} - -input[type="file"], -input[type="image"], -input[type="submit"], -input[type="reset"], -input[type="button"], -input[type="radio"], -input[type="checkbox"] { - width: auto; -} - -select, -input[type="file"] { - height: 30px; - /* In IE7, the height of the select element cannot be changed by height, only font-size */ - - *margin-top: 4px; - /* For IE7, add top margin to align select with labels */ - - line-height: 30px; -} - -select { - width: 220px; - background-color: #ffffff; - border: 1px solid #cccccc; -} - -select[multiple], -select[size] { - height: auto; -} - -select:focus, -input[type="file"]:focus, -input[type="radio"]:focus, -input[type="checkbox"]:focus { - outline: thin dotted #333; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} - -.uneditable-input, -.uneditable-textarea { - color: #999999; - cursor: not-allowed; - background-color: #fcfcfc; - border-color: #cccccc; - -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); - -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); -} - -.uneditable-input { - overflow: hidden; - white-space: nowrap; -} - -.uneditable-textarea { - width: auto; - height: auto; -} - -input:-moz-placeholder, -textarea:-moz-placeholder { - color: #999999; -} - -input:-ms-input-placeholder, -textarea:-ms-input-placeholder { - color: #999999; -} - -input::-webkit-input-placeholder, -textarea::-webkit-input-placeholder { - color: #999999; -} - -.radio, -.checkbox { - min-height: 20px; - padding-left: 20px; -} - -.radio input[type="radio"], -.checkbox input[type="checkbox"] { - float: left; - margin-left: -20px; -} - -.controls > .radio:first-child, -.controls > .checkbox:first-child { - padding-top: 5px; -} - -.radio.inline, -.checkbox.inline { - display: inline-block; - padding-top: 5px; - margin-bottom: 0; - vertical-align: middle; -} - -.radio.inline + .radio.inline, -.checkbox.inline + .checkbox.inline { - margin-left: 10px; -} - -.input-mini { - width: 60px; -} - -.input-small { - width: 90px; -} - -.input-medium { - width: 150px; -} - -.input-large { - width: 210px; -} - -.input-xlarge { - width: 270px; -} - -.input-xxlarge { - width: 530px; -} - -input[class*="span"], -select[class*="span"], -textarea[class*="span"], -.uneditable-input[class*="span"], -.row-fluid input[class*="span"], -.row-fluid select[class*="span"], -.row-fluid textarea[class*="span"], -.row-fluid .uneditable-input[class*="span"] { - float: none; - margin-left: 0; -} - -.input-append input[class*="span"], -.input-append .uneditable-input[class*="span"], -.input-prepend input[class*="span"], -.input-prepend .uneditable-input[class*="span"], -.row-fluid input[class*="span"], -.row-fluid select[class*="span"], -.row-fluid textarea[class*="span"], -.row-fluid .uneditable-input[class*="span"], -.row-fluid .input-prepend [class*="span"], -.row-fluid .input-append [class*="span"] { - display: inline-block; -} - -input, -textarea, -.uneditable-input { - margin-left: 0; -} - -.controls-row [class*="span"] + [class*="span"] { - margin-left: 20px; -} - -input.span12, -textarea.span12, -.uneditable-input.span12 { - width: 926px; -} - -input.span11, -textarea.span11, -.uneditable-input.span11 { - width: 846px; -} - -input.span10, -textarea.span10, -.uneditable-input.span10 { - width: 766px; -} - -input.span9, -textarea.span9, -.uneditable-input.span9 { - width: 686px; -} - -input.span8, -textarea.span8, -.uneditable-input.span8 { - width: 606px; -} - -input.span7, -textarea.span7, -.uneditable-input.span7 { - width: 526px; -} - -input.span6, -textarea.span6, -.uneditable-input.span6 { - width: 446px; -} - -input.span5, -textarea.span5, -.uneditable-input.span5 { - width: 366px; -} - -input.span4, -textarea.span4, -.uneditable-input.span4 { - width: 286px; -} - -input.span3, -textarea.span3, -.uneditable-input.span3 { - width: 206px; -} - -input.span2, -textarea.span2, -.uneditable-input.span2 { - width: 126px; -} - -input.span1, -textarea.span1, -.uneditable-input.span1 { - width: 46px; -} - -.controls-row { - *zoom: 1; -} - -.controls-row:before, -.controls-row:after { - display: table; - line-height: 0; - content: ""; -} - -.controls-row:after { - clear: both; -} - -.controls-row [class*="span"], -.row-fluid .controls-row [class*="span"] { - float: left; -} - -.controls-row .checkbox[class*="span"], -.controls-row .radio[class*="span"] { - padding-top: 5px; -} - -input[disabled], -select[disabled], -textarea[disabled], -input[readonly], -select[readonly], -textarea[readonly] { - cursor: not-allowed; - background-color: #eeeeee; -} - -input[type="radio"][disabled], -input[type="checkbox"][disabled], -input[type="radio"][readonly], -input[type="checkbox"][readonly] { - background-color: transparent; -} - -.control-group.warning .control-label, -.control-group.warning .help-block, -.control-group.warning .help-inline { - color: #c09853; -} - -.control-group.warning .checkbox, -.control-group.warning .radio, -.control-group.warning input, -.control-group.warning select, -.control-group.warning textarea { - color: #c09853; -} - -.control-group.warning input, -.control-group.warning select, -.control-group.warning textarea { - border-color: #c09853; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} - -.control-group.warning input:focus, -.control-group.warning select:focus, -.control-group.warning textarea:focus { - border-color: #a47e3c; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; -} - -.control-group.warning .input-prepend .add-on, -.control-group.warning .input-append .add-on { - color: #c09853; - background-color: #fcf8e3; - border-color: #c09853; -} - -.control-group.error .control-label, -.control-group.error .help-block, -.control-group.error .help-inline { - color: #b94a48; -} - -.control-group.error .checkbox, -.control-group.error .radio, -.control-group.error input, -.control-group.error select, -.control-group.error textarea { - color: #b94a48; -} - -.control-group.error input, -.control-group.error select, -.control-group.error textarea { - border-color: #b94a48; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} - -.control-group.error input:focus, -.control-group.error select:focus, -.control-group.error textarea:focus { - border-color: #953b39; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; -} - -.control-group.error .input-prepend .add-on, -.control-group.error .input-append .add-on { - color: #b94a48; - background-color: #f2dede; - border-color: #b94a48; -} - -.control-group.success .control-label, -.control-group.success .help-block, -.control-group.success .help-inline { - color: #468847; -} - -.control-group.success .checkbox, -.control-group.success .radio, -.control-group.success input, -.control-group.success select, -.control-group.success textarea { - color: #468847; -} - -.control-group.success input, -.control-group.success select, -.control-group.success textarea { - border-color: #468847; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} - -.control-group.success input:focus, -.control-group.success select:focus, -.control-group.success textarea:focus { - border-color: #356635; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; -} - -.control-group.success .input-prepend .add-on, -.control-group.success .input-append .add-on { - color: #468847; - background-color: #dff0d8; - border-color: #468847; -} - -.control-group.info .control-label, -.control-group.info .help-block, -.control-group.info .help-inline { - color: #3a87ad; -} - -.control-group.info .checkbox, -.control-group.info .radio, -.control-group.info input, -.control-group.info select, -.control-group.info textarea { - color: #3a87ad; -} - -.control-group.info input, -.control-group.info select, -.control-group.info textarea { - border-color: #3a87ad; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} - -.control-group.info input:focus, -.control-group.info select:focus, -.control-group.info textarea:focus { - border-color: #2d6987; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; -} - -.control-group.info .input-prepend .add-on, -.control-group.info .input-append .add-on { - color: #3a87ad; - background-color: #d9edf7; - border-color: #3a87ad; -} - -input:focus:invalid, -textarea:focus:invalid, -select:focus:invalid { - color: #b94a48; - border-color: #ee5f5b; -} - -input:focus:invalid:focus, -textarea:focus:invalid:focus, -select:focus:invalid:focus { - border-color: #e9322d; - -webkit-box-shadow: 0 0 6px #f8b9b7; - -moz-box-shadow: 0 0 6px #f8b9b7; - box-shadow: 0 0 6px #f8b9b7; -} - -.form-actions { - padding: 19px 20px 20px; - margin-top: 20px; - margin-bottom: 20px; - background-color: #f5f5f5; - border-top: 1px solid #e5e5e5; - *zoom: 1; -} - -.form-actions:before, -.form-actions:after { - display: table; - line-height: 0; - content: ""; -} - -.form-actions:after { - clear: both; -} - -.help-block, -.help-inline { - color: #595959; -} - -.help-block { - display: block; - margin-bottom: 10px; -} - -.help-inline { - display: inline-block; - *display: inline; - padding-left: 5px; - vertical-align: middle; - *zoom: 1; -} - -.input-append, -.input-prepend { - display: inline-block; - margin-bottom: 10px; - font-size: 0; - white-space: nowrap; - vertical-align: middle; -} - -.input-append input, -.input-prepend input, -.input-append select, -.input-prepend select, -.input-append .uneditable-input, -.input-prepend .uneditable-input, -.input-append .dropdown-menu, -.input-prepend .dropdown-menu, -.input-append .popover, -.input-prepend .popover { - font-size: 14px; -} - -.input-append input, -.input-prepend input, -.input-append select, -.input-prepend select, -.input-append .uneditable-input, -.input-prepend .uneditable-input { - position: relative; - margin-bottom: 0; - *margin-left: 0; - vertical-align: top; - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; -} - -.input-append input:focus, -.input-prepend input:focus, -.input-append select:focus, -.input-prepend select:focus, -.input-append .uneditable-input:focus, -.input-prepend .uneditable-input:focus { - z-index: 2; -} - -.input-append .add-on, -.input-prepend .add-on { - display: inline-block; - width: auto; - height: 20px; - min-width: 16px; - padding: 4px 5px; - font-size: 14px; - font-weight: normal; - line-height: 20px; - text-align: center; - text-shadow: 0 1px 0 #ffffff; - background-color: #eeeeee; - border: 1px solid #ccc; -} - -.input-append .add-on, -.input-prepend .add-on, -.input-append .btn, -.input-prepend .btn, -.input-append .btn-group > .dropdown-toggle, -.input-prepend .btn-group > .dropdown-toggle { - vertical-align: top; - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} - -.input-append .active, -.input-prepend .active { - background-color: #a9dba9; - border-color: #46a546; -} - -.input-prepend .add-on, -.input-prepend .btn { - margin-right: -1px; -} - -.input-prepend .add-on:first-child, -.input-prepend .btn:first-child { - -webkit-border-radius: 4px 0 0 4px; - -moz-border-radius: 4px 0 0 4px; - border-radius: 4px 0 0 4px; -} - -.input-append input, -.input-append select, -.input-append .uneditable-input { - -webkit-border-radius: 4px 0 0 4px; - -moz-border-radius: 4px 0 0 4px; - border-radius: 4px 0 0 4px; -} - -.input-append input + .btn-group .btn:last-child, -.input-append select + .btn-group .btn:last-child, -.input-append .uneditable-input + .btn-group .btn:last-child { - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; -} - -.input-append .add-on, -.input-append .btn, -.input-append .btn-group { - margin-left: -1px; -} - -.input-append .add-on:last-child, -.input-append .btn:last-child, -.input-append .btn-group:last-child > .dropdown-toggle { - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; -} - -.input-prepend.input-append input, -.input-prepend.input-append select, -.input-prepend.input-append .uneditable-input { - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} - -.input-prepend.input-append input + .btn-group .btn, -.input-prepend.input-append select + .btn-group .btn, -.input-prepend.input-append .uneditable-input + .btn-group .btn { - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; -} - -.input-prepend.input-append .add-on:first-child, -.input-prepend.input-append .btn:first-child { - margin-right: -1px; - -webkit-border-radius: 4px 0 0 4px; - -moz-border-radius: 4px 0 0 4px; - border-radius: 4px 0 0 4px; -} - -.input-prepend.input-append .add-on:last-child, -.input-prepend.input-append .btn:last-child { - margin-left: -1px; - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; -} - -.input-prepend.input-append .btn-group:first-child { - margin-left: 0; -} - -input.search-query { - padding-right: 14px; - padding-right: 4px \9; - padding-left: 14px; - padding-left: 4px \9; - /* IE7-8 doesn't have border-radius, so don't indent the padding */ - - margin-bottom: 0; - -webkit-border-radius: 15px; - -moz-border-radius: 15px; - border-radius: 15px; -} - -/* Allow for input prepend/append in search forms */ - -.form-search .input-append .search-query, -.form-search .input-prepend .search-query { - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} - -.form-search .input-append .search-query { - -webkit-border-radius: 14px 0 0 14px; - -moz-border-radius: 14px 0 0 14px; - border-radius: 14px 0 0 14px; -} - -.form-search .input-append .btn { - -webkit-border-radius: 0 14px 14px 0; - -moz-border-radius: 0 14px 14px 0; - border-radius: 0 14px 14px 0; -} - -.form-search .input-prepend .search-query { - -webkit-border-radius: 0 14px 14px 0; - -moz-border-radius: 0 14px 14px 0; - border-radius: 0 14px 14px 0; -} - -.form-search .input-prepend .btn { - -webkit-border-radius: 14px 0 0 14px; - -moz-border-radius: 14px 0 0 14px; - border-radius: 14px 0 0 14px; -} - -.form-search input, -.form-inline input, -.form-horizontal input, -.form-search textarea, -.form-inline textarea, -.form-horizontal textarea, -.form-search select, -.form-inline select, -.form-horizontal select, -.form-search .help-inline, -.form-inline .help-inline, -.form-horizontal .help-inline, -.form-search .uneditable-input, -.form-inline .uneditable-input, -.form-horizontal .uneditable-input, -.form-search .input-prepend, -.form-inline .input-prepend, -.form-horizontal .input-prepend, -.form-search .input-append, -.form-inline .input-append, -.form-horizontal .input-append { - display: inline-block; - *display: inline; - margin-bottom: 0; - vertical-align: middle; - *zoom: 1; -} - -.form-search .hide, -.form-inline .hide, -.form-horizontal .hide { - display: none; -} - -.form-search label, -.form-inline label, -.form-search .btn-group, -.form-inline .btn-group { - display: inline-block; -} - -.form-search .input-append, -.form-inline .input-append, -.form-search .input-prepend, -.form-inline .input-prepend { - margin-bottom: 0; -} - -.form-search .radio, -.form-search .checkbox, -.form-inline .radio, -.form-inline .checkbox { - padding-left: 0; - margin-bottom: 0; - vertical-align: middle; -} - -.form-search .radio input[type="radio"], -.form-search .checkbox input[type="checkbox"], -.form-inline .radio input[type="radio"], -.form-inline .checkbox input[type="checkbox"] { - float: left; - margin-right: 3px; - margin-left: 0; -} - -.control-group { - margin-bottom: 10px; -} - -legend + .control-group { - margin-top: 20px; - -webkit-margin-top-collapse: separate; -} - -.form-horizontal .control-group { - margin-bottom: 20px; - *zoom: 1; -} - -.form-horizontal .control-group:before, -.form-horizontal .control-group:after { - display: table; - line-height: 0; - content: ""; -} - -.form-horizontal .control-group:after { - clear: both; -} - -.form-horizontal .control-label { - float: left; - width: 160px; - padding-top: 5px; - text-align: right; -} - -.form-horizontal .controls { - *display: inline-block; - *padding-left: 20px; - margin-left: 180px; - *margin-left: 0; -} - -.form-horizontal .controls:first-child { - *padding-left: 180px; -} - -.form-horizontal .help-block { - margin-bottom: 0; -} - -.form-horizontal input + .help-block, -.form-horizontal select + .help-block, -.form-horizontal textarea + .help-block, -.form-horizontal .uneditable-input + .help-block, -.form-horizontal .input-prepend + .help-block, -.form-horizontal .input-append + .help-block { - margin-top: 10px; -} - -.form-horizontal .form-actions { - padding-left: 180px; -} - -table { - max-width: 100%; - background-color: transparent; - border-collapse: collapse; - border-spacing: 0; -} - -.table { - width: 100%; - margin-bottom: 20px; -} - -.table th, -.table td { - padding: 8px; - line-height: 20px; - text-align: left; - vertical-align: top; - border-top: 1px solid #dddddd; -} - -.table th { - font-weight: bold; -} - -.table thead th { - vertical-align: bottom; -} - -.table caption + thead tr:first-child th, -.table caption + thead tr:first-child td, -.table colgroup + thead tr:first-child th, -.table colgroup + thead tr:first-child td, -.table thead:first-child tr:first-child th, -.table thead:first-child tr:first-child td { - border-top: 0; -} - -.table tbody + tbody { - border-top: 2px solid #dddddd; -} - -.table .table { - background-color: #ffffff; -} - -.table-condensed th, -.table-condensed td { - padding: 4px 5px; -} - -.table-bordered { - border: 1px solid #dddddd; - border-collapse: separate; - *border-collapse: collapse; - border-left: 0; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -.table-bordered th, -.table-bordered td { - border-left: 1px solid #dddddd; -} - -.table-bordered caption + thead tr:first-child th, -.table-bordered caption + tbody tr:first-child th, -.table-bordered caption + tbody tr:first-child td, -.table-bordered colgroup + thead tr:first-child th, -.table-bordered colgroup + tbody tr:first-child th, -.table-bordered colgroup + tbody tr:first-child td, -.table-bordered thead:first-child tr:first-child th, -.table-bordered tbody:first-child tr:first-child th, -.table-bordered tbody:first-child tr:first-child td { - border-top: 0; -} - -.table-bordered thead:first-child tr:first-child > th:first-child, -.table-bordered tbody:first-child tr:first-child > td:first-child, -.table-bordered tbody:first-child tr:first-child > th:first-child { - -webkit-border-top-left-radius: 4px; - border-top-left-radius: 4px; - -moz-border-radius-topleft: 4px; -} - -.table-bordered thead:first-child tr:first-child > th:last-child, -.table-bordered tbody:first-child tr:first-child > td:last-child, -.table-bordered tbody:first-child tr:first-child > th:last-child { - -webkit-border-top-right-radius: 4px; - border-top-right-radius: 4px; - -moz-border-radius-topright: 4px; -} - -.table-bordered thead:last-child tr:last-child > th:first-child, -.table-bordered tbody:last-child tr:last-child > td:first-child, -.table-bordered tbody:last-child tr:last-child > th:first-child, -.table-bordered tfoot:last-child tr:last-child > td:first-child, -.table-bordered tfoot:last-child tr:last-child > th:first-child { - -webkit-border-bottom-left-radius: 4px; - border-bottom-left-radius: 4px; - -moz-border-radius-bottomleft: 4px; -} - -.table-bordered thead:last-child tr:last-child > th:last-child, -.table-bordered tbody:last-child tr:last-child > td:last-child, -.table-bordered tbody:last-child tr:last-child > th:last-child, -.table-bordered tfoot:last-child tr:last-child > td:last-child, -.table-bordered tfoot:last-child tr:last-child > th:last-child { - -webkit-border-bottom-right-radius: 4px; - border-bottom-right-radius: 4px; - -moz-border-radius-bottomright: 4px; -} - -.table-bordered tfoot + tbody:last-child tr:last-child td:first-child { - -webkit-border-bottom-left-radius: 0; - border-bottom-left-radius: 0; - -moz-border-radius-bottomleft: 0; -} - -.table-bordered tfoot + tbody:last-child tr:last-child td:last-child { - -webkit-border-bottom-right-radius: 0; - border-bottom-right-radius: 0; - -moz-border-radius-bottomright: 0; -} - -.table-bordered caption + thead tr:first-child th:first-child, -.table-bordered caption + tbody tr:first-child td:first-child, -.table-bordered colgroup + thead tr:first-child th:first-child, -.table-bordered colgroup + tbody tr:first-child td:first-child { - -webkit-border-top-left-radius: 4px; - border-top-left-radius: 4px; - -moz-border-radius-topleft: 4px; -} - -.table-bordered caption + thead tr:first-child th:last-child, -.table-bordered caption + tbody tr:first-child td:last-child, -.table-bordered colgroup + thead tr:first-child th:last-child, -.table-bordered colgroup + tbody tr:first-child td:last-child { - -webkit-border-top-right-radius: 4px; - border-top-right-radius: 4px; - -moz-border-radius-topright: 4px; -} - -.table-striped tbody > tr:nth-child(odd) > td, -.table-striped tbody > tr:nth-child(odd) > th { - background-color: #f9f9f9; -} - -.table-hover tbody tr:hover > td, -.table-hover tbody tr:hover > th { - background-color: #f5f5f5; -} - -table td[class*="span"], -table th[class*="span"], -.row-fluid table td[class*="span"], -.row-fluid table th[class*="span"] { - display: table-cell; - float: none; - margin-left: 0; -} - -.table td.span1, -.table th.span1 { - float: none; - width: 44px; - margin-left: 0; -} - -.table td.span2, -.table th.span2 { - float: none; - width: 124px; - margin-left: 0; -} - -.table td.span3, -.table th.span3 { - float: none; - width: 204px; - margin-left: 0; -} - -.table td.span4, -.table th.span4 { - float: none; - width: 284px; - margin-left: 0; -} - -.table td.span5, -.table th.span5 { - float: none; - width: 364px; - margin-left: 0; -} - -.table td.span6, -.table th.span6 { - float: none; - width: 444px; - margin-left: 0; -} - -.table td.span7, -.table th.span7 { - float: none; - width: 524px; - margin-left: 0; -} - -.table td.span8, -.table th.span8 { - float: none; - width: 604px; - margin-left: 0; -} - -.table td.span9, -.table th.span9 { - float: none; - width: 684px; - margin-left: 0; -} - -.table td.span10, -.table th.span10 { - float: none; - width: 764px; - margin-left: 0; -} - -.table td.span11, -.table th.span11 { - float: none; - width: 844px; - margin-left: 0; -} - -.table td.span12, -.table th.span12 { - float: none; - width: 924px; - margin-left: 0; -} - -.table tbody tr.success > td { - background-color: #dff0d8; -} - -.table tbody tr.error > td { - background-color: #f2dede; -} - -.table tbody tr.warning > td { - background-color: #fcf8e3; -} - -.table tbody tr.info > td { - background-color: #d9edf7; -} - -.table-hover tbody tr.success:hover > td { - background-color: #d0e9c6; -} - -.table-hover tbody tr.error:hover > td { - background-color: #ebcccc; -} - -.table-hover tbody tr.warning:hover > td { - background-color: #faf2cc; -} - -.table-hover tbody tr.info:hover > td { - background-color: #c4e3f3; -} - -[class^="icon-"], -[class*=" icon-"] { - display: inline-block; - width: 14px; - height: 14px; - margin-top: 1px; - *margin-right: .3em; - line-height: 14px; - vertical-align: text-top; - background-image: url("https://github.com/img/glyphicons-halflings.png"); - background-position: 14px 14px; - background-repeat: no-repeat; -} - -/* White icons with optional class, or on hover/focus/active states of certain elements */ - -.icon-white, -.nav-pills > .active > a > [class^="icon-"], -.nav-pills > .active > a > [class*=" icon-"], -.nav-list > .active > a > [class^="icon-"], -.nav-list > .active > a > [class*=" icon-"], -.navbar-inverse .nav > .active > a > [class^="icon-"], -.navbar-inverse .nav > .active > a > [class*=" icon-"], -.dropdown-menu > li > a:hover > [class^="icon-"], -.dropdown-menu > li > a:focus > [class^="icon-"], -.dropdown-menu > li > a:hover > [class*=" icon-"], -.dropdown-menu > li > a:focus > [class*=" icon-"], -.dropdown-menu > .active > a > [class^="icon-"], -.dropdown-menu > .active > a > [class*=" icon-"], -.dropdown-submenu:hover > a > [class^="icon-"], -.dropdown-submenu:focus > a > [class^="icon-"], -.dropdown-submenu:hover > a > [class*=" icon-"], -.dropdown-submenu:focus > a > [class*=" icon-"] { - background-image: url("https://github.com/img/glyphicons-halflings-white.png"); -} - -.icon-glass { - background-position: 0 0; -} - -.icon-music { - background-position: -24px 0; -} - -.icon-search { - background-position: -48px 0; -} - -.icon-envelope { - background-position: -72px 0; -} - -.icon-heart { - background-position: -96px 0; -} - -.icon-star { - background-position: -120px 0; -} - -.icon-star-empty { - background-position: -144px 0; -} - -.icon-user { - background-position: -168px 0; -} - -.icon-film { - background-position: -192px 0; -} - -.icon-th-large { - background-position: -216px 0; -} - -.icon-th { - background-position: -240px 0; -} - -.icon-th-list { - background-position: -264px 0; -} - -.icon-ok { - background-position: -288px 0; -} - -.icon-remove { - background-position: -312px 0; -} - -.icon-zoom-in { - background-position: -336px 0; -} - -.icon-zoom-out { - background-position: -360px 0; -} - -.icon-off { - background-position: -384px 0; -} - -.icon-signal { - background-position: -408px 0; -} - -.icon-cog { - background-position: -432px 0; -} - -.icon-trash { - background-position: -456px 0; -} - -.icon-home { - background-position: 0 -24px; -} - -.icon-file { - background-position: -24px -24px; -} - -.icon-time { - background-position: -48px -24px; -} - -.icon-road { - background-position: -72px -24px; -} - -.icon-download-alt { - background-position: -96px -24px; -} - -.icon-download { - background-position: -120px -24px; -} - -.icon-upload { - background-position: -144px -24px; -} - -.icon-inbox { - background-position: -168px -24px; -} - -.icon-play-circle { - background-position: -192px -24px; -} - -.icon-repeat { - background-position: -216px -24px; -} - -.icon-refresh { - background-position: -240px -24px; -} - -.icon-list-alt { - background-position: -264px -24px; -} - -.icon-lock { - background-position: -287px -24px; -} - -.icon-flag { - background-position: -312px -24px; -} - -.icon-headphones { - background-position: -336px -24px; -} - -.icon-volume-off { - background-position: -360px -24px; -} - -.icon-volume-down { - background-position: -384px -24px; -} - -.icon-volume-up { - background-position: -408px -24px; -} - -.icon-qrcode { - background-position: -432px -24px; -} - -.icon-barcode { - background-position: -456px -24px; -} - -.icon-tag { - background-position: 0 -48px; -} - -.icon-tags { - background-position: -25px -48px; -} - -.icon-book { - background-position: -48px -48px; -} - -.icon-bookmark { - background-position: -72px -48px; -} - -.icon-print { - background-position: -96px -48px; -} - -.icon-camera { - background-position: -120px -48px; -} - -.icon-font { - background-position: -144px -48px; -} - -.icon-bold { - background-position: -167px -48px; -} - -.icon-italic { - background-position: -192px -48px; -} - -.icon-text-height { - background-position: -216px -48px; -} - -.icon-text-width { - background-position: -240px -48px; -} - -.icon-align-left { - background-position: -264px -48px; -} - -.icon-align-center { - background-position: -288px -48px; -} - -.icon-align-right { - background-position: -312px -48px; -} - -.icon-align-justify { - background-position: -336px -48px; -} - -.icon-list { - background-position: -360px -48px; -} - -.icon-indent-left { - background-position: -384px -48px; -} - -.icon-indent-right { - background-position: -408px -48px; -} - -.icon-facetime-video { - background-position: -432px -48px; -} - -.icon-picture { - background-position: -456px -48px; -} - -.icon-pencil { - background-position: 0 -72px; -} - -.icon-map-marker { - background-position: -24px -72px; -} - -.icon-adjust { - background-position: -48px -72px; -} - -.icon-tint { - background-position: -72px -72px; -} - -.icon-edit { - background-position: -96px -72px; -} - -.icon-share { - background-position: -120px -72px; -} - -.icon-check { - background-position: -144px -72px; -} - -.icon-move { - background-position: -168px -72px; -} - -.icon-step-backward { - background-position: -192px -72px; -} - -.icon-fast-backward { - background-position: -216px -72px; -} - -.icon-backward { - background-position: -240px -72px; -} - -.icon-play { - background-position: -264px -72px; -} - -.icon-pause { - background-position: -288px -72px; -} - -.icon-stop { - background-position: -312px -72px; -} - -.icon-forward { - background-position: -336px -72px; -} - -.icon-fast-forward { - background-position: -360px -72px; -} - -.icon-step-forward { - background-position: -384px -72px; -} - -.icon-eject { - background-position: -408px -72px; -} - -.icon-chevron-left { - background-position: -432px -72px; -} - -.icon-chevron-right { - background-position: -456px -72px; -} - -.icon-plus-sign { - background-position: 0 -96px; -} - -.icon-minus-sign { - background-position: -24px -96px; -} - -.icon-remove-sign { - background-position: -48px -96px; -} - -.icon-ok-sign { - background-position: -72px -96px; -} - -.icon-question-sign { - background-position: -96px -96px; -} - -.icon-info-sign { - background-position: -120px -96px; -} - -.icon-screenshot { - background-position: -144px -96px; -} - -.icon-remove-circle { - background-position: -168px -96px; -} - -.icon-ok-circle { - background-position: -192px -96px; -} - -.icon-ban-circle { - background-position: -216px -96px; -} - -.icon-arrow-left { - background-position: -240px -96px; -} - -.icon-arrow-right { - background-position: -264px -96px; -} - -.icon-arrow-up { - background-position: -289px -96px; -} - -.icon-arrow-down { - background-position: -312px -96px; -} - -.icon-share-alt { - background-position: -336px -96px; -} - -.icon-resize-full { - background-position: -360px -96px; -} - -.icon-resize-small { - background-position: -384px -96px; -} - -.icon-plus { - background-position: -408px -96px; -} - -.icon-minus { - background-position: -433px -96px; -} - -.icon-asterisk { - background-position: -456px -96px; -} - -.icon-exclamation-sign { - background-position: 0 -120px; -} - -.icon-gift { - background-position: -24px -120px; -} - -.icon-leaf { - background-position: -48px -120px; -} - -.icon-fire { - background-position: -72px -120px; -} - -.icon-eye-open { - background-position: -96px -120px; -} - -.icon-eye-close { - background-position: -120px -120px; -} - -.icon-warning-sign { - background-position: -144px -120px; -} - -.icon-plane { - background-position: -168px -120px; -} - -.icon-calendar { - background-position: -192px -120px; -} - -.icon-random { - width: 16px; - background-position: -216px -120px; -} - -.icon-comment { - background-position: -240px -120px; -} - -.icon-magnet { - background-position: -264px -120px; -} - -.icon-chevron-up { - background-position: -288px -120px; -} - -.icon-chevron-down { - background-position: -313px -119px; -} - -.icon-retweet { - background-position: -336px -120px; -} - -.icon-shopping-cart { - background-position: -360px -120px; -} - -.icon-folder-close { - width: 16px; - background-position: -384px -120px; -} - -.icon-folder-open { - width: 16px; - background-position: -408px -120px; -} - -.icon-resize-vertical { - background-position: -432px -119px; -} - -.icon-resize-horizontal { - background-position: -456px -118px; -} - -.icon-hdd { - background-position: 0 -144px; -} - -.icon-bullhorn { - background-position: -24px -144px; -} - -.icon-bell { - background-position: -48px -144px; -} - -.icon-certificate { - background-position: -72px -144px; -} - -.icon-thumbs-up { - background-position: -96px -144px; -} - -.icon-thumbs-down { - background-position: -120px -144px; -} - -.icon-hand-right { - background-position: -144px -144px; -} - -.icon-hand-left { - background-position: -168px -144px; -} - -.icon-hand-up { - background-position: -192px -144px; -} - -.icon-hand-down { - background-position: -216px -144px; -} - -.icon-circle-arrow-right { - background-position: -240px -144px; -} - -.icon-circle-arrow-left { - background-position: -264px -144px; -} - -.icon-circle-arrow-up { - background-position: -288px -144px; -} - -.icon-circle-arrow-down { - background-position: -312px -144px; -} - -.icon-globe { - background-position: -336px -144px; -} - -.icon-wrench { - background-position: -360px -144px; -} - -.icon-tasks { - background-position: -384px -144px; -} - -.icon-filter { - background-position: -408px -144px; -} - -.icon-briefcase { - background-position: -432px -144px; -} - -.icon-fullscreen { - background-position: -456px -144px; -} - -.dropup, -.dropdown { - position: relative; -} - -.dropdown-toggle { - *margin-bottom: -3px; -} - -.dropdown-toggle:active, -.open .dropdown-toggle { - outline: 0; -} - -.caret { - display: inline-block; - width: 0; - height: 0; - vertical-align: top; - border-top: 4px solid #000000; - border-right: 4px solid transparent; - border-left: 4px solid transparent; - content: ""; -} - -.dropdown .caret { - margin-top: 8px; - margin-left: 2px; -} - -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - display: none; - float: left; - min-width: 160px; - padding: 5px 0; - margin: 2px 0 0; - list-style: none; - background-color: #ffffff; - border: 1px solid #ccc; - border: 1px solid rgba(0, 0, 0, 0.2); - *border-right-width: 2px; - *border-bottom-width: 2px; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; - -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - -webkit-background-clip: padding-box; - -moz-background-clip: padding; - background-clip: padding-box; -} - -.dropdown-menu.pull-right { - right: 0; - left: auto; -} - -.dropdown-menu .divider { - *width: 100%; - height: 1px; - margin: 9px 1px; - *margin: -5px 0 5px; - overflow: hidden; - background-color: #e5e5e5; - border-bottom: 1px solid #ffffff; -} - -.dropdown-menu > li > a { - display: block; - padding: 3px 20px; - clear: both; - font-weight: normal; - line-height: 20px; - color: #333333; - white-space: nowrap; -} - -.dropdown-menu > li > a:hover, -.dropdown-menu > li > a:focus, -.dropdown-submenu:hover > a, -.dropdown-submenu:focus > a { - color: #ffffff; - text-decoration: none; - background-color: #0081c2; - background-image: -moz-linear-gradient(top, #0088cc, #0077b3); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3)); - background-image: -webkit-linear-gradient(top, #0088cc, #0077b3); - background-image: -o-linear-gradient(top, #0088cc, #0077b3); - background-image: linear-gradient(to bottom, #0088cc, #0077b3); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0); -} - -.dropdown-menu > .active > a, -.dropdown-menu > .active > a:hover, -.dropdown-menu > .active > a:focus { - color: #ffffff; - text-decoration: none; - background-color: #0081c2; - background-image: -moz-linear-gradient(top, #0088cc, #0077b3); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3)); - background-image: -webkit-linear-gradient(top, #0088cc, #0077b3); - background-image: -o-linear-gradient(top, #0088cc, #0077b3); - background-image: linear-gradient(to bottom, #0088cc, #0077b3); - background-repeat: repeat-x; - outline: 0; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0); -} - -.dropdown-menu > .disabled > a, -.dropdown-menu > .disabled > a:hover, -.dropdown-menu > .disabled > a:focus { - color: #999999; -} - -.dropdown-menu > .disabled > a:hover, -.dropdown-menu > .disabled > a:focus { - text-decoration: none; - cursor: default; - background-color: transparent; - background-image: none; - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} - -.open { - *z-index: 1000; -} - -.open > .dropdown-menu { - display: block; -} - -.pull-right > .dropdown-menu { - right: 0; - left: auto; -} - -.dropup .caret, -.navbar-fixed-bottom .dropdown .caret { - border-top: 0; - border-bottom: 4px solid #000000; - content: ""; -} - -.dropup .dropdown-menu, -.navbar-fixed-bottom .dropdown .dropdown-menu { - top: auto; - bottom: 100%; - margin-bottom: 1px; -} - -.dropdown-submenu { - position: relative; -} - -.dropdown-submenu > .dropdown-menu { - top: 0; - left: 100%; - margin-top: -6px; - margin-left: -1px; - -webkit-border-radius: 0 6px 6px 6px; - -moz-border-radius: 0 6px 6px 6px; - border-radius: 0 6px 6px 6px; -} - -.dropdown-submenu:hover > .dropdown-menu { - display: block; -} - -.dropup .dropdown-submenu > .dropdown-menu { - top: auto; - bottom: 0; - margin-top: 0; - margin-bottom: -2px; - -webkit-border-radius: 5px 5px 5px 0; - -moz-border-radius: 5px 5px 5px 0; - border-radius: 5px 5px 5px 0; -} - -.dropdown-submenu > a:after { - display: block; - float: right; - width: 0; - height: 0; - margin-top: 5px; - margin-right: -10px; - border-color: transparent; - border-left-color: #cccccc; - border-style: solid; - border-width: 5px 0 5px 5px; - content: " "; -} - -.dropdown-submenu:hover > a:after { - border-left-color: #ffffff; -} - -.dropdown-submenu.pull-left { - float: none; -} - -.dropdown-submenu.pull-left > .dropdown-menu { - left: -100%; - margin-left: 10px; - -webkit-border-radius: 6px 0 6px 6px; - -moz-border-radius: 6px 0 6px 6px; - border-radius: 6px 0 6px 6px; -} - -.dropdown .dropdown-menu .nav-header { - padding-right: 20px; - padding-left: 20px; -} - -.typeahead { - z-index: 1051; - margin-top: 2px; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -.well { - min-height: 20px; - padding: 19px; - margin-bottom: 20px; - background-color: #f5f5f5; - border: 1px solid #e3e3e3; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -} - -.well blockquote { - border-color: #ddd; - border-color: rgba(0, 0, 0, 0.15); -} - -.well-large { - padding: 24px; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; -} - -.well-small { - padding: 9px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; -} - -.fade { - opacity: 0; - -webkit-transition: opacity 0.15s linear; - -moz-transition: opacity 0.15s linear; - -o-transition: opacity 0.15s linear; - transition: opacity 0.15s linear; -} - -.fade.in { - opacity: 1; -} - -.collapse { - position: relative; - height: 0; - overflow: hidden; - -webkit-transition: height 0.35s ease; - -moz-transition: height 0.35s ease; - -o-transition: height 0.35s ease; - transition: height 0.35s ease; -} - -.collapse.in { - height: auto; -} - -.close { - float: right; - font-size: 20px; - font-weight: bold; - line-height: 20px; - color: #000000; - text-shadow: 0 1px 0 #ffffff; - opacity: 0.2; - filter: alpha(opacity=20); -} - -.close:hover, -.close:focus { - color: #000000; - text-decoration: none; - cursor: pointer; - opacity: 0.4; - filter: alpha(opacity=40); -} - -button.close { - padding: 0; - cursor: pointer; - background: transparent; - border: 0; - -webkit-appearance: none; -} - -.btn { - display: inline-block; - *display: inline; - padding: 4px 12px; - margin-bottom: 0; - *margin-left: .3em; - font-size: 14px; - line-height: 20px; - color: #333333; - text-align: center; - text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); - vertical-align: middle; - cursor: pointer; - background-color: #f5f5f5; - *background-color: #e6e6e6; - background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); - background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6); - background-image: -o-linear-gradient(top, #ffffff, #e6e6e6); - background-image: linear-gradient(to bottom, #ffffff, #e6e6e6); - background-repeat: repeat-x; - border: 1px solid #cccccc; - *border: 0; - border-color: #e6e6e6 #e6e6e6 #bfbfbf; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - border-bottom-color: #b3b3b3; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); - *zoom: 1; - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -} - -.btn:hover, -.btn:focus, -.btn:active, -.btn.active, -.btn.disabled, -.btn[disabled] { - color: #333333; - background-color: #e6e6e6; - *background-color: #d9d9d9; -} - -.btn:active, -.btn.active { - background-color: #cccccc \9; -} - -.btn:first-child { - *margin-left: 0; -} - -.btn:hover, -.btn:focus { - color: #333333; - text-decoration: none; - background-position: 0 -15px; - -webkit-transition: background-position 0.1s linear; - -moz-transition: background-position 0.1s linear; - -o-transition: background-position 0.1s linear; - transition: background-position 0.1s linear; -} - -.btn:focus { - outline: thin dotted #333; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} - -.btn.active, -.btn:active { - background-image: none; - outline: 0; - -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); -} - -.btn.disabled, -.btn[disabled] { - cursor: default; - background-image: none; - opacity: 0.65; - filter: alpha(opacity=65); - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} - -.btn-large { - padding: 11px 19px; - font-size: 17.5px; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; -} - -.btn-large [class^="icon-"], -.btn-large [class*=" icon-"] { - margin-top: 4px; -} - -.btn-small { - padding: 2px 10px; - font-size: 11.9px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; -} - -.btn-small [class^="icon-"], -.btn-small [class*=" icon-"] { - margin-top: 0; -} - -.btn-mini [class^="icon-"], -.btn-mini [class*=" icon-"] { - margin-top: -1px; -} - -.btn-mini { - padding: 0 6px; - font-size: 10.5px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; -} - -.btn-block { - display: block; - width: 100%; - padding-right: 0; - padding-left: 0; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.btn-block + .btn-block { - margin-top: 5px; -} - -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - width: 100%; -} - -.btn-primary.active, -.btn-warning.active, -.btn-danger.active, -.btn-success.active, -.btn-info.active, -.btn-inverse.active { - color: rgba(255, 255, 255, 0.75); -} - -.btn-primary { - color: #ffffff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #006dcc; - *background-color: #0044cc; - background-image: -moz-linear-gradient(top, #0088cc, #0044cc); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc)); - background-image: -webkit-linear-gradient(top, #0088cc, #0044cc); - background-image: -o-linear-gradient(top, #0088cc, #0044cc); - background-image: linear-gradient(to bottom, #0088cc, #0044cc); - background-repeat: repeat-x; - border-color: #0044cc #0044cc #002a80; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} - -.btn-primary:hover, -.btn-primary:focus, -.btn-primary:active, -.btn-primary.active, -.btn-primary.disabled, -.btn-primary[disabled] { - color: #ffffff; - background-color: #0044cc; - *background-color: #003bb3; -} - -.btn-primary:active, -.btn-primary.active { - background-color: #003399 \9; -} - -.btn-warning { - color: #ffffff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #faa732; - *background-color: #f89406; - background-image: -moz-linear-gradient(top, #fbb450, #f89406); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); - background-image: -webkit-linear-gradient(top, #fbb450, #f89406); - background-image: -o-linear-gradient(top, #fbb450, #f89406); - background-image: linear-gradient(to bottom, #fbb450, #f89406); - background-repeat: repeat-x; - border-color: #f89406 #f89406 #ad6704; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} - -.btn-warning:hover, -.btn-warning:focus, -.btn-warning:active, -.btn-warning.active, -.btn-warning.disabled, -.btn-warning[disabled] { - color: #ffffff; - background-color: #f89406; - *background-color: #df8505; -} - -.btn-warning:active, -.btn-warning.active { - background-color: #c67605 \9; -} - -.btn-danger { - color: #ffffff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #da4f49; - *background-color: #bd362f; - background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f)); - background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f); - background-image: -o-linear-gradient(top, #ee5f5b, #bd362f); - background-image: linear-gradient(to bottom, #ee5f5b, #bd362f); - background-repeat: repeat-x; - border-color: #bd362f #bd362f #802420; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} - -.btn-danger:hover, -.btn-danger:focus, -.btn-danger:active, -.btn-danger.active, -.btn-danger.disabled, -.btn-danger[disabled] { - color: #ffffff; - background-color: #bd362f; - *background-color: #a9302a; -} - -.btn-danger:active, -.btn-danger.active { - background-color: #942a25 \9; -} - -.btn-success { - color: #ffffff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #5bb75b; - *background-color: #51a351; - background-image: -moz-linear-gradient(top, #62c462, #51a351); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351)); - background-image: -webkit-linear-gradient(top, #62c462, #51a351); - background-image: -o-linear-gradient(top, #62c462, #51a351); - background-image: linear-gradient(to bottom, #62c462, #51a351); - background-repeat: repeat-x; - border-color: #51a351 #51a351 #387038; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} - -.btn-success:hover, -.btn-success:focus, -.btn-success:active, -.btn-success.active, -.btn-success.disabled, -.btn-success[disabled] { - color: #ffffff; - background-color: #51a351; - *background-color: #499249; -} - -.btn-success:active, -.btn-success.active { - background-color: #408140 \9; -} - -.btn-info { - color: #ffffff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #49afcd; - *background-color: #2f96b4; - background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4)); - background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4); - background-image: -o-linear-gradient(top, #5bc0de, #2f96b4); - background-image: linear-gradient(to bottom, #5bc0de, #2f96b4); - background-repeat: repeat-x; - border-color: #2f96b4 #2f96b4 #1f6377; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} - -.btn-info:hover, -.btn-info:focus, -.btn-info:active, -.btn-info.active, -.btn-info.disabled, -.btn-info[disabled] { - color: #ffffff; - background-color: #2f96b4; - *background-color: #2a85a0; -} - -.btn-info:active, -.btn-info.active { - background-color: #24748c \9; -} - -.btn-inverse { - color: #ffffff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #363636; - *background-color: #222222; - background-image: -moz-linear-gradient(top, #444444, #222222); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222)); - background-image: -webkit-linear-gradient(top, #444444, #222222); - background-image: -o-linear-gradient(top, #444444, #222222); - background-image: linear-gradient(to bottom, #444444, #222222); - background-repeat: repeat-x; - border-color: #222222 #222222 #000000; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} - -.btn-inverse:hover, -.btn-inverse:focus, -.btn-inverse:active, -.btn-inverse.active, -.btn-inverse.disabled, -.btn-inverse[disabled] { - color: #ffffff; - background-color: #222222; - *background-color: #151515; -} - -.btn-inverse:active, -.btn-inverse.active { - background-color: #080808 \9; -} - -button.btn, -input[type="submit"].btn { - *padding-top: 3px; - *padding-bottom: 3px; -} - -button.btn::-moz-focus-inner, -input[type="submit"].btn::-moz-focus-inner { - padding: 0; - border: 0; -} - -button.btn.btn-large, -input[type="submit"].btn.btn-large { - *padding-top: 7px; - *padding-bottom: 7px; -} - -button.btn.btn-small, -input[type="submit"].btn.btn-small { - *padding-top: 3px; - *padding-bottom: 3px; -} - -button.btn.btn-mini, -input[type="submit"].btn.btn-mini { - *padding-top: 1px; - *padding-bottom: 1px; -} - -.btn-link, -.btn-link:active, -.btn-link[disabled] { - background-color: transparent; - background-image: none; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} - -.btn-link { - color: #0088cc; - cursor: pointer; - border-color: transparent; - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} - -.btn-link:hover, -.btn-link:focus { - color: #005580; - text-decoration: underline; - background-color: transparent; -} - -.btn-link[disabled]:hover, -.btn-link[disabled]:focus { - color: #333333; - text-decoration: none; -} - -.btn-group { - position: relative; - display: inline-block; - *display: inline; - *margin-left: .3em; - font-size: 0; - white-space: nowrap; - vertical-align: middle; - *zoom: 1; -} - -.btn-group:first-child { - *margin-left: 0; -} - -.btn-group + .btn-group { - margin-left: 5px; -} - -.btn-toolbar { - margin-top: 10px; - margin-bottom: 10px; - font-size: 0; -} - -.btn-toolbar > .btn + .btn, -.btn-toolbar > .btn-group + .btn, -.btn-toolbar > .btn + .btn-group { - margin-left: 5px; -} - -.btn-group > .btn { - position: relative; - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} - -.btn-group > .btn + .btn { - margin-left: -1px; -} - -.btn-group > .btn, -.btn-group > .dropdown-menu, -.btn-group > .popover { - font-size: 14px; -} - -.btn-group > .btn-mini { - font-size: 10.5px; -} - -.btn-group > .btn-small { - font-size: 11.9px; -} - -.btn-group > .btn-large { - font-size: 17.5px; -} - -.btn-group > .btn:first-child { - margin-left: 0; - -webkit-border-bottom-left-radius: 4px; - border-bottom-left-radius: 4px; - -webkit-border-top-left-radius: 4px; - border-top-left-radius: 4px; - -moz-border-radius-bottomleft: 4px; - -moz-border-radius-topleft: 4px; -} - -.btn-group > .btn:last-child, -.btn-group > .dropdown-toggle { - -webkit-border-top-right-radius: 4px; - border-top-right-radius: 4px; - -webkit-border-bottom-right-radius: 4px; - border-bottom-right-radius: 4px; - -moz-border-radius-topright: 4px; - -moz-border-radius-bottomright: 4px; -} - -.btn-group > .btn.large:first-child { - margin-left: 0; - -webkit-border-bottom-left-radius: 6px; - border-bottom-left-radius: 6px; - -webkit-border-top-left-radius: 6px; - border-top-left-radius: 6px; - -moz-border-radius-bottomleft: 6px; - -moz-border-radius-topleft: 6px; -} - -.btn-group > .btn.large:last-child, -.btn-group > .large.dropdown-toggle { - -webkit-border-top-right-radius: 6px; - border-top-right-radius: 6px; - -webkit-border-bottom-right-radius: 6px; - border-bottom-right-radius: 6px; - -moz-border-radius-topright: 6px; - -moz-border-radius-bottomright: 6px; -} - -.btn-group > .btn:hover, -.btn-group > .btn:focus, -.btn-group > .btn:active, -.btn-group > .btn.active { - z-index: 2; -} - -.btn-group .dropdown-toggle:active, -.btn-group.open .dropdown-toggle { - outline: 0; -} - -.btn-group > .btn + .dropdown-toggle { - *padding-top: 5px; - padding-right: 8px; - *padding-bottom: 5px; - padding-left: 8px; - -webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); - box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -} - -.btn-group > .btn-mini + .dropdown-toggle { - *padding-top: 2px; - padding-right: 5px; - *padding-bottom: 2px; - padding-left: 5px; -} - -.btn-group > .btn-small + .dropdown-toggle { - *padding-top: 5px; - *padding-bottom: 4px; -} - -.btn-group > .btn-large + .dropdown-toggle { - *padding-top: 7px; - padding-right: 12px; - *padding-bottom: 7px; - padding-left: 12px; -} - -.btn-group.open .dropdown-toggle { - background-image: none; - -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); -} - -.btn-group.open .btn.dropdown-toggle { - background-color: #e6e6e6; -} - -.btn-group.open .btn-primary.dropdown-toggle { - background-color: #0044cc; -} - -.btn-group.open .btn-warning.dropdown-toggle { - background-color: #f89406; -} - -.btn-group.open .btn-danger.dropdown-toggle { - background-color: #bd362f; -} - -.btn-group.open .btn-success.dropdown-toggle { - background-color: #51a351; -} - -.btn-group.open .btn-info.dropdown-toggle { - background-color: #2f96b4; -} - -.btn-group.open .btn-inverse.dropdown-toggle { - background-color: #222222; -} - -.btn .caret { - margin-top: 8px; - margin-left: 0; -} - -.btn-large .caret { - margin-top: 6px; -} - -.btn-large .caret { - border-top-width: 5px; - border-right-width: 5px; - border-left-width: 5px; -} - -.btn-mini .caret, -.btn-small .caret { - margin-top: 8px; -} - -.dropup .btn-large .caret { - border-bottom-width: 5px; -} - -.btn-primary .caret, -.btn-warning .caret, -.btn-danger .caret, -.btn-info .caret, -.btn-success .caret, -.btn-inverse .caret { - border-top-color: #ffffff; - border-bottom-color: #ffffff; -} - -.btn-group-vertical { - display: inline-block; - *display: inline; - /* IE7 inline-block hack */ - - *zoom: 1; -} - -.btn-group-vertical > .btn { - display: block; - float: none; - max-width: 100%; - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} - -.btn-group-vertical > .btn + .btn { - margin-top: -1px; - margin-left: 0; -} - -.btn-group-vertical > .btn:first-child { - -webkit-border-radius: 4px 4px 0 0; - -moz-border-radius: 4px 4px 0 0; - border-radius: 4px 4px 0 0; -} - -.btn-group-vertical > .btn:last-child { - -webkit-border-radius: 0 0 4px 4px; - -moz-border-radius: 0 0 4px 4px; - border-radius: 0 0 4px 4px; -} - -.btn-group-vertical > .btn-large:first-child { - -webkit-border-radius: 6px 6px 0 0; - -moz-border-radius: 6px 6px 0 0; - border-radius: 6px 6px 0 0; -} - -.btn-group-vertical > .btn-large:last-child { - -webkit-border-radius: 0 0 6px 6px; - -moz-border-radius: 0 0 6px 6px; - border-radius: 0 0 6px 6px; -} - -.alert { - padding: 8px 35px 8px 14px; - margin-bottom: 20px; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - background-color: #fcf8e3; - border: 1px solid #fbeed5; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -.alert, -.alert h4 { - color: #c09853; -} - -.alert h4 { - margin: 0; -} - -.alert .close { - position: relative; - top: -2px; - right: -21px; - line-height: 20px; -} - -.alert-success { - color: #468847; - background-color: #dff0d8; - border-color: #d6e9c6; -} - -.alert-success h4 { - color: #468847; -} - -.alert-danger, -.alert-error { - color: #b94a48; - background-color: #f2dede; - border-color: #eed3d7; -} - -.alert-danger h4, -.alert-error h4 { - color: #b94a48; -} - -.alert-info { - color: #3a87ad; - background-color: #d9edf7; - border-color: #bce8f1; -} - -.alert-info h4 { - color: #3a87ad; -} - -.alert-block { - padding-top: 14px; - padding-bottom: 14px; -} - -.alert-block > p, -.alert-block > ul { - margin-bottom: 0; -} - -.alert-block p + p { - margin-top: 5px; -} - -.nav { - margin-bottom: 20px; - margin-left: 0; - list-style: none; -} - -.nav > li > a { - display: block; -} - -.nav > li > a:hover, -.nav > li > a:focus { - text-decoration: none; - background-color: #eeeeee; -} - -.nav > li > a > img { - max-width: none; -} - -.nav > .pull-right { - float: right; -} - -.nav-header { - display: block; - padding: 3px 15px; - font-size: 11px; - font-weight: bold; - line-height: 20px; - color: #999999; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - text-transform: uppercase; -} - -.nav li + .nav-header { - margin-top: 9px; -} - -.nav-list { - padding-right: 15px; - padding-left: 15px; - margin-bottom: 0; -} - -.nav-list > li > a, -.nav-list .nav-header { - margin-right: -15px; - margin-left: -15px; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); -} - -.nav-list > li > a { - padding: 3px 15px; -} - -.nav-list > .active > a, -.nav-list > .active > a:hover, -.nav-list > .active > a:focus { - color: #ffffff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); - background-color: #0088cc; -} - -.nav-list [class^="icon-"], -.nav-list [class*=" icon-"] { - margin-right: 2px; -} - -.nav-list .divider { - *width: 100%; - height: 1px; - margin: 9px 1px; - *margin: -5px 0 5px; - overflow: hidden; - background-color: #e5e5e5; - border-bottom: 1px solid #ffffff; -} - -.nav-tabs, -.nav-pills { - *zoom: 1; -} - -.nav-tabs:before, -.nav-pills:before, -.nav-tabs:after, -.nav-pills:after { - display: table; - line-height: 0; - content: ""; -} - -.nav-tabs:after, -.nav-pills:after { - clear: both; -} - -.nav-tabs > li, -.nav-pills > li { - float: left; -} - -.nav-tabs > li > a, -.nav-pills > li > a { - padding-right: 12px; - padding-left: 12px; - margin-right: 2px; - line-height: 14px; -} - -.nav-tabs { - border-bottom: 1px solid #ddd; -} - -.nav-tabs > li { - margin-bottom: -1px; -} - -.nav-tabs > li > a { - padding-top: 8px; - padding-bottom: 8px; - line-height: 20px; - border: 1px solid transparent; - -webkit-border-radius: 4px 4px 0 0; - -moz-border-radius: 4px 4px 0 0; - border-radius: 4px 4px 0 0; -} - -.nav-tabs > li > a:hover, -.nav-tabs > li > a:focus { - border-color: #eeeeee #eeeeee #dddddd; -} - -.nav-tabs > .active > a, -.nav-tabs > .active > a:hover, -.nav-tabs > .active > a:focus { - color: #555555; - cursor: default; - background-color: #ffffff; - border: 1px solid #ddd; - border-bottom-color: transparent; -} - -.nav-pills > li > a { - padding-top: 8px; - padding-bottom: 8px; - margin-top: 2px; - margin-bottom: 2px; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; -} - -.nav-pills > .active > a, -.nav-pills > .active > a:hover, -.nav-pills > .active > a:focus { - color: #ffffff; - background-color: #0088cc; -} - -.nav-stacked > li { - float: none; -} - -.nav-stacked > li > a { - margin-right: 0; -} - -.nav-tabs.nav-stacked { - border-bottom: 0; -} - -.nav-tabs.nav-stacked > li > a { - border: 1px solid #ddd; - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} - -.nav-tabs.nav-stacked > li:first-child > a { - -webkit-border-top-right-radius: 4px; - border-top-right-radius: 4px; - -webkit-border-top-left-radius: 4px; - border-top-left-radius: 4px; - -moz-border-radius-topright: 4px; - -moz-border-radius-topleft: 4px; -} - -.nav-tabs.nav-stacked > li:last-child > a { - -webkit-border-bottom-right-radius: 4px; - border-bottom-right-radius: 4px; - -webkit-border-bottom-left-radius: 4px; - border-bottom-left-radius: 4px; - -moz-border-radius-bottomright: 4px; - -moz-border-radius-bottomleft: 4px; -} - -.nav-tabs.nav-stacked > li > a:hover, -.nav-tabs.nav-stacked > li > a:focus { - z-index: 2; - border-color: #ddd; -} - -.nav-pills.nav-stacked > li > a { - margin-bottom: 3px; -} - -.nav-pills.nav-stacked > li:last-child > a { - margin-bottom: 1px; -} - -.nav-tabs .dropdown-menu { - -webkit-border-radius: 0 0 6px 6px; - -moz-border-radius: 0 0 6px 6px; - border-radius: 0 0 6px 6px; -} - -.nav-pills .dropdown-menu { - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; -} - -.nav .dropdown-toggle .caret { - margin-top: 6px; - border-top-color: #0088cc; - border-bottom-color: #0088cc; -} - -.nav .dropdown-toggle:hover .caret, -.nav .dropdown-toggle:focus .caret { - border-top-color: #005580; - border-bottom-color: #005580; -} - -/* move down carets for tabs */ - -.nav-tabs .dropdown-toggle .caret { - margin-top: 8px; -} - -.nav .active .dropdown-toggle .caret { - border-top-color: #fff; - border-bottom-color: #fff; -} - -.nav-tabs .active .dropdown-toggle .caret { - border-top-color: #555555; - border-bottom-color: #555555; -} - -.nav > .dropdown.active > a:hover, -.nav > .dropdown.active > a:focus { - cursor: pointer; -} - -.nav-tabs .open .dropdown-toggle, -.nav-pills .open .dropdown-toggle, -.nav > li.dropdown.open.active > a:hover, -.nav > li.dropdown.open.active > a:focus { - color: #ffffff; - background-color: #999999; - border-color: #999999; -} - -.nav li.dropdown.open .caret, -.nav li.dropdown.open.active .caret, -.nav li.dropdown.open a:hover .caret, -.nav li.dropdown.open a:focus .caret { - border-top-color: #ffffff; - border-bottom-color: #ffffff; - opacity: 1; - filter: alpha(opacity=100); -} - -.tabs-stacked .open > a:hover, -.tabs-stacked .open > a:focus { - border-color: #999999; -} - -.tabbable { - *zoom: 1; -} - -.tabbable:before, -.tabbable:after { - display: table; - line-height: 0; - content: ""; -} - -.tabbable:after { - clear: both; -} - -.tab-content { - overflow: auto; -} - -.tabs-below > .nav-tabs, -.tabs-right > .nav-tabs, -.tabs-left > .nav-tabs { - border-bottom: 0; -} - -.tab-content > .tab-pane, -.pill-content > .pill-pane { - display: none; -} - -.tab-content > .active, -.pill-content > .active { - display: block; -} - -.tabs-below > .nav-tabs { - border-top: 1px solid #ddd; -} - -.tabs-below > .nav-tabs > li { - margin-top: -1px; - margin-bottom: 0; -} - -.tabs-below > .nav-tabs > li > a { - -webkit-border-radius: 0 0 4px 4px; - -moz-border-radius: 0 0 4px 4px; - border-radius: 0 0 4px 4px; -} - -.tabs-below > .nav-tabs > li > a:hover, -.tabs-below > .nav-tabs > li > a:focus { - border-top-color: #ddd; - border-bottom-color: transparent; -} - -.tabs-below > .nav-tabs > .active > a, -.tabs-below > .nav-tabs > .active > a:hover, -.tabs-below > .nav-tabs > .active > a:focus { - border-color: transparent #ddd #ddd #ddd; -} - -.tabs-left > .nav-tabs > li, -.tabs-right > .nav-tabs > li { - float: none; -} - -.tabs-left > .nav-tabs > li > a, -.tabs-right > .nav-tabs > li > a { - min-width: 74px; - margin-right: 0; - margin-bottom: 3px; -} - -.tabs-left > .nav-tabs { - float: left; - margin-right: 19px; - border-right: 1px solid #ddd; -} - -.tabs-left > .nav-tabs > li > a { - margin-right: -1px; - -webkit-border-radius: 4px 0 0 4px; - -moz-border-radius: 4px 0 0 4px; - border-radius: 4px 0 0 4px; -} - -.tabs-left > .nav-tabs > li > a:hover, -.tabs-left > .nav-tabs > li > a:focus { - border-color: #eeeeee #dddddd #eeeeee #eeeeee; -} - -.tabs-left > .nav-tabs .active > a, -.tabs-left > .nav-tabs .active > a:hover, -.tabs-left > .nav-tabs .active > a:focus { - border-color: #ddd transparent #ddd #ddd; - *border-right-color: #ffffff; -} - -.tabs-right > .nav-tabs { - float: right; - margin-left: 19px; - border-left: 1px solid #ddd; -} - -.tabs-right > .nav-tabs > li > a { - margin-left: -1px; - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; -} - -.tabs-right > .nav-tabs > li > a:hover, -.tabs-right > .nav-tabs > li > a:focus { - border-color: #eeeeee #eeeeee #eeeeee #dddddd; -} - -.tabs-right > .nav-tabs .active > a, -.tabs-right > .nav-tabs .active > a:hover, -.tabs-right > .nav-tabs .active > a:focus { - border-color: #ddd #ddd #ddd transparent; - *border-left-color: #ffffff; -} - -.nav > .disabled > a { - color: #999999; -} - -.nav > .disabled > a:hover, -.nav > .disabled > a:focus { - text-decoration: none; - cursor: default; - background-color: transparent; -} - -.navbar { - *position: relative; - *z-index: 2; - margin-bottom: 20px; - overflow: visible; -} - -.navbar-inner { - min-height: 40px; - padding-right: 20px; - padding-left: 20px; - background-color: #fafafa; - background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2)); - background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2); - background-image: -o-linear-gradient(top, #ffffff, #f2f2f2); - background-image: linear-gradient(to bottom, #ffffff, #f2f2f2); - background-repeat: repeat-x; - border: 1px solid #d4d4d4; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0); - *zoom: 1; - -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); - -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); -} - -.navbar-inner:before, -.navbar-inner:after { - display: table; - line-height: 0; - content: ""; -} - -.navbar-inner:after { - clear: both; -} - -.navbar .container { - width: auto; -} - -.nav-collapse.collapse { - height: auto; - overflow: visible; -} - -.navbar .brand { - display: block; - float: left; - padding: 10px 20px 10px; - margin-left: -20px; - font-size: 20px; - font-weight: 200; - color: #777777; - text-shadow: 0 1px 0 #ffffff; -} - -.navbar .brand:hover, -.navbar .brand:focus { - text-decoration: none; -} - -.navbar-text { - margin-bottom: 0; - line-height: 40px; - color: #777777; -} - -.navbar-link { - color: #777777; -} - -.navbar-link:hover, -.navbar-link:focus { - color: #333333; -} - -.navbar .divider-vertical { - height: 40px; - margin: 0 9px; - border-right: 1px solid #ffffff; - border-left: 1px solid #f2f2f2; -} - -.navbar .btn, -.navbar .btn-group { - margin-top: 5px; -} - -.navbar .btn-group .btn, -.navbar .input-prepend .btn, -.navbar .input-append .btn, -.navbar .input-prepend .btn-group, -.navbar .input-append .btn-group { - margin-top: 0; -} - -.navbar-form { - margin-bottom: 0; - *zoom: 1; -} - -.navbar-form:before, -.navbar-form:after { - display: table; - line-height: 0; - content: ""; -} - -.navbar-form:after { - clear: both; -} - -.navbar-form input, -.navbar-form select, -.navbar-form .radio, -.navbar-form .checkbox { - margin-top: 5px; -} - -.navbar-form input, -.navbar-form select, -.navbar-form .btn { - display: inline-block; - margin-bottom: 0; -} - -.navbar-form input[type="image"], -.navbar-form input[type="checkbox"], -.navbar-form input[type="radio"] { - margin-top: 3px; -} - -.navbar-form .input-append, -.navbar-form .input-prepend { - margin-top: 5px; - white-space: nowrap; -} - -.navbar-form .input-append input, -.navbar-form .input-prepend input { - margin-top: 0; -} - -.navbar-search { - position: relative; - float: left; - margin-top: 5px; - margin-bottom: 0; -} - -.navbar-search .search-query { - padding: 4px 14px; - margin-bottom: 0; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 13px; - font-weight: normal; - line-height: 1; - -webkit-border-radius: 15px; - -moz-border-radius: 15px; - border-radius: 15px; -} - -.navbar-static-top { - position: static; - margin-bottom: 0; -} - -.navbar-static-top .navbar-inner { - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} - -.navbar-fixed-top, -.navbar-fixed-bottom { - position: fixed; - right: 0; - left: 0; - z-index: 1030; - margin-bottom: 0; -} - -.navbar-fixed-top .navbar-inner, -.navbar-static-top .navbar-inner { - border-width: 0 0 1px; -} - -.navbar-fixed-bottom .navbar-inner { - border-width: 1px 0 0; -} - -.navbar-fixed-top .navbar-inner, -.navbar-fixed-bottom .navbar-inner { - padding-right: 0; - padding-left: 0; - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} - -.navbar-static-top .container, -.navbar-fixed-top .container, -.navbar-fixed-bottom .container { - width: 940px; -} - -.navbar-fixed-top { - top: 0; -} - -.navbar-fixed-top .navbar-inner, -.navbar-static-top .navbar-inner { - -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); - -moz-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); - box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); -} - -.navbar-fixed-bottom { - bottom: 0; -} - -.navbar-fixed-bottom .navbar-inner { - -webkit-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); - -moz-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); - box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); -} - -.navbar .nav { - position: relative; - left: 0; - display: block; - float: left; - margin: 0 10px 0 0; -} - -.navbar .nav.pull-right { - float: right; - margin-right: 0; -} - -.navbar .nav > li { - float: left; -} - -.navbar .nav > li > a { - float: none; - padding: 10px 15px 10px; - color: #777777; - text-decoration: none; - text-shadow: 0 1px 0 #ffffff; -} - -.navbar .nav .dropdown-toggle .caret { - margin-top: 8px; -} - -.navbar .nav > li > a:focus, -.navbar .nav > li > a:hover { - color: #333333; - text-decoration: none; - background-color: transparent; -} - -.navbar .nav > .active > a, -.navbar .nav > .active > a:hover, -.navbar .nav > .active > a:focus { - color: #555555; - text-decoration: none; - background-color: #e5e5e5; - -webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); - -moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); - box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); -} - -.navbar .btn-navbar { - display: none; - float: right; - padding: 7px 10px; - margin-right: 5px; - margin-left: 5px; - color: #ffffff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #ededed; - *background-color: #e5e5e5; - background-image: -moz-linear-gradient(top, #f2f2f2, #e5e5e5); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#e5e5e5)); - background-image: -webkit-linear-gradient(top, #f2f2f2, #e5e5e5); - background-image: -o-linear-gradient(top, #f2f2f2, #e5e5e5); - background-image: linear-gradient(to bottom, #f2f2f2, #e5e5e5); - background-repeat: repeat-x; - border-color: #e5e5e5 #e5e5e5 #bfbfbf; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2f2f2', endColorstr='#ffe5e5e5', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); - -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); -} - -.navbar .btn-navbar:hover, -.navbar .btn-navbar:focus, -.navbar .btn-navbar:active, -.navbar .btn-navbar.active, -.navbar .btn-navbar.disabled, -.navbar .btn-navbar[disabled] { - color: #ffffff; - background-color: #e5e5e5; - *background-color: #d9d9d9; -} - -.navbar .btn-navbar:active, -.navbar .btn-navbar.active { - background-color: #cccccc \9; -} - -.navbar .btn-navbar .icon-bar { - display: block; - width: 18px; - height: 2px; - background-color: #f5f5f5; - -webkit-border-radius: 1px; - -moz-border-radius: 1px; - border-radius: 1px; - -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); - -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); - box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); -} - -.btn-navbar .icon-bar + .icon-bar { - margin-top: 3px; -} - -.navbar .nav > li > .dropdown-menu:before { - position: absolute; - top: -7px; - left: 9px; - display: inline-block; - border-right: 7px solid transparent; - border-bottom: 7px solid #ccc; - border-left: 7px solid transparent; - border-bottom-color: rgba(0, 0, 0, 0.2); - content: ''; -} - -.navbar .nav > li > .dropdown-menu:after { - position: absolute; - top: -6px; - left: 10px; - display: inline-block; - border-right: 6px solid transparent; - border-bottom: 6px solid #ffffff; - border-left: 6px solid transparent; - content: ''; -} - -.navbar-fixed-bottom .nav > li > .dropdown-menu:before { - top: auto; - bottom: -7px; - border-top: 7px solid #ccc; - border-bottom: 0; - border-top-color: rgba(0, 0, 0, 0.2); -} - -.navbar-fixed-bottom .nav > li > .dropdown-menu:after { - top: auto; - bottom: -6px; - border-top: 6px solid #ffffff; - border-bottom: 0; -} - -.navbar .nav li.dropdown > a:hover .caret, -.navbar .nav li.dropdown > a:focus .caret { - border-top-color: #333333; - border-bottom-color: #333333; -} - -.navbar .nav li.dropdown.open > .dropdown-toggle, -.navbar .nav li.dropdown.active > .dropdown-toggle, -.navbar .nav li.dropdown.open.active > .dropdown-toggle { - color: #555555; - background-color: #e5e5e5; -} - -.navbar .nav li.dropdown > .dropdown-toggle .caret { - border-top-color: #777777; - border-bottom-color: #777777; -} - -.navbar .nav li.dropdown.open > .dropdown-toggle .caret, -.navbar .nav li.dropdown.active > .dropdown-toggle .caret, -.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret { - border-top-color: #555555; - border-bottom-color: #555555; -} - -.navbar .pull-right > li > .dropdown-menu, -.navbar .nav > li > .dropdown-menu.pull-right { - right: 0; - left: auto; -} - -.navbar .pull-right > li > .dropdown-menu:before, -.navbar .nav > li > .dropdown-menu.pull-right:before { - right: 12px; - left: auto; -} - -.navbar .pull-right > li > .dropdown-menu:after, -.navbar .nav > li > .dropdown-menu.pull-right:after { - right: 13px; - left: auto; -} - -.navbar .pull-right > li > .dropdown-menu .dropdown-menu, -.navbar .nav > li > .dropdown-menu.pull-right .dropdown-menu { - right: 100%; - left: auto; - margin-right: -1px; - margin-left: 0; - -webkit-border-radius: 6px 0 6px 6px; - -moz-border-radius: 6px 0 6px 6px; - border-radius: 6px 0 6px 6px; -} - -.navbar-inverse .navbar-inner { - background-color: #1b1b1b; - background-image: -moz-linear-gradient(top, #222222, #111111); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#222222), to(#111111)); - background-image: -webkit-linear-gradient(top, #222222, #111111); - background-image: -o-linear-gradient(top, #222222, #111111); - background-image: linear-gradient(to bottom, #222222, #111111); - background-repeat: repeat-x; - border-color: #252525; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff111111', GradientType=0); -} - -.navbar-inverse .brand, -.navbar-inverse .nav > li > a { - color: #999999; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); -} - -.navbar-inverse .brand:hover, -.navbar-inverse .nav > li > a:hover, -.navbar-inverse .brand:focus, -.navbar-inverse .nav > li > a:focus { - color: #ffffff; -} - -.navbar-inverse .brand { - color: #999999; -} - -.navbar-inverse .navbar-text { - color: #999999; -} - -.navbar-inverse .nav > li > a:focus, -.navbar-inverse .nav > li > a:hover { - color: #ffffff; - background-color: transparent; -} - -.navbar-inverse .nav .active > a, -.navbar-inverse .nav .active > a:hover, -.navbar-inverse .nav .active > a:focus { - color: #ffffff; - background-color: #111111; -} - -.navbar-inverse .navbar-link { - color: #999999; -} - -.navbar-inverse .navbar-link:hover, -.navbar-inverse .navbar-link:focus { - color: #ffffff; -} - -.navbar-inverse .divider-vertical { - border-right-color: #222222; - border-left-color: #111111; -} - -.navbar-inverse .nav li.dropdown.open > .dropdown-toggle, -.navbar-inverse .nav li.dropdown.active > .dropdown-toggle, -.navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle { - color: #ffffff; - background-color: #111111; -} - -.navbar-inverse .nav li.dropdown > a:hover .caret, -.navbar-inverse .nav li.dropdown > a:focus .caret { - border-top-color: #ffffff; - border-bottom-color: #ffffff; -} - -.navbar-inverse .nav li.dropdown > .dropdown-toggle .caret { - border-top-color: #999999; - border-bottom-color: #999999; -} - -.navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret, -.navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret, -.navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle .caret { - border-top-color: #ffffff; - border-bottom-color: #ffffff; -} - -.navbar-inverse .navbar-search .search-query { - color: #ffffff; - background-color: #515151; - border-color: #111111; - -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); - -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); - -webkit-transition: none; - -moz-transition: none; - -o-transition: none; - transition: none; -} - -.navbar-inverse .navbar-search .search-query:-moz-placeholder { - color: #cccccc; -} - -.navbar-inverse .navbar-search .search-query:-ms-input-placeholder { - color: #cccccc; -} - -.navbar-inverse .navbar-search .search-query::-webkit-input-placeholder { - color: #cccccc; -} - -.navbar-inverse .navbar-search .search-query:focus, -.navbar-inverse .navbar-search .search-query.focused { - padding: 5px 15px; - color: #333333; - text-shadow: 0 1px 0 #ffffff; - background-color: #ffffff; - border: 0; - outline: 0; - -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); - -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); - box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); -} - -.navbar-inverse .btn-navbar { - color: #ffffff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #0e0e0e; - *background-color: #040404; - background-image: -moz-linear-gradient(top, #151515, #040404); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#151515), to(#040404)); - background-image: -webkit-linear-gradient(top, #151515, #040404); - background-image: -o-linear-gradient(top, #151515, #040404); - background-image: linear-gradient(to bottom, #151515, #040404); - background-repeat: repeat-x; - border-color: #040404 #040404 #000000; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff151515', endColorstr='#ff040404', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} - -.navbar-inverse .btn-navbar:hover, -.navbar-inverse .btn-navbar:focus, -.navbar-inverse .btn-navbar:active, -.navbar-inverse .btn-navbar.active, -.navbar-inverse .btn-navbar.disabled, -.navbar-inverse .btn-navbar[disabled] { - color: #ffffff; - background-color: #040404; - *background-color: #000000; -} - -.navbar-inverse .btn-navbar:active, -.navbar-inverse .btn-navbar.active { - background-color: #000000 \9; -} - -.breadcrumb { - padding: 8px 15px; - margin: 0 0 20px; - list-style: none; - background-color: #f5f5f5; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -.breadcrumb > li { - display: inline-block; - *display: inline; - text-shadow: 0 1px 0 #ffffff; - *zoom: 1; -} - -.breadcrumb > li > .divider { - padding: 0 5px; - color: #ccc; -} - -.breadcrumb > .active { - color: #999999; -} - -.pagination { - margin: 20px 0; -} - -.pagination ul { - display: inline-block; - *display: inline; - margin-bottom: 0; - margin-left: 0; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - *zoom: 1; - -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); - -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); -} - -.pagination ul > li { - display: inline; -} - -.pagination ul > li > a, -.pagination ul > li > span { - float: left; - padding: 4px 12px; - line-height: 20px; - text-decoration: none; - background-color: #ffffff; - border: 1px solid #dddddd; - border-left-width: 0; -} - -.pagination ul > li > a:hover, -.pagination ul > li > a:focus, -.pagination ul > .active > a, -.pagination ul > .active > span { - background-color: #f5f5f5; -} - -.pagination ul > .active > a, -.pagination ul > .active > span { - color: #999999; - cursor: default; -} - -.pagination ul > .disabled > span, -.pagination ul > .disabled > a, -.pagination ul > .disabled > a:hover, -.pagination ul > .disabled > a:focus { - color: #999999; - cursor: default; - background-color: transparent; -} - -.pagination ul > li:first-child > a, -.pagination ul > li:first-child > span { - border-left-width: 1px; - -webkit-border-bottom-left-radius: 4px; - border-bottom-left-radius: 4px; - -webkit-border-top-left-radius: 4px; - border-top-left-radius: 4px; - -moz-border-radius-bottomleft: 4px; - -moz-border-radius-topleft: 4px; -} - -.pagination ul > li:last-child > a, -.pagination ul > li:last-child > span { - -webkit-border-top-right-radius: 4px; - border-top-right-radius: 4px; - -webkit-border-bottom-right-radius: 4px; - border-bottom-right-radius: 4px; - -moz-border-radius-topright: 4px; - -moz-border-radius-bottomright: 4px; -} - -.pagination-centered { - text-align: center; -} - -.pagination-right { - text-align: right; -} - -.pagination-large ul > li > a, -.pagination-large ul > li > span { - padding: 11px 19px; - font-size: 17.5px; -} - -.pagination-large ul > li:first-child > a, -.pagination-large ul > li:first-child > span { - -webkit-border-bottom-left-radius: 6px; - border-bottom-left-radius: 6px; - -webkit-border-top-left-radius: 6px; - border-top-left-radius: 6px; - -moz-border-radius-bottomleft: 6px; - -moz-border-radius-topleft: 6px; -} - -.pagination-large ul > li:last-child > a, -.pagination-large ul > li:last-child > span { - -webkit-border-top-right-radius: 6px; - border-top-right-radius: 6px; - -webkit-border-bottom-right-radius: 6px; - border-bottom-right-radius: 6px; - -moz-border-radius-topright: 6px; - -moz-border-radius-bottomright: 6px; -} - -.pagination-mini ul > li:first-child > a, -.pagination-small ul > li:first-child > a, -.pagination-mini ul > li:first-child > span, -.pagination-small ul > li:first-child > span { - -webkit-border-bottom-left-radius: 3px; - border-bottom-left-radius: 3px; - -webkit-border-top-left-radius: 3px; - border-top-left-radius: 3px; - -moz-border-radius-bottomleft: 3px; - -moz-border-radius-topleft: 3px; -} - -.pagination-mini ul > li:last-child > a, -.pagination-small ul > li:last-child > a, -.pagination-mini ul > li:last-child > span, -.pagination-small ul > li:last-child > span { - -webkit-border-top-right-radius: 3px; - border-top-right-radius: 3px; - -webkit-border-bottom-right-radius: 3px; - border-bottom-right-radius: 3px; - -moz-border-radius-topright: 3px; - -moz-border-radius-bottomright: 3px; -} - -.pagination-small ul > li > a, -.pagination-small ul > li > span { - padding: 2px 10px; - font-size: 11.9px; -} - -.pagination-mini ul > li > a, -.pagination-mini ul > li > span { - padding: 0 6px; - font-size: 10.5px; -} - -.pager { - margin: 20px 0; - text-align: center; - list-style: none; - *zoom: 1; -} - -.pager:before, -.pager:after { - display: table; - line-height: 0; - content: ""; -} - -.pager:after { - clear: both; -} - -.pager li { - display: inline; -} - -.pager li > a, -.pager li > span { - display: inline-block; - padding: 5px 14px; - background-color: #fff; - border: 1px solid #ddd; - -webkit-border-radius: 15px; - -moz-border-radius: 15px; - border-radius: 15px; -} - -.pager li > a:hover, -.pager li > a:focus { - text-decoration: none; - background-color: #f5f5f5; -} - -.pager .next > a, -.pager .next > span { - float: right; -} - -.pager .previous > a, -.pager .previous > span { - float: left; -} - -.pager .disabled > a, -.pager .disabled > a:hover, -.pager .disabled > a:focus, -.pager .disabled > span { - color: #999999; - cursor: default; - background-color: #fff; -} - -.modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1040; - background-color: #000000; -} - -.modal-backdrop.fade { - opacity: 0; -} - -.modal-backdrop, -.modal-backdrop.fade.in { - opacity: 0.8; - filter: alpha(opacity=80); -} - -.modal { - position: fixed; - top: 10%; - left: 50%; - z-index: 1050; - width: 560px; - margin-left: -280px; - background-color: #ffffff; - border: 1px solid #999; - border: 1px solid rgba(0, 0, 0, 0.3); - *border: 1px solid #999; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; - outline: none; - -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); - -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); - box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); - -webkit-background-clip: padding-box; - -moz-background-clip: padding-box; - background-clip: padding-box; -} - -.modal.fade { - top: -25%; - -webkit-transition: opacity 0.3s linear, top 0.3s ease-out; - -moz-transition: opacity 0.3s linear, top 0.3s ease-out; - -o-transition: opacity 0.3s linear, top 0.3s ease-out; - transition: opacity 0.3s linear, top 0.3s ease-out; -} - -.modal.fade.in { - top: 10%; -} - -.modal-header { - padding: 9px 15px; - border-bottom: 1px solid #eee; -} - -.modal-header .close { - margin-top: 2px; -} - -.modal-header h3 { - margin: 0; - line-height: 30px; -} - -.modal-body { - position: relative; - max-height: 400px; - padding: 15px; - overflow-y: auto; -} - -.modal-form { - margin-bottom: 0; -} - -.modal-footer { - padding: 14px 15px 15px; - margin-bottom: 0; - text-align: right; - background-color: #f5f5f5; - border-top: 1px solid #ddd; - -webkit-border-radius: 0 0 6px 6px; - -moz-border-radius: 0 0 6px 6px; - border-radius: 0 0 6px 6px; - *zoom: 1; - -webkit-box-shadow: inset 0 1px 0 #ffffff; - -moz-box-shadow: inset 0 1px 0 #ffffff; - box-shadow: inset 0 1px 0 #ffffff; -} - -.modal-footer:before, -.modal-footer:after { - display: table; - line-height: 0; - content: ""; -} - -.modal-footer:after { - clear: both; -} - -.modal-footer .btn + .btn { - margin-bottom: 0; - margin-left: 5px; -} - -.modal-footer .btn-group .btn + .btn { - margin-left: -1px; -} - -.modal-footer .btn-block + .btn-block { - margin-left: 0; -} - -.tooltip { - position: absolute; - z-index: 1030; - display: block; - font-size: 11px; - line-height: 1.4; - opacity: 0; - filter: alpha(opacity=0); - visibility: visible; -} - -.tooltip.in { - opacity: 0.8; - filter: alpha(opacity=80); -} - -.tooltip.top { - padding: 5px 0; - margin-top: -3px; -} - -.tooltip.right { - padding: 0 5px; - margin-left: 3px; -} - -.tooltip.bottom { - padding: 5px 0; - margin-top: 3px; -} - -.tooltip.left { - padding: 0 5px; - margin-left: -3px; -} - -.tooltip-inner { - max-width: 200px; - padding: 8px; - color: #ffffff; - text-align: center; - text-decoration: none; - background-color: #000000; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -.tooltip-arrow { - position: absolute; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} - -.tooltip.top .tooltip-arrow { - bottom: 0; - left: 50%; - margin-left: -5px; - border-top-color: #000000; - border-width: 5px 5px 0; -} - -.tooltip.right .tooltip-arrow { - top: 50%; - left: 0; - margin-top: -5px; - border-right-color: #000000; - border-width: 5px 5px 5px 0; -} - -.tooltip.left .tooltip-arrow { - top: 50%; - right: 0; - margin-top: -5px; - border-left-color: #000000; - border-width: 5px 0 5px 5px; -} - -.tooltip.bottom .tooltip-arrow { - top: 0; - left: 50%; - margin-left: -5px; - border-bottom-color: #000000; - border-width: 0 5px 5px; -} - -.popover { - position: absolute; - top: 0; - left: 0; - z-index: 1010; - display: none; - max-width: 276px; - padding: 1px; - text-align: left; - white-space: normal; - background-color: #ffffff; - border: 1px solid #ccc; - border: 1px solid rgba(0, 0, 0, 0.2); - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; - -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - -webkit-background-clip: padding-box; - -moz-background-clip: padding; - background-clip: padding-box; -} - -.popover.top { - margin-top: -10px; -} - -.popover.right { - margin-left: 10px; -} - -.popover.bottom { - margin-top: 10px; -} - -.popover.left { - margin-left: -10px; -} - -.popover-title { - padding: 8px 14px; - margin: 0; - font-size: 14px; - font-weight: normal; - line-height: 18px; - background-color: #f7f7f7; - border-bottom: 1px solid #ebebeb; - -webkit-border-radius: 5px 5px 0 0; - -moz-border-radius: 5px 5px 0 0; - border-radius: 5px 5px 0 0; -} - -.popover-title:empty { - display: none; -} - -.popover-content { - padding: 9px 14px; -} - -.popover .arrow, -.popover .arrow:after { - position: absolute; - display: block; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} - -.popover .arrow { - border-width: 11px; -} - -.popover .arrow:after { - border-width: 10px; - content: ""; -} - -.popover.top .arrow { - bottom: -11px; - left: 50%; - margin-left: -11px; - border-top-color: #999; - border-top-color: rgba(0, 0, 0, 0.25); - border-bottom-width: 0; -} - -.popover.top .arrow:after { - bottom: 1px; - margin-left: -10px; - border-top-color: #ffffff; - border-bottom-width: 0; -} - -.popover.right .arrow { - top: 50%; - left: -11px; - margin-top: -11px; - border-right-color: #999; - border-right-color: rgba(0, 0, 0, 0.25); - border-left-width: 0; -} - -.popover.right .arrow:after { - bottom: -10px; - left: 1px; - border-right-color: #ffffff; - border-left-width: 0; -} - -.popover.bottom .arrow { - top: -11px; - left: 50%; - margin-left: -11px; - border-bottom-color: #999; - border-bottom-color: rgba(0, 0, 0, 0.25); - border-top-width: 0; -} - -.popover.bottom .arrow:after { - top: 1px; - margin-left: -10px; - border-bottom-color: #ffffff; - border-top-width: 0; -} - -.popover.left .arrow { - top: 50%; - right: -11px; - margin-top: -11px; - border-left-color: #999; - border-left-color: rgba(0, 0, 0, 0.25); - border-right-width: 0; -} - -.popover.left .arrow:after { - right: 1px; - bottom: -10px; - border-left-color: #ffffff; - border-right-width: 0; -} - -.thumbnails { - margin-left: -20px; - list-style: none; - *zoom: 1; -} - -.thumbnails:before, -.thumbnails:after { - display: table; - line-height: 0; - content: ""; -} - -.thumbnails:after { - clear: both; -} - -.row-fluid .thumbnails { - margin-left: 0; -} - -.thumbnails > li { - float: left; - margin-bottom: 20px; - margin-left: 20px; -} - -.thumbnail { - display: block; - padding: 4px; - line-height: 20px; - border: 1px solid #ddd; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); - -webkit-transition: all 0.2s ease-in-out; - -moz-transition: all 0.2s ease-in-out; - -o-transition: all 0.2s ease-in-out; - transition: all 0.2s ease-in-out; -} - -a.thumbnail:hover, -a.thumbnail:focus { - border-color: #0088cc; - -webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); - -moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); - box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); -} - -.thumbnail > img { - display: block; - max-width: 100%; - margin-right: auto; - margin-left: auto; -} - -.thumbnail .caption { - padding: 9px; - color: #555555; -} - -.media, -.media-body { - overflow: hidden; - *overflow: visible; - zoom: 1; -} - -.media, -.media .media { - margin-top: 15px; -} - -.media:first-child { - margin-top: 0; -} - -.media-object { - display: block; -} - -.media-heading { - margin: 0 0 5px; -} - -.media > .pull-left { - margin-right: 10px; -} - -.media > .pull-right { - margin-left: 10px; -} - -.media-list { - margin-left: 0; - list-style: none; -} - -.label, -.badge { - display: inline-block; - padding: 2px 4px; - font-size: 11.844px; - font-weight: bold; - line-height: 14px; - color: #ffffff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - white-space: nowrap; - vertical-align: baseline; - background-color: #999999; -} - -.label { - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; -} - -.badge { - padding-right: 9px; - padding-left: 9px; - -webkit-border-radius: 9px; - -moz-border-radius: 9px; - border-radius: 9px; -} - -.label:empty, -.badge:empty { - display: none; -} - -a.label:hover, -a.label:focus, -a.badge:hover, -a.badge:focus { - color: #ffffff; - text-decoration: none; - cursor: pointer; -} - -.label-important, -.badge-important { - background-color: #b94a48; -} - -.label-important[href], -.badge-important[href] { - background-color: #953b39; -} - -.label-warning, -.badge-warning { - background-color: #f89406; -} - -.label-warning[href], -.badge-warning[href] { - background-color: #c67605; -} - -.label-success, -.badge-success { - background-color: #468847; -} - -.label-success[href], -.badge-success[href] { - background-color: #356635; -} - -.label-info, -.badge-info { - background-color: #3a87ad; -} - -.label-info[href], -.badge-info[href] { - background-color: #2d6987; -} - -.label-inverse, -.badge-inverse { - background-color: #333333; -} - -.label-inverse[href], -.badge-inverse[href] { - background-color: #1a1a1a; -} - -.btn .label, -.btn .badge { - position: relative; - top: -1px; -} - -.btn-mini .label, -.btn-mini .badge { - top: 0; -} - -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - to { - background-position: 0 0; - } -} - -@-moz-keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - to { - background-position: 0 0; - } -} - -@-ms-keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - to { - background-position: 0 0; - } -} - -@-o-keyframes progress-bar-stripes { - from { - background-position: 0 0; - } - to { - background-position: 40px 0; - } -} - -@keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - to { - background-position: 0 0; - } -} - -.progress { - height: 20px; - margin-bottom: 20px; - overflow: hidden; - background-color: #f7f7f7; - background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9)); - background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9); - background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9); - background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9); - background-repeat: repeat-x; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0); - -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); - -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -} - -.progress .bar { - float: left; - width: 0; - height: 100%; - font-size: 12px; - color: #ffffff; - text-align: center; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #0e90d2; - background-image: -moz-linear-gradient(top, #149bdf, #0480be); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be)); - background-image: -webkit-linear-gradient(top, #149bdf, #0480be); - background-image: -o-linear-gradient(top, #149bdf, #0480be); - background-image: linear-gradient(to bottom, #149bdf, #0480be); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0); - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-transition: width 0.6s ease; - -moz-transition: width 0.6s ease; - -o-transition: width 0.6s ease; - transition: width 0.6s ease; -} - -.progress .bar + .bar { - -webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); - -moz-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); -} - -.progress-striped .bar { - background-color: #149bdf; - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - -webkit-background-size: 40px 40px; - -moz-background-size: 40px 40px; - -o-background-size: 40px 40px; - background-size: 40px 40px; -} - -.progress.active .bar { - -webkit-animation: progress-bar-stripes 2s linear infinite; - -moz-animation: progress-bar-stripes 2s linear infinite; - -ms-animation: progress-bar-stripes 2s linear infinite; - -o-animation: progress-bar-stripes 2s linear infinite; - animation: progress-bar-stripes 2s linear infinite; -} - -.progress-danger .bar, -.progress .bar-danger { - background-color: #dd514c; - background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35)); - background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35); - background-image: -o-linear-gradient(top, #ee5f5b, #c43c35); - background-image: linear-gradient(to bottom, #ee5f5b, #c43c35); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0); -} - -.progress-danger.progress-striped .bar, -.progress-striped .bar-danger { - background-color: #ee5f5b; - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.progress-success .bar, -.progress .bar-success { - background-color: #5eb95e; - background-image: -moz-linear-gradient(top, #62c462, #57a957); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957)); - background-image: -webkit-linear-gradient(top, #62c462, #57a957); - background-image: -o-linear-gradient(top, #62c462, #57a957); - background-image: linear-gradient(to bottom, #62c462, #57a957); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0); -} - -.progress-success.progress-striped .bar, -.progress-striped .bar-success { - background-color: #62c462; - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.progress-info .bar, -.progress .bar-info { - background-color: #4bb1cf; - background-image: -moz-linear-gradient(top, #5bc0de, #339bb9); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9)); - background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9); - background-image: -o-linear-gradient(top, #5bc0de, #339bb9); - background-image: linear-gradient(to bottom, #5bc0de, #339bb9); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0); -} - -.progress-info.progress-striped .bar, -.progress-striped .bar-info { - background-color: #5bc0de; - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.progress-warning .bar, -.progress .bar-warning { - background-color: #faa732; - background-image: -moz-linear-gradient(top, #fbb450, #f89406); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); - background-image: -webkit-linear-gradient(top, #fbb450, #f89406); - background-image: -o-linear-gradient(top, #fbb450, #f89406); - background-image: linear-gradient(to bottom, #fbb450, #f89406); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0); -} - -.progress-warning.progress-striped .bar, -.progress-striped .bar-warning { - background-color: #fbb450; - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.accordion { - margin-bottom: 20px; -} - -.accordion-group { - margin-bottom: 2px; - border: 1px solid #e5e5e5; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -.accordion-heading { - border-bottom: 0; -} - -.accordion-heading .accordion-toggle { - display: block; - padding: 8px 15px; -} - -.accordion-toggle { - cursor: pointer; -} - -.accordion-inner { - padding: 9px 15px; - border-top: 1px solid #e5e5e5; -} - -.carousel { - position: relative; - margin-bottom: 20px; - line-height: 1; -} - -.carousel-inner { - position: relative; - width: 100%; - overflow: hidden; -} - -.carousel-inner > .item { - position: relative; - display: none; - -webkit-transition: 0.6s ease-in-out left; - -moz-transition: 0.6s ease-in-out left; - -o-transition: 0.6s ease-in-out left; - transition: 0.6s ease-in-out left; -} - -.carousel-inner > .item > img, -.carousel-inner > .item > a > img { - display: block; - line-height: 1; -} - -.carousel-inner > .active, -.carousel-inner > .next, -.carousel-inner > .prev { - display: block; -} - -.carousel-inner > .active { - left: 0; -} - -.carousel-inner > .next, -.carousel-inner > .prev { - position: absolute; - top: 0; - width: 100%; -} - -.carousel-inner > .next { - left: 100%; -} - -.carousel-inner > .prev { - left: -100%; -} - -.carousel-inner > .next.left, -.carousel-inner > .prev.right { - left: 0; -} - -.carousel-inner > .active.left { - left: -100%; -} - -.carousel-inner > .active.right { - left: 100%; -} - -.carousel-control { - position: absolute; - top: 40%; - left: 15px; - width: 40px; - height: 40px; - margin-top: -20px; - font-size: 60px; - font-weight: 100; - line-height: 30px; - color: #ffffff; - text-align: center; - background: #222222; - border: 3px solid #ffffff; - -webkit-border-radius: 23px; - -moz-border-radius: 23px; - border-radius: 23px; - opacity: 0.5; - filter: alpha(opacity=50); -} - -.carousel-control.right { - right: 15px; - left: auto; -} - -.carousel-control:hover, -.carousel-control:focus { - color: #ffffff; - text-decoration: none; - opacity: 0.9; - filter: alpha(opacity=90); -} - -.carousel-indicators { - position: absolute; - top: 15px; - right: 15px; - z-index: 5; - margin: 0; - list-style: none; -} - -.carousel-indicators li { - display: block; - float: left; - width: 10px; - height: 10px; - margin-left: 5px; - text-indent: -999px; - background-color: #ccc; - background-color: rgba(255, 255, 255, 0.25); - border-radius: 5px; -} - -.carousel-indicators .active { - background-color: #fff; -} - -.carousel-caption { - position: absolute; - right: 0; - bottom: 0; - left: 0; - padding: 15px; - background: #333333; - background: rgba(0, 0, 0, 0.75); -} - -.carousel-caption h4, -.carousel-caption p { - line-height: 20px; - color: #ffffff; -} - -.carousel-caption h4 { - margin: 0 0 5px; -} - -.carousel-caption p { - margin-bottom: 0; -} - -.hero-unit { - padding: 60px; - margin-bottom: 30px; - font-size: 18px; - font-weight: 200; - line-height: 30px; - color: inherit; - background-color: #eeeeee; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; -} - -.hero-unit h1 { - margin-bottom: 0; - font-size: 60px; - line-height: 1; - letter-spacing: -1px; - color: inherit; -} - -.hero-unit li { - line-height: 30px; -} - -.pull-right { - float: right; -} - -.pull-left { - float: left; -} - -.hide { - display: none; -} - -.show { - display: block; -} - -.invisible { - visibility: hidden; -} - -.affix { - position: fixed; -} diff --git a/example/index.php b/example/index.php deleted file mode 100644 index 88fa17c7..00000000 --- a/example/index.php +++ /dev/null @@ -1,312 +0,0 @@ -register(new Silex\Provider\SessionServiceProvider()); -$app->register(new Silex\Provider\TwigServiceProvider(), array( - 'twig.path' => __DIR__.'/views', -)); - -// enable Silex debugging -$app['debug'] = true; - -// root route -$app->get('/', function() use ($app) { - $gateways = array_map(function($name) { - return Omnipay\Common\GatewayFactory::create($name); - }, Omnipay\Common\GatewayFactory::find()); - - return $app['twig']->render('index.twig', array( - 'gateways' => $gateways, - )); -}); - -// gateway settings -$app->get('/gateways/{name}', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - return $app['twig']->render('gateway.twig', array( - 'gateway' => $gateway, - 'settings' => $gateway->getParameters(), - )); -}); - -// save gateway settings -$app->post('/gateways/{name}', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['request']->get('gateway')); - - // save gateway settings in session - $app['session']->set($sessionVar, $gateway->getParameters()); - - // redirect back to gateway settings page - $app['session']->getFlashBag()->add('success', 'Gateway settings updated!'); - - return $app->redirect($app['request']->getPathInfo()); -}); - -// create gateway authorize -$app->get('/gateways/{name}/authorize', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - $params = $app['session']->get($sessionVar.'.authorize', array()); - $params['returnUrl'] = str_replace('/authorize', '/completeAuthorize', $app['request']->getUri()); - $params['cancelUrl'] = $app['request']->getUri(); - $card = new Omnipay\Common\CreditCard($app['session']->get($sessionVar.'.card')); - - return $app['twig']->render('request.twig', array( - 'gateway' => $gateway, - 'method' => 'authorize', - 'params' => $params, - 'card' => $card->getParameters(), - )); -}); - -// submit gateway authorize -$app->post('/gateways/{name}/authorize', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - // load POST data - $params = $app['request']->get('params'); - $card = $app['request']->get('card'); - - // save POST data into session - $app['session']->set($sessionVar.'.authorize', $params); - $app['session']->set($sessionVar.'.card', $card); - - $params['card'] = $card; - $params['clientIp'] = $app['request']->getClientIp(); - $response = $gateway->authorize($params)->send(); - - return $app['twig']->render('response.twig', array( - 'gateway' => $gateway, - 'response' => $response, - )); -}); - -// create gateway capture -$app->get('/gateways/{name}/capture', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - $params = $app['session']->get($sessionVar.'.capture', array()); - - return $app['twig']->render('request.twig', array( - 'gateway' => $gateway, - 'method' => 'capture', - 'params' => $params, - )); -}); - -// submit gateway capture -$app->post('/gateways/{name}/capture', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - // load POST data - $params = $app['request']->get('params'); - - // save POST data into session - $app['session']->set($sessionVar.'.capture', $params); - - $params['clientIp'] = $app['request']->getClientIp(); - $response = $gateway->capture($params)->send(); - - return $app['twig']->render('response.twig', array( - 'gateway' => $gateway, - 'response' => $response, - )); -}); - -// create gateway purchase -$app->get('/gateways/{name}/purchase', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - $params = $app['session']->get($sessionVar.'.purchase', array()); - $params['returnUrl'] = str_replace('/purchase', '/completePurchase', $app['request']->getUri()); - $params['cancelUrl'] = $app['request']->getUri(); - $card = new Omnipay\Common\CreditCard($app['session']->get($sessionVar.'.card')); - - return $app['twig']->render('request.twig', array( - 'gateway' => $gateway, - 'method' => 'purchase', - 'params' => $params, - 'card' => $card->getParameters(), - )); -}); - -// submit gateway purchase -$app->post('/gateways/{name}/purchase', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - // load POST data - $params = $app['request']->get('params'); - $card = $app['request']->get('card'); - - // save POST data into session - $app['session']->set($sessionVar.'.purchase', $params); - $app['session']->set($sessionVar.'.card', $card); - - $params['card'] = $card; - $params['clientIp'] = $app['request']->getClientIp(); - $response = $gateway->purchase($params)->send(); - - return $app['twig']->render('response.twig', array( - 'gateway' => $gateway, - 'response' => $response, - )); -}); - -// gateway purchase return -// this won't work for gateways which require an internet-accessible URL (yet) -$app->match('/gateways/{name}/completePurchase', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - // load request data from session - $params = $app['session']->get($sessionVar.'.purchase', array()); - - $params['clientIp'] = $app['request']->getClientIp(); - $response = $gateway->completePurchase($params)->send(); - - return $app['twig']->render('response.twig', array( - 'gateway' => $gateway, - 'response' => $response, - )); -}); - -// create gateway create Credit Card -$app->get('/gateways/{name}/create-card', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - $params = $app['session']->get($sessionVar.'.create', array()); - $card = new Omnipay\Common\CreditCard($app['session']->get($sessionVar.'.card')); - - return $app['twig']->render('request.twig', array( - 'gateway' => $gateway, - 'method' => 'createCard', - 'params' => $params, - 'card' => $card->getParameters(), - )); -}); - -// submit gateway create Credit Card -$app->post('/gateways/{name}/create-card', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - // load POST data - $params = $app['request']->get('params'); - $card = $app['request']->get('card'); - - // save POST data into session - $app['session']->set($sessionVar.'.create', $params); - $app['session']->set($sessionVar.'.card', $card); - - $params['card'] = $card; - $params['clientIp'] = $app['request']->getClientIp(); - $response = $gateway->createCard($params)->send(); - - return $app['twig']->render('response.twig', array( - 'gateway' => $gateway, - 'response' => $response, - )); -}); - -// create gateway update Credit Card -$app->get('/gateways/{name}/update-card', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - $params = $app['session']->get($sessionVar.'.update', array()); - $card = new Omnipay\Common\CreditCard($app['session']->get($sessionVar.'.card')); - - return $app['twig']->render('request.twig', array( - 'gateway' => $gateway, - 'method' => 'updateCard', - 'params' => $params, - 'card' => $card->getParameters(), - )); -}); - -// submit gateway update Credit Card -$app->post('/gateways/{name}/update-card', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - // load POST data - $params = $app['request']->get('params'); - $card = $app['request']->get('card'); - - // save POST data into session - $app['session']->set($sessionVar.'.update', $params); - $app['session']->set($sessionVar.'.card', $card); - - $params['card'] = $card; - $params['clientIp'] = $app['request']->getClientIp(); - $response = $gateway->updateCard($params)->send(); - - return $app['twig']->render('response.twig', array( - 'gateway' => $gateway, - 'response' => $response, - )); -}); - -// create gateway delete Credit Card -$app->get('/gateways/{name}/delete-card', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - $params = $app['session']->get($sessionVar.'.delete', array()); - - return $app['twig']->render('request.twig', array( - 'gateway' => $gateway, - 'method' => 'deleteCard', - 'params' => $params, - )); -}); - -// submit gateway delete Credit Card -$app->post('/gateways/{name}/delete-card', function($name) use ($app) { - $gateway = Omnipay\Common\GatewayFactory::create($name); - $sessionVar = 'omnipay.'.$gateway->getShortName(); - $gateway->initialize((array) $app['session']->get($sessionVar)); - - // load POST data - $params = $app['request']->get('params'); - - // save POST data into session - $app['session']->set($sessionVar.'.delete', $params); - - $params['clientIp'] = $app['request']->getClientIp(); - $response = $gateway->deleteCard($params)->send(); - - return $app['twig']->render('response.twig', array( - 'gateway' => $gateway, - 'response' => $response, - )); -}); - -$app->run(); diff --git a/example/views/gateway.twig b/example/views/gateway.twig deleted file mode 100644 index 193a5ab5..00000000 --- a/example/views/gateway.twig +++ /dev/null @@ -1,56 +0,0 @@ -{% extends "layout.twig" %} - -{% set title = gateway.name %} -{% block content %} - -

You can create an instance of this gateway using:

-
$gateway = GatewayFactory::create('{{ gateway.shortName }}');
-$response = $gateway->initialize($params);
- -

Gateway Settings

-

Note These settings will be stored in your session and used to create test purchases.

- -
- - {% for key, default in gateway.getDefaultParameters %} - -
- -
- -
-
- - {% endfor %} - -
-
- -

Gateway Methods

-

Click on a method to generate a test request.

-
    - {% if gateway.supportsAuthorize() %} -
  • authorize()
  • - {% endif %} -
  • purchase()
  • - {% if gateway.supportsCapture() %} -
  • capture()
  • - {% endif %} - {% if gateway.supportsRefund() %} -
  • refund()
  • - {% endif %} - {% if gateway.supportsVoid() %} -
  • void()
  • - {% endif %} - {% if gateway.supportsCreateCard() %} -
  • createCard()
  • - {% endif %} - {% if gateway.supportsUpdateCard() %} -
  • updateCard()
  • - {% endif %} - {% if gateway.supportsDeleteCard() %} -
  • deleteCard()
  • - {% endif %} -
- -{% endblock %} diff --git a/example/views/index.twig b/example/views/index.twig deleted file mode 100644 index 58da5beb..00000000 --- a/example/views/index.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "layout.twig" %} - -{% set title = "Omnipay Example Application" %} -{% block content %} -

The following gateways are available:

- - -{% endblock %} diff --git a/example/views/layout.twig b/example/views/layout.twig deleted file mode 100644 index b67355a4..00000000 --- a/example/views/layout.twig +++ /dev/null @@ -1,19 +0,0 @@ - - - - - {{ title }} - - - -
-

{{ title }}

- - {% for message in app.session.flashbag.get('success') %} -
{{ message }}
- {% endfor %} - - {% block content %}{% endblock %} -
- - diff --git a/example/views/request.twig b/example/views/request.twig deleted file mode 100644 index 4d582def..00000000 --- a/example/views/request.twig +++ /dev/null @@ -1,54 +0,0 @@ -{% extends "layout.twig" %} - -{% set title = gateway.name~": "~method~"()" %} -{% block content %} - -

The charge will be created like so:

-
$gateway = GatewayFactory::create('{{ gateway.shortName }}');
-$response = $gateway->{{ method }}($params);
- -
- -

Request Parameters

- -

The following parameters are available. Not all options are required by all gateways.

-

Note Normally these parameters would be generated by your application and not set via form input.

- - {% for key in ["amount", "currency", "description", "transactionId", "transactionReference", "cardReference", "returnUrl", "cancelUrl", "notifyUrl", "issuer"] %} - -
- -
- -
-
- - {% endfor %} - - {% if card is defined %} - -

Credit Card Parameters

- -

The following credit card parameters are available. Normally you will assign these - directly from POST data.

-

Important Never store raw credit card details in your application! Instead, you should pass them straight to the gateway.

- - {% for key in ["firstName", "lastName", "number", "expiryMonth", "expiryYear", "startMonth", "startYear", "cvv", - "issueNumber", "address1", "address2", "city", "postcode", "state", "country", "phone", "email"] %} - -
- -
- -
-
- - {% endfor %} - - {% endif %} - -
- -
- -{% endblock %} diff --git a/example/views/response.twig b/example/views/response.twig deleted file mode 100644 index 6862355e..00000000 --- a/example/views/response.twig +++ /dev/null @@ -1,66 +0,0 @@ -{% extends "layout.twig" %} - -{% set title = gateway.name~": Response" %} -{% block content %} - - {% if response.isSuccessful() %} -
Congratulations, your request was successful!
- {% elseif response.isRedirect() %} -
Your request requires {{ response.redirectMethod }} - redirect to an off-site payment page.
- - {% if response.redirectMethod == "GET" %} -

Redirect Now

- {% elseif response.redirectMethod == "POST" %} -
-

- {% for key, value in response.redirectData %} - - {% endfor %} - - -

-
- {% endif %} - {% else %} -
Sorry, your request failed.
- {% endif %} - -

The response object had the following to say:

- -

$request->isSuccessful()

-
{{ response.isSuccessful() ? "true" : "false" }}
- -

$request->isRedirect()

-
{{ response.isRedirect() ? "true" : "false" }}
- - {% if response.redirectUrl is defined %} -

$request->getRedirectUrl()

-
{{ response.redirectUrl }}
- {% endif %} - - {% if response.redirectMethod is defined %} -

$request->getRedirectMethod()

-
{{ response.redirectMethod }}
- {% endif %} - - {% if response.redirectData is defined %} -

$request->getRedirectData()

-
{{ dump(response.redirectData) }}
- {% endif %} - -

$request->getMessage()

-
{{ response.message }}
- -

$request->getTransactionReference()

-
{{ response.transactionReference }}
- - {% if response.cardReference is defined %} -

$request->getCardReference()

-
{{ dump(response.cardReference) }}
- {% endif %} - -

$request->getData()

-
{{ dump(response.data) }}
- -{% endblock %} diff --git a/phpunit.xml.dist b/phpunit.xml.dist deleted file mode 100644 index a61160cd..00000000 --- a/phpunit.xml.dist +++ /dev/null @@ -1,25 +0,0 @@ - - - - - ./tests/ - - - - - - - - ./src - - - diff --git a/src/Omnipay/AuthorizeNet/AIMGateway.php b/src/Omnipay/AuthorizeNet/AIMGateway.php deleted file mode 100644 index 990c5928..00000000 --- a/src/Omnipay/AuthorizeNet/AIMGateway.php +++ /dev/null @@ -1,79 +0,0 @@ - '', - 'transactionKey' => '', - 'testMode' => false, - 'developerMode' => false, - ); - } - - public function getApiLoginId() - { - return $this->getParameter('apiLoginId'); - } - - public function setApiLoginId($value) - { - return $this->setParameter('apiLoginId', $value); - } - - public function getTransactionKey() - { - return $this->getParameter('transactionKey'); - } - - public function setTransactionKey($value) - { - return $this->setParameter('transactionKey', $value); - } - - public function getDeveloperMode() - { - return $this->getParameter('developerMode'); - } - - public function setDeveloperMode($value) - { - return $this->setParameter('developerMode', $value); - } - - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\AuthorizeNet\Message\AIMAuthorizeRequest', $parameters); - } - - public function capture(array $parameters = array()) - { - return $this->createRequest('\Omnipay\AuthorizeNet\Message\CaptureRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\AuthorizeNet\Message\AIMPurchaseRequest', $parameters); - } - - public function void(array $parameters = array()) - { - return $this->createRequest('\Omnipay\AuthorizeNet\Message\AIMVoidRequest', $parameters); - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/AIMAuthorizeRequest.php b/src/Omnipay/AuthorizeNet/Message/AIMAuthorizeRequest.php deleted file mode 100644 index 7e58c4d4..00000000 --- a/src/Omnipay/AuthorizeNet/Message/AIMAuthorizeRequest.php +++ /dev/null @@ -1,30 +0,0 @@ -validate('amount', 'card'); - $this->getCard()->validate(); - - $data = $this->getBaseData(); - $data['x_customer_ip'] = $this->getClientIp(); - $data['x_card_num'] = $this->getCard()->getNumber(); - $data['x_exp_date'] = $this->getCard()->getExpiryDate('my'); - $data['x_card_code'] = $this->getCard()->getCvv(); - $data['x_cust_id'] = $this->getCustomerId(); - - if ($this->getTestMode()) { - $data['x_test_request'] = 'TRUE'; - } - - return array_merge($data, $this->getBillingData()); - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php b/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php deleted file mode 100644 index d663c37f..00000000 --- a/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php +++ /dev/null @@ -1,29 +0,0 @@ -validate('amount', 'card'); - $this->getCard()->validate(); - - $data = $this->getBaseData(); - $data['x_customer_ip'] = $this->getClientIp(); - $data['x_card_num'] = $this->getCard()->getNumber(); - $data['x_exp_date'] = $this->getCard()->getExpiryDate('my'); - $data['x_card_code'] = $this->getCard()->getCvv(); - - if ($this->getTestMode()) { - $data['x_test_request'] = 'TRUE'; - } - - return array_merge($data, $this->getBillingData()); - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/AIMResponse.php b/src/Omnipay/AuthorizeNet/Message/AIMResponse.php deleted file mode 100644 index 9fa0907e..00000000 --- a/src/Omnipay/AuthorizeNet/Message/AIMResponse.php +++ /dev/null @@ -1,58 +0,0 @@ -request = $request; - $this->data = explode('|,|', substr($data, 1, -1)); - - if (count($this->data) < 10) { - throw new InvalidResponseException(); - } - } - - public function isSuccessful() - { - return '1' === $this->getCode(); - } - - public function getCode() - { - return $this->data[0]; - } - - public function getReasonCode() - { - return $this->data[2]; - } - - public function getMessage() - { - return $this->data[3]; - } - - public function getAuthorizationCode() - { - return $this->data[4]; - } - - public function getAVSCode() - { - return $this->data[5]; - } - - public function getTransactionReference() - { - return $this->data[6]; - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/AIMVoidRequest.php b/src/Omnipay/AuthorizeNet/Message/AIMVoidRequest.php deleted file mode 100644 index 857dfdbd..00000000 --- a/src/Omnipay/AuthorizeNet/Message/AIMVoidRequest.php +++ /dev/null @@ -1,21 +0,0 @@ -validate('transactionReference'); - - $data = $this->getBaseData(); - $data['x_trans_id'] = $this->getTransactionReference(); - - return $data; - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php b/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php deleted file mode 100644 index a8d45f19..00000000 --- a/src/Omnipay/AuthorizeNet/Message/AbstractRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -getParameter('apiLoginId'); - } - - public function setApiLoginId($value) - { - return $this->setParameter('apiLoginId', $value); - } - - public function getTransactionKey() - { - return $this->getParameter('transactionKey'); - } - - public function setTransactionKey($value) - { - return $this->setParameter('transactionKey', $value); - } - - public function getDeveloperMode() - { - return $this->getParameter('developerMode'); - } - - public function setDeveloperMode($value) - { - return $this->setParameter('developerMode', $value); - } - - public function getCustomerId() - { - return $this->getParameter('customerId'); - } - - public function setCustomerId($value) - { - return $this->setParameter('customerId', $value); - } - - public function getHashSecret() - { - return $this->getParameter('hashSecret'); - } - - public function setHashSecret($value) - { - return $this->setParameter('hashSecret', $value); - } - - protected function getBaseData() - { - $data = array(); - $data['x_login'] = $this->getApiLoginId(); - $data['x_tran_key'] = $this->getTransactionKey(); - $data['x_type'] = $this->action; - $data['x_version'] = '3.1'; - $data['x_delim_data'] = 'TRUE'; - $data['x_delim_char'] = ','; - $data['x_encap_char'] = '|'; - $data['x_relay_response'] = 'FALSE'; - - return $data; - } - - protected function getBillingData() - { - $data = array(); - $data['x_amount'] = $this->getAmount(); - $data['x_invoice_num'] = $this->getTransactionId(); - $data['x_description'] = $this->getDescription(); - - if ($card = $this->getCard()) { - // customer billing details - $data['x_first_name'] = $card->getBillingFirstName(); - $data['x_last_name'] = $card->getBillingLastName(); - $data['x_company'] = $card->getBillingCompany(); - $data['x_address'] = trim( - $card->getBillingAddress1()." \n". - $card->getBillingAddress2() - ); - $data['x_city'] = $card->getBillingCity(); - $data['x_state'] = $card->getBillingState(); - $data['x_zip'] = $card->getBillingPostcode(); - $data['x_country'] = $card->getBillingCountry(); - $data['x_phone'] = $card->getBillingPhone(); - $data['x_email'] = $card->getEmail(); - - // customer shipping details - $data['x_ship_to_first_name'] = $card->getShippingFirstName(); - $data['x_ship_to_last_name'] = $card->getShippingLastName(); - $data['x_ship_to_company'] = $card->getShippingCompany(); - $data['x_ship_to_address'] = trim( - $card->getShippingAddress1()." \n". - $card->getShippingAddress2() - ); - $data['x_ship_to_city'] = $card->getShippingCity(); - $data['x_ship_to_state'] = $card->getShippingState(); - $data['x_ship_to_zip'] = $card->getShippingPostcode(); - $data['x_ship_to_country'] = $card->getShippingCountry(); - } - - return $data; - } - - public function sendData($data) - { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); - - return $this->response = new AIMResponse($this, $httpResponse->getBody()); - } - - public function getEndpoint() - { - return $this->getDeveloperMode() ? $this->developerEndpoint : $this->liveEndpoint; - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/CaptureRequest.php b/src/Omnipay/AuthorizeNet/Message/CaptureRequest.php deleted file mode 100644 index 096818cb..00000000 --- a/src/Omnipay/AuthorizeNet/Message/CaptureRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -validate('amount', 'transactionReference'); - - $data = $this->getBaseData(); - $data['x_amount'] = $this->getAmount(); - $data['x_trans_id'] = $this->getTransactionReference(); - - return $data; - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php b/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php deleted file mode 100644 index fc877eb0..00000000 --- a/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeRequest.php +++ /dev/null @@ -1,56 +0,0 @@ -validate('amount', 'returnUrl'); - - $data = array(); - $data['x_login'] = $this->getApiLoginId(); - $data['x_type'] = $this->action; - $data['x_fp_sequence'] = mt_rand(); - $data['x_fp_timestamp'] = time(); - $data['x_delim_data'] = 'FALSE'; - $data['x_show_form'] = 'PAYMENT_FORM'; - $data['x_relay_response'] = 'TRUE'; - $data['x_relay_url'] = $this->getReturnUrl(); - $data['x_cancel_url'] = $this->getCancelUrl(); - - if ($this->getTestMode()) { - $data['x_test_request'] = 'TRUE'; - } - - $data = array_merge($data, $this->getBillingData()); - $data['x_fp_hash'] = $this->getHash($data); - - return $data; - } - - public function getHash($data) - { - $fingerprint = implode( - '^', - array( - $this->getApiLoginId(), - $data['x_fp_sequence'], - $data['x_fp_timestamp'], - $data['x_amount'] - ) - ).'^'; - - return hash_hmac('md5', $fingerprint, $this->getTransactionKey()); - } - - public function sendData($data) - { - return $this->response = new SIMAuthorizeResponse($this, $data, $this->getEndpoint()); - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeResponse.php b/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeResponse.php deleted file mode 100644 index 4b2ff264..00000000 --- a/src/Omnipay/AuthorizeNet/Message/SIMAuthorizeResponse.php +++ /dev/null @@ -1,46 +0,0 @@ -request = $request; - $this->data = $data; - $this->redirectUrl = $redirectUrl; - } - - public function isSuccessful() - { - return false; - } - - public function isRedirect() - { - return true; - } - - public function getRedirectUrl() - { - return $this->redirectUrl; - } - - public function getRedirectMethod() - { - return 'POST'; - } - - public function getRedirectData() - { - return $this->getData(); - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php b/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php deleted file mode 100644 index e3ecbb4a..00000000 --- a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequest.php +++ /dev/null @@ -1,30 +0,0 @@ -httpRequest->request->get('x_MD5_Hash')) !== $this->getHash()) { - throw new InvalidRequestException('Incorrect hash'); - } - - return $this->httpRequest->request->all(); - } - - public function getHash() - { - return md5($this->getHashSecret().$this->getApiLoginId().$this->getTransactionId().$this->getAmount()); - } - - public function sendData($data) - { - return $this->response = new SIMCompleteAuthorizeResponse($this, $data); - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponse.php b/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponse.php deleted file mode 100644 index 1157121d..00000000 --- a/src/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponse.php +++ /dev/null @@ -1,26 +0,0 @@ -data['x_response_code']) && '1' === $this->data['x_response_code']; - } - - public function getTransactionReference() - { - return isset($this->data['x_trans_id']) ? $this->data['x_trans_id'] : null; - } - - public function getMessage() - { - return isset($this->data['x_response_reason_text']) ? $this->data['x_response_reason_text'] : null; - } -} diff --git a/src/Omnipay/AuthorizeNet/Message/SIMPurchaseRequest.php b/src/Omnipay/AuthorizeNet/Message/SIMPurchaseRequest.php deleted file mode 100644 index 2c6dd4c0..00000000 --- a/src/Omnipay/AuthorizeNet/Message/SIMPurchaseRequest.php +++ /dev/null @@ -1,11 +0,0 @@ -getParameter('hashSecret'); - } - - public function setHashSecret($value) - { - return $this->setParameter('hashSecret', $value); - } - - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\AuthorizeNet\Message\SIMAuthorizeRequest', $parameters); - } - - public function completeAuthorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\AuthorizeNet\Message\SIMCompleteAuthorizeRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\AuthorizeNet\Message\SIMAuthorizeRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->completeAuthorize($parameters); - } -} diff --git a/src/Omnipay/Buckaroo/Gateway.php b/src/Omnipay/Buckaroo/Gateway.php deleted file mode 100644 index 8d5ba1fe..00000000 --- a/src/Omnipay/Buckaroo/Gateway.php +++ /dev/null @@ -1,55 +0,0 @@ - '', - 'secret' => '', - 'testMode' => false, - ); - } - - public function getMerchantId() - { - return $this->getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getSecret() - { - return $this->getParameter('secret'); - } - - public function setSecret($value) - { - return $this->setParameter('secret', $value); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Buckaroo\Message\PurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Buckaroo\Message\CompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php b/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php deleted file mode 100644 index 299f0d7f..00000000 --- a/src/Omnipay/Buckaroo/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,42 +0,0 @@ -validate('merchantId', 'secret', 'amount'); - - if (strtolower($this->httpRequest->request->get('bpe_signature2')) !== $this->generateResponseSignature()) { - throw new InvalidRequestException('Incorrect signature'); - } - - return $this->httpRequest->request->all(); - } - - public function generateResponseSignature() - { - return md5( - $this->httpRequest->request->get('bpe_trx'). - $this->httpRequest->request->get('bpe_timestamp'). - $this->getMerchantId(). - $this->getTransactionId(). - $this->getCurrency(). - $this->getAmountInteger(). - $this->httpRequest->request->get('bpe_result'). - (int) $this->getTestMode(). - $this->getSecret() - ); - } - - public function sendData($data) - { - return $this->response = new CompletePurchaseResponse($this, $data); - } -} diff --git a/src/Omnipay/Buckaroo/Message/CompletePurchaseResponse.php b/src/Omnipay/Buckaroo/Message/CompletePurchaseResponse.php deleted file mode 100644 index e2cc39ef..00000000 --- a/src/Omnipay/Buckaroo/Message/CompletePurchaseResponse.php +++ /dev/null @@ -1,40 +0,0 @@ -getCode(), $success_codes); - } - - public function getTransactionReference() - { - if (isset($this->data['bpe_trx'])) { - return $this->data['bpe_trx']; - } - } - - public function getCode() - { - if (isset($this->data['bpe_result'])) { - return $this->data['bpe_result']; - } - } -} diff --git a/src/Omnipay/Buckaroo/Message/PurchaseRequest.php b/src/Omnipay/Buckaroo/Message/PurchaseRequest.php deleted file mode 100644 index 8aac2cf2..00000000 --- a/src/Omnipay/Buckaroo/Message/PurchaseRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getSecret() - { - return $this->getParameter('secret'); - } - - public function setSecret($value) - { - return $this->setParameter('secret', $value); - } - - public function getData() - { - $this->validate('merchantId', 'secret', 'amount', 'returnUrl'); - - $data = array(); - $data['BPE_Merchant'] = $this->getMerchantId(); - $data['BPE_Amount'] = $this->getAmountInteger(); - $data['BPE_Currency'] = $this->getCurrency(); - $data['BPE_Language'] = 'EN'; - $data['BPE_Mode'] = (int) $this->getTestMode(); - $data['BPE_Invoice'] = $this->getTransactionId(); - $data['BPE_Return_Success'] = $this->getReturnUrl(); - $data['BPE_Return_Reject'] = $this->getReturnUrl(); - $data['BPE_Return_Error'] = $this->getReturnUrl(); - $data['BPE_Return_Method'] = 'POST'; - $data['BPE_Signature2'] = $this->generateSignature($data); - - return $data; - } - - public function generateSignature($data) - { - return md5( - $data['BPE_Merchant']. - $data['BPE_Invoice']. - $data['BPE_Amount']. - $data['BPE_Currency']. - $data['BPE_Mode']. - $this->getSecret() - ); - } - - public function sendData($data) - { - return $this->response = new PurchaseResponse($this, $data); - } - - public function getEndpoint() - { - return $this->endpoint; - } -} diff --git a/src/Omnipay/Buckaroo/Message/PurchaseResponse.php b/src/Omnipay/Buckaroo/Message/PurchaseResponse.php deleted file mode 100644 index 470747c7..00000000 --- a/src/Omnipay/Buckaroo/Message/PurchaseResponse.php +++ /dev/null @@ -1,37 +0,0 @@ -getRequest()->getEndpoint(); - } - - public function getRedirectMethod() - { - return 'POST'; - } - - public function getRedirectData() - { - return $this->data; - } -} diff --git a/src/Omnipay/CardSave/Gateway.php b/src/Omnipay/CardSave/Gateway.php deleted file mode 100644 index 8fbfc502..00000000 --- a/src/Omnipay/CardSave/Gateway.php +++ /dev/null @@ -1,58 +0,0 @@ - '', - 'password' => '', - ); - } - - public function getMerchantId() - { - return $this->getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\CardSave\Message\PurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\CardSave\Message\CompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/CardSave/Message/CompletePurchaseRequest.php b/src/Omnipay/CardSave/Message/CompletePurchaseRequest.php deleted file mode 100644 index 9a80601d..00000000 --- a/src/Omnipay/CardSave/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,30 +0,0 @@ -httpRequest->request->get('MD'); - $paRes = $this->httpRequest->request->get('PaRes'); - if (empty($md) || empty($paRes)) { - throw new InvalidResponseException; - } - - $data = new SimpleXMLElement(''); - $data->addAttribute('xmlns', $this->namespace); - $data->ThreeDSecureMessage->MerchantAuthentication['MerchantID'] = $this->getMerchantId(); - $data->ThreeDSecureMessage->MerchantAuthentication['Password'] = $this->getPassword(); - $data->ThreeDSecureMessage->ThreeDSecureInputData['CrossReference'] = $md; - $data->ThreeDSecureMessage->ThreeDSecureInputData->PaRES = $paRes; - - return $data; - } -} diff --git a/src/Omnipay/CardSave/Message/PurchaseRequest.php b/src/Omnipay/CardSave/Message/PurchaseRequest.php deleted file mode 100644 index 08c2a1be..00000000 --- a/src/Omnipay/CardSave/Message/PurchaseRequest.php +++ /dev/null @@ -1,102 +0,0 @@ -getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function getData() - { - $this->validate('amount', 'card'); - $this->getCard()->validate(); - - $data = new SimpleXMLElement(''); - $data->addAttribute('xmlns', $this->namespace); - - $data->PaymentMessage->MerchantAuthentication['MerchantID'] = $this->getMerchantId(); - $data->PaymentMessage->MerchantAuthentication['Password'] = $this->getPassword(); - $data->PaymentMessage->TransactionDetails['Amount'] = $this->getAmountInteger(); - $data->PaymentMessage->TransactionDetails['CurrencyCode'] = $this->getCurrencyNumeric(); - $data->PaymentMessage->TransactionDetails->OrderID = $this->getTransactionId(); - $data->PaymentMessage->TransactionDetails->OrderDescription = $this->getDescription(); - $data->PaymentMessage->TransactionDetails->MessageDetails['TransactionType'] = 'SALE'; - - $data->PaymentMessage->CardDetails->CardName = $this->getCard()->getName(); - $data->PaymentMessage->CardDetails->CardNumber = $this->getCard()->getNumber(); - $data->PaymentMessage->CardDetails->ExpiryDate['Month'] = $this->getCard()->getExpiryDate('m'); - $data->PaymentMessage->CardDetails->ExpiryDate['Year'] = $this->getCard()->getExpiryDate('y'); - $data->PaymentMessage->CardDetails->CV2 = $this->getCard()->getCvv(); - - if ($this->getCard()->getIssueNumber()) { - $data->PaymentMessage->CardDetails->IssueNumber = $this->getCard()->getIssueNumber(); - } - - if ($this->getCard()->getStartMonth() && $this->getCard()->getStartYear()) { - $data->PaymentMessage->CardDetails->StartDate['Month'] = $this->getCard()->getStartDate('m'); - $data->PaymentMessage->CardDetails->StartDate['Year'] = $this->getCard()->getStartDate('y'); - } - - $data->PaymentMessage->CustomerDetails->BillingAddress->Address1 = $this->getCard()->getAddress1(); - $data->PaymentMessage->CustomerDetails->BillingAddress->Address2 = $this->getCard()->getAddress2(); - $data->PaymentMessage->CustomerDetails->BillingAddress->City = $this->getCard()->getCity(); - $data->PaymentMessage->CustomerDetails->BillingAddress->PostCode = $this->getCard()->getPostcode(); - $data->PaymentMessage->CustomerDetails->BillingAddress->State = $this->getCard()->getState(); - // requires numeric country code - // $data->PaymentMessage->CustomerDetails->BillingAddress->CountryCode = $this->getCard()->getCountryNumeric; - $data->PaymentMessage->CustomerDetails->CustomerIPAddress = $this->getClientIp(); - - return $data; - } - - public function sendData($data) - { - // the PHP SOAP library sucks, and SimpleXML can't append element trees - // TODO: find PSR-0 SOAP library - $document = new DOMDocument('1.0', 'utf-8'); - $envelope = $document->appendChild( - $document->createElementNS('http://schemas.xmlsoap.org/soap/envelope/', 'soap:Envelope') - ); - $envelope->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); - $envelope->setAttribute('xmlns:xsd', 'http://www.w3.org/2001/XMLSchema'); - $body = $envelope->appendChild($document->createElement('soap:Body')); - $body->appendChild($document->importNode(dom_import_simplexml($data), true)); - - // post to Cardsave - $headers = array( - 'Content-Type' => 'text/xml; charset=utf-8', - 'SOAPAction' => $this->namespace.$data->getName()); - - $httpResponse = $this->httpClient->post($this->endpoint, $headers, $document->saveXML())->send(); - - return $this->response = new Response($this, $httpResponse->getBody()); - } -} diff --git a/src/Omnipay/CardSave/Message/Response.php b/src/Omnipay/CardSave/Message/Response.php deleted file mode 100644 index d56363c7..00000000 --- a/src/Omnipay/CardSave/Message/Response.php +++ /dev/null @@ -1,78 +0,0 @@ -request = $request; - - // we only care about the content of the soap:Body element - $responseDom = new DOMDocument; - $responseDom->loadXML($data); - $this->data = simplexml_import_dom($responseDom->documentElement->firstChild->firstChild); - - $resultElement = $this->getResultElement(); - if (!isset($resultElement->StatusCode)) { - throw new InvalidResponseException; - } - } - - public function getResultElement() - { - $resultElement = preg_replace('/Response$/', 'Result', $this->data->getName()); - - return $this->data->$resultElement; - } - - public function isSuccessful() - { - return 0 === (int) $this->getResultElement()->StatusCode; - } - - public function isRedirect() - { - return 3 === (int) $this->getResultElement()->StatusCode; - } - - public function getTransactionReference() - { - return (string) $this->data->TransactionOutputData['CrossReference']; - } - - public function getMessage() - { - return (string) $this->getResultElement()->Message; - } - - public function getRedirectUrl() - { - if ($this->isRedirect()) { - return (string) $this->data->TransactionOutputData->ThreeDSecureOutputData->ACSURL; - } - } - - public function getRedirectMethod() - { - return 'POST'; - } - - public function getRedirectData() - { - return $redirectData = array( - 'PaReq' => (string) $this->data->TransactionOutputData->ThreeDSecureOutputData->PaREQ, - 'TermUrl' => $this->getRequest()->getReturnUrl(), - 'MD' => (string) $this->data->TransactionOutputData['CrossReference'], - ); - } -} diff --git a/src/Omnipay/Common/AbstractGateway.php b/src/Omnipay/Common/AbstractGateway.php deleted file mode 100644 index e30228fb..00000000 --- a/src/Omnipay/Common/AbstractGateway.php +++ /dev/null @@ -1,217 +0,0 @@ -httpClient = $httpClient ?: $this->getDefaultHttpClient(); - $this->httpRequest = $httpRequest ?: $this->getDefaultHttpRequest(); - $this->initialize(); - } - - public function getShortName() - { - return Helper::getGatewayShortName(get_class($this)); - } - - public function initialize(array $parameters = array()) - { - $this->parameters = new ParameterBag; - - // set default parameters - foreach ($this->getDefaultParameters() as $key => $value) { - if (is_array($value)) { - $this->parameters->set($key, reset($value)); - } else { - $this->parameters->set($key, $value); - } - } - - Helper::initialize($this, $parameters); - - return $this; - } - - public function getParameters() - { - return $this->parameters->all(); - } - - protected function getParameter($key) - { - return $this->parameters->get($key); - } - - protected function setParameter($key, $value) - { - $this->parameters->set($key, $value); - - return $this; - } - - public function getTestMode() - { - return $this->getParameter('testMode'); - } - - public function setTestMode($value) - { - return $this->setParameter('testMode', $value); - } - - public function getCurrency() - { - return strtoupper($this->getParameter('currency')); - } - - public function setCurrency($value) - { - return $this->setParameter('currency', $value); - } - - /** - * Supports Authorize - * - * @return boolean True if this gateway supports the authorize() method - */ - public function supportsAuthorize() - { - return method_exists($this, 'authorize'); - } - - /** - * Supports Complete Authorize - * - * @return boolean True if this gateway supports the completeAuthorize() method - */ - public function supportsCompleteAuthorize() - { - return method_exists($this, 'completeAuthorize'); - } - - /** - * Supports Capture - * - * @return boolean True if this gateway supports the capture() method - */ - public function supportsCapture() - { - return method_exists($this, 'capture'); - } - - /** - * Supports Complete Purchase - * - * @return boolean True if this gateway supports the completePurchase() method - */ - public function supportsCompletePurchase() - { - return method_exists($this, 'completePurchase'); - } - - /** - * Supports Refund - * - * @return boolean True if this gateway supports the refund() method - */ - public function supportsRefund() - { - return method_exists($this, 'refund'); - } - - /** - * Supports Void - * - * @return boolean True if this gateway supports the void() method - */ - public function supportsVoid() - { - return method_exists($this, 'void'); - } - - /** - * Supports CreateCard - * - * @return boolean True if this gateway supports the create() method - */ - public function supportsCreateCard() - { - return method_exists($this, 'createCard'); - } - - /** - * Supports DeleteCard - * - * @return boolean True if this gateway supports the delete() method - */ - public function supportsDeleteCard() - { - return method_exists($this, 'deleteCard'); - } - - /** - * Supports UpdateCard - * - * @return boolean True if this gateway supports the update() method - */ - public function supportsUpdateCard() - { - return method_exists($this, 'updateCard'); - } - - /** - * Create and initialize a request object using existing parameters from this gateway - */ - protected function createRequest($class, array $parameters) - { - $obj = new $class($this->httpClient, $this->httpRequest); - - return $obj->initialize(array_replace($this->getParameters(), $parameters)); - } - - protected function getDefaultHttpClient() - { - return new HttpClient( - '', - array( - 'curl.options' => array(CURLOPT_CONNECTTIMEOUT => 60), - ) - ); - } - - protected function getDefaultHttpRequest() - { - return HttpRequest::createFromGlobals(); - } -} diff --git a/src/Omnipay/Common/CreditCard.php b/src/Omnipay/Common/CreditCard.php deleted file mode 100644 index 27e2088f..00000000 --- a/src/Omnipay/Common/CreditCard.php +++ /dev/null @@ -1,634 +0,0 @@ -initialize($parameters); - } - - /** - * All known/supported card brands, and a regular expression to match them. - * - * The order of the card brands is important, as some of the regular expressions overlap. - * - * Note: The fact that this class knows about a particular card brand does not imply - * that your gateway supports it. - * - * @return array - * @link https://github.com/Shopify/active_merchant/blob/master/lib/active_merchant/billing/credit_card_methods.rb - */ - public function getSupportedBrands() - { - return array( - static::BRAND_VISA => '/^4\d{12}(\d{3})?$/', - static::BRAND_MASTERCARD => '/^(5[1-5]\d{4}|677189)\d{10}$/', - static::BRAND_DISCOVER => '/^(6011|65\d{2}|64[4-9]\d)\d{12}|(62\d{14})$/', - static::BRAND_AMEX => '/^3[47]\d{13}$/', - static::BRAND_DINERS_CLUB => '/^3(0[0-5]|[68]\d)\d{11}$/', - static::BRAND_JCB => '/^35(28|29|[3-8]\d)\d{12}$/', - static::BRAND_SWITCH => '/^6759\d{12}(\d{2,3})?$/', - static::BRAND_SOLO => '/^6767\d{12}(\d{2,3})?$/', - static::BRAND_DANKORT => '/^5019\d{12}$/', - static::BRAND_MAESTRO => '/^(5[06-8]|6\d)\d{10,17}$/', - static::BRAND_FORBRUGSFORENINGEN => '/^600722\d{10}$/', - static::BRAND_LASER => '/^(6304|6706|6709|6771(?!89))\d{8}(\d{4}|\d{6,7})?$/', - ); - } - - /** - * Initialize the object with parameters. - * - * If any unknown parameters passed, they will be ignored. - * - * @param array $parameters An associative array of parameters - * - * @return $this - */ - public function initialize($parameters = null) - { - $this->parameters = new ParameterBag; - - Helper::initialize($this, $parameters); - - return $this; - } - - public function getParameters() - { - return $this->parameters->all(); - } - - protected function getParameter($key) - { - return $this->parameters->get($key); - } - - protected function setParameter($key, $value) - { - $this->parameters->set($key, $value); - - return $this; - } - - protected function setYearParameter($key, $value) - { - // normalize year to four digits - if (null === $value || '' === $value) { - $value = null; - } else { - $value = (int) gmdate('Y', gmmktime(0, 0, 0, 1, 1, (int) $value)); - } - - return $this->setParameter($key, $value); - } - - /** - * Validate this credit card. If the card is invalid, InvalidCreditCardException is thrown. - * - * This method is called internally by gateways to avoid wasting time with an API call - * when the credit card is clearly invalid. - * - * Generally if you want to validate the credit card yourself with custom error - * messages, you should use your framework's validation library, not this method. - */ - public function validate() - { - foreach (array('number', 'expiryMonth', 'expiryYear') as $key) { - if (!$this->getParameter($key)) { - throw new InvalidCreditCardException("The $key parameter is required"); - } - } - - if ($this->getExpiryDate('Ym') < gmdate('Ym')) { - throw new InvalidCreditCardException('Card has expired'); - } - - if (!Helper::validateLuhn($this->getNumber())) { - throw new InvalidCreditCardException('Card number is invalid'); - } - } - - public function getFirstName() - { - return $this->getBillingFirstName(); - } - - public function setFirstName($value) - { - $this->setBillingFirstName($value); - $this->setShippingFirstName($value); - - return $this; - } - - public function getLastName() - { - return $this->getBillingLastName(); - } - - public function setLastName($value) - { - $this->setBillingLastName($value); - $this->setShippingLastName($value); - - return $this; - } - - public function getName() - { - return $this->getBillingName(); - } - - public function setName($value) - { - $this->setBillingName($value); - $this->setShippingName($value); - - return $this; - } - - public function getNumber() - { - return $this->getParameter('number'); - } - - public function setNumber($value) - { - // strip non-numeric characters - return $this->setParameter('number', preg_replace('/\D/', '', $value)); - } - - /** - * Credit Card Brand - * - * Iterates through known/supported card brands to determine the brand of this card - * - * @return string - */ - public function getBrand() - { - foreach ($this->getSupportedBrands() as $brand => $val) { - if (preg_match($val, $this->getNumber())) { - return $brand; - } - } - } - - public function getExpiryMonth() - { - return $this->getParameter('expiryMonth'); - } - - public function setExpiryMonth($value) - { - return $this->setParameter('expiryMonth', (int) $value); - } - - public function getExpiryYear() - { - return $this->getParameter('expiryYear'); - } - - public function setExpiryYear($value) - { - return $this->setYearParameter('expiryYear', $value); - } - - /** - * Get the card expiry date, using the specified date format string. - * - * @param string $format - * - * @return string - */ - public function getExpiryDate($format) - { - return gmdate($format, gmmktime(0, 0, 0, $this->getExpiryMonth(), 1, $this->getExpiryYear())); - } - - public function getStartMonth() - { - return $this->getParameter('startMonth'); - } - - public function setStartMonth($value) - { - return $this->setParameter('startMonth', (int) $value); - } - - public function getStartYear() - { - return $this->getParameter('startYear'); - } - - public function setStartYear($value) - { - return $this->setYearParameter('startYear', $value); - } - - /** - * Get the card start date, using the specified date format string - * - * @param string $format - * - * @return string - */ - public function getStartDate($format) - { - return gmdate($format, gmmktime(0, 0, 0, $this->getStartMonth(), 1, $this->getStartYear())); - } - - public function getCvv() - { - return $this->getParameter('cvv'); - } - - public function setCvv($value) - { - return $this->setParameter('cvv', $value); - } - - public function getIssueNumber() - { - return $this->getParameter('issueNumber'); - } - - public function setIssueNumber($value) - { - return $this->setParameter('issueNumber', $value); - } - - public function getBillingName() - { - return trim($this->getBillingFirstName() . ' ' . $this->getBillingLastName()); - } - - public function setBillingName($value) - { - $names = explode(' ', $value, 2); - $this->setBillingFirstName($names[0]); - $this->setBillingLastName(isset($names[1]) ? $names[1] : null); - - return $this; - } - - public function getBillingFirstName() - { - return $this->getParameter('billingFirstName'); - } - - public function setBillingFirstName($value) - { - return $this->setParameter('billingFirstName', $value); - } - - public function getBillingLastName() - { - return $this->getParameter('billingLastName'); - } - - public function setBillingLastName($value) - { - return $this->setParameter('billingLastName', $value); - } - - public function getBillingCompany() - { - return $this->getParameter('billingCompany'); - } - - public function setBillingCompany($value) - { - return $this->setParameter('billingCompany', $value); - } - - public function getBillingAddress1() - { - return $this->getParameter('billingAddress1'); - } - - public function setBillingAddress1($value) - { - return $this->setParameter('billingAddress1', $value); - } - - public function getBillingAddress2() - { - return $this->getParameter('billingAddress2'); - } - - public function setBillingAddress2($value) - { - return $this->setParameter('billingAddress2', $value); - } - - public function getBillingCity() - { - return $this->getParameter('billingCity'); - } - - public function setBillingCity($value) - { - return $this->setParameter('billingCity', $value); - } - - public function getBillingPostcode() - { - return $this->getParameter('billingPostcode'); - } - - public function setBillingPostcode($value) - { - return $this->setParameter('billingPostcode', $value); - } - - public function getBillingState() - { - return $this->getParameter('billingState'); - } - - public function setBillingState($value) - { - return $this->setParameter('billingState', $value); - } - - public function getBillingCountry() - { - return $this->getParameter('billingCountry'); - } - - public function setBillingCountry($value) - { - return $this->setParameter('billingCountry', $value); - } - - public function getBillingPhone() - { - return $this->getParameter('billingPhone'); - } - - public function setBillingPhone($value) - { - return $this->setParameter('billingPhone', $value); - } - - public function getShippingName() - { - return trim($this->getShippingFirstName() . ' ' . $this->getShippingLastName()); - } - - public function setShippingName($value) - { - $names = explode(' ', $value, 2); - $this->setShippingFirstName($names[0]); - $this->setShippingLastName(isset($names[1]) ? $names[1] : null); - - return $this; - } - - public function getShippingFirstName() - { - return $this->getParameter('shippingFirstName'); - } - - public function setShippingFirstName($value) - { - return $this->setParameter('shippingFirstName', $value); - } - - public function getShippingLastName() - { - return $this->getParameter('shippingLastName'); - } - - public function setShippingLastName($value) - { - return $this->setParameter('shippingLastName', $value); - } - - public function getShippingCompany() - { - return $this->getParameter('shippingCompany'); - } - - public function setShippingCompany($value) - { - return $this->setParameter('shippingCompany', $value); - } - - public function getShippingAddress1() - { - return $this->getParameter('shippingAddress1'); - } - - public function setShippingAddress1($value) - { - return $this->setParameter('shippingAddress1', $value); - } - - public function getShippingAddress2() - { - return $this->getParameter('shippingAddress2'); - } - - public function setShippingAddress2($value) - { - return $this->setParameter('shippingAddress2', $value); - } - - public function getShippingCity() - { - return $this->getParameter('shippingCity'); - } - - public function setShippingCity($value) - { - return $this->setParameter('shippingCity', $value); - } - - public function getShippingPostcode() - { - return $this->getParameter('shippingPostcode'); - } - - public function setShippingPostcode($value) - { - return $this->setParameter('shippingPostcode', $value); - } - - public function getShippingState() - { - return $this->getParameter('shippingState'); - } - - public function setShippingState($value) - { - return $this->setParameter('shippingState', $value); - } - - public function getShippingCountry() - { - return $this->getParameter('shippingCountry'); - } - - public function setShippingCountry($value) - { - return $this->setParameter('shippingCountry', $value); - } - - public function getShippingPhone() - { - return $this->getParameter('shippingPhone'); - } - - public function setShippingPhone($value) - { - return $this->setParameter('shippingPhone', $value); - } - - public function getAddress1() - { - return $this->getParameter('billingAddress1'); - } - - public function setAddress1($value) - { - $this->setParameter('billingAddress1', $value); - $this->setParameter('shippingAddress1', $value); - - return $this; - } - - public function getAddress2() - { - return $this->getParameter('billingAddress2'); - } - - public function setAddress2($value) - { - $this->setParameter('billingAddress2', $value); - $this->setParameter('shippingAddress2', $value); - - return $this; - } - - public function getCity() - { - return $this->getParameter('billingCity'); - } - - public function setCity($value) - { - $this->setParameter('billingCity', $value); - $this->setParameter('shippingCity', $value); - - return $this; - } - - public function getPostcode() - { - return $this->getParameter('billingPostcode'); - } - - public function setPostcode($value) - { - $this->setParameter('billingPostcode', $value); - $this->setParameter('shippingPostcode', $value); - - return $this; - } - - public function getState() - { - return $this->getParameter('billingState'); - } - - public function setState($value) - { - $this->setParameter('billingState', $value); - $this->setParameter('shippingState', $value); - - return $this; - } - - public function getCountry() - { - return $this->getParameter('billingCountry'); - } - - public function setCountry($value) - { - $this->setParameter('billingCountry', $value); - $this->setParameter('shippingCountry', $value); - - return $this; - } - - public function getPhone() - { - return $this->getParameter('billingPhone'); - } - - public function setPhone($value) - { - $this->setParameter('billingPhone', $value); - $this->setParameter('shippingPhone', $value); - - return $this; - } - - public function getCompany() - { - return $this->getParameter('billingCompany'); - } - - public function setCompany($value) - { - $this->setParameter('billingCompany', $value); - $this->setParameter('shippingCompany', $value); - - return $this; - } - - public function getEmail() - { - return $this->getParameter('email'); - } - - public function setEmail($value) - { - return $this->setParameter('email', $value); - } -} diff --git a/src/Omnipay/Common/Currency.php b/src/Omnipay/Common/Currency.php deleted file mode 100644 index b0dbe986..00000000 --- a/src/Omnipay/Common/Currency.php +++ /dev/null @@ -1,117 +0,0 @@ -code = $code; - $this->numeric = $numeric; - $this->decimals = $decimals; - } - - /** - * Get the three letter code for the currency - * - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * Get the numeric code for this currency - * - * @return string - */ - public function getNumeric() - { - return $this->numeric; - } - - /** - * Get the number of decimal places for this currency - * - * @return int - */ - public function getDecimals() - { - return $this->decimals; - } - - /** - * Find a specific currency - * - * @param string $code The three letter currency code - * @return mixed A Currency object, or null if no currency was found - */ - public static function find($code) - { - $code = strtoupper($code); - $currencies = static::all(); - - if (isset($currencies[$code])) { - return new static($code, $currencies[$code]['numeric'], $currencies[$code]['decimals']); - } - } - - /** - * Get an array of all supported currencies - * - * @return array - */ - public static function all() - { - return array( - 'AUD' => array('numeric' => '036', 'decimals' => 2), - 'BRL' => array('numeric' => '986', 'decimals' => 2), - 'CAD' => array('numeric' => '124', 'decimals' => 2), - 'CHF' => array('numeric' => '756', 'decimals' => 2), - 'CLP' => array('numeric' => '152', 'decimals' => 0), - 'CNY' => array('numeric' => '156', 'decimals' => 2), - 'CZK' => array('numeric' => '203', 'decimals' => 2), - 'DKK' => array('numeric' => '208', 'decimals' => 2), - 'EUR' => array('numeric' => '978', 'decimals' => 2), - 'FJD' => array('numeric' => '242', 'decimals' => 2), - 'GBP' => array('numeric' => '826', 'decimals' => 2), - 'HKD' => array('numeric' => '344', 'decimals' => 2), - 'HUF' => array('numeric' => '348', 'decimals' => 2), - 'ILS' => array('numeric' => '376', 'decimals' => 2), - 'INR' => array('numeric' => '356', 'decimals' => 2), - 'JPY' => array('numeric' => '392', 'decimals' => 0), - 'KRW' => array('numeric' => '410', 'decimals' => 0), - 'LAK' => array('numeric' => '418', 'decimals' => 0), - 'MXN' => array('numeric' => '484', 'decimals' => 2), - 'MYR' => array('numeric' => '458', 'decimals' => 2), - 'NOK' => array('numeric' => '578', 'decimals' => 2), - 'NZD' => array('numeric' => '554', 'decimals' => 2), - 'PGK' => array('numeric' => '598', 'decimals' => 2), - 'PHP' => array('numeric' => '608', 'decimals' => 2), - 'PLN' => array('numeric' => '985', 'decimals' => 2), - 'SBD' => array('numeric' => '090', 'decimals' => 2), - 'SEK' => array('numeric' => '752', 'decimals' => 2), - 'SGD' => array('numeric' => '702', 'decimals' => 2), - 'THB' => array('numeric' => '764', 'decimals' => 2), - 'TOP' => array('numeric' => '776', 'decimals' => 2), - 'TRY' => array('numeric' => '949', 'decimals' => 2), - 'TWD' => array('numeric' => '901', 'decimals' => 2), - 'USD' => array('numeric' => '840', 'decimals' => 2), - 'VND' => array('numeric' => '704', 'decimals' => 0), - 'VUV' => array('numeric' => '548', 'decimals' => 0), - 'WST' => array('numeric' => '882', 'decimals' => 2), - 'ZAR' => array('numeric' => '710', 'decimals' => 2), - ); - } -} diff --git a/src/Omnipay/Common/Exception/BadMethodCallException.php b/src/Omnipay/Common/Exception/BadMethodCallException.php deleted file mode 100644 index 2396e697..00000000 --- a/src/Omnipay/Common/Exception/BadMethodCallException.php +++ /dev/null @@ -1,10 +0,0 @@ -getPathName(); - if ('Gateway.php' === substr($filepath, -11)) { - // determine class name - $type = substr($filepath, 0, -11); - $type = str_replace(array($directory, DIRECTORY_SEPARATOR), array('', '_'), $type); - $type = trim($type, '_'); - $class = Helper::getGatewayClassName($type); - - // ensure class exists and is not abstract - if (class_exists($class)) { - $reflection = new ReflectionClass($class); - if (!$reflection->isAbstract() and - $reflection->implementsInterface('\\Omnipay\\Common\\GatewayInterface')) { - $result[] = $type; - } - } - } - } - - return $result; - } -} diff --git a/src/Omnipay/Common/GatewayInterface.php b/src/Omnipay/Common/GatewayInterface.php deleted file mode 100644 index 87bed4b2..00000000 --- a/src/Omnipay/Common/GatewayInterface.php +++ /dev/null @@ -1,56 +0,0 @@ - '', // string variable - * 'testMode' => false, // boolean variable - * 'landingPage' => array('billing', 'login'), // enum variable, first item is default - * ); - */ - public function getDefaultParameters(); - - /** - * Initialize gateway with parameters - */ - public function initialize(array $parameters = array()); - - /** - * Get all gateway parameters - * - * @return array - */ - public function getParameters(); - - /** - * Create a new charge (combined authorize + capture). - * - * @param array $parameters An array of options - * - * @return \Omnipay\Common\Message\RequestInterface - */ - public function purchase(array $parameters = array()); -} diff --git a/src/Omnipay/Common/Helper.php b/src/Omnipay/Common/Helper.php deleted file mode 100644 index 634902ab..00000000 --- a/src/Omnipay/Common/Helper.php +++ /dev/null @@ -1,106 +0,0 @@ - $c) { - $str .= $i % 2 ? $c * 2 : $c; - } - - return array_sum(str_split($str)) % 10 === 0; - } - - /** - * Initialize an object with a given array of parameters - * - * Parameters are automatically converted to camelCase. Any parameters which do - * not match a setter on the target object are ignored. - * - * @param mixed $target The object to set parameters on - * @param array $parameters An array of parameters to set - */ - public static function initialize(&$target, $parameters) - { - if (is_array($parameters)) { - foreach ($parameters as $key => $value) { - $method = 'set'.ucfirst(static::camelCase($key)); - if (method_exists($target, $method)) { - $target->$method($value); - } - } - } - } - - /** - * Resolve a gateway class to a short name. - * - * The short name can be used with GatewayFactory as an alias of the gateway class, - * to create new instances of a gateway. - */ - public static function getGatewayShortName($className) - { - if (0 === strpos($className, '\\')) { - $className = substr($className, 1); - } - - if (0 === strpos($className, 'Omnipay\\')) { - return trim(str_replace('\\', '_', substr($className, 8, -7)), '_'); - } - - return '\\'.$className; - } - - /** - * Resolve a short gateway name to a full namespaced gateway class. - * - * Class names beginning with a namespace marker (\) are left intact. - * Non-namespaced classes are expected to be in the \Omnipay namespace, e.g.: - * - * \Custom\Gateway => \Custom\Gateway - * \Custom_Gateway => \Custom_Gateway - * Stripe => \Omnipay\Stripe\Gateway - * PayPal\Express => \Omnipay\PayPal\ExpressGateway - * PayPal_Express => \Omnipay\PayPal\ExpressGateway - */ - public static function getGatewayClassName($shortName) - { - if (0 === strpos($shortName, '\\')) { - return $shortName; - } - - // replace underscores with namespace marker, PSR-0 style - $shortName = str_replace('_', '\\', $shortName); - if (false === strpos($shortName, '\\')) { - $shortName .= '\\'; - } - - return '\\Omnipay\\'.$shortName.'Gateway'; - } -} diff --git a/src/Omnipay/Common/Item.php b/src/Omnipay/Common/Item.php deleted file mode 100644 index dae49aa6..00000000 --- a/src/Omnipay/Common/Item.php +++ /dev/null @@ -1,121 +0,0 @@ -initialize($parameters); - } - - /** - * Initialize this item with the specified parameters - * - * @param array|null $parameters An array of parameters to set on this object - */ - public function initialize($parameters = null) - { - $this->parameters = new ParameterBag; - - Helper::initialize($this, $parameters); - - return $this; - } - - public function getParameters() - { - return $this->parameters->all(); - } - - protected function getParameter($key) - { - return $this->parameters->get($key); - } - - protected function setParameter($key, $value) - { - $this->parameters->set($key, $value); - - return $this; - } - - /** - * {@inheritDoc} - */ - public function getName() - { - return $this->getParameter('name'); - } - - /** - * Set the item name - */ - public function setName($value) - { - return $this->setParameter('name', $value); - } - - /** - * {@inheritDoc} - */ - public function getDescription() - { - return $this->getParameter('description'); - } - - /** - * Set the item description - */ - public function setDescription($value) - { - return $this->setParameter('description', $value); - } - - /** - * {@inheritDoc} - */ - public function getQuantity() - { - return $this->getParameter('quantity'); - } - - /** - * Set the item quantity - */ - public function setQuantity($value) - { - return $this->setParameter('quantity', $value); - } - - /** - * {@inheritDoc} - */ - public function getPrice() - { - return $this->getParameter('price'); - } - - /** - * Set the item price - */ - public function setPrice($value) - { - return $this->setParameter('price', $value); - } -} diff --git a/src/Omnipay/Common/ItemBag.php b/src/Omnipay/Common/ItemBag.php deleted file mode 100644 index d5caa28b..00000000 --- a/src/Omnipay/Common/ItemBag.php +++ /dev/null @@ -1,81 +0,0 @@ -replace($items); - } - - /** - * Return all the items - * - * @return array An array of items - */ - public function all() - { - return $this->items; - } - - /** - * Replace the contents of this bag with the specified items - * - * @param array $items An array of items - */ - public function replace(array $items = array()) - { - $this->items = array(); - - foreach ($items as $item) { - $this->add($item); - } - } - - /** - * Add an item to the bag - * - * @param ItemInterface|array $item An existing item, or associative array of item parameters - */ - public function add($item) - { - if ($item instanceof ItemInterface) { - $this->items[] = $item; - } else { - $this->items[] = new Item($item); - } - } - - /** - * Returns an iterator for items - * - * @return \ArrayIterator An \ArrayIterator instance - */ - public function getIterator() - { - return new \ArrayIterator($this->items); - } - - /** - * Returns the number of items - * - * @return int The number of items - */ - public function count() - { - return count($this->items); - } -} diff --git a/src/Omnipay/Common/ItemInterface.php b/src/Omnipay/Common/ItemInterface.php deleted file mode 100644 index c4035153..00000000 --- a/src/Omnipay/Common/ItemInterface.php +++ /dev/null @@ -1,29 +0,0 @@ -httpClient = $httpClient; - $this->httpRequest = $httpRequest; - $this->initialize(); - } - - /** - * Initialize the object with parameters. - * - * If any unknown parameters passed, they will be ignored. - * - * @param array $parameters An associative array of parameters - * - * @return $this - * - * @throws RuntimeException - */ - public function initialize(array $parameters = array()) - { - if (null !== $this->response) { - throw new RuntimeException('Request cannot be modified after it has been sent!'); - } - - $this->parameters = new ParameterBag; - - Helper::initialize($this, $parameters); - - return $this; - } - - public function getParameters() - { - return $this->parameters->all(); - } - - protected function getParameter($key) - { - return $this->parameters->get($key); - } - - protected function setParameter($key, $value) - { - if (null !== $this->response) { - throw new RuntimeException('Request cannot be modified after it has been sent!'); - } - - $this->parameters->set($key, $value); - - return $this; - } - - public function getTestMode() - { - return $this->getParameter('testMode'); - } - - public function setTestMode($value) - { - return $this->setParameter('testMode', $value); - } - - /** - * Validate the request. - * - * This method is called internally by gateways to avoid wasting time with an API call - * when the request is clearly invalid. - * - * @param string ... a variable length list of required parameters - * - * @throws InvalidRequestException - */ - public function validate() - { - foreach (func_get_args() as $key) { - $value = $this->parameters->get($key); - if (empty($value)) { - throw new InvalidRequestException("The $key parameter is required"); - } - } - } - - public function getCard() - { - return $this->getParameter('card'); - } - - public function setCard($value) - { - if ($value && !$value instanceof CreditCard) { - $value = new CreditCard($value); - } - - return $this->setParameter('card', $value); - } - - public function getToken() - { - return $this->getParameter('token'); - } - - public function setToken($value) - { - return $this->setParameter('token', $value); - } - - public function getCardReference() - { - return $this->getParameter('cardReference'); - } - - public function setCardReference($value) - { - return $this->setParameter('cardReference', $value); - } - - public function getAmount() - { - $amount = $this->getParameter('amount'); - if ($amount) { - if (!is_float($amount) && - $this->getCurrencyDecimalPlaces() > 0 && - false === strpos((string) $amount, '.')) { - throw new InvalidRequestException( - 'Please specify amount as a string or float, ' . - 'with decimal places (e.g. \'10.00\' to represent $10.00).' - ); - } - - return $this->formatCurrency($amount); - } - } - - public function setAmount($value) - { - return $this->setParameter('amount', $value); - } - - public function getAmountInteger() - { - return (int) round($this->getAmount() * $this->getCurrencyDecimalFactor()); - } - - public function getCurrency() - { - return $this->getParameter('currency'); - } - - public function setCurrency($value) - { - return $this->setParameter('currency', strtoupper($value)); - } - - public function getCurrencyNumeric() - { - if ($currency = Currency::find($this->getCurrency())) { - return $currency->getNumeric(); - } - } - - public function getCurrencyDecimalPlaces() - { - if ($currency = Currency::find($this->getCurrency())) { - return $currency->getDecimals(); - } - - return 2; - } - - private function getCurrencyDecimalFactor() - { - return pow(10, $this->getCurrencyDecimalPlaces()); - } - - public function formatCurrency($amount) - { - return number_format( - $amount, - $this->getCurrencyDecimalPlaces(), - '.', - '' - ); - } - - public function getDescription() - { - return $this->getParameter('description'); - } - - public function setDescription($value) - { - return $this->setParameter('description', $value); - } - - public function getTransactionId() - { - return $this->getParameter('transactionId'); - } - - public function setTransactionId($value) - { - return $this->setParameter('transactionId', $value); - } - - public function getTransactionReference() - { - return $this->getParameter('transactionReference'); - } - - public function setTransactionReference($value) - { - return $this->setParameter('transactionReference', $value); - } - - /** - * A list of items in this order - * - * @return ItemBag|null A bag containing items in this order - */ - public function getItems() - { - return $this->getParameter('items'); - } - - /** - * Set the items in this order - * - * @param ItemBag|array $items An array of items in this order - */ - public function setItems($items) - { - if ($items && !$items instanceof ItemBag) { - $items = new ItemBag($items); - } - - return $this->setParameter('items', $items); - } - - public function getClientIp() - { - return $this->getParameter('clientIp'); - } - - public function setClientIp($value) - { - return $this->setParameter('clientIp', $value); - } - - public function getReturnUrl() - { - return $this->getParameter('returnUrl'); - } - - public function setReturnUrl($value) - { - return $this->setParameter('returnUrl', $value); - } - - public function getCancelUrl() - { - return $this->getParameter('cancelUrl'); - } - - public function setCancelUrl($value) - { - return $this->setParameter('cancelUrl', $value); - } - - public function getNotifyUrl() - { - return $this->getParameter('notifyUrl'); - } - - public function setNotifyUrl($value) - { - return $this->setParameter('notifyUrl', $value); - } - - public function send() - { - $data = $this->getData(); - - return $this->sendData($data); - } - - public function getResponse() - { - if (null === $this->response) { - throw new RuntimeException('You must call send() before accessing the Response!'); - } - - return $this->response; - } -} diff --git a/src/Omnipay/Common/Message/AbstractResponse.php b/src/Omnipay/Common/Message/AbstractResponse.php deleted file mode 100644 index 7f0105f9..00000000 --- a/src/Omnipay/Common/Message/AbstractResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -request = $request; - $this->data = $data; - } - - public function getRequest() - { - return $this->request; - } - - public function isRedirect() - { - return false; - } - - public function getData() - { - return $this->data; - } - - public function getMessage() - { - return null; - } - - public function getCode() - { - return null; - } - - public function getTransactionReference() - { - return null; - } - - /** - * Automatically perform any required redirect - * - * This method is meant to be a helper for simple scenarios. If you want to customize the - * redirection page, just call the getRedirectUrl() and getRedirectData() methods directly. - */ - public function redirect() - { - $this->getRedirectResponse()->send(); - exit; - } - - public function getRedirectResponse() - { - if (!$this instanceof RedirectResponseInterface || !$this->isRedirect()) { - throw new RuntimeException('This response does not support redirection.'); - } - - if ('GET' === $this->getRedirectMethod()) { - return HttpRedirectResponse::create($this->getRedirectUrl()); - } elseif ('POST' === $this->getRedirectMethod()) { - $hiddenFields = ''; - foreach ($this->getRedirectData() as $key => $value) { - $hiddenFields .= sprintf( - '', - htmlspecialchars($key, ENT_QUOTES, 'UTF-8'), - htmlspecialchars($value, ENT_QUOTES, 'UTF-8') - )."\n"; - } - - $output = ' - - - Redirecting... - - -
-

Redirecting to payment page...

-

- %2$s - -

-
- -'; - $output = sprintf($output, htmlspecialchars($this->getRedirectUrl(), ENT_QUOTES, 'UTF-8'), $hiddenFields); - - return HttpResponse::create($output); - } - - throw new RuntimeException('Invalid redirect method "'.$this->getRedirectMethod().'".'); - } -} diff --git a/src/Omnipay/Common/Message/MessageInterface.php b/src/Omnipay/Common/Message/MessageInterface.php deleted file mode 100644 index cc3cbd14..00000000 --- a/src/Omnipay/Common/Message/MessageInterface.php +++ /dev/null @@ -1,17 +0,0 @@ -createRequest('\Omnipay\Dummy\Message\AuthorizeRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->authorize($parameters); - } -} diff --git a/src/Omnipay/Dummy/Message/AuthorizeRequest.php b/src/Omnipay/Dummy/Message/AuthorizeRequest.php deleted file mode 100644 index e6b30f02..00000000 --- a/src/Omnipay/Dummy/Message/AuthorizeRequest.php +++ /dev/null @@ -1,29 +0,0 @@ -validate('amount', 'card'); - - $this->getCard()->validate(); - - return array('amount' => $this->getAmount()); - } - - public function sendData($data) - { - $data['reference'] = uniqid(); - $data['success'] = 0 === substr($this->getCard()->getNumber(), -1, 1) % 2; - $data['message'] = $data['success'] ? 'Success' : 'Failure'; - - return $this->response = new Response($this, $data); - } -} diff --git a/src/Omnipay/Dummy/Message/Response.php b/src/Omnipay/Dummy/Message/Response.php deleted file mode 100644 index bdd6fd6e..00000000 --- a/src/Omnipay/Dummy/Message/Response.php +++ /dev/null @@ -1,26 +0,0 @@ -data['success']) && $this->data['success']; - } - - public function getTransactionReference() - { - return isset($this->data['reference']) ? $this->data['reference'] : null; - } - - public function getMessage() - { - return isset($this->data['message']) ? $this->data['message'] : null; - } -} diff --git a/src/Omnipay/Eway/Message/RapidCompletePurchaseRequest.php b/src/Omnipay/Eway/Message/RapidCompletePurchaseRequest.php deleted file mode 100644 index 2f5a5190..00000000 --- a/src/Omnipay/Eway/Message/RapidCompletePurchaseRequest.php +++ /dev/null @@ -1,19 +0,0 @@ - $this->httpRequest->query->get('AccessCode')); - } - - public function getEndpoint() - { - return $this->getEndpointBase().'/GetAccessCodeResult.json'; - } -} diff --git a/src/Omnipay/Eway/Message/RapidPurchaseRequest.php b/src/Omnipay/Eway/Message/RapidPurchaseRequest.php deleted file mode 100644 index 141e87bd..00000000 --- a/src/Omnipay/Eway/Message/RapidPurchaseRequest.php +++ /dev/null @@ -1,78 +0,0 @@ -getParameter('apiKey'); - } - - public function setApiKey($value) - { - return $this->setParameter('apiKey', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function getData() - { - $this->validate('amount', 'returnUrl'); - - $data = array(); - $data['Method'] = 'ProcessPayment'; - $data['DeviceID'] = 'https://github.com/adrianmacneil/omnipay'; - $data['CustomerIP'] = $this->getClientIp(); - $data['RedirectUrl'] = $this->getReturnUrl(); - - $data['Payment'] = array(); - $data['Payment']['TotalAmount'] = $this->getAmountInteger(); - $data['Payment']['InvoiceNumber'] = $this->getTransactionId(); - $data['Payment']['InvoiceDescription'] = $this->getDescription(); - $data['Payment']['CurrencyCode'] = $this->getCurrency(); - - $data['Customer'] = array(); - if ($this->getCard()) { - $data['Customer']['FirstName'] = $this->getCard()->getFirstName(); - $data['Customer']['LastName'] = $this->getCard()->getLastName(); - } - - return $data; - } - - public function sendData($data) - { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, json_encode($data)) - ->setAuth($this->getApiKey(), $this->getPassword()) - ->send(); - - return $this->response = new RapidResponse($this, $httpResponse->json()); - } - - public function getEndpoint() - { - return $this->getEndpointBase().'/CreateAccessCode.json'; - } - - public function getEndpointBase() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } -} diff --git a/src/Omnipay/Eway/Message/RapidResponse.php b/src/Omnipay/Eway/Message/RapidResponse.php deleted file mode 100644 index 2d96e70b..00000000 --- a/src/Omnipay/Eway/Message/RapidResponse.php +++ /dev/null @@ -1,60 +0,0 @@ -data['TransactionStatus']) && $this->data['TransactionStatus']; - } - - public function isRedirect() - { - return isset($this->data['FormActionURL']); - } - - public function getRedirectUrl() - { - return isset($this->data['FormActionURL']) ? $this->data['FormActionURL'] : null; - } - - public function getRedirectMethod() - { - return 'POST'; - } - - public function getRedirectData() - { - if ($this->isRedirect()) { - return array( - 'EWAY_ACCESSCODE' => $this->data['AccessCode'], - ); - } - } - - public function getTransactionReference() - { - return isset($this->data['TransactionID']) ? (string) $this->data['TransactionID'] : null; - } - - public function getMessage() - { - return $this->getCode(); - } - - public function getCode() - { - if (!empty($this->data['ResponseMessage'])) { - return $this->data['ResponseMessage']; - } elseif (!empty($this->data['Errors'])) { - return $this->data['Errors']; - } - } -} diff --git a/src/Omnipay/Eway/RapidGateway.php b/src/Omnipay/Eway/RapidGateway.php deleted file mode 100644 index c917254e..00000000 --- a/src/Omnipay/Eway/RapidGateway.php +++ /dev/null @@ -1,55 +0,0 @@ - '', - 'password' => '', - 'testMode' => false, - ); - } - - public function getApiKey() - { - return $this->getParameter('apiKey'); - } - - public function setApiKey($value) - { - return $this->setParameter('apiKey', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Eway\Message\RapidPurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Eway\Message\RapidCompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/FirstData/ConnectGateway.php b/src/Omnipay/FirstData/ConnectGateway.php deleted file mode 100644 index e0516cbd..00000000 --- a/src/Omnipay/FirstData/ConnectGateway.php +++ /dev/null @@ -1,52 +0,0 @@ - '', - 'sharedSecret' => '', - 'testMode' => false, - ); - } - - public function setStoreId($value) - { - return $this->setParameter('storeId', $value); - } - - public function getStoreId() - { - return $this->getParameter('storeId'); - } - - public function setSharedSecret($value) - { - return $this->setParameter('sharedSecret', $value); - } - - public function getSharedSecret() - { - return $this->getParameter('sharedSecret'); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\FirstData\Message\PurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\FirstData\Message\CompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/FirstData/Message/CompletePurchaseRequest.php b/src/Omnipay/FirstData/Message/CompletePurchaseRequest.php deleted file mode 100644 index 5002f3ef..00000000 --- a/src/Omnipay/FirstData/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,51 +0,0 @@ -httpRequest->request->get('response_hash'); - $dateTime = (string) $this->httpRequest->request->get('txndatetime'); - $amount = (string) $this->httpRequest->request->get('chargetotal'); - $code = (string) $this->httpRequest->request->get('approval_code'); - $ourHash = $this->createResponseHash($amount, $dateTime, $code); - if ($theirHash !== $ourHash) { - throw new InvalidResponseException("Callback hash does not match expected value"); - } - - return $this->httpRequest->request->all(); - } - - public function sendData($data) - { - return $this->response = new CompletePurchaseResponse($this, $data); - } - - /** - * Generate a hash string that matches the format of the one returned by the payment gateway - * @param string $amount - * @param string $dateTime - * @param string $code - * @return string - */ - public function createResponseHash($amount, $dateTime, $code) - { - $this->validate('storeId', 'sharedSecret', 'currency'); - - $storeId = $this->getStoreId(); - $sharedSecret = $this->getSharedSecret(); - $currency = $this->getCurrencyNumeric(); - - $stringToHash = $sharedSecret . $code . $amount . $currency . $dateTime . $storeId; - $ascii = bin2hex($stringToHash); - - return sha1($ascii); - } -} diff --git a/src/Omnipay/FirstData/Message/CompletePurchaseResponse.php b/src/Omnipay/FirstData/Message/CompletePurchaseResponse.php deleted file mode 100644 index 0293650d..00000000 --- a/src/Omnipay/FirstData/Message/CompletePurchaseResponse.php +++ /dev/null @@ -1,26 +0,0 @@ -data['status']) && $this->data['status'] == 'APPROVED'; - } - - public function getTransactionReference() - { - return isset($this->data['oid']) ? $this->data['oid'] : null; - } - - public function getMessage() - { - return isset($this->data['status']) ? $this->data['status'] : null; - } -} diff --git a/src/Omnipay/FirstData/Message/PurchaseRequest.php b/src/Omnipay/FirstData/Message/PurchaseRequest.php deleted file mode 100644 index 93dd86e9..00000000 --- a/src/Omnipay/FirstData/Message/PurchaseRequest.php +++ /dev/null @@ -1,89 +0,0 @@ -getParameter('storeId'); - } - - public function setStoreId($value) - { - return $this->setParameter('storeId', $value); - } - - public function setSharedSecret($value) - { - return $this->setParameter('sharedSecret', $value); - } - - public function getSharedSecret() - { - return $this->getParameter('sharedSecret'); - } - - public function getData() - { - $this->validate('amount', 'card'); - - $data = array(); - $data['storename'] = $this->getStoreId(); - $data['txntype'] = 'sale'; - $data['timezone'] = 'GMT'; - $data['chargetotal'] = $this->getAmount(); - $data['txndatetime'] = $this->getDateTime(); - $data['hash'] = $this->createHash($data['txndatetime'], $data['chargetotal']); - $data['currency'] = $this->getCurrencyNumeric(); - $data['mode'] = 'payonly'; - $data['full_bypass'] = 'true'; - $data['oid'] = $this->getParameter('transactionId'); - - $this->getCard()->validate(); - - $data['cardnumber'] = $this->getCard()->getNumber(); - $data['cvm'] = $this->getCard()->getCvv(); - $data['expmonth'] = $this->getCard()->getExpiryDate('m'); - $data['expyear'] = $this->getCard()->getExpiryDate('y'); - - $data['responseSuccessURL'] = $this->getParameter('returnUrl'); - $data['responseFailURL'] = $this->getParameter('returnUrl'); - - return $data; - } - - public function createHash($dateTime, $amount) - { - $storeId = $this->getStoreId(); - $sharedSecret = $this->getSharedSecret(); - $currency = $this->getCurrencyNumeric(); - $stringToHash = $storeId . $dateTime . $amount . $currency . $sharedSecret; - $ascii = bin2hex($stringToHash); - - return sha1($ascii); - } - - public function sendData($data) - { - return $this->response = new PurchaseResponse($this, $data); - } - - public function getEndpoint() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } -} diff --git a/src/Omnipay/FirstData/Message/PurchaseResponse.php b/src/Omnipay/FirstData/Message/PurchaseResponse.php deleted file mode 100644 index 829c0cfe..00000000 --- a/src/Omnipay/FirstData/Message/PurchaseResponse.php +++ /dev/null @@ -1,37 +0,0 @@ -getRequest()->getEndpoint(); - } - - public function getRedirectMethod() - { - return 'POST'; - } - - public function getRedirectData() - { - return $this->data; - } -} diff --git a/src/Omnipay/GoCardless/Gateway.php b/src/Omnipay/GoCardless/Gateway.php deleted file mode 100644 index 4f6b24f4..00000000 --- a/src/Omnipay/GoCardless/Gateway.php +++ /dev/null @@ -1,114 +0,0 @@ - '', - 'appSecret' => '', - 'merchantId' => '', - 'accessToken' => '', - 'testMode' => false, - ); - } - - public function getAppId() - { - return $this->getParameter('appId'); - } - - public function setAppId($value) - { - return $this->setParameter('appId', $value); - } - - public function getAppSecret() - { - return $this->getParameter('appSecret'); - } - - public function setAppSecret($value) - { - return $this->setParameter('appSecret', $value); - } - - public function getMerchantId() - { - return $this->getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getAccessToken() - { - return $this->getParameter('accessToken'); - } - - public function setAccessToken($value) - { - return $this->setParameter('accessToken', $value); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\GoCardless\Message\PurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\GoCardless\Message\CompletePurchaseRequest', $parameters); - } - - /** - * Generate a query string for the data array (this is some kind of sick joke) - * - * @link https://github.com/gocardless/gocardless-php/blob/v0.3.3/lib/GoCardless/Utils.php#L39 - */ - public static function generateQueryString($data, &$pairs = array(), $namespace = null) - { - if (is_array($data)) { - foreach ($data as $k => $v) { - if (is_int($k)) { - static::generateQueryString($v, $pairs, $namespace.'[]'); - } else { - static::generateQueryString($v, $pairs, $namespace !== null ? $namespace."[$k]" : $k); - } - } - - if ($namespace !== null) { - return $pairs; - } - - if (empty($pairs)) { - return ''; - } - - sort($pairs); - $strs = array_map('implode', array_fill(0, count($pairs), '='), $pairs); - - return implode('&', $strs); - } else { - $pairs[] = array(rawurlencode($namespace), rawurlencode($data)); - } - } -} diff --git a/src/Omnipay/GoCardless/Message/AbstractRequest.php b/src/Omnipay/GoCardless/Message/AbstractRequest.php deleted file mode 100644 index 42ddf935..00000000 --- a/src/Omnipay/GoCardless/Message/AbstractRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -getParameter('appId'); - } - - public function setAppId($value) - { - return $this->setParameter('appId', $value); - } - - public function getAppSecret() - { - return $this->getParameter('appSecret'); - } - - public function setAppSecret($value) - { - return $this->setParameter('appSecret', $value); - } - - public function getMerchantId() - { - return $this->getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getAccessToken() - { - return $this->getParameter('accessToken'); - } - - public function setAccessToken($value) - { - return $this->setParameter('accessToken', $value); - } - - /** - * Generate a signature for the data array - */ - public function generateSignature($data) - { - return hash_hmac('sha256', Gateway::generateQueryString($data), $this->getAppSecret()); - } - - public function getEndpoint() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } -} diff --git a/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php b/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php deleted file mode 100644 index b5d9721d..00000000 --- a/src/Omnipay/GoCardless/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,44 +0,0 @@ -httpRequest->get('resource_uri'); - $data['resource_id'] = $this->httpRequest->get('resource_id'); - $data['resource_type'] = $this->httpRequest->get('resource_type'); - - if ($this->generateSignature($data) !== $this->httpRequest->get('signature')) { - throw new InvalidResponseException; - } - - unset($data['resource_uri']); - - return $data; - } - - public function sendData($data) - { - $httpRequest = $this->httpClient->post( - $this->getEndpoint().'/api/v1/confirm', - array('Accept' => 'application/json'), - Gateway::generateQueryString($data) - ); - $httpResponse = $httpRequest->setAuth($this->getAppId(), $this->getAppSecret())->send(); - - return $this->response = new CompletePurchaseResponse( - $this, - $httpResponse->json(), - $this->httpRequest->get('resource_id') - ); - } -} diff --git a/src/Omnipay/GoCardless/Message/CompletePurchaseResponse.php b/src/Omnipay/GoCardless/Message/CompletePurchaseResponse.php deleted file mode 100644 index 03f9b742..00000000 --- a/src/Omnipay/GoCardless/Message/CompletePurchaseResponse.php +++ /dev/null @@ -1,37 +0,0 @@ -transactionReference = $transactionReference; - } - - public function isSuccessful() - { - return !isset($this->data['error']); - } - - public function getTransactionReference() - { - return $this->transactionReference; - } - - public function getMessage() - { - if (!$this->isSuccessful()) { - return reset($this->data['error']); - } - } -} diff --git a/src/Omnipay/GoCardless/Message/PurchaseRequest.php b/src/Omnipay/GoCardless/Message/PurchaseRequest.php deleted file mode 100644 index 7c1c9248..00000000 --- a/src/Omnipay/GoCardless/Message/PurchaseRequest.php +++ /dev/null @@ -1,60 +0,0 @@ -validate('amount', 'returnUrl'); - - $data = array(); - $data['client_id'] = $this->getAppId(); - $data['nonce'] = $this->generateNonce(); - $data['timestamp'] = gmdate('Y-m-d\TH:i:s\Z'); - $data['redirect_uri'] = $this->getReturnUrl(); - $data['cancel_uri'] = $this->getCancelUrl(); - $data['bill'] = array(); - $data['bill']['merchant_id'] = $this->getMerchantId(); - $data['bill']['amount'] = $this->getAmount(); - $data['bill']['name'] = $this->getDescription(); - - if ($this->getCard()) { - $data['bill']['user'] = array(); - $data['bill']['user']['first_name'] = $this->getCard()->getFirstName(); - $data['bill']['user']['last_name'] = $this->getCard()->getLastName(); - $data['bill']['user']['email'] = $this->getCard()->getEmail(); - $data['bill']['user']['billing_address1'] = $this->getCard()->getAddress1(); - $data['bill']['user']['billing_address2'] = $this->getCard()->getAddress2(); - $data['bill']['user']['billing_town'] = $this->getCard()->getCity(); - $data['bill']['user']['billing_county'] = $this->getCard()->getCountry(); - $data['bill']['user']['billing_postcode'] = $this->getCard()->getPostcode(); - } - - $data['signature'] = $this->generateSignature($data); - - return $data; - } - - public function sendData($data) - { - return $this->response = new PurchaseResponse($this, $data); - } - - /** - * Generate a nonce for each request - */ - protected function generateNonce() - { - $nonce = ''; - for ($i = 0; $i < 64; $i++) { - // append random ASCII character - $nonce .= chr(mt_rand(33, 126)); - } - - return base64_encode($nonce); - } -} diff --git a/src/Omnipay/GoCardless/Message/PurchaseResponse.php b/src/Omnipay/GoCardless/Message/PurchaseResponse.php deleted file mode 100644 index 0b3f89f0..00000000 --- a/src/Omnipay/GoCardless/Message/PurchaseResponse.php +++ /dev/null @@ -1,38 +0,0 @@ -getRequest()->getEndpoint().'/connect/bills/new?'.Gateway::generateQueryString($this->data); - } - - public function getRedirectMethod() - { - return 'GET'; - } - - public function getRedirectData() - { - return null; - } -} diff --git a/src/Omnipay/Manual/Gateway.php b/src/Omnipay/Manual/Gateway.php deleted file mode 100644 index 0db709d3..00000000 --- a/src/Omnipay/Manual/Gateway.php +++ /dev/null @@ -1,39 +0,0 @@ -createRequest('\Omnipay\Manual\Message\Request', $parameters); - } - - public function capture(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Manual\Message\Request', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Manual\Message\Request', $parameters); - } -} diff --git a/src/Omnipay/Manual/Message/Request.php b/src/Omnipay/Manual/Message/Request.php deleted file mode 100644 index 557d2153..00000000 --- a/src/Omnipay/Manual/Message/Request.php +++ /dev/null @@ -1,23 +0,0 @@ -validate('amount'); - - return $this->getParameters(); - } - - public function sendData($data) - { - return $this->response = new Response($this, $data); - } -} diff --git a/src/Omnipay/Manual/Message/Response.php b/src/Omnipay/Manual/Message/Response.php deleted file mode 100644 index ad6973c1..00000000 --- a/src/Omnipay/Manual/Message/Response.php +++ /dev/null @@ -1,16 +0,0 @@ -getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getMerchantAccessCode() - { - return $this->getParameter('merchantAccessCode'); - } - - public function setMerchantAccessCode($value) - { - return $this->setParameter('merchantAccessCode', $value); - } - - public function getSecureHash() - { - return $this->getParameter('secureHash'); - } - - public function setSecureHash($value) - { - return $this->setParameter('secureHash', $value); - } - - protected function getBaseData() - { - $data = array(); - $data['vpc_Merchant'] = $this->getMerchantId(); - $data['vpc_AccessCode'] = $this->getMerchantAccessCode(); - $data['vpc_Version'] = '1'; - $data['vpc_Locale'] = 'en'; - $data['vpc_Command'] = $this->action; - $data['vpc_Amount'] = $this->getAmountInteger(); - $data['vpc_MerchTxnRef'] = $this->getTransactionId(); - $data['vpc_OrderInfo'] = $this->getDescription(); - $data['vpc_ReturnURL'] = $this->getReturnUrl(); - - return $data; - } - - public function getEndpoint() - { - return $this->endpoint; - } - - public function calculateHash($data) - { - ksort($data); - - $hash = $this->getSecureHash(); - foreach ($data as $k => $v) { - if (substr($k, 0, 4) === 'vpc_' && $k !== 'vpc_SecureHash') { - $hash .= $v; - } - } - - return strtoupper(md5($hash)); - } -} diff --git a/src/Omnipay/Migs/Message/Response.php b/src/Omnipay/Migs/Message/Response.php deleted file mode 100644 index 10431f71..00000000 --- a/src/Omnipay/Migs/Message/Response.php +++ /dev/null @@ -1,36 +0,0 @@ -data['vpc_TxnResponseCode']) && "0" === $this->data['vpc_TxnResponseCode']; - } - - public function getTransactionReference() - { - return isset($this->data['vpc_ReceiptNo']) ? $this->data['vpc_ReceiptNo'] : null; - } - - public function getMessage() - { - return isset($this->data['vpc_Message']) ? $this->data['vpc_Message'] : null; - } -} diff --git a/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php b/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php deleted file mode 100644 index 1470928d..00000000 --- a/src/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequest.php +++ /dev/null @@ -1,33 +0,0 @@ -httpRequest->query->all(); - - $hash = isset($data['vpc_SecureHash']) ? $data['vpc_SecureHash'] : null; - if ($this->calculateHash($data) !== $hash) { - throw new InvalidRequestException('Incorrect hash'); - } - - return $data; - } - - public function sendData($data) - { - return $this->response = new Response($this, $data); - } - - public function getEndpoint() - { - return $this->endpoint.'vpcpay'; - } -} diff --git a/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php b/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php deleted file mode 100644 index cbfcc17a..00000000 --- a/src/Omnipay/Migs/Message/ThreePartyPurchaseRequest.php +++ /dev/null @@ -1,33 +0,0 @@ -validate('amount', 'returnUrl', 'transactionId'); - - $data = $this->getBaseData(); - $data['vpc_SecureHash'] = $this->calculateHash($data); - - return $data; - } - - public function sendData($data) - { - $redirectUrl = $this->getEndpoint().'?'.http_build_query($data); - - return $this->response = new ThreePartyPurchaseResponse($this, $data, $redirectUrl); - } - - public function getEndpoint() - { - return $this->endpoint.'vpcpay'; - } -} diff --git a/src/Omnipay/Migs/Message/ThreePartyPurchaseResponse.php b/src/Omnipay/Migs/Message/ThreePartyPurchaseResponse.php deleted file mode 100644 index 1c4f02d2..00000000 --- a/src/Omnipay/Migs/Message/ThreePartyPurchaseResponse.php +++ /dev/null @@ -1,46 +0,0 @@ -redirectUrl = $redirectUrl; - } - - public function isSuccessful() - { - return false; - } - - public function isRedirect() - { - return true; - } - - public function getRedirectUrl() - { - return $this->redirectUrl; - } - - public function getRedirectMethod() - { - return 'GET'; - } - - public function getRedirectData() - { - return $this->getData(); - } -} diff --git a/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php b/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php deleted file mode 100644 index 54508373..00000000 --- a/src/Omnipay/Migs/Message/TwoPartyPurchaseRequest.php +++ /dev/null @@ -1,38 +0,0 @@ -validate('amount', 'transactionId', 'card'); - - $this->getCard()->validate(); - - $data = $this->getBaseData(); - $data['vpc_CardNum'] = $this->getCard()->getNumber(); - $data['vpc_CardExp'] = $this->getCard()->getExpiryDate('ym'); - $data['vpc_CardSecurityCode'] = $this->getCard()->getCvv(); - $data['vpc_SecureHash'] = $this->calculateHash($data); - - return $data; - } - - public function sendData($data) - { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); - - return $this->response = new Response($this, $httpResponse->getBody()); - } - - public function getEndpoint() - { - return $this->endpoint.'vpcdps'; - } -} diff --git a/src/Omnipay/Migs/ThreePartyGateway.php b/src/Omnipay/Migs/ThreePartyGateway.php deleted file mode 100644 index 7bccae79..00000000 --- a/src/Omnipay/Migs/ThreePartyGateway.php +++ /dev/null @@ -1,26 +0,0 @@ -createRequest('\Omnipay\Migs\Message\ThreePartyPurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Migs\Message\ThreePartyCompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/Migs/TwoPartyGateway.php b/src/Omnipay/Migs/TwoPartyGateway.php deleted file mode 100644 index 584fa8c8..00000000 --- a/src/Omnipay/Migs/TwoPartyGateway.php +++ /dev/null @@ -1,62 +0,0 @@ - '', - 'merchantAccessCode' => '', - 'secureHash' => '' - ); - } - - public function getMerchantId() - { - return $this->getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getMerchantAccessCode() - { - return $this->getParameter('merchantAccessCode'); - } - - public function setMerchantAccessCode($value) - { - return $this->setParameter('merchantAccessCode', $value); - } - - public function getSecureHash() - { - return $this->getParameter('secureHash'); - } - - public function setSecureHash($value) - { - return $this->setParameter('secureHash', $value); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Migs\Message\TwoPartyPurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/Mollie/Gateway.php b/src/Omnipay/Mollie/Gateway.php deleted file mode 100644 index 8c6bf947..00000000 --- a/src/Omnipay/Mollie/Gateway.php +++ /dev/null @@ -1,51 +0,0 @@ - '', - 'testMode' => '', - ); - } - - public function getPartnerId() - { - return $this->getParameter('partnerId'); - } - - public function setPartnerId($value) - { - return $this->setParameter('partnerId', $value); - } - - public function fetchIssuers(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Mollie\Message\FetchIssuersRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Mollie\Message\PurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Mollie\Message\CompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/Mollie/Message/AbstractRequest.php b/src/Omnipay/Mollie/Message/AbstractRequest.php deleted file mode 100644 index 37a0806a..00000000 --- a/src/Omnipay/Mollie/Message/AbstractRequest.php +++ /dev/null @@ -1,49 +0,0 @@ -getParameter('partnerId'); - } - - public function setPartnerId($value) - { - return $this->setParameter('partnerId', $value); - } - - public function getIssuer() - { - return $this->getParameter('issuer'); - } - - public function setIssuer($value) - { - return $this->setParameter('issuer', $value); - } - - protected function getBaseData() - { - $data = array(); - - if ($this->getTestMode()) { - $data['testmode'] = 'true'; - } - - return $data; - } - - public function sendData($data) - { - $httpResponse = $this->httpClient->post($this->endpoint, null, $data)->send(); - - return $this->response = new Response($this, $httpResponse->xml()); - } -} diff --git a/src/Omnipay/Mollie/Message/CompletePurchaseRequest.php b/src/Omnipay/Mollie/Message/CompletePurchaseRequest.php deleted file mode 100644 index b695f3ce..00000000 --- a/src/Omnipay/Mollie/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,21 +0,0 @@ -validate('partnerId'); - - $data = $this->getBaseData(); - $data['a'] = 'check'; - $data['partnerid'] = $this->getPartnerId(); - $data['transaction_id'] = $this->httpRequest->query->get('transaction_id'); - - return $data; - } -} diff --git a/src/Omnipay/Mollie/Message/FetchIssuersRequest.php b/src/Omnipay/Mollie/Message/FetchIssuersRequest.php deleted file mode 100644 index 1208a990..00000000 --- a/src/Omnipay/Mollie/Message/FetchIssuersRequest.php +++ /dev/null @@ -1,17 +0,0 @@ -getBaseData(); - $data['a'] = 'banklist'; - - return $data; - } -} diff --git a/src/Omnipay/Mollie/Message/PurchaseRequest.php b/src/Omnipay/Mollie/Message/PurchaseRequest.php deleted file mode 100644 index 59b4fabd..00000000 --- a/src/Omnipay/Mollie/Message/PurchaseRequest.php +++ /dev/null @@ -1,25 +0,0 @@ -validate('partnerId', 'amount', 'issuer', 'returnUrl', 'notifyUrl'); - - $data = $this->getBaseData(); - $data['a'] = 'fetch'; - $data['partnerid'] = $this->getPartnerId(); - $data['returnurl'] = $this->getReturnUrl(); - $data['reporturl'] = $this->getNotifyUrl(); - $data['bank_id'] = $this->getIssuer(); - $data['amount'] = $this->getAmountInteger(); - $data['description'] = $this->getDescription(); - - return $data; - } -} diff --git a/src/Omnipay/Mollie/Message/Response.php b/src/Omnipay/Mollie/Message/Response.php deleted file mode 100644 index ed56d59c..00000000 --- a/src/Omnipay/Mollie/Message/Response.php +++ /dev/null @@ -1,85 +0,0 @@ -isRedirect()) { - return false; - } - - return 'error' !== (string) $this->data->item['type']; - } - - public function isRedirect() - { - return isset($this->data->order->URL); - } - - public function getRedirectUrl() - { - if ($this->isRedirect()) { - return (string) $this->data->order->URL; - } - } - - public function getRedirectMethod() - { - return 'GET'; - } - - public function getRedirectData() - { - return null; - } - - public function getTransactionReference() - { - if (isset($this->data->order)) { - return (string) $this->data->order->transaction_id; - } - } - - public function getMessage() - { - if (isset($this->data->item)) { - return (string) $this->data->item->message; - } elseif (isset($this->data->order)) { - return (string) $this->data->order->message; - } else { - return (string) $this->data->message; - } - } - - public function getCode() - { - if (isset($this->data->item)) { - return (string) $this->data->item->errorcode; - } - } - - /** - * Get an associateive array of banks returned from a fetchIssuers request - */ - public function getIssuers() - { - if (isset($this->data->bank)) { - $issuers = array(); - - foreach ($this->data->bank as $bank) { - $bank_id = (string) $bank->bank_id; - $issuers[$bank_id] = (string) $bank->bank_name; - } - - return $issuers; - } - } -} diff --git a/src/Omnipay/MultiSafepay/Gateway.php b/src/Omnipay/MultiSafepay/Gateway.php deleted file mode 100644 index 62c1f51c..00000000 --- a/src/Omnipay/MultiSafepay/Gateway.php +++ /dev/null @@ -1,107 +0,0 @@ - '', - 'siteId' => '', - 'siteCode' => '', - 'testMode' => false, - ); - } - - public function getAccountId() - { - return $this->getParameter('accountId'); - } - - public function setAccountId($value) - { - return $this->setParameter('accountId', $value); - } - - public function getSiteId() - { - return $this->getParameter('siteId'); - } - - public function setSiteId($value) - { - return $this->setParameter('siteId', $value); - } - - public function getSiteCode() - { - return $this->getParameter('siteCode'); - } - - public function setSiteCode($value) - { - return $this->setParameter('siteCode', $value); - } - - /** - * Retrieve payment methods active on the given MultiSafepay - * account. - * - * @param array $parameters - * - * @return FetchPaymentMethodsRequest - */ - public function fetchPaymentMethods(array $parameters = array()) - { - return $this->createRequest('\Omnipay\MultiSafepay\Message\FetchPaymentMethodsRequest', $parameters); - } - - /** - * Retrieve iDEAL issuers. - * - * @param array $parameters - * - * @return FetchIssuersRequest - */ - public function fetchIssuers(array $parameters = array()) - { - return $this->createRequest('\Omnipay\MultiSafepay\Message\FetchIssuersRequest', $parameters); - } - - /** - * {@inheritdoc} - */ - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\MultiSafepay\Message\PurchaseRequest', $parameters); - } - - /** - * {@inheritdoc} - */ - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\MultiSafepay\Message\CompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/MultiSafepay/Message/AbstractRequest.php b/src/Omnipay/MultiSafepay/Message/AbstractRequest.php deleted file mode 100644 index 5ff0db33..00000000 --- a/src/Omnipay/MultiSafepay/Message/AbstractRequest.php +++ /dev/null @@ -1,57 +0,0 @@ -getParameter('accountId'); - } - - public function setAccountId($value) - { - return $this->setParameter('accountId', $value); - } - - public function getSiteId() - { - return $this->getParameter('siteId'); - } - - public function setSiteId($value) - { - return $this->setParameter('siteId', $value); - } - - public function getSiteCode() - { - return $this->getParameter('siteCode'); - } - - public function setSiteCode($value) - { - return $this->setParameter('siteCode', $value); - } - - public function getEndpoint() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } - - /** - * @return array - */ - protected function getHeaders() - { - return array( - 'User-Agent' => $this->userAgent, - ); - } -} diff --git a/src/Omnipay/MultiSafepay/Message/AbstractResponse.php b/src/Omnipay/MultiSafepay/Message/AbstractResponse.php deleted file mode 100644 index f70cd771..00000000 --- a/src/Omnipay/MultiSafepay/Message/AbstractResponse.php +++ /dev/null @@ -1,32 +0,0 @@ -data->error)) { - return (string) $this->data->error->description; - } - - return null; - } - - /** - * {@inheritdoc} - */ - public function getCode() - { - if (isset($this->data->error)) { - return (string) $this->data->error->code; - } - - return null; - } -} diff --git a/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php b/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php deleted file mode 100644 index aec5eb3f..00000000 --- a/src/Omnipay/MultiSafepay/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,43 +0,0 @@ -validate('transactionId'); - - $data = new SimpleXMLElement(''); - $data->addAttribute('ua', $this->userAgent); - - $merchant = $data->addChild('merchant'); - $merchant->addChild('account', $this->getAccountId()); - $merchant->addChild('site_id', $this->getSiteId()); - $merchant->addChild('site_secure_code', $this->getSiteCode()); - - $transaction = $data->addChild('transaction'); - $transaction->addChild('id', $this->getTransactionId()); - - return $data; - } - - /** - * {@inheritdoc} - */ - public function sendData($data) - { - $httpResponse = $this->httpClient->post( - $this->getEndpoint(), - $this->getHeaders(), - $data->asXML() - )->send(); - - return $this->response = new CompletePurchaseResponse($this, $httpResponse->xml()); - } -} diff --git a/src/Omnipay/MultiSafepay/Message/CompletePurchaseResponse.php b/src/Omnipay/MultiSafepay/Message/CompletePurchaseResponse.php deleted file mode 100644 index 825e1fa5..00000000 --- a/src/Omnipay/MultiSafepay/Message/CompletePurchaseResponse.php +++ /dev/null @@ -1,92 +0,0 @@ -data->ewallet->status) && 'completed' === (string) $this->data->ewallet->status; - } - - /** - * {@inheritdoc} - */ - public function getTransactionReference() - { - return isset($this->data->transaction->id) ? (string) $this->data->transaction->id : null; - } - - /** - * Is the payment created, but uncompleted? - * - * @return boolean - */ - public function isInitialized() - { - return isset($this->data->ewallet->status) && 'initialized' === (string) $this->data->ewallet->status; - } - - /** - * Is the payment created, but not yet exempted (credit cards)? - * - * @return boolean - */ - public function isUncleared() - { - return isset($this->data->ewallet->status) && 'uncleared' === (string) $this->data->ewallet->status; - } - - /** - * Is the payment canceled? - * - * @return boolean - */ - public function isCanceled() - { - return isset($this->data->ewallet->status) && 'canceled' === (string) $this->data->ewallet->status; - } - - /** - * Is the payment rejected? - * - * @return boolean - */ - public function isRejected() - { - return isset($this->data->ewallet->status) && 'declined' === (string) $this->data->ewallet->status; - } - - /** - * Is the payment refunded? - * - * @return boolean - */ - public function isRefunded() - { - return isset($this->data->ewallet->status) && 'refunded' === (string) $this->data->ewallet->status; - } - - /** - * Is the payment expired? - * - * @return boolean - */ - public function isExpired() - { - return isset($this->data->ewallet->status) && 'expired' === (string) $this->data->ewallet->status; - } - - /** - * Get raw payment status. - * - * @return null|string - */ - public function getPaymentStatus() - { - return isset($this->data->ewallet->status) ? (string) $this->data->ewallet->status : null; - } -} diff --git a/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php b/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php deleted file mode 100644 index 9f13460a..00000000 --- a/src/Omnipay/MultiSafepay/Message/FetchIssuersRequest.php +++ /dev/null @@ -1,38 +0,0 @@ -'); - $data->addAttribute('ua', $this->userAgent); - - $merchant = $data->addChild('merchant'); - $merchant->addChild('account', $this->getAccountId()); - $merchant->addChild('site_id', $this->getSiteId()); - $merchant->addChild('site_secure_code', $this->getSiteCode()); - - return $data; - } - - /** - * {@inheritdoc} - */ - public function sendData($data) - { - $httpResponse = $this->httpClient->post( - $this->getEndpoint(), - $this->getHeaders(), - $data->asXML() - )->send(); - - return $this->response = new FetchIssuersResponse($this, $httpResponse->xml()); - } -} diff --git a/src/Omnipay/MultiSafepay/Message/FetchIssuersResponse.php b/src/Omnipay/MultiSafepay/Message/FetchIssuersResponse.php deleted file mode 100644 index 60a25f5d..00000000 --- a/src/Omnipay/MultiSafepay/Message/FetchIssuersResponse.php +++ /dev/null @@ -1,30 +0,0 @@ -data->issuers); - } - - /** - * Return available issuers as an associative array. - * - * @return array - */ - public function getIssuers() - { - $result = array(); - - foreach ($this->data->issuers->issuer as $issuer) { - $result[(string) $issuer->code] = (string) $issuer->description; - } - - return $result; - } -} diff --git a/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php b/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php deleted file mode 100644 index c84d25fe..00000000 --- a/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequest.php +++ /dev/null @@ -1,51 +0,0 @@ -getParameter('country'); - } - - public function setCountry($value) - { - return $this->setParameter('country', $value); - } - - /** - * {@inheritdoc} - */ - public function getData() - { - $data = new SimpleXMLElement(''); - $data->addAttribute('ua', $this->userAgent); - - $merchant = $data->addChild('merchant'); - $merchant->addChild('account', $this->getAccountId()); - $merchant->addChild('site_id', $this->getSiteId()); - $merchant->addChild('site_secure_code', $this->getSiteCode()); - - $customer = $data->addChild('customer'); - $customer->addChild('country', $this->getCountry()); - - return $data; - } - - /** - * {@inheritdoc} - */ - public function sendData($data) - { - $httpResponse = $this->httpClient->post( - $this->getEndpoint(), - $this->getHeaders(), - $data->asXML() - )->send(); - - return $this->response = new FetchPaymentMethodsResponse($this, $httpResponse->xml()); - } -} diff --git a/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsResponse.php b/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsResponse.php deleted file mode 100644 index c5254b71..00000000 --- a/src/Omnipay/MultiSafepay/Message/FetchPaymentMethodsResponse.php +++ /dev/null @@ -1,30 +0,0 @@ -data->gateways); - } - - /** - * Return available payment methods as an associative array. - * - * @return array - */ - public function getPaymentMethods() - { - $result = array(); - - foreach ($this->data->gateways->gateway as $gateway) { - $result[(string) $gateway->id] = (string) $gateway->description; - } - - return $result; - } -} diff --git a/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php b/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php deleted file mode 100644 index 2d948dbf..00000000 --- a/src/Omnipay/MultiSafepay/Message/PurchaseRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -getParameter('language'); - } - - public function setLanguage($value) - { - return $this->setParameter('language', $value); - } - - public function getGateway() - { - return $this->getParameter('gateway'); - } - - public function setGateway($value) - { - return $this->setParameter('gateway', $value); - } - - public function getIssuer() - { - return $this->getParameter('issuer'); - } - - public function setIssuer($value) - { - return $this->setParameter('issuer', $value); - } - - public function getGoogleAnalyticsCode() - { - return $this->getParameter('googleAnalyticsCode'); - } - - public function setGoogleAnalyticsCode($value) - { - return $this->setParameter('googleAnalyticsCode', $value); - } - - public function getExtraData1() - { - return $this->getParameter('extraData1'); - } - - public function setExtraData1($value) - { - return $this->setParameter('extraData1', $value); - } - - public function getExtraData2() - { - return $this->getParameter('extraData2'); - } - - public function setExtraData2($value) - { - return $this->setParameter('extraData2', $value); - } - - public function getExtraData3() - { - return $this->getParameter('extraData3'); - } - - public function setExtraData3($value) - { - return $this->setParameter('extraData3', $value); - } - - public function getItems() - { - return $this->getParameter('items'); - } - - public function setItems($value) - { - return $this->setParameter('items', $value); - } - - /** - * {@inheritdoc} - */ - public function getData() - { - $this->validate('transactionId', 'amount', 'currency', 'description', 'clientIp', 'card'); - - if ('IDEAL' === $this->getGateway() && $this->getIssuer()) { - $data = new SimpleXMLElement(''); - } else { - $data = new SimpleXMLElement(''); - } - - $data->addAttribute('ua', $this->userAgent); - - $merchant = $data->addChild('merchant'); - $merchant->addChild('account', $this->getAccountId()); - $merchant->addChild('site_id', $this->getSiteId()); - $merchant->addChild('site_secure_code', $this->getSiteCode()); - $merchant->addChild('notification_url', htmlspecialchars($this->getNotifyUrl())); - $merchant->addChild('cancel_url', htmlspecialchars($this->getCancelUrl())); - $merchant->addChild('redirect_url', htmlspecialchars($this->getReturnUrl())); - - /** @var CreditCard $card */ - $card = $this->getCard(); - $customer = $data->addChild('customer'); - $customer->addChild('ipaddress', $this->getClientIp()); - $customer->addChild('locale', $this->getLanguage()); - $customer->addChild('email', $card->getEmail()); - $customer->addChild('firstname', $card->getFirstName()); - $customer->addChild('lastname', $card->getLastName()); - $customer->addChild('address1', $card->getAddress1()); - $customer->addChild('address2', $card->getAddress2()); - $customer->addChild('zipcode', $card->getPostcode()); - $customer->addChild('city', $card->getCity()); - $customer->addChild('country', $card->getCountry()); - $customer->addChild('phone', $card->getPhone()); - - $data->addChild('google_analytics', $this->getGoogleAnalyticsCode()); - - $transaction = $data->addChild('transaction'); - $transaction->addChild('id', $this->getTransactionId()); - $transaction->addChild('currency', $this->getCurrency()); - $transaction->addChild('amount', $this->getAmountInteger()); - $transaction->addChild('description', $this->getDescription()); - $transaction->addChild('var1', $this->getExtraData1()); - $transaction->addChild('var2', $this->getExtraData2()); - $transaction->addChild('var3', $this->getExtraData3()); - $transaction->addChild('items', $this->getItems()); - $transaction->addChild('gateway', $this->getGateway()); - - if ('IDEAL' === $this->getGateway() && $this->getIssuer()) { - $gatewayInfo = $data->addChild('gatewayinfo'); - $gatewayInfo->addChild('issuerid', $this->getIssuer()); - } - - $data->addChild('signature', $this->generateSignature()); - - return $data; - } - - /** - * {@inheritdoc} - */ - public function sendData($data) - { - $httpResponse = $this->httpClient->post( - $this->getEndpoint(), - $this->getHeaders(), - $data->asXML() - )->send(); - - return $this->response = new PurchaseResponse($this, $httpResponse->xml()); - } - - /** - * @return string - */ - protected function generateSignature() - { - return md5( - $this->getAmountInteger(). - $this->getCurrency(). - $this->getAccountId(). - $this->getSiteId(). - $this->getTransactionId() - ); - } -} diff --git a/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php b/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php deleted file mode 100644 index a6ce45ed..00000000 --- a/src/Omnipay/MultiSafepay/Message/PurchaseResponse.php +++ /dev/null @@ -1,62 +0,0 @@ -data->transaction->id) ? (string) $this->data->transaction->id : null; - } - - /** - * {@inheritdoc} - */ - public function isSuccessful() - { - return false; - } - - /** - * {@inheritdoc} - */ - public function isRedirect() - { - return isset($this->data->transaction->payment_url) || isset($this->data->gatewayinfo->redirecturl); - } - - /** - * {@inheritdoc} - */ - public function getRedirectUrl() - { - if (isset($this->data->gatewayinfo->redirecturl)) { - return (string) $this->data->gatewayinfo->redirecturl; - } elseif (isset($this->data->transaction->payment_url)) { - return (string) $this->data->transaction->payment_url; - } - - return null; - } - - /** - * {@inheritdoc} - */ - public function getRedirectMethod() - { - return 'GET'; - } - - /** - * {@inheritdoc} - */ - public function getRedirectData() - { - return null; - } -} diff --git a/src/Omnipay/NetBanx/Gateway.php b/src/Omnipay/NetBanx/Gateway.php deleted file mode 100644 index 5b5ec6bc..00000000 --- a/src/Omnipay/NetBanx/Gateway.php +++ /dev/null @@ -1,160 +0,0 @@ - '', - 'storeId' => '', - 'storePassword' => '', - 'testMode' => false, - ); - } - - /** - * Authorize a new amount - * - * @param array $parameters - * @return mixed - */ - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\NetBanx\Message\AuthorizeRequest', $parameters); - } - - /** - * Capture authorized amount - * - * @param array $parameters An array of options - * @return \Omnipay\ResponseInterface - */ - public function capture(array $parameters = array()) - { - return $this->createRequest('\Omnipay\NetBanx\Message\CaptureRequest', $parameters); - } - - /** - * Create a new charge (combined authorize + capture). - * - * @param array An array of options - * @return \Omnipay\ResponseInterface - */ - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\NetBanx\Message\PurchaseRequest', $parameters); - } - - /** - * Void transaction - * - * @param array $parameters An array of options - * @return \Omnipay\ResponseInterface - */ - public function void(array $parameters = array()) - { - return $this->createRequest('\Omnipay\NetBanx\Message\VoidRequest', $parameters); - } - - /** - * Create card - * - * @param array $parameters - * @return mixed - */ - public function createCard(array $parameters = array()) - { - $parameters['amount'] = self::CREATE_CARD_AMOUNT; - - return $this->createRequest('\Omnipay\NetBanx\Message\AuthorizeRequest', $parameters); - } - - /** - * Setter for Account Number - * - * @param string $value - * @return $this - */ - public function setAccountNumber($value) - { - return $this->setParameter('accountNumber', $value); - } - - /** - * Getter for Account Number - * - * @return string - */ - public function getAccountNumber() - { - return $this->getParameter('accountNumber'); - } - - /** - * Setter for Store ID - * - * @param string $value - * @return $this - */ - public function setStoreId($value) - { - return $this->setParameter('storeId', $value); - } - - /** - * Getter for Store ID - * - * @return string - */ - public function getStoreId() - { - return $this->getParameter('storeId'); - } - - /** - * Setter for Store Password - * - * @param string $value - * @return $this - */ - public function setStorePassword($value) - { - return $this->setParameter('storePassword', $value); - } - - /** - * Getter for Store Password - * - * @return string - */ - public function getStorePassword() - { - return $this->getParameter('storePassword'); - } -} diff --git a/src/Omnipay/NetBanx/Message/AbstractRequest.php b/src/Omnipay/NetBanx/Message/AbstractRequest.php deleted file mode 100644 index cc235184..00000000 --- a/src/Omnipay/NetBanx/Message/AbstractRequest.php +++ /dev/null @@ -1,189 +0,0 @@ -setParameter('accountNumber', $value); - } - - /** - * Getter for Account Number - * - * @return string - */ - public function getAccountNumber() - { - return $this->getParameter('accountNumber'); - } - - /** - * Setter for Store ID - * - * @param string $value - * @return $this - */ - public function setStoreId($value) - { - return $this->setParameter('storeId', $value); - } - - /** - * Getter for Store ID - * - * @return string - */ - public function getStoreId() - { - return $this->getParameter('storeId'); - } - - /** - * Setter for Store Password - * - * @param string $value - * @return $this - */ - public function setStorePassword($value) - { - return $this->setParameter('storePassword', $value); - } - - /** - * Getter for Store Password - * - * @return string - */ - public function getStorePassword() - { - return $this->getParameter('storePassword'); - } - - /** - * Getter for customer ID - * - * @return string - */ - public function getCustomerId() - { - return $this->getParameter('customerId'); - } - - /** - * Setter for customr ID - * - * @param string $value - * @return $this - */ - public function setCustomerId($value) - { - return $this->setParameter('customerId', $value); - } - - /** - * Send request - * - * @return \Omnipay\Common\Message\ResponseInterface|void - */ - public function sendData($data) - { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); - - return $this->response = new Response($this, $httpResponse->getBody()); - } - - /** - * Get End Point - * - * Depends on Test or Live environment - * - * @return string - */ - public function getEndpoint() - { - return $this->getTestMode() ? $this->developerEndpoint : $this->liveEndpoint; - } - - /** - * Get base data - * - * @return array - */ - protected function getBaseData() - { - $data = array(); - $data['txnMode'] = $this->txnMode; - - return $data; - } - - /** - * Translate card type to internal NetBanx format - * - * @param string $brand - * @return string - */ - protected function translateCardType($brand) - { - switch ($brand) { - case CreditCard::BRAND_VISA: - $cardType = 'VI'; - break; - case CreditCard::BRAND_AMEX: - $cardType = 'AM'; - break; - case CreditCard::BRAND_DISCOVER: - $cardType = 'DI'; - break; - case CreditCard::BRAND_MASTERCARD: - $cardType = 'MC'; - break; - case CreditCard::BRAND_MAESTRO: - $cardType = 'MD'; - break; - case CreditCard::BRAND_LASER: - $cardType = 'LA'; - break; - case CreditCard::BRAND_SOLO: - $cardType = 'SO'; - break; - case CreditCard::BRAND_JCB: - $cardType = 'JC'; - break; - case CreditCard::BRAND_DINERS_CLUB: - $cardType = 'DC'; - break; - default: - $cardType = 'VI'; - } - - return $cardType; - } -} diff --git a/src/Omnipay/NetBanx/Message/AuthorizeRequest.php b/src/Omnipay/NetBanx/Message/AuthorizeRequest.php deleted file mode 100644 index af3bdc21..00000000 --- a/src/Omnipay/NetBanx/Message/AuthorizeRequest.php +++ /dev/null @@ -1,144 +0,0 @@ -getTransactionReference() || $this->getCardReference()) { - $this->txnMode = $this->getStoredDataMode(); - $this->validate('amount'); - } else { - $this->txnMode = $this->getBasicMode(); - $this->validate('amount', 'card'); - $this->getCard()->validate(); - } - - $data = $this->getBaseData(); - $data['txnRequest'] = $this->getXmlString(); - - return $data; - } - - /** - * Get XML string - * - * @return string - */ - protected function getXmlString() - { - if ($this->getTransactionReference() || $this->getCardReference()) { - $xmlRoot = 'ccStoredDataRequestV1'; - } else { - $xmlRoot = 'ccAuthRequestV1'; - } - - $xml = " - <{$xmlRoot} - xmlns=\"http://www.optimalpayments.com/creditcard/xmlschema/v1/" - xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance/" - xsi:schemaLocation=\"http://www.optimalpayments.com/creditcard/xmlschema/v1/" />"; - - $sxml = new \SimpleXMLElement($xml); - - $merchantAccount = $sxml->addChild('merchantAccount'); - - $merchantAccount->addChild('accountNum', $this->getAccountNumber()); - $merchantAccount->addChild('storeID', $this->getStoreId()); - $merchantAccount->addChild('storePwd', $this->getStorePassword()); - - $sxml->addChild('merchantRefNum', $this->getCustomerId() ?: 'ref-num - ' . time()); - - if ($this->getTransactionReference() || $this->getCardReference()) { - $sxml->addChild('confirmationNumber', $this->getTransactionReference() ?: $this->getCardReference()); - $sxml->addChild('amount', $this->getAmount()); - } else { - /** @var $card CreditCard */ - $card = $this->getCard(); - - $sxml->addChild('amount', $this->getAmount()); - - $cardChild = $sxml->addChild('card'); - - $cardChild->addChild('cardNum', $card->getNumber()); - - $cardExpiry = $cardChild->addChild('cardExpiry'); - $cardExpiry->addChild('month', $card->getExpiryDate('m')); - $cardExpiry->addChild('year', $card->getExpiryDate('Y')); - - $cardChild->addChild('cardType', $this->translateCardType($card->getBrand())); - $cardChild->addChild('cvdIndicator', '1'); - $cardChild->addChild('cvd', $card->getCvv()); - - $billingDetails = $sxml->addChild('billingDetails'); - - $billingDetails->addChild('cardPayMethod', 'WEB'); - $billingDetails->addChild('firstName', $card->getBillingFirstName()); - $billingDetails->addChild('lastName', $card->getBillingLastName()); - $billingDetails->addChild('street', $card->getBillingAddress1()); - $billingDetails->addChild('street2', $card->getBillingAddress2()); - $billingDetails->addChild('city', $card->getBillingCity()); - $billingDetails->addChild('state', $card->getBillingState()); - $billingDetails->addChild('country', $card->getBillingCountry()); - $billingDetails->addChild('zip', $card->getBillingPostcode()); - $billingDetails->addChild('phone', $card->getBillingPhone()); - $billingDetails->addChild('email', $card->getEmail()); - - $shippingDetails = $sxml->addChild('shippingDetails'); - - $shippingDetails->addChild('firstName', $card->getShippingFirstName()); - $shippingDetails->addChild('lastName', $card->getShippingLastName()); - $shippingDetails->addChild('street', $card->getShippingAddress1()); - $shippingDetails->addChild('street2', $card->getShippingAddress2()); - $shippingDetails->addChild('city', $card->getShippingCity()); - $shippingDetails->addChild('state', $card->getShippingState()); - $shippingDetails->addChild('country', $card->getShippingCountry()); - $shippingDetails->addChild('zip', $card->getShippingPostcode()); - $shippingDetails->addChild('phone', $card->getShippingPhone()); - $shippingDetails->addChild('email', $card->getEmail()); - } - - return $sxml->asXML(); - } - - /** - * Get Stored Data Mode - * - * @return string - */ - protected function getStoredDataMode() - { - return self::MODE_STORED_DATA_AUTH; - } - - /** - * Get Stored Data Mode - * - * @return string - */ - protected function getBasicMode() - { - return self::MODE_AUTH; - } -} diff --git a/src/Omnipay/NetBanx/Message/CaptureRequest.php b/src/Omnipay/NetBanx/Message/CaptureRequest.php deleted file mode 100644 index ea4cc6aa..00000000 --- a/src/Omnipay/NetBanx/Message/CaptureRequest.php +++ /dev/null @@ -1,59 +0,0 @@ -validate('amount', 'transactionReference'); - - $data = $this->getBaseData(); - $data['txnRequest'] = $this->getXmlString(); - - return $data; - } - - /** - * Get XML string - * - * @return string - */ - protected function getXmlString() - { - $xml = ' - '; - - $sxml = new \SimpleXMLElement($xml); - - $merchantAccount = $sxml->addChild('merchantAccount'); - - $merchantAccount->addChild('accountNum', $this->getAccountNumber()); - $merchantAccount->addChild('storeID', $this->getStoreId()); - $merchantAccount->addChild('storePwd', $this->getStorePassword()); - - $sxml->addChild('confirmationNumber', $this->getTransactionReference()); - $sxml->addChild('merchantRefNum', $this->getCustomerId()); - $sxml->addChild('amount', $this->getAmount()); - - return $sxml->asXML(); - } -} diff --git a/src/Omnipay/NetBanx/Message/PurchaseRequest.php b/src/Omnipay/NetBanx/Message/PurchaseRequest.php deleted file mode 100644 index 32f6c4fa..00000000 --- a/src/Omnipay/NetBanx/Message/PurchaseRequest.php +++ /dev/null @@ -1,28 +0,0 @@ -request = $request; - - try { - $this->data = new \SimpleXMLElement($data); - } catch (\Exception $e) { - throw new InvalidResponseException(); - } - } - - /** - * Whether or not response is successful - * - * @return bool - */ - public function isSuccessful() - { - $decisionOk = Gateway::DECISION_ACCEPTED === (string) $this->data->decision; - $codeOk = Gateway::CODE_OK === (string) $this->data->code; - - return $decisionOk && $codeOk; - } - - /** - * Get transaction reference - * - * @return string - */ - public function getTransactionReference() - { - return (string) $this->data->confirmationNumber; - } - - /** - * Get card reference - * - * @return string - */ - public function getCardReference() - { - return (string) $this->data->confirmationNumber; - } - - /** - * Get message from responce - * - * @return string - */ - public function getMessage() - { - return (string) $this->data->description; - } -} diff --git a/src/Omnipay/NetBanx/Message/VoidRequest.php b/src/Omnipay/NetBanx/Message/VoidRequest.php deleted file mode 100644 index 593f3115..00000000 --- a/src/Omnipay/NetBanx/Message/VoidRequest.php +++ /dev/null @@ -1,60 +0,0 @@ -validate('transactionReference'); - - $data = $this->getBaseData(); - $data['txnRequest'] = $this->getXmlString(); - - return $data; - } - - /** - * Get XML string - * - * @return string - */ - protected function getXmlString() - { - - $xml = ' - '; - - $sxml = new \SimpleXMLElement($xml); - - $merchantAccount = $sxml->addChild('merchantAccount'); - - $merchantAccount->addChild('accountNum', $this->getAccountNumber()); - $merchantAccount->addChild('storeID', $this->getStoreId()); - $merchantAccount->addChild('storePwd', $this->getStorePassword()); - - $sxml->addChild('confirmationNumber', $this->getTransactionReference()); - $sxml->addChild('merchantRefNum', $this->getCustomerId()); - $sxml->addChild('reversalAmount', $this->getAmount()); - - return $sxml->asXML(); - } -} diff --git a/src/Omnipay/Netaxept/Gateway.php b/src/Omnipay/Netaxept/Gateway.php deleted file mode 100644 index 00fb0ba5..00000000 --- a/src/Omnipay/Netaxept/Gateway.php +++ /dev/null @@ -1,59 +0,0 @@ - '', - 'password' => '', - 'testMode' => false, - ); - } - - public function getMerchantId() - { - return $this->getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Netaxept\Message\PurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Netaxept\Message\CompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php b/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php deleted file mode 100644 index 150ac55c..00000000 --- a/src/Omnipay/Netaxept/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,39 +0,0 @@ -httpRequest->query->get('responseCode'); - $data['transactionId'] = $this->httpRequest->query->get('transactionId'); - $data['merchantId'] = $this->getMerchantId(); - $data['token'] = $this->getPassword(); - $data['operation'] = 'AUTH'; - - if (empty($data['responseCode']) || empty($data['transactionId'])) { - throw new InvalidResponseException; - } - - return $data; - } - - public function sendData($data) - { - if ('OK' !== $data['responseCode']) { - return $this->response = new ErrorResponse($this, $data); - } - - $url = $this->getEndpoint().'/Netaxept/Process.aspx?'; - $httpResponse = $this->httpClient->get($url.http_build_query($data))->send(); - - return $this->response = new Response($this, $httpResponse->xml()); - } -} diff --git a/src/Omnipay/Netaxept/Message/ErrorResponse.php b/src/Omnipay/Netaxept/Message/ErrorResponse.php deleted file mode 100644 index f895f862..00000000 --- a/src/Omnipay/Netaxept/Message/ErrorResponse.php +++ /dev/null @@ -1,26 +0,0 @@ -data['transactionId']; - } - - public function getMessage() - { - return $this->data['responseCode']; - } -} diff --git a/src/Omnipay/Netaxept/Message/PurchaseRequest.php b/src/Omnipay/Netaxept/Message/PurchaseRequest.php deleted file mode 100644 index 33a596e3..00000000 --- a/src/Omnipay/Netaxept/Message/PurchaseRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function getData() - { - $this->validate('amount', 'currency', 'transactionId', 'returnUrl'); - - $data = array(); - $data['merchantId'] = $this->getMerchantId(); - $data['token'] = $this->getPassword(); - $data['serviceType'] = 'B'; - $data['orderNumber'] = $this->getTransactionId(); - $data['currencyCode'] = $this->getCurrency(); - $data['amount'] = $this->getAmountInteger(); - $data['redirectUrl'] = $this->getReturnUrl(); - - if ($this->getCard()) { - $data['customerFirstName'] = $this->getCard()->getFirstName(); - $data['customerLastName'] = $this->getCard()->getLastName(); - $data['customerEmail'] = $this->getCard()->getEmail(); - $data['customerPhoneNumber'] = $this->getCard()->getPhone(); - $data['customerAddress1'] = $this->getCard()->getAddress1(); - $data['customerAddress2'] = $this->getCard()->getAddress2(); - $data['customerPostcode'] = $this->getCard()->getPostcode(); - $data['customerTown'] = $this->getCard()->getCity(); - $data['customerCountry'] = $this->getCard()->getCountry(); - } - - return $data; - } - - public function sendData($data) - { - $url = $this->getEndpoint().'/Netaxept/Register.aspx?'; - $httpResponse = $this->httpClient->get($url.http_build_query($data))->send(); - - return $this->response = new Response($this, $httpResponse->xml()); - } - - public function getEndpoint() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } -} diff --git a/src/Omnipay/Netaxept/Message/Response.php b/src/Omnipay/Netaxept/Message/Response.php deleted file mode 100644 index 0f32bc37..00000000 --- a/src/Omnipay/Netaxept/Message/Response.php +++ /dev/null @@ -1,58 +0,0 @@ -data->ResponseCode) && 'OK' === (string) $this->data->ResponseCode; - } - - public function isRedirect() - { - return !$this->isSuccessful() && 'RegisterResponse' === (string) $this->data->getName(); - } - - public function getTransactionReference() - { - return isset($this->data->TransactionId) ? (string) $this->data->TransactionId : null; - } - - public function getMessage() - { - if (isset($this->data->Error->Message)) { - return (string) $this->data->Error->Message; - } elseif (isset($this->data->ResponseCode)) { - return (string) $this->data->ResponseCode; - } - } - - public function getRedirectUrl() - { - if ($this->isRedirect()) { - $data = array( - 'merchantId' => $this->getRequest()->getMerchantId(), - 'transactionId' => $this->getTransactionReference(), - ); - - return $this->getRequest()->getEndpoint().'/Terminal/Default.aspx?'.http_build_query($data); - } - } - - public function getRedirectMethod() - { - return 'GET'; - } - - public function getRedirectData() - { - return null; - } -} diff --git a/src/Omnipay/PayFast/Gateway.php b/src/Omnipay/PayFast/Gateway.php deleted file mode 100644 index a54eac44..00000000 --- a/src/Omnipay/PayFast/Gateway.php +++ /dev/null @@ -1,70 +0,0 @@ - '', - 'merchantKey' => '', - 'pdtKey' => '', - 'testMode' => false, - ); - } - - public function getMerchantId() - { - return $this->getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getMerchantKey() - { - return $this->getParameter('merchantKey'); - } - - public function setMerchantKey($value) - { - return $this->setParameter('merchantKey', $value); - } - - public function getPdtKey() - { - return $this->getParameter('pdtKey'); - } - - public function setPdtKey($value) - { - return $this->setParameter('pdtKey', $value); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PayFast\Message\PurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PayFast\Message\CompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/PayFast/Message/CompletePurchaseItnResponse.php b/src/Omnipay/PayFast/Message/CompletePurchaseItnResponse.php deleted file mode 100644 index b097f583..00000000 --- a/src/Omnipay/PayFast/Message/CompletePurchaseItnResponse.php +++ /dev/null @@ -1,39 +0,0 @@ -status = $status; - } - - public function isSuccessful() - { - return 'VALID' === $this->status; - } - - public function getTransactionReference() - { - if ($this->isSuccessful() && isset($this->data['pf_payment_id'])) { - return $this->data['pf_payment_id']; - } - } - - public function getMessage() - { - if ($this->isSuccessful() && isset($this->data['payment_status'])) { - return $this->data['payment_status']; - } else { - return $this->status; - } - } -} diff --git a/src/Omnipay/PayFast/Message/CompletePurchasePdtResponse.php b/src/Omnipay/PayFast/Message/CompletePurchasePdtResponse.php deleted file mode 100644 index 317a188f..00000000 --- a/src/Omnipay/PayFast/Message/CompletePurchasePdtResponse.php +++ /dev/null @@ -1,39 +0,0 @@ -request = $request; - $this->data = array(); - - // parse ridiculous response format - $lines = explode('\n', $data); - $this->status = $lines[0]; - - foreach ($lines as $line) { - $parts = explode('=', $line, 2); - $this->data[$parts[0]] = isset($parts[1]) ? urldecode($parts[1]) : null; - } - } - - public function isSuccessful() - { - return 'SUCCESS' === $this->status; - } - - public function getMessage() - { - return $this->isSuccessful() ? $this->data['payment_status'] : $this->status; - } -} diff --git a/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php b/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php deleted file mode 100644 index 0b695c0b..00000000 --- a/src/Omnipay/PayFast/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,55 +0,0 @@ -httpRequest->query->get('pt')) { - // this is a Payment Data Transfer request - $data = array(); - $data['pt'] = $this->httpRequest->query->get('pt'); - $data['at'] = $this->getPdtKey(); - - return $data; - } elseif ($signature = $this->httpRequest->request->get('signature')) { - // this is an Instant Transaction Notification request - $data = $this->httpRequest->request->all(); - - // signature is completely useless since it has no shared secret - // signature must not be posted back to the validate URL, so we unset it - unset($data['signature']); - - return $data; - } - - throw new InvalidRequestException('Missing PDT or ITN variables'); - } - - public function sendData($data) - { - if (isset($data['pt'])) { - // validate PDT - $url = $this->getEndpoint().'/query/fetch'; - $httpResponse = $this->httpClient->post($url, null, $data)->send(); - - return $this->response = new CompletePurchasePdtResponse($this, $httpResponse->getBody(true)); - } else { - // validate ITN - $url = $this->getEndpoint().'/query/validate'; - $httpResponse = $this->httpClient->post($url, null, $data)->send(); - $status = $httpResponse->getBody(true); - - return $this->response = new CompletePurchaseItnResponse($this, $data, $status); - } - } -} diff --git a/src/Omnipay/PayFast/Message/PurchaseRequest.php b/src/Omnipay/PayFast/Message/PurchaseRequest.php deleted file mode 100644 index e22524dd..00000000 --- a/src/Omnipay/PayFast/Message/PurchaseRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getMerchantKey() - { - return $this->getParameter('merchantKey'); - } - - public function setMerchantKey($value) - { - return $this->setParameter('merchantKey', $value); - } - - public function getPdtKey() - { - return $this->getParameter('pdtKey'); - } - - public function setPdtKey($value) - { - return $this->setParameter('pdtKey', $value); - } - - public function getData() - { - $this->validate('amount', 'description'); - - $data = array(); - $data['merchant_id'] = $this->getMerchantId(); - $data['merchant_key'] = $this->getMerchantKey(); - $data['return_url'] = $this->getReturnUrl(); - $data['cancel_url'] = $this->getCancelUrl(); - $data['notify_url'] = $this->getReturnUrl(); - - if ($this->getCard()) { - $data['name_first'] = $this->getCard()->getFirstName(); - $data['name_last'] = $this->getCard()->getLastName(); - $data['email_address'] = $this->getCard()->getEmail(); - } - - $data['m_payment_id'] = $this->getTransactionId(); - $data['amount'] = $this->getAmount(); - $data['item_name'] = $this->getDescription(); - - $data['signature'] = $this->generateSignature($data); - - return $data; - } - - protected function generateSignature($data) - { - $fields = array(); - - // specific order required by PayFast - foreach (array('merchant_id', 'merchant_key', 'return_url', 'cancel_url', 'notify_url', - 'name_first', 'name_last', 'email_address', 'm_payment_id', 'amount', 'item_name', - 'item_description', 'email_confirmation', 'confirmation_address') as $key) { - if (!empty($data[$key])) { - $fields[$key] = $data[$key]; - } - } - - return md5(http_build_query($fields)); - } - - public function sendData($data) - { - return $this->response = new PurchaseResponse($this, $data, $this->getEndpoint().'/process'); - } - - public function getEndpoint() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } -} diff --git a/src/Omnipay/PayFast/Message/PurchaseResponse.php b/src/Omnipay/PayFast/Message/PurchaseResponse.php deleted file mode 100644 index 3b0609d4..00000000 --- a/src/Omnipay/PayFast/Message/PurchaseResponse.php +++ /dev/null @@ -1,46 +0,0 @@ -redirectUrl = $redirectUrl; - } - - public function isSuccessful() - { - return false; - } - - public function isRedirect() - { - return true; - } - - public function getRedirectUrl() - { - return $this->redirectUrl; - } - - public function getRedirectMethod() - { - return 'POST'; - } - - public function getRedirectData() - { - return $this->getData(); - } -} diff --git a/src/Omnipay/PayPal/ExpressGateway.php b/src/Omnipay/PayPal/ExpressGateway.php deleted file mode 100644 index 6de6f7ae..00000000 --- a/src/Omnipay/PayPal/ExpressGateway.php +++ /dev/null @@ -1,87 +0,0 @@ -getParameter('solutionType'); - } - - public function setSolutionType($value) - { - return $this->setParameter('solutionType', $value); - } - - public function getLandingPage() - { - return $this->getParameter('landingPage'); - } - - public function setLandingPage($value) - { - return $this->setParameter('landingPage', $value); - } - - public function getHeaderImageUrl() - { - return $this->getParameter('headerImageUrl'); - } - - /** - * Header Image URL (Optional) - * - * URL for the image you want to appear at the top left of the payment page. - * The image has a maximum size of 750 pixels wide by 90 pixels high. - * PayPal recommends that you provide an image that is stored on a secure (https) server. - * If you do not specify an image, the business name displays. - * Character length and limitations: 127 single-byte alphanumeric characters - */ - public function setHeaderImageUrl($value) - { - return $this->setParameter('headerImageUrl', $value); - } - - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PayPal\Message\ExpressAuthorizeRequest', $parameters); - } - - public function completeAuthorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PayPal\Message\ExpressCompleteAuthorizeRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->authorize($parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PayPal\Message\ExpressCompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/PayPal/Message/AbstractRequest.php b/src/Omnipay/PayPal/Message/AbstractRequest.php deleted file mode 100644 index 94ac2f93..00000000 --- a/src/Omnipay/PayPal/Message/AbstractRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -getParameter('username'); - } - - public function setUsername($value) - { - return $this->setParameter('username', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function getSignature() - { - return $this->getParameter('signature'); - } - - public function setSignature($value) - { - return $this->setParameter('signature', $value); - } - - public function getSubject() - { - return $this->getParameter('subject'); - } - - public function setSubject($value) - { - return $this->setParameter('subject', $value); - } - - public function getSolutionType() - { - return $this->getParameter('solutionType'); - } - - public function setSolutionType($value) - { - return $this->setParameter('solutionType', $value); - } - - public function getLandingPage() - { - return $this->getParameter('landingPage'); - } - - public function setLandingPage($value) - { - return $this->setParameter('landingPage', $value); - } - - public function getHeaderImageUrl() - { - return $this->getParameter('headerImageUrl'); - } - - public function setHeaderImageUrl($value) - { - return $this->setParameter('headerImageUrl', $value); - } - - public function getNoShipping() - { - return $this->getParameter('noShipping'); - } - - public function setNoShipping($value) - { - return $this->setParameter('noShipping', $value); - } - - public function getAllowNote() - { - return $this->getParameter('allowNote'); - } - - public function setAllowNote($value) - { - return $this->setParameter('allowNote', $value); - } - - protected function getBaseData($method) - { - $data = array(); - $data['METHOD'] = $method; - $data['VERSION'] = static::API_VERSION; - $data['USER'] = $this->getUsername(); - $data['PWD'] = $this->getPassword(); - $data['SIGNATURE'] = $this->getSignature(); - $data['SUBJECT'] = $this->getSubject(); - - return $data; - } - - public function sendData($data) - { - $url = $this->getEndpoint().'?'.http_build_query($data); - $httpResponse = $this->httpClient->get($url)->send(); - - return $this->createResponse($httpResponse->getBody()); - } - - protected function getEndpoint() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } - - protected function createResponse($data) - { - return $this->response = new Response($this, $data); - } -} diff --git a/src/Omnipay/PayPal/Message/CaptureRequest.php b/src/Omnipay/PayPal/Message/CaptureRequest.php deleted file mode 100644 index a18889cb..00000000 --- a/src/Omnipay/PayPal/Message/CaptureRequest.php +++ /dev/null @@ -1,23 +0,0 @@ -getBaseData('DoCapture'); - - $this->validate('transactionReference', 'amount'); - - $data['AMT'] = $this->getAmount(); - $data['CURRENCYCODE'] = $this->getCurrency(); - $data['AUTHORIZATIONID'] = $this->getTransactionReference(); - $data['COMPLETETYPE'] = 'Complete'; - - return $data; - } -} diff --git a/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php b/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php deleted file mode 100644 index 48607d8a..00000000 --- a/src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php +++ /dev/null @@ -1,70 +0,0 @@ -getBaseData('SetExpressCheckout'); - - $this->validate('amount', 'returnUrl', 'cancelUrl'); - - $data['PAYMENTREQUEST_0_PAYMENTACTION'] = 'Authorization'; - $data['PAYMENTREQUEST_0_AMT'] = $this->getAmount(); - $data['PAYMENTREQUEST_0_CURRENCYCODE'] = $this->getCurrency(); - $data['PAYMENTREQUEST_0_INVNUM'] = $this->getTransactionId(); - $data['PAYMENTREQUEST_0_DESC'] = $this->getDescription(); - $data['PAYMENTREQUEST_0_NOTIFYURL'] = $this->getNotifyUrl(); - - // pp express specific fields - $data['SOLUTIONTYPE'] = $this->getSolutionType(); - $data['LANDINGPAGE'] = $this->getLandingPage(); - $data['RETURNURL'] = $this->getReturnUrl(); - $data['CANCELURL'] = $this->getCancelUrl(); - - if ($headerImageUrl = $this->getHeaderImageUrl()) { - $data['HDRIMG'] = $headerImageUrl; - } - - if (null !== ($noShipping = $this->getNoShipping())) { - $data['NOSHIPPING'] = $noShipping; - } - - if (null !== ($allowNote = $this->getAllowNote())) { - $data['ALLOWNOTE'] = $allowNote; - } - - if ($card = $this->getCard()) { - $data['PAYMENTREQUEST_0_SHIPTONAME'] = $card->getName(); - $data['PAYMENTREQUEST_0_SHIPTOSTREET'] = $card->getAddress1(); - $data['PAYMENTREQUEST_0_SHIPTOSTREET2'] = $card->getAddress2(); - $data['PAYMENTREQUEST_0_SHIPTOCITY'] = $card->getCity(); - $data['PAYMENTREQUEST_0_SHIPTOSTATE'] = $card->getState(); - $data['PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE'] = $card->getCountry(); - $data['PAYMENTREQUEST_0_SHIPTOZIP'] = $card->getPostcode(); - $data['PAYMENTREQUEST_0_SHIPTOPHONENUM'] = $card->getPhone(); - $data['EMAIL'] = $card->getEmail(); - } - - $items = $this->getItems(); - if ($items) { - foreach ($items as $n => $item) { - $data["L_PAYMENTREQUEST_0_NAME$n"] = $item->getName(); - $data["L_PAYMENTREQUEST_0_DESC$n"] = $item->getDescription(); - $data["L_PAYMENTREQUEST_0_QTY$n"] = $item->getQuantity(); - $data["L_PAYMENTREQUEST_0_AMT$n"] = $this->formatCurrency($item->getPrice()); - } - } - - return $data; - } - - protected function createResponse($data) - { - return $this->response = new ExpressAuthorizeResponse($this, $data); - } -} diff --git a/src/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php b/src/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php deleted file mode 100644 index d85ade3d..00000000 --- a/src/Omnipay/PayPal/Message/ExpressAuthorizeResponse.php +++ /dev/null @@ -1,55 +0,0 @@ -data['ACK']) && in_array($this->data['ACK'], array('Success', 'SuccessWithWarning')); - } - - public function getRedirectUrl() - { - return $this->getCheckoutEndpoint().'?'.http_build_query( - array( - 'cmd' => '_express-checkout', - 'useraction' => 'commit', - 'token' => $this->getTransactionReference(), - ) - ); - } - - public function getTransactionReference() - { - return isset($this->data['TOKEN']) ? $this->data['TOKEN'] : null; - } - - public function getRedirectMethod() - { - return 'GET'; - } - - public function getRedirectData() - { - return null; - } - - protected function getCheckoutEndpoint() - { - return $this->getRequest()->getTestMode() ? $this->testCheckoutEndpoint : $this->liveCheckoutEndpoint; - } -} diff --git a/src/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequest.php b/src/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequest.php deleted file mode 100644 index 2cd08da6..00000000 --- a/src/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequest.php +++ /dev/null @@ -1,29 +0,0 @@ -getBaseData('DoExpressCheckoutPayment'); - - $this->validate('amount'); - - $data['PAYMENTREQUEST_0_PAYMENTACTION'] = $this->action; - $data['PAYMENTREQUEST_0_AMT'] = $this->getAmount(); - $data['PAYMENTREQUEST_0_CURRENCYCODE'] = $this->getCurrency(); - $data['PAYMENTREQUEST_0_INVNUM'] = $this->getTransactionId(); - $data['PAYMENTREQUEST_0_DESC'] = $this->getDescription(); - - $data['TOKEN'] = $this->httpRequest->query->get('token'); - $data['PAYERID'] = $this->httpRequest->query->get('PayerID'); - - return $data; - } -} diff --git a/src/Omnipay/PayPal/Message/ExpressCompletePurchaseRequest.php b/src/Omnipay/PayPal/Message/ExpressCompletePurchaseRequest.php deleted file mode 100644 index 91fec992..00000000 --- a/src/Omnipay/PayPal/Message/ExpressCompletePurchaseRequest.php +++ /dev/null @@ -1,11 +0,0 @@ -getBaseData('DoDirectPayment'); - - $this->validate('amount', 'card'); - $this->getCard()->validate(); - - $data['PAYMENTACTION'] = $this->action; - $data['AMT'] = $this->getAmount(); - $data['CURRENCYCODE'] = $this->getCurrency(); - $data['INVNUM'] = $this->getTransactionId(); - $data['DESC'] = $this->getDescription(); - - // add credit card details - $data['ACCT'] = $this->getCard()->getNumber(); - $data['CREDITCARDTYPE'] = $this->getCard()->getBrand(); - $data['EXPDATE'] = $this->getCard()->getExpiryMonth().$this->getCard()->getExpiryYear(); - $data['STARTDATE'] = $this->getCard()->getStartMonth().$this->getCard()->getStartYear(); - $data['CVV2'] = $this->getCard()->getCvv(); - $data['ISSUENUMBER'] = $this->getCard()->getIssueNumber(); - $data['IPADDRESS'] = $this->getClientIp(); - $data['FIRSTNAME'] = $this->getCard()->getFirstName(); - $data['LASTNAME'] = $this->getCard()->getLastName(); - $data['EMAIL'] = $this->getCard()->getEmail(); - $data['STREET'] = $this->getCard()->getAddress1(); - $data['STREET2'] = $this->getCard()->getAddress2(); - $data['CITY'] = $this->getCard()->getCity(); - $data['STATE'] = $this->getCard()->getState(); - $data['ZIP'] = $this->getCard()->getPostcode(); - $data['COUNTRYCODE'] = strtoupper($this->getCard()->getCountry()); - - return $data; - } -} diff --git a/src/Omnipay/PayPal/Message/ProPurchaseRequest.php b/src/Omnipay/PayPal/Message/ProPurchaseRequest.php deleted file mode 100644 index 715f152d..00000000 --- a/src/Omnipay/PayPal/Message/ProPurchaseRequest.php +++ /dev/null @@ -1,11 +0,0 @@ -getBaseData('RefundTransaction'); - - $this->validate('transactionReference'); - - $data['TRANSACTIONID'] = $this->getTransactionReference(); - $data['REFUNDTYPE'] = 'Full'; - if ($this->getAmount() > 0) { - $data['REFUNDTYPE'] = 'Partial'; - $data['AMT'] = $this->getAmount(); - $data['CURRENCYCODE'] = $this->getCurrency(); - } - - return $data; - } -} diff --git a/src/Omnipay/PayPal/Message/Response.php b/src/Omnipay/PayPal/Message/Response.php deleted file mode 100644 index da5fdcc3..00000000 --- a/src/Omnipay/PayPal/Message/Response.php +++ /dev/null @@ -1,37 +0,0 @@ -request = $request; - parse_str($data, $this->data); - } - - public function isSuccessful() - { - return isset($this->data['ACK']) && in_array($this->data['ACK'], array('Success', 'SuccessWithWarning')); - } - - public function getTransactionReference() - { - foreach (array('REFUNDTRANSACTIONID', 'TRANSACTIONID', 'PAYMENTINFO_0_TRANSACTIONID') as $key) { - if (isset($this->data[$key])) { - return $this->data[$key]; - } - } - } - - public function getMessage() - { - return isset($this->data['L_LONGMESSAGE0']) ? $this->data['L_LONGMESSAGE0'] : null; - } -} diff --git a/src/Omnipay/PayPal/ProGateway.php b/src/Omnipay/PayPal/ProGateway.php deleted file mode 100644 index 2accee74..00000000 --- a/src/Omnipay/PayPal/ProGateway.php +++ /dev/null @@ -1,79 +0,0 @@ - '', - 'password' => '', - 'signature' => '', - 'testMode' => false, - ); - } - - public function getUsername() - { - return $this->getParameter('username'); - } - - public function setUsername($value) - { - return $this->setParameter('username', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function getSignature() - { - return $this->getParameter('signature'); - } - - public function setSignature($value) - { - return $this->setParameter('signature', $value); - } - - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PayPal\Message\ProAuthorizeRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PayPal\Message\ProPurchaseRequest', $parameters); - } - - public function capture(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PayPal\Message\CaptureRequest', $parameters); - } - - public function refund(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PayPal\Message\RefundRequest', $parameters); - } -} diff --git a/src/Omnipay/Payflow/Message/AuthorizeRequest.php b/src/Omnipay/Payflow/Message/AuthorizeRequest.php deleted file mode 100644 index 519d7d27..00000000 --- a/src/Omnipay/Payflow/Message/AuthorizeRequest.php +++ /dev/null @@ -1,103 +0,0 @@ -getParameter('username'); - } - - public function setUsername($value) - { - return $this->setParameter('username', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function getVendor() - { - return $this->getParameter('vendor'); - } - - public function setVendor($value) - { - return $this->setParameter('vendor', $value); - } - - public function getPartner() - { - return $this->getParameter('partner'); - } - - public function setPartner($value) - { - return $this->setParameter('partner', $value); - } - - protected function getBaseData() - { - $data = array(); - $data['TRXTYPE'] = $this->action; - $data['USER'] = $this->getUsername(); - $data['PWD'] = $this->getPassword(); - $data['VENDOR'] = $this->getVendor(); - $data['PARTNER'] = $this->getPartner(); - - return $data; - } - - public function getData() - { - $this->validate('amount', 'card'); - $this->getCard()->validate(); - - $data = $this->getBaseData(); - $data['TENDER'] = 'C'; - $data['AMT'] = $this->getAmount(); - $data['COMMENT1'] = $this->getDescription(); - - $data['ACCT'] = $this->getCard()->getNumber(); - $data['EXPDATE'] = $this->getCard()->getExpiryDate('my'); - $data['CVV2'] = $this->getCard()->getCvv(); - $data['BILLTOFIRSTNAME'] = $this->getCard()->getFirstName(); - $data['BILLTOLASTNAME'] = $this->getCard()->getLastName(); - $data['BILLTOSTREET'] = $this->getCard()->getAddress1(); - $data['BILLTOCITY'] = $this->getCard()->getCity(); - $data['BILLTOSTATE'] = $this->getCard()->getState(); - $data['BILLTOZIP'] = $this->getCard()->getPostcode(); - $data['BILLTOCOUNTRY'] = $this->getCard()->getCountry(); - - return $data; - } - - public function sendData($data) - { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); - - return $this->response = new Response($this, $httpResponse->getBody()); - } - - protected function getEndpoint() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } -} diff --git a/src/Omnipay/Payflow/Message/CaptureRequest.php b/src/Omnipay/Payflow/Message/CaptureRequest.php deleted file mode 100644 index 79939c33..00000000 --- a/src/Omnipay/Payflow/Message/CaptureRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -validate('transactionReference', 'amount'); - - $data = $this->getBaseData(); - $data['AMT'] = $this->getAmount(); - $data['ORIGID'] = $this->getTransactionReference(); - - return $data; - } -} diff --git a/src/Omnipay/Payflow/Message/PurchaseRequest.php b/src/Omnipay/Payflow/Message/PurchaseRequest.php deleted file mode 100644 index 70c30573..00000000 --- a/src/Omnipay/Payflow/Message/PurchaseRequest.php +++ /dev/null @@ -1,11 +0,0 @@ -request = $request; - - if (empty($data)) { - throw new InvalidResponseException; - } - - parse_str($data, $this->data); - } - - public function isSuccessful() - { - return isset($this->data['RESULT']) && '0' === $this->data['RESULT']; - } - - public function getTransactionReference() - { - return isset($this->data['PNREF']) ? $this->data['PNREF'] : null; - } - - public function getMessage() - { - return isset($this->data['RESPMSG']) ? $this->data['RESPMSG'] : null; - } -} diff --git a/src/Omnipay/Payflow/ProGateway.php b/src/Omnipay/Payflow/ProGateway.php deleted file mode 100644 index 8feada12..00000000 --- a/src/Omnipay/Payflow/ProGateway.php +++ /dev/null @@ -1,93 +0,0 @@ - '', - 'password' => '', - 'vendor' => '', - 'partner' => '', - 'testMode' => false, - ); - } - - public function getUsername() - { - return $this->getParameter('username'); - } - - public function setUsername($value) - { - return $this->setParameter('username', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function getVendor() - { - return $this->getParameter('vendor'); - } - - public function setVendor($value) - { - return $this->setParameter('vendor', $value); - } - - public function getPartner() - { - return $this->getParameter('partner'); - } - - public function setPartner($value) - { - return $this->setParameter('partner', $value); - } - - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Payflow\Message\AuthorizeRequest', $parameters); - } - - public function capture(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Payflow\Message\CaptureRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Payflow\Message\PurchaseRequest', $parameters); - } - - public function refund(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Payflow\Message\RefundRequest', $parameters); - } -} diff --git a/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php b/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php deleted file mode 100644 index afa7b2ef..00000000 --- a/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeRequest.php +++ /dev/null @@ -1,64 +0,0 @@ -getParameter('username'); - } - - public function setUsername($value) - { - return $this->setParameter('username', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function getData() - { - $this->validate('amount', 'returnUrl'); - - $data = new SimpleXMLElement(''); - $data->PxPayUserId = $this->getUsername(); - $data->PxPayKey = $this->getPassword(); - $data->TxnType = $this->action; - $data->AmountInput = $this->getAmount(); - $data->CurrencyInput = $this->getCurrency(); - $data->MerchantReference = $this->getDescription(); - $data->UrlSuccess = $this->getReturnUrl(); - $data->UrlFail = $this->getReturnUrl(); - - return $data; - } - - public function sendData($data) - { - $httpResponse = $this->httpClient->post($this->endpoint, null, $data->asXML())->send(); - - return $this->createResponse($httpResponse->xml()); - } - - protected function createResponse($data) - { - return $this->response = new PxPayAuthorizeResponse($this, $data); - } -} diff --git a/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponse.php b/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponse.php deleted file mode 100644 index ba644860..00000000 --- a/src/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponse.php +++ /dev/null @@ -1,51 +0,0 @@ -data['valid']; - } - - public function getTransactionReference() - { - return null; - } - - public function getMessage() - { - if (!$this->isRedirect()) { - return (string) $this->data->URI; - } - } - - public function getRedirectUrl() - { - if ($this->isRedirect()) { - return (string) $this->data->URI; - } - } - - public function getRedirectMethod() - { - return 'GET'; - } - - public function getRedirectData() - { - return null; - } -} diff --git a/src/Omnipay/PaymentExpress/Message/PxPayCompleteAuthorizeRequest.php b/src/Omnipay/PaymentExpress/Message/PxPayCompleteAuthorizeRequest.php deleted file mode 100644 index c11b3fea..00000000 --- a/src/Omnipay/PaymentExpress/Message/PxPayCompleteAuthorizeRequest.php +++ /dev/null @@ -1,33 +0,0 @@ -httpRequest->query->get('result'); - if (empty($result)) { - throw new InvalidResponseException; - } - - // validate dps response - $data = new SimpleXMLElement(''); - $data->PxPayUserId = $this->getUsername(); - $data->PxPayKey = $this->getPassword(); - $data->Response = $result; - - return $data; - } - - protected function createResponse($data) - { - return $this->response = new Response($this, $data); - } -} diff --git a/src/Omnipay/PaymentExpress/Message/PxPayPurchaseRequest.php b/src/Omnipay/PaymentExpress/Message/PxPayPurchaseRequest.php deleted file mode 100644 index f0d47f51..00000000 --- a/src/Omnipay/PaymentExpress/Message/PxPayPurchaseRequest.php +++ /dev/null @@ -1,11 +0,0 @@ -getParameter('username'); - } - - public function setUsername($value) - { - return $this->setParameter('username', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - protected function getBaseData() - { - $data = new \SimpleXMLElement(''); - $data->PostUsername = $this->getUsername(); - $data->PostPassword = $this->getPassword(); - $data->TxnType = $this->action; - - return $data; - } - - public function getData() - { - $this->validate('amount'); - - $data = $this->getBaseData(); - $data->InputCurrency = $this->getCurrency(); - $data->Amount = $this->getAmount(); - $data->MerchantReference = $this->getDescription(); - - if ($this->getCardReference()) { - $data->DpsBillingId = $this->getCardReference(); - } elseif ($this->getCard()) { - $this->getCard()->validate(); - $data->CardNumber = $this->getCard()->getNumber(); - $data->CardHolderName = $this->getCard()->getName(); - $data->DateExpiry = $this->getCard()->getExpiryDate('my'); - $data->Cvc2 = $this->getCard()->getCvv(); - } else { - // either cardReference or card is required - $this->validate('card'); - } - - return $data; - } - - public function sendData($data) - { - $httpResponse = $this->httpClient->post($this->endpoint, null, $data->asXML())->send(); - - return $this->response = new Response($this, $httpResponse->xml()); - } -} diff --git a/src/Omnipay/PaymentExpress/Message/PxPostCaptureRequest.php b/src/Omnipay/PaymentExpress/Message/PxPostCaptureRequest.php deleted file mode 100644 index 015ab23b..00000000 --- a/src/Omnipay/PaymentExpress/Message/PxPostCaptureRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -validate('transactionReference', 'amount'); - - $data = $this->getBaseData(); - $data->DpsTxnRef = $this->getTransactionReference(); - $data->Amount = $this->getAmount(); - - return $data; - } -} diff --git a/src/Omnipay/PaymentExpress/Message/PxPostCreateCardRequest.php b/src/Omnipay/PaymentExpress/Message/PxPostCreateCardRequest.php deleted file mode 100644 index 3a9bebac..00000000 --- a/src/Omnipay/PaymentExpress/Message/PxPostCreateCardRequest.php +++ /dev/null @@ -1,25 +0,0 @@ -validate('card'); - $this->getCard()->validate(); - - $data = $this->getBaseData(); - $data->Amount = '1.00'; - $data->EnableAddBillCard = 1; - $data->CardNumber = $this->getCard()->getNumber(); - $data->CardHolderName = $this->getCard()->getName(); - $data->DateExpiry = $this->getCard()->getExpiryDate('my'); - $data->Cvc2 = $this->getCard()->getCvv(); - - return $data; - } -} diff --git a/src/Omnipay/PaymentExpress/Message/PxPostPurchaseRequest.php b/src/Omnipay/PaymentExpress/Message/PxPostPurchaseRequest.php deleted file mode 100644 index cb22bfbf..00000000 --- a/src/Omnipay/PaymentExpress/Message/PxPostPurchaseRequest.php +++ /dev/null @@ -1,11 +0,0 @@ -data->Success; - } - - public function getTransactionReference() - { - return empty($this->data->DpsTxnRef) ? null : (string) $this->data->DpsTxnRef; - } - - public function getCardReference() - { - return empty($this->data->Transaction->DpsBillingId) - ? null - : (string) $this->data->Transaction->DpsBillingId; - } - - public function getMessage() - { - if (isset($this->data->HelpText)) { - return (string) $this->data->HelpText; - } else { - return (string) $this->data->ResponseText; - } - } -} diff --git a/src/Omnipay/PaymentExpress/PxPayGateway.php b/src/Omnipay/PaymentExpress/PxPayGateway.php deleted file mode 100644 index a2a721ab..00000000 --- a/src/Omnipay/PaymentExpress/PxPayGateway.php +++ /dev/null @@ -1,67 +0,0 @@ - '', - 'password' => '', - ); - } - - public function getUsername() - { - return $this->getParameter('username'); - } - - public function setUsername($value) - { - return $this->setParameter('username', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PaymentExpress\Message\PxPayAuthorizeRequest', $parameters); - } - - public function completeAuthorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PaymentExpress\Message\PxPayCompleteAuthorizeRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PaymentExpress\Message\PxPayPurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->completeAuthorize($parameters); - } -} diff --git a/src/Omnipay/PaymentExpress/PxPostGateway.php b/src/Omnipay/PaymentExpress/PxPostGateway.php deleted file mode 100644 index d9419dff..00000000 --- a/src/Omnipay/PaymentExpress/PxPostGateway.php +++ /dev/null @@ -1,73 +0,0 @@ - '', - 'password' => '', - ); - } - - public function getUsername() - { - return $this->getParameter('username'); - } - - public function setUsername($value) - { - return $this->setParameter('username', $value); - } - - public function getPassword() - { - return $this->getParameter('password'); - } - - public function setPassword($value) - { - return $this->setParameter('password', $value); - } - - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PaymentExpress\Message\PxPostAuthorizeRequest', $parameters); - } - - public function capture(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PaymentExpress\Message\PxPostCaptureRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PaymentExpress\Message\PxPostPurchaseRequest', $parameters); - } - - public function refund(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PaymentExpress\Message\PxPostRefundRequest', $parameters); - } - - public function createCard(array $parameters = array()) - { - return $this->createRequest('\Omnipay\PaymentExpress\Message\PxPostCreateCardRequest', $parameters); - } -} diff --git a/src/Omnipay/Pin/Gateway.php b/src/Omnipay/Pin/Gateway.php deleted file mode 100644 index 4c01c346..00000000 --- a/src/Omnipay/Pin/Gateway.php +++ /dev/null @@ -1,42 +0,0 @@ - '', - 'testMode' => false, - ); - } - - public function getSecretKey() - { - return $this->getParameter('secretKey'); - } - - public function setSecretKey($value) - { - return $this->setParameter('secretKey', $value); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Pin\Message\PurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/Pin/Message/PurchaseRequest.php b/src/Omnipay/Pin/Message/PurchaseRequest.php deleted file mode 100644 index 119b5bc8..00000000 --- a/src/Omnipay/Pin/Message/PurchaseRequest.php +++ /dev/null @@ -1,80 +0,0 @@ -getParameter('secretKey'); - } - - public function setSecretKey($value) - { - return $this->setParameter('secretKey', $value); - } - - public function getData() - { - $this->validate('amount', 'card'); - - $data = array(); - $data['amount'] = $this->getAmountInteger(); - $data['currency'] = strtolower($this->getCurrency()); - $data['description'] = $this->getDescription(); - $data['ip_address'] = $this->getClientIp(); - $data['email'] = $this->getCard()->getEmail(); - - if ($this->getToken()) { - $data['card_token'] = $this->getToken(); - } else { - $this->getCard()->validate(); - - $data['card']['number'] = $this->getCard()->getNumber(); - $data['card']['expiry_month'] = $this->getCard()->getExpiryMonth(); - $data['card']['expiry_year'] = $this->getCard()->getExpiryYear(); - $data['card']['cvc'] = $this->getCard()->getCvv(); - $data['card']['name'] = $this->getCard()->getName(); - $data['card']['address_line1'] = $this->getCard()->getAddress1(); - $data['card']['address_line2'] = $this->getCard()->getAddress2(); - $data['card']['address_city'] = $this->getCard()->getCity(); - $data['card']['address_postcode'] = $this->getCard()->getPostcode(); - $data['card']['address_state'] = $this->getCard()->getState(); - $data['card']['address_country'] = $this->getCard()->getCountry(); - } - - return $data; - } - - public function sendData($data) - { - // don't throw exceptions for 4xx errors - $this->httpClient->getEventDispatcher()->addListener( - 'request.error', - function ($event) { - if ($event['response']->isClientError()) { - $event->stopPropagation(); - } - } - ); - - $httpResponse = $this->httpClient->post($this->getEndpoint().'/charges', null, $data) - ->setHeader('Authorization', 'Basic '.base64_encode($this->getSecretKey().':')) - ->send(); - - return $this->response = new Response($this, $httpResponse->json()); - } - - public function getEndpoint() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } -} diff --git a/src/Omnipay/Pin/Message/Response.php b/src/Omnipay/Pin/Message/Response.php deleted file mode 100644 index 09f77e55..00000000 --- a/src/Omnipay/Pin/Message/Response.php +++ /dev/null @@ -1,32 +0,0 @@ -data['error']); - } - - public function getTransactionReference() - { - if (isset($this->data['response']['token'])) { - return $this->data['response']['token']; - } - } - - public function getMessage() - { - if ($this->isSuccessful()) { - return $this->data['response']['status_message']; - } else { - return $this->data['error_description']; - } - } -} diff --git a/src/Omnipay/SagePay/DirectGateway.php b/src/Omnipay/SagePay/DirectGateway.php deleted file mode 100644 index 0d3401b3..00000000 --- a/src/Omnipay/SagePay/DirectGateway.php +++ /dev/null @@ -1,79 +0,0 @@ - '', - 'testMode' => false, - 'simulatorMode' => false, - ); - } - - public function getVendor() - { - return $this->getParameter('vendor'); - } - - public function setVendor($value) - { - return $this->setParameter('vendor', $value); - } - - public function getSimulatorMode() - { - return $this->getParameter('simulatorMode'); - } - - public function setSimulatorMode($value) - { - return $this->setParameter('simulatorMode', $value); - } - - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SagePay\Message\DirectAuthorizeRequest', $parameters); - } - - public function completeAuthorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SagePay\Message\DirectCompleteAuthorizeRequest', $parameters); - } - - public function capture(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SagePay\Message\CaptureRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SagePay\Message\DirectPurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->completeAuthorize($parameters); - } - - public function refund(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SagePay\Message\RefundRequest', $parameters); - } -} diff --git a/src/Omnipay/SagePay/Message/AbstractRequest.php b/src/Omnipay/SagePay/Message/AbstractRequest.php deleted file mode 100644 index cf6c2d26..00000000 --- a/src/Omnipay/SagePay/Message/AbstractRequest.php +++ /dev/null @@ -1,84 +0,0 @@ -getParameter('vendor'); - } - - public function setVendor($value) - { - return $this->setParameter('vendor', $value); - } - - public function getSimulatorMode() - { - return $this->getParameter('simulatorMode'); - } - - public function setSimulatorMode($value) - { - return $this->setParameter('simulatorMode', $value); - } - - public function getService() - { - return $this->action; - } - - protected function getBaseData() - { - $data = array(); - $data['VPSProtocol'] = '2.23'; - $data['TxType'] = $this->action; - $data['Vendor'] = $this->getVendor(); - - return $data; - } - - public function sendData($data) - { - $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); - - return $this->createResponse($httpResponse->getBody()); - } - - public function getEndpoint() - { - $service = strtolower($this->getService()); - - if ($this->getSimulatorMode()) { - // hooray for consistency - if ($service == 'vspdirect-register') { - return $this->simulatorEndpoint.'/VSPDirectGateway.asp'; - } elseif ($service == 'vspserver-register') { - return $this->simulatorEndpoint.'/VSPServerGateway.asp?Service=VendorRegisterTx'; - } elseif ($service == 'direct3dcallback') { - return $this->simulatorEndpoint.'/VSPDirectCallback.asp'; - } - - return $this->simulatorEndpoint.'/VSPServerGateway.asp?Service=Vendor'.ucfirst($service).'Tx'; - } - - if ($this->getTestMode()) { - return $this->testEndpoint."/$service.vsp"; - } - - return $this->liveEndpoint."/$service.vsp"; - } - - protected function createResponse($data) - { - return $this->response = new Response($this, $data); - } -} diff --git a/src/Omnipay/SagePay/Message/CaptureRequest.php b/src/Omnipay/SagePay/Message/CaptureRequest.php deleted file mode 100644 index 16b58f4e..00000000 --- a/src/Omnipay/SagePay/Message/CaptureRequest.php +++ /dev/null @@ -1,26 +0,0 @@ -validate('amount', 'transactionReference'); - $reference = json_decode($this->getTransactionReference(), true); - - $data = $this->getBaseData(); - $data['ReleaseAmount'] = $this->getAmount(); - $data['VendorTxCode'] = $reference['VendorTxCode']; - $data['VPSTxId'] = $reference['VPSTxId']; - $data['SecurityKey'] = $reference['SecurityKey']; - $data['TxAuthNo'] = $reference['TxAuthNo']; - - return $data; - } -} diff --git a/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php b/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php deleted file mode 100644 index 201f1611..00000000 --- a/src/Omnipay/SagePay/Message/DirectAuthorizeRequest.php +++ /dev/null @@ -1,93 +0,0 @@ - 'mc', - 'diners_club' => 'dc' - ); - - protected function getBaseAuthorizeData() - { - $this->validate('amount', 'card', 'transactionId'); - $card = $this->getCard(); - - $data = $this->getBaseData(); - $data['Description'] = $this->getDescription(); - $data['Amount'] = $this->getAmount(); - $data['Currency'] = $this->getCurrency(); - $data['VendorTxCode'] = $this->getTransactionId(); - $data['ClientIPAddress'] = $this->getClientIp(); - $data['ApplyAVSCV2'] = 0; // use account setting - $data['Apply3DSecure'] = 0; // use account setting - - // billing details - $data['BillingFirstnames'] = $card->getFirstName(); - $data['BillingSurname'] = $card->getLastName(); - $data['BillingAddress1'] = $card->getBillingAddress1(); - $data['BillingAddress2'] = $card->getBillingAddress2(); - $data['BillingCity'] = $card->getBillingCity(); - $data['BillingPostCode'] = $card->getBillingPostcode(); - $data['BillingState'] = $card->getBillingCountry() === 'US' ? $card->getBillingState() : null; - $data['BillingCountry'] = $card->getBillingCountry(); - $data['BillingPhone'] = $card->getBillingPhone(); - - // shipping details - $data['DeliveryFirstnames'] = $card->getFirstName(); - $data['DeliverySurname'] = $card->getLastName(); - $data['DeliveryAddress1'] = $card->getShippingAddress1(); - $data['DeliveryAddress2'] = $card->getShippingAddress2(); - $data['DeliveryCity'] = $card->getShippingCity(); - $data['DeliveryPostCode'] = $card->getShippingPostcode(); - $data['DeliveryState'] = $card->getShippingCountry() === 'US' ? $card->getShippingState() : null; - $data['DeliveryCountry'] = $card->getShippingCountry(); - $data['DeliveryPhone'] = $card->getShippingPhone(); - $data['CustomerEMail'] = $card->getEmail(); - - return $data; - } - - public function getData() - { - $data = $this->getBaseAuthorizeData(); - $this->getCard()->validate(); - - $data['CardHolder'] = $this->getCard()->getName(); - $data['CardNumber'] = $this->getCard()->getNumber(); - $data['CV2'] = $this->getCard()->getCvv(); - $data['ExpiryDate'] = $this->getCard()->getExpiryDate('my'); - $data['CardType'] = $this->getCardBrand(); - - if ($this->getCard()->getStartMonth() and $this->getCard()->getStartYear()) { - $data['StartDate'] = $this->getCard()->getStartDate('my'); - } - - if ($this->getCard()->getIssueNumber()) { - $data['IssueNumber'] = $this->getCard()->getIssueNumber(); - } - - return $data; - } - - public function getService() - { - return 'vspdirect-register'; - } - - protected function getCardBrand() - { - $brand = $this->getCard()->getBrand(); - - if (isset($this->cardBrandMap[$brand])) { - return $this->cardBrandMap[$brand]; - } - - return $brand; - } -} diff --git a/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php b/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php deleted file mode 100644 index 287f0316..00000000 --- a/src/Omnipay/SagePay/Message/DirectCompleteAuthorizeRequest.php +++ /dev/null @@ -1,30 +0,0 @@ - $this->httpRequest->request->get('MD'), - 'PARes' => $this->httpRequest->request->get('PaRes'), // inconsistent caps are intentional - ); - - if (empty($data['MD']) || empty($data['PARes'])) { - throw new InvalidResponseException; - } - - return $data; - } - - public function getService() - { - return 'direct3dcallback'; - } -} diff --git a/src/Omnipay/SagePay/Message/DirectPurchaseRequest.php b/src/Omnipay/SagePay/Message/DirectPurchaseRequest.php deleted file mode 100644 index a583a0cd..00000000 --- a/src/Omnipay/SagePay/Message/DirectPurchaseRequest.php +++ /dev/null @@ -1,11 +0,0 @@ -validate('amount', 'transactionReference'); - $reference = json_decode($this->getTransactionReference(), true); - - $data = $this->getBaseData(); - $data['Amount'] = $this->getAmount(); - $data['Currency'] = $this->getCurrency(); - $data['Description'] = $this->getDescription(); - $data['RelatedVendorTxCode'] = $reference['VendorTxCode']; - $data['RelatedVPSTxId'] = $reference['VPSTxId']; - $data['RelatedSecurityKey'] = $reference['SecurityKey']; - $data['RelatedTxAuthNo'] = $reference['TxAuthNo']; - - // VendorTxCode must be unique for the refund (different from original) - $data['VendorTxCode'] = $this->getTransactionId(); - - return $data; - } -} diff --git a/src/Omnipay/SagePay/Message/Response.php b/src/Omnipay/SagePay/Message/Response.php deleted file mode 100644 index f4c38a4e..00000000 --- a/src/Omnipay/SagePay/Message/Response.php +++ /dev/null @@ -1,103 +0,0 @@ -request = $request; - $this->data = $this->decode($data); - } - - public function isSuccessful() - { - return isset($this->data['Status']) && 'OK' === $this->data['Status']; - } - - public function isRedirect() - { - return isset($this->data['Status']) && '3DAUTH' === $this->data['Status']; - } - - /** - * Gateway Reference - * - * Unfortunately Sage Pay requires the original VendorTxCode as well as 3 separate - * fields from the response object to capture or refund transactions at a later date. - * - * Active Merchant solves this dilemma by returning the gateway reference in the following - * custom format: VendorTxCode;VPSTxId;TxAuthNo;SecurityKey - * - * We have opted to return this reference as JSON, as the keys are much more explicit. - */ - public function getTransactionReference() - { - if (isset($this->data['SecurityKey']) && isset($this->data['TxAuthNo']) && isset($this->data['VPSTxId'])) { - return json_encode( - array( - 'SecurityKey' => $this->data['SecurityKey'], - 'TxAuthNo' => $this->data['TxAuthNo'], - 'VPSTxId' => $this->data['VPSTxId'], - 'VendorTxCode' => $this->getRequest()->getTransactionId(), - ) - ); - } - } - - public function getMessage() - { - return isset($this->data['StatusDetail']) ? $this->data['StatusDetail'] : null; - } - - public function getRedirectUrl() - { - if ($this->isRedirect()) { - return $this->data['ACSURL']; - } - } - - public function getRedirectMethod() - { - return 'POST'; - } - - public function getRedirectData() - { - if ($this->isRedirect()) { - return array( - 'PaReq' => $this->data['PAReq'], - 'TermUrl' => $this->getRequest()->getReturnUrl(), - 'MD' => $this->data['MD'], - ); - } - } - - /** - * Decode raw ini-style response body - * - * @param string The raw response body - * @return array - */ - protected function decode($response) - { - $lines = explode("\n", $response); - $data = array(); - - foreach ($lines as $line) { - $line = explode('=', $line, 2); - if (!empty($line[0])) { - $data[trim($line[0])] = isset($line[1]) ? trim($line[1]) : ''; - } - } - - return $data; - } -} diff --git a/src/Omnipay/SagePay/Message/ServerAuthorizeRequest.php b/src/Omnipay/SagePay/Message/ServerAuthorizeRequest.php deleted file mode 100644 index d943484a..00000000 --- a/src/Omnipay/SagePay/Message/ServerAuthorizeRequest.php +++ /dev/null @@ -1,29 +0,0 @@ -validate('returnUrl'); - - $data = $this->getBaseAuthorizeData(); - $data['NotificationURL'] = $this->getReturnUrl(); - - return $data; - } - - public function getService() - { - return 'vspserver-register'; - } - - protected function createResponse($data) - { - return $this->response = new ServerAuthorizeResponse($this, $data); - } -} diff --git a/src/Omnipay/SagePay/Message/ServerAuthorizeResponse.php b/src/Omnipay/SagePay/Message/ServerAuthorizeResponse.php deleted file mode 100644 index 15a7712c..00000000 --- a/src/Omnipay/SagePay/Message/ServerAuthorizeResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data['Status']) && 'OK' === $this->data['Status']; - } - - public function getRedirectUrl() - { - return isset($this->data['NextURL']) ? $this->data['NextURL'] : null; - } - - public function getRedirectMethod() - { - return 'GET'; - } - - public function getRedirectData() - { - return null; - } -} diff --git a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php b/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php deleted file mode 100644 index 5caac6a3..00000000 --- a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeRequest.php +++ /dev/null @@ -1,50 +0,0 @@ -validate('transactionId', 'transactionReference'); - - $reference = json_decode($this->getTransactionReference(), true); - - // validate VPSSignature - $signature = md5( - $reference['VPSTxId']. - $reference['VendorTxCode']. - $this->httpRequest->request->get('Status'). - $this->httpRequest->request->get('TxAuthNo'). - $this->getVendor(). - $this->httpRequest->request->get('AVSCV2'). - $reference['SecurityKey']. - $this->httpRequest->request->get('AddressResult'). - $this->httpRequest->request->get('PostCodeResult'). - $this->httpRequest->request->get('CV2Result'). - $this->httpRequest->request->get('GiftAid'). - $this->httpRequest->request->get('3DSecureStatus'). - $this->httpRequest->request->get('CAVV'). - $this->httpRequest->request->get('AddressStatus'). - $this->httpRequest->request->get('PayerStatus'). - $this->httpRequest->request->get('CardType'). - $this->httpRequest->request->get('Last4Digits') - ); - - if (strtolower($this->httpRequest->request->get('VPSSignature')) !== $signature) { - throw new InvalidResponseException; - } - - return $this->httpRequest->request->all(); - } - - public function sendData($data) - { - return $this->response = new ServerCompleteAuthorizeResponse($this, $data); - } -} diff --git a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php b/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php deleted file mode 100644 index ca803506..00000000 --- a/src/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponse.php +++ /dev/null @@ -1,119 +0,0 @@ -request = $request; - $this->data = $data; - } - - public function getTransactionReference() - { - if (isset($this->data['TxAuthNo'])) { - $reference = json_decode($this->getRequest()->getTransactionReference(), true); - $reference['VendorTxCode'] = $this->getRequest()->getTransactionId(); - $reference['TxAuthNo'] = $this->data['TxAuthNo']; - - return json_encode($reference); - } - } - - /** - * Confirm (Sage Pay Server only) - * - * Notify Sage Pay you received the payment details and wish to confirm the payment, and - * provide a URL to forward the customer to. - * - * @param string URL to forward the customer to. Note this is different to your standard - * return controller action URL. - * @param string Optional human readable reasons for accepting the transaction. - */ - public function confirm($nextUrl, $detail = null) - { - $this->sendResponse('OK', $nextUrl, $detail); - } - - /** - * Error (Sage Pay Server only) - * - * Notify Sage Pay you received the payment details but there was an error and the payment - * cannot be completed. Error should be called rarely, and only when something unforseen - * has happened on your server or database. - * - * @param string URL to foward the customer to. Note this is different to your standard - * return controller action URL. - * @param string Optional human readable reasons for not accepting the transaction. - */ - public function error($nextUrl, $detail = null) - { - $this->sendResponse('ERROR', $nextUrl, $detail); - } - - /** - * Invalid (Sage Pay Server only) - * - * Notify Sage Pay you received the payment details but they were invalid and the payment - * cannot be completed. Invalid should be called if you are not happy with the contents - * of the POST, such as the MD5 hash signatures did not match or you do not wish to proceed - * with the order. - * - * @param string URL to foward the customer to. Note this is different to your standard - * return controller action URL. - * @param string Optional human readable reasons for not accepting the transaction. - */ - public function invalid($nextUrl, $detail = null) - { - $this->sendResponse('INVALID', $nextUrl, $detail); - } - - /** - * Respond to SagePay confirming or rejecting the payment. - * - * Sage Pay Server does things backwards compared to every other gateway (including Sage Pay - * Direct). The return URL is called by their server, and they expect you to confirm receipt - * and then pass a URL for them to forward the customer to. - * - * Because of this, an extra step is required. In your return controller, after calling - * $gateway->completePurchase(), you should attempt to process the payment. You must then call - * either $response->confirm(), $response->error() or $response->invalid() to notify Sage Pay - * whether to complete the payment or not, and provide a URL to forward the customer to. - * - * Keep in mind your original confirmPurchase() script is being called by Sage Pay, not - * the customer. - * - * @param string The status to send to Sage Pay, either OK, INVALID or ERROR. - * @param string URL to forward the customer to. Note this is different to your standard - * return controller action URL. - * @param string Optional human readable reasons for accepting the transaction. - */ - public function sendResponse($status, $nextUrl, $detail = null) - { - $message = "Status=$status\r\nRedirectUrl=$nextUrl"; - - if (null !== $detail) { - $message .= "\r\nStatusDetail=".$detail; - } - - $this->exitWith($message); - } - - /** - * Exit to ensure no other HTML, headers, comments, or text are included. - * - * @access private - * @codeCoverageIgnore - */ - public function exitWith($message) - { - echo $message; - exit; - } -} diff --git a/src/Omnipay/SagePay/Message/ServerPurchaseRequest.php b/src/Omnipay/SagePay/Message/ServerPurchaseRequest.php deleted file mode 100644 index 913592dd..00000000 --- a/src/Omnipay/SagePay/Message/ServerPurchaseRequest.php +++ /dev/null @@ -1,11 +0,0 @@ -createRequest('\Omnipay\SagePay\Message\ServerAuthorizeRequest', $parameters); - } - - public function completeAuthorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SagePay\Message\ServerCompleteAuthorizeRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SagePay\Message\ServerPurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->completeAuthorize($parameters); - } -} diff --git a/src/Omnipay/SecurePay/DirectPostGateway.php b/src/Omnipay/SecurePay/DirectPostGateway.php deleted file mode 100644 index 5fc4fc2b..00000000 --- a/src/Omnipay/SecurePay/DirectPostGateway.php +++ /dev/null @@ -1,67 +0,0 @@ - '', - 'transactionPassword' => '', - 'testMode' => false, - ); - } - - public function getMerchantId() - { - return $this->getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getTransactionPassword() - { - return $this->getParameter('transactionPassword'); - } - - public function setTransactionPassword($value) - { - return $this->setParameter('transactionPassword', $value); - } - - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SecurePay\Message\DirectPostAuthorizeRequest', $parameters); - } - - public function completeAuthorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SecurePay\Message\DirectPostCompletePurchaseRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SecurePay\Message\DirectPostPurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\SecurePay\Message\DirectPostCompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/SecurePay/Message/DirectPostAbstractRequest.php b/src/Omnipay/SecurePay/Message/DirectPostAbstractRequest.php deleted file mode 100644 index 57f77073..00000000 --- a/src/Omnipay/SecurePay/Message/DirectPostAbstractRequest.php +++ /dev/null @@ -1,39 +0,0 @@ -getParameter('merchantId'); - } - - public function setMerchantId($value) - { - return $this->setParameter('merchantId', $value); - } - - public function getTransactionPassword() - { - return $this->getParameter('transactionPassword'); - } - - public function setTransactionPassword($value) - { - return $this->setParameter('transactionPassword', $value); - } - - public function getEndpoint() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } -} diff --git a/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php b/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php deleted file mode 100644 index 293cbbc6..00000000 --- a/src/Omnipay/SecurePay/Message/DirectPostAuthorizeRequest.php +++ /dev/null @@ -1,53 +0,0 @@ -validate('amount', 'returnUrl'); - - $data = array(); - $data['EPS_MERCHANT'] = $this->getMerchantId(); - $data['EPS_TXNTYPE'] = $this->txnType; - $data['EPS_IP'] = $this->getClientIp(); - $data['EPS_AMOUNT'] = $this->getAmount(); - $data['EPS_REFERENCEID'] = $this->getTransactionId(); - $data['EPS_TIMESTAMP'] = gmdate('YmdHis'); - $data['EPS_FINGERPRINT'] = $this->generateFingerprint($data); - $data['EPS_RESULTURL'] = $this->getReturnUrl(); - $data['EPS_CALLBACKURL'] = $this->getReturnUrl(); - $data['EPS_REDIRECT'] = 'TRUE'; - $data['EPS_CURRENCY'] = $this->getCurrency(); - - return $data; - } - - public function generateFingerprint(array $data) - { - $hash = implode( - '|', - array( - $data['EPS_MERCHANT'], - $this->getTransactionPassword(), - $data['EPS_TXNTYPE'], - $data['EPS_REFERENCEID'], - $data['EPS_AMOUNT'], - $data['EPS_TIMESTAMP'], - ) - ); - - return sha1($hash); - } - - public function sendData($data) - { - return $this->response = new DirectPostAuthorizeResponse($this, $data, $this->getEndpoint()); - } -} diff --git a/src/Omnipay/SecurePay/Message/DirectPostAuthorizeResponse.php b/src/Omnipay/SecurePay/Message/DirectPostAuthorizeResponse.php deleted file mode 100644 index 960be72b..00000000 --- a/src/Omnipay/SecurePay/Message/DirectPostAuthorizeResponse.php +++ /dev/null @@ -1,46 +0,0 @@ -request = $request; - $this->data = $data; - $this->redirectUrl = $redirectUrl; - } - - public function isSuccessful() - { - return false; - } - - public function isRedirect() - { - return true; - } - - public function getRedirectUrl() - { - return $this->redirectUrl; - } - - public function getRedirectMethod() - { - return 'POST'; - } - - public function getRedirectData() - { - return $this->getData(); - } -} diff --git a/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php b/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php deleted file mode 100644 index 1af3af78..00000000 --- a/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequest.php +++ /dev/null @@ -1,44 +0,0 @@ -httpRequest->request->all(); - - if ($this->generateResponseFingerprint($data) !== $this->httpRequest->request->get('fingerprint')) { - throw new InvalidRequestException('Invalid fingerprint'); - } - - return $data; - } - - public function generateResponseFingerprint($data) - { - $fields = implode( - '|', - array( - $data['merchant'], - $this->getTransactionPassword(), - $data['refid'], - $this->getAmount(), - $data['timestamp'], - $data['summarycode'], - ) - ); - - return sha1($fields); - } - - public function sendData($data) - { - return $this->response = new DirectPostCompletePurchaseResponse($this, $data); - } -} diff --git a/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseResponse.php b/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseResponse.php deleted file mode 100644 index bf820cbb..00000000 --- a/src/Omnipay/SecurePay/Message/DirectPostCompletePurchaseResponse.php +++ /dev/null @@ -1,37 +0,0 @@ -data['summarycode']) && $this->data['summarycode'] == 1; - } - - public function getMessage() - { - if (isset($this->data['restext'])) { - return $this->data['restext']; - } - } - - public function getCode() - { - if (isset($this->data['rescode'])) { - return $this->data['rescode']; - } - } - - public function getTransactionReference() - { - if (isset($this->data['txnid'])) { - return $this->data['txnid']; - } - } -} diff --git a/src/Omnipay/SecurePay/Message/DirectPostPurchaseRequest.php b/src/Omnipay/SecurePay/Message/DirectPostPurchaseRequest.php deleted file mode 100644 index a8139f59..00000000 --- a/src/Omnipay/SecurePay/Message/DirectPostPurchaseRequest.php +++ /dev/null @@ -1,11 +0,0 @@ - '', - ); - } - - public function getApiKey() - { - return $this->getParameter('apiKey'); - } - - public function setApiKey($value) - { - return $this->setParameter('apiKey', $value); - } - - public function authorize(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Stripe\Message\AuthorizeRequest', $parameters); - } - - public function capture(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Stripe\Message\CaptureRequest', $parameters); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Stripe\Message\PurchaseRequest', $parameters); - } - - public function refund(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Stripe\Message\RefundRequest', $parameters); - } - - public function fetchTransaction(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Stripe\Message\FetchTransactionRequest', $parameters); - } - - public function createCard(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Stripe\Message\CreateCardRequest', $parameters); - } - - public function updateCard(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Stripe\Message\UpdateCardRequest', $parameters); - } - - public function deleteCard(array $parameters = array()) - { - return $this->createRequest('\Omnipay\Stripe\Message\DeleteCardRequest', $parameters); - } -} diff --git a/src/Omnipay/Stripe/Message/AbstractRequest.php b/src/Omnipay/Stripe/Message/AbstractRequest.php deleted file mode 100644 index fe580966..00000000 --- a/src/Omnipay/Stripe/Message/AbstractRequest.php +++ /dev/null @@ -1,89 +0,0 @@ -getParameter('apiKey'); - } - - public function setApiKey($value) - { - return $this->setParameter('apiKey', $value); - } - - /** - * @deprecated - */ - public function getCardToken() - { - return $this->getParameter('token'); - } - - /** - * @deprecated - */ - public function setCardToken($value) - { - return $this->setParameter('token', $value); - } - - abstract public function getEndpoint(); - - public function getHttpMethod() - { - return 'POST'; - } - - public function sendData($data) - { - // don't throw exceptions for 4xx errors - $this->httpClient->getEventDispatcher()->addListener( - 'request.error', - function ($event) { - if ($event['response']->isClientError()) { - $event->stopPropagation(); - } - } - ); - - $httpRequest = $this->httpClient->createRequest( - $this->getHttpMethod(), - $this->getEndpoint(), - null, - $data - ); - $httpResponse = $httpRequest - ->setHeader('Authorization', 'Basic '.base64_encode($this->getApiKey().':')) - ->send(); - - return $this->response = new Response($this, $httpResponse->json()); - } - - protected function getCardData() - { - $this->getCard()->validate(); - - $data = array(); - $data['number'] = $this->getCard()->getNumber(); - $data['exp_month'] = $this->getCard()->getExpiryMonth(); - $data['exp_year'] = $this->getCard()->getExpiryYear(); - $data['cvc'] = $this->getCard()->getCvv(); - $data['name'] = $this->getCard()->getName(); - $data['address_line1'] = $this->getCard()->getAddress1(); - $data['address_line2'] = $this->getCard()->getAddress2(); - $data['address_city'] = $this->getCard()->getCity(); - $data['address_zip'] = $this->getCard()->getPostcode(); - $data['address_state'] = $this->getCard()->getState(); - $data['address_country'] = $this->getCard()->getCountry(); - - return $data; - } -} diff --git a/src/Omnipay/Stripe/Message/AuthorizeRequest.php b/src/Omnipay/Stripe/Message/AuthorizeRequest.php deleted file mode 100644 index 21dc61e5..00000000 --- a/src/Omnipay/Stripe/Message/AuthorizeRequest.php +++ /dev/null @@ -1,38 +0,0 @@ -validate('amount', 'currency'); - - $data = array(); - $data['amount'] = $this->getAmountInteger(); - $data['currency'] = strtolower($this->getCurrency()); - $data['description'] = $this->getDescription(); - $data['capture'] = 'false'; - - if ($this->getCardReference()) { - $data['customer'] = $this->getCardReference(); - } elseif ($this->getToken()) { - $data['card'] = $this->getToken(); - } elseif ($this->getCard()) { - $data['card'] = $this->getCardData(); - } else { - // one of cardReference, token, or card is required - $this->validate('card'); - } - - return $data; - } - - public function getEndpoint() - { - return $this->endpoint.'/charges'; - } -} diff --git a/src/Omnipay/Stripe/Message/CaptureRequest.php b/src/Omnipay/Stripe/Message/CaptureRequest.php deleted file mode 100644 index 3a5ebd05..00000000 --- a/src/Omnipay/Stripe/Message/CaptureRequest.php +++ /dev/null @@ -1,27 +0,0 @@ -validate('transactionReference'); - - $data = array(); - - if ($amount = $this->getAmountInteger()) { - $data['amount'] = $amount; - } - - return $data; - } - - public function getEndpoint() - { - return $this->endpoint.'/charges/'.$this->getTransactionReference().'/capture'; - } -} diff --git a/src/Omnipay/Stripe/Message/CreateCardRequest.php b/src/Omnipay/Stripe/Message/CreateCardRequest.php deleted file mode 100644 index 3e467fab..00000000 --- a/src/Omnipay/Stripe/Message/CreateCardRequest.php +++ /dev/null @@ -1,32 +0,0 @@ -getDescription(); - - if ($this->getToken()) { - $data['card'] = $this->getToken(); - } elseif ($this->getCard()) { - $data['card'] = $this->getCardData(); - $data['email'] = $this->getCard()->getEmail(); - } else { - // one of token or card is required - $this->validate('card'); - } - - return $data; - } - - public function getEndpoint() - { - return $this->endpoint.'/customers'; - } -} diff --git a/src/Omnipay/Stripe/Message/DeleteCardRequest.php b/src/Omnipay/Stripe/Message/DeleteCardRequest.php deleted file mode 100644 index 57fdcb93..00000000 --- a/src/Omnipay/Stripe/Message/DeleteCardRequest.php +++ /dev/null @@ -1,26 +0,0 @@ -validate('cardReference'); - - return null; - } - - public function getHttpMethod() - { - return 'DELETE'; - } - - public function getEndpoint() - { - return $this->endpoint.'/customers/'.$this->getCardReference(); - } -} diff --git a/src/Omnipay/Stripe/Message/FetchTransactionRequest.php b/src/Omnipay/Stripe/Message/FetchTransactionRequest.php deleted file mode 100644 index 9d71cbe9..00000000 --- a/src/Omnipay/Stripe/Message/FetchTransactionRequest.php +++ /dev/null @@ -1,23 +0,0 @@ -validate('transactionReference'); - - $data = array(); - - return $data; - } - - public function getEndpoint() - { - return $this->endpoint.'/charges/'.$this->getTransactionReference(); - } -} diff --git a/src/Omnipay/Stripe/Message/PurchaseRequest.php b/src/Omnipay/Stripe/Message/PurchaseRequest.php deleted file mode 100644 index 895eb7b5..00000000 --- a/src/Omnipay/Stripe/Message/PurchaseRequest.php +++ /dev/null @@ -1,17 +0,0 @@ -validate('transactionReference', 'amount'); - - $data = array(); - $data['amount'] = $this->getAmountInteger(); - - return $data; - } - - public function getEndpoint() - { - return $this->endpoint.'/charges/'.$this->getTransactionReference().'/refund'; - } -} diff --git a/src/Omnipay/Stripe/Message/Response.php b/src/Omnipay/Stripe/Message/Response.php deleted file mode 100644 index ba92406b..00000000 --- a/src/Omnipay/Stripe/Message/Response.php +++ /dev/null @@ -1,37 +0,0 @@ -data['error']); - } - - public function getTransactionReference() - { - if (isset($this->data['object']) && 'charge' === $this->data['object']) { - return $this->data['id']; - } - } - - public function getCardReference() - { - if (isset($this->data['object']) && 'customer' === $this->data['object']) { - return $this->data['id']; - } - } - - public function getMessage() - { - if (!$this->isSuccessful()) { - return $this->data['error']['message']; - } - } -} diff --git a/src/Omnipay/Stripe/Message/UpdateCardRequest.php b/src/Omnipay/Stripe/Message/UpdateCardRequest.php deleted file mode 100644 index 45504184..00000000 --- a/src/Omnipay/Stripe/Message/UpdateCardRequest.php +++ /dev/null @@ -1,31 +0,0 @@ -getDescription(); - - if ($this->getToken()) { - $data['card'] = $this->getToken(); - } elseif ($this->getCard()) { - $data['card'] = $this->getCardData(); - $data['email'] = $this->getCard()->getEmail(); - } - - $this->validate('cardReference'); - - return $data; - } - - public function getEndpoint() - { - return $this->endpoint.'/customers/'.$this->getCardReference(); - } -} diff --git a/src/Omnipay/TargetPay/AbstractGateway.php b/src/Omnipay/TargetPay/AbstractGateway.php deleted file mode 100644 index 832e9bcf..00000000 --- a/src/Omnipay/TargetPay/AbstractGateway.php +++ /dev/null @@ -1,31 +0,0 @@ - '', - ); - } - - public function getSubAccountId() - { - return $this->getParameter('subAccountId'); - } - - public function setSubAccountId($value) - { - return $this->setParameter('subAccountId', $value); - } -} diff --git a/src/Omnipay/TargetPay/DirectebankingGateway.php b/src/Omnipay/TargetPay/DirectebankingGateway.php deleted file mode 100644 index 75e2633b..00000000 --- a/src/Omnipay/TargetPay/DirectebankingGateway.php +++ /dev/null @@ -1,41 +0,0 @@ -createRequest('\Omnipay\TargetPay\Message\DirectebankingPurchaseRequest', $parameters); - } - - /** - * Complete a purchase. - * - * @param array $parameters An array of options - * - * @return CompletePurchaseRequest - */ - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\TargetPay\Message\DirectebankingCompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/TargetPay/IdealGateway.php b/src/Omnipay/TargetPay/IdealGateway.php deleted file mode 100644 index 5afb3324..00000000 --- a/src/Omnipay/TargetPay/IdealGateway.php +++ /dev/null @@ -1,54 +0,0 @@ -createRequest('\Omnipay\TargetPay\Message\FetchIssuersRequest', $parameters); - } - - /** - * {@inheritdoc} - */ - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\TargetPay\Message\IdealPurchaseRequest', $parameters); - } - - /** - * Complete a purchase. - * - * @param array $parameters An array of options - * - * @return CompletePurchaseRequest - */ - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\TargetPay\Message\IdealCompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/TargetPay/Message/AbstractRequest.php b/src/Omnipay/TargetPay/Message/AbstractRequest.php deleted file mode 100644 index 57a72de9..00000000 --- a/src/Omnipay/TargetPay/Message/AbstractRequest.php +++ /dev/null @@ -1,25 +0,0 @@ -getParameter('subAccountId'); - } - - public function setSubAccountId($value) - { - return $this->setParameter('subAccountId', $value); - } - - /** - * Get the endpoint for the request. - * - * @return string - */ - abstract public function getEndpoint(); -} diff --git a/src/Omnipay/TargetPay/Message/AbstractResponse.php b/src/Omnipay/TargetPay/Message/AbstractResponse.php deleted file mode 100644 index 3c40c909..00000000 --- a/src/Omnipay/TargetPay/Message/AbstractResponse.php +++ /dev/null @@ -1,51 +0,0 @@ -data, $matches)) { - $this->code = trim($matches[1]); - $this->data = trim($matches[2]); - } - } - - /** - * {@inheritdoc} - */ - public function getMessage() - { - if (!$this->isSuccessful()) { - return $this->data; - } - - return null; - } - - /** - * {@inheritdoc} - */ - public function getCode() - { - if (!$this->isSuccessful()) { - return $this->code; - } - - return null; - } -} diff --git a/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php deleted file mode 100644 index 9c0381f7..00000000 --- a/src/Omnipay/TargetPay/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,43 +0,0 @@ -getParameter('exchangeOnce'); - } - - public function setExchangeOnce($value) - { - return $this->setParameter('exchangeOnce', $value); - } - - /** - * {@inheritdoc} - */ - public function getData() - { - $this->validate('transactionId'); - - return array( - 'rtlo' => $this->getSubAccountId(), - 'trxid' => $this->getTransactionId(), - 'once' => $this->getExchangeOnce(), - 'test' => $this->getTestMode(), - ); - } - - /** - * {@inheritdoc} - */ - public function sendData($data) - { - $httpResponse = $this->httpClient->get( - $this->getEndpoint().'?'.http_build_query($data) - )->send(); - - return $this->response = new CompletePurchaseResponse($this, $httpResponse->getBody(true)); - } -} diff --git a/src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php b/src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php deleted file mode 100644 index 1becfc7b..00000000 --- a/src/Omnipay/TargetPay/Message/CompletePurchaseResponse.php +++ /dev/null @@ -1,14 +0,0 @@ -code; - } -} diff --git a/src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php deleted file mode 100644 index ceff77c9..00000000 --- a/src/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequest.php +++ /dev/null @@ -1,14 +0,0 @@ -getParameter('country'); - } - - public function setCountry($value) - { - return $this->setParameter('country', $value); - } - - public function getServiceType() - { - return $this->getParameter('serviceType'); - } - - public function setServiceType($value) - { - return $this->setParameter('serviceType', $value); - } - - /** - * {@inheritdoc} - */ - public function getData() - { - $this->validate('amount', 'description', 'country', 'serviceType', 'clientIp', 'returnUrl'); - - return array( - 'rtlo' => $this->getSubAccountId(), - 'description' => $this->getDescription(), - 'amount' => $this->getAmountInteger(), - 'country' => $this->getCountry(), - 'lang' => $this->getLanguage(), - 'type' => $this->getServiceType(), - 'userip' => $this->getClientIp(), - 'returnurl' => $this->getReturnUrl(), - 'reporturl' => $this->getNotifyUrl(), - ); - } - - /** - * {@inheritdoc} - */ - public function getEndpoint() - { - return 'https://www.targetpay.com/directebanking/start'; - } -} diff --git a/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php b/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php deleted file mode 100644 index 311ccbaf..00000000 --- a/src/Omnipay/TargetPay/Message/FetchIssuersRequest.php +++ /dev/null @@ -1,31 +0,0 @@ -httpClient->get($this->endpoint)->send(); - - return $this->response = new FetchIssuersResponse($this, $httpResponse->xml()); - } -} diff --git a/src/Omnipay/TargetPay/Message/FetchIssuersResponse.php b/src/Omnipay/TargetPay/Message/FetchIssuersResponse.php deleted file mode 100644 index c8842775..00000000 --- a/src/Omnipay/TargetPay/Message/FetchIssuersResponse.php +++ /dev/null @@ -1,32 +0,0 @@ -data as $issuer) { - $result[(string) $issuer['id']] = (string) $issuer; - } - - return $result; - } -} diff --git a/src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php deleted file mode 100644 index 098f144c..00000000 --- a/src/Omnipay/TargetPay/Message/IdealCompletePurchaseRequest.php +++ /dev/null @@ -1,14 +0,0 @@ -getParameter('issuer'); - } - - public function setIssuer($value) - { - return $this->setParameter('issuer', $value); - } - - /** - * {@inheritdoc} - */ - public function getData() - { - $this->validate('issuer', 'amount', 'description', 'returnUrl'); - - return array( - 'rtlo' => $this->getSubAccountId(), - 'bank' => $this->getIssuer(), - 'amount' => $this->getAmountInteger(), - 'description' => $this->getDescription(), - 'language' => $this->getLanguage(), - 'currency' => $this->getCurrency(), - 'returnurl' => $this->getReturnUrl(), - 'reporturl' => $this->getNotifyUrl(), - ); - } - - /** - * {@inheritdoc} - */ - public function getEndpoint() - { - return 'https://www.targetpay.com/ideal/start'; - } -} diff --git a/src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php b/src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php deleted file mode 100644 index e743eece..00000000 --- a/src/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequest.php +++ /dev/null @@ -1,14 +0,0 @@ -validate('amount', 'description', 'clientIp', 'returnUrl'); - - return array( - 'rtlo' => $this->getSubAccountId(), - 'amount' => $this->getAmountInteger(), - 'description' => $this->getDescription(), - 'lang' => $this->getLanguage(), - 'userip' => $this->getClientIp(), - 'returnurl' => $this->getReturnUrl(), - 'reporturl' => $this->getNotifyUrl(), - ); - } - - /** - * {@inheritdoc} - */ - public function getEndpoint() - { - return 'https://www.targetpay.com/mrcash/start'; - } -} diff --git a/src/Omnipay/TargetPay/Message/PurchaseRequest.php b/src/Omnipay/TargetPay/Message/PurchaseRequest.php deleted file mode 100644 index d878e357..00000000 --- a/src/Omnipay/TargetPay/Message/PurchaseRequest.php +++ /dev/null @@ -1,28 +0,0 @@ -getParameter('language'); - } - - public function setLanguage($value) - { - return $this->setParameter('language', $value); - } - - /** - * {@inheritdoc} - */ - public function sendData($data) - { - $httpResponse = $this->httpClient->get( - $this->getEndpoint().'?'.http_build_query($data) - )->send(); - - return $this->response = new PurchaseResponse($this, $httpResponse->getBody(true)); - } -} diff --git a/src/Omnipay/TargetPay/Message/PurchaseResponse.php b/src/Omnipay/TargetPay/Message/PurchaseResponse.php deleted file mode 100644 index 42175ad5..00000000 --- a/src/Omnipay/TargetPay/Message/PurchaseResponse.php +++ /dev/null @@ -1,66 +0,0 @@ -code; - } - - /** - * {@inheritdoc} - */ - public function getRedirectUrl() - { - $parts = explode('|', $this->data); - if (2 == count($parts)) { - return $parts[1]; - } - - return null; - } - - /** - * {@inheritdoc} - */ - public function getRedirectMethod() - { - return 'GET'; - } - - /** - * {@inheritdoc} - */ - public function getRedirectData() - { - return null; - } - - /** - * {@inheritdoc} - */ - public function getTransactionReference() - { - $parts = explode('|', $this->data); - if (2 == count($parts)) { - return $parts[0]; - } - - return null; - } -} diff --git a/src/Omnipay/TargetPay/MrcashGateway.php b/src/Omnipay/TargetPay/MrcashGateway.php deleted file mode 100644 index a6070d4e..00000000 --- a/src/Omnipay/TargetPay/MrcashGateway.php +++ /dev/null @@ -1,41 +0,0 @@ -createRequest('\Omnipay\TargetPay\Message\MrcashPurchaseRequest', $parameters); - } - - /** - * Complete a purchase. - * - * @param array $parameters An array of options - * - * @return CompletePurchaseRequest - */ - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\TargetPay\Message\MrcashCompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/TwoCheckout/Gateway.php b/src/Omnipay/TwoCheckout/Gateway.php deleted file mode 100644 index 31c98bd1..00000000 --- a/src/Omnipay/TwoCheckout/Gateway.php +++ /dev/null @@ -1,59 +0,0 @@ - '', - 'secretWord' => '', - 'testMode' => false, - ); - } - - public function getAccountNumber() - { - return $this->getParameter('accountNumber'); - } - - public function setAccountNumber($value) - { - return $this->setParameter('accountNumber', $value); - } - - public function getSecretWord() - { - return $this->getParameter('secretWord'); - } - - public function setSecretWord($value) - { - return $this->setParameter('secretWord', $value); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\TwoCheckout\Message\PurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\TwoCheckout\Message\CompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php b/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php deleted file mode 100644 index 41dc2ccf..00000000 --- a/src/Omnipay/TwoCheckout/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,33 +0,0 @@ -httpRequest->request->get('order_number'); - - // strange exception specified by 2Checkout - if ($this->getTestMode()) { - $orderNo = '1'; - } - - $key = md5($this->getSecretWord().$this->getAccountNumber().$orderNo.$this->getAmount()); - if (strtolower($this->httpRequest->request->get('key')) !== $key) { - throw new InvalidResponseException('Invalid key'); - } - - return $this->httpRequest->request->all(); - } - - public function sendData($data) - { - return $this->response = new CompletePurchaseResponse($this, $data); - } -} diff --git a/src/Omnipay/TwoCheckout/Message/CompletePurchaseResponse.php b/src/Omnipay/TwoCheckout/Message/CompletePurchaseResponse.php deleted file mode 100644 index 9855dbcc..00000000 --- a/src/Omnipay/TwoCheckout/Message/CompletePurchaseResponse.php +++ /dev/null @@ -1,21 +0,0 @@ -data['order_number']) ? $this->data['order_number'] : null; - } -} diff --git a/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php b/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php deleted file mode 100644 index 4afd0b6d..00000000 --- a/src/Omnipay/TwoCheckout/Message/PurchaseRequest.php +++ /dev/null @@ -1,68 +0,0 @@ -getParameter('accountNumber'); - } - - public function setAccountNumber($value) - { - return $this->setParameter('accountNumber', $value); - } - - public function getSecretWord() - { - return $this->getParameter('secretWord'); - } - - public function setSecretWord($value) - { - return $this->setParameter('secretWord', $value); - } - - public function getData() - { - $this->validate('amount', 'returnUrl'); - - $data = array(); - $data['sid'] = $this->getAccountNumber(); - $data['cart_order_id'] = $this->getTransactionId(); - $data['total'] = $this->getAmount(); - $data['tco_currency'] = $this->getCurrency(); - $data['fixed'] = 'Y'; - $data['skip_landing'] = 1; - $data['x_receipt_link_url'] = $this->getReturnUrl(); - - if ($this->getCard()) { - $data['card_holder_name'] = $this->getCard()->getName(); - $data['street_address'] = $this->getCard()->getAddress1(); - $data['street_address2'] = $this->getCard()->getAddress2(); - $data['city'] = $this->getCard()->getCity(); - $data['state'] = $this->getCard()->getState(); - $data['zip'] = $this->getCard()->getPostcode(); - $data['country'] = $this->getCard()->getCountry(); - $data['phone'] = $this->getCard()->getPhone(); - $data['email'] = $this->getCard()->getEmail(); - } - - if ($this->getTestMode()) { - $data['demo'] = 'Y'; - } - - return $data; - } - - public function sendData($data) - { - return $this->response = new PurchaseResponse($this, $data); - } -} diff --git a/src/Omnipay/TwoCheckout/Message/PurchaseResponse.php b/src/Omnipay/TwoCheckout/Message/PurchaseResponse.php deleted file mode 100644 index c10e24cc..00000000 --- a/src/Omnipay/TwoCheckout/Message/PurchaseResponse.php +++ /dev/null @@ -1,39 +0,0 @@ -endpoint.'?'.http_build_query($this->data); - } - - public function getRedirectMethod() - { - return 'GET'; - } - - public function getRedirectData() - { - return null; - } -} diff --git a/src/Omnipay/WorldPay/Gateway.php b/src/Omnipay/WorldPay/Gateway.php deleted file mode 100644 index 40aa6450..00000000 --- a/src/Omnipay/WorldPay/Gateway.php +++ /dev/null @@ -1,70 +0,0 @@ - '', - 'secretWord' => '', - 'callbackPassword' => '', - 'testMode' => false, - ); - } - - public function getInstallationId() - { - return $this->getParameter('installationId'); - } - - public function setInstallationId($value) - { - return $this->setParameter('installationId', $value); - } - - public function getSecretWord() - { - return $this->getParameter('secretWord'); - } - - public function setSecretWord($value) - { - return $this->setParameter('secretWord', $value); - } - - public function getCallbackPassword() - { - return $this->getParameter('callbackPassword'); - } - - public function setCallbackPassword($value) - { - return $this->setParameter('callbackPassword', $value); - } - - public function purchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\WorldPay\Message\PurchaseRequest', $parameters); - } - - public function completePurchase(array $parameters = array()) - { - return $this->createRequest('\Omnipay\WorldPay\Message\CompletePurchaseRequest', $parameters); - } -} diff --git a/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php b/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php deleted file mode 100644 index d352b9ad..00000000 --- a/src/Omnipay/WorldPay/Message/CompletePurchaseRequest.php +++ /dev/null @@ -1,26 +0,0 @@ -httpRequest->request->get('callbackPW'); - if ($callbackPW !== $this->getCallbackPassword()) { - throw new InvalidResponseException("Invalid callback password"); - } - - return $this->httpRequest->request->all(); - } - - public function sendData($data) - { - return $this->response = new CompletePurchaseResponse($this, $data); - } -} diff --git a/src/Omnipay/WorldPay/Message/CompletePurchaseResponse.php b/src/Omnipay/WorldPay/Message/CompletePurchaseResponse.php deleted file mode 100644 index 5072b97f..00000000 --- a/src/Omnipay/WorldPay/Message/CompletePurchaseResponse.php +++ /dev/null @@ -1,26 +0,0 @@ -data['transStatus']) && 'Y' === $this->data['transStatus']; - } - - public function getTransactionReference() - { - return isset($this->data['transId']) ? $this->data['transId'] : null; - } - - public function getMessage() - { - return isset($this->data['rawAuthMessage']) ? $this->data['rawAuthMessage'] : null; - } -} diff --git a/src/Omnipay/WorldPay/Message/PurchaseRequest.php b/src/Omnipay/WorldPay/Message/PurchaseRequest.php deleted file mode 100644 index 3ce34f85..00000000 --- a/src/Omnipay/WorldPay/Message/PurchaseRequest.php +++ /dev/null @@ -1,89 +0,0 @@ -getParameter('installationId'); - } - - public function setInstallationId($value) - { - return $this->setParameter('installationId', $value); - } - - public function getSecretWord() - { - return $this->getParameter('secretWord'); - } - - public function setSecretWord($value) - { - return $this->setParameter('secretWord', $value); - } - - public function getCallbackPassword() - { - return $this->getParameter('callbackPassword'); - } - - public function setCallbackPassword($value) - { - return $this->setParameter('callbackPassword', $value); - } - - public function getData() - { - $this->validate('amount', 'returnUrl'); - - $data = array(); - $data['instId'] = $this->getInstallationId(); - $data['cartId'] = $this->getTransactionId(); - $data['desc'] = $this->getDescription(); - $data['amount'] = $this->getAmount(); - $data['currency'] = $this->getCurrency(); - $data['testMode'] = $this->getTestMode() ? 100 : 0; - $data['MC_callback'] = $this->getReturnUrl(); - - if ($this->getCard()) { - $data['name'] = $this->getCard()->getName(); - $data['address1'] = $this->getCard()->getAddress1(); - $data['address2'] = $this->getCard()->getAddress2(); - $data['town'] = $this->getCard()->getCity(); - $data['region'] = $this->getCard()->getState(); - $data['postcode'] = $this->getCard()->getPostcode(); - $data['country'] = $this->getCard()->getCountry(); - $data['tel'] = $this->getCard()->getPhone(); - $data['email'] = $this->getCard()->getEmail(); - } - - if ($this->getSecretWord()) { - $data['signatureFields'] = 'instId:amount:currency:cartId'; - $signature_data = array($this->getSecretWord(), - $data['instId'], $data['amount'], $data['currency'], $data['cartId']); - $data['signature'] = md5(implode(':', $signature_data)); - } - - return $data; - } - - public function sendData($data) - { - return $this->response = new PurchaseResponse($this, $data); - } - - public function getEndpoint() - { - return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; - } -} diff --git a/src/Omnipay/WorldPay/Message/PurchaseResponse.php b/src/Omnipay/WorldPay/Message/PurchaseResponse.php deleted file mode 100644 index fd3370cf..00000000 --- a/src/Omnipay/WorldPay/Message/PurchaseResponse.php +++ /dev/null @@ -1,37 +0,0 @@ -getRequest()->getEndpoint().'?'.http_build_query($this->data); - } - - public function getRedirectMethod() - { - return 'GET'; - } - - public function getRedirectData() - { - return null; - } -} diff --git a/tests/Omnipay/AuthorizeNet/AIMGatewayTest.php b/tests/Omnipay/AuthorizeNet/AIMGatewayTest.php deleted file mode 100644 index ecfa320d..00000000 --- a/tests/Omnipay/AuthorizeNet/AIMGatewayTest.php +++ /dev/null @@ -1,120 +0,0 @@ -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 testAuthorizeSuccess() - { - $this->setMockHttpResponse('AIMAuthorizeSuccess.txt'); - - $response = $this->gateway->authorize($this->purchaseOptions)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('2184493132', $response->getTransactionReference()); - $this->assertSame('This transaction has been approved.', $response->getMessage()); - } - - public function testAuthorizeFailure() - { - $this->setMockHttpResponse('AIMAuthorizeFailure.txt'); - - $response = $this->gateway->authorize($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('0', $response->getTransactionReference()); - $this->assertSame('A valid amount is required.', $response->getMessage()); - } - - public function testCaptureSuccess() - { - $this->setMockHttpResponse('AIMCaptureSuccess.txt'); - - $response = $this->gateway->capture($this->captureOptions)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('2184494531', $response->getTransactionReference()); - $this->assertSame('This transaction has been approved.', $response->getMessage()); - } - - public function testCaptureFailure() - { - $this->setMockHttpResponse('AIMCaptureFailure.txt'); - - $response = $this->gateway->capture($this->captureOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('0', $response->getTransactionReference()); - $this->assertSame('The transaction cannot be found.', $response->getMessage()); - } - - public function testPurchaseSuccess() - { - $this->setMockHttpResponse('AIMPurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->purchaseOptions)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('2184492509', $response->getTransactionReference()); - $this->assertSame('This transaction has been approved.', $response->getMessage()); - } - - public function testPurchaseFailure() - { - $this->setMockHttpResponse('AIMPurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('0', $response->getTransactionReference()); - $this->assertSame('A valid amount is required.', $response->getMessage()); - } - - public function testVoidSuccess() - { - $this->setMockHttpResponse('AIMVoidSuccess.txt'); - - $response = $this->gateway->void($this->voidOptions)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('0', $response->getTransactionReference()); - $this->assertSame('This transaction has already been voided.', $response->getMessage()); - } - - public function testVoidFailure() - { - $this->setMockHttpResponse('AIMVoidFailure.txt'); - - $response = $this->gateway->void($this->voidOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('0', $response->getTransactionReference()); - $this->assertSame('A valid referenced transaction ID is required.', $response->getMessage()); - } - -} diff --git a/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php b/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php deleted file mode 100644 index 97898fb9..00000000 --- a/tests/Omnipay/AuthorizeNet/Message/AIMResponseTest.php +++ /dev/null @@ -1,100 +0,0 @@ -getMockRequest(), ''); - } - - public function testAuthorizeSuccess() - { - $httpResponse = $this->getMockHttpResponse('AIMAuthorizeSuccess.txt'); - $response = new AIMResponse($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('2184493132', $response->getTransactionReference()); - $this->assertSame('This transaction has been approved.', $response->getMessage()); - $this->assertSame('1', $response->getCode()); - $this->assertSame('1', $response->getReasonCode()); - $this->assertSame('GA4OQP', $response->getAuthorizationCode()); - $this->assertSame('Y', $response->getAVSCode()); - } - - public function testAuthorizeFailure() - { - $httpResponse = $this->getMockHttpResponse('AIMAuthorizeFailure.txt'); - $response = new AIMResponse($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('0', $response->getTransactionReference()); - $this->assertSame('A valid amount is required.', $response->getMessage()); - $this->assertSame('3', $response->getCode()); - $this->assertSame('5', $response->getReasonCode()); - $this->assertSame('', $response->getAuthorizationCode()); - $this->assertSame('P', $response->getAVSCode()); - } - - public function testCaptureSuccess() - { - $httpResponse = $this->getMockHttpResponse('AIMCaptureSuccess.txt'); - $response = new AIMResponse($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('2184494531', $response->getTransactionReference()); - $this->assertSame('This transaction has been approved.', $response->getMessage()); - $this->assertSame('1', $response->getCode()); - $this->assertSame('1', $response->getReasonCode()); - $this->assertSame('F51OYG', $response->getAuthorizationCode()); - $this->assertSame('P', $response->getAVSCode()); - } - - public function testCaptureFailure() - { - $httpResponse = $this->getMockHttpResponse('AIMCaptureFailure.txt'); - $response = new AIMResponse($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('0', $response->getTransactionReference()); - $this->assertSame('The transaction cannot be found.', $response->getMessage()); - $this->assertSame('3', $response->getCode()); - $this->assertSame('16', $response->getReasonCode()); - $this->assertSame('', $response->getAuthorizationCode()); - $this->assertSame('P', $response->getAVSCode()); - } - - public function testPurchaseSuccess() - { - $httpResponse = $this->getMockHttpResponse('AIMPurchaseSuccess.txt'); - $response = new AIMResponse($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('2184492509', $response->getTransactionReference()); - $this->assertSame('This transaction has been approved.', $response->getMessage()); - $this->assertSame('1', $response->getCode()); - $this->assertSame('1', $response->getReasonCode()); - $this->assertSame('JE6JM1', $response->getAuthorizationCode()); - $this->assertSame('Y', $response->getAVSCode()); - } - - public function testPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('AIMPurchaseFailure.txt'); - $response = new AIMResponse($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('0', $response->getTransactionReference()); - $this->assertSame('A valid amount is required.', $response->getMessage()); - $this->assertSame('3', $response->getCode()); - $this->assertSame('5', $response->getReasonCode()); - $this->assertSame('', $response->getAuthorizationCode()); - $this->assertSame('P', $response->getAVSCode()); - } -} diff --git a/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php b/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php deleted file mode 100644 index e716a50d..00000000 --- a/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeRequestTest.php +++ /dev/null @@ -1,25 +0,0 @@ -request = new SIMCompleteAuthorizeRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testGetHash() - { - $this->assertSame(md5(''), $this->request->getHash()); - - $this->request->setHashSecret('hashsec'); - $this->request->setApiLoginId('apilogin'); - $this->request->setTransactionId('trnid'); - $this->request->setAmount('10.00'); - - $this->assertSame(md5('hashsecapilogintrnid10.00'), $this->request->getHash()); - } -} diff --git a/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponseTest.php b/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponseTest.php deleted file mode 100644 index daa199b8..00000000 --- a/tests/Omnipay/AuthorizeNet/Message/SIMCompleteAuthorizeResponseTest.php +++ /dev/null @@ -1,26 +0,0 @@ -getMockRequest(), array('x_response_code' => '1', 'x_trans_id' => '12345')); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('12345', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - public function testFailure() - { - $response = new SIMCompleteAuthorizeResponse($this->getMockRequest(), array('x_response_code' => '0', 'x_response_reason_text' => 'Declined')); - - $this->assertFalse($response->isSuccessful()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Declined', $response->getMessage()); - } -} diff --git a/tests/Omnipay/AuthorizeNet/Mock/AIMAuthorizeFailure.txt b/tests/Omnipay/AuthorizeNet/Mock/AIMAuthorizeFailure.txt deleted file mode 100644 index 5cbff0c5..00000000 --- a/tests/Omnipay/AuthorizeNet/Mock/AIMAuthorizeFailure.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:23:27 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 326 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - -|3|,|1|,|5|,|A valid amount is required.|,||,|P|,|0|,|12345|,|first purchase|,|-0.01|,|CC|,|auth_only|,||,|fjkdsl|,|fdjskl|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|3EB992D927587B9FC7A3D83F651CD7EF|,||,||,||,||,||,||,||,||,||,||,||,||,|XXXX1111|,|Visa|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|| \ No newline at end of file diff --git a/tests/Omnipay/AuthorizeNet/Mock/AIMAuthorizeSuccess.txt b/tests/Omnipay/AuthorizeNet/Mock/AIMAuthorizeSuccess.txt deleted file mode 100644 index b958a41e..00000000 --- a/tests/Omnipay/AuthorizeNet/Mock/AIMAuthorizeSuccess.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:22:58 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 350 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - -|1|,|1|,|1|,|This transaction has been approved.|,|GA4OQP|,|Y|,|2184493132|,|12345|,|first purchase|,|2.00|,|CC|,|auth_only|,||,|fjkdsl|,|fdjskl|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|50D842FB596025E1C7779440D0A62496|,|P|,|2|,||,||,||,||,||,||,||,||,||,||,|XXXX1111|,|Visa|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|| \ No newline at end of file diff --git a/tests/Omnipay/AuthorizeNet/Mock/AIMCaptureFailure.txt b/tests/Omnipay/AuthorizeNet/Mock/AIMCaptureFailure.txt deleted file mode 100644 index 6b9dd3ca..00000000 --- a/tests/Omnipay/AuthorizeNet/Mock/AIMCaptureFailure.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:58:47 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 297 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - -|3|,|2|,|16|,|The transaction cannot be found.|,||,|P|,|0|,||,||,|2.00|,|CC|,|prior_auth_capture|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|7432D28FA29C86EFEDBFD80C4767CD8C|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|| \ No newline at end of file diff --git a/tests/Omnipay/AuthorizeNet/Mock/AIMCaptureSuccess.txt b/tests/Omnipay/AuthorizeNet/Mock/AIMCaptureSuccess.txt deleted file mode 100644 index a7d06d04..00000000 --- a/tests/Omnipay/AuthorizeNet/Mock/AIMCaptureSuccess.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:56:28 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 326 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - -|1|,|1|,|1|,|This transaction has been approved.|,|F51OYG|,|P|,|2184494531|,||,||,|2.00|,|CC|,|prior_auth_capture|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|7B7038AB4FA82268A512E6B2F571853A|,||,||,||,||,||,||,||,||,||,||,||,||,|XXXX1111|,|Visa|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|| \ No newline at end of file diff --git a/tests/Omnipay/AuthorizeNet/Mock/AIMPurchaseFailure.txt b/tests/Omnipay/AuthorizeNet/Mock/AIMPurchaseFailure.txt deleted file mode 100644 index 0fe0b73d..00000000 --- a/tests/Omnipay/AuthorizeNet/Mock/AIMPurchaseFailure.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:00:47 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 323 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - -|3|,|1|,|5|,|A valid amount is required.|,||,|P|,|0|,|12345|,|first purchase|,|-0.01|,|CC|,|auth_capture|,||,|fds|,|fds|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|3EB992D927587B9FC7A3D83F651CD7EF|,||,||,||,||,||,||,||,||,||,||,||,||,|XXXX1111|,|Visa|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|| \ No newline at end of file diff --git a/tests/Omnipay/AuthorizeNet/Mock/AIMPurchaseSuccess.txt b/tests/Omnipay/AuthorizeNet/Mock/AIMPurchaseSuccess.txt deleted file mode 100644 index 59a44efd..00000000 --- a/tests/Omnipay/AuthorizeNet/Mock/AIMPurchaseSuccess.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:00:03 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 347 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - -|1|,|1|,|1|,|This transaction has been approved.|,|JE6JM1|,|Y|,|2184492509|,|12345|,|first purchase|,|1.00|,|CC|,|auth_capture|,||,|fds|,|fds|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|35951A3F0A91940575132EA09CA1DC31|,|P|,|2|,||,||,||,||,||,||,||,||,||,||,|XXXX1111|,|Visa|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|| \ No newline at end of file diff --git a/tests/Omnipay/AuthorizeNet/Mock/AIMVoidFailure.txt b/tests/Omnipay/AuthorizeNet/Mock/AIMVoidFailure.txt deleted file mode 100644 index 023dd7a1..00000000 --- a/tests/Omnipay/AuthorizeNet/Mock/AIMVoidFailure.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:00:47 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 309 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - -|3|,|2|,|33|,|A valid referenced transaction ID is required.|,||,|P|,|0|,||,||,|0.00|,|CC|,|void|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|554B8CA3AE27C6104986860760858E83|,||,||,||,||,||,||,||,||,||,||,||,||,|XXXX1111|,|Visa|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|| \ No newline at end of file diff --git a/tests/Omnipay/AuthorizeNet/Mock/AIMVoidSuccess.txt b/tests/Omnipay/AuthorizeNet/Mock/AIMVoidSuccess.txt deleted file mode 100644 index a05bf482..00000000 --- a/tests/Omnipay/AuthorizeNet/Mock/AIMVoidSuccess.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:00:03 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 307 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - -|1|,|1|,|310|,|This transaction has already been voided.|,||,|P|,|0|,||,||,|0.00|,|CC|,|void|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|554B8CA3AE27C6104986860760858E83|,|P|,|2|,||,||,||,||,||,||,||,||,||,||,|XXXX1111|,|Visa|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|| \ No newline at end of file diff --git a/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php b/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php deleted file mode 100644 index 6545aeea..00000000 --- a/tests/Omnipay/AuthorizeNet/SIMGatewayTest.php +++ /dev/null @@ -1,81 +0,0 @@ -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', - ); - } - - public function testAuthorize() - { - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNotEmpty($response->getRedirectUrl()); - - $redirectData = $response->getRedirectData(); - $this->assertSame('https://www.example.com/return', $redirectData['x_relay_url']); - } - - public function testCompleteAuthorize() - { - $this->getHttpRequest()->request->replace( - array( - 'x_response_code' => '1', - 'x_trans_id' => '12345', - 'x_MD5_Hash' => md5('elpmaxeexample9910.00'), - ) - ); - - $response = $this->gateway->completeAuthorize($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('12345', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - public function testPurchase() - { - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNotEmpty($response->getRedirectUrl()); - - $redirectData = $response->getRedirectData(); - $this->assertSame('https://www.example.com/return', $redirectData['x_relay_url']); - } - - public function testCompletePurchase() - { - $this->getHttpRequest()->request->replace( - array( - 'x_response_code' => '1', - 'x_trans_id' => '12345', - 'x_MD5_Hash' => md5('elpmaxeexample9910.00'), - ) - ); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('12345', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } -} diff --git a/tests/Omnipay/Buckaroo/GatewayTest.php b/tests/Omnipay/Buckaroo/GatewayTest.php deleted file mode 100644 index 4a3309dc..00000000 --- a/tests/Omnipay/Buckaroo/GatewayTest.php +++ /dev/null @@ -1,31 +0,0 @@ -gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testPurchase() - { - $request = $this->gateway->purchase(array('amount' => '10.00')); - - $this->assertInstanceOf('Omnipay\Buckaroo\Message\PurchaseRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } - - public function testPurchaseReturn() - { - $request = $this->gateway->completePurchase(array('amount' => '10.00')); - - $this->assertInstanceOf('Omnipay\Buckaroo\Message\CompletePurchaseRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } -} diff --git a/tests/Omnipay/Buckaroo/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/Buckaroo/Message/CompletePurchaseRequestTest.php deleted file mode 100644 index 321587cb..00000000 --- a/tests/Omnipay/Buckaroo/Message/CompletePurchaseRequestTest.php +++ /dev/null @@ -1,85 +0,0 @@ -request = new CompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize(array( - 'merchantId' => 'merchant id', - 'transactionId' => 13, - 'secret' => 'shhhh', - 'amount' => '12.00', - 'currency' => 'ZAR', - 'testMode' => true, - )); - $this->getHttpRequest()->request->replace(array( - 'bpe_signature2' => '351fad9e06e1aa041ec48726e0d98b81', - 'bpe_trx' => 'tricky', - 'bpe_timestamp' => '123456', - 'bpe_result' => 'success', - )); - } - - public function testGetData() - { - $data = $this->request->getData(); - - $this->assertSame($this->getHttpRequest()->request->all(), $data); - } - - /** - * @expectedException Omnipay\Common\Exception\InvalidRequestException - */ - public function testGetDataInvalidSignature() - { - $this->getHttpRequest()->request->set('bpe_signature2', 'zzz'); - - $this->request->getData(); - } - - public function testGenerateResponseSignature() - { - $this->request->initialize(array( - 'merchantId' => 'merchant id', - 'transactionId' => 13, - 'secret' => 'shhhh', - 'amount' => '12.00', - 'currency' => 'ZAR', - 'testMode' => true, - )); - $this->getHttpRequest()->request->replace(array( - 'bpe_trx' => 'tricky', - 'bpe_timestamp' => '123456', - 'bpe_result' => 'success', - )); - - $this->assertSame('351fad9e06e1aa041ec48726e0d98b81', $this->request->generateResponseSignature()); - } - - public function testSendSuccess() - { - $this->getHttpRequest()->request->set('bpe_result', '100'); - $this->getHttpRequest()->request->set('bpe_signature2', $this->request->generateResponseSignature()); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('tricky', $response->getTransactionReference()); - $this->assertSame('100', $response->getCode()); - } - - public function testSendError() - { - $this->getHttpRequest()->request->set('bpe_result', '999'); - $this->getHttpRequest()->request->set('bpe_signature2', $this->request->generateResponseSignature()); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('tricky', $response->getTransactionReference()); - $this->assertSame('999', $response->getCode()); - } -} diff --git a/tests/Omnipay/Buckaroo/Message/PurchaseRequestTest.php b/tests/Omnipay/Buckaroo/Message/PurchaseRequestTest.php deleted file mode 100644 index 80659fb3..00000000 --- a/tests/Omnipay/Buckaroo/Message/PurchaseRequestTest.php +++ /dev/null @@ -1,73 +0,0 @@ -request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize( - array( - 'merchantId' => 'merchant id', - 'secret' => 'shhhh', - 'amount' => '12.00', - 'returnUrl' => 'https://www.example.com/return', - ) - ); - } - - public function testGetData() - { - $this->request->initialize(array( - 'merchantId' => 'merchant id', - 'secret' => 'shhhh', - 'amount' => '12.00', - 'currency' => 'EUR', - 'testMode' => true, - 'transactionId' => 13, - 'returnUrl' => 'https://www.example.com/return', - )); - - $data = $this->request->getData(); - - $this->assertSame('merchant id', $data['BPE_Merchant']); - $this->assertSame(1200, $data['BPE_Amount']); - $this->assertSame('EUR', $data['BPE_Currency']); - $this->assertSame('EN', $data['BPE_Language']); - $this->assertSame(1, $data['BPE_Mode']); - $this->assertSame(13, $data['BPE_Invoice']); - $this->assertSame('https://www.example.com/return', $data['BPE_Return_Success']); - $this->assertSame('https://www.example.com/return', $data['BPE_Return_Reject']); - $this->assertSame('https://www.example.com/return', $data['BPE_Return_Error']); - $this->assertSame('POST', $data['BPE_Return_Method']); - $this->assertSame('a22b9bd563f52e0a3e8e28998f9f6a12', $data['BPE_Signature2']); - } - - public function testGenerateSignature() - { - $this->request->setSecret('abcdef'); - $data = array( - 'BPE_Merchant' => 'Tony Stark', - 'BPE_Invoice' => '99', - 'BPE_Amount' => '10000', - 'BPE_Currency' => 'ZAR', - 'BPE_Mode' => '1', - ); - - $this->assertSame('e93fea2554382e199df4dcf5fe74c1c6', $this->request->generateSignature($data)); - } - - public function testSend() - { - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertSame('POST', $response->getRedirectMethod()); - $this->assertSame('https://payment.buckaroo.nl/sslplus/request_for_authorization.asp', $response->getRedirectUrl()); - $this->assertSame($this->request->getData(), $response->getRedirectData()); - } -} diff --git a/tests/Omnipay/CardSave/GatewayTest.php b/tests/Omnipay/CardSave/GatewayTest.php deleted file mode 100644 index 33e4af79..00000000 --- a/tests/Omnipay/CardSave/GatewayTest.php +++ /dev/null @@ -1,53 +0,0 @@ -gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); - - $this->options = array( - 'amount' => '10.00', - 'returnUrl' => 'https://www.example.com/return', - 'card' => new CreditCard(array( - 'firstName' => 'Example', - 'lastName' => 'User', - 'number' => '4111111111111111', - 'expiryMonth' => '12', - 'expiryYear' => '2016', - 'cvv' => '123', - 'issueNumber' => '5', - 'startMonth' => '4', - 'startYear' => '2013', - )), - ); - } - - public function testPurchase() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\CardSave\Message\Response', $response); - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('130215141054377801316798', $response->getTransactionReference()); - } - - public function testPurchaseError() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('Input variable errors', $response->getMessage()); - } -} diff --git a/tests/Omnipay/CardSave/Message/ResponseTest.php b/tests/Omnipay/CardSave/Message/ResponseTest.php deleted file mode 100644 index 0fe3bf76..00000000 --- a/tests/Omnipay/CardSave/Message/ResponseTest.php +++ /dev/null @@ -1,60 +0,0 @@ -getMockHttpResponse('PurchaseFailureWithoutStatusCode.txt'); - new Response($this->getMockRequest(), $httpResponse->getBody()); - } - - public function testPurchaseSuccess() - { - $httpResponse = $this->getMockHttpResponse('PurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('130215141054377801316798', $response->getTransactionReference()); - $this->assertSame('AuthCode: 672167', $response->getMessage()); - $this->assertEmpty($response->getRedirectUrl()); - } - - public function testPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('PurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('', $response->getTransactionReference()); - $this->assertSame('Input variable errors', $response->getMessage()); - } - - public function testRedirect() - { - $httpResponse = $this->getMockHttpResponse('PurchaseRedirect.txt'); - - $request = m::mock('\Omnipay\Common\Message\AbstractRequest'); - $request->shouldReceive('getReturnUrl')->once()->andReturn('http://store.example.com/'); - - $response = new Response($request, $httpResponse->getBody()); - - $this->assertTrue($response->isRedirect()); - $this->assertSame('POST', $response->getRedirectMethod()); - $this->assertSame('http://some.redirect.com/', $response->getRedirectUrl()); - - $expectedData = array( - 'PaReq' => 'Some PaREQ', - 'TermUrl' => 'http://store.example.com/', - 'MD' => '130215141054377801316798', - ); - $this->assertEquals($expectedData, $response->getRedirectData()); - } -} diff --git a/tests/Omnipay/CardSave/Mock/PurchaseFailure.txt b/tests/Omnipay/CardSave/Mock/PurchaseFailure.txt deleted file mode 100644 index 9a8238ef..00000000 --- a/tests/Omnipay/CardSave/Mock/PurchaseFailure.txt +++ /dev/null @@ -1,10 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: private, max-age=0 -Content-Length: 689 -Content-Type: text/xml; charset=utf-8 -Node: VENUS -X-Powered-By: ASP.NET -X-AspNet-Version: 4.0.30319 -Date: Fri, 15 Feb 2013 14:06:34 GMT - -30Input variable errorsRequired variable (PaymentMessage.TransactionDetails.OrderID) is missing \ No newline at end of file diff --git a/tests/Omnipay/CardSave/Mock/PurchaseFailureWithoutStatusCode.txt b/tests/Omnipay/CardSave/Mock/PurchaseFailureWithoutStatusCode.txt deleted file mode 100644 index 5ef6f898..00000000 --- a/tests/Omnipay/CardSave/Mock/PurchaseFailureWithoutStatusCode.txt +++ /dev/null @@ -1,10 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: private, max-age=0 -Content-Length: 689 -Content-Type: text/xml; charset=utf-8 -Node: VENUS -X-Powered-By: ASP.NET -X-AspNet-Version: 4.0.30319 -Date: Fri, 15 Feb 2013 14:06:34 GMT - -Input variable errorsRequired variable (PaymentMessage.TransactionDetails.OrderID) is missing \ No newline at end of file diff --git a/tests/Omnipay/CardSave/Mock/PurchaseRedirect.txt b/tests/Omnipay/CardSave/Mock/PurchaseRedirect.txt deleted file mode 100644 index 05979a07..00000000 --- a/tests/Omnipay/CardSave/Mock/PurchaseRedirect.txt +++ /dev/null @@ -1,10 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: private, max-age=0 -Content-Length: 944 -Content-Type: text/xml; charset=utf-8 -Node: VENUS -X-Powered-By: ASP.NET -X-AspNet-Version: 4.0.30319 -Date: Fri, 15 Feb 2013 14:10:53 GMT - -3AuthCode: 672167672167http://some.redirect.com/Some PaREQNOT_ENROLLED \ No newline at end of file diff --git a/tests/Omnipay/CardSave/Mock/PurchaseSuccess.txt b/tests/Omnipay/CardSave/Mock/PurchaseSuccess.txt deleted file mode 100644 index ed679d03..00000000 --- a/tests/Omnipay/CardSave/Mock/PurchaseSuccess.txt +++ /dev/null @@ -1,10 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: private, max-age=0 -Content-Length: 944 -Content-Type: text/xml; charset=utf-8 -Node: VENUS -X-Powered-By: ASP.NET -X-AspNet-Version: 4.0.30319 -Date: Fri, 15 Feb 2013 14:10:53 GMT - -0AuthCode: 672167672167NOT_ENROLLED \ No newline at end of file diff --git a/tests/Omnipay/Common/AbstractGatewayTest.php b/tests/Omnipay/Common/AbstractGatewayTest.php deleted file mode 100644 index 13bc0507..00000000 --- a/tests/Omnipay/Common/AbstractGatewayTest.php +++ /dev/null @@ -1,24 +0,0 @@ -gateway = m::mock("\Omnipay\Common\AbstractGateway[getName,getDefaultParameters,purchase]"); - } - - public function testGetShortName() - { - // test a couple of known getShortName() examples - $gateway = GatewayFactory::create('PayPal_Express'); - $this->assertSame('PayPal_Express', $gateway->getShortName()); - - $gateway = GatewayFactory::create('Stripe'); - $this->assertSame('Stripe', $gateway->getShortName()); - } -} diff --git a/tests/Omnipay/Common/CreditCardTest.php b/tests/Omnipay/Common/CreditCardTest.php deleted file mode 100644 index c274aeb5..00000000 --- a/tests/Omnipay/Common/CreditCardTest.php +++ /dev/null @@ -1,501 +0,0 @@ -card = new CreditCard; - $this->card->setNumber('4111111111111111'); - $this->card->setFirstName('Example'); - $this->card->setLastName('Customer'); - $this->card->setExpiryMonth('4'); - $this->card->setExpiryYear(gmdate('Y')+2); - $this->card->setCvv('123'); - } - - public function testConstructWithParams() - { - $card = new CreditCard(array('name' => 'Test Customer')); - $this->assertSame('Test Customer', $card->getName()); - } - - public function testInitializeWithParams() - { - $card = new CreditCard; - $card->initialize(array('name' => 'Test Customer')); - $this->assertSame('Test Customer', $card->getName()); - } - - public function testGetParamters() - { - $card = new CreditCard(array( - 'name' => 'Example Customer', - 'number' => '1234', - 'expiryMonth' => 6, - 'expiryYear' => 2016, - )); - - $parameters = $card->getParameters(); - $this->assertSame('Example', $parameters['billingFirstName']); - $this->assertSame('Customer', $parameters['billingLastName']); - $this->assertSame('1234', $parameters['number']); - $this->assertSame(6, $parameters['expiryMonth']); - $this->assertSame(2016, $parameters['expiryYear']); - } - - public function testValidateFixture() - { - $this->card->validate(); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidCreditCardException - * @expectedExceptionMessage The number parameter is required - */ - public function testValidateNumberRequired() - { - $this->card->setNumber(null); - $this->card->validate(); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidCreditCardException - * @expectedExceptionMessage The expiryMonth parameter is required - */ - public function testValidateExpiryMonthRequired() - { - $this->card->setExpiryMonth(null); - $this->card->validate(); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidCreditCardException - * @expectedExceptionMessage The expiryYear parameter is required - */ - public function testValidateExpiryYearRequired() - { - $this->card->setExpiryYear(null); - $this->card->validate(); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidCreditCardException - * @expectedExceptionMessage Card has expired - */ - public function testValidateExpiryDate() - { - $this->card->setExpiryYear(gmdate('Y')-1); - $this->card->validate(); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidCreditCardException - * @expectedExceptionMessage Card number is invalid - */ - public function testValidateNumber() - { - $this->card->setNumber('4111111111111110'); - $this->card->validate(); - } - - public function testGetSupportedBrands() - { - $brands = $this->card->getSupportedBrands(); - $this->assertInternalType('array', $brands); - $this->assertArrayHasKey(CreditCard::BRAND_VISA, $brands); - } - - public function testFirstName() - { - $this->card->setFirstName('Bob'); - $this->assertEquals('Bob', $this->card->getFirstName()); - } - - public function testLastName() - { - $this->card->setLastName('Smith'); - $this->assertEquals('Smith', $this->card->getLastName()); - } - - public function testGetName() - { - $this->card->setFirstName('Bob'); - $this->card->setLastName('Smith'); - $this->assertEquals('Bob Smith', $this->card->getName()); - } - - public function testSetName() - { - $this->card->setName('Bob Smith'); - $this->assertEquals('Bob', $this->card->getFirstName()); - $this->assertEquals('Smith', $this->card->getLastName()); - } - - public function testSetNameWithOneName() - { - $this->card->setName('Bob'); - $this->assertEquals('Bob', $this->card->getFirstName()); - $this->assertEquals('', $this->card->getLastName()); - } - - public function testSetNameWithMultipleNames() - { - $this->card->setName('Bob John Smith'); - $this->assertEquals('Bob', $this->card->getFirstName()); - $this->assertEquals('John Smith', $this->card->getLastName()); - } - - public function testNumber() - { - $this->card->setNumber('4000000000000000'); - $this->assertEquals('4000000000000000', $this->card->getNumber()); - } - - public function testSetNumberStripsNonDigits() - { - $this->card->setNumber('4000 0000 00b00 0000'); - $this->assertEquals('4000000000000000', $this->card->getNumber()); - } - - public function testGetBrandDefault() - { - $card = new CreditCard; - $this->assertNull($card->getBrand()); - } - - public function testGetBrandVisa() - { - $card = new CreditCard(array('number' => '4242424242424242')); - $this->assertSame(CreditCard::BRAND_VISA, $card->getBrand()); - } - - public function testGetBrandMasterCard() - { - $card = new CreditCard(array('number' => '5555555555554444')); - $this->assertSame(CreditCard::BRAND_MASTERCARD, $card->getBrand()); - } - - public function testGetBrandAmex() - { - $card = new CreditCard(array('number' => '378282246310005')); - $this->assertSame(CreditCard::BRAND_AMEX, $card->getBrand()); - } - - public function testGetBrandDiscover() - { - $card = new CreditCard(array('number' => '6011111111111117')); - $this->assertSame(CreditCard::BRAND_DISCOVER, $card->getBrand()); - } - - public function testGetBrandDinersClub() - { - $card = new CreditCard(array('number' => '30569309025904')); - $this->assertSame(CreditCard::BRAND_DINERS_CLUB, $card->getBrand()); - } - - public function testGetBrandJcb() - { - $card = new CreditCard(array('number' => '3530111333300000')); - $this->assertSame(CreditCard::BRAND_JCB, $card->getBrand()); - } - - public function testExpiryMonth() - { - $this->card->setExpiryMonth(9); - $this->assertSame(9, $this->card->getExpiryMonth()); - } - - public function testExpiryMonthLeadingZeros() - { - $this->card->setExpiryMonth('09'); - $this->assertSame(9, $this->card->getExpiryMonth()); - } - - public function testExpiryYear() - { - $this->card->setExpiryYear(2012); - $this->assertSame(2012, $this->card->getExpiryYear()); - } - - public function testExpiryYearTwoDigits() - { - $this->card->setExpiryYear('12'); - $this->assertSame(2012, $this->card->getExpiryYear()); - } - - public function testExpiryDate() - { - $this->assertSame($this->card, $this->card->setExpiryMonth('09')); - $this->assertSame($this->card, $this->card->setExpiryYear('2012')); - $this->assertSame('092012', $this->card->getExpiryDate('mY')); - } - - public function testStartMonth() - { - $this->card->setStartMonth(9); - $this->assertSame(9, $this->card->getStartMonth()); - } - - public function testStartMonthLeadingZeros() - { - $this->card->setStartMonth('09'); - $this->assertSame(9, $this->card->getStartMonth()); - } - - public function testStartYear() - { - $this->card->setStartYear(2012); - $this->assertSame(2012, $this->card->getStartYear()); - } - - public function testStartYearTwoDigits() - { - $this->card->setStartYear('12'); - $this->assertSame(2012, $this->card->getStartYear()); - } - - public function testStartDate() - { - $this->card->setStartMonth('11'); - $this->card->setStartYear('2012'); - $this->assertEquals('112012', $this->card->getStartDate('mY')); - } - - public function testCvv() - { - $this->card->setCvv('456'); - $this->assertEquals('456', $this->card->getCvv()); - } - - public function testIssueNumber() - { - $this->card->setIssueNumber('12'); - $this->assertSame('12', $this->card->getIssueNumber()); - } - - public function testBillingFirstName() - { - $this->card->setBillingFirstName('Bob'); - $this->assertEquals('Bob', $this->card->getBillingFirstName()); - $this->assertEquals('Bob', $this->card->getFirstName()); - } - - public function testBillingLastName() - { - $this->card->setBillingLastName('Smith'); - $this->assertEquals('Smith', $this->card->getBillingLastName()); - $this->assertEquals('Smith', $this->card->getLastName()); - } - - public function testBillingName() - { - $this->card->setBillingFirstName('Bob'); - $this->card->setBillingLastName('Smith'); - $this->assertEquals('Bob Smith', $this->card->getBillingName()); - - $this->card->setBillingName('John Foo'); - $this->assertEquals('John', $this->card->getBillingFirstName()); - $this->assertEquals('Foo', $this->card->getBillingLastName()); - } - - public function testBillingCompany() - { - $this->card->setBillingCompany('SuperSoft'); - $this->assertEquals('SuperSoft', $this->card->getBillingCompany()); - $this->assertEquals('SuperSoft', $this->card->getCompany()); - } - - public function testBillingAddress1() - { - $this->card->setBillingAddress1('31 Spooner St'); - $this->assertEquals('31 Spooner St', $this->card->getBillingAddress1()); - $this->assertEquals('31 Spooner St', $this->card->getAddress1()); - } - - public function testBillingAddress2() - { - $this->card->setBillingAddress2('Suburb'); - $this->assertEquals('Suburb', $this->card->getBillingAddress2()); - $this->assertEquals('Suburb', $this->card->getAddress2()); - } - - public function testBillingCity() - { - $this->card->setBillingCity('Quahog'); - $this->assertEquals('Quahog', $this->card->getBillingCity()); - $this->assertEquals('Quahog', $this->card->getCity()); - } - - public function testBillingPostcode() - { - $this->card->setBillingPostcode('12345'); - $this->assertEquals('12345', $this->card->getBillingPostcode()); - $this->assertEquals('12345', $this->card->getPostcode()); - } - - public function testBillingState() - { - $this->card->setBillingState('RI'); - $this->assertEquals('RI', $this->card->getBillingState()); - $this->assertEquals('RI', $this->card->getState()); - } - - public function testBillingCountry() - { - $this->card->setBillingCountry('US'); - $this->assertEquals('US', $this->card->getBillingCountry()); - $this->assertEquals('US', $this->card->getCountry()); - } - - public function testBillingPhone() - { - $this->card->setBillingPhone('12345'); - $this->assertSame('12345', $this->card->getBillingPhone()); - $this->assertSame('12345', $this->card->getPhone()); - } - - public function testShippingFirstName() - { - $this->card->setShippingFirstName('James'); - $this->assertEquals('James', $this->card->getShippingFirstName()); - } - - public function testShippingLastName() - { - $this->card->setShippingLastName('Doctor'); - $this->assertEquals('Doctor', $this->card->getShippingLastName()); - } - - public function testShippingName() - { - $this->card->setShippingFirstName('Bob'); - $this->card->setShippingLastName('Smith'); - $this->assertEquals('Bob Smith', $this->card->getShippingName()); - - $this->card->setShippingName('John Foo'); - $this->assertEquals('John', $this->card->getShippingFirstName()); - $this->assertEquals('Foo', $this->card->getShippingLastName()); - } - - public function testShippingCompany() - { - $this->card->setShippingCompany('SuperSoft'); - $this->assertEquals('SuperSoft', $this->card->getShippingCompany()); - } - - public function testShippingAddress1() - { - $this->card->setShippingAddress1('31 Spooner St'); - $this->assertEquals('31 Spooner St', $this->card->getShippingAddress1()); - } - - public function testShippingAddress2() - { - $this->card->setShippingAddress2('Suburb'); - $this->assertEquals('Suburb', $this->card->getShippingAddress2()); - } - - public function testShippingCity() - { - $this->card->setShippingCity('Quahog'); - $this->assertEquals('Quahog', $this->card->getShippingCity()); - } - - public function testShippingPostcode() - { - $this->card->setShippingPostcode('12345'); - $this->assertEquals('12345', $this->card->getShippingPostcode()); - } - - public function testShippingState() - { - $this->card->setShippingState('RI'); - $this->assertEquals('RI', $this->card->getShippingState()); - } - - public function testShippingCountry() - { - $this->card->setShippingCountry('US'); - $this->assertEquals('US', $this->card->getShippingCountry()); - } - - public function testShippingPhone() - { - $this->card->setShippingPhone('12345'); - $this->assertEquals('12345', $this->card->getShippingPhone()); - } - - public function testCompany() - { - $this->card->setCompany('FooBar'); - $this->assertEquals('FooBar', $this->card->getCompany()); - $this->assertEquals('FooBar', $this->card->getBillingCompany()); - $this->assertEquals('FooBar', $this->card->getShippingCompany()); - } - - public function testAddress1() - { - $this->card->setAddress1('31 Spooner St'); - $this->assertEquals('31 Spooner St', $this->card->getAddress1()); - $this->assertEquals('31 Spooner St', $this->card->getBillingAddress1()); - $this->assertEquals('31 Spooner St', $this->card->getShippingAddress1()); - } - - public function testAddress2() - { - $this->card->setAddress2('Suburb'); - $this->assertEquals('Suburb', $this->card->getAddress2()); - $this->assertEquals('Suburb', $this->card->getBillingAddress2()); - $this->assertEquals('Suburb', $this->card->getShippingAddress2()); - } - - public function testCity() - { - $this->card->setCity('Quahog'); - $this->assertEquals('Quahog', $this->card->getCity()); - $this->assertEquals('Quahog', $this->card->getBillingCity()); - $this->assertEquals('Quahog', $this->card->getShippingCity()); - } - - public function testPostcode() - { - $this->card->setPostcode('12345'); - $this->assertEquals('12345', $this->card->getPostcode()); - $this->assertEquals('12345', $this->card->getBillingPostcode()); - $this->assertEquals('12345', $this->card->getShippingPostcode()); - } - - public function testState() - { - $this->card->setState('RI'); - $this->assertEquals('RI', $this->card->getState()); - $this->assertEquals('RI', $this->card->getBillingState()); - $this->assertEquals('RI', $this->card->getShippingState()); - } - - public function testCountry() - { - $this->card->setCountry('US'); - $this->assertEquals('US', $this->card->getCountry()); - $this->assertEquals('US', $this->card->getBillingCountry()); - $this->assertEquals('US', $this->card->getShippingCountry()); - } - - public function testPhone() - { - $this->card->setPhone('12345'); - $this->assertEquals('12345', $this->card->getPhone()); - $this->assertEquals('12345', $this->card->getBillingPhone()); - $this->assertEquals('12345', $this->card->getShippingPhone()); - } - - public function testEmail() - { - $this->card->setEmail('adrian@example.com'); - $this->assertEquals('adrian@example.com', $this->card->getEmail()); - } -} diff --git a/tests/Omnipay/Common/CurrencyTest.php b/tests/Omnipay/Common/CurrencyTest.php deleted file mode 100644 index 0c3c965d..00000000 --- a/tests/Omnipay/Common/CurrencyTest.php +++ /dev/null @@ -1,42 +0,0 @@ -assertSame('USD', $currency->getCode()); - $this->assertSame('840', $currency->getNumeric()); - $this->assertSame(2, $currency->getDecimals()); - } - - public function testFindLowercase() - { - $currency = Currency::find('usd'); - - $this->assertSame('USD', $currency->getCode()); - $this->assertSame('840', $currency->getNumeric()); - $this->assertSame(2, $currency->getDecimals()); - } - - public function testUnknownCurrencyReturnsNull() - { - $currency = Currency::find('XYZ'); - - $this->assertNull($currency); - } - - public function testAll() - { - $currencies = Currency::all(); - - $this->assertTrue(isset($currencies['USD'])); - $this->assertFalse(isset($currencies['XYZ'])); - } -} diff --git a/tests/Omnipay/Common/GatewayFactoryTest.php b/tests/Omnipay/Common/GatewayFactoryTest.php deleted file mode 100644 index 24b51542..00000000 --- a/tests/Omnipay/Common/GatewayFactoryTest.php +++ /dev/null @@ -1,30 +0,0 @@ -assertInstanceOf('\\Omnipay\\Stripe\\Gateway', $gateway); - } - - /** - * @expectedException \Omnipay\Common\Exception\RuntimeException - * @expectedExceptionMessage Class '\Omnipay\Invalid\Gateway' not found - */ - public function testCreateInvalid() - { - $gateway = GatewayFactory::create('Invalid'); - } - - public function testFind() - { - $gateways = GatewayFactory::find(); - $this->assertContains('PayPal_Express', $gateways); - $this->assertContains('Stripe', $gateways); - } -} diff --git a/tests/Omnipay/Common/HelperTest.php b/tests/Omnipay/Common/HelperTest.php deleted file mode 100644 index c824df28..00000000 --- a/tests/Omnipay/Common/HelperTest.php +++ /dev/null @@ -1,137 +0,0 @@ -assertEquals('testCase', $result); - } - - public function testCamelCaseAlreadyCorrect() - { - $result = Helper::camelCase('testCase'); - $this->assertEquals('testCase', $result); - } - - public function testValidateLuhnValid() - { - $result = Helper::validateLuhn('4111111111111111'); - $this->assertTrue($result); - } - - public function testValidateLuhnInvalid() - { - $result = Helper::validateLuhn('4111111111111110'); - $this->assertFalse($result); - } - - public function testValidateLuhnNull() - { - $result = Helper::validateLuhn(null); - $this->assertTrue($result); - } - - public function testInitializeIgnoresNull() - { - $target = m::mock(); - Helper::initialize($target, null); - } - - public function testInitializeIgnoresString() - { - $target = m::mock(); - Helper::initialize($target, 'invalid'); - } - - public function testInitializeCallsSetters() - { - $target = m::mock('\Omnipay\Common\CreditCard'); - $target->shouldReceive('setName')->once()->with('adrian'); - $target->shouldReceive('setNumber')->once()->with('1234'); - - Helper::initialize($target, array('name' => 'adrian', 'number' => '1234')); - } - - public function testInitializeIgnoresInvalidParameters() - { - $target = m::mock('\Omnipay\Common\CreditCard'); - $target->shouldReceive('setName')->once()->with('adrian'); - - Helper::initialize($target, array('name' => 'adrian', 'extra' => 'invalid')); - } - - public function testGetGatewayShortNameSimple() - { - $shortName = Helper::getGatewayShortName('Omnipay\\Stripe\\Gateway'); - $this->assertSame('Stripe', $shortName); - } - - public function testGetGatewayShortNameSimpleLeadingSlash() - { - $shortName = Helper::getGatewayShortName('\\Omnipay\\Stripe\\Gateway'); - $this->assertSame('Stripe', $shortName); - } - - public function testGetGatewayShortNameUnderscore() - { - $shortName = Helper::getGatewayShortName('Omnipay\\PayPal\\ExpressGateway'); - $this->assertSame('PayPal_Express', $shortName); - } - - public function testGetGatewayShortNameUnderscoreLeadingSlash() - { - $shortName = Helper::getGatewayShortName('\\Omnipay\\PayPal\\ExpressGateway'); - $this->assertSame('PayPal_Express', $shortName); - } - - public function testGetGatewayShortNameCustomGateway() - { - $shortName = Helper::getGatewayShortName('\\Custom\\Gateway'); - $this->assertSame('\\Custom\\Gateway', $shortName); - } - - /** - * Type with namespace should simply be returned as is - */ - public function testGetGatewayClassNameExistingNamespace() - { - $class = Helper::getGatewayClassName('\\Custom\\Gateway'); - $this->assertEquals('\\Custom\\Gateway', $class); - } - - /** - * Type with namespace marker should be left intact, even if it contains an underscore - */ - public function testGetGatewayClassNameExistingNamespaceUnderscore() - { - $class = Helper::getGatewayClassName('\\Custom_Gateway'); - $this->assertEquals('\\Custom_Gateway', $class); - } - - public function testGetGatewayClassNameSimple() - { - $class = Helper::getGatewayClassName('Stripe'); - $this->assertEquals('\\Omnipay\\Stripe\\Gateway', $class); - } - - public function testGetGatewayClassNamePartialNamespace() - { - $class = Helper::getGatewayClassName('PayPal\\Express'); - $this->assertEquals('\\Omnipay\\PayPal\\ExpressGateway', $class); - } - - /** - * Underscored types should be resolved in a PSR-0 fashion - */ - public function testGetGatewayClassNameUnderscoreNamespace() - { - $class = Helper::getGatewayClassName('PayPal_Express'); - $this->assertEquals('\\Omnipay\\PayPal\\ExpressGateway', $class); - } -} diff --git a/tests/Omnipay/Common/ItemBagTest.php b/tests/Omnipay/Common/ItemBagTest.php deleted file mode 100644 index d073bc94..00000000 --- a/tests/Omnipay/Common/ItemBagTest.php +++ /dev/null @@ -1,75 +0,0 @@ -bag = new ItemBag; - } - - public function testConstruct() - { - $bag = new ItemBag(array(array('name' => 'Floppy Disk'))); - $this->assertCount(1, $bag); - } - - public function testAll() - { - $items = array(new Item, new Item); - $bag = new ItemBag($items); - - $this->assertSame($items, $bag->all()); - } - - public function testReplace() - { - $items = array(new Item, new Item); - $this->bag->replace($items); - - $this->assertSame($items, $this->bag->all()); - } - - public function testAddWithItem() - { - $item = new Item; - $item->setName('CD-ROM'); - $this->bag->add($item); - - $contents = $this->bag->all(); - $this->assertSame($item, $contents[0]); - } - - public function testAddWithArray() - { - $item = array('name' => 'CD-ROM'); - $this->bag->add($item); - - $contents = $this->bag->all(); - $this->assertInstanceOf('\Omnipay\Common\Item', $contents[0]); - $this->assertSame('CD-ROM', $contents[0]->getName()); - } - - public function testGetIterator() - { - $item = new Item; - $item->setName('CD-ROM'); - $this->bag->add($item); - - foreach ($this->bag as $bagItem) { - $this->assertSame($item, $bagItem); - } - } - - public function testCount() - { - $this->bag->add(new Item); - $this->bag->add(new Item); - $this->bag->add(new Item); - - $this->assertSame(3, count($this->bag)); - } -} diff --git a/tests/Omnipay/Common/ItemTest.php b/tests/Omnipay/Common/ItemTest.php deleted file mode 100644 index 82a99323..00000000 --- a/tests/Omnipay/Common/ItemTest.php +++ /dev/null @@ -1,55 +0,0 @@ -item = new Item; - } - - public function testConstructWithParams() - { - $item = new Item(array('name' => 'Floppy Disk')); - $this->assertSame('Floppy Disk', $item->getName()); - } - - public function testInitializeWithParams() - { - $this->item->initialize(array('name' => 'Floppy Disk')); - $this->assertSame('Floppy Disk', $this->item->getName()); - } - - public function testGetParameters() - { - $this->item->setName('CD-ROM'); - $this->assertSame(array('name' => 'CD-ROM'), $this->item->getParameters()); - } - - public function testName() - { - $this->item->setName('CD-ROM'); - $this->assertSame('CD-ROM', $this->item->getName()); - } - - public function testDescription() - { - $this->item->setDescription('CD'); - $this->assertSame('CD', $this->item->getDescription()); - } - - public function testQuantity() - { - $this->item->setQuantity(5); - $this->assertSame(5, $this->item->getQuantity()); - } - - public function testPrice() - { - $this->item->setPrice('10.01'); - $this->assertSame('10.01', $this->item->getPrice()); - } -} diff --git a/tests/Omnipay/Common/Message/AbstractRequestTest.php b/tests/Omnipay/Common/Message/AbstractRequestTest.php deleted file mode 100644 index c25e0a8a..00000000 --- a/tests/Omnipay/Common/Message/AbstractRequestTest.php +++ /dev/null @@ -1,282 +0,0 @@ -request = m::mock('\Omnipay\Common\Message\AbstractRequest[getData,sendData]'); - $this->request->initialize(); - } - - public function testInitializeWithParams() - { - $this->assertSame($this->request, $this->request->initialize(array('amount' => '1.23'))); - $this->assertSame('1.23', $this->request->getAmount()); - } - - public function testCard() - { - // no type checking on card parameter - $card = new CreditCard; - $this->assertSame($this->request, $this->request->setCard($card)); - $this->assertSame($card, $this->request->getCard()); - } - - public function testSetCardWithArray() - { - // passing array should create CreditCard object - $this->assertSame($this->request, $this->request->setCard(array('number' => '1234'))); - - $card = $this->request->getCard(); - $this->assertInstanceOf('\Omnipay\Common\CreditCard', $card); - $this->assertSame('1234', $card->getNumber()); - } - - public function testToken() - { - $this->assertSame($this->request, $this->request->setToken('12345')); - $this->assertSame('12345', $this->request->getToken()); - } - - public function testCardReference() - { - $this->assertSame($this->request, $this->request->setCardReference('12345')); - $this->assertSame('12345', $this->request->getCardReference()); - } - - public function testAmount() - { - $this->assertSame($this->request, $this->request->setAmount('2.00')); - $this->assertSame('2.00', $this->request->getAmount()); - } - - public function testAmountWithFloat() - { - $this->assertSame($this->request, $this->request->setAmount(2.0)); - $this->assertSame('2.00', $this->request->getAmount()); - } - - public function testAmountWithEmpty() - { - $this->assertSame($this->request, $this->request->setAmount(null)); - $this->assertSame(null, $this->request->getAmount()); - } - - public function testGetAmountNoDecimals() - { - $this->assertSame($this->request, $this->request->setCurrency('JPY')); - $this->assertSame($this->request, $this->request->setAmount('1366')); - $this->assertSame('1366', $this->request->getAmount()); - } - - public function testGetAmountNoDecimalsRounding() - { - $this->assertSame($this->request, $this->request->setAmount('136.5')); - $this->assertSame($this->request, $this->request->setCurrency('JPY')); - $this->assertSame('137', $this->request->getAmount()); - } - - /** - * @expectedException Omnipay\Common\Exception\InvalidRequestException - */ - public function testAmountWithIntThrowsException() - { - // ambiguous value, avoid errors upgrading from v0.9 - $this->assertSame($this->request, $this->request->setAmount(10)); - $this->request->getAmount(); - } - - /** - * @expectedException Omnipay\Common\Exception\InvalidRequestException - */ - public function testAmountWithIntStringThrowsException() - { - // ambiguous value, avoid errors upgrading from v0.9 - $this->assertSame($this->request, $this->request->setAmount('10')); - $this->request->getAmount(); - } - - public function testGetAmountInteger() - { - $this->assertSame($this->request, $this->request->setAmount('13.66')); - $this->assertSame(1366, $this->request->getAmountInteger()); - } - - public function testGetAmountIntegerNoDecimals() - { - $this->assertSame($this->request, $this->request->setCurrency('JPY')); - $this->assertSame($this->request, $this->request->setAmount('1366')); - $this->assertSame(1366, $this->request->getAmountInteger()); - } - - public function testCurrency() - { - $this->assertSame($this->request, $this->request->setCurrency('USD')); - $this->assertSame('USD', $this->request->getCurrency()); - } - - public function testCurrencyLowercase() - { - $this->assertSame($this->request, $this->request->setCurrency('usd')); - $this->assertSame('USD', $this->request->getCurrency()); - } - - public function testCurrencyNumeric() - { - $this->assertSame($this->request, $this->request->setCurrency('USD')); - $this->assertSame('840', $this->request->getCurrencyNumeric()); - } - - public function testCurrencyDecimals() - { - $this->assertSame($this->request, $this->request->setCurrency('JPY')); - $this->assertSame(0, $this->request->getCurrencyDecimalPlaces()); - } - - public function testFormatCurrency() - { - $this->assertSame('1234.00', $this->request->formatCurrency(1234)); - } - - public function testFormatCurrencyNoDecimals() - { - $this->request->setCurrency('JPY'); - $this->assertSame('1234', $this->request->formatCurrency(1234)); - } - - public function testDescription() - { - $this->assertSame($this->request, $this->request->setDescription('Cool product')); - $this->assertSame('Cool product', $this->request->getDescription()); - } - - public function testTransactionId() - { - $this->assertSame($this->request, $this->request->setTransactionId(87)); - $this->assertSame(87, $this->request->getTransactionId()); - } - - public function testTransactionReference() - { - $this->assertSame($this->request, $this->request->setTransactionReference('xyz')); - $this->assertSame('xyz', $this->request->getTransactionReference()); - } - - public function testItemsArray() - { - $this->assertSame($this->request, $this->request->setItems(array( - array('name' => 'Floppy Disk'), - array('name' => 'CD-ROM'), - ))); - - $itemBag = $this->request->getItems(); - $this->assertInstanceOf('\Omnipay\Common\ItemBag', $itemBag); - - $items = $itemBag->all(); - $this->assertSame('Floppy Disk', $items[0]->getName()); - $this->assertSame('CD-ROM', $items[1]->getName()); - } - - public function testItemsBag() - { - $itemBag = new ItemBag; - $itemBag->add(array('name' => 'Floppy Disk')); - - $this->assertSame($this->request, $this->request->setItems($itemBag)); - $this->assertSame($itemBag, $this->request->getItems()); - } - - public function testClientIp() - { - $this->assertSame($this->request, $this->request->setClientIp('127.0.0.1')); - $this->assertSame('127.0.0.1', $this->request->getClientIp()); - } - - public function testReturnUrl() - { - $this->assertSame($this->request, $this->request->setReturnUrl('https://www.example.com/return')); - $this->assertSame('https://www.example.com/return', $this->request->getReturnUrl()); - } - - public function testCancelUrl() - { - $this->assertSame($this->request, $this->request->setCancelUrl('https://www.example.com/cancel')); - $this->assertSame('https://www.example.com/cancel', $this->request->getCancelUrl()); - } - - public function testNotifyUrl() - { - $this->assertSame($this->request, $this->request->setNotifyUrl('https://www.example.com/notify')); - $this->assertSame('https://www.example.com/notify', $this->request->getNotifyUrl()); - } - - public function testInitializedParametersAreSet() - { - $params = array('testMode' => 'success'); - - $this->request->initialize($params); - - $this->assertSame($this->request->getTestMode(), 'success'); - } - - public function testGetParameters() - { - $this->request->setTestMode(true); - $this->request->setToken('asdf'); - - $expected = array( - 'testMode' => true, - 'token' => 'asdf', - ); - $this->assertEquals($expected, $this->request->getParameters()); - } - - public function testCanValidateExistingParameters() - { - $this->request->setTestMode(true); - $this->request->setToken('asdf'); - - $this->assertNull($this->request->validate('testMode', 'token')); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidRequestException - */ - public function testInvalidParametersThrowsException() - { - $this->request->setTestMode(true); - - $this->request->validate('testMode', 'token'); - } - - public function testNoCurrencyReturnedIfCurrencyNotSet() - { - $this->assertNull($this->request->getCurrencyNumeric()); - } - - public function testSend() - { - $response = m::mock('\Omnipay\Common\Message\ResponseInterface'); - $data = array('request data'); - - $this->request->shouldReceive('getData')->once()->andReturn($data); - $this->request->shouldReceive('sendData')->once()->with($data)->andReturn($response); - - $this->assertSame($response, $this->request->send()); - } - - /** - * @expectedException \Omnipay\Common\Exception\RuntimeException - */ - public function testMustSendRequestBeforeGettingResponse() - { - $this->request->getResponse(); - } -} diff --git a/tests/Omnipay/Common/Message/AbstractResponseTest.php b/tests/Omnipay/Common/Message/AbstractResponseTest.php deleted file mode 100644 index 290094a4..00000000 --- a/tests/Omnipay/Common/Message/AbstractResponseTest.php +++ /dev/null @@ -1,30 +0,0 @@ -assertFalse($response->isRedirect()); - $this->assertNull($response->getData()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertNull($response->getCode()); - } - - /** - * @expectedException \Omnipay\Common\Exception\RuntimeException - */ - public function testCannotRedirectResponseThatIsNotRedirectResponseInterface() - { - $response = m::mock('\Omnipay\Common\Message\AbstractResponse[isSuccessful,isRedirect]'); - - $response->getRedirectResponse(); - } -} diff --git a/tests/Omnipay/Dummy/GatewayTest.php b/tests/Omnipay/Dummy/GatewayTest.php deleted file mode 100644 index 88323375..00000000 --- a/tests/Omnipay/Dummy/GatewayTest.php +++ /dev/null @@ -1,72 +0,0 @@ -gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); - - $this->options = array( - 'amount' => '10.00', - 'card' => $this->getValidCard(), - ); - } - - public function testAuthorizeSuccess() - { - // card numbers ending in even number should be successful - $this->options['card']['number'] = '4242424242424242'; - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\Dummy\Message\Response', $response); - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNotEmpty($response->getTransactionReference()); - $this->assertSame('Success', $response->getMessage()); - } - - public function testAuthorizeFailure() - { - // card numbers ending in odd number should be declined - $this->options['card']['number'] = '4111111111111111'; - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\Dummy\Message\Response', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNotEmpty($response->getTransactionReference()); - $this->assertSame('Failure', $response->getMessage()); - } - - public function testPurchaseSuccess() - { - // card numbers ending in even number should be successful - $this->options['card']['number'] = '4242424242424242'; - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\Dummy\Message\Response', $response); - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNotEmpty($response->getTransactionReference()); - $this->assertSame('Success', $response->getMessage()); - } - - public function testPurcahseFailure() - { - // card numbers ending in odd number should be declined - $this->options['card']['number'] = '4111111111111111'; - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\Dummy\Message\Response', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNotEmpty($response->getTransactionReference()); - $this->assertSame('Failure', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Dummy/Message/AuthorizeRequestTest.php b/tests/Omnipay/Dummy/Message/AuthorizeRequestTest.php deleted file mode 100644 index 9c7f04bf..00000000 --- a/tests/Omnipay/Dummy/Message/AuthorizeRequestTest.php +++ /dev/null @@ -1,23 +0,0 @@ -request = new AuthorizeRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize(array( - 'amount' => '10.00', - 'card' => $this->getValidCard(), - )); - } - - public function testGetData() - { - $data = $this->request->getData(); - $this->assertSame('10.00', $data['amount']); - } -} diff --git a/tests/Omnipay/Dummy/Message/ResponseTest.php b/tests/Omnipay/Dummy/Message/ResponseTest.php deleted file mode 100644 index afbac564..00000000 --- a/tests/Omnipay/Dummy/Message/ResponseTest.php +++ /dev/null @@ -1,34 +0,0 @@ -getMockRequest(), - array('reference' => 'abc123', 'success' => 1, 'message' => 'Success') - ); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('abc123', $response->getTransactionReference()); - $this->assertSame('Success', $response->getMessage()); - } - - public function testFailure() - { - $response = new Response( - $this->getMockRequest(), - array('reference' => 'abc123', 'success' => 0, 'message' => 'Failure') - ); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('abc123', $response->getTransactionReference()); - $this->assertSame('Failure', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Eway/Message/RapidCompletePurchaseRequestTest.php b/tests/Omnipay/Eway/Message/RapidCompletePurchaseRequestTest.php deleted file mode 100644 index 77808f22..00000000 --- a/tests/Omnipay/Eway/Message/RapidCompletePurchaseRequestTest.php +++ /dev/null @@ -1,55 +0,0 @@ -request = new RapidCompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize(array( - 'apiKey' => 'my api key', - 'password' => 'secret', - )); - $this->getHttpRequest()->query->replace(array( - 'AccessCode' => 'F9802j0-O7sdVLnOcb_3IPryTxHDtKY8u_0pb10GbYq-Xjvbc-5Bc_LhI-oBIrTxTCjhOFn7Mq-CwpkLDja5-iu-Dr3DjVTr9u4yxSB5BckdbJqSA4WWydzDO0jnPWfBdKcWL', - )); - } - - public function testGetData() - { - $data = $this->request->getData(); - - $this->assertSame('F9802j0-O7sdVLnOcb_3IPryTxHDtKY8u_0pb10GbYq-Xjvbc-5Bc_LhI-oBIrTxTCjhOFn7Mq-CwpkLDja5-iu-Dr3DjVTr9u4yxSB5BckdbJqSA4WWydzDO0jnPWfBdKcWL', $data['AccessCode']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('RapidCompletePurchaseRequestSuccess.txt'); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getRedirectUrl()); - $this->assertNull($response->getRedirectData()); - $this->assertSame('10204029', $response->getTransactionReference()); - $this->assertSame('A2000', $response->getMessage()); - $this->assertSame('A2000', $response->getCode()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('RapidCompletePurchaseRequestFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getRedirectUrl()); - $this->assertNull($response->getRedirectData()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('V6021', $response->getMessage()); - $this->assertSame('V6021', $response->getCode()); - } -} diff --git a/tests/Omnipay/Eway/Message/RapidPurchaseRequestTest.php b/tests/Omnipay/Eway/Message/RapidPurchaseRequestTest.php deleted file mode 100644 index 56d409ee..00000000 --- a/tests/Omnipay/Eway/Message/RapidPurchaseRequestTest.php +++ /dev/null @@ -1,77 +0,0 @@ -request = new RapidPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize(array( - 'apiKey' => 'my api key', - 'password' => 'secret', - 'amount' => '10.00', - 'returnUrl' => 'https://www.example.com/return', - )); - } - - public function testGetData() - { - $this->request->initialize(array( - 'apiKey' => 'my api key', - 'password' => 'secret', - 'amount' => '10.00', - 'transactionId' => '999', - 'description' => 'new car', - 'currency' => 'AUD', - 'clientIp' => '127.0.0.1', - 'returnUrl' => 'https://www.example.com/return', - 'card' => array( - 'firstName' => 'Patrick', - 'lastName' => 'Collison', - ), - )); - - $data = $this->request->getData(); - - $this->assertSame('127.0.0.1', $data['CustomerIP']); - $this->assertSame('https://www.example.com/return', $data['RedirectUrl']); - $this->assertSame(1000, $data['Payment']['TotalAmount']); - $this->assertSame('999', $data['Payment']['InvoiceNumber']); - $this->assertSame('new car', $data['Payment']['InvoiceDescription']); - $this->assertSame('AUD', $data['Payment']['CurrencyCode']); - $this->assertSame('Patrick', $data['Customer']['FirstName']); - $this->assertSame('Collison', $data['Customer']['LastName']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('RapidPurchaseRequestSuccess.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertSame('POST', $response->getRedirectMethod()); - $this->assertSame('https://secure-au.sandbox.ewaypayments.com/Process', $response->getRedirectUrl()); - $this->assertSame(array('EWAY_ACCESSCODE' => 'F9802j0-O7sdVLnOcb_3IPryTxHDtKY8u_0pb10GbYq-Xjvbc-5Bc_LhI-oBIrTxTCjhOFn7Mq-CwpkLDja5-iu-Dr3DjVTr9u4yxSB5BckdbJqSA4WWydzDO0jnPWfBdKcWL'), $response->getRedirectData()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertNull($response->getCode()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('RapidPurchaseRequestFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getRedirectUrl()); - $this->assertNull($response->getRedirectData()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('V6011', $response->getMessage()); - $this->assertSame('V6011', $response->getCode()); - } -} diff --git a/tests/Omnipay/Eway/Mock/RapidCompletePurchaseRequestFailure.txt b/tests/Omnipay/Eway/Mock/RapidCompletePurchaseRequestFailure.txt deleted file mode 100644 index f98cd486..00000000 --- a/tests/Omnipay/Eway/Mock/RapidCompletePurchaseRequestFailure.txt +++ /dev/null @@ -1,16 +0,0 @@ -HTTP/1.1 200 OK -Cache-control: no-cache="set-cookie" -Content-Type: application/json; charset=utf-8 -Date: Sat, 29 Jun 2013 03:25:35 GMT -Set-Cookie: AWSELB=8361C96B088FEBBC7D3ABDFE8BA0FF6501B9705E7D00F53B19AA8D0E66C1AD34691F2170CB4C6B4D750DDAD028ED5C0787DEB1569F57CC58B5923AA0229EC5B49BD7647A57;PATH=/;MAX-AGE=86400 -X-EWAY-VIA: api-au.sandbox.ewaypayments.com/ -X-EWAY-VIA-FROM: http://api.sandbox.ewaypayments.com/GetAccessCodeResult.json -X-EWAY-VIA-HTTP-METHOD: POST -X-EWAY-VIA-HTTP-STATUS: 200 -X-EWAY-VIA-TO: http://api-au.sandbox.ewaypayments.com/GetAccessCodeResult.json -X-ID: AM-143 -X-Powered-By: eWAY -Content-Length: 469 -Connection: keep-alive - -{"AccessCode":"C3AB91ZFisYBgiWFSAtXjrzc4mVCqWvYCgCOAWp4NvAOwwZjPB4S5xyzdjewRwK09AI_DHwiKMbeAxT2WUIZunZSXt4AybHtI2k-A0SmHoS2JIEYKLGtAZeaFz_0HOWDJQuR4","AuthorisationCode":null,"ResponseCode":"06","ResponseMessage":"V6021","InvoiceNumber":"277","InvoiceReference":"","TotalAmount":46518,"TransactionID":null,"TransactionStatus":false,"TokenCustomerID":null,"BeagleScore":null,"Options":[],"Verification":{"CVN":0,"Address":0,"Email":0,"Mobile":0,"Phone":0},"Errors":null} diff --git a/tests/Omnipay/Eway/Mock/RapidCompletePurchaseRequestSuccess.txt b/tests/Omnipay/Eway/Mock/RapidCompletePurchaseRequestSuccess.txt deleted file mode 100644 index 5993ee50..00000000 --- a/tests/Omnipay/Eway/Mock/RapidCompletePurchaseRequestSuccess.txt +++ /dev/null @@ -1,16 +0,0 @@ -HTTP/1.1 200 OK -Cache-control: no-cache="set-cookie" -Content-Type: application/json; charset=utf-8 -Date: Sat, 29 Jun 2013 04:30:54 GMT -Set-Cookie: AWSELB=8361C96B088FEBBC7D3ABDFE8BA0FF6501B9705E7D00F53B19AA8D0E66C1AD34691F2170CB4C6B4D750DDAD028ED5C0787DEB1569F57CC58B5923AA0229EC5B49BD7647A57;PATH=/;MAX-AGE=86400 -X-EWAY-VIA: api-au.sandbox.ewaypayments.com/ -X-EWAY-VIA-FROM: http://api.sandbox.ewaypayments.com/GetAccessCodeResult.json -X-EWAY-VIA-HTTP-METHOD: POST -X-EWAY-VIA-HTTP-STATUS: 200 -X-EWAY-VIA-TO: http://api-au.sandbox.ewaypayments.com/GetAccessCodeResult.json -X-ID: AM-143 -X-Powered-By: eWAY -Content-Length: 473 -Connection: keep-alive - -{"AccessCode":"44DD7Pm0cBWzDpMAlx2uFhzCQoYSMrcnJSXMlgVPkhTbyz1ovxEUEV_se-U2S0njrthN2Zwg0un6PVhNiAyELDPN_JvozBEh8ceZIQEumHBJqsSFljN8JAo_4N5j3Qqr1Wd60","AuthorisationCode":"397712","ResponseCode":"00","ResponseMessage":"A2000","InvoiceNumber":"295","InvoiceReference":"","TotalAmount":35500,"TransactionID":10204029,"TransactionStatus":true,"TokenCustomerID":null,"BeagleScore":0,"Options":[],"Verification":{"CVN":0,"Address":0,"Email":0,"Mobile":0,"Phone":0},"Errors":null} diff --git a/tests/Omnipay/Eway/Mock/RapidPurchaseRequestFailure.txt b/tests/Omnipay/Eway/Mock/RapidPurchaseRequestFailure.txt deleted file mode 100644 index 76d0f35e..00000000 --- a/tests/Omnipay/Eway/Mock/RapidPurchaseRequestFailure.txt +++ /dev/null @@ -1,17 +0,0 @@ -HTTP/1.1 200 OK -Cache-control: no-cache="set-cookie" -Content-Type: application/json; charset=utf-8 -Date: Thu, 27 Jun 2013 05:22:52 GMT -Set-Cookie: AWSELB=8361C96B088FEBBC7D3ABDFE8BA0FF6501B9705E7D00F53B19AA8D0E66C1AD34691F2170CBA3CC4FEE8666E2FB3C85D3B0E238FA2E93B31AAC1C98DFF4D0639139359FE706;PATH=/;MAX-AGE=86400 -X-EWAY-VIA: api-au.sandbox.ewaypayments.com/ -X-EWAY-VIA-FROM: http://api.sandbox.ewaypayments.com/CreateAccessCode.json -X-EWAY-VIA-HTTP-METHOD: POST -X-EWAY-VIA-HTTP-STATUS: 200 -X-EWAY-VIA-TO: http://api-au.sandbox.ewaypayments.com/CreateAccessCode.json -X-ID: AM-131 -X-Powered-By: eWAY -X-Staging: AU -Content-Length: 649 -Connection: keep-alive - -{"AccessCode":null,"Customer":{"TokenCustomerID":null,"Reference":null,"Title":null,"FirstName":null,"LastName":null,"CompanyName":null,"JobDescription":null,"Street1":null,"Street2":null,"City":null,"State":null,"PostalCode":null,"Country":null,"Email":null,"Phone":null,"Mobile":null,"Comments":null,"Fax":null,"Url":null,"CardNumber":null,"CardStartMonth":null,"CardStartYear":null,"CardIssueNumber":null,"CardName":null,"CardExpiryMonth":null,"CardExpiryYear":null,"IsActive":false},"Payment":{"TotalAmount":-1000,"InvoiceNumber":null,"InvoiceDescription":null,"InvoiceReference":null,"CurrencyCode":"AUD"},"FormActionURL":null,"Errors":"V6011"} diff --git a/tests/Omnipay/Eway/Mock/RapidPurchaseRequestSuccess.txt b/tests/Omnipay/Eway/Mock/RapidPurchaseRequestSuccess.txt deleted file mode 100644 index 8d706006..00000000 --- a/tests/Omnipay/Eway/Mock/RapidPurchaseRequestSuccess.txt +++ /dev/null @@ -1,16 +0,0 @@ -HTTP/1.1 200 OK -Cache-control: no-cache="set-cookie" -Content-Type: application/json; charset=utf-8 -Date: Wed, 26 Jun 2013 13:11:50 GMT -Set-Cookie: AWSELB=8361C96B088FEBBC7D3ABDFE8BA0FF6501B9705E7D00F53B19AA8D0E66C1AD34691F2170CB4C6B4D750DDAD028ED5C0787DEB1569F57CC58B5923AA0229EC5B49BD7647A57;PATH=/;MAX-AGE=86400 -X-EWAY-VIA: api-au.sandbox.ewaypayments.com/ -X-EWAY-VIA-FROM: http://api.sandbox.ewaypayments.com/CreateAccessCode.json -X-EWAY-VIA-HTTP-METHOD: POST -X-EWAY-VIA-HTTP-STATUS: 200 -X-EWAY-VIA-TO: http://api-au.sandbox.ewaypayments.com/CreateAccessCode.json -X-ID: AM-143 -X-Powered-By: eWAY -Content-Length: 774 -Connection: keep-alive - -{"AccessCode":"F9802j0-O7sdVLnOcb_3IPryTxHDtKY8u_0pb10GbYq-Xjvbc-5Bc_LhI-oBIrTxTCjhOFn7Mq-CwpkLDja5-iu-Dr3DjVTr9u4yxSB5BckdbJqSA4WWydzDO0jnPWfBdKcWL","Customer":{"TokenCustomerID":null,"Reference":"","Title":"","FirstName":"","LastName":"","CompanyName":"","JobDescription":"","Street1":"","Street2":"","City":"","State":"","PostalCode":"","Country":"","Email":"","Phone":"","Mobile":"","Comments":"","Fax":"","Url":"","CardNumber":"","CardStartMonth":"","CardStartYear":"","CardIssueNumber":"","CardName":"","CardExpiryMonth":"","CardExpiryYear":"","IsActive":false},"Payment":{"TotalAmount":1000,"InvoiceNumber":null,"InvoiceDescription":null,"InvoiceReference":null,"CurrencyCode":"AUD"},"FormActionURL":"https://secure-au.sandbox.ewaypayments.com/Process","Errors":null} diff --git a/tests/Omnipay/Eway/RapidGatewayTest.php b/tests/Omnipay/Eway/RapidGatewayTest.php deleted file mode 100644 index 9ac2058d..00000000 --- a/tests/Omnipay/Eway/RapidGatewayTest.php +++ /dev/null @@ -1,31 +0,0 @@ -gateway = new RapidGateway($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testPurchase() - { - $request = $this->gateway->purchase(array('amount' => '10.00')); - - $this->assertInstanceOf('Omnipay\Eway\Message\RapidPurchaseRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } - - public function testPurchaseReturn() - { - $request = $this->gateway->completePurchase(array('amount' => '10.00')); - - $this->assertInstanceOf('Omnipay\Eway\Message\RapidCompletePurchaseRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } -} diff --git a/tests/Omnipay/FirstData/GatewayTest.php b/tests/Omnipay/FirstData/GatewayTest.php deleted file mode 100644 index e6d3a4e9..00000000 --- a/tests/Omnipay/FirstData/GatewayTest.php +++ /dev/null @@ -1,96 +0,0 @@ -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' - ); - } - - public function testPurchase() - { - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertContains('ipg-online.com/connect/gateway/processing', $response->getRedirectUrl()); - } - - public function testCompletePurchaseSuccess() - { - $this->getHttpRequest()->request->replace( - array( - 'chargetotal' => '110.00', - 'response_hash' => '796d7ca236576256236e92900dedfd55be08567a', - 'status' => 'APPROVED', - 'oid' => 'abc123456', - 'txndatetime' => '2013:09:27-16:06:26', - 'approval_code' => 'Y:136432:0013649958:PPXM:0015' - ) - ); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertEquals('abc123456', $response->getTransactionReference()); - $this->assertSame('APPROVED', $response->getMessage()); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidResponseException - */ - public function testCompletePurchaseInvalidCallbackPassword() - { - $this->getHttpRequest()->request->replace( - array( - 'chargetotal' => '110.00', - 'response_hash' => 'FAKE', - 'status' => 'APPROVED', - 'oid' => 'abc123456', - 'txndatetime' => '2013:09:27-16:06:26', - 'approval_code' => 'Y:136432:0013649958:PPXM:0015' - ) - ); - - $response = $this->gateway->completePurchase($this->options)->send(); - } - - public function testCompletePurchaseError() - { - $this->getHttpRequest()->request->replace( - array( - 'chargetotal' => '110.00', - 'response_hash' => '0dfe9e4b3c6306343926207a8814a48f72087cc7', - 'status' => 'DECLINED', - 'oid' => 'abc1234', - 'txndatetime' => '2013:09:27-16:00:19', - 'approval_code' => 'N:05:DECLINED' - ) - ); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertEquals('abc1234', $response->getTransactionReference()); - $this->assertSame('DECLINED', $response->getMessage()); - } -} diff --git a/tests/Omnipay/FirstData/Message/CompletePurchaseResponseTest.php b/tests/Omnipay/FirstData/Message/CompletePurchaseResponseTest.php deleted file mode 100644 index 1875a1fd..00000000 --- a/tests/Omnipay/FirstData/Message/CompletePurchaseResponseTest.php +++ /dev/null @@ -1,48 +0,0 @@ -getMockRequest(), - array( - 'chargetotal' => '110.00', - 'response_hash' => '796d7ca236576256236e92900dedfd55be08567a', - 'status' => 'APPROVED', - 'oid' => 'abc123456', - 'txndatetime' => '2013:09:27-16:06:26', - 'approval_code' => 'Y:136432:0013649958:PPXM:0015' - ) - ); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('abc123456', $response->getTransactionReference()); - $this->assertSame('APPROVED', $response->getMessage()); - } - - public function testCompletePurchaseFailure() - { - $response = new CompletePurchaseresponse( - $this->getMockRequest(), - array( - 'chargetotal' => '110.00', - 'response_hash' => '0dfe9e4b3c6306343926207a8814a48f72087cc7', - 'status' => 'DECLINED', - 'oid' => 'abc1234', - 'txndatetime' => '2013:09:27-16:00:19', - 'approval_code' => 'N:05:DECLINED' - ) - ); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('abc1234', $response->getTransactionReference()); - $this->assertSame('DECLINED', $response->getMessage()); - } -} diff --git a/tests/Omnipay/FirstData/Message/PurchaseResponseTest.php b/tests/Omnipay/FirstData/Message/PurchaseResponseTest.php deleted file mode 100644 index f23028e9..00000000 --- a/tests/Omnipay/FirstData/Message/PurchaseResponseTest.php +++ /dev/null @@ -1,22 +0,0 @@ -getMockRequest(), array( - 'amount' => 1000, - 'returnUrl' => 'https://www.example.com/return', - )); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame('POST', $response->getRedirectMethod()); - } -} diff --git a/tests/Omnipay/GatewayTestCase.php b/tests/Omnipay/GatewayTestCase.php deleted file mode 100644 index 4b80bbae..00000000 --- a/tests/Omnipay/GatewayTestCase.php +++ /dev/null @@ -1,346 +0,0 @@ -gateway->getName(); - $this->assertNotEmpty($name); - $this->assertInternalType('string', $name); - } - - public function testGetShortNameNotEmpty() - { - $shortName = $this->gateway->getShortName(); - $this->assertNotEmpty($shortName); - $this->assertInternalType('string', $shortName); - } - - public function testGetDefaultParametersReturnsArray() - { - $settings = $this->gateway->getDefaultParameters(); - $this->assertInternalType('array', $settings); - } - - public function testDefaultParametersHaveMatchingMethods() - { - $settings = $this->gateway->getDefaultParameters(); - foreach ($settings as $key => $default) { - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - - $this->assertTrue(method_exists($this->gateway, $getter), "Gateway must implement $getter()"); - $this->assertTrue(method_exists($this->gateway, $setter), "Gateway must implement $setter()"); - - // setter must return instance - $this->assertSame($this->gateway, $this->gateway->$setter($value)); - $this->assertSame($value, $this->gateway->$getter()); - } - } - - public function testTestMode() - { - $this->assertSame($this->gateway, $this->gateway->setTestMode(false)); - $this->assertSame(false, $this->gateway->getTestMode()); - - $this->assertSame($this->gateway, $this->gateway->setTestMode(true)); - $this->assertSame(true, $this->gateway->getTestMode()); - } - - public function testCurrency() - { - // currency is normalized to uppercase - $this->assertSame($this->gateway, $this->gateway->setCurrency('eur')); - $this->assertSame('EUR', $this->gateway->getCurrency()); - } - - public function testPurchase() - { - // all gateways must implement purchase - $this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $this->gateway->purchase()); - } - - public function testSupportsAuthorize() - { - $supportsAuthorize = $this->gateway->supportsAuthorize(); - $this->assertInternalType('boolean', $supportsAuthorize); - - if ($supportsAuthorize) { - $this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $this->gateway->authorize()); - } else { - $this->assertFalse(method_exists($this->gateway, 'authorize')); - } - } - - public function testSupportsCompleteAuthorize() - { - $supportsCompleteAuthorize = $this->gateway->supportsCompleteAuthorize(); - $this->assertInternalType('boolean', $supportsCompleteAuthorize); - - if ($supportsCompleteAuthorize) { - $this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $this->gateway->completeAuthorize()); - } else { - $this->assertFalse(method_exists($this->gateway, 'completeAuthorize')); - } - } - - public function testSupportsCapture() - { - $supportsCapture = $this->gateway->supportsCapture(); - $this->assertInternalType('boolean', $supportsCapture); - - if ($supportsCapture) { - $this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $this->gateway->capture()); - } else { - $this->assertFalse(method_exists($this->gateway, 'capture')); - } - } - - public function testSupportsCompletePurchase() - { - $supportsCompletePurchase = $this->gateway->supportsCompletePurchase(); - $this->assertInternalType('boolean', $supportsCompletePurchase); - - if ($supportsCompletePurchase) { - $this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $this->gateway->completePurchase()); - } else { - $this->assertFalse(method_exists($this->gateway, 'completePurchase')); - } - } - - public function testSupportsRefund() - { - $supportsRefund = $this->gateway->supportsRefund(); - $this->assertInternalType('boolean', $supportsRefund); - - if ($supportsRefund) { - $this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $this->gateway->refund()); - } else { - $this->assertFalse(method_exists($this->gateway, 'refund')); - } - } - - public function testSupportsVoid() - { - $supportsVoid = $this->gateway->supportsVoid(); - $this->assertInternalType('boolean', $supportsVoid); - - if ($supportsVoid) { - $this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $this->gateway->void()); - } else { - $this->assertFalse(method_exists($this->gateway, 'void')); - } - } - - public function testSupportsCreateCard() - { - $supportsCreate = $this->gateway->supportsCreateCard(); - $this->assertInternalType('boolean', $supportsCreate); - - if ($supportsCreate) { - $this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $this->gateway->createCard()); - } else { - $this->assertFalse(method_exists($this->gateway, 'createCard')); - } - } - - public function testSupportsDeleteCard() - { - $supportsDelete = $this->gateway->supportsDeleteCard(); - $this->assertInternalType('boolean', $supportsDelete); - - if ($supportsDelete) { - $this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $this->gateway->deleteCard()); - } else { - $this->assertFalse(method_exists($this->gateway, 'deleteCard')); - } - } - - public function testSupportsUpdateCard() - { - $supportsUpdate = $this->gateway->supportsUpdateCard(); - $this->assertInternalType('boolean', $supportsUpdate); - - if ($supportsUpdate) { - $this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $this->gateway->updateCard()); - } else { - $this->assertFalse(method_exists($this->gateway, 'updateCard')); - } - } - - public function testAuthorizeParameters() - { - if ($this->gateway->supportsAuthorize()) { - foreach ($this->gateway->getDefaultParameters() as $key => $default) { - // set property on gateway - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - $this->gateway->$setter($value); - - // request should have matching property, with correct value - $request = $this->gateway->authorize(); - $this->assertSame($value, $request->$getter()); - } - } - } - - public function testCompleteAuthorizeParameters() - { - if ($this->gateway->supportsCompleteAuthorize()) { - foreach ($this->gateway->getDefaultParameters() as $key => $default) { - // set property on gateway - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - $this->gateway->$setter($value); - - // request should have matching property, with correct value - $request = $this->gateway->completeAuthorize(); - $this->assertSame($value, $request->$getter()); - } - } - } - - public function testCaptureParameters() - { - if ($this->gateway->supportsCapture()) { - foreach ($this->gateway->getDefaultParameters() as $key => $default) { - // set property on gateway - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - $this->gateway->$setter($value); - - // request should have matching property, with correct value - $request = $this->gateway->capture(); - $this->assertSame($value, $request->$getter()); - } - } - } - - public function testPurchaseParameters() - { - foreach ($this->gateway->getDefaultParameters() as $key => $default) { - // set property on gateway - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - $this->gateway->$setter($value); - - // request should have matching property, with correct value - $request = $this->gateway->purchase(); - $this->assertSame($value, $request->$getter()); - } - } - - public function testCompletePurchaseParameters() - { - if ($this->gateway->supportsCompletePurchase()) { - foreach ($this->gateway->getDefaultParameters() as $key => $default) { - // set property on gateway - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - $this->gateway->$setter($value); - - // request should have matching property, with correct value - $request = $this->gateway->completePurchase(); - $this->assertSame($value, $request->$getter()); - } - } - } - - public function testRefundParameters() - { - if ($this->gateway->supportsRefund()) { - foreach ($this->gateway->getDefaultParameters() as $key => $default) { - // set property on gateway - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - $this->gateway->$setter($value); - - // request should have matching property, with correct value - $request = $this->gateway->refund(); - $this->assertSame($value, $request->$getter()); - } - } - } - - public function testVoidParameters() - { - if ($this->gateway->supportsVoid()) { - foreach ($this->gateway->getDefaultParameters() as $key => $default) { - // set property on gateway - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - $this->gateway->$setter($value); - - // request should have matching property, with correct value - $request = $this->gateway->void(); - $this->assertSame($value, $request->$getter()); - } - } - } - - public function testCreateCardParameters() - { - if ($this->gateway->supportsCreateCard()) { - foreach ($this->gateway->getDefaultParameters() as $key => $default) { - // set property on gateway - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - $this->gateway->$setter($value); - - // request should have matching property, with correct value - $request = $this->gateway->createCard(); - $this->assertSame($value, $request->$getter()); - } - } - } - - public function testDeleteCardParameters() - { - if ($this->gateway->supportsDeleteCard()) { - foreach ($this->gateway->getDefaultParameters() as $key => $default) { - // set property on gateway - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - $this->gateway->$setter($value); - - // request should have matching property, with correct value - $request = $this->gateway->deleteCard(); - $this->assertSame($value, $request->$getter()); - } - } - } - - public function testUpdateCardParameters() - { - if ($this->gateway->supportsUpdateCard()) { - foreach ($this->gateway->getDefaultParameters() as $key => $default) { - // set property on gateway - $getter = 'get'.ucfirst($key); - $setter = 'set'.ucfirst($key); - $value = uniqid(); - $this->gateway->$setter($value); - - // request should have matching property, with correct value - $request = $this->gateway->updateCard(); - $this->assertSame($value, $request->$getter()); - } - } - } -} diff --git a/tests/Omnipay/GoCardless/GatewayTest.php b/tests/Omnipay/GoCardless/GatewayTest.php deleted file mode 100644 index c3d44441..00000000 --- a/tests/Omnipay/GoCardless/GatewayTest.php +++ /dev/null @@ -1,86 +0,0 @@ -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 testPurchase() - { - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\GoCardless\Message\PurchaseResponse', $response); - $this->assertTrue($response->isRedirect()); - $this->assertStringStartsWith('https://gocardless.com/connect/bills/new?', $response->getRedirectUrl()); - } - - public function testCompletePurchaseSuccess() - { - $this->getHttpRequest()->request->replace( - array( - 'resource_uri' => 'a', - 'resource_id' => 'b', - 'resource_type' => 'c', - 'signature' => '416f52e7d287dab49fa8445c1cd0957ca8ddf1c04a6300e00117dc0bedabc7d7', - ) - ); - - $this->setMockHttpResponse('CompletePurchaseSuccess.txt'); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('b', $response->getTransactionReference()); - } - - public function testCompletePurchaseError() - { - $this->getHttpRequest()->request->replace( - array( - 'resource_uri' => 'a', - 'resource_id' => 'b', - 'resource_type' => 'c', - 'signature' => '416f52e7d287dab49fa8445c1cd0957ca8ddf1c04a6300e00117dc0bedabc7d7', - ) - ); - - $this->setMockHttpResponse('CompletePurchaseFailure.txt'); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('The resource cannot be confirmed', $response->getMessage()); - } - - /** - * @expectedException Omnipay\Common\Exception\InvalidResponseException - */ - public function testCompletePurchaseInvalid() - { - $this->getHttpRequest()->request->replace( - array( - 'resource_uri' => 'a', - 'resource_id' => 'b', - 'resource_type' => 'c', - 'signature' => 'd', - ) - ); - - $response = $this->gateway->completePurchase($this->options)->send(); - } -} diff --git a/tests/Omnipay/GoCardless/Message/CompletePurchaseResponseTest.php b/tests/Omnipay/GoCardless/Message/CompletePurchaseResponseTest.php deleted file mode 100644 index ba969f67..00000000 --- a/tests/Omnipay/GoCardless/Message/CompletePurchaseResponseTest.php +++ /dev/null @@ -1,28 +0,0 @@ -getMockHttpResponse('CompletePurchaseSuccess.txt'); - $response = new CompletePurchaseResponse($this->getMockRequest(), $httpResponse->json(), 'abc123'); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('abc123', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - public function testCompletePurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('CompletePurchaseFailure.txt'); - $response = new CompletePurchaseResponse($this->getMockRequest(), $httpResponse->json(), 'abc123'); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('abc123', $response->getTransactionReference()); - $this->assertSame('The resource cannot be confirmed', $response->getMessage()); - } -} diff --git a/tests/Omnipay/GoCardless/Mock/CompletePurchaseFailure.txt b/tests/Omnipay/GoCardless/Mock/CompletePurchaseFailure.txt deleted file mode 100644 index 6213f971..00000000 --- a/tests/Omnipay/GoCardless/Mock/CompletePurchaseFailure.txt +++ /dev/null @@ -1,3 +0,0 @@ -HTTP/1.1 200 OK - -{"error":["The resource cannot be confirmed"]} \ No newline at end of file diff --git a/tests/Omnipay/GoCardless/Mock/CompletePurchaseSuccess.txt b/tests/Omnipay/GoCardless/Mock/CompletePurchaseSuccess.txt deleted file mode 100644 index 4c97d0c7..00000000 --- a/tests/Omnipay/GoCardless/Mock/CompletePurchaseSuccess.txt +++ /dev/null @@ -1,3 +0,0 @@ -HTTP/1.1 200 OK - -{"success":true} \ No newline at end of file diff --git a/tests/Omnipay/Manual/GatewayTest.php b/tests/Omnipay/Manual/GatewayTest.php deleted file mode 100644 index e1baaeb9..00000000 --- a/tests/Omnipay/Manual/GatewayTest.php +++ /dev/null @@ -1,52 +0,0 @@ -gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); - - $this->options = array( - 'amount' => 1000 - ); - } - - public function testAuthorize() - { - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\Manual\Message\Response', $response); - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - public function testCapture() - { - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\Manual\Message\Response', $response); - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - public function testPurchase() - { - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\Manual\Message\Response', $response); - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } -} diff --git a/tests/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequestTest.php b/tests/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequestTest.php deleted file mode 100644 index fb0baf25..00000000 --- a/tests/Omnipay/Migs/Message/ThreePartyCompletePurchaseRequestTest.php +++ /dev/null @@ -1,51 +0,0 @@ -request = new ThreePartyCompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testThreePartyCompletePurchaseSuccess() - { - $data = array(); - - $data['vpc_Message'] = "Approved"; - $data['vpc_ReceiptNo'] = "12345"; - $data['vpc_TxnResponseCode'] = "0"; - $data['vpc_SecureHash'] = "8720B88CA00352B2A5F4D51C64E86BCB"; - - $response = new Response($this->getMockRequest(), $data); - - $this->assertInstanceOf('Omnipay\Migs\Message\Response', $response); - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('12345', $response->getTransactionReference()); - $this->assertSame('Approved', $response->getMessage()); - $this->assertNull($response->getCode()); - } - - public function testThreePartyCompletePurchaseFailure() - { - $data = array(); - - $data['vpc_Message'] = "Error"; - $data['vpc_ReceiptNo'] = "12345"; - $data['vpc_TxnResponseCode'] = "1"; - $data['vpc_SecureHash'] = "8720B88CA00352B2A5F4D51C64E86BCB"; - - $response = new Response($this->getMockRequest(), $data); - - $this->assertInstanceOf('Omnipay\Migs\Message\Response', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('12345', $response->getTransactionReference()); - $this->assertNotSame('Approved', $response->getMessage()); - $this->assertNull($response->getCode()); - } -} diff --git a/tests/Omnipay/Migs/Message/ThreePartyPurchaseRequestTest.php b/tests/Omnipay/Migs/Message/ThreePartyPurchaseRequestTest.php deleted file mode 100644 index 04be876d..00000000 --- a/tests/Omnipay/Migs/Message/ThreePartyPurchaseRequestTest.php +++ /dev/null @@ -1,60 +0,0 @@ -request = new ThreePartyPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testSignature() - { - $this->request->initialize( - array( - 'amount' => '12.00', - 'transactionId' => 123, - 'returnUrl' => 'https://www.example.com/return', - - 'merchantId' => '123', - 'merchantAccessCode' => '123', - 'secureHash' => '123', - ) - ); - - $data = $this->request->getData(); - - $this->assertSame('FC86354CC09D414EF308A6FA8CE4F9BB', $data['vpc_SecureHash']); - } - - public function testPurchase() - { - $this->request->initialize( - array( - 'amount' => '12.00', - 'transactionId' => 123, - 'returnUrl' => 'https://www.example.com/return', - - 'merchantId' => '123', - 'merchantAccessCode' => '123', - 'secureHash' => '123', - ) - ); - - $response = $this->request->send(); - - $this->assertInstanceOf('Omnipay\Migs\Message\ThreePartyPurchaseResponse', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertNull($response->getCode()); - - $this->assertStringStartsWith('https://migs.mastercard.com.au/vpcpay?', $response->getRedirectUrl()); - $this->assertSame('GET', $response->getRedirectMethod()); - $this->assertArrayHasKey('vpc_SecureHash', $response->getData()); - } -} diff --git a/tests/Omnipay/Migs/Message/ThreePartyPurchaseResponseTest.php b/tests/Omnipay/Migs/Message/ThreePartyPurchaseResponseTest.php deleted file mode 100644 index ddb383e2..00000000 --- a/tests/Omnipay/Migs/Message/ThreePartyPurchaseResponseTest.php +++ /dev/null @@ -1,25 +0,0 @@ - '123'); - - $response = new ThreePartyPurchaseResponse($this->getMockRequest(), $data, 'https://example.com/'); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame($data, $response->getData()); - - $this->assertSame('https://example.com/', $response->getRedirectUrl()); - $this->assertSame('GET', $response->getRedirectMethod()); - $this->assertSame($data, $response->getRedirectData()); - } -} diff --git a/tests/Omnipay/Migs/Message/TwoPartyPurchaseRequestTest.php b/tests/Omnipay/Migs/Message/TwoPartyPurchaseRequestTest.php deleted file mode 100644 index 68ca8e50..00000000 --- a/tests/Omnipay/Migs/Message/TwoPartyPurchaseRequestTest.php +++ /dev/null @@ -1,64 +0,0 @@ -request = new TwoPartyPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testCalculateHash() - { - $data = array( - 'vpc_Merchant' => '123', - 'vpc_AccessCode' => '123', - 'vpc_Version' => '1', - 'vpc_Locale' => 'en', - 'vpc_Command' => 'pay', - 'vpc_Amount' => '1200', - 'vpc_MerchTxnRef' => '123', - 'vpc_OrderInfo' => '', - 'vpc_ReturnURL' => 'https://www.example.com/return', - 'vpc_CardNum' => '4111111111111111', - 'vpc_CardExp' => '1305', - 'vpc_CardSecurityCode' => '123', - ); - - $this->request->setSecureHash('123'); - $hash = $this->request->calculateHash($data); - - $this->assertSame('2624B4BABED7CCA98665238D75560600', $hash); - } - - public function testPurchase() - { - $this->setMockHttpResponse('TwoPartyPurchaseSuccess.txt'); - - $this->request->initialize( - array( - 'amount' => '12.00', - 'transactionId' => 123, - 'card' => $this->getValidCard(), - 'merchantId' => '123', - 'merchantAccessCode' => '123', - 'secureHash' => '123', - 'returnUrl' => 'https://www.example.com/return' - ) - ); - - $response = $this->request->send(); - - $this->assertInstanceOf('Omnipay\Migs\Message\Response', $response); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertEquals('12345', $response->getTransactionReference()); - $this->assertSame('Approved', $response->getMessage()); - $this->assertNull($response->getCode()); - $this->assertArrayHasKey('vpc_SecureHash', $response->getData()); - } -} diff --git a/tests/Omnipay/Migs/Message/TwoPartyPurchaseResponseTest.php b/tests/Omnipay/Migs/Message/TwoPartyPurchaseResponseTest.php deleted file mode 100644 index eb29ab44..00000000 --- a/tests/Omnipay/Migs/Message/TwoPartyPurchaseResponseTest.php +++ /dev/null @@ -1,34 +0,0 @@ -getMockHttpResponse('TwoPartyPurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertInstanceOf('Omnipay\Migs\Message\Response', $response); - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('12345', $response->getTransactionReference()); - $this->assertSame('Approved', $response->getMessage()); - $this->assertNull($response->getCode()); - } - - public function testTwoPartyPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('TwoPartyPurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertInstanceOf('Omnipay\Migs\Message\Response', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('12345', $response->getTransactionReference()); - $this->assertSame('Declined', $response->getMessage()); - $this->assertNull($response->getCode()); - } -} diff --git a/tests/Omnipay/Migs/Mock/TwoPartyPurchaseFailure.txt b/tests/Omnipay/Migs/Mock/TwoPartyPurchaseFailure.txt deleted file mode 100644 index bcfe036d..00000000 --- a/tests/Omnipay/Migs/Mock/TwoPartyPurchaseFailure.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Date: Fri, 05 Apr 2013 13:11:19 GMT -Server: Apache -Expires: Sun, 15 Jul 1990 00:00:00 GMT -Pragma: no-cache -Cache-Control: no-cache -Content-Length: 469 -P3P: CP="NOI DSP COR CURa ADMa TA1a OUR BUS IND UNI COM NAV INT" -Content-Type: text/plain;charset=iso-8859-1 - -vpc_AVSRequestCode=Z&vpc_AVSResultCode=Unsupported&vpc_AcqAVSRespCode=Unsupported&vpc_AcqCSCRespCode=Unsupported&vpc_AcqResponseCode=14&vpc_Amount=1000&vpc_BatchNo=12345&vpc_CSCResultCode=Unsupported&vpc_Card=VC&vpc_Command=pay&vpc_Locale=en&vpc_MerchTxnRef=123&vpc_Merchant=EXAMPLE&vpc_Message=Declined&vpc_OrderInfo=&vpc_ReceiptNo=12345&vpc_SecureHash=71B4E0DE9EACB5FC27C902379737D458&vpc_TransactionNo=12345&vpc_TxnResponseCode=2&vpc_Version=1 \ No newline at end of file diff --git a/tests/Omnipay/Migs/Mock/TwoPartyPurchaseSuccess.txt b/tests/Omnipay/Migs/Mock/TwoPartyPurchaseSuccess.txt deleted file mode 100644 index cec21cea..00000000 --- a/tests/Omnipay/Migs/Mock/TwoPartyPurchaseSuccess.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Date: Fri, 05 Apr 2013 12:29:13 GMT -Server: Apache -Expires: Sun, 15 Jul 1990 00:00:00 GMT -Pragma: no-cache -Cache-Control: no-cache -Content-Length: 492 -P3P: CP="NOI DSP COR CURa ADMa TA1a OUR BUS IND UNI COM NAV INT" -Content-Type: text/plain;charset=iso-8859-1 - -vpc_AVSRequestCode=Z&vpc_AVSResultCode=Unsupported&vpc_AcqAVSRespCode=Unsupported&vpc_AcqCSCRespCode=Unsupported&vpc_AcqResponseCode=00&vpc_Amount=1000&vpc_AuthorizeId=12345&vpc_BatchNo=12345&vpc_CSCResultCode=Unsupported&vpc_Card=VC&vpc_Command=pay&vpc_Locale=en&vpc_MerchTxnRef=123&vpc_Merchant=EXAMPLE&vpc_Message=Approved&vpc_OrderInfo=&vpc_ReceiptNo=12345&vpc_SecureHash=58808781CF7265DEA89EA8B713FAB075&vpc_TransactionNo=12345&vpc_TxnResponseCode=0&vpc_Version=1 \ No newline at end of file diff --git a/tests/Omnipay/Migs/ThreePartyGatewayTest.php b/tests/Omnipay/Migs/ThreePartyGatewayTest.php deleted file mode 100644 index 6ff706df..00000000 --- a/tests/Omnipay/Migs/ThreePartyGatewayTest.php +++ /dev/null @@ -1,39 +0,0 @@ -gateway = new ThreePartyGateway($this->getHttpClient(), $this->getHttpRequest()); - - $this->options = array( - 'amount' => '10.00', - 'transactionId' => 12345, - 'returnUrl' => 'https://www.example.com/return', - ); - } - - public function testPurchase() - { - $request = $this->gateway->purchase(array('amount' => '10.00')); - - $this->assertInstanceOf('\Omnipay\Migs\Message\ThreePartyPurchaseRequest', $request); - - $this->assertSame('10.00', $request->getAmount()); - } - - public function testCompletePurchase() - { - $request = $this->gateway->completePurchase(array('amount' => '10.00')); - - $this->assertInstanceOf('\Omnipay\Migs\Message\ThreePartyCompletePurchaseRequest', $request); - - $this->assertSame('10.00', $request->getAmount()); - } -} diff --git a/tests/Omnipay/Migs/TwoPartyGatewayTest.php b/tests/Omnipay/Migs/TwoPartyGatewayTest.php deleted file mode 100644 index 6b5ef13c..00000000 --- a/tests/Omnipay/Migs/TwoPartyGatewayTest.php +++ /dev/null @@ -1,53 +0,0 @@ -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 testPurchaseSuccess() - { - $this->setMockHttpResponse('TwoPartyPurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\Migs\Message\Response', $response); - - $this->assertTrue($response->isSuccessful()); - - $this->assertEquals('12345', $response->getTransactionReference()); - - $this->assertSame('Approved', $response->getMessage()); - } - - public function testPurchaseFailure() - { - $this->setMockHttpResponse('TwoPartyPurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\Migs\Message\Response', $response); - - $this->assertFalse($response->isSuccessful()); - - $this->assertEquals('12345', $response->getTransactionReference()); - - $this->assertEquals('Declined', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Mollie/GatewayTest.php b/tests/Omnipay/Mollie/GatewayTest.php deleted file mode 100644 index cc251579..00000000 --- a/tests/Omnipay/Mollie/GatewayTest.php +++ /dev/null @@ -1,39 +0,0 @@ -gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testFetchIssuers() - { - $request = $this->gateway->fetchIssuers(array('partnerId' => 'abc123')); - - $this->assertInstanceOf('Omnipay\Mollie\Message\FetchIssuersRequest', $request); - $this->assertSame('abc123', $request->getPartnerId()); - } - - public function testPurchase() - { - $request = $this->gateway->purchase(array('amount' => '10.00')); - - $this->assertInstanceOf('Omnipay\Mollie\Message\PurchaseRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } - - public function testPurchaseReturn() - { - $request = $this->gateway->completePurchase(array('amount' => '10.00')); - - $this->assertInstanceOf('Omnipay\Mollie\Message\CompletePurchaseRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } -} diff --git a/tests/Omnipay/Mollie/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/Mollie/Message/CompletePurchaseRequestTest.php deleted file mode 100644 index fc02702a..00000000 --- a/tests/Omnipay/Mollie/Message/CompletePurchaseRequestTest.php +++ /dev/null @@ -1,35 +0,0 @@ -request = new CompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize(array( - 'partnerId' => 'my partner id', - )); - } - - public function testGetData() - { - $this->getHttpRequest()->query->replace(array( - 'transaction_id' => 'abc123', - )); - - $data = $this->request->getData(); - - $this->assertSame('check', $data['a']); - $this->assertSame('my partner id', $data['partnerid']); - $this->assertSame('abc123', $data['transaction_id']); - } - - /* - * We need a Mollie test account to record some responses to completePurchase() - * and test CompletePurchaseRequest::send() - * Pull requests welcome! - */ -} diff --git a/tests/Omnipay/Mollie/Message/FetchIssuersRequestTest.php b/tests/Omnipay/Mollie/Message/FetchIssuersRequestTest.php deleted file mode 100644 index 514a9620..00000000 --- a/tests/Omnipay/Mollie/Message/FetchIssuersRequestTest.php +++ /dev/null @@ -1,56 +0,0 @@ -request = new FetchIssuersRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testGetData() - { - $data = $this->request->getData(); - - $this->assertSame('banklist', $data['a']); - } - - public function testTestMode() - { - $this->assertArrayNotHasKey('testmode', $this->request->getData()); - - $this->request->setTestMode(true); - $data = $this->request->getData(); - - $this->assertSame('true', $data['testmode']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('FetchIssuersSuccess.txt'); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('This is the current list of banks and their ID\'s that currently support iDEAL-payments', $response->getMessage()); - $this->assertNull($response->getCode()); - $this->assertSame(array('9999' => 'TBM Bank'), $response->getIssuers()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('FetchIssuersFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Did not receive a proper input value from you', $response->getMessage()); - $this->assertSame('-1', $response->getCode()); - $this->assertNull($response->getIssuers()); - } -} diff --git a/tests/Omnipay/Mollie/Message/PurchaseRequestTest.php b/tests/Omnipay/Mollie/Message/PurchaseRequestTest.php deleted file mode 100644 index 832c1e23..00000000 --- a/tests/Omnipay/Mollie/Message/PurchaseRequestTest.php +++ /dev/null @@ -1,75 +0,0 @@ -request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize( - array( - 'partnerId' => 'my partner id', - 'amount' => '12.00', - 'issuer' => 'my bank', - 'returnUrl' => 'https://www.example.com/return', - 'notifyUrl' => 'https://www.example.com/return', - ) - ); - } - - public function testGetData() - { - $this->request->initialize(array( - 'partnerId' => 'my partner id', - 'amount' => '12.00', - 'issuer' => 'my bank', - 'returnUrl' => 'https://www.example.com/return', - 'notifyUrl' => 'https://www.example.com/notify', - 'description' => 'a description', - 'testMode' => true, - )); - - $data = $this->request->getData(); - - $this->assertSame('fetch', $data['a']); - $this->assertSame('my partner id', $data['partnerid']); - $this->assertSame(1200, $data['amount']); - $this->assertSame('my bank', $data['bank_id']); - $this->assertSame('a description', $data['description']); - $this->assertSame('https://www.example.com/return', $data['returnurl']); - $this->assertSame('https://www.example.com/notify', $data['reporturl']); - $this->assertSame('true', $data['testmode']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertSame('GET', $response->getRedirectMethod()); - $this->assertSame('https://www.mollie.nl/partners/ideal-test-bank?order_nr=M0361705M1078X9J&transaction_id=2e6455e7c1999436ef7093219f016fc5&trxid=0036170512173671', $response->getRedirectUrl()); - $this->assertNull($response->getRedirectData()); - $this->assertSame('2e6455e7c1999436ef7093219f016fc5', $response->getTransactionReference()); - $this->assertSame('Your iDEAL-payment has successfully been setup. Your customer should visit the given URL to make the payment', $response->getMessage()); - $this->assertNull($response->getCode()); - } - - public function testSendError() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getRedirectUrl()); - $this->assertNull($response->getRedirectData()); - $this->assertSame("A fetch was issued without specification of 'partnerid'.", $response->getMessage()); - $this->assertSame('-2', $response->getCode()); - } -} diff --git a/tests/Omnipay/Mollie/Mock/FetchIssuersFailure.txt b/tests/Omnipay/Mollie/Mock/FetchIssuersFailure.txt deleted file mode 100644 index baa77368..00000000 --- a/tests/Omnipay/Mollie/Mock/FetchIssuersFailure.txt +++ /dev/null @@ -1,14 +0,0 @@ -HTTP/1.1 200 OK -Server: nginx/1.4.1 -Date: Tue, 18 Jun 2013 11:09:43 GMT -Content-Type: text/xml -Content-Length: 207 -Connection: keep-alive -Vary: Accept-Encoding - - - - -1 - Did not receive a proper input value from you - - diff --git a/tests/Omnipay/Mollie/Mock/FetchIssuersSuccess.txt b/tests/Omnipay/Mollie/Mock/FetchIssuersSuccess.txt deleted file mode 100644 index b882b7bf..00000000 --- a/tests/Omnipay/Mollie/Mock/FetchIssuersSuccess.txt +++ /dev/null @@ -1,16 +0,0 @@ -HTTP/1.1 200 OK -Server: nginx/1.4.1 -Date: Tue, 18 Jun 2013 10:55:16 GMT -Content-Type: text/xml -Content-Length: 228 -Connection: keep-alive -Vary: Accept-Encoding - - - - - 9999 - TBM Bank - -This is the current list of banks and their ID's that currently support iDEAL-payments - diff --git a/tests/Omnipay/Mollie/Mock/PurchaseFailure.txt b/tests/Omnipay/Mollie/Mock/PurchaseFailure.txt deleted file mode 100644 index 5b6beeb1..00000000 --- a/tests/Omnipay/Mollie/Mock/PurchaseFailure.txt +++ /dev/null @@ -1,15 +0,0 @@ -HTTP/1.1 200 OK -Server: nginx/1.4.1 -Date: Tue, 18 Jun 2013 10:44:18 GMT -Content-Type: text/xml -Content-Length: 181 -Connection: keep-alive -Vary: Accept-Encoding - - - - - -2 - A fetch was issued without specification of 'partnerid'. - - diff --git a/tests/Omnipay/Mollie/Mock/PurchaseSuccess.txt b/tests/Omnipay/Mollie/Mock/PurchaseSuccess.txt deleted file mode 100644 index 4e57f862..00000000 --- a/tests/Omnipay/Mollie/Mock/PurchaseSuccess.txt +++ /dev/null @@ -1,18 +0,0 @@ -HTTP/1.1 200 OK -Server: nginx/1.4.1 -Date: Tue, 18 Jun 2013 11:20:36 GMT -Content-Type: text/xml -Content-Length: 478 -Connection: keep-alive -Vary: Accept-Encoding - - - - - 2e6455e7c1999436ef7093219f016fc5 - 1200 - EUR - https://www.mollie.nl/partners/ideal-test-bank?order_nr=M0361705M1078X9J&transaction_id=2e6455e7c1999436ef7093219f016fc5&trxid=0036170512173671 - Your iDEAL-payment has successfully been setup. Your customer should visit the given URL to make the payment - - diff --git a/tests/Omnipay/MultiSafepay/GatewayTest.php b/tests/Omnipay/MultiSafepay/GatewayTest.php deleted file mode 100644 index 9411c9d6..00000000 --- a/tests/Omnipay/MultiSafepay/GatewayTest.php +++ /dev/null @@ -1,145 +0,0 @@ -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' => 'something@example.com', - 'firstName' => 'first name', - 'lastName' => 'last name', - 'address1' => 'address 1', - 'address2' => 'address 2', - 'postcode' => '1000', - 'city' => 'a city', - 'country' => 'a country', - 'phone' => 'phone number', - ) - ); - } - - public function testFetchPaymentMethods() - { - /** @var \Omnipay\MultiSafepay\Message\FetchPaymentMethodsRequest $request */ - $request = $this->gateway->fetchPaymentMethods(array('country' => 'NL')); - - $this->assertInstanceOf('Omnipay\MultiSafepay\Message\FetchPaymentMethodsRequest', $request); - $this->assertEquals('NL', $request->getCountry()); - } - - public function testFetchIssuers() - { - /** @var \Omnipay\MultiSafepay\Message\FetchIssuersRequest $request */ - $request = $this->gateway->fetchIssuers(); - - $this->assertInstanceOf('Omnipay\MultiSafepay\Message\FetchIssuersRequest', $request); - } - - public function testPurchase() - { - /** @var \Omnipay\MultiSafepay\Message\PurchaseRequest $request */ - $request = $this->gateway->purchase($this->options); - - /** @var CreditCard $card */ - $card = $request->getCard(); - - $this->assertInstanceOf('Omnipay\MultiSafepay\Message\PurchaseRequest', $request); - $this->assertSame('http://localhost/notify', $request->getNotifyUrl()); - $this->assertSame('http://localhost/cancel', $request->getCancelUrl()); - $this->assertSame('http://localhost/return', $request->getReturnUrl()); - $this->assertSame('IDEAL', $request->getGateway()); - $this->assertSame('issuer', $request->getIssuer()); - $this->assertSame('123456', $request->getTransactionId()); - $this->assertSame('EUR', $request->getCurrency()); - $this->assertSame('100.00', $request->getAmount()); - $this->assertSame('desc', $request->getDescription()); - $this->assertSame('extra 1', $request->getExtraData1()); - $this->assertSame('extra 2', $request->getExtraData2()); - $this->assertSame('extra 3', $request->getExtraData3()); - $this->assertSame('a language', $request->getLanguage()); - $this->assertSame('analytics code', $request->getGoogleAnalyticsCode()); - $this->assertSame('127.0.0.1', $request->getClientIp()); - $this->assertSame('something@example.com', $card->getEmail()); - $this->assertSame('first name', $card->getFirstName()); - $this->assertSame('last name', $card->getLastName()); - $this->assertSame('address 1', $card->getAddress1()); - $this->assertSame('address 2', $card->getAddress2()); - $this->assertSame('1000', $card->getPostcode()); - $this->assertSame('a city', $card->getCity()); - $this->assertSame('a country', $card->getCountry()); - $this->assertSame('phone number', $card->getPhone()); - } - - public function testCompletePurchase() - { - /** @var \Omnipay\MultiSafepay\Message\CompletePurchaseRequest $request */ - $request = $this->gateway->completePurchase($this->options); - - /** @var CreditCard $card */ - $card = $request->getCard(); - - $this->assertInstanceOf('Omnipay\MultiSafepay\Message\CompletePurchaseRequest', $request); - $this->assertSame('http://localhost/notify', $request->getNotifyUrl()); - $this->assertSame('http://localhost/cancel', $request->getCancelUrl()); - $this->assertSame('http://localhost/return', $request->getReturnUrl()); - $this->assertSame('IDEAL', $request->getGateway()); - $this->assertSame('issuer', $request->getIssuer()); - $this->assertSame('123456', $request->getTransactionId()); - $this->assertSame('EUR', $request->getCurrency()); - $this->assertSame('100.00', $request->getAmount()); - $this->assertSame('desc', $request->getDescription()); - $this->assertSame('extra 1', $request->getExtraData1()); - $this->assertSame('extra 2', $request->getExtraData2()); - $this->assertSame('extra 3', $request->getExtraData3()); - $this->assertSame('a language', $request->getLanguage()); - $this->assertSame('analytics code', $request->getGoogleAnalyticsCode()); - $this->assertSame('127.0.0.1', $request->getClientIp()); - $this->assertSame('something@example.com', $card->getEmail()); - $this->assertSame('first name', $card->getFirstName()); - $this->assertSame('last name', $card->getLastName()); - $this->assertSame('address 1', $card->getAddress1()); - $this->assertSame('address 2', $card->getAddress2()); - $this->assertSame('1000', $card->getPostcode()); - $this->assertSame('a city', $card->getCity()); - $this->assertSame('a country', $card->getCountry()); - $this->assertSame('phone number', $card->getPhone()); - } -} diff --git a/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php b/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php deleted file mode 100644 index 11f01963..00000000 --- a/tests/Omnipay/MultiSafepay/Message/AbstractRequestTest.php +++ /dev/null @@ -1,33 +0,0 @@ -request = m::mock('\Omnipay\MultiSafepay\Message\AbstractRequest[getData,sendData]'); - } - - /** - * @covers \Omnipay\MultiSafepay\Message\AbstractRequest::getHeaders() - */ - public function testUserAgentHeaderMustNotBeSet() - { - $method = new ReflectionMethod('\Omnipay\MultiSafepay\Message\AbstractRequest', 'getHeaders'); - $method->setAccessible(true); - - $headers = $method->invoke($this->request); - $this->assertArrayHasKey('User-Agent', $headers, 'Omitting User-Agent header not allowed because then Guzzle will set it and cause 403 Forbidden on the gateway'); - $this->assertEquals('Omnipay', $headers['User-Agent'], 'User-Agent header set'); - } -} diff --git a/tests/Omnipay/MultiSafepay/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/MultiSafepay/Message/CompletePurchaseRequestTest.php deleted file mode 100644 index f61a9b63..00000000 --- a/tests/Omnipay/MultiSafepay/Message/CompletePurchaseRequestTest.php +++ /dev/null @@ -1,106 +0,0 @@ -request = new CompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize(array( - 'accountId' => '111111', - 'siteId' => '222222', - 'siteCode' => '333333', - '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' => 'something@example.com', - 'firstName' => 'first name', - 'lastName' => 'last name', - 'address1' => 'address 1', - 'address2' => 'address 2', - 'postcode' => '1000', - 'city' => 'a city', - 'country' => 'a country', - 'phone' => 'phone number', - ) - )); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('CompletePurchaseSuccess.txt'); - - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('123456', $response->getTransactionReference()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('CompletePurchaseFailure.txt'); - - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertEquals('Back-end: missing data', $response->getMessage()); - $this->assertEquals(1016, $response->getCode()); - } - - /** - * @dataProvider dataProvider - */ - public function testGetData($xml) - { - $data = $this->request->getData(); - $this->assertInstanceOf('SimpleXMLElement', $data); - - // Just so the provider remains readable... - $dom = dom_import_simplexml($data)->ownerDocument; - $dom->formatOutput = true; - $this->assertEquals($xml, $dom->saveXML()); - } - - public function dataProvider() - { - $xml = << - - - 111111 - 222222 - 333333 - - - 123456 - - - -EOF; - - return array( - array($xml), - ); - } -} diff --git a/tests/Omnipay/MultiSafepay/Message/FetchIssuersRequestTest.php b/tests/Omnipay/MultiSafepay/Message/FetchIssuersRequestTest.php deleted file mode 100644 index d06e85c1..00000000 --- a/tests/Omnipay/MultiSafepay/Message/FetchIssuersRequestTest.php +++ /dev/null @@ -1,100 +0,0 @@ -request = new FetchIssuersRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize(array( - 'accountId' => '111111', - 'siteId' => '222222', - 'siteCode' => '333333', - )); - } - - /** - * @dataProvider issuersProvider - */ - public function testSendSuccess($expected) - { - $this->setMockHttpResponse('FetchIssuersSuccess.txt'); - - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals($expected, $response->getIssuers()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('FetchIssuersFailure.txt'); - - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertEquals('Invalid merchant security code', $response->getMessage()); - $this->assertEquals(1005, $response->getCode()); - } - - /** - * @dataProvider dataProvider - */ - public function testGetData($xml) - { - $data = $this->request->getData(); - $this->assertInstanceOf('SimpleXMLElement', $data); - - // Just so the provider remains readable... - $dom = dom_import_simplexml($data)->ownerDocument; - $dom->formatOutput = true; - $this->assertEquals($xml, $dom->saveXML()); - } - - public function issuersProvider() - { - return array( - array( - array( - '0031' => 'ABN AMRO', - '0751' => 'SNS Bank', - '0721' => 'ING', - '0021' => 'Rabobank', - '0091' => 'Friesland Bank', - '0761' => 'ASN Bank', - '0771' => 'SNS Regio Bank', - '0511' => 'Triodos Bank', - '0161' => 'Van Lanschot Bankiers', - '0801' => 'Knab', - ), - ), - ); - } - - public function dataProvider() - { - $xml = << - - - 111111 - 222222 - 333333 - - - -EOF; - - return array( - array($xml), - ); - } -} diff --git a/tests/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequestTest.php b/tests/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequestTest.php deleted file mode 100644 index 7819cc70..00000000 --- a/tests/Omnipay/MultiSafepay/Message/FetchPaymentMethodsRequestTest.php +++ /dev/null @@ -1,99 +0,0 @@ -request = new FetchPaymentMethodsRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize(array( - 'accountId' => '111111', - 'siteId' => '222222', - 'siteCode' => '333333', - 'country' => 'NL', - )); - } - - /** - * @dataProvider paymentMethodsProvider - */ - public function testSendSuccess($expected) - { - $this->setMockHttpResponse('FetchPaymentMethodsSuccess.txt'); - - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals($expected, $response->getPaymentMethods()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('FetchPaymentMethodsFailure.txt'); - - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertEquals('Invalid merchant security code', $response->getMessage()); - $this->assertEquals(1005, $response->getCode()); - } - - /** - * @dataProvider dataProvider - */ - public function testGetData($xml) - { - $data = $this->request->getData(); - $this->assertInstanceOf('SimpleXMLElement', $data); - - // Just so the provider remains readable... - $dom = dom_import_simplexml($data)->ownerDocument; - $dom->formatOutput = true; - $this->assertEquals($xml, $dom->saveXML()); - } - - public function paymentMethodsProvider() - { - return array( - array( - array( - 'VISA' => 'Visa CreditCards', - 'WALLET' => 'MultiSafepay', - 'IDEAL' => 'iDEAL', - 'BANKTRANS' => 'Bank Transfer', - 'MASTERCARD' => 'MasterCard', - ), - ), - ); - } - - public function dataProvider() - { - $xml = << - - - 111111 - 222222 - 333333 - - - NL - - - -EOF; - - return array( - array($xml), - ); - } -} diff --git a/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php b/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php deleted file mode 100644 index fabef147..00000000 --- a/tests/Omnipay/MultiSafepay/Message/PurchaseRequestTest.php +++ /dev/null @@ -1,282 +0,0 @@ -request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize(array( - 'accountId' => '111111', - 'siteId' => '222222', - 'siteCode' => '333333', - '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', - 'items' => 'the items', - 'clientIp' => '127.0.0.1', - 'googleAnalyticsCode' => 'analytics code', - 'card' => array( - 'email' => 'something@example.com', - 'firstName' => 'first name', - 'lastName' => 'last name', - 'address1' => 'address 1', - 'address2' => 'address 2', - 'postcode' => '1000', - 'city' => 'a city', - 'country' => 'a country', - 'phone' => 'phone number', - ) - )); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertEquals('https://testpay.multisafepay.com/pay/?transaction=1373536347Hz4sFtg7WgMulO5q123456&lang=', $response->getRedirectUrl()); - $this->assertEquals('123456', $response->getTransactionReference()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertEquals('Invalid amount', $response->getMessage()); - $this->assertEquals(1001, $response->getCode()); - } - - /** - * @dataProvider allDataProvider - */ - public function testGetData($xml) - { - $data = $this->request->getData(); - $this->assertInstanceOf('SimpleXMLElement', $data); - - // Just so the provider remains readable... - $dom = dom_import_simplexml($data)->ownerDocument; - $dom->formatOutput = true; - $this->assertEquals($xml, $dom->saveXML()); - } - - /** - * @dataProvider noIssuerDataProvider - */ - public function testGetDataWithNonIDEALGatewayDoesNotSetIssuer($xml) - { - $this->request->setGateway('another'); - $data = $this->request->getData(); - $this->assertInstanceOf('SimpleXMLElement', $data); - - // Just so the provider remains readable... - $dom = dom_import_simplexml($data)->ownerDocument; - $dom->formatOutput = true; - $this->assertEquals($xml, $dom->saveXML()); - } - - /** - * @dataProvider specialCharsDataProvider - */ - public function testGetDataWithUrlsWithSpecialChars($xml) - { - $this->request->setReturnUrl('http://localhost/?one=1&two=2'); - $this->request->setCancelUrl('http://localhost/?one=1&two=2'); - $this->request->setNotifyUrl('http://localhost/?one=1&two=2'); - $data = $this->request->getData(); - $this->assertInstanceOf('SimpleXMLElement', $data); - - // Just so the provider remains readable... - $dom = dom_import_simplexml($data)->ownerDocument; - $dom->formatOutput = true; - $this->assertEquals($xml, $dom->saveXML()); - } - - /** - * @covers \Omnipay\MultiSafepay\Message\PurchaseRequest::generateSignature() - */ - public function testGenerateSignature() - { - $method = new ReflectionMethod('\Omnipay\MultiSafepay\Message\PurchaseRequest', 'generateSignature'); - $method->setAccessible(true); - - $signature = $method->invoke($this->request); - $this->assertEquals('ad447bab87b8597853432c891e341db1', $signature); - } - - public function allDataProvider() - { - $xml = << - - - 111111 - 222222 - 333333 - http://localhost/notify - http://localhost/cancel - http://localhost/return - - - 127.0.0.1 - a language - something@example.com - first name - last name - address 1 - address 2 - 1000 - a city - a country - phone number - - analytics code - - 123456 - EUR - 10000 - desc - extra 1 - extra 2 - extra 3 - the items - IDEAL - - - issuer - - ad447bab87b8597853432c891e341db1 - - -EOF; - - return array( - array($xml), - ); - } - - public function noIssuerDataProvider() - { - $xml = << - - - 111111 - 222222 - 333333 - http://localhost/notify - http://localhost/cancel - http://localhost/return - - - 127.0.0.1 - a language - something@example.com - first name - last name - address 1 - address 2 - 1000 - a city - a country - phone number - - analytics code - - 123456 - EUR - 10000 - desc - extra 1 - extra 2 - extra 3 - the items - another - - ad447bab87b8597853432c891e341db1 - - -EOF; - - return array( - array($xml), - ); - } - - public function specialCharsDataProvider() - { - $xml = << - - - 111111 - 222222 - 333333 - http://localhost/?one=1&two=2 - http://localhost/?one=1&two=2 - http://localhost/?one=1&two=2 - - - 127.0.0.1 - a language - something@example.com - first name - last name - address 1 - address 2 - 1000 - a city - a country - phone number - - analytics code - - 123456 - EUR - 10000 - desc - extra 1 - extra 2 - extra 3 - the items - IDEAL - - - issuer - - ad447bab87b8597853432c891e341db1 - - -EOF; - - return array( - array($xml), - ); - } -} diff --git a/tests/Omnipay/MultiSafepay/Mock/CompletePurchaseFailure.txt b/tests/Omnipay/MultiSafepay/Mock/CompletePurchaseFailure.txt deleted file mode 100644 index 3d4544b8..00000000 --- a/tests/Omnipay/MultiSafepay/Mock/CompletePurchaseFailure.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 11 Jul 2013 10:36:27 GMT -Server: Apache/2.2.22 (FreeBSD) mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2 -Content-Length: 153 -Content-Type: text/xml - - -1016Back-end: missing data diff --git a/tests/Omnipay/MultiSafepay/Mock/CompletePurchaseSuccess.txt b/tests/Omnipay/MultiSafepay/Mock/CompletePurchaseSuccess.txt deleted file mode 100644 index e7cc8431..00000000 --- a/tests/Omnipay/MultiSafepay/Mock/CompletePurchaseSuccess.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 11 Jul 2013 10:34:48 GMT -Server: Apache/2.2.22 (FreeBSD) mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2 -Content-Length: 931 -Content-Type: text/xml - - -2087325completedNO201307111233082013071112331710000EURen_UStester@example.com123456EUR10000descIDEAL213698412Hr E G H Küppers en/of Mw M J Küppers an nog een lange consumername0050000075107095 diff --git a/tests/Omnipay/MultiSafepay/Mock/FetchIssuersFailure.txt b/tests/Omnipay/MultiSafepay/Mock/FetchIssuersFailure.txt deleted file mode 100644 index 7507ec6c..00000000 --- a/tests/Omnipay/MultiSafepay/Mock/FetchIssuersFailure.txt +++ /dev/null @@ -1,10 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 11 Jul 2013 13:22:17 GMT -Server: Apache/2.2.16 (Debian) -X-Powered-By: PHP/5.3.3-7+squeeze14 -Vary: Accept-Encoding -Content-Length: 173 -Content-Type: text/xml - - -1005Invalid merchant security code diff --git a/tests/Omnipay/MultiSafepay/Mock/FetchIssuersSuccess.txt b/tests/Omnipay/MultiSafepay/Mock/FetchIssuersSuccess.txt deleted file mode 100644 index 2633e283..00000000 --- a/tests/Omnipay/MultiSafepay/Mock/FetchIssuersSuccess.txt +++ /dev/null @@ -1,10 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 11 Jul 2013 13:21:39 GMT -Server: Apache/2.2.16 (Debian) -X-Powered-By: PHP/5.3.3-7+squeeze14 -Vary: Accept-Encoding -Content-Length: 810 -Content-Type: text/xml - - -0031ABN AMRO0751SNS Bank0721ING0021Rabobank0091Friesland Bank0761ASN Bank0771SNS Regio Bank0511Triodos Bank0161Van Lanschot Bankiers0801Knab diff --git a/tests/Omnipay/MultiSafepay/Mock/FetchPaymentMethodsFailure.txt b/tests/Omnipay/MultiSafepay/Mock/FetchPaymentMethodsFailure.txt deleted file mode 100644 index f43de626..00000000 --- a/tests/Omnipay/MultiSafepay/Mock/FetchPaymentMethodsFailure.txt +++ /dev/null @@ -1,10 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 11 Jul 2013 12:32:27 GMT -Server: Apache/2.2.16 (Debian) -X-Powered-By: PHP/5.3.3-7+squeeze14 -Vary: Accept-Encoding -Content-Length: 165 -Content-Type: text/xml - - -1005Invalid merchant security code diff --git a/tests/Omnipay/MultiSafepay/Mock/FetchPaymentMethodsSuccess.txt b/tests/Omnipay/MultiSafepay/Mock/FetchPaymentMethodsSuccess.txt deleted file mode 100644 index 07612730..00000000 --- a/tests/Omnipay/MultiSafepay/Mock/FetchPaymentMethodsSuccess.txt +++ /dev/null @@ -1,10 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 11 Jul 2013 12:31:26 GMT -Server: Apache/2.2.16 (Debian) -X-Powered-By: PHP/5.3.3-7+squeeze14 -Vary: Accept-Encoding -Content-Length: 459 -Content-Type: text/xml - - -VISAVisa CreditCardsWALLETMultiSafepayIDEALiDEALBANKTRANSBank TransferMASTERCARDMasterCard diff --git a/tests/Omnipay/MultiSafepay/Mock/PurchaseFailure.txt b/tests/Omnipay/MultiSafepay/Mock/PurchaseFailure.txt deleted file mode 100644 index b7900c97..00000000 --- a/tests/Omnipay/MultiSafepay/Mock/PurchaseFailure.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 11 Jul 2013 10:06:38 GMT -Server: Apache/2.2.22 (FreeBSD) mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2 -Content-Length: 213 -Content-Type: text/xml - - -1001Invalid amount123456 diff --git a/tests/Omnipay/MultiSafepay/Mock/PurchaseSuccess.txt b/tests/Omnipay/MultiSafepay/Mock/PurchaseSuccess.txt deleted file mode 100644 index 1abdd95d..00000000 --- a/tests/Omnipay/MultiSafepay/Mock/PurchaseSuccess.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 11 Jul 2013 09:52:27 GMT -Server: Apache/2.2.22 (FreeBSD) mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2 -Content-Length: 256 -Content-Type: text/xml - - -123456https://testpay.multisafepay.com/pay/?transaction=1373536347Hz4sFtg7WgMulO5q123456&lang= diff --git a/tests/Omnipay/NetBanx/GatewayTest.php b/tests/Omnipay/NetBanx/GatewayTest.php deleted file mode 100644 index cf95ec7f..00000000 --- a/tests/Omnipay/NetBanx/GatewayTest.php +++ /dev/null @@ -1,335 +0,0 @@ -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('test@example.com'); - - $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 testAuthorizeSuccess() - { - $this->setMockHttpResponse('AuthorizeSuccess.txt'); - - $request = $this->gateway->authorize($this->purchaseOptions); - $requestData = $request->getData(); - /** @var $card CreditCard */ - $card = $request->getCard(); - - $response = $request->send(); - - $sxml = new \SimpleXMLElement($requestData['txnRequest']); - - $this->assertSame('ccAuthorize', $requestData['txnMode']); - - $this->assertSame('93401', (string) $sxml->billingDetails->zip); - $this->assertSame('VI', (string) $sxml->card->cardType); - - $this->assertTrue(isset($sxml->billingDetails)); - $this->assertTrue(isset($sxml->shippingDetails)); - - $this->assertSame('95.63', (string) $sxml->amount); - $this->assertSame('9966441', (string) $sxml->merchantRefNum); - $this->assertSame('93401', $card->getPostcode()); - $this->assertSame('test@example.com', $card->getEmail()); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('244350540', $response->getTransactionReference()); - $this->assertSame('No Error', $response->getMessage()); - } - - public function testAuthorizeFailure() - { - $this->setMockHttpResponse('AuthorizeFailure.txt'); - - $response = $this->gateway->authorize($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('-1', $response->getTransactionReference()); - $this->assertSame('Invalid txnMode: ccccAuthorize', $response->getMessage()); - } - - public function testStoredDataAuthorizeSuccess() - { - $this->setMockHttpResponse('StoredDataAuthorizeSuccess.txt'); - - $request = $this->gateway->authorize($this->storedDataOptions); - $requestData = $request->getData(); - - $response = $request->send(); - - $sxml = new \SimpleXMLElement($requestData['txnRequest']); - - $this->assertSame('ccStoredDataAuthorize', $requestData['txnMode']); - - $this->assertSame('244530120', (string) $sxml->confirmationNumber); - - $this->assertSame('95.63', (string) $sxml->amount); - $this->assertSame('9966441', (string) $sxml->merchantRefNum); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('244530120', $response->getTransactionReference()); - $this->assertSame('No Error', $response->getMessage()); - } - - public function testStoredDataAuthorizeFailure() - { - $this->setMockHttpResponse('StoredDataAuthorizeFailure.txt'); - - $response = $this->gateway->authorize($this->storedDataOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame( - 'You submitted an invalid XML request. Please verify your request and retry the transaction.', - $response->getMessage() - ); - } - - public function testCaptureSuccess() - { - $this->setMockHttpResponse('CaptureSuccess.txt'); - - $request = $this->gateway->capture($this->captureOptions); - $requestData = $request->getData(); - - $response = $request->send(); - - $this->assertSame('ccSettlement', $requestData['txnMode']); - - $sxml = new \SimpleXMLElement($requestData['txnRequest']); - - $this->assertSame('9988775', (string) $sxml->confirmationNumber); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('9988775', $response->getTransactionReference()); - $this->assertSame('No Error', $response->getMessage()); - } - - public function testCaptureFailure() - { - $this->setMockHttpResponse('CaptureFailure.txt'); - - $request = $this->gateway->capture($this->captureOptions); - $requestData = $request->getData(); - - $response = $request->send(); - - $this->assertSame('ccSettlement', $requestData['txnMode']); - - $sxml = new \SimpleXMLElement($requestData['txnRequest']); - - $this->assertSame('9988775', (string) $sxml->confirmationNumber); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('9988775', $response->getTransactionReference()); - $this->assertSame('The authorization is either fully settled or cancelled.', $response->getMessage()); - } - - public function testPurchaseSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $request = $this->gateway->purchase($this->purchaseOptions); - $requestData = $request->getData(); - /** @var $card CreditCard */ - $card = $request->getCard(); - - $response = $request->send(); - - $sxml = new \SimpleXMLElement($requestData['txnRequest']); - - $this->assertSame('ccPurchase', $requestData['txnMode']); - - $this->assertSame('93401', (string) $sxml->billingDetails->zip); - - $this->assertSame('93401', $card->getPostcode()); - $this->assertSame('test@example.com', $card->getEmail()); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('244356120', $response->getTransactionReference()); - $this->assertSame('No Error', $response->getMessage()); - } - - public function testPurchaseFailure() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - - $request = $this->gateway->purchase($this->purchaseOptions); - $requestData = $request->getData(); - /** @var $card CreditCard */ - $card = $request->getCard(); - - $response = $request->send(); - - $sxml = new \SimpleXMLElement($requestData['txnRequest']); - - $this->assertSame('ccPurchase', $requestData['txnMode']); - - $this->assertSame('93401', (string) $sxml->billingDetails->zip); - - $this->assertSame('93401', $card->getPostcode()); - $this->assertSame('test@example.com', $card->getEmail()); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('244356120', $response->getTransactionReference()); - $this->assertSame('You submitted an unsupported card type with your request.', $response->getMessage()); - } - - public function testStoredDataPurchaseSuccess() - { - $this->setMockHttpResponse('StoredDataPurchaseSuccess.txt'); - - $request = $this->gateway->purchase($this->storedDataOptions); - $requestData = $request->getData(); - - $response = $request->send(); - - $sxml = new \SimpleXMLElement($requestData['txnRequest']); - - $this->assertSame('ccStoredDataPurchase', $requestData['txnMode']); - - $this->assertSame('244530120', (string) $sxml->confirmationNumber); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('244679250', $response->getTransactionReference()); - $this->assertSame('No Error', $response->getMessage()); - } - - public function testStoredDataPurchaseFailure() - { - $this->setMockHttpResponse('StoredDataPurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->storedDataOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame( - 'You submitted an invalid XML request. Please verify your request and retry the transaction.', - $response->getMessage() - ); - } - - public function testVoidSuccess() - { - $this->setMockHttpResponse('VoidSuccess.txt'); - - $request = $this->gateway->void($this->voidOptions); - $requestData = $request->getData(); - $response = $request->send(); - - $sxml = new \SimpleXMLElement($requestData['txnRequest']); - - $this->assertSame('ccAuthorizeReversal', $requestData['txnMode']); - - $this->assertSame('12345678', (string) $sxml->merchantAccount->accountNum); - $this->assertSame('test', (string) $sxml->merchantAccount->storeID); - $this->assertSame('test', (string) $sxml->merchantAccount->storePwd); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('12345678', $response->getTransactionReference()); - $this->assertSame('No Error', $response->getMessage()); - } - - public function testVoidFailure() - { - $this->setMockHttpResponse('VoidFailure.txt'); - - $request = $this->gateway->void($this->voidOptions); - $requestData = $request->getData(); - $response = $request->send(); - - $sxml = new \SimpleXMLElement($requestData['txnRequest']); - - $this->assertSame('ccAuthorizeReversal', $requestData['txnMode']); - - $this->assertSame('12345678', (string) $sxml->merchantAccount->accountNum); - $this->assertSame('test', (string) $sxml->merchantAccount->storeID); - $this->assertSame('test', (string) $sxml->merchantAccount->storePwd); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('12345678', $response->getTransactionReference()); - $this->assertSame('The confirmation number included in this request could not be found.', $response->getMessage()); - } - - public function testCreateCard() - { - $this->setMockHttpResponse('CreateCard.txt'); - - $request = $this->gateway->createCard($this->purchaseOptions); - $requestData = $request->getData(); - /** @var $card CreditCard */ - $card = $request->getCard(); - - $response = $request->send(); - - $sxml = new \SimpleXMLElement($requestData['txnRequest']); - - $this->assertSame('ccAuthorize', $requestData['txnMode']); - - $this->assertSame('93401', (string) $sxml->billingDetails->zip); - $this->assertSame('VI', (string) $sxml->card->cardType); - - $this->assertTrue(isset($sxml->billingDetails)); - $this->assertTrue(isset($sxml->shippingDetails)); - - $this->assertSame('1.00', (string) $sxml->amount); - $this->assertSame('9966441', (string) $sxml->merchantRefNum); - $this->assertSame('93401', $card->getPostcode()); - $this->assertSame('test@example.com', $card->getEmail()); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('244350540', $response->getCardReference()); - $this->assertSame('No Error', $response->getMessage()); - } -} diff --git a/tests/Omnipay/NetBanx/Mock/AuthorizeFailure.txt b/tests/Omnipay/NetBanx/Mock/AuthorizeFailure.txt deleted file mode 100644 index a3c63491..00000000 --- a/tests/Omnipay/NetBanx/Mock/AuthorizeFailure.txt +++ /dev/null @@ -1,32 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:23:27 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 683 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - -1 - ERROR - 1000 - Invalid txnMode: ccccAuthorize - R - U - - InternalResponseCode - 14 - - - SubErrorCode - 0 - - - InternalResponseDescription - invalid operation mode - - 2013-02-15T14:17:07.423-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/AuthorizeSuccess.txt b/tests/Omnipay/NetBanx/Mock/AuthorizeSuccess.txt deleted file mode 100644 index 6b489ad3..00000000 --- a/tests/Omnipay/NetBanx/Mock/AuthorizeSuccess.txt +++ /dev/null @@ -1,32 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:22:58 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 638 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 244350540 - ACCEPTED - 0 - No Error - 245904 - X - - InternalResponseCode - 0 - - - SubErrorCode - 0 - - - InternalResponseDescription - no_error - - 2013-04-17T06:27:04.373-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/CaptureFailure.txt b/tests/Omnipay/NetBanx/Mock/CaptureFailure.txt deleted file mode 100644 index 0413fed9..00000000 --- a/tests/Omnipay/NetBanx/Mock/CaptureFailure.txt +++ /dev/null @@ -1,31 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:23:27 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 697 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 9988775 - ERROR - 3203 - M - The authorization is either fully settled or cancelled. - - InternalResponseCode - 204 - - - SubErrorCode - 0 - - - InternalResponseDescription - Authorization is either fully settled or canceled. - - 2013-04-17T08:02:48.092-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/CaptureSuccess.txt b/tests/Omnipay/NetBanx/Mock/CaptureSuccess.txt deleted file mode 100644 index 9946d459..00000000 --- a/tests/Omnipay/NetBanx/Mock/CaptureSuccess.txt +++ /dev/null @@ -1,30 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:56:28 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 577 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 9988775 - ACCEPTED - 0 - No Error - - InternalResponseCode - 0 - - - SubErrorCode - 0 - - - InternalResponseDescription - no_error - - 2013-04-17T08:03:29.538-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/CreateCard.txt b/tests/Omnipay/NetBanx/Mock/CreateCard.txt deleted file mode 100644 index 6b489ad3..00000000 --- a/tests/Omnipay/NetBanx/Mock/CreateCard.txt +++ /dev/null @@ -1,32 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:22:58 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 638 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 244350540 - ACCEPTED - 0 - No Error - 245904 - X - - InternalResponseCode - 0 - - - SubErrorCode - 0 - - - InternalResponseDescription - no_error - - 2013-04-17T06:27:04.373-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/PurchaseFailure.txt b/tests/Omnipay/NetBanx/Mock/PurchaseFailure.txt deleted file mode 100644 index 04878445..00000000 --- a/tests/Omnipay/NetBanx/Mock/PurchaseFailure.txt +++ /dev/null @@ -1,31 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:56:28 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 638 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 244356120 - ERROR - 3001 - C - You submitted an unsupported card type with your request. - - InternalResponseCode - 115 - - - SubErrorCode - 0 - - - InternalResponseDescription - invalid brand - - 2013-04-17T08:23:22.009-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/PurchaseSuccess.txt b/tests/Omnipay/NetBanx/Mock/PurchaseSuccess.txt deleted file mode 100644 index b7bd5591..00000000 --- a/tests/Omnipay/NetBanx/Mock/PurchaseSuccess.txt +++ /dev/null @@ -1,32 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:56:28 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 638 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 244356120 - ACCEPTED - 0 - No Error - 246413 - X - - InternalResponseCode - 0 - - - SubErrorCode - 0 - - - InternalResponseDescription - no_error - - 2013-04-17T08:18:43.646-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/StoredDataAuthorizeFailure.txt b/tests/Omnipay/NetBanx/Mock/StoredDataAuthorizeFailure.txt deleted file mode 100644 index 43cf7fa1..00000000 --- a/tests/Omnipay/NetBanx/Mock/StoredDataAuthorizeFailure.txt +++ /dev/null @@ -1,38 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:22:58 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 1618 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 244678250 - ERROR - 5023 - M - You submitted an invalid XML request. Please verify your request and retry the transaction. - - InternalResponseCode - 24 - - - SubErrorCode - 0 - - - InternalResponseDescription - xml error - - - ErrorDetail - Errors: - Node: confirmationNumber, Detail: Expected element \'merchantRefNum@http://www.optimalpayments.com/creditcard/xmlschema/v1\' instead of \'confirmationNumber@http://www.optimalpayments.com/creditcard/xmlschema/v1\' here in element ccStoredDataRequestV1@http://www.optimalpayments.com/creditcard/xmlschema/v1 - Node: amount, Detail: Expected element \'confirmationNumber@http://www.optimalpayments.com/creditcard/xmlschema/v1\' instead of \'amount@http://www.optimalpayments.com/creditcard/xmlschema/v1\' here in element ccStoredDataRequestV1@http://www.optimalpayments.com/creditcard/xmlschema/v1 - Node: ccStoredDataRequestV1, Detail: Expected element \'confirmationNumber@http://www.optimalpayments.com/creditcard/xmlschema/v1\' before the end of the content in element ccStoredDataRequestV1@http://www.optimalpayments.com/creditcard/xmlschema/v1 - - 2013-04-25T06:11:51.284-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/StoredDataAuthorizeSuccess.txt b/tests/Omnipay/NetBanx/Mock/StoredDataAuthorizeSuccess.txt deleted file mode 100644 index f7d005d6..00000000 --- a/tests/Omnipay/NetBanx/Mock/StoredDataAuthorizeSuccess.txt +++ /dev/null @@ -1,32 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:22:58 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 638 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 244530120 - ACCEPTED - 0 - No Error - 107401 - X - - InternalResponseCode - 0 - - - SubErrorCode - 0 - - - InternalResponseDescription - no_error - - 2013-04-22T05:27:48.472-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/StoredDataPurchaseFailure.txt b/tests/Omnipay/NetBanx/Mock/StoredDataPurchaseFailure.txt deleted file mode 100644 index b2ef36d0..00000000 --- a/tests/Omnipay/NetBanx/Mock/StoredDataPurchaseFailure.txt +++ /dev/null @@ -1,31 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:22:58 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 684 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - -1 - ERROR - 5023 - M - You submitted an invalid XML request. Please verify your request and retry the transaction. - - InternalResponseCode - 24 - - - SubErrorCode - 0 - - - InternalResponseDescription - xml error - - 2013-04-25T06:25:35.722-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/StoredDataPurchaseSuccess.txt b/tests/Omnipay/NetBanx/Mock/StoredDataPurchaseSuccess.txt deleted file mode 100644 index 64839440..00000000 --- a/tests/Omnipay/NetBanx/Mock/StoredDataPurchaseSuccess.txt +++ /dev/null @@ -1,32 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:22:58 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 638 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 244679250 - ACCEPTED - 0 - No Error - 117480 - S - - InternalResponseCode - 0 - - - SubErrorCode - 0 - - - InternalResponseDescription - no_error - - 2013-04-25T06:52:55.757-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/VoidFailure.txt b/tests/Omnipay/NetBanx/Mock/VoidFailure.txt deleted file mode 100644 index af3e8311..00000000 --- a/tests/Omnipay/NetBanx/Mock/VoidFailure.txt +++ /dev/null @@ -1,31 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:22:58 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 683 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 12345678 - ERROR - 3500 - M - The confirmation number included in this request could not be found. - - InternalResponseCode - 250 - - - SubErrorCode - 0 - - - InternalResponseDescription - Authorization transaction not found for reversal. - - 2013-04-17T08:35:42.302-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/NetBanx/Mock/VoidSuccess.txt b/tests/Omnipay/NetBanx/Mock/VoidSuccess.txt deleted file mode 100644 index 6934ba4d..00000000 --- a/tests/Omnipay/NetBanx/Mock/VoidSuccess.txt +++ /dev/null @@ -1,30 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Date: Sat, 16 Feb 2013 04:22:58 GMT -Server: Microsoft-IIS/6.0 -X-Powered-By: ASP.NET -Content-Type: text/html -Content-Length: 683 -Cache-Control: private, must-revalidate, max-age=0 -Expires: Tue, 01 Jan 1980 00:00:00 GMT - - - 12345678 - ACCEPTED - 0 - No Error - - InternalResponseCode - 0 - - - SubErrorCode - 0 - - - InternalResponseDescription - no_error - - 2013-04-17T08:39:38.347-04:00 - false - \ No newline at end of file diff --git a/tests/Omnipay/Netaxept/GatewayTest.php b/tests/Omnipay/Netaxept/GatewayTest.php deleted file mode 100644 index fc355a14..00000000 --- a/tests/Omnipay/Netaxept/GatewayTest.php +++ /dev/null @@ -1,104 +0,0 @@ -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', - ); - } - - public function testPurchaseSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertEquals('f3d94dd5c0f743a788fc943402757c58', $response->getTransactionReference()); - $this->assertSame('GET', $response->getRedirectMethod()); - $this->assertSame('https://epayment.bbs.no/Terminal/Default.aspx?merchantId=foo&transactionId=f3d94dd5c0f743a788fc943402757c58', $response->getRedirectUrl()); - } - - public function testPurchaseFailure() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame("Missing parameter: 'Order Number'", $response->getMessage()); - } - - public function testCompletePurchaseSuccess() - { - $this->getHttpRequest()->query->replace( - array( - 'responseCode' => 'OK', - 'transactionId' => 'abc123', - ) - ); - - $this->setMockHttpResponse('CompletePurchaseSuccess.txt'); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertEquals('8a88d40cab5b47fab25e24d6228180a7', $response->getTransactionReference()); - $this->assertSame('OK', $response->getMessage()); - } - - public function testCompletePurchaseCancel() - { - $this->getHttpRequest()->query->replace( - array( - 'transactionId' => '1de59458487344759832716abf48109b', - 'responseCode' => 'Cancel', - ) - ); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertEquals('1de59458487344759832716abf48109b', $response->getTransactionReference()); - $this->assertEquals('Cancel', $response->getMessage()); - } - - public function testCompletePurchaseFailure() - { - $this->getHttpRequest()->query->replace( - array( - 'responseCode' => 'OK', - 'transactionId' => 'abc123', - ) - ); - - $this->setMockHttpResponse('CompletePurchaseFailure.txt'); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Unable to find transaction', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Netaxept/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/Netaxept/Message/CompletePurchaseRequestTest.php deleted file mode 100644 index e358429f..00000000 --- a/tests/Omnipay/Netaxept/Message/CompletePurchaseRequestTest.php +++ /dev/null @@ -1,46 +0,0 @@ -getHttpClient(); - $this->httpRequest = $this->getHttpRequest(); - - $this->request = new CompletePurchaseRequest($client, $this->httpRequest); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidResponseException - */ - public function testGetDataThrowsExceptionWithoutResponseCode() - { - $this->httpRequest->query->set('transactionId', 'TRANS-123'); - - $this->request->getData(); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidResponseException - */ - public function testGetDataThrowsExceptionWithoutTransactionId() - { - $this->httpRequest->query->set('responseCode', 'ABC-123'); - - $this->request->getData(); - } -} diff --git a/tests/Omnipay/Netaxept/Message/PurchaseRequestTest.php b/tests/Omnipay/Netaxept/Message/PurchaseRequestTest.php deleted file mode 100644 index 07d9576f..00000000 --- a/tests/Omnipay/Netaxept/Message/PurchaseRequestTest.php +++ /dev/null @@ -1,66 +0,0 @@ -getHttpClient(); - $request = $this->getHttpRequest(); - - $this->request = new PurchaseRequest($client, $request); - } - - public function testGetDataWithCard() - { - $this->request->setMerchantId('MERCH-123'); - $this->request->setPassword('PASSWORD-123'); - $this->request->setAmount('1.23'); - $this->request->setCurrency('USD'); - $this->request->setTransactionId('ABC-123'); - $this->request->setReturnUrl('http://return.domain.com/'); - - $card = new CreditCard(array( - 'firstName' => 'John', - 'lastName' => 'Doe', - 'email' => 'test@email.com', - 'phone' => '555-555-5555', - 'address1' => '123 NW Blvd', - 'address2' => 'Lynx Lane', - 'postcode' => '66605', - 'city' => 'Topeka', - 'country' => 'USA', - )); - $this->request->setCard($card); - - $expected = array( - 'merchantId' => 'MERCH-123', - 'token' => 'PASSWORD-123', - 'serviceType' => 'B', - 'orderNumber' => 'ABC-123', - 'currencyCode' => 'USD', - 'amount' => 123, - 'redirectUrl' => 'http://return.domain.com/', - 'customerFirstName' => 'John', - 'customerLastName' => 'Doe', - 'customerEmail' => 'test@email.com', - 'customerPhoneNumber' => '555-555-5555', - 'customerAddress1' => '123 NW Blvd', - 'customerAddress2' => 'Lynx Lane', - 'customerPostcode' => '66605', - 'customerTown' => 'Topeka', - 'customerCountry' => 'USA', - ); - - $this->assertEquals($expected, $this->request->getData()); - } -} diff --git a/tests/Omnipay/Netaxept/Message/ResponseTest.php b/tests/Omnipay/Netaxept/Message/ResponseTest.php deleted file mode 100644 index 88c1585d..00000000 --- a/tests/Omnipay/Netaxept/Message/ResponseTest.php +++ /dev/null @@ -1,54 +0,0 @@ -getMockHttpResponse('PurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->xml()); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertEquals('f3d94dd5c0f743a788fc943402757c58', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - public function testPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('PurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->xml()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getRedirectUrl()); - $this->assertNull($response->getRedirectData()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame("Missing parameter: 'Order Number'", $response->getMessage()); - } - - public function testCompletePurchaseSuccess() - { - $httpResponse = $this->getMockHttpResponse('CompletePurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->xml()); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertEquals('8a88d40cab5b47fab25e24d6228180a7', $response->getTransactionReference()); - $this->assertSame('OK', $response->getMessage()); - } - - public function testCompletePurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('CompletePurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->xml()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Unable to find transaction', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Netaxept/Mock/CompletePurchaseFailure.txt b/tests/Omnipay/Netaxept/Mock/CompletePurchaseFailure.txt deleted file mode 100644 index 6124a408..00000000 --- a/tests/Omnipay/Netaxept/Mock/CompletePurchaseFailure.txt +++ /dev/null @@ -1,15 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: private -Content-Type: text/xml -Server: Microsoft-IIS/7.5 -X-AspNet-Version: 4.0.30319 -X-Powered-By: ASP.NET -Date: Fri, 22 Feb 2013 16:55:41 GMT -Content-Length: 245 - - - - - Unable to find transaction - - \ No newline at end of file diff --git a/tests/Omnipay/Netaxept/Mock/CompletePurchaseSuccess.txt b/tests/Omnipay/Netaxept/Mock/CompletePurchaseSuccess.txt deleted file mode 100644 index bf00d939..00000000 --- a/tests/Omnipay/Netaxept/Mock/CompletePurchaseSuccess.txt +++ /dev/null @@ -1,19 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: private -Content-Type: text/xml -Server: Microsoft-IIS/7.5 -X-AspNet-Version: 4.0.30319 -X-Powered-By: ASP.NET -Date: Fri, 22 Feb 2013 16:53:34 GMT -Content-Length: 474 - - - - AUTH - OK - 090896 - 8a88d40cab5b47fab25e24d6228180a7 - 2013-02-22T17:53:33.9906245+01:00 - 424278 - 246 - \ No newline at end of file diff --git a/tests/Omnipay/Netaxept/Mock/PurchaseFailure.txt b/tests/Omnipay/Netaxept/Mock/PurchaseFailure.txt deleted file mode 100644 index 43836b35..00000000 --- a/tests/Omnipay/Netaxept/Mock/PurchaseFailure.txt +++ /dev/null @@ -1,15 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: private -Content-Type: text/xml -Server: Microsoft-IIS/7.5 -X-AspNet-Version: 4.0.30319 -X-Powered-By: ASP.NET -Date: Fri, 22 Feb 2013 15:53:42 GMT -Content-Length: 259 - - - - - Missing parameter: 'Order Number' - - \ No newline at end of file diff --git a/tests/Omnipay/Netaxept/Mock/PurchaseSuccess.txt b/tests/Omnipay/Netaxept/Mock/PurchaseSuccess.txt deleted file mode 100644 index c50aec61..00000000 --- a/tests/Omnipay/Netaxept/Mock/PurchaseSuccess.txt +++ /dev/null @@ -1,13 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: private -Content-Type: text/xml -Server: Microsoft-IIS/7.5 -X-AspNet-Version: 4.0.30319 -X-Powered-By: ASP.NET -Date: Fri, 22 Feb 2013 15:55:07 GMT -Content-Length: 228 - - - - f3d94dd5c0f743a788fc943402757c58 - \ No newline at end of file diff --git a/tests/Omnipay/PayFast/GatewayTest.php b/tests/Omnipay/PayFast/GatewayTest.php deleted file mode 100644 index c5674a0c..00000000 --- a/tests/Omnipay/PayFast/GatewayTest.php +++ /dev/null @@ -1,31 +0,0 @@ -gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testPurchase() - { - $request = $this->gateway->purchase(array('amount' => '12.00')); - - $this->assertInstanceOf('\Omnipay\PayFast\Message\PurchaseRequest', $request); - $this->assertSame('12.00', $request->getAmount()); - } - - public function testCompletePurchase() - { - $request = $this->gateway->completePurchase(array('amount' => '12.00')); - - $this->assertInstanceOf('\Omnipay\PayFast\Message\CompletePurchaseRequest', $request); - $this->assertSame('12.00', $request->getAmount()); - } -} diff --git a/tests/Omnipay/PayFast/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/PayFast/Message/CompletePurchaseRequestTest.php deleted file mode 100644 index bd271099..00000000 --- a/tests/Omnipay/PayFast/Message/CompletePurchaseRequestTest.php +++ /dev/null @@ -1,86 +0,0 @@ -request = new CompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function getItnPostData() - { - return array( - 'm_payment_id' => '', - 'pf_payment_id' => '61493', - 'payment_status' => 'COMPLETE', - 'item_name' => 'fjdksl', - 'item_description' => '', - 'amount_gross' => '12.00', - 'amount_fee' => '-0.27', - 'amount_net' => '11.73', - 'custom_str1' => '', - 'custom_str2' => '', - 'custom_str3' => '', - 'custom_str4' => '', - 'custom_str5' => '', - 'custom_int1' => '', - 'custom_int2' => '', - 'custom_int3' => '', - 'custom_int4' => '', - 'custom_int5' => '', - 'name_first' => 'Test', - 'name_last' => 'User 01', - 'email_address' => 'sbtu01@payfast.co.za', - 'merchant_id' => '10000103', - 'signature' => '92ac916145511e9050383b008729e162', - ); - } - - public function testCompletePurchaseItnSuccess() - { - $this->getHttpRequest()->request->replace($this->getItnPostData()); - $this->setMockHttpResponse('CompletePurchaseItnSuccess.txt'); - - $response = $this->request->send(); - - $this->assertInstanceOf('Omnipay\PayFast\Message\CompletePurchaseItnResponse', $response); - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('61493', $response->getTransactionReference()); - $this->assertSame('COMPLETE', $response->getMessage()); - $this->assertNull($response->getCode()); - } - - public function testCompletePurchaseItnInvalid() - { - $this->getHttpRequest()->request->replace($this->getItnPostData()); - $this->setMockHttpResponse('CompletePurchaseItnFailure.txt'); - - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('INVALID', $response->getMessage()); - $this->assertNull($response->getCode()); - } - - public function testCompletePurchasePdtSuccess() - { - $this->getHttpRequest()->query->replace(array('pt' => 'abc')); - $this->setMockHttpResponse('CompletePurchasePdtFailure.txt'); - - $response = $this->request->send(); - - $this->assertInstanceOf('Omnipay\PayFast\Message\CompletePurchasePdtResponse', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('FAIL', $response->getMessage()); - $this->assertNull($response->getCode()); - } -} diff --git a/tests/Omnipay/PayFast/Message/PurchaseRequestTest.php b/tests/Omnipay/PayFast/Message/PurchaseRequestTest.php deleted file mode 100644 index e6573702..00000000 --- a/tests/Omnipay/PayFast/Message/PurchaseRequestTest.php +++ /dev/null @@ -1,49 +0,0 @@ -request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testSignature() - { - $this->request->initialize( - array( - 'amount' => '12.00', - 'description' => 'Test Product', - 'transactionId' => 123, - 'merchantId' => 'foo', - 'merchantKey' => 'bar', - 'returnUrl' => 'https://www.example.com/return', - 'cancelUrl' => 'https://www.example.com/cancel', - ) - ); - - $data = $this->request->getData(); - $this->assertSame('ab86df60906e97d3bfb362aff26fd9e6', $data['signature']); - } - - public function testPurchase() - { - $this->request->setAmount('12.00')->setDescription('Test Product'); - - $response = $this->request->send(); - - $this->assertInstanceOf('Omnipay\PayFast\Message\PurchaseResponse', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertNull($response->getCode()); - - $this->assertSame('https://www.payfast.co.za/eng/process', $response->getRedirectUrl()); - $this->assertSame('POST', $response->getRedirectMethod()); - $this->assertArrayHasKey('signature', $response->getData()); - } -} diff --git a/tests/Omnipay/PayFast/Message/PurchaseResponseTest.php b/tests/Omnipay/PayFast/Message/PurchaseResponseTest.php deleted file mode 100644 index b1080892..00000000 --- a/tests/Omnipay/PayFast/Message/PurchaseResponseTest.php +++ /dev/null @@ -1,24 +0,0 @@ - '123'); - $response = new PurchaseResponse($this->getMockRequest(), $data, 'https://example.com/'); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame($data, $response->getData()); - - $this->assertSame('https://example.com/', $response->getRedirectUrl()); - $this->assertSame('POST', $response->getRedirectMethod()); - $this->assertSame($data, $response->getRedirectData()); - } -} diff --git a/tests/Omnipay/PayFast/Mock/CompletePurchaseItnFailure.txt b/tests/Omnipay/PayFast/Mock/CompletePurchaseItnFailure.txt deleted file mode 100644 index 11ee6c24..00000000 --- a/tests/Omnipay/PayFast/Mock/CompletePurchaseItnFailure.txt +++ /dev/null @@ -1,13 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 07 Mar 2013 04:57:24 GMT -Server: Apache/2.2.3 (CentOS) -Set-Cookie: refer_session=Direct; path=/; domain=.payfast.co.za, refer_first=Direct; expires=Fri, 07-Mar-2014 04:57:24 GMT; path=/; domain=.payfast.co.za -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 -Pragma: no-cache -Vary: Accept-Encoding,User-Agent -Content-Length: 7 -Connection: close -Content-Type: text/html; charset=UTF-8 - -INVALID \ No newline at end of file diff --git a/tests/Omnipay/PayFast/Mock/CompletePurchaseItnSuccess.txt b/tests/Omnipay/PayFast/Mock/CompletePurchaseItnSuccess.txt deleted file mode 100644 index 513ace14..00000000 --- a/tests/Omnipay/PayFast/Mock/CompletePurchaseItnSuccess.txt +++ /dev/null @@ -1,12 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 07 Mar 2013 05:30:11 GMT -Server: Apache/2.2.3 (CentOS) -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 -Pragma: no-cache -Vary: Accept-Encoding,User-Agent -Content-Length: 5 -Connection: close -Content-Type: text/html; charset=UTF-8 - -VALID \ No newline at end of file diff --git a/tests/Omnipay/PayFast/Mock/CompletePurchasePdtFailure.txt b/tests/Omnipay/PayFast/Mock/CompletePurchasePdtFailure.txt deleted file mode 100644 index a577ecac..00000000 --- a/tests/Omnipay/PayFast/Mock/CompletePurchasePdtFailure.txt +++ /dev/null @@ -1,12 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 07 Mar 2013 05:07:38 GMT -Server: Apache/2.2.3 (CentOS) -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 -Pragma: no-cache -Vary: Accept-Encoding,User-Agent -Content-Length: 4 -Connection: close -Content-Type: text/html; charset=UTF-8 - -FAIL \ No newline at end of file diff --git a/tests/Omnipay/PayFast/Mock/CompletePurchasePdtSuccess.txt b/tests/Omnipay/PayFast/Mock/CompletePurchasePdtSuccess.txt deleted file mode 100644 index 062df7c4..00000000 --- a/tests/Omnipay/PayFast/Mock/CompletePurchasePdtSuccess.txt +++ /dev/null @@ -1,34 +0,0 @@ -HTTP/1.1 200 OK -Date: Thu, 07 Mar 2013 04:50:36 GMT -Server: Apache/2.2.3 (CentOS) -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 -Pragma: no-cache -Vary: Accept-Encoding,User-Agent -Content-Length: 397 -Connection: close -Content-Type: text/html; charset=UTF-8 - -SUCCESS -m_payment_id= -pf_payment_id=61484 -payment_status=COMPLETE -item_name=fjdksl -item_description= -amount_gross=12.00 -amount_fee=-0.27 -amount_net=11.73 -custom_str1= -custom_str2= -custom_str3= -custom_str4= -custom_str5= -custom_int1= -custom_int2= -custom_int3= -custom_int4= -custom_int5= -name_first=Test -name_last=User+01 -email_address=sbtu01%40payfast.co.za -merchant_id=10000103 \ No newline at end of file diff --git a/tests/Omnipay/PayPal/ExpressGatewayTest.php b/tests/Omnipay/PayPal/ExpressGatewayTest.php deleted file mode 100644 index e033af2c..00000000 --- a/tests/Omnipay/PayPal/ExpressGatewayTest.php +++ /dev/null @@ -1,69 +0,0 @@ -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 testAuthorizeSuccess() - { - $this->setMockHttpResponse('ExpressPurchaseSuccess.txt'); - - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\PayPal\Message\ExpressAuthorizeResponse', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertEquals('https://www.paypal.com/webscr?cmd=_express-checkout&useraction=commit&token=EC-42721413K79637829', $response->getRedirectUrl()); - } - - public function testAuthorizeFailure() - { - $this->setMockHttpResponse('ExpressPurchaseFailure.txt'); - - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('This transaction cannot be processed. The amount to be charged is zero.', $response->getMessage()); - } - - public function testPurchaseSuccess() - { - $this->setMockHttpResponse('ExpressPurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertInstanceOf('\Omnipay\PayPal\Message\ExpressAuthorizeResponse', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertEquals('https://www.paypal.com/webscr?cmd=_express-checkout&useraction=commit&token=EC-42721413K79637829', $response->getRedirectUrl()); - } - - public function testPurchaseFailure() - { - $this->setMockHttpResponse('ExpressPurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('This transaction cannot be processed. The amount to be charged is zero.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/PayPal/Message/CaptureRequestTest.php b/tests/Omnipay/PayPal/Message/CaptureRequestTest.php deleted file mode 100644 index 53a3b2fb..00000000 --- a/tests/Omnipay/PayPal/Message/CaptureRequestTest.php +++ /dev/null @@ -1,46 +0,0 @@ -getHttpClient(); - $request = $this->getHttpRequest(); - $this->request = new CaptureRequest($client, $request); - } - - public function testGetData() - { - $this->request->setTransactionReference('ABC-123'); - $this->request->setAmount('1.23'); - $this->request->setCurrency('USD'); - $this->request->setUsername('testuser'); - $this->request->setPassword('testpass'); - $this->request->setSignature('SIG'); - $this->request->setSubject('SUB'); - - $expected = array(); - $expected['METHOD'] = 'DoCapture'; - $expected['AUTHORIZATIONID'] = 'ABC-123'; - $expected['AMT'] = '1.23'; - $expected['CURRENCYCODE'] = 'USD'; - $expected['COMPLETETYPE'] = 'Complete'; - $expected['USER'] = 'testuser'; - $expected['PWD'] = 'testpass'; - $expected['SIGNATURE'] = 'SIG'; - $expected['SUBJECT'] = 'SUB'; - $expected['VERSION'] = CaptureRequest::API_VERSION; - - $this->assertEquals($expected, $this->request->getData()); - } -} diff --git a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php b/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php deleted file mode 100644 index 7644f9bf..00000000 --- a/tests/Omnipay/PayPal/Message/ExpressAuthorizeRequestTest.php +++ /dev/null @@ -1,150 +0,0 @@ -request = new ExpressAuthorizeRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize( - array( - 'amount' => '10.00', - 'returnUrl' => 'https://www.example.com/return', - 'cancelUrl' => 'https://www.example.com/cancel', - ) - ); - } - - public function testGetDataWithoutCard() - { - $this->request->initialize(array( - 'amount' => '10.00', - 'currency' => 'AUD', - 'transactionId' => '111', - 'description' => 'Order Description', - 'returnUrl' => 'https://www.example.com/return', - 'cancelUrl' => 'https://www.example.com/cancel', - 'notifyUrl' => 'https://www.example.com/notify', - 'subject' => 'demo@example.com', - 'headerImageUrl' => 'https://www.example.com/header.jpg', - 'noShipping' => 0, - 'allowNote' => 0, - )); - - $data = $this->request->getData(); - - $this->assertSame('10.00', $data['PAYMENTREQUEST_0_AMT']); - $this->assertSame('AUD', $data['PAYMENTREQUEST_0_CURRENCYCODE']); - $this->assertSame('111', $data['PAYMENTREQUEST_0_INVNUM']); - $this->assertSame('Order Description', $data['PAYMENTREQUEST_0_DESC']); - $this->assertSame('https://www.example.com/return', $data['RETURNURL']); - $this->assertSame('https://www.example.com/cancel', $data['CANCELURL']); - $this->assertSame('https://www.example.com/notify', $data['PAYMENTREQUEST_0_NOTIFYURL']); - $this->assertSame('demo@example.com', $data['SUBJECT']); - $this->assertSame('https://www.example.com/header.jpg', $data['HDRIMG']); - $this->assertSame(0, $data['NOSHIPPING']); - $this->assertSame(0, $data['ALLOWNOTE']); - } - - public function testGetDataWithCard() - { - $this->request->initialize(array( - 'amount' => '10.00', - 'currency' => 'AUD', - 'transactionId' => '111', - 'description' => 'Order Description', - 'returnUrl' => 'https://www.example.com/return', - 'cancelUrl' => 'https://www.example.com/cancel', - 'notifyUrl' => 'https://www.example.com/notify', - 'subject' => 'demo@example.com', - 'headerImageUrl' => 'https://www.example.com/header.jpg', - 'noShipping' => 2, - 'allowNote' => 1, - )); - - $card = new CreditCard(array( - 'name' => 'John Doe', - 'address1' => '123 NW Blvd', - 'address2' => 'Lynx Lane', - 'city' => 'Topeka', - 'state' => 'KS', - 'country' => 'USA', - 'postcode' => '66605', - 'phone' => '555-555-5555', - 'email' => 'test@email.com', - )); - $this->request->setCard($card); - - $expected = array( - 'METHOD' => 'SetExpressCheckout', - 'VERSION' => ExpressAuthorizeRequest::API_VERSION, - 'USER' => null, - 'PWD' => null, - 'SIGNATURE' => null, - 'PAYMENTREQUEST_0_PAYMENTACTION' => 'Authorization', - 'SOLUTIONTYPE' => null, - 'LANDINGPAGE' => null, - 'NOSHIPPING' => 2, - 'ALLOWNOTE' => 1, - 'PAYMENTREQUEST_0_AMT' => '10.00', - 'PAYMENTREQUEST_0_CURRENCYCODE' => 'AUD', - 'PAYMENTREQUEST_0_INVNUM' => '111', - 'PAYMENTREQUEST_0_DESC' => 'Order Description', - 'RETURNURL' => 'https://www.example.com/return', - 'CANCELURL' => 'https://www.example.com/cancel', - 'PAYMENTREQUEST_0_NOTIFYURL' => 'https://www.example.com/notify', - 'SUBJECT' => 'demo@example.com', - 'HDRIMG' => 'https://www.example.com/header.jpg', - 'PAYMENTREQUEST_0_SHIPTONAME' => 'John Doe', - 'PAYMENTREQUEST_0_SHIPTOSTREET' => '123 NW Blvd', - 'PAYMENTREQUEST_0_SHIPTOSTREET2' => 'Lynx Lane', - 'PAYMENTREQUEST_0_SHIPTOCITY' => 'Topeka', - 'PAYMENTREQUEST_0_SHIPTOSTATE' => 'KS', - 'PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE' => 'USA', - 'PAYMENTREQUEST_0_SHIPTOZIP' => '66605', - 'PAYMENTREQUEST_0_SHIPTOPHONENUM' => '555-555-5555', - 'EMAIL' => 'test@email.com', - ); - - $this->assertEquals($expected, $this->request->getData()); - } - - public function testGetDataWithItems() - { - $this->request->setItems(array( - array('name' => 'Floppy Disk', 'description' => 'MS-DOS', 'quantity' => 2, 'price' => 10), - array('name' => 'CD-ROM', 'description' => 'Windows 95', 'quantity' => 1, 'price' => 40), - )); - - $data = $this->request->getData(); - $this->assertSame('Floppy Disk', $data['L_PAYMENTREQUEST_0_NAME0']); - $this->assertSame('MS-DOS', $data['L_PAYMENTREQUEST_0_DESC0']); - $this->assertSame(2, $data['L_PAYMENTREQUEST_0_QTY0']); - $this->assertSame('10.00', $data['L_PAYMENTREQUEST_0_AMT0']); - - $this->assertSame('CD-ROM', $data['L_PAYMENTREQUEST_0_NAME1']); - $this->assertSame('Windows 95', $data['L_PAYMENTREQUEST_0_DESC1']); - $this->assertSame(1, $data['L_PAYMENTREQUEST_0_QTY1']); - $this->assertSame('40.00', $data['L_PAYMENTREQUEST_0_AMT1']); - } - - public function testHeaderImageUrl() - { - $this->assertSame($this->request, $this->request->setHeaderImageUrl('https://www.example.com/header.jpg')); - $this->assertSame('https://www.example.com/header.jpg', $this->request->getHeaderImageUrl()); - - $data = $this->request->getData(); - $this->assertEquals('https://www.example.com/header.jpg', $data['HDRIMG']); - } -} diff --git a/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php b/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php deleted file mode 100644 index 23604c86..00000000 --- a/tests/Omnipay/PayPal/Message/ExpressAuthorizeResponseTest.php +++ /dev/null @@ -1,39 +0,0 @@ -getMockRequest(), 'example=value&foo=bar'); - - $this->assertEquals(array('example' => 'value', 'foo' => 'bar'), $response->getData()); - } - - public function testExpressPurchaseSuccess() - { - $httpResponse = $this->getMockHttpResponse('ExpressPurchaseSuccess.txt'); - $response = new ExpressAuthorizeResponse($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('EC-42721413K79637829', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertNull($response->getRedirectData()); - $this->assertSame('GET', $response->getRedirectMethod()); - } - - public function testExpressPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('ExpressPurchaseFailure.txt'); - $response = new ExpressAuthorizeResponse($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('This transaction cannot be processed. The amount to be charged is zero.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequestTest.php b/tests/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequestTest.php deleted file mode 100644 index 46bb00b4..00000000 --- a/tests/Omnipay/PayPal/Message/ExpressCompleteAuthorizeRequestTest.php +++ /dev/null @@ -1,54 +0,0 @@ -getHttpClient(); - - $request = $this->getHttpRequest(); - $request->query->set('PayerID', 'Payer-1234'); - $request->query->set('token', 'TOKEN1234'); - - $this->request = new ExpressCompleteAuthorizeRequest($client, $request); - } - - public function testGetData() - { - $this->request->setAmount('1.23'); - $this->request->setCurrency('USD'); - $this->request->setTransactionId('ABC-123'); - $this->request->setUsername('testuser'); - $this->request->setPassword('testpass'); - $this->request->setSignature('SIG'); - $this->request->setSubject('SUB'); - $this->request->setDescription('DESC'); - - $expected = array(); - $expected['METHOD'] = 'DoExpressCheckoutPayment'; - $expected['PAYMENTREQUEST_0_PAYMENTACTION'] = 'Authorization'; - $expected['PAYMENTREQUEST_0_AMT'] = '1.23'; - $expected['PAYMENTREQUEST_0_CURRENCYCODE'] = 'USD'; - $expected['PAYMENTREQUEST_0_INVNUM'] = 'ABC-123'; - $expected['PAYMENTREQUEST_0_DESC'] = 'DESC'; - $expected['USER'] = 'testuser'; - $expected['PWD'] = 'testpass'; - $expected['SIGNATURE'] = 'SIG'; - $expected['SUBJECT'] = 'SUB'; - $expected['VERSION'] = ExpressCompleteAuthorizeRequest::API_VERSION; - $expected['TOKEN'] = 'TOKEN1234'; - $expected['PAYERID'] = 'Payer-1234'; - - $this->assertEquals($expected, $this->request->getData()); - } -} diff --git a/tests/Omnipay/PayPal/Message/RefundRequestTest.php b/tests/Omnipay/PayPal/Message/RefundRequestTest.php deleted file mode 100644 index 8a51b70e..00000000 --- a/tests/Omnipay/PayPal/Message/RefundRequestTest.php +++ /dev/null @@ -1,61 +0,0 @@ -getHttpClient(); - - $request = $this->getHttpRequest(); - - $this->request = new RefundRequest($client, $request); - } - - /** - * @dataProvider provideRefundTypes - */ - public function testGetData($type, $amount) - { - $this->request->setAmount($amount); - $this->request->setCurrency('USD'); - $this->request->setTransactionReference('ABC-123'); - $this->request->setUsername('testuser'); - $this->request->setPassword('testpass'); - $this->request->setSignature('SIG'); - $this->request->setSubject('SUB'); - - $expected = array(); - $expected['REFUNDTYPE'] = $type; - $expected['METHOD'] = 'RefundTransaction'; - $expected['TRANSACTIONID'] = 'ABC-123'; - $expected['USER'] = 'testuser'; - $expected['PWD'] = 'testpass'; - $expected['SIGNATURE'] = 'SIG'; - $expected['SUBJECT'] = 'SUB'; - $expected['VERSION'] = RefundRequest::API_VERSION; - if ($amount) { - $expected['AMT'] = $amount; - $expected['CURRENCYCODE'] = 'USD'; - } - - $this->assertEquals($expected, $this->request->getData()); - } - - public function provideRefundTypes() - { - return array( - 'Partial' => array('Partial', '1.23'), - 'Full' => array('Full', '0'), - ); - } -} diff --git a/tests/Omnipay/PayPal/Message/ResponseTest.php b/tests/Omnipay/PayPal/Message/ResponseTest.php deleted file mode 100644 index fdfe84d1..00000000 --- a/tests/Omnipay/PayPal/Message/ResponseTest.php +++ /dev/null @@ -1,35 +0,0 @@ -getMockRequest(), 'example=value&foo=bar'); - $this->assertEquals(array('example' => 'value', 'foo' => 'bar'), $response->getData()); - } - - public function testProPurchaseSuccess() - { - $httpResponse = $this->getMockHttpResponse('ProPurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('96U93778BD657313D', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - public function testProPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('ProPurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('This transaction cannot be processed. Please enter a valid credit card expiration year.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/PayPal/Mock/ExpressCompletePurchaseFailure.txt b/tests/Omnipay/PayPal/Mock/ExpressCompletePurchaseFailure.txt deleted file mode 100644 index edab460c..00000000 --- a/tests/Omnipay/PayPal/Mock/ExpressCompletePurchaseFailure.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Date: Wed, 20 Feb 2013 13:55:50 GMT -Server: Apache -Content-Length: 214 -Connection: close -Content-Type: text/plain; charset=utf-8 - -TIMESTAMP=2013%2d02%2d20T13%3a55%3a50Z&CORRELATIONID=73310039452e7&ACK=Failure&VERSION=85%2e0&BUILD=5060305&L_ERRORCODE0=10410&L_SHORTMESSAGE0=Invalid%20token&L_LONGMESSAGE0=Invalid%20token%2e&L_SEVERITYCODE0=Error \ No newline at end of file diff --git a/tests/Omnipay/PayPal/Mock/ExpressCompletePurchaseSuccess.txt b/tests/Omnipay/PayPal/Mock/ExpressCompletePurchaseSuccess.txt deleted file mode 100644 index 10133f63..00000000 --- a/tests/Omnipay/PayPal/Mock/ExpressCompletePurchaseSuccess.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Date: Wed, 20 Feb 2013 13:54:27 GMT -Server: Apache -Content-Length: 869 -Connection: close -Content-Type: text/plain; charset=utf-8 - -TOKEN=EC%2d96V667110D1727015&SUCCESSPAGEREDIRECTREQUESTED=true&TIMESTAMP=2013%2d02%2d20T13%3a54%3a28Z&CORRELATIONID=f78b888897f8a&ACK=Success&VERSION=85%2e0&BUILD=5060305&INSURANCEOPTIONSELECTED=false&SHIPPINGOPTIONISDEFAULT=false&PAYMENTINFO_0_TRANSACTIONID=8RM57414KW761861W&PAYMENTINFO_0_RECEIPTID=0368%2d2088%2d8643%2d7560&PAYMENTINFO_0_TRANSACTIONTYPE=expresscheckout&PAYMENTINFO_0_PAYMENTTYPE=instant&PAYMENTINFO_0_ORDERTIME=2013%2d02%2d20T13%3a54%3a03Z&PAYMENTINFO_0_AMT=10%2e00&PAYMENTINFO_0_FEEAMT=0%2e59&PAYMENTINFO_0_TAXAMT=0%2e00&PAYMENTINFO_0_CURRENCYCODE=USD&PAYMENTINFO_0_PAYMENTSTATUS=Completed&PAYMENTINFO_0_PENDINGREASON=None&PAYMENTINFO_0_REASONCODE=None&PAYMENTINFO_0_PROTECTIONELIGIBILITY=Ineligible&PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE=None&PAYMENTINFO_0_SECUREMERCHANTACCOUNTID=VZTRGMSKHHAEW&PAYMENTINFO_0_ERRORCODE=0&PAYMENTINFO_0_ACK=Success \ No newline at end of file diff --git a/tests/Omnipay/PayPal/Mock/ExpressPurchaseFailure.txt b/tests/Omnipay/PayPal/Mock/ExpressPurchaseFailure.txt deleted file mode 100644 index 431a16f8..00000000 --- a/tests/Omnipay/PayPal/Mock/ExpressPurchaseFailure.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Date: Fri, 15 Feb 2013 19:21:05 GMT -Server: Apache -Content-Length: 292 -Connection: close -Content-Type: text/plain; charset=utf-8 - -TIMESTAMP=2013%2d02%2d15T19%3a21%3a06Z&CORRELATIONID=2b58be2b8e60e&ACK=Failure&VERSION=85%2e0&BUILD=5060305&L_ERRORCODE0=10525&L_SHORTMESSAGE0=Invalid%20Data&L_LONGMESSAGE0=This%20transaction%20cannot%20be%20processed%2e%20The%20amount%20to%20be%20charged%20is%20zero%2e&L_SEVERITYCODE0=Error \ No newline at end of file diff --git a/tests/Omnipay/PayPal/Mock/ExpressPurchaseSuccess.txt b/tests/Omnipay/PayPal/Mock/ExpressPurchaseSuccess.txt deleted file mode 100644 index 86c40d4f..00000000 --- a/tests/Omnipay/PayPal/Mock/ExpressPurchaseSuccess.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Date: Fri, 15 Feb 2013 19:19:21 GMT -Server: Apache -Content-Length: 136 -Connection: close -Content-Type: text/plain; charset=utf-8 - -TOKEN=EC%2d42721413K79637829&TIMESTAMP=2013%2d02%2d15T19%3a19%3a21Z&CORRELATIONID=37b8b9915987c&ACK=Success&VERSION=85%2e0&BUILD=5060305 \ No newline at end of file diff --git a/tests/Omnipay/PayPal/Mock/ProPurchaseFailure.txt b/tests/Omnipay/PayPal/Mock/ProPurchaseFailure.txt deleted file mode 100644 index 04321987..00000000 --- a/tests/Omnipay/PayPal/Mock/ProPurchaseFailure.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Date: Fri, 15 Feb 2013 18:49:26 GMT -Server: Apache -Content-Length: 340 -Connection: close -Content-Type: text/plain; charset=utf-8 - -TIMESTAMP=2013%2d02%2d15T18%3a49%3a27Z&CORRELATIONID=ec641b50c33b0&ACK=Failure&VERSION=85%2e0&BUILD=5060305&L_ERRORCODE0=10562&L_SHORTMESSAGE0=Invalid%20Data&L_LONGMESSAGE0=This%20transaction%20cannot%20be%20processed%2e%20Please%20enter%20a%20valid%20credit%20card%20expiration%20year%2e&L_SEVERITYCODE0=Error&AMT=150%2e04&CURRENCYCODE=USD \ No newline at end of file diff --git a/tests/Omnipay/PayPal/Mock/ProPurchaseSuccess.txt b/tests/Omnipay/PayPal/Mock/ProPurchaseSuccess.txt deleted file mode 100644 index edaed75f..00000000 --- a/tests/Omnipay/PayPal/Mock/ProPurchaseSuccess.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Date: Fri, 15 Feb 2013 18:38:31 GMT -Server: Apache -Content-Length: 190 -Connection: close -Content-Type: text/plain; charset=utf-8 - -TIMESTAMP=2013%2d02%2d15T18%3a38%3a36Z&CORRELATIONID=541737dc565cb&ACK=Success&VERSION=85%2e0&BUILD=5060305&AMT=10%2e00&CURRENCYCODE=USD&AVSCODE=X&CVV2MATCH=M&TRANSACTIONID=96U93778BD657313D \ No newline at end of file diff --git a/tests/Omnipay/PayPal/ProGatewayTest.php b/tests/Omnipay/PayPal/ProGatewayTest.php deleted file mode 100644 index aec8c7bf..00000000 --- a/tests/Omnipay/PayPal/ProGatewayTest.php +++ /dev/null @@ -1,50 +0,0 @@ -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 testAuthorize() - { - $this->setMockHttpResponse('ProPurchaseSuccess.txt'); - - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('96U93778BD657313D', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - public function testPurchase() - { - $this->setMockHttpResponse('ProPurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('96U93778BD657313D', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } -} diff --git a/tests/Omnipay/Payflow/Message/ResponseTest.php b/tests/Omnipay/Payflow/Message/ResponseTest.php deleted file mode 100644 index 3dd0438e..00000000 --- a/tests/Omnipay/Payflow/Message/ResponseTest.php +++ /dev/null @@ -1,38 +0,0 @@ -getMockRequest(), ''); - } - - public function testPurchaseSuccess() - { - $httpResponse = $this->getMockHttpResponse('PurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertEquals('V19R3EF62FBE', $response->getTransactionReference()); - $this->assertEquals('Approved', $response->getMessage()); - } - - public function testPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('PurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('User authentication failed', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Payflow/Mock/PurchaseFailure.txt b/tests/Omnipay/Payflow/Mock/PurchaseFailure.txt deleted file mode 100644 index 41eaed15..00000000 --- a/tests/Omnipay/Payflow/Mock/PurchaseFailure.txt +++ /dev/null @@ -1,8 +0,0 @@ -HTTP/1.1 200 OK -Connection: close -Server: VPS-3.033.00 -Date: Sat, 23 Feb 2013 05:17:32 GMT -Content-type: text/namevalue -Content-length: 43 - -RESULT=1&RESPMSG=User authentication failed \ No newline at end of file diff --git a/tests/Omnipay/Payflow/Mock/PurchaseSuccess.txt b/tests/Omnipay/Payflow/Mock/PurchaseSuccess.txt deleted file mode 100644 index 150c27a8..00000000 --- a/tests/Omnipay/Payflow/Mock/PurchaseSuccess.txt +++ /dev/null @@ -1,3 +0,0 @@ -HTTP/1.1 200 OK - -RESULT=0&PNREF=V19R3EF62FBE&RESPMSG=Approved&AUTHCODE=048747&CVV2MATCH=Y \ No newline at end of file diff --git a/tests/Omnipay/Payflow/ProGatewayTest.php b/tests/Omnipay/Payflow/ProGatewayTest.php deleted file mode 100644 index e81a6bde..00000000 --- a/tests/Omnipay/Payflow/ProGatewayTest.php +++ /dev/null @@ -1,98 +0,0 @@ -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 testAuthorizeSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('V19R3EF62FBE', $response->getTransactionReference()); - } - - public function testAuthorizeError() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('User authentication failed', $response->getMessage()); - } - - public function testCapture() - { - $options = array( - 'amount' => '10.00', - 'transactionReference' => 'abc123', - ); - - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $response = $this->gateway->capture($options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('V19R3EF62FBE', $response->getTransactionReference()); - } - - public function testPurchaseSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('V19R3EF62FBE', $response->getTransactionReference()); - } - - public function testPurchaseError() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertSame('User authentication failed', $response->getMessage()); - } - - public function testRefund() - { - $options = array( - 'amount' => '10.00', - 'transactionReference' => 'abc123', - ); - - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $response = $this->gateway->refund($options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('V19R3EF62FBE', $response->getTransactionReference()); - } -} diff --git a/tests/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponseTest.php b/tests/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponseTest.php deleted file mode 100644 index c0594572..00000000 --- a/tests/Omnipay/PaymentExpress/Message/PxPayAuthorizeResponseTest.php +++ /dev/null @@ -1,32 +0,0 @@ -getMockHttpResponse('PxPayPurchaseSuccess.txt'); - $response = new PxPayAuthorizeResponse($this->getMockRequest(), $httpResponse->xml()); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame('https://sec.paymentexpress.com/pxpay/pxpay.aspx?userid=Developer&request=v5H7JrBTzH-4Whs__1iQnz4RGSb9qxRKNR4kIuDP8kIkQzIDiIob9GTIjw_9q_AdRiR47ViWGVx40uRMu52yz2mijT39YtGeO7cZWrL5rfnx0Mc4DltIHRnIUxy1EO1srkNpxaU8fT8_1xMMRmLa-8Fd9bT8Oq0BaWMxMquYa1hDNwvoGs1SJQOAJvyyKACvvwsbMCC2qJVyN0rlvwUoMtx6gGhvmk7ucEsPc_Cyr5kNl3qURnrLKxINnS0trdpU4kXPKOlmT6VacjzT1zuj_DnrsWAPFSFq-hGsow6GpKKciQ0V0aFbAqECN8rl_c-aZWFFy0gkfjnUM4qp6foS0KMopJlPzGAgMjV6qZ0WfleOT64c3E-FRLMP5V_-mILs8a', $response->getRedirectUrl()); - $this->assertSame('GET', $response->getRedirectMethod()); - } - - public function testPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('PxPayPurchaseFailure.txt'); - $response = new PxPayAuthorizeResponse($this->getMockRequest(), $httpResponse->xml()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Invalid Key', $response->getMessage()); - } -} diff --git a/tests/Omnipay/PaymentExpress/Message/ResponseTest.php b/tests/Omnipay/PaymentExpress/Message/ResponseTest.php deleted file mode 100644 index 7312e031..00000000 --- a/tests/Omnipay/PaymentExpress/Message/ResponseTest.php +++ /dev/null @@ -1,80 +0,0 @@ -getMockHttpResponse('PxPostPurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->xml()); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('000000030884cdc6', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('Transaction Approved', $response->getMessage()); - } - - public function testPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('PxPostPurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->xml()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('The transaction was Declined (U5)', $response->getMessage()); - } - - public function testCompletePurchaseSuccess() - { - $httpResponse = $this->getMockHttpResponse('PxPayCompletePurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->xml()); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('0000000103f5dc65', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('APPROVED', $response->getMessage()); - } - - public function testCompletePurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('PxPayCompletePurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->xml()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('Length of the data to decrypt is invalid.', $response->getMessage()); - } - - public function testCreateCardSuccess() - { - $httpResponse = $this->getMockHttpResponse('PxPostCreateCardSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->xml()); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('00000001040c73ea', $response->getTransactionReference()); - $this->assertSame('0000010009328404', $response->getCardReference()); - $this->assertSame('Transaction Approved', $response->getMessage()); - } - - public function testCreateCardFailure() - { - $httpResponse = $this->getMockHttpResponse('PxPostCreateCardFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->xml()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('An Invalid Card Number was entered. Check the card number', $response->getMessage()); - } -} diff --git a/tests/Omnipay/PaymentExpress/Mock/PxPayCompletePurchaseFailure.txt b/tests/Omnipay/PaymentExpress/Mock/PxPayCompletePurchaseFailure.txt deleted file mode 100644 index 430b1091..00000000 --- a/tests/Omnipay/PaymentExpress/Mock/PxPayCompletePurchaseFailure.txt +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Server: DPS_PX_SERVER -Cache-Control: private -Content-Length: 744 -Content-Type: application/xhtml+xml; charset=utf-8 -Expires: Sat, 23 Feb 2013 15:14:26 GMT -Date: Sat, 23 Feb 2013 15:15:26 GMT - -Length of the data to decrypt is invalid. \ No newline at end of file diff --git a/tests/Omnipay/PaymentExpress/Mock/PxPayCompletePurchaseSuccess.txt b/tests/Omnipay/PaymentExpress/Mock/PxPayCompletePurchaseSuccess.txt deleted file mode 100644 index 40359f50..00000000 --- a/tests/Omnipay/PaymentExpress/Mock/PxPayCompletePurchaseSuccess.txt +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Server: DPS_PX_SERVER -Cache-Control: private -Content-Length: 866 -Content-Type: application/xhtml+xml; charset=utf-8 -Expires: Sat, 23 Feb 2013 15:11:45 GMT -Date: Sat, 23 Feb 2013 15:12:45 GMT - -1AuthNZD041211VisaJDFKL FDJKSL411111........110819115.67.229.192P075985DA31094D80000000103f5dc6510.00NZD20130224APPROVED0NotUsed00 \ No newline at end of file diff --git a/tests/Omnipay/PaymentExpress/Mock/PxPayPurchaseFailure.txt b/tests/Omnipay/PaymentExpress/Mock/PxPayPurchaseFailure.txt deleted file mode 100644 index 3105a06c..00000000 --- a/tests/Omnipay/PaymentExpress/Mock/PxPayPurchaseFailure.txt +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Server: DPS_PX_SERVER -Cache-Control: private -Content-Length: 51 -Content-Type: application/xhtml+xml; charset=utf-8 -Expires: Sat, 23 Feb 2013 14:54:40 GMT -Date: Sat, 23 Feb 2013 14:55:40 GMT - -Invalid Key \ No newline at end of file diff --git a/tests/Omnipay/PaymentExpress/Mock/PxPayPurchaseSuccess.txt b/tests/Omnipay/PaymentExpress/Mock/PxPayPurchaseSuccess.txt deleted file mode 100644 index e0ff6957..00000000 --- a/tests/Omnipay/PaymentExpress/Mock/PxPayPurchaseSuccess.txt +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Server: DPS_PX_SERVER -Cache-Control: private -Content-Length: 507 -Content-Type: application/xhtml+xml; charset=utf-8 -Expires: Sat, 23 Feb 2013 14:56:42 GMT -Date: Sat, 23 Feb 2013 14:57:41 GMT - -https://sec.paymentexpress.com/pxpay/pxpay.aspx?userid=Developer&request=v5H7JrBTzH-4Whs__1iQnz4RGSb9qxRKNR4kIuDP8kIkQzIDiIob9GTIjw_9q_AdRiR47ViWGVx40uRMu52yz2mijT39YtGeO7cZWrL5rfnx0Mc4DltIHRnIUxy1EO1srkNpxaU8fT8_1xMMRmLa-8Fd9bT8Oq0BaWMxMquYa1hDNwvoGs1SJQOAJvyyKACvvwsbMCC2qJVyN0rlvwUoMtx6gGhvmk7ucEsPc_Cyr5kNl3qURnrLKxINnS0trdpU4kXPKOlmT6VacjzT1zuj_DnrsWAPFSFq-hGsow6GpKKciQ0V0aFbAqECN8rl_c-aZWFFy0gkfjnUM4qp6foS0KMopJlPzGAgMjV6qZ0WfleOT64c3E-FRLMP5V_-mILs8a \ No newline at end of file diff --git a/tests/Omnipay/PaymentExpress/Mock/PxPostCreateCardFailure.txt b/tests/Omnipay/PaymentExpress/Mock/PxPostCreateCardFailure.txt deleted file mode 100644 index d525329f..00000000 --- a/tests/Omnipay/PaymentExpress/Mock/PxPostCreateCardFailure.txt +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Server: DPS_PX_SERVER -Cache-Control: private -Content-Length: 2618 -Content-Type: application/xhtml+xml; charset=utf-8 -Expires: Tue, 26 Feb 2013 16:55:13 GMT -Date: Tue, 26 Feb 2013 16:56:12 GMT - -0QK2013022616561820130226165618UTC000.001.00554554NZD1.00NZDFJKSDL FJDKSL19800101Auth000000........0004199000QKInvalid Card Number00INVALID CARD NUMBERAn Invalid Card Number was entered. Check the card numberAn Invalid Card Number was entered. Check the card numberINVALID CARD NUMBERAn Invalid Card Number was entered. Check the card numberAn Invalid Card Number was entered. Check the card number0-099970040c754e000000010000000000000000-1QKINVALID CARD NUMBERAn Invalid Card Number was entered. Check the card number00000000000000000-1 \ No newline at end of file diff --git a/tests/Omnipay/PaymentExpress/Mock/PxPostCreateCardSuccess.txt b/tests/Omnipay/PaymentExpress/Mock/PxPostCreateCardSuccess.txt deleted file mode 100644 index a1887319..00000000 --- a/tests/Omnipay/PaymentExpress/Mock/PxPostCreateCardSuccess.txt +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Server: DPS_PX_SERVER -Cache-Control: private -Content-Length: 2542 -Content-Type: application/xhtml+xml; charset=utf-8 -Expires: Tue, 26 Feb 2013 16:50:08 GMT -Date: Tue, 26 Feb 2013 16:51:09 GMT - -1002013022616511420130226165114UTCVisa00055111040c73ea000000010.001.00554554NZD1.00NZDFJKSDL FJDKSL20130227Auth411111........112BC202100419201302270551119001Undefined00APPROVED02APPROVEDThe Transaction was approvedThe Transaction was approvedAPPROVEDThe Transaction was approvedThe Transaction was approved0NotUsed10000000-1000402160744999700000001040c73ea10000010009328404040c73ea000000010000000000000000-100APPROVEDTransaction Approved100000001040c73ea0000000000000000-1 \ No newline at end of file diff --git a/tests/Omnipay/PaymentExpress/Mock/PxPostPurchaseFailure.txt b/tests/Omnipay/PaymentExpress/Mock/PxPostPurchaseFailure.txt deleted file mode 100644 index 54f0ed98..00000000 --- a/tests/Omnipay/PaymentExpress/Mock/PxPostPurchaseFailure.txt +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Server: DPS_PX_SERVER -Cache-Control: private -Content-Length: 2435 -Content-Type: application/xhtml+xml; charset=utf-8 -Expires: Sat, 23 Feb 2013 14:09:13 GMT -Date: Sat, 23 Feb 2013 14:10:12 GMT - -0U52013022314103020130223141030UTC000.0010.00554554NZD1.00NZDFJKSDL FJDKSL19800101Purchase411111........1104190D500DECLINEDThe transaction was Declined (U5)The transaction was Declined (U5)DECLINEDThe transaction was Declined (U5)The transaction was Declined (U5)0-0-1000000000000000010000000000000000-1U5DECLINEDThe transaction was Declined (U5)00000000000000000-1 \ No newline at end of file diff --git a/tests/Omnipay/PaymentExpress/Mock/PxPostPurchaseSuccess.txt b/tests/Omnipay/PaymentExpress/Mock/PxPostPurchaseSuccess.txt deleted file mode 100644 index 81b05fa2..00000000 --- a/tests/Omnipay/PaymentExpress/Mock/PxPostPurchaseSuccess.txt +++ /dev/null @@ -1,3 +0,0 @@ -HTTP/1.1 200 OK - -00APPROVEDTransaction Approved1000000030884cdc6inv1278 \ No newline at end of file diff --git a/tests/Omnipay/PaymentExpress/PxPayGatewayTest.php b/tests/Omnipay/PaymentExpress/PxPayGatewayTest.php deleted file mode 100644 index e622700e..00000000 --- a/tests/Omnipay/PaymentExpress/PxPayGatewayTest.php +++ /dev/null @@ -1,148 +0,0 @@ -gateway = new PxPayGateway($this->getHttpClient(), $this->getHttpRequest()); - - $this->options = array( - 'amount' => '10.00', - 'returnUrl' => 'https://www.example.com/return', - ); - } - - public function testAuthorizeSuccess() - { - $this->setMockHttpResponse('PxPayPurchaseSuccess.txt'); - - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame('https://sec.paymentexpress.com/pxpay/pxpay.aspx?userid=Developer&request=v5H7JrBTzH-4Whs__1iQnz4RGSb9qxRKNR4kIuDP8kIkQzIDiIob9GTIjw_9q_AdRiR47ViWGVx40uRMu52yz2mijT39YtGeO7cZWrL5rfnx0Mc4DltIHRnIUxy1EO1srkNpxaU8fT8_1xMMRmLa-8Fd9bT8Oq0BaWMxMquYa1hDNwvoGs1SJQOAJvyyKACvvwsbMCC2qJVyN0rlvwUoMtx6gGhvmk7ucEsPc_Cyr5kNl3qURnrLKxINnS0trdpU4kXPKOlmT6VacjzT1zuj_DnrsWAPFSFq-hGsow6GpKKciQ0V0aFbAqECN8rl_c-aZWFFy0gkfjnUM4qp6foS0KMopJlPzGAgMjV6qZ0WfleOT64c3E-FRLMP5V_-mILs8a', $response->getRedirectUrl()); - $this->assertSame('GET', $response->getRedirectMethod()); - } - - public function testAuthorizeFailure() - { - $this->setMockHttpResponse('PxPayPurchaseFailure.txt'); - - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Invalid Key', $response->getMessage()); - } - - public function testPurchaseSuccess() - { - $this->setMockHttpResponse('PxPayPurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame('https://sec.paymentexpress.com/pxpay/pxpay.aspx?userid=Developer&request=v5H7JrBTzH-4Whs__1iQnz4RGSb9qxRKNR4kIuDP8kIkQzIDiIob9GTIjw_9q_AdRiR47ViWGVx40uRMu52yz2mijT39YtGeO7cZWrL5rfnx0Mc4DltIHRnIUxy1EO1srkNpxaU8fT8_1xMMRmLa-8Fd9bT8Oq0BaWMxMquYa1hDNwvoGs1SJQOAJvyyKACvvwsbMCC2qJVyN0rlvwUoMtx6gGhvmk7ucEsPc_Cyr5kNl3qURnrLKxINnS0trdpU4kXPKOlmT6VacjzT1zuj_DnrsWAPFSFq-hGsow6GpKKciQ0V0aFbAqECN8rl_c-aZWFFy0gkfjnUM4qp6foS0KMopJlPzGAgMjV6qZ0WfleOT64c3E-FRLMP5V_-mILs8a', $response->getRedirectUrl()); - $this->assertSame('GET', $response->getRedirectMethod()); - } - - public function testPurchaseFailure() - { - $this->setMockHttpResponse('PxPayPurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Invalid Key', $response->getMessage()); - } - - public function testCompleteAuthorizeSuccess() - { - $this->getHttpRequest()->query->replace(array('result' => 'abc123')); - - $this->setMockHttpResponse('PxPayCompletePurchaseSuccess.txt'); - - $response = $this->gateway->completeAuthorize($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('0000000103f5dc65', $response->getTransactionReference()); - $this->assertSame('APPROVED', $response->getMessage()); - } - - public function testCompleteAuthorizeFailure() - { - $this->getHttpRequest()->query->replace(array('result' => 'abc123')); - - $this->setMockHttpResponse('PxPayCompletePurchaseFailure.txt'); - - $response = $this->gateway->completeAuthorize($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Length of the data to decrypt is invalid.', $response->getMessage()); - } - - /** - * @expectedException Omnipay\Common\Exception\InvalidResponseException - */ - public function testCompleteAuthorizeInvalid() - { - $this->getHttpRequest()->query->replace(array()); - - $response = $this->gateway->completeAuthorize($this->options)->send(); - } - - public function testCompletePurchaseSuccess() - { - $this->getHttpRequest()->query->replace(array('result' => 'abc123')); - - $this->setMockHttpResponse('PxPayCompletePurchaseSuccess.txt'); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('0000000103f5dc65', $response->getTransactionReference()); - $this->assertSame('APPROVED', $response->getMessage()); - } - - public function testCompletePurchaseFailure() - { - $this->getHttpRequest()->query->replace(array('result' => 'abc123')); - - $this->setMockHttpResponse('PxPayCompletePurchaseFailure.txt'); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Length of the data to decrypt is invalid.', $response->getMessage()); - } - - /** - * @expectedException Omnipay\Common\Exception\InvalidResponseException - */ - public function testCompletePurchaseInvalid() - { - $this->getHttpRequest()->query->replace(array()); - - $response = $this->gateway->completePurchase($this->options)->send(); - } -} diff --git a/tests/Omnipay/PaymentExpress/PxPostGatewayTest.php b/tests/Omnipay/PaymentExpress/PxPostGatewayTest.php deleted file mode 100644 index e0a4d9c2..00000000 --- a/tests/Omnipay/PaymentExpress/PxPostGatewayTest.php +++ /dev/null @@ -1,122 +0,0 @@ -gateway = new PxPostGateway($this->getHttpClient(), $this->getHttpRequest()); - - $this->options = array( - 'amount' => '10.00', - 'card' => $this->getValidCard(), - ); - } - - public function testAuthorizeSuccess() - { - $this->setMockHttpResponse('PxPostPurchaseSuccess.txt'); - - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('000000030884cdc6', $response->getTransactionReference()); - $this->assertSame('Transaction Approved', $response->getMessage()); - } - - public function testAuthorizeFailure() - { - $this->setMockHttpResponse('PxPostPurchaseFailure.txt'); - - $response = $this->gateway->authorize($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The transaction was Declined (U5)', $response->getMessage()); - } - - public function testCaptureSuccess() - { - $this->setMockHttpResponse('PxPostPurchaseSuccess.txt'); - - $options = array( - 'amount' => '10.00', - 'transactionReference' => '000000030884cdc6', - ); - - $response = $this->gateway->capture($options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('000000030884cdc6', $response->getTransactionReference()); - } - - public function testPurchaseSuccess() - { - $this->setMockHttpResponse('PxPostPurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('000000030884cdc6', $response->getTransactionReference()); - $this->assertSame('Transaction Approved', $response->getMessage()); - } - - public function testPurchaseFailure() - { - $this->setMockHttpResponse('PxPostPurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The transaction was Declined (U5)', $response->getMessage()); - } - - public function testRefundSuccess() - { - $this->setMockHttpResponse('PxPostPurchaseSuccess.txt'); - - $options = array( - 'amount' => '10.00', - 'transactionReference' => '000000030884cdc6', - ); - - $response = $this->gateway->refund($options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals('000000030884cdc6', $response->getTransactionReference()); - } - - public function testCreateCardSuccess() - { - $this->setMockHttpResponse('PxPostCreateCardSuccess.txt'); - $response = $this->gateway->createCard($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('00000001040c73ea', $response->getTransactionReference()); - $this->assertSame('0000010009328404', $response->getCardReference()); - $this->assertSame('Transaction Approved', $response->getMessage()); - } - - public function testCreateCardFailure() - { - $this->setMockHttpResponse('PxPostCreateCardFailure.txt'); - $response = $this->gateway->createCard($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('An Invalid Card Number was entered. Check the card number', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Pin/GatewayTest.php b/tests/Omnipay/Pin/GatewayTest.php deleted file mode 100644 index 4a3b188d..00000000 --- a/tests/Omnipay/Pin/GatewayTest.php +++ /dev/null @@ -1,44 +0,0 @@ -gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); - - $this->options = array( - 'amount' => '10.00', - 'card' => $this->getValidCard(), - ); - } - - public function testPurchaseSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertEquals('ch_fXIxWf0gj1yFHJcV1W-d-w', $response->getTransactionReference()); - $this->assertSame('Success!', $response->getMessage()); - } - - public function testPurchaseError() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The current resource was deemed invalid.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Pin/Message/PurchaseRequestTest.php b/tests/Omnipay/Pin/Message/PurchaseRequestTest.php deleted file mode 100644 index 626bdd88..00000000 --- a/tests/Omnipay/Pin/Message/PurchaseRequestTest.php +++ /dev/null @@ -1,60 +0,0 @@ -request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize( - array( - 'amount' => '10.00', - 'currency' => 'AUD', - 'card' => $this->getValidCard(), - ) - ); - } - - public function testDataWithToken() - { - $this->request->setToken('abc'); - $data = $this->request->getData(); - - $this->assertSame('abc', $data['card_token']); - } - - public function testDataWithCard() - { - $card = $this->getValidCard(); - $this->request->setCard($card); - $data = $this->request->getData(); - - $this->assertSame($card['number'], $data['card']['number']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertEquals('ch_fXIxWf0gj1yFHJcV1W-d-w', $response->getTransactionReference()); - $this->assertSame('Success!', $response->getMessage()); - } - - public function testSendError() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The current resource was deemed invalid.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Pin/Message/ResponseTest.php b/tests/Omnipay/Pin/Message/ResponseTest.php deleted file mode 100644 index 419e1f19..00000000 --- a/tests/Omnipay/Pin/Message/ResponseTest.php +++ /dev/null @@ -1,30 +0,0 @@ -getMockHttpResponse('PurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->json()); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('ch_fXIxWf0gj1yFHJcV1W-d-w', $response->getTransactionReference()); - $this->assertSame('Success!', $response->getMessage()); - } - - public function testPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('PurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->json()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The current resource was deemed invalid.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Pin/Mock/PurchaseFailure.txt b/tests/Omnipay/Pin/Mock/PurchaseFailure.txt deleted file mode 100644 index 835db275..00000000 --- a/tests/Omnipay/Pin/Mock/PurchaseFailure.txt +++ /dev/null @@ -1,17 +0,0 @@ -HTTP/1.1 422 Unprocessable Entity -Cache-Control: no-cache -Content-Type: application/json; charset=utf-8 -Date: Fri, 15 Feb 2013 15:54:18 GMT -Server: Apache/2.2.20 (Ubuntu) -Status: 422 -Strict-Transport-Security: max-age=31536000 -Vary: User-Agent -X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.11 -X-Rack-Cache: invalidate, pass -X-Request-Id: 293436e475bfc6face410e6ed241efe9 -X-Runtime: 0.161746 -X-UA-Compatible: IE=Edge,chrome=1 -Content-Length: 152 -Connection: keep-alive - -{"error":"invalid_resource","error_description":"The current resource was deemed invalid.","messages":[{"code":"invalid","message":"Processing error"}]} \ No newline at end of file diff --git a/tests/Omnipay/Pin/Mock/PurchaseSuccess.txt b/tests/Omnipay/Pin/Mock/PurchaseSuccess.txt deleted file mode 100644 index 1eaa0b05..00000000 --- a/tests/Omnipay/Pin/Mock/PurchaseSuccess.txt +++ /dev/null @@ -1,18 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: max-age=0, private, must-revalidate -Content-Type: application/json; charset=utf-8 -Date: Fri, 15 Feb 2013 15:42:42 GMT -ETag: "e0b6339dc44a19a2901de1447ec94ebb" -Server: Apache/2.2.20 (Ubuntu) -Status: 200 -Strict-Transport-Security: max-age=31536000 -Vary: User-Agent -X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.11 -X-Rack-Cache: invalidate, pass -X-Request-Id: 6444d2d9467ed2a7ace471522f2d439b -X-Runtime: 0.245244 -X-UA-Compatible: IE=Edge,chrome=1 -Content-Length: 584 -Connection: keep-alive - -{"response":{"token":"ch_fXIxWf0gj1yFHJcV1W-d-w","success":true,"amount":1000,"currency":"USD","description":"first purchase","email":"fads","ip_address":"","created_at":"2013-02-15T15:42:42Z","status_message":"Success!","error_message":null,"card":{"token":"card_vRGOXvw3NSGR59-TSzVEiw","display_number":"XXXX-XXXX-XXXX-0000","scheme":"visa","address_line1":"jkl","address_line2":"jkl","address_city":"jkl","address_postcode":"jkl","address_state":"jkl","address_country":"jkl"},"transfer":[],"amount_refunded":0,"total_fees":null,"merchant_entitlement":null,"refund_pending":false}} \ No newline at end of file diff --git a/tests/Omnipay/SagePay/DirectGatewayTest.php b/tests/Omnipay/SagePay/DirectGatewayTest.php deleted file mode 100644 index 52dd1b57..00000000 --- a/tests/Omnipay/SagePay/DirectGatewayTest.php +++ /dev/null @@ -1,155 +0,0 @@ -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 testAuthorizeFailureSuccess() - { - $this->setMockHttpResponse('DirectPurchaseSuccess.txt'); - - $response = $this->gateway->authorize($this->purchaseOptions)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('{"SecurityKey":"OUWLNYQTVT","TxAuthNo":"9962","VPSTxId":"{5A1BC414-5409-48DD-9B8B-DCDF096CE0BE}","VendorTxCode":"123"}', $response->getTransactionReference()); - $this->assertSame('Direct transaction from Simulator.', $response->getMessage()); - } - - public function testAuthorizeFailure() - { - $this->setMockHttpResponse('DirectPurchaseFailure.txt'); - - $response = $this->gateway->authorize($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The VendorTxCode \'984297\' has been used before. Each transaction you send should have a unique VendorTxCode.', $response->getMessage()); - } - - public function testAuthorize3dSecure() - { - $this->setMockHttpResponse('DirectPurchase3dSecure.txt'); - - $response = $this->gateway->authorize($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame('https://test.sagepay.com/Simulator/3DAuthPage.asp', $response->getRedirectUrl()); - - $redirectData = $response->getRedirectData(); - $this->assertSame('065379457749061954', $redirectData['MD']); - $this->assertSame('BSkaFwYFFTYAGyFbAB0LFRYWBwsBZw0EGwECEX9YRGFWc08pJCVVKgAANS0KADoZCCAMBnIeOxcWRg0LERdOOTQRDFRdVHNYUgwTMBsBCxABJw4DJHE+ERgPCi8MVC0HIAROCAAfBUk4ER89DD0IWDkvMQ1VdFwoUFgwXVYvbHgvMkdBXXNbQGIjdl1ZUEc1XSwqAAgUUicYBDYcB3I2AjYjIzsn', $redirectData['PaReq']); - $this->assertSame('https://www.example.com/return', $redirectData['TermUrl']); - } - - public function testPurchaseSuccess() - { - $this->setMockHttpResponse('DirectPurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->purchaseOptions)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('{"SecurityKey":"OUWLNYQTVT","TxAuthNo":"9962","VPSTxId":"{5A1BC414-5409-48DD-9B8B-DCDF096CE0BE}","VendorTxCode":"123"}', $response->getTransactionReference()); - $this->assertSame('Direct transaction from Simulator.', $response->getMessage()); - } - - public function testPurchaseFailure() - { - $this->setMockHttpResponse('DirectPurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The VendorTxCode \'984297\' has been used before. Each transaction you send should have a unique VendorTxCode.', $response->getMessage()); - } - - public function testPurchase3dSecure() - { - $this->setMockHttpResponse('DirectPurchase3dSecure.txt'); - - $response = $this->gateway->purchase($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame('https://test.sagepay.com/Simulator/3DAuthPage.asp', $response->getRedirectUrl()); - - $redirectData = $response->getRedirectData(); - $this->assertSame('065379457749061954', $redirectData['MD']); - $this->assertSame('BSkaFwYFFTYAGyFbAB0LFRYWBwsBZw0EGwECEX9YRGFWc08pJCVVKgAANS0KADoZCCAMBnIeOxcWRg0LERdOOTQRDFRdVHNYUgwTMBsBCxABJw4DJHE+ERgPCi8MVC0HIAROCAAfBUk4ER89DD0IWDkvMQ1VdFwoUFgwXVYvbHgvMkdBXXNbQGIjdl1ZUEc1XSwqAAgUUicYBDYcB3I2AjYjIzsn', $redirectData['PaReq']); - $this->assertSame('https://www.example.com/return', $redirectData['TermUrl']); - } - - public function testCaptureSuccess() - { - $this->setMockHttpResponse('CaptureSuccess.txt'); - - $response = $this->gateway->capture($this->captureOptions)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The transaction was RELEASEed successfully.', $response->getMessage()); - } - - public function testCaptureFailure() - { - $this->setMockHttpResponse('CaptureFailure.txt'); - - $response = $this->gateway->capture($this->captureOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('You are trying to RELEASE a transaction that has already been RELEASEd or ABORTed.', $response->getMessage()); - } - - public function testRefundSuccess() - { - $this->setMockHttpResponse('CaptureSuccess.txt'); - - $response = $this->gateway->refund($this->captureOptions)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The transaction was RELEASEed successfully.', $response->getMessage()); - } - - public function testRefundFailure() - { - $this->setMockHttpResponse('CaptureFailure.txt'); - - $response = $this->gateway->refund($this->captureOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('You are trying to RELEASE a transaction that has already been RELEASEd or ABORTed.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php b/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php deleted file mode 100644 index e046a57e..00000000 --- a/tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php +++ /dev/null @@ -1,84 +0,0 @@ -request = new DirectAuthorizeRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize( - array( - 'amount' => '12.00', - 'transactionId' => '123', - 'card' => $this->getValidCard(), - ) - ); - } - - public function testGetDataCustomerDetails() - { - $card = $this->request->getCard(); - $data = $this->request->getData(); - - $this->assertSame($card->getFirstName(), $data['BillingFirstnames']); - $this->assertSame($card->getLastName(), $data['BillingSurname']); - $this->assertSame($card->getBillingAddress1(), $data['BillingAddress1']); - $this->assertSame($card->getBillingAddress2(), $data['BillingAddress2']); - $this->assertSame($card->getBillingCity(), $data['BillingCity']); - $this->assertSame($card->getBillingPostcode(), $data['BillingPostCode']); - $this->assertSame($card->getBillingState(), $data['BillingState']); - $this->assertSame($card->getBillingCountry(), $data['BillingCountry']); - $this->assertSame($card->getBillingPhone(), $data['BillingPhone']); - - $this->assertSame($card->getFirstName(), $data['DeliveryFirstnames']); - $this->assertSame($card->getLastName(), $data['DeliverySurname']); - $this->assertSame($card->getShippingAddress1(), $data['DeliveryAddress1']); - $this->assertSame($card->getShippingAddress2(), $data['DeliveryAddress2']); - $this->assertSame($card->getShippingCity(), $data['DeliveryCity']); - $this->assertSame($card->getShippingPostcode(), $data['DeliveryPostCode']); - $this->assertSame($card->getShippingState(), $data['DeliveryState']); - $this->assertSame($card->getShippingCountry(), $data['DeliveryCountry']); - $this->assertSame($card->getShippingPhone(), $data['DeliveryPhone']); - } - - public function testGetDataCustomerDetailsIgnoresStateOutsideUS() - { - $card = $this->request->getCard(); - $card->setBillingCountry('UK'); - $card->setShippingCountry('NZ'); - - $data = $this->request->getData(); - - $this->assertNull($data['BillingState']); - $this->assertNull($data['DeliveryState']); - } - - public function testGetDataVisa() - { - $this->request->getCard()->setNumber('4929000000006'); - $data = $this->request->getData(); - - $this->assertSame('visa', $data['CardType']); - } - - public function testGetDataMastercard() - { - $this->request->getCard()->setNumber('5404000000000001'); - $data = $this->request->getData(); - - $this->assertSame('mc', $data['CardType']); - } - - public function testGetDataDinersClub() - { - $this->request->getCard()->setNumber('30569309025904'); - $data = $this->request->getData(); - - $this->assertSame('dc', $data['CardType']); - } -} diff --git a/tests/Omnipay/SagePay/Message/RefundRequestTest.php b/tests/Omnipay/SagePay/Message/RefundRequestTest.php deleted file mode 100644 index 21c3200e..00000000 --- a/tests/Omnipay/SagePay/Message/RefundRequestTest.php +++ /dev/null @@ -1,41 +0,0 @@ -request = new RefundRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize( - array( - 'amount' => '12.00', - 'transactionReference' => '{"SecurityKey":"JEUPDN1N7E","TxAuthNo":"4255","VPSTxId":"{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}","VendorTxCode":"438791"}', - 'testMode' => true, - ) - ); - } - - public function testGetData() - { - $data = $this->request->getData(); - - $this->assertSame('REFUND', $data['TxType']); - $this->assertSame('12.00', $data['Amount']); - $this->assertSame('438791', $data['RelatedVendorTxCode']); - $this->assertSame('{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}', $data['RelatedVPSTxId']); - $this->assertSame('JEUPDN1N7E', $data['RelatedSecurityKey']); - $this->assertSame('4255', $data['RelatedTxAuthNo']); - } - - public function testGetEndpoint() - { - $url = $this->request->getEndpoint(); - - $this->assertSame('https://test.sagepay.com/gateway/service/refund.vsp', $url); - } -} diff --git a/tests/Omnipay/SagePay/Message/ResponseTest.php b/tests/Omnipay/SagePay/Message/ResponseTest.php deleted file mode 100644 index b3e370f8..00000000 --- a/tests/Omnipay/SagePay/Message/ResponseTest.php +++ /dev/null @@ -1,71 +0,0 @@ -getMockHttpResponse('DirectPurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->getMockRequest()->shouldReceive('getTransactionId')->once()->andReturn('123456'); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('{"SecurityKey":"OUWLNYQTVT","TxAuthNo":"9962","VPSTxId":"{5A1BC414-5409-48DD-9B8B-DCDF096CE0BE}","VendorTxCode":"123456"}', $response->getTransactionReference()); - $this->assertSame('Direct transaction from Simulator.', $response->getMessage()); - } - - public function testDirectPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('DirectPurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The VendorTxCode \'984297\' has been used before. Each transaction you send should have a unique VendorTxCode.', $response->getMessage()); - } - - public function testDirectPurchase3dSecure() - { - $httpResponse = $this->getMockHttpResponse('DirectPurchase3dSecure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->getMockRequest()->shouldReceive('getReturnUrl')->once()->andReturn('https://www.example.com/return'); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame('https://test.sagepay.com/Simulator/3DAuthPage.asp', $response->getRedirectUrl()); - - $redirectData = $response->getRedirectData(); - $this->assertSame('065379457749061954', $redirectData['MD']); - $this->assertSame('BSkaFwYFFTYAGyFbAB0LFRYWBwsBZw0EGwECEX9YRGFWc08pJCVVKgAANS0KADoZCCAMBnIeOxcWRg0LERdOOTQRDFRdVHNYUgwTMBsBCxABJw4DJHE+ERgPCi8MVC0HIAROCAAfBUk4ER89DD0IWDkvMQ1VdFwoUFgwXVYvbHgvMkdBXXNbQGIjdl1ZUEc1XSwqAAgUUicYBDYcB3I2AjYjIzsn', $redirectData['PaReq']); - $this->assertSame('https://www.example.com/return', $redirectData['TermUrl']); - } - - public function testCaptureSuccess() - { - $httpResponse = $this->getMockHttpResponse('CaptureSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertTrue($response->isSuccessful()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The transaction was RELEASEed successfully.', $response->getMessage()); - } - - public function testCaptureFailure() - { - $httpResponse = $this->getMockHttpResponse('CaptureFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('You are trying to RELEASE a transaction that has already been RELEASEd or ABORTed.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/SagePay/Message/ServerAuthorizeResponseTest.php b/tests/Omnipay/SagePay/Message/ServerAuthorizeResponseTest.php deleted file mode 100644 index d3e18893..00000000 --- a/tests/Omnipay/SagePay/Message/ServerAuthorizeResponseTest.php +++ /dev/null @@ -1,31 +0,0 @@ -getMockHttpResponse('ServerPurchaseSuccess.txt'); - $response = new ServerAuthorizeResponse($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Server transaction registered successfully.', $response->getMessage()); - $this->assertSame('https://test.sagepay.com/Simulator/VSPServerPaymentPage.asp?TransactionID={1E7D9C70-DBE2-4726-88EA-D369810D801D}', $response->getRedirectUrl()); - } - - public function testServerPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('ServerPurchaseFailure.txt'); - $response = new ServerAuthorizeResponse($this->getMockRequest(), $httpResponse->getBody()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The Description field should be between 1 and 100 characters long.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php b/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php deleted file mode 100644 index 173dd173..00000000 --- a/tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php +++ /dev/null @@ -1,89 +0,0 @@ -getMockRequest(), - array( - 'Status' => 'OK', - 'TxAuthNo' => 'b', - 'AVSCV2' => 'c', - 'AddressResult' => 'd', - 'PostCodeResult' => 'e', - 'CV2Result' => 'f', - 'GiftAid' => 'g', - '3DSecureStatus' => 'h', - 'CAVV' => 'i', - 'AddressStatus' => 'j', - 'PayerStatus' => 'k', - 'CardType' => 'l', - 'Last4Digits' => 'm', - ) - ); - - $this->getMockRequest()->shouldReceive('getTransactionId')->once()->andReturn('123'); - $this->getMockRequest()->shouldReceive('getTransactionReference')->once()->andReturn('{"SecurityKey":"JEUPDN1N7E","TxAuthNo":"4255","VPSTxId":"{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}","VendorTxCode":"438791"}'); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('{"SecurityKey":"JEUPDN1N7E","TxAuthNo":"b","VPSTxId":"{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}","VendorTxCode":"123"}', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - public function testServerCompleteAuthorizeResponseFailure() - { - $response = new ServerCompleteAuthorizeresponse($this->getMockRequest(), array('Status' => 'INVALID')); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - public function testConfirm() - { - $response = m::mock('\Omnipay\SagePay\Message\ServerCompleteAuthorizeResponse[sendResponse]'); - $response->shouldReceive('sendResponse')->once()->with('OK', 'https://www.example.com/', 'detail'); - - $response->confirm('https://www.example.com/', 'detail'); - } - - public function testError() - { - $response = m::mock('\Omnipay\SagePay\Message\ServerCompleteAuthorizeResponse[sendResponse]'); - $response->shouldReceive('sendResponse')->once()->with('ERROR', 'https://www.example.com/', 'detail'); - - $response->error('https://www.example.com/', 'detail'); - } - - public function testInvalid() - { - $response = m::mock('\Omnipay\SagePay\Message\ServerCompleteAuthorizeResponse[sendResponse]'); - $response->shouldReceive('sendResponse')->once()->with('INVALID', 'https://www.example.com/', 'detail'); - - $response->invalid('https://www.example.com/', 'detail'); - } - - public function testSendResponse() - { - $response = m::mock('\Omnipay\SagePay\Message\ServerCompleteAuthorizeResponse[exitWith]'); - $response->shouldReceive('exitWith')->once()->with("Status=FOO\r\nRedirectUrl=https://www.example.com/"); - - $response->sendResponse('FOO', 'https://www.example.com/'); - } - - public function testSendResponseDetail() - { - $response = m::mock('\Omnipay\SagePay\Message\ServerCompleteAuthorizeResponse[exitWith]'); - $response->shouldReceive('exitWith')->once()->with("Status=FOO\r\nRedirectUrl=https://www.example.com/\r\nStatusDetail=Bar"); - - $response->sendResponse('FOO', 'https://www.example.com/', 'Bar'); - } -} diff --git a/tests/Omnipay/SagePay/Mock/CaptureFailure.txt b/tests/Omnipay/SagePay/Mock/CaptureFailure.txt deleted file mode 100644 index a9cdaf55..00000000 --- a/tests/Omnipay/SagePay/Mock/CaptureFailure.txt +++ /dev/null @@ -1,13 +0,0 @@ -HTTP/1.1 200 OK -Date: Sat, 16 Feb 2013 08:21:41 GMT -Server: Microsoft-IIS/6.0 -P3P: CP="CUR" -X-Powered-By: ASP.NET -Content-Length: 129 -Content-Type: Text/Plain -Set-Cookie: ASPSESSIONIDSEHSCTTR=NNBHGPBDLOMKKPGPNDDJFBAB; secure; path=/ -Cache-control: private - -VPSProtocol=2.23 -Status=INVALID -StatusDetail=You are trying to RELEASE a transaction that has already been RELEASEd or ABORTed. \ No newline at end of file diff --git a/tests/Omnipay/SagePay/Mock/CaptureSuccess.txt b/tests/Omnipay/SagePay/Mock/CaptureSuccess.txt deleted file mode 100644 index 69bc956b..00000000 --- a/tests/Omnipay/SagePay/Mock/CaptureSuccess.txt +++ /dev/null @@ -1,13 +0,0 @@ -HTTP/1.1 200 OK -Date: Sat, 16 Feb 2013 08:21:03 GMT -Server: Microsoft-IIS/6.0 -P3P: CP="CUR" -X-Powered-By: ASP.NET -Content-Length: 85 -Content-Type: Text/Plain -Set-Cookie: ASPSESSIONIDSEHSCTTR=FNBHGPBDMGDJCNLCDCDPGKCA; secure; path=/ -Cache-control: private - -VPSProtocol=2.23 -Status=OK -StatusDetail=The transaction was RELEASEed successfully. \ No newline at end of file diff --git a/tests/Omnipay/SagePay/Mock/DirectPurchase3dSecure.txt b/tests/Omnipay/SagePay/Mock/DirectPurchase3dSecure.txt deleted file mode 100644 index a932333f..00000000 --- a/tests/Omnipay/SagePay/Mock/DirectPurchase3dSecure.txt +++ /dev/null @@ -1,16 +0,0 @@ -HTTP/1.1 200 OK -Date: Sat, 16 Feb 2013 06:53:15 GMT -Server: Microsoft-IIS/6.0 -P3P: CP="CUR" -X-Powered-By: ASP.NET -Content-Length: 359 -Content-Type: Text/Plain -Set-Cookie: ASPSESSIONIDSEHSCTTR=FDNGGPBDBPAHLBIMINACENLN; secure; path=/ -Cache-control: private - -VPSProtocol=2.23 -Status=3DAUTH -3DSecureStatus=OK -MD=065379457749061954 -ACSURL=https://test.sagepay.com/Simulator/3DAuthPage.asp -PAReq=BSkaFwYFFTYAGyFbAB0LFRYWBwsBZw0EGwECEX9YRGFWc08pJCVVKgAANS0KADoZCCAMBnIeOxcWRg0LERdOOTQRDFRdVHNYUgwTMBsBCxABJw4DJHE+ERgPCi8MVC0HIAROCAAfBUk4ER89DD0IWDkvMQ1VdFwoUFgwXVYvbHgvMkdBXXNbQGIjdl1ZUEc1XSwqAAgUUicYBDYcB3I2AjYjIzsn \ No newline at end of file diff --git a/tests/Omnipay/SagePay/Mock/DirectPurchaseFailure.txt b/tests/Omnipay/SagePay/Mock/DirectPurchaseFailure.txt deleted file mode 100644 index 868f82c5..00000000 --- a/tests/Omnipay/SagePay/Mock/DirectPurchaseFailure.txt +++ /dev/null @@ -1,13 +0,0 @@ -HTTP/1.1 200 OK -Date: Sat, 16 Feb 2013 06:40:30 GMT -Server: Microsoft-IIS/6.0 -P3P: CP="CUR" -X-Powered-By: ASP.NET -Content-Length: 156 -Content-Type: Text/Plain -Set-Cookie: ASPSESSIONIDSEHSCTTR=PIMGGPBDEAHAGKNHFGMICIAM; secure; path=/ -Cache-control: private - -VPSProtocol=2.23 -Status=INVALID -StatusDetail=The VendorTxCode '984297' has been used before. Each transaction you send should have a unique VendorTxCode. \ No newline at end of file diff --git a/tests/Omnipay/SagePay/Mock/DirectPurchaseSuccess.txt b/tests/Omnipay/SagePay/Mock/DirectPurchaseSuccess.txt deleted file mode 100644 index 7336ee33..00000000 --- a/tests/Omnipay/SagePay/Mock/DirectPurchaseSuccess.txt +++ /dev/null @@ -1,20 +0,0 @@ -HTTP/1.1 200 OK -Date: Sat, 16 Feb 2013 06:39:41 GMT -Server: Microsoft-IIS/6.0 -P3P: CP="CUR" -X-Powered-By: ASP.NET -Content-Length: 249 -Content-Type: Text/Plain -Set-Cookie: ASPSESSIONIDSEHSCTTR=CIMGGPBDFDIKICAGIIHCNFHJ; secure; path=/ -Cache-control: private - -VPSProtocol=2.23 -Status=OK -StatusDetail=Direct transaction from Simulator. -VPSTxId={5A1BC414-5409-48DD-9B8B-DCDF096CE0BE} -SecurityKey=OUWLNYQTVT -TxAuthNo=9962 -AVSCV2=ALL MATCH -AddressResult=MATCHED -PostCodeResult=MATCHED -CV2Result=MATCHED \ No newline at end of file diff --git a/tests/Omnipay/SagePay/Mock/ServerPurchaseFailure.txt b/tests/Omnipay/SagePay/Mock/ServerPurchaseFailure.txt deleted file mode 100644 index ea250b05..00000000 --- a/tests/Omnipay/SagePay/Mock/ServerPurchaseFailure.txt +++ /dev/null @@ -1,13 +0,0 @@ -HTTP/1.1 200 OK -Date: Sat, 16 Feb 2013 08:59:41 GMT -Server: Microsoft-IIS/6.0 -P3P: CP="CUR" -X-Powered-By: ASP.NET -Content-Length: 113 -Content-Type: Text/Plain -Set-Cookie: ASPSESSIONIDSEHSCTTR=EODHGPBDGNKCCIGEMFBBCBPD; secure; path=/ -Cache-control: private - -VPSProtocol=2.23 -Status=INVALID -StatusDetail=The Description field should be between 1 and 100 characters long. \ No newline at end of file diff --git a/tests/Omnipay/SagePay/Mock/ServerPurchaseSuccess.txt b/tests/Omnipay/SagePay/Mock/ServerPurchaseSuccess.txt deleted file mode 100644 index e793dc22..00000000 --- a/tests/Omnipay/SagePay/Mock/ServerPurchaseSuccess.txt +++ /dev/null @@ -1,16 +0,0 @@ -HTTP/1.1 200 OK -Date: Sat, 16 Feb 2013 09:02:04 GMT -Server: Microsoft-IIS/6.0 -P3P: CP="CUR" -X-Powered-By: ASP.NET -Content-Length: 281 -Content-Type: Text/Plain -Set-Cookie: ASPSESSIONIDSEHSCTTR=JAEHGPBDBOBICGBGJEHFJHPE; secure; path=/ -Cache-control: private - -VPSProtocol=2.23 -Status=OK -StatusDetail=Server transaction registered successfully. -VPSTxId={1E7D9C70-DBE2-4726-88EA-D369810D801D} -SecurityKey=IK776BWNHN -NextURL=https://test.sagepay.com/Simulator/VSPServerPaymentPage.asp?TransactionID={1E7D9C70-DBE2-4726-88EA-D369810D801D} \ No newline at end of file diff --git a/tests/Omnipay/SagePay/ServerGatewayTest.php b/tests/Omnipay/SagePay/ServerGatewayTest.php deleted file mode 100644 index ff668f42..00000000 --- a/tests/Omnipay/SagePay/ServerGatewayTest.php +++ /dev/null @@ -1,156 +0,0 @@ -gateway = new ServerGateway($this->getHttpClient(), $this->getHttpRequest()); - $this->gateway->setVendor('example'); - - $this->purchaseOptions = array( - 'amount' => '10.00', - 'transactionId' => '123', - 'card' => $this->getValidCard(), - 'returnUrl' => 'https://www.example.com/return', - ); - - $this->completePurchaseOptions = array( - 'amount' => '10.00', - 'transactionId' => '123', - 'transactionReference' => '{"SecurityKey":"JEUPDN1N7E","TxAuthNo":"4255","VPSTxId":"{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}","VendorTxCode":"438791"}', - ); - } - - public function testInheritsDirectGateway() - { - $this->assertInstanceOf('Omnipay\SagePay\DirectGateway', $this->gateway); - } - - public function testAuthorizeSuccess() - { - $this->setMockHttpResponse('ServerPurchaseSuccess.txt'); - - $response = $this->gateway->authorize($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Server transaction registered successfully.', $response->getMessage()); - $this->assertSame('https://test.sagepay.com/Simulator/VSPServerPaymentPage.asp?TransactionID={1E7D9C70-DBE2-4726-88EA-D369810D801D}', $response->getRedirectUrl()); - } - - public function testAuthorizeFailure() - { - $this->setMockHttpResponse('ServerPurchaseFailure.txt'); - - $response = $this->gateway->authorize($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The Description field should be between 1 and 100 characters long.', $response->getMessage()); - } - - public function testCompleteAuthorizeSuccess() - { - $this->getHttpRequest()->request->replace( - array( - 'Status' => 'OK', - 'TxAuthNo' => 'b', - 'AVSCV2' => 'c', - 'AddressResult' => 'd', - 'PostCodeResult' => 'e', - 'CV2Result' => 'f', - 'GiftAid' => 'g', - '3DSecureStatus' => 'h', - 'CAVV' => 'i', - 'AddressStatus' => 'j', - 'PayerStatus' => 'k', - 'CardType' => 'l', - 'Last4Digits' => 'm', - 'VPSSignature' => md5('{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}438791OKbexamplecJEUPDN1N7Edefghijklm'), - ) - ); - - $response = $this->gateway->completeAuthorize($this->completePurchaseOptions)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('{"SecurityKey":"JEUPDN1N7E","TxAuthNo":"b","VPSTxId":"{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}","VendorTxCode":"123"}', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - /** - * @expectedException Omnipay\Common\Exception\InvalidResponseException - */ - public function testCompleteAuthorizeInvalid() - { - $response = $this->gateway->completeAuthorize($this->completePurchaseOptions)->send(); - } - - public function testPurchaseSuccess() - { - $this->setMockHttpResponse('ServerPurchaseSuccess.txt'); - - $response = $this->gateway->purchase($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Server transaction registered successfully.', $response->getMessage()); - $this->assertSame('https://test.sagepay.com/Simulator/VSPServerPaymentPage.asp?TransactionID={1E7D9C70-DBE2-4726-88EA-D369810D801D}', $response->getRedirectUrl()); - } - - public function testPurchaseFailure() - { - $this->setMockHttpResponse('ServerPurchaseFailure.txt'); - - $response = $this->gateway->purchase($this->purchaseOptions)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('The Description field should be between 1 and 100 characters long.', $response->getMessage()); - } - - public function testCompletePurchaseSuccess() - { - $this->getHttpRequest()->request->replace( - array( - 'Status' => 'OK', - 'TxAuthNo' => 'b', - 'AVSCV2' => 'c', - 'AddressResult' => 'd', - 'PostCodeResult' => 'e', - 'CV2Result' => 'f', - 'GiftAid' => 'g', - '3DSecureStatus' => 'h', - 'CAVV' => 'i', - 'AddressStatus' => 'j', - 'PayerStatus' => 'k', - 'CardType' => 'l', - 'Last4Digits' => 'm', - 'VPSSignature' => md5('{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}438791OKbexamplecJEUPDN1N7Edefghijklm'), - ) - ); - - $response = $this->gateway->completePurchase($this->completePurchaseOptions)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertSame('{"SecurityKey":"JEUPDN1N7E","TxAuthNo":"b","VPSTxId":"{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}","VendorTxCode":"123"}', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } - - /** - * @expectedException Omnipay\Common\Exception\InvalidResponseException - */ - public function testCompletePurchaseInvalid() - { - $response = $this->gateway->completePurchase($this->completePurchaseOptions)->send(); - } -} diff --git a/tests/Omnipay/SecurePay/DirectPostGatewayTest.php b/tests/Omnipay/SecurePay/DirectPostGatewayTest.php deleted file mode 100644 index f62af6d0..00000000 --- a/tests/Omnipay/SecurePay/DirectPostGatewayTest.php +++ /dev/null @@ -1,48 +0,0 @@ -gateway = new DirectPostGateway($this->getHttpClient(), $this->getHttpRequest()); - $this->gateway->setMerchantId('abc123'); - } - - public function testAuthorize() - { - $request = $this->gateway->authorize(array('amount' => '10.00')); - - $this->assertInstanceOf('\Omnipay\SecurePay\Message\DirectPostAuthorizeRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } - - public function testCompleteAuthorize() - { - $request = $this->gateway->completeAuthorize(array('amount' => '10.00')); - - $this->assertInstanceOf('\Omnipay\SecurePay\Message\DirectPostCompletePurchaseRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } - - public function testPurchase() - { - $request = $this->gateway->purchase(array('amount' => '10.00')); - - $this->assertInstanceOf('\Omnipay\SecurePay\Message\DirectPostPurchaseRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } - - public function testCompletePurchase() - { - $request = $this->gateway->completePurchase(array('amount' => '10.00')); - - $this->assertInstanceOf('\Omnipay\SecurePay\Message\DirectPostCompletePurchaseRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } -} diff --git a/tests/Omnipay/SecurePay/Message/DirectPostAuthorizeRequestTest.php b/tests/Omnipay/SecurePay/Message/DirectPostAuthorizeRequestTest.php deleted file mode 100644 index fcd2b717..00000000 --- a/tests/Omnipay/SecurePay/Message/DirectPostAuthorizeRequestTest.php +++ /dev/null @@ -1,50 +0,0 @@ -request = new DirectPostAuthorizeRequest($this->getHttpClient(), $this->getHttpRequest()); - - $this->request->initialize( - array( - 'merchantId' => 'foo', - 'transactionPassword' => 'bar', - 'amount' => '12.00', - 'returnUrl' => 'https://www.example.com/return', - ) - ); - } - - public function testFingerprint() - { - // force timestamp for testing - $data = $this->request->getData(); - $data['EPS_TIMESTAMP'] = '20130416123332'; - - $this->assertSame('46b6a59173c9fea66f71b8679558837895f0bce8', $this->request->generateFingerprint($data)); - } - - public function testSend() - { - $response = $this->request->send(); - - $this->assertInstanceOf('Omnipay\SecurePay\Message\DirectPostAuthorizeResponse', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertNull($response->getCode()); - - $this->assertSame('https://api.securepay.com.au/live/directpost/authorise', $response->getRedirectUrl()); - $this->assertSame('POST', $response->getRedirectMethod()); - - $data = $response->getData(); - $this->assertArrayHasKey('EPS_FINGERPRINT', $data); - $this->assertSame('1', $data['EPS_TXNTYPE']); - } -} diff --git a/tests/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequestTest.php b/tests/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequestTest.php deleted file mode 100644 index fecfdfc2..00000000 --- a/tests/Omnipay/SecurePay/Message/DirectPostCompletePurchaseRequestTest.php +++ /dev/null @@ -1,96 +0,0 @@ -request = new DirectPostCompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testGenerateResponseFingerprint() - { - $this->request->initialize(array( - 'amount' => '465.18', - 'transactionPassword' => 'abc123', - )); - - $data = array( - 'timestamp' => '20130602102927', - 'merchant' => 'ABC0030', - 'refid' => '222', - 'summarycode' => '2', - ); - - $this->assertSame('0516a31bf96ad89c354266afb9bd4be43aaf853f', $this->request->generateResponseFingerprint($data)); - } - - public function testSuccess() - { - $this->request->initialize(array( - 'amount' => '355.00', - 'transactionPassword' => 'abc123', - )); - - $this->getHttpRequest()->request->replace(array( - 'timestamp' => '20130602112954', - 'callback_status_code' => '', - 'fingerprint' => 'd9b40fc6f841f41ef3475220fe6316406a5256ce', - 'txnid' => '205861', - 'merchant' => 'ABC0030', - 'restext' => 'Approved', - 'rescode' => '00', - 'expirydate' => '032016', - 'settdate' => '20130602', - 'refid' => '226', - 'pan' => '444433...111', - 'summarycode' => '1', - )); - - $response = $this->request->send(); - - $this->assertInstanceOf('Omnipay\\SecurePay\\Message\\DirectPostCompletePurchaseResponse', $response); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('205861', $response->getTransactionReference()); - $this->assertSame('Approved', $response->getMessage()); - $this->assertSame('00', $response->getCode()); - } - - public function testFailure() - { - $this->request->initialize(array( - 'amount' => '465.18', - 'transactionPassword' => 'abc123', - )); - - $this->getHttpRequest()->request->replace(array( - 'timestamp' => '20130602102927', - 'callback_status_code' => '', - 'fingerprint' => '0516a31bf96ad89c354266afb9bd4be43aaf853f', - 'txnid' => '205833', - 'merchant' => 'ABC0030', - 'restext' => 'Customer Dispute', - 'rescode' => '18', - 'expirydate' => '052016', - 'settdate' => '20130602', - 'refid' => '222', - 'pan' => '444433...111', - 'summarycode' => '2', - )); - - $response = $this->request->send(); - - $this->assertInstanceOf('Omnipay\\SecurePay\\Message\\DirectPostCompletePurchaseResponse', $response); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('205833', $response->getTransactionReference()); - $this->assertSame('Customer Dispute', $response->getMessage()); - $this->assertSame('18', $response->getCode()); - } -} diff --git a/tests/Omnipay/SecurePay/Message/DirectPostPurchaseRequestTest.php b/tests/Omnipay/SecurePay/Message/DirectPostPurchaseRequestTest.php deleted file mode 100644 index 84a859c3..00000000 --- a/tests/Omnipay/SecurePay/Message/DirectPostPurchaseRequestTest.php +++ /dev/null @@ -1,50 +0,0 @@ -request = new DirectPostPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - - $this->request->initialize( - array( - 'merchantId' => 'foo', - 'transactionPassword' => 'bar', - 'amount' => '12.00', - 'returnUrl' => 'https://www.example.com/return', - ) - ); - } - - public function testFingerprint() - { - // force timestamp for testing - $data = $this->request->getData(); - $data['EPS_TIMESTAMP'] = '20130416123332'; - - $this->assertSame('652856e75b04c5916a41082e04c9390961497f65', $this->request->generateFingerprint($data)); - } - - public function testSend() - { - $response = $this->request->send(); - - $this->assertInstanceOf('Omnipay\SecurePay\Message\DirectPostAuthorizeResponse', $response); - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertNull($response->getCode()); - - $this->assertSame('https://api.securepay.com.au/live/directpost/authorise', $response->getRedirectUrl()); - $this->assertSame('POST', $response->getRedirectMethod()); - - $data = $response->getData(); - $this->assertArrayHasKey('EPS_FINGERPRINT', $data); - $this->assertSame('0', $data['EPS_TXNTYPE']); - } -} diff --git a/tests/Omnipay/Stripe/GatewayTest.php b/tests/Omnipay/Stripe/GatewayTest.php deleted file mode 100644 index b38a0e98..00000000 --- a/tests/Omnipay/Stripe/GatewayTest.php +++ /dev/null @@ -1,78 +0,0 @@ -gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testAuthorize() - { - $request = $this->gateway->authorize(array('amount' => '10.00')); - - $this->assertInstanceOf('Omnipay\Stripe\Message\AuthorizeRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } - - public function testCapture() - { - $request = $this->gateway->capture(array('amount' => '10.00')); - - $this->assertInstanceOf('Omnipay\Stripe\Message\CaptureRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } - - public function testPurchase() - { - $request = $this->gateway->purchase(array('amount' => '10.00')); - - $this->assertInstanceOf('Omnipay\Stripe\Message\PurchaseRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } - - public function testRefund() - { - $request = $this->gateway->refund(array('amount' => '10.00')); - - $this->assertInstanceOf('Omnipay\Stripe\Message\RefundRequest', $request); - $this->assertSame('10.00', $request->getAmount()); - } - - public function testFetchTransaction() - { - $request = $this->gateway->fetchTransaction(array()); - - $this->assertInstanceOf('Omnipay\Stripe\Message\FetchTransactionRequest', $request); - } - - public function testCreateCard() - { - $request = $this->gateway->createCard(array('description' => 'foo')); - - $this->assertInstanceOf('Omnipay\Stripe\Message\CreateCardRequest', $request); - $this->assertSame('foo', $request->getDescription()); - } - - public function testUpdateCard() - { - $request = $this->gateway->updateCard(array('cardReference' => 'cus_1MZSEtqSghKx99')); - - $this->assertInstanceOf('Omnipay\Stripe\Message\UpdateCardRequest', $request); - $this->assertSame('cus_1MZSEtqSghKx99', $request->getCardReference()); - } - - public function testDeleteCard() - { - $request = $this->gateway->deleteCard(array('cardReference' => 'cus_1MZSEtqSghKx99')); - - $this->assertInstanceOf('Omnipay\Stripe\Message\DeleteCardRequest', $request); - $this->assertSame('cus_1MZSEtqSghKx99', $request->getCardReference()); - } -} diff --git a/tests/Omnipay/Stripe/Message/AuthorizeRequestTest.php b/tests/Omnipay/Stripe/Message/AuthorizeRequestTest.php deleted file mode 100644 index 9d5f76dc..00000000 --- a/tests/Omnipay/Stripe/Message/AuthorizeRequestTest.php +++ /dev/null @@ -1,85 +0,0 @@ -request = new AuthorizeRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize( - array( - 'amount' => '12.00', - 'currency' => 'USD', - 'card' => $this->getValidCard(), - ) - ); - } - - public function testCaptureIsFalse() - { - $data = $this->request->getData(); - $this->assertSame('false', $data['capture']); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidRequestException - * @expectedExceptionMessage The card parameter is required - */ - public function testCardRequired() - { - $this->request->setCard(null); - $this->request->getData(); - } - - public function testDataWithCardReference() - { - $this->request->setCardReference('xyz'); - $data = $this->request->getData(); - - $this->assertSame('xyz', $data['customer']); - } - - public function testDataWithToken() - { - $this->request->setToken('xyz'); - $data = $this->request->getData(); - - $this->assertSame('xyz', $data['card']); - } - - public function testDataWithCard() - { - $card = $this->getValidCard(); - $this->request->setCard($card); - $data = $this->request->getData(); - - $this->assertSame($card['number'], $data['card']['number']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('ch_1IU9gcUiNASROd', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testSendError() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('Your card was declined', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Stripe/Message/CaptureRequestTest.php b/tests/Omnipay/Stripe/Message/CaptureRequestTest.php deleted file mode 100644 index 6397675f..00000000 --- a/tests/Omnipay/Stripe/Message/CaptureRequestTest.php +++ /dev/null @@ -1,54 +0,0 @@ -request = new CaptureRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->setTransactionReference('foo'); - } - - public function testEndpoint() - { - $this->assertSame('https://api.stripe.com/v1/charges/foo/capture', $this->request->getEndpoint()); - } - - public function testAmount() - { - // defualt is no amount - $this->assertArrayNotHasKey('amount', $this->request->getData()); - - $this->request->setAmount('10.00'); - - $data = $this->request->getData(); - $this->assertSame(1000, $data['amount']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('CaptureSuccess.txt'); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('ch_1lvgjcQgrNWUuZ', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testSendError() - { - $this->setMockHttpResponse('CaptureFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('Charge ch_1lvgjcQgrNWUuZ has already been captured.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Stripe/Message/CreateCardRequestTest.php b/tests/Omnipay/Stripe/Message/CreateCardRequestTest.php deleted file mode 100644 index 7a067aab..00000000 --- a/tests/Omnipay/Stripe/Message/CreateCardRequestTest.php +++ /dev/null @@ -1,70 +0,0 @@ -request = new CreateCardRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->setCard($this->getValidCard()); - } - - public function testEndpoint() - { - $this->assertSame('https://api.stripe.com/v1/customers', $this->request->getEndpoint()); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidRequestException - * @expectedExceptionMessage The card parameter is required - */ - public function testCard() - { - $this->request->setCard(null); - $this->request->getData(); - } - - public function testDataWithToken() - { - $this->request->setToken('xyz'); - $data = $this->request->getData(); - - $this->assertSame('xyz', $data['card']); - } - - public function testDataWithCard() - { - $card = $this->getValidCard(); - $this->request->setCard($card); - $data = $this->request->getData(); - - $this->assertSame($card['number'], $data['card']['number']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('CreateCardSuccess.txt'); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('cus_1MZSEtqSghKx99', $response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('CreateCardFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('You must provide an integer value for \'exp_year\'.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Stripe/Message/DeleteCardRequestTest.php b/tests/Omnipay/Stripe/Message/DeleteCardRequestTest.php deleted file mode 100644 index 68bedd87..00000000 --- a/tests/Omnipay/Stripe/Message/DeleteCardRequestTest.php +++ /dev/null @@ -1,43 +0,0 @@ -request = new DeleteCardRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->setCardReference('cus_1MZSEtqSghKx99'); - } - - public function testEndpoint() - { - $this->assertSame('https://api.stripe.com/v1/customers/cus_1MZSEtqSghKx99', $this->request->getEndpoint()); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('DeleteCardSuccess.txt'); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('DeleteCardFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('No such customer: cus_1MZeNih5LdKxDq', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Stripe/Message/FetchTransactionTest.php b/tests/Omnipay/Stripe/Message/FetchTransactionTest.php deleted file mode 100644 index 988b1e71..00000000 --- a/tests/Omnipay/Stripe/Message/FetchTransactionTest.php +++ /dev/null @@ -1,43 +0,0 @@ -request = new FetchTransactionRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->setTransactionReference('ch_29yrvk84GVDsq9'); - } - - public function testEndpoint() - { - $this->assertSame('https://api.stripe.com/v1/charges/ch_29yrvk84GVDsq9', $this->request->getEndpoint()); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('FetchTransactionSuccess.txt'); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('ch_29yrvk84GVDsq9', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testSendError() - { - $this->setMockHttpResponse('FetchTransactionFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('No such charge: ch_29yrvk84GVDsq9fake', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Stripe/Message/PurchaseRequestTest.php b/tests/Omnipay/Stripe/Message/PurchaseRequestTest.php deleted file mode 100644 index 3c951eff..00000000 --- a/tests/Omnipay/Stripe/Message/PurchaseRequestTest.php +++ /dev/null @@ -1,50 +0,0 @@ -request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->initialize( - array( - 'amount' => '10.00', - 'currency' => 'USD', - 'card' => $this->getValidCard(), - ) - ); - } - - public function testCaptureIsTrue() - { - $data = $this->request->getData(); - $this->assertSame('true', $data['capture']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('ch_1IU9gcUiNASROd', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testSendError() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('Your card was declined', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Stripe/Message/RefundRequestTest.php b/tests/Omnipay/Stripe/Message/RefundRequestTest.php deleted file mode 100644 index a41809da..00000000 --- a/tests/Omnipay/Stripe/Message/RefundRequestTest.php +++ /dev/null @@ -1,50 +0,0 @@ -request = new RefundRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->setTransactionReference('ch_12RgN9L7XhO9mI') - ->setAmount('10.00'); - } - - public function testEndpoint() - { - $this->assertSame('https://api.stripe.com/v1/charges/ch_12RgN9L7XhO9mI/refund', $this->request->getEndpoint()); - } - - public function testAmount() - { - $data = $this->request->getData(); - $this->assertSame(1000, $data['amount']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('RefundSuccess.txt'); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('ch_12RgN9L7XhO9mI', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testSendError() - { - $this->setMockHttpResponse('RefundFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('Charge ch_12RgN9L7XhO9mI has already been refunded.', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Stripe/Message/ResponseTest.php b/tests/Omnipay/Stripe/Message/ResponseTest.php deleted file mode 100644 index 2ee8012e..00000000 --- a/tests/Omnipay/Stripe/Message/ResponseTest.php +++ /dev/null @@ -1,104 +0,0 @@ -getMockHttpResponse('PurchaseSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->json()); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('ch_1IU9gcUiNASROd', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testPurchaseFailure() - { - $httpResponse = $this->getMockHttpResponse('PurchaseFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->json()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('Your card was declined', $response->getMessage()); - } - - public function testCreateCardSuccess() - { - $httpResponse = $this->getMockHttpResponse('CreateCardSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->json()); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('cus_1MZSEtqSghKx99', $response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testCreateCardFailure() - { - $httpResponse = $this->getMockHttpResponse('CreateCardFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->json()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('You must provide an integer value for \'exp_year\'.', $response->getMessage()); - } - - public function testUpdateCardSuccess() - { - $httpResponse = $this->getMockHttpResponse('UpdateCardSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->json()); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('cus_1MZeNih5LdKxDq', $response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testUpdateCardFailure() - { - $httpResponse = $this->getMockHttpResponse('UpdateCardFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->json()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('No such customer: cus_1MZeNih5LdKxDq', $response->getMessage()); - } - - public function testDeleteCardSuccess() - { - $httpResponse = $this->getMockHttpResponse('DeleteCardSuccess.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->json()); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testDeleteCardFailure() - { - $httpResponse = $this->getMockHttpResponse('DeleteCardFailure.txt'); - $response = new Response($this->getMockRequest(), $httpResponse->json()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('No such customer: cus_1MZeNih5LdKxDq', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Stripe/Message/UpdateCardRequestTest.php b/tests/Omnipay/Stripe/Message/UpdateCardRequestTest.php deleted file mode 100644 index 42732e38..00000000 --- a/tests/Omnipay/Stripe/Message/UpdateCardRequestTest.php +++ /dev/null @@ -1,60 +0,0 @@ -request = new UpdateCardRequest($this->getHttpClient(), $this->getHttpRequest()); - $this->request->setCardReference('cus_1MZSEtqSghKx99'); - } - - public function testEndpoint() - { - $this->assertSame('https://api.stripe.com/v1/customers/cus_1MZSEtqSghKx99', $this->request->getEndpoint()); - } - - public function testDataWithToken() - { - $this->request->setToken('xyz'); - $data = $this->request->getData(); - - $this->assertSame('xyz', $data['card']); - } - - public function testDataWithCard() - { - $card = $this->getValidCard(); - $this->request->setCard($card); - $data = $this->request->getData(); - - $this->assertSame($card['number'], $data['card']['number']); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('UpdateCardSuccess.txt'); - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('cus_1MZeNih5LdKxDq', $response->getCardReference()); - $this->assertNull($response->getMessage()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('UpdateCardFailure.txt'); - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getCardReference()); - $this->assertSame('No such customer: cus_1MZeNih5LdKxDq', $response->getMessage()); - } -} diff --git a/tests/Omnipay/Stripe/Mock/CaptureFailure.txt b/tests/Omnipay/Stripe/Mock/CaptureFailure.txt deleted file mode 100644 index 12033e98..00000000 --- a/tests/Omnipay/Stripe/Mock/CaptureFailure.txt +++ /dev/null @@ -1,16 +0,0 @@ -HTTP/1.1 400 Bad Request -Server: nginx -Date: Sun, 05 May 2013 08:52:09 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 127 -Connection: keep-alive -Cache-Control: no-cache, no-store -Access-Control-Max-Age: 300 -Access-Control-Allow-Credentials: true - -{ - "error": { - "type": "invalid_request_error", - "message": "Charge ch_1lvgjcQgrNWUuZ has already been captured." - } -} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/CaptureSuccess.txt b/tests/Omnipay/Stripe/Mock/CaptureSuccess.txt deleted file mode 100644 index 1038d16d..00000000 --- a/tests/Omnipay/Stripe/Mock/CaptureSuccess.txt +++ /dev/null @@ -1,57 +0,0 @@ -HTTP/1.1 200 OK -Server: nginx -Date: Sun, 05 May 2013 08:51:15 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 997 -Connection: keep-alive -Cache-Control: no-cache, no-store -Access-Control-Max-Age: 300 -Access-Control-Allow-Credentials: true - -{ - "id": "ch_1lvgjcQgrNWUuZ", - "object": "charge", - "created": 1367743707, - "livemode": false, - "paid": true, - "amount": 1000, - "currency": "usd", - "refunded": false, - "fee": 59, - "fee_details": [ - { - "amount": 59, - "currency": "usd", - "type": "stripe_fee", - "description": "Stripe processing fees", - "application": null, - "amount_refunded": 0 - } - ], - "card": { - "object": "card", - "last4": "4242", - "type": "Visa", - "exp_month": 9, - "exp_year": 2015, - "fingerprint": "dfB0t0avO0bWr9eY", - "country": "US", - "name": "fdsa asdf", - "address_line1": "", - "address_line2": "", - "address_city": "", - "address_state": "", - "address_zip": "", - "address_country": "", - "cvc_check": "pass", - "address_line1_check": "pass", - "address_zip_check": "pass" - }, - "captured": true, - "failure_message": null, - "amount_refunded": 0, - "customer": null, - "invoice": null, - "description": "", - "dispute": null -} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/CreateCardFailure.txt b/tests/Omnipay/Stripe/Mock/CreateCardFailure.txt deleted file mode 100644 index e936fbba..00000000 --- a/tests/Omnipay/Stripe/Mock/CreateCardFailure.txt +++ /dev/null @@ -1,17 +0,0 @@ -HTTP/1.1 402 Payment Required -Server: nginx -Date: Tue, 26 Feb 2013 16:17:02 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 139 -Connection: keep-alive -Access-Control-Max-Age: 300 -Access-Control-Allow-Credentials: true -Cache-Control: no-cache, no-store - -{ - "error": { - "message": "You must provide an integer value for 'exp_year'.", - "type": "card_error", - "param": "exp_year" - } -} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/CreateCardSuccess.txt b/tests/Omnipay/Stripe/Mock/CreateCardSuccess.txt deleted file mode 100644 index 3b06e72f..00000000 --- a/tests/Omnipay/Stripe/Mock/CreateCardSuccess.txt +++ /dev/null @@ -1,41 +0,0 @@ -HTTP/1.1 200 OK -Server: nginx -Date: Tue, 26 Feb 2013 16:11:12 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 694 -Connection: keep-alive -Access-Control-Max-Age: 300 -Access-Control-Allow-Credentials: true -Cache-Control: no-cache, no-store - -{ - "object": "customer", - "created": 1361895072, - "id": "cus_1MZSEtqSghKx99", - "livemode": false, - "description": "fdsa", - "active_card": { - "object": "card", - "last4": "4242", - "type": "Visa", - "exp_month": 9, - "exp_year": 2019, - "fingerprint": "dfB0t0avO0bWr9eY", - "country": "US", - "name": "fdjsk fdjksl", - "address_line1": "", - "address_line2": "", - "address_city": "", - "address_state": "", - "address_zip": "", - "address_country": "", - "cvc_check": "pass", - "address_line1_check": "pass", - "address_zip_check": "pass" - }, - "email": null, - "delinquent": false, - "subscription": null, - "discount": null, - "account_balance": 0 -} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/DeleteCardFailure.txt b/tests/Omnipay/Stripe/Mock/DeleteCardFailure.txt deleted file mode 100644 index 30626646..00000000 --- a/tests/Omnipay/Stripe/Mock/DeleteCardFailure.txt +++ /dev/null @@ -1,17 +0,0 @@ -HTTP/1.1 404 Not Found -Server: nginx -Date: Tue, 26 Feb 2013 16:32:51 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 131 -Connection: keep-alive -Access-Control-Max-Age: 300 -Access-Control-Allow-Credentials: true -Cache-Control: no-cache, no-store - -{ - "error": { - "type": "invalid_request_error", - "message": "No such customer: cus_1MZeNih5LdKxDq", - "param": "id" - } -} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/DeleteCardSuccess.txt b/tests/Omnipay/Stripe/Mock/DeleteCardSuccess.txt deleted file mode 100644 index 53748c5d..00000000 --- a/tests/Omnipay/Stripe/Mock/DeleteCardSuccess.txt +++ /dev/null @@ -1,14 +0,0 @@ -HTTP/1.1 200 OK -Server: nginx -Date: Tue, 26 Feb 2013 16:33:08 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 52 -Connection: keep-alive -Access-Control-Max-Age: 300 -Access-Control-Allow-Credentials: true -Cache-Control: no-cache, no-store - -{ - "deleted": true, - "id": "cus_1MZSEtqSghKx99" -} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/FetchTransactionFailure.txt b/tests/Omnipay/Stripe/Mock/FetchTransactionFailure.txt deleted file mode 100644 index 4eda434b..00000000 --- a/tests/Omnipay/Stripe/Mock/FetchTransactionFailure.txt +++ /dev/null @@ -1,17 +0,0 @@ -HTTP/1.1 404 Not Found -Server: nginx -Date: Wed, 24 Jul 2013 13:40:31 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 132 -Connection: keep-alive -Access-Control-Allow-Credentials: true -Access-Control-Max-Age: 300 -Cache-Control: no-cache, no-store - -{ - "error": { - "type": "invalid_request_error", - "message": "No such charge: ch_29yrvk84GVDsq9fake", - "param": "id" - } -} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/FetchTransactionSuccess.txt b/tests/Omnipay/Stripe/Mock/FetchTransactionSuccess.txt deleted file mode 100644 index a20aa39d..00000000 --- a/tests/Omnipay/Stripe/Mock/FetchTransactionSuccess.txt +++ /dev/null @@ -1,59 +0,0 @@ -HTTP/1.1 200 OK -Server: nginx -Date: Wed, 24 Jul 2013 07:14:02 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 1092 -Connection: keep-alive -Access-Control-Allow-Credentials: true -Access-Control-Max-Age: 300 -Cache-Control: no-cache, no-store - -{ - "id": "ch_29yrvk84GVDsq9", - "object": "charge", - "created": 1373290882, - "livemode": false, - "paid": true, - "amount": 4200, - "currency": "gbp", - "refunded": false, - "fee": 152, - "fee_details": [ - { - "amount": 152, - "currency": "gbp", - "type": "stripe_fee", - "description": "Stripe processing fees", - "application": null, - "amount_refunded": 0 - } - ], - "card": { - "object": "card", - "last4": "4242", - "type": "Visa", - "exp_month": 5, - "exp_year": 2015, - "fingerprint": "o7bnpaR6swBKn5O7", - "customer": null, - "country": "US", - "name": "John Doe", - "address_line1": "", - "address_line2": "", - "address_city": "", - "address_state": "", - "address_zip": "", - "address_country": "", - "cvc_check": "pass", - "address_line1_check": "pass", - "address_zip_check": "pass" - }, - "captured": true, - "failure_message": null, - "failure_code": null, - "amount_refunded": 0, - "customer": null, - "invoice": null, - "description": "A12BCD/2", - "dispute": null -} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/PurchaseFailure.txt b/tests/Omnipay/Stripe/Mock/PurchaseFailure.txt deleted file mode 100644 index 1fa9095b..00000000 --- a/tests/Omnipay/Stripe/Mock/PurchaseFailure.txt +++ /dev/null @@ -1,18 +0,0 @@ -HTTP/1.1 402 Payment Required -Server: nginx -Date: Fri, 15 Feb 2013 18:26:37 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 151 -Connection: keep-alive -Cache-Control: no-cache, no-store -Access-Control-Allow-Credentials: true -Access-Control-Max-Age: 300 - -{ - "error": { - "message": "Your card was declined", - "type": "card_error", - "code": "card_declined", - "charge": "ch_1IUAZQWFYrPooM" - } -} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/PurchaseSuccess.txt b/tests/Omnipay/Stripe/Mock/PurchaseSuccess.txt deleted file mode 100644 index 803f94c4..00000000 --- a/tests/Omnipay/Stripe/Mock/PurchaseSuccess.txt +++ /dev/null @@ -1,56 +0,0 @@ -HTTP/1.1 200 OK -Server: nginx -Date: Fri, 15 Feb 2013 18:25:28 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 995 -Connection: keep-alive -Cache-Control: no-cache, no-store -Access-Control-Allow-Credentials: true -Access-Control-Max-Age: 300 - -{ - "id": "ch_1IU9gcUiNASROd", - "object": "charge", - "created": 1360952728, - "livemode": false, - "paid": true, - "amount": 1000, - "currency": "usd", - "refunded": false, - "fee": 59, - "fee_details": [ - { - "amount": 59, - "currency": "usd", - "type": "stripe_fee", - "description": "Stripe processing fees", - "application": null, - "amount_refunded": 0 - } - ], - "card": { - "object": "card", - "last4": "4242", - "type": "Visa", - "exp_month": 9, - "exp_year": 2018, - "fingerprint": "dfB0t0avO0bWr9eY", - "country": "US", - "name": "jkfdsl fdjksl", - "address_line1": "", - "address_line2": "", - "address_city": "", - "address_state": "", - "address_zip": "", - "address_country": "", - "cvc_check": "pass", - "address_line1_check": "pass", - "address_zip_check": "pass" - }, - "failure_message": null, - "amount_refunded": 0, - "customer": null, - "invoice": null, - "description": "first purchase", - "dispute": null -} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/RefundFailure.txt b/tests/Omnipay/Stripe/Mock/RefundFailure.txt deleted file mode 100644 index 0b0aff0b..00000000 --- a/tests/Omnipay/Stripe/Mock/RefundFailure.txt +++ /dev/null @@ -1,3 +0,0 @@ -HTTP/1.1 200 OK - -{"error":{"message":"Charge ch_12RgN9L7XhO9mI has already been refunded."}} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/RefundSuccess.txt b/tests/Omnipay/Stripe/Mock/RefundSuccess.txt deleted file mode 100644 index 3fe294ea..00000000 --- a/tests/Omnipay/Stripe/Mock/RefundSuccess.txt +++ /dev/null @@ -1,3 +0,0 @@ -HTTP/1.1 200 OK - -{"id":"ch_12RgN9L7XhO9mI","object": "charge"} \ No newline at end of file diff --git a/tests/Omnipay/Stripe/Mock/UpdateCardFailure.txt b/tests/Omnipay/Stripe/Mock/UpdateCardFailure.txt deleted file mode 100644 index 127dd50c..00000000 --- a/tests/Omnipay/Stripe/Mock/UpdateCardFailure.txt +++ /dev/null @@ -1,17 +0,0 @@ -HTTP/1.1 404 Not Found -Server: nginx -Date: Tue, 26 Feb 2013 16:32:51 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 131 -Connection: keep-alive -Access-Control-Max-Age: 300 -Access-Control-Allow-Credentials: true -Cache-Control: no-cache, no-store - -{ - "error": { - "type": "invalid_request_error", - "message": "No such customer: cus_1MZeNih5LdKxDq", - "param": "id" - } -} diff --git a/tests/Omnipay/Stripe/Mock/UpdateCardSuccess.txt b/tests/Omnipay/Stripe/Mock/UpdateCardSuccess.txt deleted file mode 100644 index 23e93454..00000000 --- a/tests/Omnipay/Stripe/Mock/UpdateCardSuccess.txt +++ /dev/null @@ -1,23 +0,0 @@ -HTTP/1.1 200 OK -Server: nginx -Date: Tue, 26 Feb 2013 16:11:12 GMT -Content-Type: application/json;charset=utf-8 -Content-Length: 694 -Connection: keep-alive -Access-Control-Max-Age: 300 -Access-Control-Allow-Credentials: true -Cache-Control: no-cache, no-store - -{ - "object": "customer", - "created": 1365771516, - "id": "cus_1MZeNih5LdKxDq", - "livemode": false, - "description": "fdsa", - "active_card": null, - "email": null, - "delinquent": false, - "subscription": null, - "discount": null, - "account_balance": 0 -} diff --git a/tests/Omnipay/TargetPay/DirectebankingGatewayTest.php b/tests/Omnipay/TargetPay/DirectebankingGatewayTest.php deleted file mode 100644 index cef20ddb..00000000 --- a/tests/Omnipay/TargetPay/DirectebankingGatewayTest.php +++ /dev/null @@ -1,59 +0,0 @@ -gateway = new DirectebankingGateway($this->getHttpClient(), $this->getHttpRequest()); - $this->gateway->setSubAccountId('123456'); - } - - public function testPurchase() - { - /** @var \Omnipay\TargetPay\Message\DirectebankingPurchaseRequest $request */ - $request = $this->gateway->purchase(array( - 'amount' => '100.00', - 'description' => 'desc', - 'clientIp' => '127.0.0.1', - 'country' => '00', - 'language' => 'EN', - 'serviceType' => '0', - 'returnUrl' => 'http://localhost/return', - 'notifyUrl' => 'http://localhost/notify', - )); - - $this->assertInstanceOf('Omnipay\TargetPay\Message\DirectebankingPurchaseRequest', $request); - $this->assertSame('100.00', $request->getAmount()); - $this->assertSame('desc', $request->getDescription()); - $this->assertSame('127.0.0.1', $request->getClientIp()); - $this->assertSame('00', $request->getCountry()); - $this->assertSame('EN', $request->getLanguage()); - $this->assertSame('0', $request->getServiceType()); - $this->assertSame('http://localhost/return', $request->getReturnUrl()); - $this->assertSame('http://localhost/notify', $request->getNotifyUrl()); - } - - public function testCompletePurchase() - { - /** @var \Omnipay\TargetPay\Message\CompletePurchaseRequest $request */ - $request = $this->gateway->completePurchase(array( - 'transactionId' => '123456', - 'exchangeOnce' => true, - )); - - $this->assertInstanceOf('Omnipay\TargetPay\Message\CompletePurchaseRequest', $request); - $this->assertSame('123456', $request->getTransactionId()); - $this->assertTrue($request->getExchangeOnce()); - } -} diff --git a/tests/Omnipay/TargetPay/IdealGatewayTest.php b/tests/Omnipay/TargetPay/IdealGatewayTest.php deleted file mode 100644 index a2cca15e..00000000 --- a/tests/Omnipay/TargetPay/IdealGatewayTest.php +++ /dev/null @@ -1,66 +0,0 @@ -gateway = new IdealGateway($this->getHttpClient(), $this->getHttpRequest()); - $this->gateway->setSubAccountId('123456'); - } - - public function testFetchIssuers() - { - /** @var \Omnipay\TargetPay\Message\FetchIssuersRequest $request */ - $request = $this->gateway->fetchIssuers(); - - $this->assertInstanceOf('Omnipay\TargetPay\Message\FetchIssuersRequest', $request); - $this->assertNull($request->getData()); - } - - public function testPurchase() - { - /** @var \Omnipay\TargetPay\Message\IdealPurchaseRequest $request */ - $request = $this->gateway->purchase(array( - 'issuer' => '0001', - 'amount' => '100.00', - 'currency' => 'EUR', - 'description' => 'desc', - 'language' => 'EN', - 'returnUrl' => 'http://localhost/return', - 'notifyUrl' => 'http://localhost/notify', - )); - - $this->assertInstanceOf('Omnipay\TargetPay\Message\IdealPurchaseRequest', $request); - $this->assertSame('0001', $request->getIssuer()); - $this->assertSame('100.00', $request->getAmount()); - $this->assertSame('EUR', $request->getCurrency()); - $this->assertSame('desc', $request->getDescription()); - $this->assertSame('EN', $request->getLanguage()); - $this->assertSame('http://localhost/return', $request->getReturnUrl()); - $this->assertSame('http://localhost/notify', $request->getNotifyUrl()); - } - - public function testCompletePurchase() - { - /** @var \Omnipay\TargetPay\Message\CompletePurchaseRequest $request */ - $request = $this->gateway->completePurchase(array( - 'transactionId' => '123456', - 'exchangeOnce' => true, - )); - - $this->assertInstanceOf('Omnipay\TargetPay\Message\CompletePurchaseRequest', $request); - $this->assertSame('123456', $request->getTransactionId()); - $this->assertTrue($request->getExchangeOnce()); - } -} diff --git a/tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php deleted file mode 100644 index 1b11ded0..00000000 --- a/tests/Omnipay/TargetPay/Message/CompletePurchaseRequestTest.php +++ /dev/null @@ -1,52 +0,0 @@ -getHttpClient(), $this->getHttpRequest()); - $this->request = m::mock('Omnipay\TargetPay\Message\CompletePurchaseRequest[getEndpoint]', $arguments); - $this->request->shouldReceive('getEndpoint')->andReturn('http://localhost/'); - $this->request->setTransactionId('123456'); - } - - public function testData() - { - $data = $this->request->getData(); - - $this->assertArrayHasKey('rtlo', $data); - $this->assertSame('123456', $data['trxid']); - $this->assertArrayHasKey('once', $data); - $this->assertArrayHasKey('test', $data); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('CompletePurchaseSuccess.txt'); - - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('CompletePurchaseFailure.txt'); - - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertEquals('Transaction was cancelled', $response->getMessage()); - $this->assertEquals('TP0013', $response->getCode()); - } -} diff --git a/tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php deleted file mode 100644 index 516574ab..00000000 --- a/tests/Omnipay/TargetPay/Message/DirectebankingCompletePurchaseRequestTest.php +++ /dev/null @@ -1,23 +0,0 @@ -request = new DirectebankingCompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testEndpoint() - { - $this->assertSame('https://www.targetpay.com/directebanking/check', $this->request->getEndpoint()); - } -} diff --git a/tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php deleted file mode 100644 index 2b518d53..00000000 --- a/tests/Omnipay/TargetPay/Message/DirectebankingPurchaseRequestTest.php +++ /dev/null @@ -1,45 +0,0 @@ -request = new DirectebankingPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testData() - { - $this->request->setAmount('100.00'); - $this->request->setDescription('desc'); - $this->request->setCountry('01'); - $this->request->setServiceType('1'); - $this->request->setClientIp('127.0.0.1'); - $this->request->setReturnUrl('http://localhost/return'); - - $data = $this->request->getData(); - - $this->assertArrayHasKey('rtlo', $data); - $this->assertSame('desc', $data['description']); - $this->assertSame(10000, $data['amount']); - $this->assertSame('01', $data['country']); - $this->assertArrayHasKey('lang', $data); - $this->assertSame('1', $data['type']); - $this->assertSame('127.0.0.1', $data['userip']); - $this->assertSame('http://localhost/return', $data['returnurl']); - $this->assertArrayHasKey('reporturl', $data); - } - - public function testEndpoint() - { - $this->assertSame('https://www.targetpay.com/directebanking/start', $this->request->getEndpoint()); - } -} diff --git a/tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php b/tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php deleted file mode 100644 index ffb9a81f..00000000 --- a/tests/Omnipay/TargetPay/Message/FetchIssuersRequestTest.php +++ /dev/null @@ -1,43 +0,0 @@ -request = new FetchIssuersRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - /** - * @dataProvider issuersProvider - */ - public function testSendSuccess($expected) - { - $this->setMockHttpResponse('FetchIssuersSuccess.txt'); - - $response = $this->request->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertEquals($expected, $response->getIssuers()); - } - - public function issuersProvider() - { - return array( - array( - array( - '0001' => 'Sample 1', - '0002' => 'Sample 2', - ), - ), - ); - } -} diff --git a/tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php deleted file mode 100644 index b693cdb0..00000000 --- a/tests/Omnipay/TargetPay/Message/IdealCompletePurchaseRequestTest.php +++ /dev/null @@ -1,23 +0,0 @@ -request = new IdealCompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testEndpoint() - { - $this->assertSame('https://www.targetpay.com/ideal/check', $this->request->getEndpoint()); - } -} diff --git a/tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php deleted file mode 100644 index f74f4049..00000000 --- a/tests/Omnipay/TargetPay/Message/IdealPurchaseRequestTest.php +++ /dev/null @@ -1,42 +0,0 @@ -request = new IdealPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testData() - { - $this->request->setIssuer('0001'); - $this->request->setAmount('100.00'); - $this->request->setDescription('desc'); - $this->request->setReturnUrl('http://localhost/return'); - - $data = $this->request->getData(); - - $this->assertArrayHasKey('rtlo', $data); - $this->assertSame('0001', $data['bank']); - $this->assertSame(10000, $data['amount']); - $this->assertSame('desc', $data['description']); - $this->assertArrayHasKey('language', $data); - $this->assertArrayHasKey('currency', $data); - $this->assertSame('http://localhost/return', $data['returnurl']); - $this->assertArrayHasKey('reporturl', $data); - } - - public function testEndpoint() - { - $this->assertSame('https://www.targetpay.com/ideal/start', $this->request->getEndpoint()); - } -} diff --git a/tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php deleted file mode 100644 index 2337cd3c..00000000 --- a/tests/Omnipay/TargetPay/Message/MrcashCompletePurchaseRequestTest.php +++ /dev/null @@ -1,23 +0,0 @@ -request = new MrcashCompletePurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testEndpoint() - { - $this->assertSame('https://www.targetpay.com/mrcash/check', $this->request->getEndpoint()); - } -} diff --git a/tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php deleted file mode 100644 index 715f2abf..00000000 --- a/tests/Omnipay/TargetPay/Message/MrcashPurchaseRequestTest.php +++ /dev/null @@ -1,41 +0,0 @@ -request = new MrcashPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); - } - - public function testData() - { - $this->request->setAmount('100.00'); - $this->request->setDescription('desc'); - $this->request->setClientIp('127.0.0.1'); - $this->request->setReturnUrl('http://localhost/return'); - - $data = $this->request->getData(); - - $this->assertArrayHasKey('rtlo', $data); - $this->assertSame(10000, $data['amount']); - $this->assertSame('desc', $data['description']); - $this->assertArrayHasKey('lang', $data); - $this->assertSame('127.0.0.1', $data['userip']); - $this->assertSame('http://localhost/return', $data['returnurl']); - $this->assertArrayHasKey('reporturl', $data); - } - - public function testEndpoint() - { - $this->assertSame('https://www.targetpay.com/mrcash/start', $this->request->getEndpoint()); - } -} diff --git a/tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php b/tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php deleted file mode 100644 index c833fcb5..00000000 --- a/tests/Omnipay/TargetPay/Message/PurchaseRequestTest.php +++ /dev/null @@ -1,45 +0,0 @@ -getHttpClient(), $this->getHttpRequest()); - $this->request = m::mock('Omnipay\TargetPay\Message\PurchaseRequest[getData,getEndpoint]', $arguments); - $this->request->shouldReceive('getData')->andReturn(array()); - $this->request->shouldReceive('getEndpoint')->andReturn('http://localhost/'); - } - - public function testSendSuccess() - { - $this->setMockHttpResponse('PurchaseSuccess.txt'); - - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertEquals('https://www.targetpay.com/mrcash/start.php?trxid=15983095', $response->getRedirectUrl()); - $this->assertEquals('15983095', $response->getTransactionReference()); - } - - public function testSendFailure() - { - $this->setMockHttpResponse('PurchaseFailure.txt'); - - $response = $this->request->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertEquals('Account disabled.', $response->getMessage()); - $this->assertEquals('TP0016', $response->getCode()); - } -} diff --git a/tests/Omnipay/TargetPay/Mock/CompletePurchaseFailure.txt b/tests/Omnipay/TargetPay/Mock/CompletePurchaseFailure.txt deleted file mode 100644 index 27ed42ae..00000000 --- a/tests/Omnipay/TargetPay/Mock/CompletePurchaseFailure.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Date: Mon, 23 Sep 2013 14:50:58 GMT -Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c -Content-Location: check.php -Vary: negotiate -TCN: choice -Content-Length: 32 -Content-Type: text/html; charset=ISO-8859-1 -X-Pad: avoid browser bug - -TP0013 Transaction was cancelled diff --git a/tests/Omnipay/TargetPay/Mock/CompletePurchaseSuccess.txt b/tests/Omnipay/TargetPay/Mock/CompletePurchaseSuccess.txt deleted file mode 100644 index 884f522f..00000000 --- a/tests/Omnipay/TargetPay/Mock/CompletePurchaseSuccess.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Date: Mon, 23 Sep 2013 14:50:39 GMT -Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c -Content-Location: check.php -Vary: negotiate -TCN: choice -Content-Length: 9 -Content-Type: text/html; charset=ISO-8859-1 -X-Pad: avoid browser bug - -000000 OK diff --git a/tests/Omnipay/TargetPay/Mock/FetchIssuersSuccess.txt b/tests/Omnipay/TargetPay/Mock/FetchIssuersSuccess.txt deleted file mode 100644 index debecd8a..00000000 --- a/tests/Omnipay/TargetPay/Mock/FetchIssuersSuccess.txt +++ /dev/null @@ -1,9 +0,0 @@ -TTP/1.1 200 OK -Date: Tue, 24 Sep 2013 12:38:19 GMT -Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c -X-Powered-By: PHP/5.2.0-8+etch16 -Transfer-Encoding: chunked -Content-Type: text/xml - - -Sample 1Sample 2 diff --git a/tests/Omnipay/TargetPay/Mock/PurchaseFailure.txt b/tests/Omnipay/TargetPay/Mock/PurchaseFailure.txt deleted file mode 100644 index f8ceae7b..00000000 --- a/tests/Omnipay/TargetPay/Mock/PurchaseFailure.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Date: Fri, 20 Sep 2013 09:35:34 GMT -Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c -Content-Location: start.php -Vary: negotiate -TCN: choice -Content-Length: 24 -Content-Type: text/html; charset=ISO-8859-1 -X-Pad: avoid browser bug - -TP0016 Account disabled. diff --git a/tests/Omnipay/TargetPay/Mock/PurchaseSuccess.txt b/tests/Omnipay/TargetPay/Mock/PurchaseSuccess.txt deleted file mode 100644 index 67cffaff..00000000 --- a/tests/Omnipay/TargetPay/Mock/PurchaseSuccess.txt +++ /dev/null @@ -1,11 +0,0 @@ -HTTP/1.1 200 OK -Date: Fri, 20 Sep 2013 12:57:22 GMT -Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c -Content-Location: start.php -Vary: negotiate -TCN: choice -Content-Length: 73 -Content-Type: text/html; charset=ISO-8859-1 -X-Pad: avoid browser bug - -000000 15983095|https://www.targetpay.com/mrcash/start.php?trxid=15983095 diff --git a/tests/Omnipay/TargetPay/MrcashGatewayTest.php b/tests/Omnipay/TargetPay/MrcashGatewayTest.php deleted file mode 100644 index c977da2a..00000000 --- a/tests/Omnipay/TargetPay/MrcashGatewayTest.php +++ /dev/null @@ -1,112 +0,0 @@ -gateway = new MrcashGateway($this->getHttpClient(), $this->getHttpRequest()); - $this->gateway->setSubAccountId('123456'); - } - - public function testFetchIssuers() - { - /** @var \Omnipay\TargetPay\Message\FetchIssuersRequest $request */ - /*$request = $this->gateway->fetchIssuers(); - - $this->assertInstanceOf('Omnipay\TargetPay\Message\FetchIssuersRequest', $request); - $this->assertNull($request->getData());*/ - } - - public function testPurchase() - { - /** @var \Omnipay\TargetPay\Message\MrcashPurchaseRequest $request */ - $request = $this->gateway->purchase(array( - 'amount' => '100.00', - 'description' => 'desc', - 'clientIp' => '127.0.0.1', - 'language' => 'EN', - 'returnUrl' => 'http://localhost/return', - 'notifyUrl' => 'http://localhost/notify', - )); - - $this->assertInstanceOf('Omnipay\TargetPay\Message\MrcashPurchaseRequest', $request); - $this->assertSame('100.00', $request->getAmount()); - $this->assertSame('desc', $request->getDescription()); - $this->assertSame('127.0.0.1', $request->getClientIp()); - $this->assertSame('EN', $request->getLanguage()); - $this->assertSame('http://localhost/return', $request->getReturnUrl()); - $this->assertSame('http://localhost/notify', $request->getNotifyUrl()); - } - - public function testPurchaseIdeal() - { - /** @var \Omnipay\TargetPay\Message\IdealPurchaseRequest $request */ - /*$request = $this->gateway->purchase(array( - 'issuer' => '0001', - 'amount' => '100.00', - 'currency' => 'EUR', - 'description' => 'desc', - 'language' => 'EN', - 'returnUrl' => 'http://localhost/return', - 'notifyUrl' => 'http://localhost/notify', - )); - - $this->assertInstanceOf('Omnipay\TargetPay\Message\IdealPurchaseRequest', $request); - $this->assertSame('0001', $request->getIssuer()); - $this->assertSame('100.00', $request->getAmount()); - $this->assertSame('EUR', $request->getCurrency()); - $this->assertSame('desc', $request->getDescription()); - $this->assertSame('EN', $request->getLanguage()); - $this->assertSame('http://localhost/return', $request->getReturnUrl()); - $this->assertSame('http://localhost/notify', $request->getNotifyUrl());*/ - } - - public function testPurchaseDirectebanking() - { - /** @var \Omnipay\TargetPay\Message\DirectebankingPurchaseRequest $request */ - /*$request = $this->gateway->purchase(array( - 'amount' => '100.00', - 'description' => 'desc', - 'clientIp' => '127.0.0.1', - 'country' => '00', - 'language' => 'EN', - 'serviceType' => '0', - 'returnUrl' => 'http://localhost/return', - 'notifyUrl' => 'http://localhost/notify', - )); - - $this->assertInstanceOf('Omnipay\TargetPay\Message\DirectebankingPurchaseRequest', $request); - $this->assertSame('100.00', $request->getAmount()); - $this->assertSame('desc', $request->getDescription()); - $this->assertSame('127.0.0.1', $request->getClientIp()); - $this->assertSame('00', $request->getCountry()); - $this->assertSame('EN', $request->getLanguage()); - $this->assertSame('0', $request->getServiceType()); - $this->assertSame('http://localhost/return', $request->getReturnUrl()); - $this->assertSame('http://localhost/notify', $request->getNotifyUrl());*/ - } - - public function testCompletePurchase() - { - /** @var \Omnipay\TargetPay\Message\CompletePurchaseRequest $request */ - $request = $this->gateway->completePurchase(array( - 'transactionId' => '123456', - 'exchangeOnce' => true, - )); - - $this->assertInstanceOf('Omnipay\TargetPay\Message\CompletePurchaseRequest', $request); - $this->assertSame('123456', $request->getTransactionId()); - $this->assertTrue($request->getExchangeOnce()); - } -} diff --git a/tests/Omnipay/TestCase.php b/tests/Omnipay/TestCase.php deleted file mode 100644 index 67738d1c..00000000 --- a/tests/Omnipay/TestCase.php +++ /dev/null @@ -1,160 +0,0 @@ -mockHttpRequests[] = $request; - - return $this; - } - - /** - * Get all of the mocked requests - * - * @return array - */ - public function getMockedRequests() - { - return $this->mockHttpRequests; - } - - /** - * Get a mock response for a client by mock file name - * - * @param string $path Relative path to the mock response file - * - * @return Response - */ - public function getMockHttpResponse($path) - { - if ($path instanceof Response) { - return $path; - } - - $ref = new ReflectionObject($this); - $dir = dirname($ref->getFileName()); - - // if mock file doesn't exist, check parent directory - if (!file_exists($dir.'/Mock/'.$path) && file_exists($dir.'/../Mock/'.$path)) { - return MockPlugin::getMockFile($dir.'/../Mock/'.$path); - } - - return MockPlugin::getMockFile($dir.'/Mock/'.$path); - } - - /** - * Set a mock response from a mock file on the next client request. - * - * This method assumes that mock response files are located under the - * Mock/ subdirectory of the current class. A mock response is added to the next - * request sent by the client. - * - * @param string $paths Path to files within the Mock folder of the service - * - * @return MockPlugin returns the created mock plugin - */ - public function setMockHttpResponse($paths) - { - $this->mockHttpRequests = array(); - $that = $this; - $mock = new MockPlugin(null, true); - $this->getHttpClient()->getEventDispatcher()->removeSubscriber($mock); - $mock->getEventDispatcher()->addListener('mock.request', function(Event $event) use ($that) { - $that->addMockedHttpRequest($event['request']); - }); - - foreach ((array) $paths as $path) { - $mock->addResponse($this->getMockHttpResponse($path)); - } - - $this->getHttpClient()->getEventDispatcher()->addSubscriber($mock); - - return $mock; - } - - /** - * Helper method used by gateway test classes to generate a valid test credit card - */ - public function getValidCard() - { - return array( - 'firstName' => 'Example', - 'lastName' => 'User', - 'number' => '4111111111111111', - 'expiryMonth' => rand(1, 12), - 'expiryYear' => date('Y') + rand(1, 5), - 'cvv' => rand(100, 999), - 'billingAddress1' => '123 Billing St', - 'billingAddress2' => 'Billsville', - 'billingCity' => 'Billstown', - 'billingPostcode' => '12345', - 'billingState' => 'CA', - 'billingCountry' => 'US', - 'billingPhone' => '(555) 123-4567', - 'shippingAddress1' => '123 Shipping St', - 'shippingAddress2' => 'Shipsville', - 'shippingCity' => 'Shipstown', - 'shippingPostcode' => '54321', - 'shippingState' => 'NY', - 'shippingCountry' => 'US', - 'shippingPhone' => '(555) 987-6543', - ); - } - - public function getMockRequest() - { - if (null === $this->mockRequest) { - $this->mockRequest = m::mock('\Omnipay\Common\Message\RequestInterface'); - } - - return $this->mockRequest; - } - - public function getHttpClient() - { - if (null === $this->httpClient) { - $this->httpClient = new HttpClient; - } - - return $this->httpClient; - } - - public function getHttpRequest() - { - if (null === $this->httpRequest) { - $this->httpRequest = new HttpRequest; - } - - return $this->httpRequest; - } -} diff --git a/tests/Omnipay/TwoCheckout/GatewayTest.php b/tests/Omnipay/TwoCheckout/GatewayTest.php deleted file mode 100644 index eb938f48..00000000 --- a/tests/Omnipay/TwoCheckout/GatewayTest.php +++ /dev/null @@ -1,64 +0,0 @@ -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 testPurchase() - { - $source = new CreditCard; - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertContains('https://www.2checkout.com/checkout/purchase?', $response->getRedirectUrl()); - $this->assertSame('GET', $response->getRedirectMethod()); - $this->assertNull($response->getRedirectData()); - } - - /** - * @expectedException Omnipay\Common\Exception\InvalidResponseException - */ - public function testCompletePurchaseError() - { - $this->getHttpRequest()->request->replace(array('order_number' => '5', 'key' => 'ZZZ')); - - $response = $this->gateway->completePurchase($this->options)->send(); - } - - public function testCompletePurchaseSuccess() - { - $this->getHttpRequest()->request->replace( - array( - 'order_number' => '5', - 'key' => md5('secret123456510.00'), - ) - ); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('5', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } -} diff --git a/tests/Omnipay/TwoCheckout/Message/CompletePurchaseResponseTest.php b/tests/Omnipay/TwoCheckout/Message/CompletePurchaseResponseTest.php deleted file mode 100644 index 4a89f9c0..00000000 --- a/tests/Omnipay/TwoCheckout/Message/CompletePurchaseResponseTest.php +++ /dev/null @@ -1,18 +0,0 @@ -getMockRequest(), array('order_number' => 'abc123')); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('abc123', $response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } -} diff --git a/tests/Omnipay/TwoCheckout/Message/PurchaseResponseTest.php b/tests/Omnipay/TwoCheckout/Message/PurchaseResponseTest.php deleted file mode 100644 index b553a867..00000000 --- a/tests/Omnipay/TwoCheckout/Message/PurchaseResponseTest.php +++ /dev/null @@ -1,21 +0,0 @@ -getMockRequest(), array('sid' => '12345', 'total' => '10.00')); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame('https://www.2checkout.com/checkout/purchase?sid=12345&total=10.00', $response->getRedirectUrl()); - $this->assertSame('GET', $response->getRedirectMethod()); - $this->assertNull($response->getRedirectData()); - } -} diff --git a/tests/Omnipay/WorldPay/GatewayTest.php b/tests/Omnipay/WorldPay/GatewayTest.php deleted file mode 100644 index 087b6561..00000000 --- a/tests/Omnipay/WorldPay/GatewayTest.php +++ /dev/null @@ -1,82 +0,0 @@ -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 testPurchase() - { - $response = $this->gateway->purchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertContains('https://secure.worldpay.com/wcc/purchase?', $response->getRedirectUrl()); - } - - public function testCompletePurchaseSuccess() - { - $this->getHttpRequest()->request->replace( - array( - 'callbackPW' => 'bar123', - 'transStatus' => 'Y', - 'transId' => 'abc123', - 'rawAuthMessage' => 'hello', - ) - ); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertEquals('abc123', $response->getTransactionReference()); - $this->assertSame('hello', $response->getMessage()); - } - - /** - * @expectedException \Omnipay\Common\Exception\InvalidResponseException - */ - public function testCompletePurchaseInvalidCallbackPassword() - { - $this->getHttpRequest()->request->replace( - array( - 'callbackPW' => 'fake', - ) - ); - - $response = $this->gateway->completePurchase($this->options)->send(); - } - - public function testCompletePurchaseError() - { - $this->getHttpRequest()->request->replace( - array( - 'callbackPW' => 'bar123', - 'transStatus' => 'N', - 'rawAuthMessage' => 'Declined', - ) - ); - - $response = $this->gateway->completePurchase($this->options)->send(); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Declined', $response->getMessage()); - } -} diff --git a/tests/Omnipay/WorldPay/Message/CompletePurchaseResponseTest.php b/tests/Omnipay/WorldPay/Message/CompletePurchaseResponseTest.php deleted file mode 100644 index 4231e2d9..00000000 --- a/tests/Omnipay/WorldPay/Message/CompletePurchaseResponseTest.php +++ /dev/null @@ -1,52 +0,0 @@ -getMockRequest(), - array( - 'transStatus' => 'Y', - 'transId' => 'abc123', - 'rawAuthMessage' => 'Success Message' - ) - ); - - $this->assertTrue($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertSame('abc123', $response->getTransactionReference()); - $this->assertSame('Success Message', $response->getMessage()); - } - - public function testCompletePurchaseFailure() - { - $response = new CompletePurchaseresponse( - $this->getMockRequest(), - array( - 'transStatus' => 'N', - 'transId' => null, - 'rawAuthMessage' => 'Declined' - ) - ); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertSame('Declined', $response->getMessage()); - } - - public function testCompletePurchaseInvalid() - { - $response = new CompletePurchaseresponse($this->getMockRequest(), array()); - - $this->assertFalse($response->isSuccessful()); - $this->assertFalse($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - } -} diff --git a/tests/Omnipay/WorldPay/Message/PurchaseResponseTest.php b/tests/Omnipay/WorldPay/Message/PurchaseResponseTest.php deleted file mode 100644 index c3efbda6..00000000 --- a/tests/Omnipay/WorldPay/Message/PurchaseResponseTest.php +++ /dev/null @@ -1,26 +0,0 @@ -getMockRequest(), array( - 'amount' => 1000, - 'returnUrl' => 'https://www.example.com/return', - )); - - $this->getMockRequest()->shouldReceive('getEndpoint')->once()->andReturn('https://secure.worldpay.com/wcc/purchase'); - - $this->assertFalse($response->isSuccessful()); - $this->assertTrue($response->isRedirect()); - $this->assertNull($response->getTransactionReference()); - $this->assertNull($response->getMessage()); - $this->assertSame('https://secure.worldpay.com/wcc/purchase?amount=1000&returnUrl=https%3A%2F%2Fwww.example.com%2Freturn', $response->getRedirectUrl()); - $this->assertSame('GET', $response->getRedirectMethod()); - $this->assertNull($response->getRedirectData()); - } -} diff --git a/tests/bootstrap.php b/tests/bootstrap.php deleted file mode 100644 index 370e9c78..00000000 --- a/tests/bootstrap.php +++ /dev/null @@ -1,9 +0,0 @@ -add('Omnipay', __DIR__); From a91e7ffe1e3796ad860cbbafe77c4d1d30eadbd8 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 17 Nov 2013 16:09:18 +1100 Subject: [PATCH 041/333] Update readme for 2.0 --- README.md | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 22996151..b1632270 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **An easy to use, consistent payment processing library for PHP 5.3+** -[![Build Status](https://travis-ci.org/omnipay/omnipay.png?branch=master)](https://travis-ci.org/omnipay/omnipay) +[![Build Status](https://travis-ci.org/omnipay/common.png?branch=master)](https://travis-ci.org/omnipay/common) [![Latest Stable Version](https://poser.pugx.org/omnipay/omnipay/version.png)](https://packagist.org/packages/omnipay/omnipay) [![Total Downloads](https://poser.pugx.org/omnipay/omnipay/d/total.png)](https://packagist.org/packages/omnipay/omnipay) @@ -19,19 +19,22 @@ is fully unit tested, and even comes with an example application to get you star * Because most payment gateways have exceptionally poor documentation * Because you are writing a shopping cart and need to support multiple gateways -**Important Note: Upgrading from <1.0** +**Important Note: Upgrading from <2.0** -If you are upgrading from a pre-1.0 version of Omnipay, please note that the currency format has changed. -See the [changelog](https://github.com/omnipay/omnipay/blob/master/CHANGELOG.md) for more details. +If you are upgrading from a pre-2.0 version of Omnipay, please note that the +project has now been split into multiple packages. There have also been some +changes to how gateway instances are created. See the +[full release notes](https://github.com/omnipay/omnipay/releases/tag/v2.0.0) +for more details. ## TL;DR Just want to see some code? ```php -use Omnipay\Common\GatewayFactory; +use Omnipay\Omnipay; -$gateway = GatewayFactory::create('Stripe'); +$gateway = Omnipay::create('Stripe'); $gateway->setApiKey('abc123'); $formData = ['number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123']; @@ -121,9 +124,9 @@ The following gateways are already implemented: Gateways are created and initialized like so: ```php -use Omnipay\Common\GatewayFactory; +use Omnipay\Omnipay; -$gateway = GatewayFactory::create('PayPal_Express'); +$gateway = Omnipay::create('PayPal_Express'); $gateway->setUsername('adrian'); $gateway->setPassword('12345'); ``` @@ -396,24 +399,11 @@ If you want to keep up to date with release anouncements, discuss ideas for the or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to. -If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/omnipay/omnipay/issues), -or better yet, fork the library and submit a pull request. - -## Contributing - -* Fork the project. -* Make your feature addition or bug fix. -* Add tests for it. This is important so I don't break it in a future version unintentionally. -* Commit just the modifications, do not mess with the composer.json or CHANGELOG.md files. -* Ensure your code is nicely formatted in the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) - style and that all tests pass. -* Send the pull request. -* Check that the [travis build](https://travis-ci.org/omnipay/omnipay) passed. If not, rinse and repeat. +If you believe you have found a bug, please report it using the GitHub issue tracker +for the appropriate package, or better yet, fork the library and submit a pull request. ## Feedback **Please provide feedback!** We want to make this library useful in as many projects as possible. Please head on over to the [mailing list](https://groups.google.com/forum/#!forum/omnipay) and point out what you do and don't like, or fork the project and make suggestions. **No issue is too small.** - -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/adrianmacneil/omnipay/trend.png)](https://bitdeli.com/free "Bitdeli Badge") From 05806277cd4b110aa923430b813122ce137cedd1 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 17 Nov 2013 16:26:32 +1100 Subject: [PATCH 042/333] Update README.md --- README.md | 95 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 55 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index b1632270..dfb34448 100644 --- a/README.md +++ b/README.md @@ -57,29 +57,49 @@ as possible the differences between the various payments gateways. ## Package Layout -Omnipay is a single package which provides abstract base classes and implementations for all -officially supported gateways. There are no dependencies on official payment gateway PHP packages - +Omnipay is a collection of packages which all depend on the +[omnipay/common](https://github.com/omnipay/common) package to provide +a consistent interface. There are no dependencies on official payment gateway PHP packages - we prefer to work with the HTTP API directly. Under the hood, we use the popular and powerful [Guzzle](http://guzzlephp.org/) library to make HTTP requests. -New gateways can either be added by forking this package and submitting a pull request -(unit tests and tidy code required), or by distributing a separate library which depends on this -package and makes use of our base classes and consistent developer API. +New gateways can be created by cloning the layout of an existing package. When choosing a +name for your package, please don't use the `omnipay` vendor prefix, as this implies that +it is officially supported. You should use your own username as the vendor prefix, and append +`-omnipay` to the package name to make it clear that your package works with Omnipay. +For example, if your GitHub username was `santa`, and you were implementing the `giftpay` +payment library, a good name for your composer package would be `santa/giftpay-omnipay`. + +If you want to transfer your gateway to the `omnipay` GitHub organization and add it +to the list of officially supported gateways, please open a pull request on the +[omnipay/common](https://github.com/omnipay/common) package. Before new gateways will +be accepted, they must have 100% unit test code coverage, and follow the conventions +and code style used in other Omnipay gateways. ## Installation -Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it -to your `composer.json` file: +Omnipay is installed via [Composer](http://getcomposer.org/). To install all officially +supported gateways, simply add the following to your `composer.json` file: + +```json +{ + "require": { + "omnipay/omnipay": "~2.0" + } +} +``` + +Alternatively, you can require individual gateways: ```json { "require": { - "omnipay/omnipay": "1.*" + "omnipay/paypal": "~2.0" } } ``` -And run composer to update your dependencies: +Next, run composer to update your dependencies: $ curl -s http://getcomposer.org/installer | php $ php composer.phar update @@ -89,37 +109,32 @@ And run composer to update your dependencies: All payment gateways must implement [GatewayInterface](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually extend [AbstractGateway](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality. -The following gateways are already implemented: - -* 2Checkout -* Authorize.Net AIM -* Authorize.Net SIM -* Buckaroo -* CardSave -* Dummy -* eWAY Rapid 3.0 -* First Data Connect -* GoCardless -* Manual -* Migs 2-Party -* Migs 3-Party -* Mollie -* MultiSafepay -* Netaxept (BBS) -* Netbanx -* PayFast -* Payflow Pro -* PaymentExpress (DPS) PxPay -* PaymentExpress (DPS) PxPost -* PayPal Express Checkout -* PayPal Payments Pro -* Pin Payments -* Sage Pay Direct -* Sage Pay Server -* SecurePay Direct Post -* Stripe -* TargetPay -* WorldPay +The following gateways are available and officially supported: + +* [2Checkout](https://github.com/omnipay/2checkout) +* [Authorize.Net](https://github.com/omnipay/authorizenet) +* [Buckaroo](https://github.com/omnipay/buckaroo) +* [CardSave](https://github.com/omnipay/cardsave) +* [Dummy](https://github.com/omnipay/dummy) +* [eWAY](https://github.com/omnipay/eway) +* [First Data](https://github.com/omnipay/firstdata) +* [GoCardless](https://github.com/omnipay/gocardless) +* [Manual](https://github.com/omnipay/manual) +* [Migs](https://github.com/omnipay/migs) +* [Mollie](https://github.com/omnipay/mollie) +* [MultiSafepay](https://github.com/omnipay/multisafepay) +* [Netaxept (BBS)](https://github.com/omnipay/netaxept) +* [Netbanx](https://github.com/omnipay/netbanx) +* [PayFast](https://github.com/omnipay/payfast) +* [Payflow](https://github.com/omnipay/payflow) +* [PaymentExpress (DPS)](https://github.com/omnipay/paymentexpress) +* [PayPal](https://github.com/omnipay/paypal) +* [Pin Payments](https://github.com/omnipay/pin) +* [Sage Pay](https://github.com/omnipay/sagepay) +* [SecurePay](https://github.com/omnipay/securepay) +* [Stripe](https://github.com/omnipay/stripe) +* [TargetPay](https://github.com/omnipay/targetpay) +* [WorldPay](https://github.com/omnipay/worldpay) Gateways are created and initialized like so: From 71b7f42cf11b1698e14933a8d4321f405e991920 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 17 Nov 2013 16:33:16 +1100 Subject: [PATCH 043/333] Add contributing guidelines --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..d67ed30d --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,10 @@ +# Contributing Guidelines + +* Fork the project. +* Make your feature addition or bug fix. +* Add tests for it. This is important so I don't break it in a future version unintentionally. +* Commit just the modifications, do not mess with the composer.json or CHANGELOG.md files. +* Ensure your code is nicely formatted in the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) + style and that all tests pass. +* Send the pull request. +* Check that the Travis CI build passed. If not, rinse and repeat. From 236eacb3b598b1c843940e9adecf7da599f6bce2 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 17 Nov 2013 16:42:55 +1100 Subject: [PATCH 044/333] Update links --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index dfb34448..435677f6 100644 --- a/README.md +++ b/README.md @@ -106,8 +106,8 @@ Next, run composer to update your dependencies: ## Payment Gateways -All payment gateways must implement [GatewayInterface](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually -extend [AbstractGateway](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality. +All payment gateways must implement [GatewayInterface](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually +extend [AbstractGateway](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality. The following gateways are available and officially supported: @@ -170,7 +170,7 @@ gateway (other than by the methods they support). ## Credit Card / Payment Form Input -User form input is directed to an [CreditCard](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/CreditCard.php) +User form input is directed to an [CreditCard](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/CreditCard.php) object. This provides a safe way to accept user input. The `CreditCard` object has the following fields: @@ -228,7 +228,7 @@ $card->setFirstName('Adrian'); ``` If you submit credit card details which are obviously invalid (missing required fields, or a number -which fails the Luhn check), [InvalidCreditCardException](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/Exception/InvalidCreditCardException.php) +which fails the Luhn check), [InvalidCreditCardException](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/Exception/InvalidCreditCardException.php) will be thrown. You should validate the card details using your framework's validation library before submitting the details to your gateway, to avoid unnecessary API calls. @@ -295,7 +295,7 @@ To summarize the various parameters you have available to you: ## The Payment Response -The payment response must implement [ResponseInterface](https://github.com/omnipay/omnipay/blob/master/src/Omnipay/Common/ResponseInterface.php). There are two main types of response: +The payment response must implement [ResponseInterface](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/Message/ResponseInterface.php). There are two main types of response: * Payment was successful (standard response) * Website requires redirect to off-site payment form (redirect response) @@ -396,13 +396,13 @@ you really think this should be a core feature and worth the effort. ## Example Application -An example application is provided in the `example` directory. You can run it using PHP's built in -web server (PHP 5.4+): +An example application is provided in the [omnipay/example](https://github.com/omnipay/example) repo. +You can run it using PHP's built in web server (PHP 5.4+): $ php composer.phar update --dev - $ php -S localhost:8000 -t example/ + $ php -S localhost:8000 -For more information, see the [example application directory](https://github.com/omnipay/omnipay/tree/master/example). +For more information, see the [Omnipay example application](https://github.com/omnipay/example). ## Support From 523586e1998c6a06a40198b228e6ecd97b2d596f Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 17 Nov 2013 16:47:22 +1100 Subject: [PATCH 045/333] Test that package installs successfully --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ca0329fa..c527189d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,5 @@ before_script: - composer --version - composer require symfony/http-foundation:${SYMFONY_VERSION} --no-update - composer require guzzle/http:${GUZZLE_VERSION} --no-update - - composer install -n --dev --prefer-source -script: vendor/bin/phpcs --standard=PSR2 src && vendor/bin/phpunit --coverage-text +script: composer install -n --dev --prefer-source From bbc3b0349ded033608f5467e5c4aa3959dc2b6a9 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 8 Dec 2013 20:16:13 +1100 Subject: [PATCH 046/333] Update omnipay/common to v2.1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index df783314..385b2e93 100644 --- a/composer.json +++ b/composer.json @@ -61,7 +61,7 @@ "omnipay/authorizenet": "~2.0", "omnipay/buckaroo": "~2.0", "omnipay/cardsave": "~2.0", - "omnipay/common": "~2.0.0", + "omnipay/common": "~2.1.0", "omnipay/dummy": "~2.0", "omnipay/eway": "~2.0", "omnipay/firstdata": "~2.0", From 1cb7605b2cb91640997d4dbd0cde388cef102198 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Fri, 10 Jan 2014 07:48:12 +1100 Subject: [PATCH 047/333] Add known gateways table --- README.md | 62 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 435677f6..fcd571df 100644 --- a/README.md +++ b/README.md @@ -65,10 +65,10 @@ we prefer to work with the HTTP API directly. Under the hood, we use the popular New gateways can be created by cloning the layout of an existing package. When choosing a name for your package, please don't use the `omnipay` vendor prefix, as this implies that -it is officially supported. You should use your own username as the vendor prefix, and append -`-omnipay` to the package name to make it clear that your package works with Omnipay. +it is officially supported. You should use your own username as the vendor prefix, and prepend +`omnipay-` to the package name to make it clear that your package works with Omnipay. For example, if your GitHub username was `santa`, and you were implementing the `giftpay` -payment library, a good name for your composer package would be `santa/giftpay-omnipay`. +payment library, a good name for your composer package would be `santa/omnipay-giftpay`. If you want to transfer your gateway to the `omnipay` GitHub organization and add it to the list of officially supported gateways, please open a pull request on the @@ -109,32 +109,36 @@ Next, run composer to update your dependencies: All payment gateways must implement [GatewayInterface](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually extend [AbstractGateway](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality. -The following gateways are available and officially supported: - -* [2Checkout](https://github.com/omnipay/2checkout) -* [Authorize.Net](https://github.com/omnipay/authorizenet) -* [Buckaroo](https://github.com/omnipay/buckaroo) -* [CardSave](https://github.com/omnipay/cardsave) -* [Dummy](https://github.com/omnipay/dummy) -* [eWAY](https://github.com/omnipay/eway) -* [First Data](https://github.com/omnipay/firstdata) -* [GoCardless](https://github.com/omnipay/gocardless) -* [Manual](https://github.com/omnipay/manual) -* [Migs](https://github.com/omnipay/migs) -* [Mollie](https://github.com/omnipay/mollie) -* [MultiSafepay](https://github.com/omnipay/multisafepay) -* [Netaxept (BBS)](https://github.com/omnipay/netaxept) -* [Netbanx](https://github.com/omnipay/netbanx) -* [PayFast](https://github.com/omnipay/payfast) -* [Payflow](https://github.com/omnipay/payflow) -* [PaymentExpress (DPS)](https://github.com/omnipay/paymentexpress) -* [PayPal](https://github.com/omnipay/paypal) -* [Pin Payments](https://github.com/omnipay/pin) -* [Sage Pay](https://github.com/omnipay/sagepay) -* [SecurePay](https://github.com/omnipay/securepay) -* [Stripe](https://github.com/omnipay/stripe) -* [TargetPay](https://github.com/omnipay/targetpay) -* [WorldPay](https://github.com/omnipay/worldpay) +The following gateways are available: + +Gateway | Composer Package | Maintainer +--- | --- | --- +[2Checkout](https://github.com/omnipay/2checkout) | omnipay/twocheckout | [Adrian Macneil](https://github.com/adrianmacneil) +[Authorize.Net](https://github.com/omnipay/authorizenet) | omnipay/authorizenet | [Adrian Macneil](https://github.com/adrianmacneil) +[Buckaroo](https://github.com/omnipay/buckaroo) | omnipay/buckaroo | [Adrian Macneil](https://github.com/adrianmacneil) +[CardSave](https://github.com/omnipay/cardsave) | omnipay/cardsave | [Adrian Macneil](https://github.com/adrianmacneil) +[Dummy](https://github.com/omnipay/dummy) | omnipay/dummy | [Adrian Macneil](https://github.com/adrianmacneil) +[eWAY](https://github.com/omnipay/eway) | omnipay/eway | [Adrian Macneil](https://github.com/adrianmacneil) +[First Data](https://github.com/omnipay/firstdata) | omnipay/firstdata | [Adrian Macneil](https://github.com/adrianmacneil) +[GoCardless](https://github.com/omnipay/gocardless) | omnipay/gocardless | [Adrian Macneil](https://github.com/adrianmacneil) +[Manual](https://github.com/omnipay/manual) | omnipay/manual | [Adrian Macneil](https://github.com/adrianmacneil) +[Migs](https://github.com/omnipay/migs) | omnipay/migs | [Adrian Macneil](https://github.com/adrianmacneil) +[Mollie](https://github.com/omnipay/mollie) | omnipay/mollie | [Adrian Macneil](https://github.com/adrianmacneil) +[MultiSafepay](https://github.com/omnipay/multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) +[Netaxept (BBS)](https://github.com/omnipay/netaxept) | omnipay/netaxept | [Adrian Macneil](https://github.com/adrianmacneil) +[Netbanx](https://github.com/omnipay/netbanx) | omnipay/netbanx | [Adrian Macneil](https://github.com/adrianmacneil) +[Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) +[PayFast](https://github.com/omnipay/payfast) | omnipay/payfast | [Adrian Macneil](https://github.com/adrianmacneil) +[Payflow](https://github.com/omnipay/payflow) | omnipay/payflow | [Adrian Macneil](https://github.com/adrianmacneil) +[PaymentExpress (DPS)](https://github.com/omnipay/paymentexpress) | omnipay/paymentexpress | [Adrian Macneil](https://github.com/adrianmacneil) +[PayPal](https://github.com/omnipay/paypal) | omnipay/paypal | [Adrian Macneil](https://github.com/adrianmacneil) +[Pin Payments](https://github.com/omnipay/pin) | omnipay/pin | [Adrian Macneil](https://github.com/adrianmacneil) +[Sage Pay](https://github.com/omnipay/sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) +[SecurePay](https://github.com/omnipay/securepay) | omnipay/securepay | [Adrian Macneil](https://github.com/adrianmacneil) +[Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) +[Stripe](https://github.com/omnipay/stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) +[TargetPay](https://github.com/omnipay/targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) +[WorldPay](https://github.com/omnipay/worldpay) | omnipay/worldpay | [Adrian Macneil](https://github.com/adrianmacneil) Gateways are created and initialized like so: From 459cf6ffbb6302565f8d3d55ac80b93cd1d20a9a Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 12 Jan 2014 11:14:54 +1100 Subject: [PATCH 048/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fcd571df..3dc00291 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ Gateway | Composer Package | Maintainer [CardSave](https://github.com/omnipay/cardsave) | omnipay/cardsave | [Adrian Macneil](https://github.com/adrianmacneil) [Dummy](https://github.com/omnipay/dummy) | omnipay/dummy | [Adrian Macneil](https://github.com/adrianmacneil) [eWAY](https://github.com/omnipay/eway) | omnipay/eway | [Adrian Macneil](https://github.com/adrianmacneil) -[First Data](https://github.com/omnipay/firstdata) | omnipay/firstdata | [Adrian Macneil](https://github.com/adrianmacneil) +[First Data](https://github.com/omnipay/firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) [GoCardless](https://github.com/omnipay/gocardless) | omnipay/gocardless | [Adrian Macneil](https://github.com/adrianmacneil) [Manual](https://github.com/omnipay/manual) | omnipay/manual | [Adrian Macneil](https://github.com/adrianmacneil) [Migs](https://github.com/omnipay/migs) | omnipay/migs | [Adrian Macneil](https://github.com/adrianmacneil) From 2a70bfdf23e40f2247cb95c253ea1dcfb141417e Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 12 Jan 2014 12:32:29 +1100 Subject: [PATCH 049/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3dc00291..bb2975e3 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ Gateway | Composer Package | Maintainer [Mollie](https://github.com/omnipay/mollie) | omnipay/mollie | [Adrian Macneil](https://github.com/adrianmacneil) [MultiSafepay](https://github.com/omnipay/multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [Netaxept (BBS)](https://github.com/omnipay/netaxept) | omnipay/netaxept | [Adrian Macneil](https://github.com/adrianmacneil) -[Netbanx](https://github.com/omnipay/netbanx) | omnipay/netbanx | [Adrian Macneil](https://github.com/adrianmacneil) +[Netbanx](https://github.com/omnipay/netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/mrafalko) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [PayFast](https://github.com/omnipay/payfast) | omnipay/payfast | [Adrian Macneil](https://github.com/adrianmacneil) [Payflow](https://github.com/omnipay/payflow) | omnipay/payflow | [Adrian Macneil](https://github.com/adrianmacneil) From 509e0addca1077024abd7b56cae788b37a991ef2 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Wed, 29 Jan 2014 07:24:45 +1100 Subject: [PATCH 050/333] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bb2975e3..11bcb194 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,7 @@ Gateway | Composer Package | Maintainer [Pin Payments](https://github.com/omnipay/pin) | omnipay/pin | [Adrian Macneil](https://github.com/adrianmacneil) [Sage Pay](https://github.com/omnipay/sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) [SecurePay](https://github.com/omnipay/securepay) | omnipay/securepay | [Adrian Macneil](https://github.com/adrianmacneil) +[Sisow](https://github.com/nettob/omnipay-sisow) | nettob/omnipay-sisow | [Nico Borghuis](https://github.com/nettob) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Stripe](https://github.com/omnipay/stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) [TargetPay](https://github.com/omnipay/targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) From 3d3e1e931e34fac890886696a81ad77b736dc848 Mon Sep 17 00:00:00 2001 From: Andrew Coates Date: Thu, 30 Jan 2014 14:31:30 +0000 Subject: [PATCH 051/333] Added DataCash driver link Added link to DataCash API driver --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 11bcb194..a0d2f0ec 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ Gateway | Composer Package | Maintainer [Authorize.Net](https://github.com/omnipay/authorizenet) | omnipay/authorizenet | [Adrian Macneil](https://github.com/adrianmacneil) [Buckaroo](https://github.com/omnipay/buckaroo) | omnipay/buckaroo | [Adrian Macneil](https://github.com/adrianmacneil) [CardSave](https://github.com/omnipay/cardsave) | omnipay/cardsave | [Adrian Macneil](https://github.com/adrianmacneil) +[DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) [Dummy](https://github.com/omnipay/dummy) | omnipay/dummy | [Adrian Macneil](https://github.com/adrianmacneil) [eWAY](https://github.com/omnipay/eway) | omnipay/eway | [Adrian Macneil](https://github.com/adrianmacneil) [First Data](https://github.com/omnipay/firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) From 18c5670eb5890482a02f8adb2651050bbee404f1 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Mon, 17 Feb 2014 14:37:39 +1100 Subject: [PATCH 052/333] Add Neteller gateway. Closes #177 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a0d2f0ec..fb08e618 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,7 @@ Gateway | Composer Package | Maintainer [MultiSafepay](https://github.com/omnipay/multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [Netaxept (BBS)](https://github.com/omnipay/netaxept) | omnipay/netaxept | [Adrian Macneil](https://github.com/adrianmacneil) [Netbanx](https://github.com/omnipay/netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/mrafalko) +[Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [PayFast](https://github.com/omnipay/payfast) | omnipay/payfast | [Adrian Macneil](https://github.com/adrianmacneil) [Payflow](https://github.com/omnipay/payflow) | omnipay/payflow | [Adrian Macneil](https://github.com/adrianmacneil) From 00cd6163a45fdcabc1a2992a56cc37bf602c3988 Mon Sep 17 00:00:00 2001 From: Andrew Coates Date: Wed, 19 Mar 2014 09:45:49 +0000 Subject: [PATCH 053/333] Added PaymentSense gateway driver --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fb08e618..b9bade41 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,7 @@ Gateway | Composer Package | Maintainer [PayFast](https://github.com/omnipay/payfast) | omnipay/payfast | [Adrian Macneil](https://github.com/adrianmacneil) [Payflow](https://github.com/omnipay/payflow) | omnipay/payflow | [Adrian Macneil](https://github.com/adrianmacneil) [PaymentExpress (DPS)](https://github.com/omnipay/paymentexpress) | omnipay/paymentexpress | [Adrian Macneil](https://github.com/adrianmacneil) +[PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) [PayPal](https://github.com/omnipay/paypal) | omnipay/paypal | [Adrian Macneil](https://github.com/adrianmacneil) [Pin Payments](https://github.com/omnipay/pin) | omnipay/pin | [Adrian Macneil](https://github.com/adrianmacneil) [Sage Pay](https://github.com/omnipay/sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) From ee21e0a2942973fcde84966b8c94d4c86c9e8551 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Thu, 27 Mar 2014 22:52:28 +0700 Subject: [PATCH 054/333] Add Alipay gateway. Closes #172 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fb08e618..18b5349f 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ The following gateways are available: Gateway | Composer Package | Maintainer --- | --- | --- [2Checkout](https://github.com/omnipay/2checkout) | omnipay/twocheckout | [Adrian Macneil](https://github.com/adrianmacneil) +[Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Authorize.Net](https://github.com/omnipay/authorizenet) | omnipay/authorizenet | [Adrian Macneil](https://github.com/adrianmacneil) [Buckaroo](https://github.com/omnipay/buckaroo) | omnipay/buckaroo | [Adrian Macneil](https://github.com/adrianmacneil) [CardSave](https://github.com/omnipay/cardsave) | omnipay/cardsave | [Adrian Macneil](https://github.com/adrianmacneil) From cc40c395b73234062b6728045ce944d5147c4694 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Thu, 27 Mar 2014 23:00:11 +0700 Subject: [PATCH 055/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 18b5349f..8bedaef9 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ Gateway | Composer Package | Maintainer [Pin Payments](https://github.com/omnipay/pin) | omnipay/pin | [Adrian Macneil](https://github.com/adrianmacneil) [Sage Pay](https://github.com/omnipay/sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) [SecurePay](https://github.com/omnipay/securepay) | omnipay/securepay | [Adrian Macneil](https://github.com/adrianmacneil) -[Sisow](https://github.com/nettob/omnipay-sisow) | nettob/omnipay-sisow | [Nico Borghuis](https://github.com/nettob) +[Sisow](https://github.com/nettob/omnipay-sisow) | nettob/omnipay-sisow | [Niek](https://github.com/nettob) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Stripe](https://github.com/omnipay/stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) [TargetPay](https://github.com/omnipay/targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) From 4ca9bfe15993a9b4a3d52443c8c41277115b1f50 Mon Sep 17 00:00:00 2001 From: Justin Busschau Date: Mon, 7 Apr 2014 09:29:27 +0100 Subject: [PATCH 056/333] Adding the SecPay payment gateway SecPay is the payment gateway by PayPoint.net. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0f36977a..40cc0579 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ Gateway | Composer Package | Maintainer [Pin Payments](https://github.com/omnipay/pin) | omnipay/pin | [Adrian Macneil](https://github.com/adrianmacneil) [Sage Pay](https://github.com/omnipay/sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) [SecurePay](https://github.com/omnipay/securepay) | omnipay/securepay | [Adrian Macneil](https://github.com/adrianmacneil) +[SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [Sisow](https://github.com/nettob/omnipay-sisow) | nettob/omnipay-sisow | [Niek](https://github.com/nettob) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Stripe](https://github.com/omnipay/stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) From d0bb5be09fad4b196309e21dd6a6c292a9b2d8ad Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 11 May 2014 17:55:13 -0700 Subject: [PATCH 057/333] Add Coinbase --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 40cc0579..d3e2163f 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,7 @@ Gateway | Composer Package | Maintainer [Authorize.Net](https://github.com/omnipay/authorizenet) | omnipay/authorizenet | [Adrian Macneil](https://github.com/adrianmacneil) [Buckaroo](https://github.com/omnipay/buckaroo) | omnipay/buckaroo | [Adrian Macneil](https://github.com/adrianmacneil) [CardSave](https://github.com/omnipay/cardsave) | omnipay/cardsave | [Adrian Macneil](https://github.com/adrianmacneil) +[Coinbase](https://github.com/omnipay/coinbase) | omnipay/coinbase | [Adrian Macneil](https://github.com/adrianmacneil) [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) [Dummy](https://github.com/omnipay/dummy) | omnipay/dummy | [Adrian Macneil](https://github.com/adrianmacneil) [eWAY](https://github.com/omnipay/eway) | omnipay/eway | [Adrian Macneil](https://github.com/adrianmacneil) From 3aa25a5ba7e0691286e7bb83558f2ab57c204579 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 11 May 2014 17:56:23 -0700 Subject: [PATCH 058/333] Add Coinbase --- composer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composer.json b/composer.json index 385b2e93..7f75acc9 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,7 @@ "authorize.net", "buckaroo", "cardsave", + "coinbase", "commweb", "dps", "egate", @@ -61,6 +62,7 @@ "omnipay/authorizenet": "~2.0", "omnipay/buckaroo": "~2.0", "omnipay/cardsave": "~2.0", + "omnipay/coinbase": "~2.0", "omnipay/common": "~2.1.0", "omnipay/dummy": "~2.0", "omnipay/eway": "~2.0", From 7aadce55949d198fb6a273b99c6948e714e74251 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 11 May 2014 18:11:38 -0700 Subject: [PATCH 059/333] Bump omnipay/common requirement --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7f75acc9..afd53e62 100644 --- a/composer.json +++ b/composer.json @@ -63,7 +63,7 @@ "omnipay/buckaroo": "~2.0", "omnipay/cardsave": "~2.0", "omnipay/coinbase": "~2.0", - "omnipay/common": "~2.1.0", + "omnipay/common": "~2.3.0", "omnipay/dummy": "~2.0", "omnipay/eway": "~2.0", "omnipay/firstdata": "~2.0", From d38876d0c3a8385c5bd1919fea02fd4384bfaa71 Mon Sep 17 00:00:00 2001 From: Maks Rafalko Date: Tue, 19 Aug 2014 11:19:34 +0300 Subject: [PATCH 060/333] Updated link to the profile ... because username was changed --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d3e2163f..23ae33d4 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Gateway | Composer Package | Maintainer [Mollie](https://github.com/omnipay/mollie) | omnipay/mollie | [Adrian Macneil](https://github.com/adrianmacneil) [MultiSafepay](https://github.com/omnipay/multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [Netaxept (BBS)](https://github.com/omnipay/netaxept) | omnipay/netaxept | [Adrian Macneil](https://github.com/adrianmacneil) -[Netbanx](https://github.com/omnipay/netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/mrafalko) +[Netbanx](https://github.com/omnipay/netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) [Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [PayFast](https://github.com/omnipay/payfast) | omnipay/payfast | [Adrian Macneil](https://github.com/adrianmacneil) From 2e234d657f09bda5ffa0d2135a6f8b7ea0ff1833 Mon Sep 17 00:00:00 2001 From: Andrew Coates Date: Thu, 21 Aug 2014 16:08:00 +0100 Subject: [PATCH 061/333] Added link to Realex driver --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d3e2163f..0c79d7df 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,7 @@ Gateway | Composer Package | Maintainer [PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) [PayPal](https://github.com/omnipay/paypal) | omnipay/paypal | [Adrian Macneil](https://github.com/adrianmacneil) [Pin Payments](https://github.com/omnipay/pin) | omnipay/pin | [Adrian Macneil](https://github.com/adrianmacneil) +[Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) [Sage Pay](https://github.com/omnipay/sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) [SecurePay](https://github.com/omnipay/securepay) | omnipay/securepay | [Adrian Macneil](https://github.com/adrianmacneil) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) From 3ea21c4393356baff131b92e8b90aee8dc86f780 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sat, 6 Sep 2014 16:15:11 -0700 Subject: [PATCH 062/333] Update links --- README.md | 72 +++++++++++++++++++++++++-------------------------- composer.json | 4 +-- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index e07bb6c1..8ff37773 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **An easy to use, consistent payment processing library for PHP 5.3+** -[![Build Status](https://travis-ci.org/omnipay/common.png?branch=master)](https://travis-ci.org/omnipay/common) +[![Build Status](https://travis-ci.org/thephpleague/omnipay-common.png?branch=master)](https://travis-ci.org/thephpleague/omnipay-common) [![Latest Stable Version](https://poser.pugx.org/omnipay/omnipay/version.png)](https://packagist.org/packages/omnipay/omnipay) [![Total Downloads](https://poser.pugx.org/omnipay/omnipay/d/total.png)](https://packagist.org/packages/omnipay/omnipay) @@ -24,7 +24,7 @@ is fully unit tested, and even comes with an example application to get you star If you are upgrading from a pre-2.0 version of Omnipay, please note that the project has now been split into multiple packages. There have also been some changes to how gateway instances are created. See the -[full release notes](https://github.com/omnipay/omnipay/releases/tag/v2.0.0) +[full release notes](https://github.com/thephpleague/omnipay/releases/tag/v2.0.0) for more details. ## TL;DR @@ -58,7 +58,7 @@ as possible the differences between the various payments gateways. ## Package Layout Omnipay is a collection of packages which all depend on the -[omnipay/common](https://github.com/omnipay/common) package to provide +[omnipay/common](https://github.com/thephpleague/omnipay-common) package to provide a consistent interface. There are no dependencies on official payment gateway PHP packages - we prefer to work with the HTTP API directly. Under the hood, we use the popular and powerful [Guzzle](http://guzzlephp.org/) library to make HTTP requests. @@ -72,7 +72,7 @@ payment library, a good name for your composer package would be `santa/omnipay-g If you want to transfer your gateway to the `omnipay` GitHub organization and add it to the list of officially supported gateways, please open a pull request on the -[omnipay/common](https://github.com/omnipay/common) package. Before new gateways will +[omnipay/common](https://github.com/thephpleague/omnipay-common) package. Before new gateways will be accepted, they must have 100% unit test code coverage, and follow the conventions and code style used in other Omnipay gateways. @@ -106,47 +106,47 @@ Next, run composer to update your dependencies: ## Payment Gateways -All payment gateways must implement [GatewayInterface](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually -extend [AbstractGateway](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality. +All payment gateways must implement [GatewayInterface](https://github.com/thephpleague/omnipay-common/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually +extend [AbstractGateway](https://github.com/thephpleague/omnipay-common/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality. The following gateways are available: Gateway | Composer Package | Maintainer --- | --- | --- -[2Checkout](https://github.com/omnipay/2checkout) | omnipay/twocheckout | [Adrian Macneil](https://github.com/adrianmacneil) +[2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/twocheckout | [Adrian Macneil](https://github.com/adrianmacneil) [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) -[Authorize.Net](https://github.com/omnipay/authorizenet) | omnipay/authorizenet | [Adrian Macneil](https://github.com/adrianmacneil) -[Buckaroo](https://github.com/omnipay/buckaroo) | omnipay/buckaroo | [Adrian Macneil](https://github.com/adrianmacneil) -[CardSave](https://github.com/omnipay/cardsave) | omnipay/cardsave | [Adrian Macneil](https://github.com/adrianmacneil) -[Coinbase](https://github.com/omnipay/coinbase) | omnipay/coinbase | [Adrian Macneil](https://github.com/adrianmacneil) +[Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Adrian Macneil](https://github.com/adrianmacneil) +[Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Adrian Macneil](https://github.com/adrianmacneil) +[CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Adrian Macneil](https://github.com/adrianmacneil) +[Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Adrian Macneil](https://github.com/adrianmacneil) [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) -[Dummy](https://github.com/omnipay/dummy) | omnipay/dummy | [Adrian Macneil](https://github.com/adrianmacneil) -[eWAY](https://github.com/omnipay/eway) | omnipay/eway | [Adrian Macneil](https://github.com/adrianmacneil) -[First Data](https://github.com/omnipay/firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) -[GoCardless](https://github.com/omnipay/gocardless) | omnipay/gocardless | [Adrian Macneil](https://github.com/adrianmacneil) -[Manual](https://github.com/omnipay/manual) | omnipay/manual | [Adrian Macneil](https://github.com/adrianmacneil) -[Migs](https://github.com/omnipay/migs) | omnipay/migs | [Adrian Macneil](https://github.com/adrianmacneil) -[Mollie](https://github.com/omnipay/mollie) | omnipay/mollie | [Adrian Macneil](https://github.com/adrianmacneil) -[MultiSafepay](https://github.com/omnipay/multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) -[Netaxept (BBS)](https://github.com/omnipay/netaxept) | omnipay/netaxept | [Adrian Macneil](https://github.com/adrianmacneil) -[Netbanx](https://github.com/omnipay/netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) +[Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Adrian Macneil](https://github.com/adrianmacneil) +[eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Adrian Macneil](https://github.com/adrianmacneil) +[First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) +[GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Adrian Macneil](https://github.com/adrianmacneil) +[Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Adrian Macneil](https://github.com/adrianmacneil) +[Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Adrian Macneil](https://github.com/adrianmacneil) +[Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Adrian Macneil](https://github.com/adrianmacneil) +[MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) +[Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Adrian Macneil](https://github.com/adrianmacneil) +[Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) [Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) -[PayFast](https://github.com/omnipay/payfast) | omnipay/payfast | [Adrian Macneil](https://github.com/adrianmacneil) -[Payflow](https://github.com/omnipay/payflow) | omnipay/payflow | [Adrian Macneil](https://github.com/adrianmacneil) -[PaymentExpress (DPS)](https://github.com/omnipay/paymentexpress) | omnipay/paymentexpress | [Adrian Macneil](https://github.com/adrianmacneil) +[PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Adrian Macneil](https://github.com/adrianmacneil) +[Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Adrian Macneil](https://github.com/adrianmacneil) +[PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Adrian Macneil](https://github.com/adrianmacneil) [PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) -[PayPal](https://github.com/omnipay/paypal) | omnipay/paypal | [Adrian Macneil](https://github.com/adrianmacneil) -[Pin Payments](https://github.com/omnipay/pin) | omnipay/pin | [Adrian Macneil](https://github.com/adrianmacneil) +[PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Adrian Macneil](https://github.com/adrianmacneil) +[Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Adrian Macneil](https://github.com/adrianmacneil) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) -[Sage Pay](https://github.com/omnipay/sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) -[SecurePay](https://github.com/omnipay/securepay) | omnipay/securepay | [Adrian Macneil](https://github.com/adrianmacneil) +[Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) +[SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Adrian Macneil](https://github.com/adrianmacneil) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [Sisow](https://github.com/nettob/omnipay-sisow) | nettob/omnipay-sisow | [Niek](https://github.com/nettob) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) -[Stripe](https://github.com/omnipay/stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) -[TargetPay](https://github.com/omnipay/targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) -[WorldPay](https://github.com/omnipay/worldpay) | omnipay/worldpay | [Adrian Macneil](https://github.com/adrianmacneil) +[Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) +[TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) +[WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Adrian Macneil](https://github.com/adrianmacneil) Gateways are created and initialized like so: @@ -182,7 +182,7 @@ gateway (other than by the methods they support). ## Credit Card / Payment Form Input -User form input is directed to an [CreditCard](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/CreditCard.php) +User form input is directed to an [CreditCard](https://github.com/thephpleague/omnipay-common/blob/master/src/Omnipay/Common/CreditCard.php) object. This provides a safe way to accept user input. The `CreditCard` object has the following fields: @@ -240,7 +240,7 @@ $card->setFirstName('Adrian'); ``` If you submit credit card details which are obviously invalid (missing required fields, or a number -which fails the Luhn check), [InvalidCreditCardException](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/Exception/InvalidCreditCardException.php) +which fails the Luhn check), [InvalidCreditCardException](https://github.com/thephpleague/omnipay-common/blob/master/src/Omnipay/Common/Exception/InvalidCreditCardException.php) will be thrown. You should validate the card details using your framework's validation library before submitting the details to your gateway, to avoid unnecessary API calls. @@ -307,7 +307,7 @@ To summarize the various parameters you have available to you: ## The Payment Response -The payment response must implement [ResponseInterface](https://github.com/omnipay/common/blob/master/src/Omnipay/Common/Message/ResponseInterface.php). There are two main types of response: +The payment response must implement [ResponseInterface](https://github.com/thephpleague/omnipay-common/blob/master/src/Omnipay/Common/Message/ResponseInterface.php). There are two main types of response: * Payment was successful (standard response) * Website requires redirect to off-site payment form (redirect response) @@ -408,13 +408,13 @@ you really think this should be a core feature and worth the effort. ## Example Application -An example application is provided in the [omnipay/example](https://github.com/omnipay/example) repo. +An example application is provided in the [omnipay/example](https://github.com/thephpleague/omnipay-example) repo. You can run it using PHP's built in web server (PHP 5.4+): $ php composer.phar update --dev $ php -S localhost:8000 -For more information, see the [Omnipay example application](https://github.com/omnipay/example). +For more information, see the [Omnipay example application](https://github.com/thephpleague/omnipay-example). ## Support diff --git a/composer.json b/composer.json index afd53e62..f4a53ff6 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,7 @@ "twocheckout", "worldpay" ], - "homepage": "https://github.com/omnipay/omnipay", + "homepage": "https://github.com/thephpleague/omnipay", "license": "MIT", "authors": [ { @@ -54,7 +54,7 @@ }, { "name": "Omnipay Community", - "homepage": "https://github.com/omnipay/omnipay/graphs/contributors" + "homepage": "https://github.com/thephpleague/omnipay/graphs/contributors" } ], "require": { From ae75717ec00b93069768102af11b9dd909c78bd3 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Tue, 16 Sep 2014 20:29:37 -0400 Subject: [PATCH 063/333] Bump --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ff37773..edb0ce5b 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ is fully unit tested, and even comes with an example application to get you star * Because most payment gateways have exceptionally poor documentation * Because you are writing a shopping cart and need to support multiple gateways -**Important Note: Upgrading from <2.0** +**Important Note: Upgrading from < 2.0** If you are upgrading from a pre-2.0 version of Omnipay, please note that the project has now been split into multiple packages. There have also been some From 5af5fdf1da325a25871e34bbc0774317b2ae2557 Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Wed, 17 Sep 2014 14:00:25 -0400 Subject: [PATCH 064/333] upped omnipay/mollie to 3.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f4a53ff6..536f59bb 100644 --- a/composer.json +++ b/composer.json @@ -70,7 +70,7 @@ "omnipay/gocardless": "~2.0", "omnipay/manual": "~2.0", "omnipay/migs": "~2.0", - "omnipay/mollie": "~2.0", + "omnipay/mollie": "~3.0", "omnipay/multisafepay": "~2.0", "omnipay/netaxept": "~2.0", "omnipay/netbanx": "~2.0", From 07920ce7f6dd48d0c83217c3538767acb59817a9 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Mon, 13 Oct 2014 12:01:29 -0700 Subject: [PATCH 065/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index edb0ce5b..98dbb52e 100644 --- a/README.md +++ b/README.md @@ -244,7 +244,7 @@ which fails the Luhn check), [InvalidCreditCardException](https://github.com/the will be thrown. You should validate the card details using your framework's validation library before submitting the details to your gateway, to avoid unnecessary API calls. -For on-site payment gateways, the following card fields are always required: +For on-site payment gateways, the following card fields are generally required: * firstName * lastName From 29637416bf371df6aeee86baa9cd39a2afc16187 Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Wed, 29 Oct 2014 08:21:32 -0400 Subject: [PATCH 066/333] Update README.md added Cybersource Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 98dbb52e..b7ff7b17 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,7 @@ Gateway | Composer Package | Maintainer [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Adrian Macneil](https://github.com/adrianmacneil) +[Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) Gateways are created and initialized like so: From 08ea4f14c54bc0f1ca4fffca166cdaa9aae3190d Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 29 Oct 2014 13:29:18 +0100 Subject: [PATCH 067/333] Change Omnipay repo See #192 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b7ff7b17..68defc26 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ Gateway | Composer Package | Maintainer [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) [SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Adrian Macneil](https://github.com/adrianmacneil) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) -[Sisow](https://github.com/nettob/omnipay-sisow) | nettob/omnipay-sisow | [Niek](https://github.com/nettob) +[Sisow](https://github.com/fruitcakestudio/omnipay-sisow ) | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) From 143a0f46425b7e5b6bcc7dbf8f1f598b8b8cf77f Mon Sep 17 00:00:00 2001 From: Roman Ananyev Date: Thu, 13 Nov 2014 18:00:22 +0300 Subject: [PATCH 068/333] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 68defc26..f701cfee 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,7 @@ Gateway | Composer Package | Maintainer [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Adrian Macneil](https://github.com/adrianmacneil) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) +[Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) Gateways are created and initialized like so: From 21fd181d35b4a602cd95c94e545cc75c6c1a545e Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Tue, 2 Dec 2014 11:45:59 -0500 Subject: [PATCH 069/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f701cfee..1006d50e 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,7 @@ Gateway | Composer Package | Maintainer [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Adrian Macneil](https://github.com/adrianmacneil) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Adrian Macneil](https://github.com/adrianmacneil) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Adrian Macneil](https://github.com/adrianmacneil) +[Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) [Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Adrian Macneil](https://github.com/adrianmacneil) [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Adrian Macneil](https://github.com/adrianmacneil) @@ -147,7 +148,6 @@ Gateway | Composer Package | Maintainer [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Adrian Macneil](https://github.com/adrianmacneil) -[Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) Gateways are created and initialized like so: From 0a75fa95339c968eb42a0eed4b325ad5042c36f5 Mon Sep 17 00:00:00 2001 From: DerCoder Date: Wed, 10 Dec 2014 13:19:28 +0100 Subject: [PATCH 070/333] ecoPayz Gateway added --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1006d50e..e739a46b 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ Gateway | Composer Package | Maintainer [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) [Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Adrian Macneil](https://github.com/adrianmacneil) +[ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Adrian Macneil](https://github.com/adrianmacneil) [First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Adrian Macneil](https://github.com/adrianmacneil) From 2c63b26a91f13073da5975a6cd5baea463340df6 Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Fri, 9 Jan 2015 14:39:32 -0500 Subject: [PATCH 071/333] Added PayU Gateway to list of gateways --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e739a46b..bb9702c6 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ Gateway | Composer Package | Maintainer [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Adrian Macneil](https://github.com/adrianmacneil) [PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) [PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Adrian Macneil](https://github.com/adrianmacneil) +[PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Adrian Macneil](https://github.com/adrianmacneil) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) From d195d2e1996a70910f241fa079ab00688a84c131 Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Fri, 9 Jan 2015 14:44:29 -0500 Subject: [PATCH 072/333] adding PayU --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 536f59bb..0bd9e224 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,8 @@ "tala-payments", "targetpay", "twocheckout", - "worldpay" + "worldpay", + "payU" ], "homepage": "https://github.com/thephpleague/omnipay", "license": "MIT", From c91c9165830d32b0b99a6ce0c881569a7acd17eb Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Thu, 15 Jan 2015 13:50:07 -0500 Subject: [PATCH 073/333] Adding Cybersource SOAP --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bb9702c6..147cbc78 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ Gateway | Composer Package | Maintainer [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Adrian Macneil](https://github.com/adrianmacneil) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Adrian Macneil](https://github.com/adrianmacneil) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) +[Cybersource SOAP](https://github.com/DABSquared/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) [Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Adrian Macneil](https://github.com/adrianmacneil) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) From beafc62396c24bd8f9eb3a6a6a55ca75dd61e69f Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Thu, 15 Jan 2015 13:50:41 -0500 Subject: [PATCH 074/333] Update composer.json --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 0bd9e224..17f0f6fb 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ "buckaroo", "cardsave", "coinbase", + "cybersource", "commweb", "dps", "egate", From 4e86aec2430d8703f44eb45a264636241fa1e200 Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Wed, 4 Feb 2015 17:40:20 -0500 Subject: [PATCH 075/333] Added security section with contact email --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 147cbc78..c3588f0c 100644 --- a/README.md +++ b/README.md @@ -434,6 +434,10 @@ you can subscribe to. If you believe you have found a bug, please report it using the GitHub issue tracker for the appropriate package, or better yet, fork the library and submit a pull request. +## Security +If you discover any security related issues, please email kayladnls@gmail.com instead of using the issue tracker. + + ## Feedback **Please provide feedback!** We want to make this library useful in as many projects as possible. From 7b5831d5bb2614128ed1f670d913728a0ab5093b Mon Sep 17 00:00:00 2001 From: Matthieu Fauveau Date: Wed, 11 Feb 2015 14:49:22 -0500 Subject: [PATCH 076/333] Add Network Merchants International (NMI) Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c3588f0c..37b1d520 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ Gateway | Composer Package | Maintainer [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Adrian Macneil](https://github.com/adrianmacneil) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) [Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) +[Network Merchants International (NMI)](https://github.com/mfauveau/omnipay-nmi) | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Adrian Macneil](https://github.com/adrianmacneil) [Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Adrian Macneil](https://github.com/adrianmacneil) From a988d96035448cd07e0bf994fff3db6d71e51c7e Mon Sep 17 00:00:00 2001 From: Matthieu Fauveau Date: Wed, 11 Feb 2015 15:28:12 -0500 Subject: [PATCH 077/333] Name fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 37b1d520..0e306616 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ Gateway | Composer Package | Maintainer [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Adrian Macneil](https://github.com/adrianmacneil) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) [Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) -[Network Merchants International (NMI)](https://github.com/mfauveau/omnipay-nmi) | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) +[Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Adrian Macneil](https://github.com/adrianmacneil) [Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Adrian Macneil](https://github.com/adrianmacneil) From 8be2977892ab39c5ecdc0494e56e6e4bd4cc3e46 Mon Sep 17 00:00:00 2001 From: Andy Librian Date: Thu, 19 Feb 2015 05:30:15 +0700 Subject: [PATCH 078/333] Add Veritrans --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c3588f0c..45978156 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ Gateway | Composer Package | Maintainer [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) +[Veritrans](https://github.com/andylibrian/omnipay-veritrans) | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Adrian Macneil](https://github.com/adrianmacneil) [Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) From 517bdaf94da304908ebfebef19e7299c5e16736c Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Thu, 19 Feb 2015 13:09:58 -0500 Subject: [PATCH 079/333] updated docs and maintainers --- README.md | 72 +++++++++++++++++++++------------------------------ composer.json | 4 +++ 2 files changed, 34 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index c3588f0c..227e8170 100644 --- a/README.md +++ b/README.md @@ -78,31 +78,20 @@ and code style used in other Omnipay gateways. ## Installation -Omnipay is installed via [Composer](http://getcomposer.org/). To install all officially -supported gateways, simply add the following to your `composer.json` file: +Omnipay is installed via [Composer](http://getcomposer.org/). For most uses, you will need to require an individual gateway: -```json -{ - "require": { - "omnipay/omnipay": "~2.0" - } -} ``` - -Alternatively, you can require individual gateways: - -```json -{ - "require": { - "omnipay/paypal": "~2.0" - } -} +composer require omnipay/paypal:~2.0 ``` -Next, run composer to update your dependencies: + To install all officially supported gateways: + +``` +composer require omnipay/omnipay:~2.0 +``` + +>*This will require **ALL** ~25 Omnipay gateways and is generally discourged.* - $ curl -s http://getcomposer.org/installer | php - $ php composer.phar update ## Payment Gateways @@ -113,44 +102,43 @@ The following gateways are available: Gateway | Composer Package | Maintainer --- | --- | --- -[2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/twocheckout | [Adrian Macneil](https://github.com/adrianmacneil) +[2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/twocheckout | [Kayla Daniels](https://github.com/kayladnls) [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) -[Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Adrian Macneil](https://github.com/adrianmacneil) -[Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Adrian Macneil](https://github.com/adrianmacneil) -[CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Adrian Macneil](https://github.com/adrianmacneil) -[Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Adrian Macneil](https://github.com/adrianmacneil) +[Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) +[Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Kayla Daniels](https://github.com/kayladnls) +[CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Kayla Daniels](https://github.com/kayladnls) +[Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Kayla Daniels](https://github.com/kayladnls) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/DABSquared/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) -[Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Adrian Macneil](https://github.com/adrianmacneil) +[Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Kayla Daniels](https://github.com/kayladnls) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) -[eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Adrian Macneil](https://github.com/adrianmacneil) +[eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Kayla Daniels](https://github.com/kayladnls) [First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) -[GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Adrian Macneil](https://github.com/adrianmacneil) -[Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Adrian Macneil](https://github.com/adrianmacneil) -[Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Adrian Macneil](https://github.com/adrianmacneil) -[Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Adrian Macneil](https://github.com/adrianmacneil) -[MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) -[Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Adrian Macneil](https://github.com/adrianmacneil) +[GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) +[Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) +[Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) +[Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Kayla Daniels](https://github.com/kayladnls)ukkij[MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) +[Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Kayla Daniels](https://github.com/kayladnls) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) [Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) -[PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Adrian Macneil](https://github.com/adrianmacneil) -[Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Adrian Macneil](https://github.com/adrianmacneil) -[PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Adrian Macneil](https://github.com/adrianmacneil) +[PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Kayla Daniels](https://github.com/kayladnls) +[Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Kayla Daniels](https://github.com/kayladnls) +[PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Kayla Daniels](https://github.com/kayladnls) [PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) -[PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Adrian Macneil](https://github.com/adrianmacneil) +[PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Kayla Daniels](https://github.com/kayladnls) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) -[Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Adrian Macneil](https://github.com/adrianmacneil) +[Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) -[Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Adrian Macneil](https://github.com/adrianmacneil) -[SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Adrian Macneil](https://github.com/adrianmacneil) +[Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Kayla Daniels](https://github.com/kayladnls) +[SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Kayla Daniels](https://github.com/kayladnls) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [Sisow](https://github.com/fruitcakestudio/omnipay-sisow ) | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) -[Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Adrian Macneil](https://github.com/adrianmacneil) +[Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) -[WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Adrian Macneil](https://github.com/adrianmacneil) +[WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Kayla Daniels](https://github.com/kayladnls) [Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) Gateways are created and initialized like so: diff --git a/composer.json b/composer.json index 17f0f6fb..7b2aab3c 100644 --- a/composer.json +++ b/composer.json @@ -54,6 +54,10 @@ "name": "Adrian Macneil", "email": "adrian@adrianmacneil.com" }, + { + "name": "Kayla Daniels", + "email": "kayladnls@gmail.com" + }, { "name": "Omnipay Community", "homepage": "https://github.com/thephpleague/omnipay/graphs/contributors" From 57273e57178d285e1eda984cbac21ca738b5e11d Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Thu, 19 Feb 2015 13:12:11 -0500 Subject: [PATCH 080/333] whoops --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 227e8170..13cd8dda 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,8 @@ Gateway | Composer Package | Maintainer [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) [Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) -[Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Kayla Daniels](https://github.com/kayladnls)ukkij[MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) +[Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Kayla Daniels](https://github.com/kayladnls) +[MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Kayla Daniels](https://github.com/kayladnls) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) [Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) From 7cb869b0f9e2c42b387602c57a609a12ad8bc1f9 Mon Sep 17 00:00:00 2001 From: Denis Bobrovnikov Date: Fri, 20 Feb 2015 20:52:58 +0300 Subject: [PATCH 081/333] typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 13cd8dda..d0cda812 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ composer require omnipay/paypal:~2.0 composer require omnipay/omnipay:~2.0 ``` ->*This will require **ALL** ~25 Omnipay gateways and is generally discourged.* +> This will require **ALL** ~25 Omnipay gateways and is generally discouraged. ## Payment Gateways From 2e43fe5749c1b2d7792865653231c7f207663b3d Mon Sep 17 00:00:00 2001 From: Andrew Coates Date: Mon, 2 Mar 2015 10:10:18 +0000 Subject: [PATCH 082/333] Added link to Barclays ePDQ driver This driver is now in production, so adding for others to use. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d0cda812..acdb35c4 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ Gateway | Composer Package | Maintainer [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/twocheckout | [Kayla Daniels](https://github.com/kayladnls) [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) +[Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Kayla Daniels](https://github.com/kayladnls) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Kayla Daniels](https://github.com/kayladnls) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Kayla Daniels](https://github.com/kayladnls) From 154cae07b6f1eec3466b4400578efe3ef065c024 Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Tue, 3 Mar 2015 10:27:25 -0500 Subject: [PATCH 083/333] Knasher --- .gitignore | 1 + .idea/.name | 1 - README.md | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 .idea/.name diff --git a/.gitignore b/.gitignore index 8a282a56..daea6b43 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ composer.lock composer.phar phpunit.xml +.idea/* diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index 076f2b0a..00000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -omnipay \ No newline at end of file diff --git a/README.md b/README.md index c0d33130..35f94104 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ Gateway | Composer Package | Maintainer [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Kayla Daniels](https://github.com/kayladnls) +[WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) [Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) From a36cc5447636c97dee53bc7dd80661e4d15c5f0c Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Thu, 19 Mar 2015 11:56:42 -0400 Subject: [PATCH 084/333] Update README.md update twocheckout -> omnipay/2checkout --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 35f94104..b55583b4 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ The following gateways are available: Gateway | Composer Package | Maintainer --- | --- | --- -[2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/twocheckout | [Kayla Daniels](https://github.com/kayladnls) +[2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/2checkout | [Kayla Daniels](https://github.com/kayladnls) [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) From b2cb79fa359c8bbb39666a3271e7605894546b94 Mon Sep 17 00:00:00 2001 From: Andreas Christodoulou Date: Sat, 21 Mar 2015 17:53:28 +0200 Subject: [PATCH 085/333] Add gateway Fasapay --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b55583b4..648f42be 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,7 @@ Gateway | Composer Package | Maintainer [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Kayla Daniels](https://github.com/kayladnls) [First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) +[Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) [Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) From 0cf445531324ab2e966dfe9c65b9c1be887f9303 Mon Sep 17 00:00:00 2001 From: Maanas Royy Date: Sun, 22 Mar 2015 01:58:50 +0530 Subject: [PATCH 086/333] Add AGMS Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 648f42be..f12b6a30 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ The following gateways are available: Gateway | Composer Package | Maintainer --- | --- | --- [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/2checkout | [Kayla Daniels](https://github.com/kayladnls) +[Agms](https://github.com/agmscode/omnipay-agms) | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) From acdaf41708d238150576b47de70db971976c1ad8 Mon Sep 17 00:00:00 2001 From: Alexander Fedra Date: Wed, 8 Apr 2015 16:41:54 +0200 Subject: [PATCH 087/333] Add Globalcloudpay Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f12b6a30..ceb98f75 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,7 @@ Gateway | Composer Package | Maintainer [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Kayla Daniels](https://github.com/kayladnls) [First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) +[Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) [Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) From 59b1f6340e74409b0551ad57e289e7560fa0c435 Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Mon, 13 Apr 2015 02:17:34 +0100 Subject: [PATCH 088/333] Added academe/omnipay-helcim Direct and HostedPages gateways are working. JS gateway is work-in-progress. A full set of tests is also very much work-in-progress. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ceb98f75..be93e310 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ Gateway | Composer Package | Maintainer [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) +[Helcim](https://github.com/academe/omnipay-helcim) | aacademe/omnipay-helcim | [Jason Judge](https://github.com/judgej) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) [Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) [Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Kayla Daniels](https://github.com/kayladnls) From e31189f4b63fc91f8e8db96c99fff8d657cc6a01 Mon Sep 17 00:00:00 2001 From: Igor Gaponov Date: Tue, 14 Apr 2015 06:31:08 +0200 Subject: [PATCH 089/333] added link to omnipay-wirecard driver --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index be93e310..2f2b0a80 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ Gateway | Composer Package | Maintainer [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) +[Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Kayla Daniels](https://github.com/kayladnls) [WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) From bad34ca8c11b28bcafbacc6d2d3fbd8cc4ff2a62 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 19 May 2015 00:53:17 +1200 Subject: [PATCH 090/333] #261 declare transactionId In conjunction with https://github.com/thephpleague/omnipay/issues/261 & https://github.com/thephpleague/omnipay-common/pull/41 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2f2b0a80..cb364a13 100644 --- a/README.md +++ b/README.md @@ -326,6 +326,7 @@ $response = $gateway->purchase(['amount' => '10.00', 'card' => $card])->send(); $response->isSuccessful(); // is the response successful? $response->isRedirect(); // is the response a redirect? $response->getTransactionReference(); // a reference generated by the payment gateway +$response->getTransactionId(); // the reference set by the originating website if available. $response->getMessage(); // a message generated by the payment gateway ``` From f22c42434199fa5d9003d45b0220df9d3128f352 Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Thu, 21 May 2015 22:05:35 -0400 Subject: [PATCH 091/333] Add Fat Zebra Thanks @delatbabel --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f2b0a80..32facc8e 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,8 @@ Gateway | Composer Package | Maintainer [Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Kayla Daniels](https://github.com/kayladnls) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Kayla Daniels](https://github.com/kayladnls) -[First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) +[Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) +[First Data](https://gDel](https://github.com/delatbabel)ithub.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) From 86f17bb9655a927c2909cb39cb0dec3d120fd8bf Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Fri, 29 May 2015 19:21:45 +0200 Subject: [PATCH 092/333] Add paypro gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 32facc8e..8f8efb6a 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,7 @@ Gateway | Composer Package | Maintainer [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Kayla Daniels](https://github.com/kayladnls) [PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) [PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Kayla Daniels](https://github.com/kayladnls) +[PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) From 9a775deb6dddcad2b277fddd1c463efeab5e561e Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 5 Jun 2015 16:28:49 +0200 Subject: [PATCH 093/333] Added CardGate Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 32facc8e..96a644b8 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,7 @@ Gateway | Composer Package | Maintainer [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Kayla Daniels](https://github.com/kayladnls) +[CardGate](https://github.com/cardgate/omnipay-cardgate) | omnipay/cardgate | [CardGate](https://github.com/cardgate) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Kayla Daniels](https://github.com/kayladnls) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Kayla Daniels](https://github.com/kayladnls) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) From 35ace5a964ff8d33fba9eb635634afe55f7b81e5 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 5 Jun 2015 16:51:38 +0200 Subject: [PATCH 094/333] Added CardGate Gateway to composer.json --- composer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composer.json b/composer.json index 7b2aab3c..1fc00887 100644 --- a/composer.json +++ b/composer.json @@ -9,6 +9,7 @@ "authorize", "authorize.net", "buckaroo", + "cardgate", "cardsave", "coinbase", "cybersource", @@ -67,6 +68,7 @@ "omnipay/2checkout": "~2.0", "omnipay/authorizenet": "~2.0", "omnipay/buckaroo": "~2.0", + "omnipay/cardgate": "~2.0", "omnipay/cardsave": "~2.0", "omnipay/coinbase": "~2.0", "omnipay/common": "~2.3.0", From 52b8036437047925958e7fde55eefd4aad7670b4 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 8 Jun 2015 12:25:44 +0200 Subject: [PATCH 095/333] - Wrong packagename (lazy copy/paste error) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1fc00887..a08d002b 100644 --- a/composer.json +++ b/composer.json @@ -68,7 +68,7 @@ "omnipay/2checkout": "~2.0", "omnipay/authorizenet": "~2.0", "omnipay/buckaroo": "~2.0", - "omnipay/cardgate": "~2.0", + "cardgate/omnipay-cardgate": "~2.0", "omnipay/cardsave": "~2.0", "omnipay/coinbase": "~2.0", "omnipay/common": "~2.3.0", From 2dfd29bf0379f9630c34886fee0fc64cb771663c Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 8 Jun 2015 13:31:50 +0200 Subject: [PATCH 096/333] - Lazy copy/paste error --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 96a644b8..4c6b74e2 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ Gateway | Composer Package | Maintainer [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Kayla Daniels](https://github.com/kayladnls) -[CardGate](https://github.com/cardgate/omnipay-cardgate) | omnipay/cardgate | [CardGate](https://github.com/cardgate) +[CardGate](https://github.com/cardgate/omnipay-cardgate) | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Kayla Daniels](https://github.com/kayladnls) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Kayla Daniels](https://github.com/kayladnls) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) From 7d9694d6f07da71bc680c6cb404460acca8fd25d Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 8 Jun 2015 14:13:24 +0200 Subject: [PATCH 097/333] - Forgot to tag it all for packagist.. --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d67ed30d..6ad2b7f9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,5 +6,6 @@ * Commit just the modifications, do not mess with the composer.json or CHANGELOG.md files. * Ensure your code is nicely formatted in the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) style and that all tests pass. +* Don't forget to check all versionnumbers and tag it correctly in GIT ;) * Send the pull request. * Check that the Travis CI build passed. If not, rinse and repeat. From df3b318e0441563c88d6cac883bf740dd966b7c1 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 10 Jun 2015 09:16:50 +0200 Subject: [PATCH 098/333] Add 3rd party gateways to suggest Fixes #273 --- composer.json | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a08d002b..aa600ba7 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,6 @@ "authorize", "authorize.net", "buckaroo", - "cardgate", "cardsave", "coinbase", "cybersource", @@ -68,7 +67,6 @@ "omnipay/2checkout": "~2.0", "omnipay/authorizenet": "~2.0", "omnipay/buckaroo": "~2.0", - "cardgate/omnipay-cardgate": "~2.0", "omnipay/cardsave": "~2.0", "omnipay/coinbase": "~2.0", "omnipay/common": "~2.3.0", @@ -96,6 +94,33 @@ "require-dev": { "omnipay/tests": "~2.0" }, + "suggest": { + "aTastyCookie/yandexmoney_omnipay": "Yandex.Money", + "aacademe/omnipay-helcim": "Helcim", + "agmscode/omnipay-agms": "Agms", + "alfaproject/omnipay-neteller": "Neteller", + "alfaproject/omnipay-skrill": "Skrill", + "andreas22/omnipay-fasapay": "Fasapay", + "andylibrian/omnipay-veritrans": "Veritrans", + "cardgate/omnipay-cardgate": "CardGate", + "coatesap/omnipay-datacash": "DataCash", + "coatesap/omnipay-paymentsense": "PaymentSense", + "coatesap/omnipay-realex": "Realex", + "dabsquared/omnipay-cybersource-soap": "Cybersource SOAP", + "delatbabel/omnipay-fatzebra": "Fat Zebra", + "dercoder/omnipay-ecopayz": "ecoPayz", + "dercoder/omnipay-globalcloudpay": "Globalcloudpay", + "dioscouri/omnipay-cybersource": "Cybersource", + "fruitcakestudio/omnipay-sisow": "Sisow", + "igaponov/omnipay-wirecard": "Wirecard", + "justinbusschau/omnipay-secpay": "SecPay", + "lokielse/omnipay-alipay": "Alipay", + "mfauveau/omnipay-nmi": "Network Merchants Inc. (NMI)", + "mfauveau/omnipay-pacnet": "Pacnet", + "paypronl/omnipay-paypro": "PayPro", + "samvaughton/omnipay-barclays-epdq": "Barclays ePDQ", + "teaandcode/omnipay-worldpay-xml": "WorldPay XML Direct" + }, "extra": { "branch-alias": { "dev-master": "2.0.x-dev" From a9f91754ad110642a0d88043ec87ba3dc7476938 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 10 Jun 2015 09:20:24 +0200 Subject: [PATCH 099/333] Fix package names --- composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index aa600ba7..fb2888dc 100644 --- a/composer.json +++ b/composer.json @@ -95,8 +95,7 @@ "omnipay/tests": "~2.0" }, "suggest": { - "aTastyCookie/yandexmoney_omnipay": "Yandex.Money", - "aacademe/omnipay-helcim": "Helcim", + "academe/omnipay-helcim": "Helcim", "agmscode/omnipay-agms": "Agms", "alfaproject/omnipay-neteller": "Neteller", "alfaproject/omnipay-skrill": "Skrill", From d1d2289db2f87a8ea096c960fe1abc575689d93d Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 10 Jun 2015 09:21:01 +0200 Subject: [PATCH 100/333] Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0044221..db5ea356 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ Gateway | Composer Package | Maintainer [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) -[Helcim](https://github.com/academe/omnipay-helcim) | aacademe/omnipay-helcim | [Jason Judge](https://github.com/judgej) +[Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) [Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) [Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Kayla Daniels](https://github.com/kayladnls) From ebd5496011489766166404b2de6dcc09891a7a08 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 10 Jun 2015 09:37:17 +0200 Subject: [PATCH 101/333] Fix sort, typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index db5ea356..a763ac12 100644 --- a/README.md +++ b/README.md @@ -117,9 +117,9 @@ Gateway | Composer Package | Maintainer [Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Kayla Daniels](https://github.com/kayladnls) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Kayla Daniels](https://github.com/kayladnls) -[Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) -[First Data](https://gDel](https://github.com/delatbabel)ithub.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) +[Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) +[First Data](https://github.com/delatbabel) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) From b91d2817d22241c2fcf694d2474e498cce914207 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 10 Jun 2015 09:38:05 +0200 Subject: [PATCH 102/333] Update composer.json --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index fb2888dc..d0ad09a6 100644 --- a/composer.json +++ b/composer.json @@ -116,6 +116,7 @@ "lokielse/omnipay-alipay": "Alipay", "mfauveau/omnipay-nmi": "Network Merchants Inc. (NMI)", "mfauveau/omnipay-pacnet": "Pacnet", + "omnipay/payu": "PayU", "paypronl/omnipay-paypro": "PayPro", "samvaughton/omnipay-barclays-epdq": "Barclays ePDQ", "teaandcode/omnipay-worldpay-xml": "WorldPay XML Direct" From 983c48315d2098c55dfe829bbca208a8a376ed1f Mon Sep 17 00:00:00 2001 From: George Wilson Date: Mon, 22 Jun 2015 10:32:04 +0100 Subject: [PATCH 103/333] Fix link to omnipay first data repo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a763ac12..e72b0f2f 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ Gateway | Composer Package | Maintainer [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Kayla Daniels](https://github.com/kayladnls) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) -[First Data](https://github.com/delatbabel) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) +[First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) From 16497850a56ce786173db0467bdeddf0accf0ad7 Mon Sep 17 00:00:00 2001 From: Del Date: Wed, 8 Jul 2015 15:56:08 +0800 Subject: [PATCH 104/333] Add MultiCards and PaymentWall --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e72b0f2f..ac53a85f 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ Gateway | Composer Package | Maintainer [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) [Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) [Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Kayla Daniels](https://github.com/kayladnls) +[MultiCards](https://github.com/incube8/omnipay-multicards) | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Kayla Daniels](https://github.com/kayladnls) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) @@ -136,6 +137,7 @@ Gateway | Composer Package | Maintainer [Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Kayla Daniels](https://github.com/kayladnls) [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Kayla Daniels](https://github.com/kayladnls) [PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) +[PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) [PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Kayla Daniels](https://github.com/kayladnls) [PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) From 3cc98fd50da758846e07ca839b64b274aee532ca Mon Sep 17 00:00:00 2001 From: Yasin Kuyu Date: Sat, 1 Aug 2015 21:56:33 +0300 Subject: [PATCH 105/333] Added NestPay (EST), Turkey Payment Gateways. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NestPay (EST) (İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus) gateway for Omnipay payment processing library --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6adcc6fe..ce34b43c 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,7 @@ Gateway | Composer Package | Maintainer [PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Kayla Daniels](https://github.com/kayladnls) [PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) +[NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Kayla Daniels](https://github.com/kayladnls) From 1c5f5406cf8e3b89c67028217816f51bc4dfe83d Mon Sep 17 00:00:00 2001 From: oleg Date: Tue, 11 Aug 2015 20:43:41 +0300 Subject: [PATCH 106/333] add PayTrace Gateway support --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6adcc6fe..a7d702d9 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ Gateway | Composer Package | Maintainer [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) [PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Kayla Daniels](https://github.com/kayladnls) [PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) +[PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) From 8bdebce1081adb4dd4a65ba194e6ffb6fe6e59b5 Mon Sep 17 00:00:00 2001 From: QS Date: Tue, 18 Aug 2015 15:32:15 +0800 Subject: [PATCH 107/333] Add UnionPay --- README.md | 1 + composer.json | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 6adcc6fe..0b018d8f 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ Gateway | Composer Package | Maintainer [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) +[UnionPay](https://github.com/lokielse/omnipay-unionpay) | omnipay/lokielse-unionpay | [Loki Else](https://github.com/lokielse) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Kayla Daniels](https://github.com/kayladnls) [WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) diff --git a/composer.json b/composer.json index d0ad09a6..538350b3 100644 --- a/composer.json +++ b/composer.json @@ -114,6 +114,7 @@ "igaponov/omnipay-wirecard": "Wirecard", "justinbusschau/omnipay-secpay": "SecPay", "lokielse/omnipay-alipay": "Alipay", + "lokielse/omnipay-unionpay": "UnionPay", "mfauveau/omnipay-nmi": "Network Merchants Inc. (NMI)", "mfauveau/omnipay-pacnet": "Pacnet", "omnipay/payu": "PayU", From 5e6dd4a259c5b2a4d9d0258fbfdba3c5b9379b2e Mon Sep 17 00:00:00 2001 From: "Marco B." Date: Wed, 19 Aug 2015 10:46:11 +0200 Subject: [PATCH 108/333] Added Checkout.com to composer.json --- composer.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index d0ad09a6..e0bae077 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,8 @@ "targetpay", "twocheckout", "worldpay", - "payU" + "payU", + "checkoutcom" ], "homepage": "https://github.com/thephpleague/omnipay", "license": "MIT", @@ -119,7 +120,8 @@ "omnipay/payu": "PayU", "paypronl/omnipay-paypro": "PayPro", "samvaughton/omnipay-barclays-epdq": "Barclays ePDQ", - "teaandcode/omnipay-worldpay-xml": "WorldPay XML Direct" + "teaandcode/omnipay-worldpay-xml": "WorldPay XML Direct", + "fotografde/omnipay-checkoutcom": "Checkout.com" }, "extra": { "branch-alias": { From 605bc544754428232b1b72b4cf2c0c69b131dcbe Mon Sep 17 00:00:00 2001 From: "Marco B." Date: Wed, 19 Aug 2015 10:48:10 +0200 Subject: [PATCH 109/333] Added Checkout.com to Readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6adcc6fe..a90f45f8 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,7 @@ Gateway | Composer Package | Maintainer [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Kayla Daniels](https://github.com/kayladnls) [CardGate](https://github.com/cardgate/omnipay-cardgate) | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Kayla Daniels](https://github.com/kayladnls) +[Checkout.com](https://github.com/fotografde/omnipay-checkoutcom) | fotografde/checkoutcom | [fotograf.de](https://github.com/fotografde) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Kayla Daniels](https://github.com/kayladnls) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/DABSquared/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) From f3a16611aa3fd76f4310e6dcffa8a18a82997a3d Mon Sep 17 00:00:00 2001 From: Ednei Oliveira Date: Wed, 26 Aug 2015 16:12:23 -0300 Subject: [PATCH 110/333] Update REAME.md to include omnipay-pagarme. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 397c1b14..ecdaa7b1 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ Gateway | Composer Package | Maintainer [Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) +[Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) [PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Kayla Daniels](https://github.com/kayladnls) [Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Kayla Daniels](https://github.com/kayladnls) [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Kayla Daniels](https://github.com/kayladnls) From 5bb79565f4baa66de34e9cbc8dda01adcdfcdfbb Mon Sep 17 00:00:00 2001 From: Ednei Oliveira Date: Thu, 27 Aug 2015 16:43:18 -0300 Subject: [PATCH 111/333] Update composer.json to sugest Pagar.me gateway. --- composer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composer.json b/composer.json index f77e5511..c67d2246 100644 --- a/composer.json +++ b/composer.json @@ -28,6 +28,7 @@ "multisafepay", "netaxept", "netbanx", + "pagarme" "pay", "payfast", "payflow", @@ -110,6 +111,7 @@ "delatbabel/omnipay-fatzebra": "Fat Zebra", "dercoder/omnipay-ecopayz": "ecoPayz", "dercoder/omnipay-globalcloudpay": "Globalcloudpay", + "descubraomundo/omnipay-pagarme": "Pagar.me", "dioscouri/omnipay-cybersource": "Cybersource", "fruitcakestudio/omnipay-sisow": "Sisow", "igaponov/omnipay-wirecard": "Wirecard", From 89229a6bb8414ad969f68759aa75cd68ffed122b Mon Sep 17 00:00:00 2001 From: Ednei Oliveira Date: Fri, 28 Aug 2015 08:21:10 -0300 Subject: [PATCH 112/333] fixed parse error on composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index c67d2246..1bec39e4 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "multisafepay", "netaxept", "netbanx", - "pagarme" + "pagarme", "pay", "payfast", "payflow", @@ -45,7 +45,7 @@ "tala-payments", "targetpay", "twocheckout", - "worldpay", + "worldpay", "payU", "checkoutcom" ], From 4b769e2009e87604949fb0a9cf3665267962dc76 Mon Sep 17 00:00:00 2001 From: Alexander Fedra Date: Thu, 3 Sep 2015 04:58:26 +0200 Subject: [PATCH 113/333] Add Paysafecard Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ecdaa7b1..e58a4fa3 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ Gateway | Composer Package | Maintainer [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) [PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Kayla Daniels](https://github.com/kayladnls) [PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) +[Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | paypronl/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) From 8f5fbd1fbe58c78ed4d95fc1cadc72db943671a0 Mon Sep 17 00:00:00 2001 From: Alexander Fedra Date: Thu, 3 Sep 2015 04:59:03 +0200 Subject: [PATCH 114/333] Add Paysafecard Gateway --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e58a4fa3..361896ae 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ Gateway | Composer Package | Maintainer [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) [PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Kayla Daniels](https://github.com/kayladnls) [PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) -[Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | paypronl/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) +[Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) From 8559b8b9cb5cfeb6081c275e4c057d8122e90c03 Mon Sep 17 00:00:00 2001 From: Danny Vink Date: Fri, 11 Sep 2015 21:46:30 -0700 Subject: [PATCH 115/333] Add third party Komoju package to gateways list I have finished writing the gateway to support payments through [Komoju](https://komoju.com). Just wanted to add it to the list for everyone's use! --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 361896ae..d121d811 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ Gateway | Composer Package | Maintainer [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) +[Komoju](https://github.com/dannyvink/omnipay-komoju) | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) [Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) [Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Kayla Daniels](https://github.com/kayladnls) From bb99cd804de37ba035af0acaeb5f5dd695fb2527 Mon Sep 17 00:00:00 2001 From: John Jablonski Date: Sat, 19 Sep 2015 13:47:22 +0200 Subject: [PATCH 116/333] Add Creditcall Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 361896ae..596b2265 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ Gateway | Composer Package | Maintainer [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Kayla Daniels](https://github.com/kayladnls) [Checkout.com](https://github.com/fotografde/omnipay-checkoutcom) | fotografde/checkoutcom | [fotograf.de](https://github.com/fotografde) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Kayla Daniels](https://github.com/kayladnls) +[Creditcall](https://github.com/meebio/omnipay-creditcall) | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/DABSquared/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) From 2701dd55d14bbdd8a4b157e16e033011cc066271 Mon Sep 17 00:00:00 2001 From: John Jablonski Date: Fri, 25 Sep 2015 18:59:17 +0200 Subject: [PATCH 117/333] Add Secure Trading Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 596b2265..746e0fd0 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,7 @@ Gateway | Composer Package | Maintainer [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Kayla Daniels](https://github.com/kayladnls) [SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Kayla Daniels](https://github.com/kayladnls) +[Secure Trading](https://github.com/meebio/omnipay-secure-trading) | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [Sisow](https://github.com/fruitcakestudio/omnipay-sisow ) | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) From c86e1666e66ff78ea18d5e57692859842f102303 Mon Sep 17 00:00:00 2001 From: Agbonghama Collins Date: Mon, 12 Oct 2015 17:40:15 +0100 Subject: [PATCH 118/333] Added WePay to Omnipay gateways. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4a889557..bc01be17 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,7 @@ Gateway | Composer Package | Maintainer [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [UnionPay](https://github.com/lokielse/omnipay-unionpay) | omnipay/lokielse-unionpay | [Loki Else](https://github.com/lokielse) +[WePay](https://github.com/Collizo4sky/omnipay-wepay) | Collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/Collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Kayla Daniels](https://github.com/kayladnls) [WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) From 8c0e615bad717e3424256b996597cf4fcf5f4a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergej=20Ko=C5=A1=C4=8Dejev?= Date: Sun, 30 Aug 2015 17:45:31 +0200 Subject: [PATCH 119/333] Document incoming notifications interface --- README.md | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) mode change 100644 => 100755 README.md diff --git a/README.md b/README.md old mode 100644 new mode 100755 index bc01be17..1ba81c27 --- a/README.md +++ b/README.md @@ -284,13 +284,17 @@ The main methods implemented by gateways are: * `completePurchase($options)` - handle return from off-site gateways after purchase * `refund($options)` - refund an already processed transaction * `void($options)` - generally can only be called up to 24 hours after submitting a transaction +* `acceptNotification()` - convert an incoming request from an off-site gateway to a generic notification object + for further processing -On-site gateways do not need to implement the `completeAuthorize` and `completePurchase` methods. If any gateway does not support -certain features (such as refunds), it will throw `BadMethodCallException`. +On-site gateways do not need to implement the `completeAuthorize` and `completePurchase` methods. Gateways that don't +receive payment notifications don't need to implement `acceptNotification`. If any gateway does not support certain +features (such as refunds), it will throw `BadMethodCallException`. -All gateway methods take an `$options` array as an argument. Each gateway differs in which -parameters are required, and the gateway will throw `InvalidRequestException` if you -omit any required parameters. All gateways will accept a subset of these options: +All gateway methods except `acceptNotification` take an `$options` array as an argument. The `acceptNotification` method +does not take any parameters and will access the HTTP URL variables or POST data implicitly. Each gateway differs in +which parameters are required, and the gateway will throw `InvalidRequestException` if you omit any required parameters. +All gateways will accept a subset of these options: * card * token @@ -425,6 +429,22 @@ recurring billing profiles. Also in most cases token billing will cover your nee store a credit card then charge it on whatever schedule you like. Feel free to get in touch if you really think this should be a core feature and worth the effort. +## Incoming Notifications + +Some gateways (e.g. Cybersource, GoPay) offer HTTP notifications to inform the merchant about the completion (or, in +general, status) of the payment. To assist with handling such notifications, the `acceptNotification()` method will +extract the transaction reference and payment status from the HTTP request and return a generic `NotificationInterface`. + +```php +$notification = $gateway->acceptNotification(); + +$notification->getTransactionReference(); // A reference provided by the gateway to represent this transaction +$notification->getTransactionStatus(); // Current status of the transaction, one of NotificationInterface::STATUS_* +$notification->getMessage(); // Additional message, if any, provided by the gateway + +// update the status of the corresponding transaction in your database +``` + ## Example Application An example application is provided in the [omnipay/example](https://github.com/thephpleague/omnipay-example) repo. From f587a2f535760293a046708a42327356e3d9b71c Mon Sep 17 00:00:00 2001 From: Chino Chang Date: Wed, 28 Oct 2015 16:27:04 +0800 Subject: [PATCH 120/333] Update README.md Add WeChat driver --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1ba81c27..592772e5 100755 --- a/README.md +++ b/README.md @@ -159,6 +159,7 @@ Gateway | Composer Package | Maintainer [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [UnionPay](https://github.com/lokielse/omnipay-unionpay) | omnipay/lokielse-unionpay | [Loki Else](https://github.com/lokielse) +[WeChat](https://github.com/labs7in0/omnipay-wechat) | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) [WePay](https://github.com/Collizo4sky/omnipay-wepay) | Collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/Collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Kayla Daniels](https://github.com/kayladnls) From 899affff7de7de3c876da4074dcc228c62040b59 Mon Sep 17 00:00:00 2001 From: Alexander Fedra Date: Sat, 31 Oct 2015 22:39:08 +0100 Subject: [PATCH 121/333] Add WebMoney and Portmanat Gateway --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 592772e5..1056b45f 100755 --- a/README.md +++ b/README.md @@ -147,6 +147,7 @@ Gateway | Composer Package | Maintainer [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) +[Portmanat](https://github.com/dercoder/omnipay-portmanat) | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) @@ -160,6 +161,7 @@ Gateway | Composer Package | Maintainer [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [UnionPay](https://github.com/lokielse/omnipay-unionpay) | omnipay/lokielse-unionpay | [Loki Else](https://github.com/lokielse) [WeChat](https://github.com/labs7in0/omnipay-wechat) | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) +[WebMoney](https://github.com/dercoder/omnipay-webmoney) | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WePay](https://github.com/Collizo4sky/omnipay-wepay) | Collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/Collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Kayla Daniels](https://github.com/kayladnls) From baab44f8266965ab68a199a8117043b4392ec60a Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 1 Dec 2015 17:04:48 +0100 Subject: [PATCH 122/333] Loosen version constraints for omnipay/common --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1bec39e4..42108e15 100644 --- a/composer.json +++ b/composer.json @@ -71,7 +71,7 @@ "omnipay/buckaroo": "~2.0", "omnipay/cardsave": "~2.0", "omnipay/coinbase": "~2.0", - "omnipay/common": "~2.3.0", + "omnipay/common": "~2.3", "omnipay/dummy": "~2.0", "omnipay/eway": "~2.0", "omnipay/firstdata": "~2.0", From d7964e559483587cfd4457c9564038606d332c9e Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Sun, 6 Dec 2015 13:14:28 +1300 Subject: [PATCH 123/333] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 592772e5..f0718ca6 100755 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ Gateway | Composer Package | Maintainer [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) [First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) +[Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) From bde8710156632d5ca9930dadab8ddf3d5dae6727 Mon Sep 17 00:00:00 2001 From: exec Date: Mon, 14 Dec 2015 17:23:30 +0200 Subject: [PATCH 124/333] php 5.3 syntax for arrays --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 592772e5..cfe85563 100755 --- a/README.md +++ b/README.md @@ -37,8 +37,8 @@ use Omnipay\Omnipay; $gateway = Omnipay::create('Stripe'); $gateway->setApiKey('abc123'); -$formData = ['number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123']; -$response = $gateway->purchase(['amount' => '10.00', 'currency' => 'USD', 'card' => $formData])->send(); +$formData = array('number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123'); +$response = $gateway->purchase(array('amount' => '10.00', 'currency' => 'USD', 'card' => $formData))->send(); if ($response->isSuccessful()) { // payment was successful: update database @@ -311,11 +311,11 @@ Pass the options through to the method like so: ```php $card = new CreditCard($formData); -$request = $gateway->authorize([ +$request = $gateway->authorize(array( 'amount' => '10.00', // this represents $10.00 'card' => $card, 'returnUrl' => 'https://www.example.com/return', -]); +)); ``` When calling the `completeAuthorize` or `completePurchase` methods, the exact same arguments should be provided as @@ -341,7 +341,7 @@ For a successful responses, a reference will normally be generated, which can be at a later date. The following methods are always available: ```php -$response = $gateway->purchase(['amount' => '10.00', 'card' => $card])->send(); +$response = $gateway->purchase(array('amount' => '10.00', 'card' => $card))->send(); $response->isSuccessful(); // is the response successful? $response->isRedirect(); // is the response a redirect? @@ -360,7 +360,7 @@ POST (FormRedirectResponse). These could potentially be combined into a single r After processing a payment, the cart should check whether the response requires a redirect, and if so, redirect accordingly: ```php -$response = $gateway->purchase(['amount' => '10.00', 'card' => $card])->send(); +$response = $gateway->purchase(array('amount' => '10.00', 'card' => $card))->send(); if ($response->isSuccessful()) { // payment is complete } elseif ($response->isRedirect()) { @@ -393,7 +393,7 @@ You can handle both scenarios by wrapping the entire request in a try-catch bloc ```php try { - $response = $gateway->purchase(['amount' => '10.00', 'card' => $card])->send(); + $response = $gateway->purchase(array('amount' => '10.00', 'card' => $card))->send(); if ($response->isSuccessful()) { // mark order as complete } elseif ($response->isRedirect()) { @@ -420,7 +420,7 @@ are available: Once you have a `cardReference`, you can use it instead of the `card` parameter when creating a charge: - $gateway->purchase(['amount' => '10.00', 'cardReference' => 'abc']); + $gateway->purchase(array('amount' => '10.00', 'cardReference' => 'abc')); ## Recurring Billing From f22d7a6bb3ecbedb082d1179af602883b16a1a03 Mon Sep 17 00:00:00 2001 From: Andy Carter Date: Tue, 22 Dec 2015 18:56:31 +0000 Subject: [PATCH 125/333] Added the RedSys gateway. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cfe85563..22423d2b 100755 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ Gateway | Composer Package | Maintainer [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) +[RedSys](https://github.com/jsampedro77/sermepa-omnipay) | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Kayla Daniels](https://github.com/kayladnls) [SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Kayla Daniels](https://github.com/kayladnls) [Secure Trading](https://github.com/meebio/omnipay-secure-trading) | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) From 46dc5349709ca04648a4870aa75f915087f54f00 Mon Sep 17 00:00:00 2001 From: Michael Bender Date: Mon, 18 Jan 2016 16:53:07 -0500 Subject: [PATCH 126/333] Update README.md Removed link to CI Merchant and it seems to be hacked. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cfe85563..d3f9709f 100755 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Omnipay is a payment processing library for PHP. It has been designed based on ideas from [Active Merchant](http://activemerchant.org/), plus experience implementing -dozens of gateways for [CI Merchant](http://ci-merchant.org/). It has a clear and consistent API, +dozens of gateways for [CI Merchant]. It has a clear and consistent API, is fully unit tested, and even comes with an example application to get you started. **Why use Omnipay instead of a gateway's official PHP package/example code?** From bee9ef59af663951bd2f28cf29c23347d2e648b7 Mon Sep 17 00:00:00 2001 From: Yasin Kuyu Date: Wed, 27 Jan 2016 12:34:31 +0200 Subject: [PATCH 127/333] Added Turkish Payment Gateway --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8580cd9e..5c0bc0fb 100755 --- a/README.md +++ b/README.md @@ -150,6 +150,10 @@ Gateway | Composer Package | Maintainer [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) [Portmanat](https://github.com/dercoder/omnipay-portmanat) | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) +[GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) +[Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) +[Posnet](https://github.com/yasinkuyu/omnipay-posnet) | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) +[BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) From 8a3635029b37dc178a2cae8ed2ba35d047aecee3 Mon Sep 17 00:00:00 2001 From: imsqiu Date: Wed, 27 Jan 2016 21:23:02 +0800 Subject: [PATCH 128/333] Add WechatPay --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 42108e15..b2138865 100644 --- a/composer.json +++ b/composer.json @@ -118,6 +118,7 @@ "justinbusschau/omnipay-secpay": "SecPay", "lokielse/omnipay-alipay": "Alipay", "lokielse/omnipay-unionpay": "UnionPay", + "lokielse/omnipay-wechatpay": "WechatPay", "mfauveau/omnipay-nmi": "Network Merchants Inc. (NMI)", "mfauveau/omnipay-pacnet": "Pacnet", "omnipay/payu": "PayU", From 596a8d3a51bb403ca07ead3ceb2c86710f3d08c5 Mon Sep 17 00:00:00 2001 From: imsqiu Date: Wed, 27 Jan 2016 21:25:18 +0800 Subject: [PATCH 129/333] Add WechatPay --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c0bc0fb..e800c516 100755 --- a/README.md +++ b/README.md @@ -165,8 +165,9 @@ Gateway | Composer Package | Maintainer [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) -[UnionPay](https://github.com/lokielse/omnipay-unionpay) | omnipay/lokielse-unionpay | [Loki Else](https://github.com/lokielse) +[UnionPay](https://github.com/lokielse/omnipay-unionpay) | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) [WeChat](https://github.com/labs7in0/omnipay-wechat) | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) +[WechatPay](https://github.com/lokielse/omnipay-wechatpay) | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) [WebMoney](https://github.com/dercoder/omnipay-webmoney) | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WePay](https://github.com/Collizo4sky/omnipay-wepay) | Collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/Collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) From f896d8c0b49ca772f3411461be899f4522dd0597 Mon Sep 17 00:00:00 2001 From: imsqiu Date: Thu, 28 Jan 2016 01:08:55 +0800 Subject: [PATCH 130/333] Add Global Alipay --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e800c516..ef07cc0f 100755 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ Gateway | Composer Package | Maintainer [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/2checkout | [Kayla Daniels](https://github.com/kayladnls) [Agms](https://github.com/agmscode/omnipay-agms) | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) +[AlipayGlobal](https://github.com/lokielse/omnipay-global-alipay) | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Kayla Daniels](https://github.com/kayladnls) From 2388d6bc2c39175f402d1dfc4160133cebe55d0a Mon Sep 17 00:00:00 2001 From: imsqiu Date: Thu, 28 Jan 2016 01:09:49 +0800 Subject: [PATCH 131/333] Add Global Alipay --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index b2138865..0a2ec7ec 100644 --- a/composer.json +++ b/composer.json @@ -117,6 +117,7 @@ "igaponov/omnipay-wirecard": "Wirecard", "justinbusschau/omnipay-secpay": "SecPay", "lokielse/omnipay-alipay": "Alipay", + "lokielse/omnipay-global-alipay": "Global Alipay", "lokielse/omnipay-unionpay": "UnionPay", "lokielse/omnipay-wechatpay": "WechatPay", "mfauveau/omnipay-nmi": "Network Merchants Inc. (NMI)", From 465c1443e6956efdd2a93c07e9cbe82a15dd5cc1 Mon Sep 17 00:00:00 2001 From: imsqiu Date: Thu, 28 Jan 2016 01:14:24 +0800 Subject: [PATCH 132/333] rename to Alipay(Global) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ef07cc0f..4d448b77 100755 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ Gateway | Composer Package | Maintainer [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/2checkout | [Kayla Daniels](https://github.com/kayladnls) [Agms](https://github.com/agmscode/omnipay-agms) | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) -[AlipayGlobal](https://github.com/lokielse/omnipay-global-alipay) | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) +[Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Kayla Daniels](https://github.com/kayladnls) From 2d805d32662aa88e29629640ccf86fb78cdfe16a Mon Sep 17 00:00:00 2001 From: Del Date: Thu, 28 Jan 2016 17:37:25 +0800 Subject: [PATCH 133/333] Sort --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4d448b77..ec6f4826 100755 --- a/README.md +++ b/README.md @@ -104,10 +104,11 @@ Gateway | Composer Package | Maintainer --- | --- | --- [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/2checkout | [Kayla Daniels](https://github.com/kayladnls) [Agms](https://github.com/agmscode/omnipay-agms) | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) -[Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) +[Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) +[BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Kayla Daniels](https://github.com/kayladnls) [CardGate](https://github.com/cardgate/omnipay-cardgate) | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Kayla Daniels](https://github.com/kayladnls) @@ -126,13 +127,16 @@ Gateway | Composer Package | Maintainer [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) +[GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) +[Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Komoju](https://github.com/dannyvink/omnipay-komoju) | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) [Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) [Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Kayla Daniels](https://github.com/kayladnls) [MultiCards](https://github.com/incube8/omnipay-multicards) | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) +[NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Kayla Daniels](https://github.com/kayladnls) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) [Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) @@ -149,32 +153,28 @@ Gateway | Composer Package | Maintainer [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) +[Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) [Portmanat](https://github.com/dercoder/omnipay-portmanat) | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) -[NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) -[GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) -[Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Posnet](https://github.com/yasinkuyu/omnipay-posnet) | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) -[BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) -[Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Kayla Daniels](https://github.com/kayladnls) +[SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Kayla Daniels](https://github.com/kayladnls) [Secure Trading](https://github.com/meebio/omnipay-secure-trading) | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) -[SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [Sisow](https://github.com/fruitcakestudio/omnipay-sisow ) | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [UnionPay](https://github.com/lokielse/omnipay-unionpay) | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) +[Veritrans](https://github.com/andylibrian/omnipay-veritrans) | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) +[WebMoney](https://github.com/dercoder/omnipay-webmoney) | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WeChat](https://github.com/labs7in0/omnipay-wechat) | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) -[WebMoney](https://github.com/dercoder/omnipay-webmoney) | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WePay](https://github.com/Collizo4sky/omnipay-wepay) | Collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/Collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Kayla Daniels](https://github.com/kayladnls) [WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) -[Veritrans](https://github.com/andylibrian/omnipay-veritrans) | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) [Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) Gateways are created and initialized like so: From 01a68c6c581ee2a718e2ba6727209a1e28995a74 Mon Sep 17 00:00:00 2001 From: ReadmeCritic Date: Tue, 2 Feb 2016 11:06:03 -0800 Subject: [PATCH 134/333] Update README URLs based on HTTP redirects --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100755 => 100644 README.md diff --git a/README.md b/README.md old mode 100755 new mode 100644 index ec6f4826..a28c85cb --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ **An easy to use, consistent payment processing library for PHP 5.3+** [![Build Status](https://travis-ci.org/thephpleague/omnipay-common.png?branch=master)](https://travis-ci.org/thephpleague/omnipay-common) -[![Latest Stable Version](https://poser.pugx.org/omnipay/omnipay/version.png)](https://packagist.org/packages/omnipay/omnipay) -[![Total Downloads](https://poser.pugx.org/omnipay/omnipay/d/total.png)](https://packagist.org/packages/omnipay/omnipay) +[![Latest Stable Version](https://poser.pugx.org/omnipay/omnipay/version)](https://packagist.org/packages/omnipay/omnipay) +[![Total Downloads](https://poser.pugx.org/omnipay/omnipay/d/total)](https://packagist.org/packages/omnipay/omnipay) Omnipay is a payment processing library for PHP. It has been designed based on ideas from [Active Merchant](http://activemerchant.org/), plus experience implementing @@ -78,7 +78,7 @@ and code style used in other Omnipay gateways. ## Installation -Omnipay is installed via [Composer](http://getcomposer.org/). For most uses, you will need to require an individual gateway: +Omnipay is installed via [Composer](https://getcomposer.org/). For most uses, you will need to require an individual gateway: ``` composer require omnipay/paypal:~2.0 @@ -116,7 +116,7 @@ Gateway | Composer Package | Maintainer [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Kayla Daniels](https://github.com/kayladnls) [Creditcall](https://github.com/meebio/omnipay-creditcall) | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) -[Cybersource SOAP](https://github.com/DABSquared/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) +[Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) [Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Kayla Daniels](https://github.com/kayladnls) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) From dc981f025d5f6d1dbb26d46a6239e05fccc66d34 Mon Sep 17 00:00:00 2001 From: Rafael Almeida Date: Fri, 12 Feb 2016 16:09:51 +0000 Subject: [PATCH 135/333] Added IfthenPay gateway to list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a28c85cb..1ec8eb89 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,7 @@ Gateway | Composer Package | Maintainer [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) +[IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Komoju](https://github.com/dannyvink/omnipay-komoju) | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) From 3772a48bb63806b3c166a8a365a264eb1132944d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joao=20Gilberto=20Magalh=C3=A3es?= Date: Thu, 18 Feb 2016 07:27:40 -0200 Subject: [PATCH 136/333] Add the Komerci gateway driver Komerci is the solution for e-commerce from Rede (former Redecard). Rede is a Brazilian acquirer. This is responsible for the authentication, authorization and capture the card data in the Rede environment. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1ec8eb89..92a6ec36 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ Gateway | Composer Package | Maintainer [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) +[Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) [Komoju](https://github.com/dannyvink/omnipay-komoju) | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) [Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) From 2890080a263bd2a4ed86d8b3447524059dad4a8f Mon Sep 17 00:00:00 2001 From: Roman Schmid Date: Tue, 23 Feb 2016 13:34:53 +0100 Subject: [PATCH 137/333] Added Postfinance gateway to list. Postfinance is a payment provider from Switzerland. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 92a6ec36..ce82c7b0 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,7 @@ Gateway | Composer Package | Maintainer [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) [Portmanat](https://github.com/dercoder/omnipay-portmanat) | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) [Posnet](https://github.com/yasinkuyu/omnipay-posnet) | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) +[Postfinance](https://github.com/bummzack/omnipay-postfinance) | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Kayla Daniels](https://github.com/kayladnls) From ddfd169c608b59cd9e878324127c717af94cc94d Mon Sep 17 00:00:00 2001 From: Agbonghama Collins Date: Thu, 10 Mar 2016 09:30:13 +0100 Subject: [PATCH 138/333] Added 2checkout improved gateway --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ce82c7b0..007e341e 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ The following gateways are available: Gateway | Composer Package | Maintainer --- | --- | --- [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/2checkout | [Kayla Daniels](https://github.com/kayladnls) +[2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) [Agms](https://github.com/agmscode/omnipay-agms) | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) @@ -174,7 +175,7 @@ Gateway | Composer Package | Maintainer [WebMoney](https://github.com/dercoder/omnipay-webmoney) | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WeChat](https://github.com/labs7in0/omnipay-wechat) | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) -[WePay](https://github.com/Collizo4sky/omnipay-wepay) | Collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/Collizo4sky) +[WePay](https://github.com/collizo4sky/omnipay-wepay) | collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Kayla Daniels](https://github.com/kayladnls) [WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) From 02ba349fb7966f64e4cbad42995dd51c7476b9fd Mon Sep 17 00:00:00 2001 From: Andy Perdomo Date: Thu, 24 Mar 2016 15:10:14 -0700 Subject: [PATCH 139/333] Adding lemonstand/omnipay-beanstream to list of gateways. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 007e341e..a7f6195f 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ For example, if your GitHub username was `santa`, and you were implementing the payment library, a good name for your composer package would be `santa/omnipay-giftpay`. If you want to transfer your gateway to the `omnipay` GitHub organization and add it -to the list of officially supported gateways, please open a pull request on the +to the list of officially supported gateways, please open a pull request on the [omnipay/common](https://github.com/thephpleague/omnipay-common) package. Before new gateways will be accepted, they must have 100% unit test code coverage, and follow the conventions and code style used in other Omnipay gateways. @@ -85,11 +85,11 @@ composer require omnipay/paypal:~2.0 ``` To install all officially supported gateways: - + ``` composer require omnipay/omnipay:~2.0 ``` - + > This will require **ALL** ~25 Omnipay gateways and is generally discouraged. @@ -109,6 +109,7 @@ Gateway | Composer Package | Maintainer [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) +[Beanstream](https://github.com/lemonstand/omnipay-beanstream) | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) [BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Kayla Daniels](https://github.com/kayladnls) [CardGate](https://github.com/cardgate/omnipay-cardgate) | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) From 06be48855014c9d11b512fa37dd6fee636a1f34e Mon Sep 17 00:00:00 2001 From: Andy Perdomo Date: Fri, 25 Mar 2016 10:51:48 -0700 Subject: [PATCH 140/333] Adding lemonstand/omnipay-elavon to list of gateways. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a7f6195f..1c36664b 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ Gateway | Composer Package | Maintainer [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) [Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Kayla Daniels](https://github.com/kayladnls) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) +[Elavon](https://github.com/lemonstand/omnipay-elavon) | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Kayla Daniels](https://github.com/kayladnls) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) From 4e49cb5c83e6777f18f8eb627c952794bc5f918a Mon Sep 17 00:00:00 2001 From: Andy Perdomo Date: Mon, 28 Mar 2016 07:10:11 -0700 Subject: [PATCH 141/333] Adding lemonstand/omnipay-vantiv to list of gateways. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1c36664b..e72164c2 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,7 @@ Gateway | Composer Package | Maintainer [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [UnionPay](https://github.com/lokielse/omnipay-unionpay) | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) +[Vantiv](https://github.com/lemonstand/omnipay-vantiv) | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) [WebMoney](https://github.com/dercoder/omnipay-webmoney) | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WeChat](https://github.com/labs7in0/omnipay-wechat) | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) From 8c94a6bd775fc252592747293c22c77d7defb6ad Mon Sep 17 00:00:00 2001 From: Lee Siong Chan Date: Fri, 1 Apr 2016 11:04:53 +0800 Subject: [PATCH 142/333] Add MOLPay driver to the list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e72164c2..744d8d9d 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ Gateway | Composer Package | Maintainer [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) [Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) [Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Kayla Daniels](https://github.com/kayladnls) +[MOLPay](https://github.com/leesiongchan/omnipay-molpay) | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) [MultiCards](https://github.com/incube8/omnipay-multicards) | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) From 8272fdbdc4fe558d94bf80d1db75cfd95a72135e Mon Sep 17 00:00:00 2001 From: Huseyin Ozturk Date: Wed, 20 Apr 2016 12:41:58 +0100 Subject: [PATCH 143/333] Adding NetPay into Gateway List --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 744d8d9d..c238d4c7 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ Gateway | Composer Package | Maintainer [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Kayla Daniels](https://github.com/kayladnls) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) [Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) +[NetPay](https://github.com/netpay/omnipay-netpay) | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) From d1d88a7714ab6b3873d8071a8a837bc66a1f0a2b Mon Sep 17 00:00:00 2001 From: Geoff Shaw Date: Wed, 11 May 2016 14:51:33 -0700 Subject: [PATCH 144/333] Adding RentMoola to Gateway list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c238d4c7..6c018957 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,7 @@ Gateway | Composer Package | Maintainer [Postfinance](https://github.com/bummzack/omnipay-postfinance) | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) +[RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Kayla Daniels](https://github.com/kayladnls) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Kayla Daniels](https://github.com/kayladnls) From e2913330b0ea998acbcfeaa1197c769fa1c2c6fb Mon Sep 17 00:00:00 2001 From: Aimeos GmbH Date: Mon, 27 Jun 2016 12:49:26 +0200 Subject: [PATCH 145/333] Adds Sofort gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6c018957..8dbd64a5 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,7 @@ Gateway | Composer Package | Maintainer [Secure Trading](https://github.com/meebio/omnipay-secure-trading) | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) [Sisow](https://github.com/fruitcakestudio/omnipay-sisow ) | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) +[Sofort](https://github.com/aimeoscom/omnipay-sofort) | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [UnionPay](https://github.com/lokielse/omnipay-unionpay) | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) From c279d7bd85105a5d82e73eced4acb447e79da103 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 7 Jul 2016 23:13:44 +0200 Subject: [PATCH 146/333] Add note about Symfony 3 --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8dbd64a5..ed227fbc 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,15 @@ is fully unit tested, and even comes with an example application to get you star * Because most payment gateways have exceptionally poor documentation * Because you are writing a shopping cart and need to support multiple gateways -**Important Note: Upgrading from < 2.0** +**Important Note: Compatibility with Symfony 3 Event Dispatcher** -If you are upgrading from a pre-2.0 version of Omnipay, please note that the -project has now been split into multiple packages. There have also been some -changes to how gateway instances are created. See the -[full release notes](https://github.com/thephpleague/omnipay/releases/tag/v2.0.0) -for more details. +If you are using Symfony 3 (or Symfony 3 components), please note that Omnipay 2.x still relies on Guzzle3, which in turn depends on symfony/event-dispatcher 2.x. This conflicts with Symfony 3 (standard install), so cannot be installed. Development for Omnipay 3.x is still in progress at the moment. + +If you are just using the Symfony 3 components (eg. stand-alone or Silex/Laravel etc), you could try to force the install of symfony/event-dispatcher:^2.8, which is compatible with both Symfony 3 components and Guzzle 3. + +``` +composer require symfony/event-dispatcher:^2.8 +``` ## TL;DR From 552ab8d47eb32e009c41a0d5696bfd659ef9d20b Mon Sep 17 00:00:00 2001 From: Del Date: Wed, 27 Jul 2016 09:19:26 +0700 Subject: [PATCH 147/333] Add Allied Wallet --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ed227fbc..8d536d68 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,7 @@ Gateway | Composer Package | Maintainer [Agms](https://github.com/agmscode/omnipay-agms) | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) +[Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) From e04d1552ca79546ae6d002724c312c02e4f23301 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 27 Jul 2016 13:02:57 +0200 Subject: [PATCH 148/333] Update maintainers See #382 --- README.md | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 8d536d68..6ff4e6b3 100644 --- a/README.md +++ b/README.md @@ -104,80 +104,80 @@ The following gateways are available: Gateway | Composer Package | Maintainer --- | --- | --- -[2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/2checkout | [Kayla Daniels](https://github.com/kayladnls) +[2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/2checkout | [Omnipay](https://github.com/thephpleague/omnipay) [2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) [Agms](https://github.com/agmscode/omnipay-agms) | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) -[Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Kayla Daniels](https://github.com/kayladnls) +[Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) [BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) -[Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Kayla Daniels](https://github.com/kayladnls) +[Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Omnipay](https://github.com/thephpleague/omnipay) [CardGate](https://github.com/cardgate/omnipay-cardgate) | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) -[CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Kayla Daniels](https://github.com/kayladnls) +[CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Omnipay](https://github.com/thephpleague/omnipay) [Checkout.com](https://github.com/fotografde/omnipay-checkoutcom) | fotografde/checkoutcom | [fotograf.de](https://github.com/fotografde) -[Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Kayla Daniels](https://github.com/kayladnls) +[Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Omnipay](https://github.com/thephpleague/omnipay) [Creditcall](https://github.com/meebio/omnipay-creditcall) | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) -[Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Kayla Daniels](https://github.com/kayladnls) +[Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Omnipay](https://github.com/thephpleague/omnipay) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [Elavon](https://github.com/lemonstand/omnipay-elavon) | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) -[eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Kayla Daniels](https://github.com/kayladnls) +[eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Del](https://github.com/delatbabel) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) [First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) -[GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Kayla Daniels](https://github.com/kayladnls) +[GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Omnipay](https://github.com/thephpleague/omnipay) [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) [Komoju](https://github.com/dannyvink/omnipay-komoju) | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) -[Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Kayla Daniels](https://github.com/kayladnls) -[Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Kayla Daniels](https://github.com/kayladnls) -[Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Kayla Daniels](https://github.com/kayladnls) +[Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Del](https://github.com/delatbabel) +[Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Omnipay](https://github.com/thephpleague/omnipay) +[Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) [MOLPay](https://github.com/leesiongchan/omnipay-molpay) | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) [MultiCards](https://github.com/incube8/omnipay-multicards) | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) -[Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Kayla Daniels](https://github.com/kayladnls) +[Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Omnipay](https://github.com/thephpleague/omnipay) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) [Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) [NetPay](https://github.com/netpay/omnipay-netpay) | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) -[PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Kayla Daniels](https://github.com/kayladnls) -[Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Kayla Daniels](https://github.com/kayladnls) -[PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Kayla Daniels](https://github.com/kayladnls) +[PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) +[Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Omnipay](https://github.com/thephpleague/omnipay) +[PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Del](https://github.com/delatbabel) [PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) -[PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Kayla Daniels](https://github.com/kayladnls) +[PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Del](https://github.com/delatbabel) [PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) -[Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Kayla Daniels](https://github.com/kayladnls) +[Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Del](https://github.com/delatbabel) [Portmanat](https://github.com/dercoder/omnipay-portmanat) | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) [Posnet](https://github.com/yasinkuyu/omnipay-posnet) | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) [Postfinance](https://github.com/bummzack/omnipay-postfinance) | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) -[Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Kayla Daniels](https://github.com/kayladnls) +[Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Jason Judge](https://github.com/judgej) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) -[SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Kayla Daniels](https://github.com/kayladnls) +[SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Omnipay](https://github.com/thephpleague/omnipay) [Secure Trading](https://github.com/meebio/omnipay-secure-trading) | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) [Sisow](https://github.com/fruitcakestudio/omnipay-sisow ) | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Sofort](https://github.com/aimeoscom/omnipay-sofort) | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) -[Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Kayla Daniels](https://github.com/kayladnls) +[Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Del](https://github.com/delatbabel) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [UnionPay](https://github.com/lokielse/omnipay-unionpay) | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) [Vantiv](https://github.com/lemonstand/omnipay-vantiv) | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) @@ -187,7 +187,7 @@ Gateway | Composer Package | Maintainer [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) [WePay](https://github.com/collizo4sky/omnipay-wepay) | collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) -[WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Kayla Daniels](https://github.com/kayladnls) +[WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) [Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) @@ -494,7 +494,7 @@ If you believe you have found a bug, please report it using the GitHub issue tra for the appropriate package, or better yet, fork the library and submit a pull request. ## Security -If you discover any security related issues, please email kayladnls@gmail.com instead of using the issue tracker. +If you discover any security related issues, please email barryvdh@gmail.com instead of using the issue tracker. ## Feedback From 8426a4235a19fc787cb9f6d15ffa072e338adc4c Mon Sep 17 00:00:00 2001 From: Del Date: Sat, 30 Jul 2016 10:46:40 +0700 Subject: [PATCH 149/333] Pick up Dummy, GoCardless, Payflow --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6ff4e6b3..c1b9f933 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ Gateway | Composer Package | Maintainer [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) -[Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Omnipay](https://github.com/thephpleague/omnipay) +[Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Del](https://github.com/delatbabel) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [Elavon](https://github.com/lemonstand/omnipay-elavon) | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Del](https://github.com/delatbabel) @@ -132,7 +132,7 @@ Gateway | Composer Package | Maintainer [First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) -[GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Omnipay](https://github.com/thephpleague/omnipay) +[GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Del](https://github.com/delatbabel) [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) @@ -154,7 +154,7 @@ Gateway | Composer Package | Maintainer [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) [PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) -[Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Omnipay](https://github.com/thephpleague/omnipay) +[Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Del](https://github.com/delatbabel) [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Del](https://github.com/delatbabel) [PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) From bfb0b1db03afb09966a84ff877af2444316614a0 Mon Sep 17 00:00:00 2001 From: Harro Verton Date: Sun, 7 Aug 2016 18:26:09 +0100 Subject: [PATCH 150/333] Added GovPayNet --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c1b9f933..69abde07 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,7 @@ Gateway | Composer Package | Maintainer [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Del](https://github.com/delatbabel) +[GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | omnipay/omnipay-govpaynet | [FlexCoders] (https://github.com/flexcoders) [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) From ddc647927939ceb469036da26a5c5b96d067ccde Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Sat, 3 Sep 2016 14:56:44 +0100 Subject: [PATCH 151/333] Added academe/omnipay-payone New suggested gateway --- composer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composer.json b/composer.json index 0a2ec7ec..c8bbe8f3 100644 --- a/composer.json +++ b/composer.json @@ -34,6 +34,7 @@ "payflow", "payment", "paymentexpress", + "payone", "paypal", "pin", "purchase", @@ -98,6 +99,7 @@ }, "suggest": { "academe/omnipay-helcim": "Helcim", + "academe/omnipay-payone": "PAYONE", "agmscode/omnipay-agms": "Agms", "alfaproject/omnipay-neteller": "Neteller", "alfaproject/omnipay-skrill": "Skrill", From fe42dbb6e8ac6daa7502f408d058502239ea91b8 Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Tue, 6 Sep 2016 15:18:32 +0100 Subject: [PATCH 152/333] Remove suggest for PAYONE --- composer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/composer.json b/composer.json index c8bbe8f3..ecd85525 100644 --- a/composer.json +++ b/composer.json @@ -99,7 +99,6 @@ }, "suggest": { "academe/omnipay-helcim": "Helcim", - "academe/omnipay-payone": "PAYONE", "agmscode/omnipay-agms": "Agms", "alfaproject/omnipay-neteller": "Neteller", "alfaproject/omnipay-skrill": "Skrill", From 2107856d75e50e7931c19b844512134f1eea88f6 Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Tue, 6 Sep 2016 15:21:02 +0100 Subject: [PATCH 153/333] Added (unofficial) PAYONE to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 69abde07..4be5ccee 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,7 @@ Gateway | Composer Package | Maintainer [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) [PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Del](https://github.com/delatbabel) [PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) +[PAYONE](https://github.com/academe/omnipay-payone) | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) From f56ec1aaedb9c9fc100d52e23cc9b4011b511cb9 Mon Sep 17 00:00:00 2001 From: Rick Mills Date: Wed, 7 Sep 2016 08:24:53 +0100 Subject: [PATCH 154/333] Added omnipay/braintree Not quite sure why it was never on the list as it's an official one. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 69abde07..0923d3a7 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ Gateway | Composer Package | Maintainer [Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) [BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) +[Braintree](https://github.com/thephpleague/omnipay-braintree) | omnipay/braintree | [Omnipay](https://github.com/thephpleague/omnipay) [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Omnipay](https://github.com/thephpleague/omnipay) [CardGate](https://github.com/cardgate/omnipay-cardgate) | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Omnipay](https://github.com/thephpleague/omnipay) From 36d52b141afe3f90957fe201f40458178ab21b0d Mon Sep 17 00:00:00 2001 From: Tomas Date: Tue, 13 Sep 2016 16:36:06 +0300 Subject: [PATCH 155/333] Add CoinGate to payment gateways list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 69abde07..0f525227 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,7 @@ Gateway | Composer Package | Maintainer [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Omnipay](https://github.com/thephpleague/omnipay) [Checkout.com](https://github.com/fotografde/omnipay-checkoutcom) | fotografde/checkoutcom | [fotograf.de](https://github.com/fotografde) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Omnipay](https://github.com/thephpleague/omnipay) +[CoinGate](https://github.com/coingate/omnipay-coingate) | coingate/omnipay-coingate | [CoinGate](https://github.com/coingate) [Creditcall](https://github.com/meebio/omnipay-creditcall) | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) From dbba2192e96ef43b6937216106fb4b089ff58c74 Mon Sep 17 00:00:00 2001 From: pinguinjkeke Date: Thu, 29 Sep 2016 00:17:15 +0300 Subject: [PATCH 156/333] Added EgopaymentRu package by pinguinjkeke --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c790f3ab..19cdf47a 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,7 @@ Gateway | Composer Package | Maintainer [DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) [Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Del](https://github.com/delatbabel) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) +[EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) [Elavon](https://github.com/lemonstand/omnipay-elavon) | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Del](https://github.com/delatbabel) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) From 9a2a518e42564f6f2e9ee4aac9e9c9957deaeab0 Mon Sep 17 00:00:00 2001 From: pinguinjkeke Date: Tue, 4 Oct 2016 19:11:28 +0300 Subject: [PATCH 157/333] Added PaymentgateRu package by pinguinjkeke --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 19cdf47a..9f1f47a4 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,7 @@ Gateway | Composer Package | Maintainer [PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) [Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Del](https://github.com/delatbabel) [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Del](https://github.com/delatbabel) +[PaymentgateRu](https://github.com/pinguinjkeke/omnipay-paymentgateru) | pinguinjkeke/omnipay-paymentgateru | [Alexander Avakov](https://github.com/pinguinjkeke) [PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) [PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Del](https://github.com/delatbabel) From 295c5bad6fecbe547b2cf54cc504c7e11e6c0f8e Mon Sep 17 00:00:00 2001 From: povilas Date: Mon, 17 Oct 2016 20:50:08 +0300 Subject: [PATCH 158/333] add paysera to README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9f1f47a4..0d5cb5e5 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,7 @@ Gateway | Composer Package | Maintainer [PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) [PAYONE](https://github.com/academe/omnipay-payone) | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) +[Paysera](https://github.com/povils/omnipay-paysera) | povils/omnipay-paysera | [Povils](https://github.com/povils) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Del](https://github.com/delatbabel) From a43e1737c5e25f93220874dbd6b790ad0df41b81 Mon Sep 17 00:00:00 2001 From: Nicky Robinson Date: Mon, 17 Oct 2016 17:24:21 -0400 Subject: [PATCH 159/333] Add Vindicia gateway Add Vindicia gateway to the list of gateways --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9f1f47a4..f3c9ffd7 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,7 @@ Gateway | Composer Package | Maintainer [UnionPay](https://github.com/lokielse/omnipay-unionpay) | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) [Vantiv](https://github.com/lemonstand/omnipay-vantiv) | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) +[Vimeo](https://github.com/vimeo/omnipay-vindicia) | vimeo/omnipay-vindicia | [Vimeo](https://github.com/vimeo) [WebMoney](https://github.com/dercoder/omnipay-webmoney) | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WeChat](https://github.com/labs7in0/omnipay-wechat) | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) From 327e143f0a8cefa72d2b3b9da443a775f7f7a81f Mon Sep 17 00:00:00 2001 From: Nicky Robinson Date: Mon, 17 Oct 2016 21:24:54 -0400 Subject: [PATCH 160/333] Fix gateway name Accidentally used my organization name --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f3c9ffd7..eafda82e 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ Gateway | Composer Package | Maintainer [UnionPay](https://github.com/lokielse/omnipay-unionpay) | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) [Vantiv](https://github.com/lemonstand/omnipay-vantiv) | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) -[Vimeo](https://github.com/vimeo/omnipay-vindicia) | vimeo/omnipay-vindicia | [Vimeo](https://github.com/vimeo) +[Vindicia](https://github.com/vimeo/omnipay-vindicia) | vimeo/omnipay-vindicia | [Vimeo](https://github.com/vimeo) [WebMoney](https://github.com/dercoder/omnipay-webmoney) | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WeChat](https://github.com/labs7in0/omnipay-wechat) | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) From a38c26dcc09b0138cc213680d215fbd90b18732f Mon Sep 17 00:00:00 2001 From: Nicky Robinson Date: Wed, 19 Oct 2016 09:15:37 -0400 Subject: [PATCH 161/333] Remove instructions to make a gateway official Because making gateways official isn't a thing anymore --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index c2469ef0..9486683f 100644 --- a/README.md +++ b/README.md @@ -72,12 +72,6 @@ it is officially supported. You should use your own username as the vendor prefi For example, if your GitHub username was `santa`, and you were implementing the `giftpay` payment library, a good name for your composer package would be `santa/omnipay-giftpay`. -If you want to transfer your gateway to the `omnipay` GitHub organization and add it -to the list of officially supported gateways, please open a pull request on the -[omnipay/common](https://github.com/thephpleague/omnipay-common) package. Before new gateways will -be accepted, they must have 100% unit test code coverage, and follow the conventions -and code style used in other Omnipay gateways. - ## Installation Omnipay is installed via [Composer](https://getcomposer.org/). For most uses, you will need to require an individual gateway: From d1d32a9aaab1ce51389b1a02c93263ff3ab6f303 Mon Sep 17 00:00:00 2001 From: Sander Hagenaars Date: Wed, 16 Nov 2016 11:17:35 +0100 Subject: [PATCH 162/333] Added quickpay omnipay gateway to list of gateways --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9486683f..df8c3359 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,7 @@ Gateway | Composer Package | Maintainer [Portmanat](https://github.com/dercoder/omnipay-portmanat) | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) [Posnet](https://github.com/yasinkuyu/omnipay-posnet) | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) [Postfinance](https://github.com/bummzack/omnipay-postfinance) | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) +[Quickpay](https://github.com/NobrainerWeb/omnipay-quickpay) | nobrainerweb/omnipay-quickpay | [Nobrainer Web](https://github.com/NobrainerWeb) [Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) From e2a5261c8b715749779090c83e6d6737e6b8cb33 Mon Sep 17 00:00:00 2001 From: Andrew Coates Date: Thu, 17 Nov 2016 13:40:42 +0000 Subject: [PATCH 163/333] Transfer ownership of coatesap's drivers These repos are being transferred to the digitickets organisation. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9486683f..c4a300f4 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ Gateway | Composer Package | Maintainer [Creditcall](https://github.com/meebio/omnipay-creditcall) | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) -[DataCash](https://github.com/coatesap/omnipay-datacash) | coatesap/omnipay-datacash | [Andrew Coates](https://github.com/coatesap) +[DataCash](https://github.com/digitickets/omnipay-datacash) | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) [Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Del](https://github.com/delatbabel) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) @@ -126,7 +126,7 @@ Gateway | Composer Package | Maintainer [eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Del](https://github.com/delatbabel) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) -[First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [Andrew Coates](https://github.com/coatesap) +[First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Del](https://github.com/delatbabel) @@ -155,7 +155,7 @@ Gateway | Composer Package | Maintainer [Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Del](https://github.com/delatbabel) [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Del](https://github.com/delatbabel) [PaymentgateRu](https://github.com/pinguinjkeke/omnipay-paymentgateru) | pinguinjkeke/omnipay-paymentgateru | [Alexander Avakov](https://github.com/pinguinjkeke) -[PaymentSense](https://github.com/coatesap/omnipay-paymentsense) | coatesap/omnipay-paymentsense | [Andrew Coates](https://github.com/coatesap) +[PaymentSense](https://github.com/digitickets/omnipay-paymentsense) | digitickets/omnipay-paymentsense | [DigiTickets](https://github.com/digitickets) [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) [PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Del](https://github.com/delatbabel) [PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) @@ -168,7 +168,7 @@ Gateway | Composer Package | Maintainer [Portmanat](https://github.com/dercoder/omnipay-portmanat) | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) [Posnet](https://github.com/yasinkuyu/omnipay-posnet) | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) [Postfinance](https://github.com/bummzack/omnipay-postfinance) | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) -[Realex](https://github.com/coatesap/omnipay-realex) | coatesap/omnipay-realex | [Andrew Coates](https://github.com/coatesap) +[Realex](https://github.com/digitickets/omnipay-realex) | digitickets/omnipay-realex | [DigiTickets](https://github.com/digitickets) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Jason Judge](https://github.com/judgej) From 99cdde71e6234e3540c27a099b505063da6f4247 Mon Sep 17 00:00:00 2001 From: Andrew Coates Date: Thu, 17 Nov 2016 15:14:38 +0000 Subject: [PATCH 164/333] Transfer ownership of Barclays driver Ownership has been transferred to digitickets. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9486683f..5c2774e1 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ Gateway | Composer Package | Maintainer [Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) -[Barclays ePDQ](https://github.com/samvaughton/omnipay-barclays-epdq) | samvaughton/omnipay-barclays-epdq | [Sam Vaughton](https://github.com/samvaughton) +[Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) [BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) [Braintree](https://github.com/thephpleague/omnipay-braintree) | omnipay/braintree | [Omnipay](https://github.com/thephpleague/omnipay) From 05022f07adc03865f6972de68cdb5be4a97717a6 Mon Sep 17 00:00:00 2001 From: Alexander Fedra Date: Thu, 1 Dec 2016 17:42:39 +0100 Subject: [PATCH 165/333] Update README.md New neteller plugin added --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a5dd1adf..38b58a04 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ Gateway | Composer Package | Maintainer [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Omnipay](https://github.com/thephpleague/omnipay) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) -[Neteller](https://github.com/alfaproject/omnipay-neteller) | alfaproject/omnipay-neteller | [João Dias](https://github.com/alfaproject) +[Neteller](https://github.com/dercoder/omnipay-neteller) | dercoder/omnipay-neteller | [Alexander Fedra](https://github.com/dercoder) [NetPay](https://github.com/netpay/omnipay-netpay) | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) From 3d5724b6b52da52131f9b7475550ab78b1cfb713 Mon Sep 17 00:00:00 2001 From: Phx Date: Tue, 3 Jan 2017 13:21:48 +0800 Subject: [PATCH 166/333] add Ping++ payment gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 38b58a04..4dd40609 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,7 @@ Gateway | Composer Package | Maintainer [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Del](https://github.com/delatbabel) +[Ping++](https://github.com/phoenixg/omnipay-pingpp) | phoenixg/omnipay-pingpp | [Huang Feng](https://github.com/phoenixg) [Portmanat](https://github.com/dercoder/omnipay-portmanat) | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) [Posnet](https://github.com/yasinkuyu/omnipay-posnet) | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) [Postfinance](https://github.com/bummzack/omnipay-postfinance) | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) From 38864cc8e56aed199198b5966d6e4829cbc80b82 Mon Sep 17 00:00:00 2001 From: dpfaffenbauer Date: Mon, 9 Jan 2017 15:56:31 +0100 Subject: [PATCH 167/333] add datatrans omnipay implementation --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4dd40609..445a33bd 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,7 @@ Gateway | Composer Package | Maintainer [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) [Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) +[Datatrans](https://github.com/w-vision/omnipay-datatrans) | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) Gateways are created and initialized like so: From 467522dbd9906ce9ef0f7a8bcf64a81deefec716 Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Tue, 10 Jan 2017 13:23:08 +0000 Subject: [PATCH 168/333] Note on legacy use of complete* being replaced by acceptNotification --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4dd40609..99e36442 100644 --- a/README.md +++ b/README.md @@ -474,6 +474,12 @@ $notification->getMessage(); // Additional message, if any, provided by the gate // update the status of the corresponding transaction in your database ``` +**Note:** some earlier gateways used the `completeAuthorize` and `completePurchase` messages to handle the incoming +notifications. These are being converted and the `complete*` messages deprecated. +They won't be removed in OmniPay 2.x, but it is advisable to switch to the `acceptNotification` message when convenient. +An example is Sage Pay Server [completeAuthorize](https://github.com/thephpleague/omnipay-sagepay/blob/master/src/ServerGateway.php#L81) +which is now handled by [acceptNotification](https://github.com/thephpleague/omnipay-sagepay/blob/master/src/ServerGateway.php#L40). + ## Example Application An example application is provided in the [omnipay/example](https://github.com/thephpleague/omnipay-example) repo. From 8754233212f3f0f4ca444332a22aac11530ddd1a Mon Sep 17 00:00:00 2001 From: Bradley Wogsland Date: Wed, 18 Jan 2017 02:43:23 -0600 Subject: [PATCH 169/333] updated license year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index d49d0a9d..9e489ad7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2012-2013 Adrian Macneil +Copyright (c) 2012-2017 Adrian Macneil Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the From 15cd59ae411ba976a325fbb47bb7c8f6e4b266d0 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 6 Mar 2017 20:52:02 +1300 Subject: [PATCH 170/333] Document how to implement test mode Given that implementers of Omnipay are looking to have one piece of code work with multiple gateways testMode provides some challenges. I'm not sure the best way to deal with this. I would argue that Authorize.net should implement setTestMode to mean 'use sandbox account' since that is the normal meaning for other gateways, but that would not be backward compatible. At minimum I thought I could document how people should implement this to achieve the desired result --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index baef0b81..6b1709ea 100644 --- a/README.md +++ b/README.md @@ -437,6 +437,25 @@ try { } ``` +## Test mode and developer mode + Most gateways allow you to set up a sandbox or developer account which uses a different url + and credentials. Some also allow you to do test transactions against the live site, which does + not result in a live transaction. + + Gateways that implement only the developer account (most of them) call it testMode. Authorize.net, + however, implements both and refers to this mode as developerMode. + + When implementing with multiple gateways you should use a construct along the lines of the following: + + if ($is_developer_mode) + { + if (method_exists($gateway, 'setDeveloperMode')) { + $gateway->setDeveloperMode(TRUE); + } else { + $gateway->setTestMode(TRUE); + } + } + ## Token Billing Token billing allows you to store a credit card with your gateway, and charge it at a later date. From d97b94515d747c6bf31f922ad6830f54121b3f56 Mon Sep 17 00:00:00 2001 From: Del Date: Sat, 18 Mar 2017 16:29:39 +0700 Subject: [PATCH 171/333] Update README.md Update README.md to fix issue as noted in https://github.com/thephpleague/omnipay-multisafepay/issues/21 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6b1709ea..74052b98 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,12 @@ $gateway->setApiKey('abc123'); $formData = array('number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123'); $response = $gateway->purchase(array('amount' => '10.00', 'currency' => 'USD', 'card' => $formData))->send(); -if ($response->isSuccessful()) { - // payment was successful: update database - print_r($response); -} elseif ($response->isRedirect()) { +if ($response->isRedirect()) { // redirect to offsite payment gateway $response->redirect(); +} elseif ($response->isSuccessful()) { + // payment was successful: update database + print_r($response); } else { // payment failed: display message to customer echo $response->getMessage(); From 86488638873fd7cdb55f27db8d92c91ab240f3ec Mon Sep 17 00:00:00 2001 From: Del Date: Tue, 21 Mar 2017 16:24:38 +0700 Subject: [PATCH 172/333] Update README.md Please don't add more issues about guzzle 3. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 74052b98..08c1d9b3 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ If you are just using the Symfony 3 components (eg. stand-alone or Silex/Laravel composer require symfony/event-dispatcher:^2.8 ``` +**Please do not submit any more issues or pull requests for updating Omnipay from Guzzle 3 to GuzzleHttp. The update is going to happen in Omnipay version 3.0 which is not yet ready for release.** + ## TL;DR Just want to see some code? From 6c80b56ed44e64c77bd6d104facfd03f74249c7d Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Fri, 21 Apr 2017 15:52:38 +0200 Subject: [PATCH 173/333] Update to 3.x --- composer.json | 73 +++++++++------------------------------------------ 1 file changed, 12 insertions(+), 61 deletions(-) diff --git a/composer.json b/composer.json index ecd85525..05289c3a 100644 --- a/composer.json +++ b/composer.json @@ -61,77 +61,28 @@ "name": "Kayla Daniels", "email": "kayladnls@gmail.com" }, + { + "name": "Barry vd. Heuvel", + "email": "barryvdh@gmail.com" + }, { "name": "Omnipay Community", "homepage": "https://github.com/thephpleague/omnipay/graphs/contributors" } ], "require": { - "omnipay/2checkout": "~2.0", - "omnipay/authorizenet": "~2.0", - "omnipay/buckaroo": "~2.0", - "omnipay/cardsave": "~2.0", - "omnipay/coinbase": "~2.0", - "omnipay/common": "~2.3", - "omnipay/dummy": "~2.0", - "omnipay/eway": "~2.0", - "omnipay/firstdata": "~2.0", - "omnipay/gocardless": "~2.0", - "omnipay/manual": "~2.0", - "omnipay/migs": "~2.0", - "omnipay/mollie": "~3.0", - "omnipay/multisafepay": "~2.0", - "omnipay/netaxept": "~2.0", - "omnipay/netbanx": "~2.0", - "omnipay/payfast": "~2.0", - "omnipay/payflow": "~2.0", - "omnipay/paymentexpress": "~2.0", - "omnipay/paypal": "~2.0", - "omnipay/pin": "~2.0", - "omnipay/sagepay": "~2.0", - "omnipay/securepay": "~2.0", - "omnipay/stripe": "~2.0", - "omnipay/targetpay": "~2.0", - "omnipay/worldpay": "~2.0" + "php": "^5.6|^7", + "omnipay/common": "~3.0", + "php-http/guzzle6-adapter": "^1.1" }, "require-dev": { - "omnipay/tests": "~2.0" - }, - "suggest": { - "academe/omnipay-helcim": "Helcim", - "agmscode/omnipay-agms": "Agms", - "alfaproject/omnipay-neteller": "Neteller", - "alfaproject/omnipay-skrill": "Skrill", - "andreas22/omnipay-fasapay": "Fasapay", - "andylibrian/omnipay-veritrans": "Veritrans", - "cardgate/omnipay-cardgate": "CardGate", - "coatesap/omnipay-datacash": "DataCash", - "coatesap/omnipay-paymentsense": "PaymentSense", - "coatesap/omnipay-realex": "Realex", - "dabsquared/omnipay-cybersource-soap": "Cybersource SOAP", - "delatbabel/omnipay-fatzebra": "Fat Zebra", - "dercoder/omnipay-ecopayz": "ecoPayz", - "dercoder/omnipay-globalcloudpay": "Globalcloudpay", - "descubraomundo/omnipay-pagarme": "Pagar.me", - "dioscouri/omnipay-cybersource": "Cybersource", - "fruitcakestudio/omnipay-sisow": "Sisow", - "igaponov/omnipay-wirecard": "Wirecard", - "justinbusschau/omnipay-secpay": "SecPay", - "lokielse/omnipay-alipay": "Alipay", - "lokielse/omnipay-global-alipay": "Global Alipay", - "lokielse/omnipay-unionpay": "UnionPay", - "lokielse/omnipay-wechatpay": "WechatPay", - "mfauveau/omnipay-nmi": "Network Merchants Inc. (NMI)", - "mfauveau/omnipay-pacnet": "Pacnet", - "omnipay/payu": "PayU", - "paypronl/omnipay-paypro": "PayPro", - "samvaughton/omnipay-barclays-epdq": "Barclays ePDQ", - "teaandcode/omnipay-worldpay-xml": "WorldPay XML Direct", - "fotografde/omnipay-checkoutcom": "Checkout.com" + "omnipay/tests": "~3.0" }, "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "3.0.x-dev" } - } + }, + "minimum-stability": "dev", + "prefer-stable": true } From 7447b2cf9896c82976c9619a1eba63af5beb8bdb Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Fri, 21 Apr 2017 16:14:08 +0200 Subject: [PATCH 174/333] Update travis --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index c527189d..e0f1f23b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,20 @@ language: php php: - - 5.3 - - 5.4 - - 5.5 + - 5.6 + - 7.0 + - 7.1 + - hhvm env: - - SYMFONY_VERSION="2.1" GUZZLE_VERSION="3.1" - - SYMFONY_VERSION="2.*" GUZZLE_VERSION="3.1" - - SYMFONY_VERSION="2.1" GUZZLE_VERSION="3.*" - - SYMFONY_VERSION="2.*" GUZZLE_VERSION="3.*" + - SYMFONY_VERSION="2.1" + - SYMFONY_VERSION="2.*" + - SYMFONY_VERSION="3.0" + - SYMFONY_VERSION="3.*" before_script: - composer self-update - composer --version - composer require symfony/http-foundation:${SYMFONY_VERSION} --no-update - - composer require guzzle/http:${GUZZLE_VERSION} --no-update script: composer install -n --dev --prefer-source From 865801b8a9ee2eab1f06083caed95c59d6b70c9b Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sat, 22 Apr 2017 13:13:13 +0200 Subject: [PATCH 175/333] Tweak composer/travis --- .travis.yml | 2 +- composer.json | 18 +++--------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index e0f1f23b..ef8903e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,4 +17,4 @@ before_script: - composer --version - composer require symfony/http-foundation:${SYMFONY_VERSION} --no-update -script: composer install -n --dev --prefer-source +script: composer install --prefer-dist --no-interaction \ No newline at end of file diff --git a/composer.json b/composer.json index 05289c3a..04db0959 100644 --- a/composer.json +++ b/composer.json @@ -50,33 +50,21 @@ "payU", "checkoutcom" ], - "homepage": "https://github.com/thephpleague/omnipay", + "homepage": "http://omnipay.thephpleague.com/", "license": "MIT", "authors": [ { "name": "Adrian Macneil", "email": "adrian@adrianmacneil.com" - }, - { - "name": "Kayla Daniels", - "email": "kayladnls@gmail.com" - }, - { - "name": "Barry vd. Heuvel", - "email": "barryvdh@gmail.com" - }, - { - "name": "Omnipay Community", - "homepage": "https://github.com/thephpleague/omnipay/graphs/contributors" } ], "require": { "php": "^5.6|^7", - "omnipay/common": "~3.0", + "omnipay/common": "^3", "php-http/guzzle6-adapter": "^1.1" }, "require-dev": { - "omnipay/tests": "~3.0" + "omnipay/tests": "^3" }, "extra": { "branch-alias": { From 692f4d871f2c0d3a65e820090e68d61a53f38c76 Mon Sep 17 00:00:00 2001 From: Martin van de Belt Date: Sat, 6 May 2017 13:33:06 +0200 Subject: [PATCH 176/333] Added Omnipay Oppwa driver to supported gateways list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 08c1d9b3..d24ca1df 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,7 @@ Gateway | Composer Package | Maintainer [Neteller](https://github.com/dercoder/omnipay-neteller) | dercoder/omnipay-neteller | [Alexander Fedra](https://github.com/dercoder) [NetPay](https://github.com/netpay/omnipay-netpay) | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) +[Oppwa](https://github.com/vdbelt/omnipay-oppwa) | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) [PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) From 15bc847a0b3fbb14aa5c5aa6d64160ce3454dde7 Mon Sep 17 00:00:00 2001 From: Sid Bachtiar Date: Wed, 10 May 2017 12:43:23 +1200 Subject: [PATCH 177/333] Added POLi to the list of gateways --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 08c1d9b3..bc247547 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,7 @@ Gateway | Composer Package | Maintainer [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Del](https://github.com/delatbabel) [Ping++](https://github.com/phoenixg/omnipay-pingpp) | phoenixg/omnipay-pingpp | [Huang Feng](https://github.com/phoenixg) +[POLi](https://github.com/burnbright/omnipay-poli) | burnbright/omnipay-poli | [Sid](https://github.com/onlinesid) [Portmanat](https://github.com/dercoder/omnipay-portmanat) | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) [Posnet](https://github.com/yasinkuyu/omnipay-posnet) | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) [Postfinance](https://github.com/bummzack/omnipay-postfinance) | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) From a4aff17385433db57291427da989bd792f3fe984 Mon Sep 17 00:00:00 2001 From: Pe Ell Date: Sun, 21 May 2017 05:03:20 +0300 Subject: [PATCH 178/333] Fix contracts URLs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 491420e6..f079b76c 100644 --- a/README.md +++ b/README.md @@ -93,8 +93,8 @@ composer require omnipay/omnipay:~2.0 ## Payment Gateways -All payment gateways must implement [GatewayInterface](https://github.com/thephpleague/omnipay-common/blob/master/src/Omnipay/Common/GatewayInterface.php), and will usually -extend [AbstractGateway](https://github.com/thephpleague/omnipay-common/blob/master/src/Omnipay/Common/AbstractGateway.php) for basic functionality. +All payment gateways must implement [GatewayInterface](https://github.com/thephpleague/omnipay-common/blob/master/src/Common/GatewayInterface.php), and will usually +extend [AbstractGateway](https://github.com/thephpleague/omnipay-common/blob/master/src/Common/AbstractGateway.php) for basic functionality. The following gateways are available: From cec33adf683a660f1bff9dfbeddf5c5b0249a544 Mon Sep 17 00:00:00 2001 From: Sid Bachtiar Date: Tue, 30 May 2017 03:37:35 +1200 Subject: [PATCH 179/333] Added Payment Express / DPS (A2A) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f079b76c..5aedc6a5 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,7 @@ Gateway | Composer Package | Maintainer [PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) [Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Del](https://github.com/delatbabel) [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Del](https://github.com/delatbabel) +[PaymentExpress / DPS (A2A)](https://github.com/onlinesid/omnipay-paymentexpress-a2a) | onlinesid/omnipay-paymentexpress-a2a | [Sid](https://github.com/onlinesid) [PaymentgateRu](https://github.com/pinguinjkeke/omnipay-paymentgateru) | pinguinjkeke/omnipay-paymentgateru | [Alexander Avakov](https://github.com/pinguinjkeke) [PaymentSense](https://github.com/digitickets/omnipay-paymentsense) | digitickets/omnipay-paymentsense | [DigiTickets](https://github.com/digitickets) [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) From 884a79dae2d4ae1b34b5c17f5250770fe659fe4e Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 6 Jun 2017 11:22:19 +0200 Subject: [PATCH 180/333] Remove hhvm Fixes #438 --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ef8903e4..0a98da50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ php: - 5.6 - 7.0 - 7.1 - - hhvm env: - SYMFONY_VERSION="2.1" @@ -17,4 +16,4 @@ before_script: - composer --version - composer require symfony/http-foundation:${SYMFONY_VERSION} --no-update -script: composer install --prefer-dist --no-interaction \ No newline at end of file +script: composer install --prefer-dist --no-interaction From 0809c995f4ef8703cd12875cdb029a836815cb31 Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Thu, 8 Jun 2017 12:28:37 +0700 Subject: [PATCH 181/333] Added new Judo Pay gateway Who maintains this list? http://omnipay.thephpleague.com/gateways/third-party/ --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5aedc6a5..a50bf1d3 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,7 @@ Gateway | Composer Package | Maintainer [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) +[Judo Pay](https://github.com/Transportersio/omnipay-judopay) | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) [Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) [Komoju](https://github.com/dannyvink/omnipay-komoju) | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Del](https://github.com/delatbabel) From a669c6d9c3c2651c9759be432debc1c16d47a86e Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Thu, 8 Jun 2017 11:55:53 +0100 Subject: [PATCH 182/333] Add academe/omnipay-wirecard This is an alternative to the existing igaponov/omnipay-wirecard, more suited to automated configuration in frameworks. Just different - use the one that most closely fits yoru needs. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 99e36442..9979a4e4 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,7 @@ Gateway | Composer Package | Maintainer [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) [WePay](https://github.com/collizo4sky/omnipay-wepay) | collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) +[Wirecard](https://github.com/academe/omnipay-wirecard) | academe/omnipay-wirecard | [Jason Judge](https://github.com/judgej) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) [Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) From ec6c77defe25f8574021e927c772c281cbaca703 Mon Sep 17 00:00:00 2001 From: Del Date: Sat, 10 Jun 2017 11:08:55 +0700 Subject: [PATCH 183/333] Add VivaPayments --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9dd70720..c32272a9 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,7 @@ Gateway | Composer Package | Maintainer [Vantiv](https://github.com/lemonstand/omnipay-vantiv) | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) [Vindicia](https://github.com/vimeo/omnipay-vindicia) | vimeo/omnipay-vindicia | [Vimeo](https://github.com/vimeo) +[VivaPayments](https://github.com/delatbabel/omnipay-vivapayments) | delatbabel/omnipay-vivapayments | [Del](https://github.com/delatbabel) [WebMoney](https://github.com/dercoder/omnipay-webmoney) | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WeChat](https://github.com/labs7in0/omnipay-wechat) | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) From f7f82b33e850024e62b24b7d3f3fe1f110142541 Mon Sep 17 00:00:00 2001 From: Yasin Kuyu Date: Mon, 12 Jun 2017 16:45:01 +0300 Subject: [PATCH 184/333] Create README.md Added Paratika (Asseco) gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c32272a9..55269bc6 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ Gateway | Composer Package | Maintainer [MOLPay](https://github.com/leesiongchan/omnipay-molpay) | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) [MultiCards](https://github.com/incube8/omnipay-multicards) | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) +[Paratika (Asseco)](https://github.com/yasinkuyu/omnipay-paratika) | yasinkuyu/omnipay-paratika | [Yasin Kuyu](https://github.com/yasinkuyu) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Omnipay](https://github.com/thephpleague/omnipay) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) From b5cca240116139f61dd2825ecadf946718305026 Mon Sep 17 00:00:00 2001 From: Yasin Kuyu Date: Tue, 13 Jun 2017 03:17:00 +0300 Subject: [PATCH 185/333] Added Paratika gateway --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 55269bc6..87d8711e 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,6 @@ Gateway | Composer Package | Maintainer [MOLPay](https://github.com/leesiongchan/omnipay-molpay) | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) [MultiCards](https://github.com/incube8/omnipay-multicards) | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) -[Paratika (Asseco)](https://github.com/yasinkuyu/omnipay-paratika) | yasinkuyu/omnipay-paratika | [Yasin Kuyu](https://github.com/yasinkuyu) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Omnipay](https://github.com/thephpleague/omnipay) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) @@ -156,6 +155,7 @@ Gateway | Composer Package | Maintainer [Oppwa](https://github.com/vdbelt/omnipay-oppwa) | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) +[Paratika (Asseco)](https://github.com/yasinkuyu/omnipay-paratika) | yasinkuyu/omnipay-paratika | [Yasin Kuyu](https://github.com/yasinkuyu) [PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) [Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Del](https://github.com/delatbabel) [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Del](https://github.com/delatbabel) From 1c3303d3fca87e24add5beabcc12ceccf790afc0 Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Mon, 26 Jun 2017 13:07:37 +0700 Subject: [PATCH 186/333] Add Square module --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a50bf1d3..89de4808 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,7 @@ Gateway | Composer Package | Maintainer [Sisow](https://github.com/fruitcakestudio/omnipay-sisow ) | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) [Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Sofort](https://github.com/aimeoscom/omnipay-sofort) | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) +[Square](https://github.com/Transportersio/omnipay-square) | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) [Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Del](https://github.com/delatbabel) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [UnionPay](https://github.com/lokielse/omnipay-unionpay) | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) From 4942b1d042224208109ca84dccc3360e649caa0d Mon Sep 17 00:00:00 2001 From: Andres Garcia Date: Mon, 7 Aug 2017 15:18:14 -0400 Subject: [PATCH 187/333] Add support for PaySimple Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e55a30cb..dea74123 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,7 @@ Gateway | Composer Package | Maintainer [PAYONE](https://github.com/academe/omnipay-payone) | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [Paysera](https://github.com/povils/omnipay-paysera) | povils/omnipay-paysera | [Povils](https://github.com/povils) +[PaySimple](https://github.com/dranes/omnipay-paysimple) | dranes/omnipay-paysimple | [Dranes](https://github.com/dranes) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Del](https://github.com/delatbabel) From e8c23658c40f53fb357e701db4bd4d0b71d7d63d Mon Sep 17 00:00:00 2001 From: Nicky Robinson Date: Thu, 10 Aug 2017 13:46:41 -0400 Subject: [PATCH 188/333] Add BlueSnap to list of supported gateways --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e55a30cb..20cab512 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,7 @@ Gateway | Composer Package | Maintainer [Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) [BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) +[BlueSnap](https://github.com/vimeo/omnipay-bluesnap) | vimeo/omnipay-bluesnap | [Vimeo](https://github.com/vimeo) [Braintree](https://github.com/thephpleague/omnipay-braintree) | omnipay/braintree | [Omnipay](https://github.com/thephpleague/omnipay) [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Omnipay](https://github.com/thephpleague/omnipay) [CardGate](https://github.com/cardgate/omnipay-cardgate) | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) From 94c59cca4e05a1caaec67b4f6d757567c66c1c78 Mon Sep 17 00:00:00 2001 From: spsingh Date: Wed, 16 Aug 2017 11:18:05 +0530 Subject: [PATCH 189/333] Add support for cloudbanking CloudBanking support added http://cloudbanking.com.au/ --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4d912c6a..939dc1c9 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,7 @@ Gateway | Composer Package | Maintainer [CardGate](https://github.com/cardgate/omnipay-cardgate) | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Omnipay](https://github.com/thephpleague/omnipay) [Checkout.com](https://github.com/fotografde/omnipay-checkoutcom) | fotografde/checkoutcom | [fotograf.de](https://github.com/fotografde) +[CloudBanking](https://github.com/spsingh/omnipay-cloudbanking) | cloudbanking/omnipay-cloudbanking | [Cloudbanking](http://cloudbanking.com.au/) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Omnipay](https://github.com/thephpleague/omnipay) [CoinGate](https://github.com/coingate/omnipay-coingate) | coingate/omnipay-coingate | [CoinGate](https://github.com/coingate) [Creditcall](https://github.com/meebio/omnipay-creditcall) | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) From 266d535b7f50e2667575e594a16bace6fcf5c698 Mon Sep 17 00:00:00 2001 From: Anton Minin Date: Thu, 24 Aug 2017 11:23:53 +0300 Subject: [PATCH 190/333] Update Yandex.Money repository and package name --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 939dc1c9..0dcad878 100644 --- a/README.md +++ b/README.md @@ -206,7 +206,7 @@ Gateway | Composer Package | Maintainer [Wirecard](https://github.com/academe/omnipay-wirecard) | academe/omnipay-wirecard | [Jason Judge](https://github.com/judgej) [WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) -[Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) +[Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) [Datatrans](https://github.com/w-vision/omnipay-datatrans) | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) Gateways are created and initialized like so: From 05bd0e8b81157e8d7dda560aa3143b3f1993b2e6 Mon Sep 17 00:00:00 2001 From: Theo Kouzelis Date: Tue, 5 Sep 2017 14:23:22 +0100 Subject: [PATCH 191/333] Make example expiry date in the future Example throws an InvalidCreditCardException --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 939dc1c9..295bddda 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ use Omnipay\Omnipay; $gateway = Omnipay::create('Stripe'); $gateway->setApiKey('abc123'); -$formData = array('number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123'); +$formData = array('number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2030', 'cvv' => '123'); $response = $gateway->purchase(array('amount' => '10.00', 'currency' => 'USD', 'card' => $formData))->send(); if ($response->isRedirect()) { From 110162ae05af153671709204405b942da69db41a Mon Sep 17 00:00:00 2001 From: Theo Kouzelis Date: Thu, 7 Sep 2017 14:07:51 +0100 Subject: [PATCH 192/333] Add missing code block markdown to README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 295bddda..abb7e486 100644 --- a/README.md +++ b/README.md @@ -459,15 +459,15 @@ try { however, implements both and refers to this mode as developerMode. When implementing with multiple gateways you should use a construct along the lines of the following: - - if ($is_developer_mode) - { +```php +if ($is_developer_mode) { if (method_exists($gateway, 'setDeveloperMode')) { $gateway->setDeveloperMode(TRUE); } else { - $gateway->setTestMode(TRUE); - } - } + $gateway->setTestMode(TRUE); + } +} +``` ## Token Billing From 544aaa90c4d2bfe11c1f5b7b6578f40ecaf5a060 Mon Sep 17 00:00:00 2001 From: Noel Light-Hilary Date: Fri, 15 Sep 2017 16:14:13 +0100 Subject: [PATCH 193/333] Add Worldpay CG Hosted gateway and disambiguate Worldpay options --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 295bddda..87194336 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ Gateway | Composer Package | Maintainer [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Del](https://github.com/delatbabel) -[GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | omnipay/omnipay-govpaynet | [FlexCoders] (https://github.com/flexcoders) +[GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) @@ -204,8 +204,9 @@ Gateway | Composer Package | Maintainer [WePay](https://github.com/collizo4sky/omnipay-wepay) | collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [Wirecard](https://github.com/academe/omnipay-wirecard) | academe/omnipay-wirecard | [Jason Judge](https://github.com/judgej) -[WorldPay](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) -[WorldPay XML Direct](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) +[WorldPay XML Direct Corporate Gateway](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) +[WorldPay XML Hosted Corporate Gateway](https://github.com/comicrelief/omnipay-worldpay-cg-hosted) | comicrelief/omnipay-worldpay-cg-hosted | [Comic Relief](https://github.com/comicrelief) +[WorldPay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) [Datatrans](https://github.com/w-vision/omnipay-datatrans) | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) From cb1a68275088427b0a19be81960c0ebb5e80b506 Mon Sep 17 00:00:00 2001 From: Noel Light-Hilary Date: Fri, 15 Sep 2017 16:16:11 +0100 Subject: [PATCH 194/333] Capitalise Worldpay in line with their use --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 87194336..5e2d4256 100644 --- a/README.md +++ b/README.md @@ -204,9 +204,9 @@ Gateway | Composer Package | Maintainer [WePay](https://github.com/collizo4sky/omnipay-wepay) | collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [Wirecard](https://github.com/academe/omnipay-wirecard) | academe/omnipay-wirecard | [Jason Judge](https://github.com/judgej) -[WorldPay XML Direct Corporate Gateway](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) -[WorldPay XML Hosted Corporate Gateway](https://github.com/comicrelief/omnipay-worldpay-cg-hosted) | comicrelief/omnipay-worldpay-cg-hosted | [Comic Relief](https://github.com/comicrelief) -[WorldPay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) +[Worldpay XML Direct Corporate Gateway](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) +[Worldpay XML Hosted Corporate Gateway](https://github.com/comicrelief/omnipay-worldpay-cg-hosted) | comicrelief/omnipay-worldpay-cg-hosted | [Comic Relief](https://github.com/comicrelief) +[Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [Yandex.Money](https://github.com/aTastyCookie/yandexmoney_omnipay) | aTastyCookie/yandexmoney_omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) [Datatrans](https://github.com/w-vision/omnipay-datatrans) | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) From 5467ebb4cea27283a9b415ab0e7f404d60299bca Mon Sep 17 00:00:00 2001 From: Colin O'Dell Date: Mon, 25 Sep 2017 08:56:50 -0400 Subject: [PATCH 195/333] Add link to payment gateway for free / zero-amount orders --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c1673085..edcf6a5f 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,7 @@ Gateway | Composer Package | Maintainer [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) [First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) +[Free / Zero](https://github.com/colinodell/omnipay-zero) | colinodell/omnipay-zero | [Colin O'Dell](https://github.com/colinodell) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Del](https://github.com/delatbabel) [GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) From e4a830759b82e66991cc54861823d1762a243eae Mon Sep 17 00:00:00 2001 From: Colin O'Dell Date: Mon, 25 Sep 2017 08:57:43 -0400 Subject: [PATCH 196/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index edcf6a5f..5b5bce10 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ Gateway | Composer Package | Maintainer [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) [First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) -[Free / Zero](https://github.com/colinodell/omnipay-zero) | colinodell/omnipay-zero | [Colin O'Dell](https://github.com/colinodell) +[Free / Zero Amount](https://github.com/colinodell/omnipay-zero) | colinodell/omnipay-zero | [Colin O'Dell](https://github.com/colinodell) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Del](https://github.com/delatbabel) [GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) From 6aaeb8885239423424b9604e234ead4992cfb6d9 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Sun, 3 Dec 2017 19:30:16 -0200 Subject: [PATCH 197/333] Test against PHP 7.2 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 0a98da50..9c4934ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ php: - 5.6 - 7.0 - 7.1 + - 7.2 env: - SYMFONY_VERSION="2.1" From 9ce3b333c79b3caeff62734fc9be01d9481845cc Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 4 Dec 2017 16:55:01 +0800 Subject: [PATCH 198/333] Add MyCard Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5b5bce10..cfab2a3c 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,7 @@ Gateway | Composer Package | Maintainer [MOLPay](https://github.com/leesiongchan/omnipay-molpay) | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) [MultiCards](https://github.com/incube8/omnipay-multicards) | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) +[MyCard](https://github.com/xxtime/omnipay-mycard) | xxtime/omnipay-mycard | [Joe Chu](https://github.com/xxtime) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Omnipay](https://github.com/thephpleague/omnipay) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) From a2c079bd3f107f065c99f70f5e455e7472d9e349 Mon Sep 17 00:00:00 2001 From: Novikov Andrey Date: Tue, 19 Dec 2017 18:18:23 +0300 Subject: [PATCH 199/333] Add Sberbank implementation acquiring gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5b5bce10..49b3ba70 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,7 @@ Gateway | Composer Package | Maintainer [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Jason Judge](https://github.com/judgej) +[Sberbank](https://github.com/AndrewNovikof/omnipay-sberbank) | andrewnovikof/omnipay-sberbank | [Andrew Novikov](https://github.com/AndrewNovikof) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Omnipay](https://github.com/thephpleague/omnipay) [Secure Trading](https://github.com/meebio/omnipay-secure-trading) | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) From e16849a754cc4910d69d219c8e0d4792348543d6 Mon Sep 17 00:00:00 2001 From: Rafael da Silva Almeida Date: Wed, 3 Jan 2018 19:45:35 -0200 Subject: [PATCH 200/333] Fix Common/CreditCard.php link The link to Common/CreditCard.php was outdated and this commit fixes it. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b5bce10..302c0e16 100644 --- a/README.md +++ b/README.md @@ -245,7 +245,7 @@ gateway (other than by the methods they support). ## Credit Card / Payment Form Input -User form input is directed to an [CreditCard](https://github.com/thephpleague/omnipay-common/blob/master/src/Omnipay/Common/CreditCard.php) +User form input is directed to an [CreditCard](https://github.com/thephpleague/omnipay-common/blob/master/src/Common/CreditCard.php) object. This provides a safe way to accept user input. The `CreditCard` object has the following fields: From e72338a029c281bab1acd64a593e521b9b8b4e59 Mon Sep 17 00:00:00 2001 From: piotrjozwiak <> Date: Mon, 15 Jan 2018 18:14:58 +0100 Subject: [PATCH 201/333] Tpay gateway created --- README.md | 1 + composer.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b5bce10..50005807 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,7 @@ Gateway | Composer Package | Maintainer [Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) [Datatrans](https://github.com/w-vision/omnipay-datatrans) | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) +[Tpay](https://github.com/tpay-com/omnipay-tpay) | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) Gateways are created and initialized like so: diff --git a/composer.json b/composer.json index 04db0959..4e62b599 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,8 @@ "twocheckout", "worldpay", "payU", - "checkoutcom" + "checkoutcom", + "tpay" ], "homepage": "http://omnipay.thephpleague.com/", "license": "MIT", From 0706cabd697793957cac986b12ff45cb3aa72625 Mon Sep 17 00:00:00 2001 From: Burak USGURLU Date: Wed, 17 Jan 2018 16:12:13 +0300 Subject: [PATCH 202/333] Added Docdata Payments --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5b5bce10..20dc8f8a 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ Gateway | Composer Package | Maintainer [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/digitickets/omnipay-datacash) | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) +[Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) [Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Del](https://github.com/delatbabel) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) From 32acf17553f75fcafdb9cb56724e2306129ad75f Mon Sep 17 00:00:00 2001 From: James Nuttall Date: Fri, 19 Jan 2018 15:11:36 +0000 Subject: [PATCH 203/333] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5b5bce10..f0e21816 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,7 @@ Gateway | Composer Package | Maintainer [First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Free / Zero Amount](https://github.com/colinodell/omnipay-zero) | colinodell/omnipay-zero | [Colin O'Dell](https://github.com/colinodell) +[GiroCheckout](https://github.com/academe/Omnipay-GiroCheckout) | academe/omnipay-girocheckout | [Jason Judge](https://github.com/judgej) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Del](https://github.com/delatbabel) [GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) From ff1897e74a2541a367656be3f3cb890a94d91223 Mon Sep 17 00:00:00 2001 From: Martin Beukman Date: Thu, 1 Feb 2018 10:24:55 +0100 Subject: [PATCH 204/333] add Klarna Checkout package to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5b5bce10..3ef8f7d2 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,7 @@ Gateway | Composer Package | Maintainer [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Judo Pay](https://github.com/Transportersio/omnipay-judopay) | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) +[Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) [Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) [Komoju](https://github.com/dannyvink/omnipay-komoju) | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Del](https://github.com/delatbabel) From ef82b81a3e2e33d5d6cf2341cbca41ceea0398e8 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 20 Mar 2018 09:18:39 +0100 Subject: [PATCH 205/333] Show 2.x/3.x versions --- README.md | 236 +++++++++++++++++++++++++++--------------------------- 1 file changed, 118 insertions(+), 118 deletions(-) diff --git a/README.md b/README.md index 1a949513..34a2a6ab 100644 --- a/README.md +++ b/README.md @@ -98,124 +98,124 @@ extend [AbstractGateway](https://github.com/thephpleague/omnipay-common/blob/mas The following gateways are available: -Gateway | Composer Package | Maintainer ---- | --- | --- -[2Checkout](https://github.com/thephpleague/omnipay-2checkout) | omnipay/2checkout | [Omnipay](https://github.com/thephpleague/omnipay) -[2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) -[Agms](https://github.com/agmscode/omnipay-agms) | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) -[Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) -[Alipay](https://github.com/lokielse/omnipay-alipay) | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) -[Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) -[Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) -[Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) -[Beanstream](https://github.com/lemonstand/omnipay-beanstream) | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) -[BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) -[BlueSnap](https://github.com/vimeo/omnipay-bluesnap) | vimeo/omnipay-bluesnap | [Vimeo](https://github.com/vimeo) -[Braintree](https://github.com/thephpleague/omnipay-braintree) | omnipay/braintree | [Omnipay](https://github.com/thephpleague/omnipay) -[Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | omnipay/buckaroo | [Omnipay](https://github.com/thephpleague/omnipay) -[CardGate](https://github.com/cardgate/omnipay-cardgate) | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) -[CardSave](https://github.com/thephpleague/omnipay-cardsave) | omnipay/cardsave | [Omnipay](https://github.com/thephpleague/omnipay) -[Checkout.com](https://github.com/fotografde/omnipay-checkoutcom) | fotografde/checkoutcom | [fotograf.de](https://github.com/fotografde) -[CloudBanking](https://github.com/spsingh/omnipay-cloudbanking) | cloudbanking/omnipay-cloudbanking | [Cloudbanking](http://cloudbanking.com.au/) -[Coinbase](https://github.com/thephpleague/omnipay-coinbase) | omnipay/coinbase | [Omnipay](https://github.com/thephpleague/omnipay) -[CoinGate](https://github.com/coingate/omnipay-coingate) | coingate/omnipay-coingate | [CoinGate](https://github.com/coingate) -[Creditcall](https://github.com/meebio/omnipay-creditcall) | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) -[Cybersource](https://github.com/dioscouri/omnipay-cybersource) | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) -[Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) -[DataCash](https://github.com/digitickets/omnipay-datacash) | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) -[Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) -[Dummy](https://github.com/thephpleague/omnipay-dummy) | omnipay/dummy | [Del](https://github.com/delatbabel) -[ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) -[EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) -[Elavon](https://github.com/lemonstand/omnipay-elavon) | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) -[eWAY](https://github.com/thephpleague/omnipay-eway) | omnipay/eway | [Del](https://github.com/delatbabel) -[Fasapay](https://github.com/andreas22/omnipay-fasapay) | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) -[Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) -[First Data](https://github.com/thephpleague/omnipay-firstdata) | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) -[Flo2cash](https://github.com/guisea/omnipay-flo2cash) | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) -[Free / Zero Amount](https://github.com/colinodell/omnipay-zero) | colinodell/omnipay-zero | [Colin O'Dell](https://github.com/colinodell) -[GiroCheckout](https://github.com/academe/Omnipay-GiroCheckout) | academe/omnipay-girocheckout | [Jason Judge](https://github.com/judgej) -[Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) -[GoCardless](https://github.com/thephpleague/omnipay-gocardless) | omnipay/gocardless | [Del](https://github.com/delatbabel) -[GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) -[GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) -[Helcim](https://github.com/academe/omnipay-helcim) | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) -[IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) -[Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) -[Judo Pay](https://github.com/Transportersio/omnipay-judopay) | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) -[Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) -[Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) -[Komoju](https://github.com/dannyvink/omnipay-komoju) | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) -[Manual](https://github.com/thephpleague/omnipay-manual) | omnipay/manual | [Del](https://github.com/delatbabel) -[Migs](https://github.com/thephpleague/omnipay-migs) | omnipay/migs | [Omnipay](https://github.com/thephpleague/omnipay) -[Mollie](https://github.com/thephpleague/omnipay-mollie) | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) -[MOLPay](https://github.com/leesiongchan/omnipay-molpay) | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) -[MultiCards](https://github.com/incube8/omnipay-multicards) | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) -[MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) -[MyCard](https://github.com/xxtime/omnipay-mycard) | xxtime/omnipay-mycard | [Joe Chu](https://github.com/xxtime) -[NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) -[Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | omnipay/netaxept | [Omnipay](https://github.com/thephpleague/omnipay) -[Netbanx](https://github.com/thephpleague/omnipay-netbanx) | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) -[Neteller](https://github.com/dercoder/omnipay-neteller) | dercoder/omnipay-neteller | [Alexander Fedra](https://github.com/dercoder) -[NetPay](https://github.com/netpay/omnipay-netpay) | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) -[Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) -[Oppwa](https://github.com/vdbelt/omnipay-oppwa) | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) -[Pacnet](https://github.com/mfauveau/omnipay-pacnet) | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) -[Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) -[Paratika (Asseco)](https://github.com/yasinkuyu/omnipay-paratika) | yasinkuyu/omnipay-paratika | [Yasin Kuyu](https://github.com/yasinkuyu) -[PayFast](https://github.com/thephpleague/omnipay-payfast) | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) -[Payflow](https://github.com/thephpleague/omnipay-payflow) | omnipay/payflow | [Del](https://github.com/delatbabel) -[PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | omnipay/paymentexpress | [Del](https://github.com/delatbabel) -[PaymentExpress / DPS (A2A)](https://github.com/onlinesid/omnipay-paymentexpress-a2a) | onlinesid/omnipay-paymentexpress-a2a | [Sid](https://github.com/onlinesid) -[PaymentgateRu](https://github.com/pinguinjkeke/omnipay-paymentgateru) | pinguinjkeke/omnipay-paymentgateru | [Alexander Avakov](https://github.com/pinguinjkeke) -[PaymentSense](https://github.com/digitickets/omnipay-paymentsense) | digitickets/omnipay-paymentsense | [DigiTickets](https://github.com/digitickets) -[PaymentWall](https://github.com/incube8/omnipay-paymentwall) | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) -[PayPal](https://github.com/thephpleague/omnipay-paypal) | omnipay/paypal | [Del](https://github.com/delatbabel) -[PayPro](https://github.com/payproNL/omnipay-paypro) | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) -[PAYONE](https://github.com/academe/omnipay-payone) | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) -[Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) -[Paysera](https://github.com/povils/omnipay-paysera) | povils/omnipay-paysera | [Povils](https://github.com/povils) -[PaySimple](https://github.com/dranes/omnipay-paysimple) | dranes/omnipay-paysimple | [Dranes](https://github.com/dranes) -[PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) -[PayU](https://github.com/efesaid/omnipay-payu) | omnipay/payu | [efesaid](https://github.com/efesaid) -[Pin Payments](https://github.com/thephpleague/omnipay-pin) | omnipay/pin | [Del](https://github.com/delatbabel) -[Ping++](https://github.com/phoenixg/omnipay-pingpp) | phoenixg/omnipay-pingpp | [Huang Feng](https://github.com/phoenixg) -[POLi](https://github.com/burnbright/omnipay-poli) | burnbright/omnipay-poli | [Sid](https://github.com/onlinesid) -[Portmanat](https://github.com/dercoder/omnipay-portmanat) | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) -[Posnet](https://github.com/yasinkuyu/omnipay-posnet) | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) -[Postfinance](https://github.com/bummzack/omnipay-postfinance) | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) -[Quickpay](https://github.com/NobrainerWeb/omnipay-quickpay) | nobrainerweb/omnipay-quickpay | [Nobrainer Web](https://github.com/NobrainerWeb) -[Realex](https://github.com/digitickets/omnipay-realex) | digitickets/omnipay-realex | [DigiTickets](https://github.com/digitickets) -[RedSys](https://github.com/jsampedro77/sermepa-omnipay) | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) -[RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) -[Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | omnipay/sagepay | [Jason Judge](https://github.com/judgej) -[Sberbank](https://github.com/AndrewNovikof/omnipay-sberbank) | andrewnovikof/omnipay-sberbank | [Andrew Novikov](https://github.com/AndrewNovikof) -[SecPay](https://github.com/justinbusschau/omnipay-secpay) | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) -[SecurePay](https://github.com/thephpleague/omnipay-securepay) | omnipay/securepay | [Omnipay](https://github.com/thephpleague/omnipay) -[Secure Trading](https://github.com/meebio/omnipay-secure-trading) | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) -[Sisow](https://github.com/fruitcakestudio/omnipay-sisow ) | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) -[Skrill](https://github.com/alfaproject/omnipay-skrill) | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) -[Sofort](https://github.com/aimeoscom/omnipay-sofort) | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) -[Square](https://github.com/Transportersio/omnipay-square) | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) -[Stripe](https://github.com/thephpleague/omnipay-stripe) | omnipay/stripe | [Del](https://github.com/delatbabel) -[TargetPay](https://github.com/thephpleague/omnipay-targetpay) | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) -[UnionPay](https://github.com/lokielse/omnipay-unionpay) | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) -[Vantiv](https://github.com/lemonstand/omnipay-vantiv) | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) -[Veritrans](https://github.com/andylibrian/omnipay-veritrans) | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) -[Vindicia](https://github.com/vimeo/omnipay-vindicia) | vimeo/omnipay-vindicia | [Vimeo](https://github.com/vimeo) -[VivaPayments](https://github.com/delatbabel/omnipay-vivapayments) | delatbabel/omnipay-vivapayments | [Del](https://github.com/delatbabel) -[WebMoney](https://github.com/dercoder/omnipay-webmoney) | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) -[WeChat](https://github.com/labs7in0/omnipay-wechat) | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) -[WechatPay](https://github.com/lokielse/omnipay-wechatpay) | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) -[WePay](https://github.com/collizo4sky/omnipay-wepay) | collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/collizo4sky) -[Wirecard](https://github.com/igaponov/omnipay-wirecard) | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) -[Wirecard](https://github.com/academe/omnipay-wirecard) | academe/omnipay-wirecard | [Jason Judge](https://github.com/judgej) -[Worldpay XML Direct Corporate Gateway](https://github.com/teaandcode/omnipay-worldpay-xml) | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) -[Worldpay XML Hosted Corporate Gateway](https://github.com/comicrelief/omnipay-worldpay-cg-hosted) | comicrelief/omnipay-worldpay-cg-hosted | [Comic Relief](https://github.com/comicrelief) -[Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) -[Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) -[Datatrans](https://github.com/w-vision/omnipay-datatrans) | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) -[Tpay](https://github.com/tpay-com/omnipay-tpay) | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) +Gateway | 2.x | 3.x | Composer Package | Maintainer +--- | --- | --- | --- | --- +[2Checkout](https://github.com/thephpleague/omnipay-2checkout) | ✓ | - | omnipay/2checkout | [Omnipay](https://github.com/thephpleague/omnipay) +[2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | ✓ | - | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) +[Agms](https://github.com/agmscode/omnipay-agms) | ✓ | - | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) +[Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | ✓ | - | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) +[Alipay](https://github.com/lokielse/omnipay-alipay) | ✓ | - | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) +[Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | ✓ | - | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) +[Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | ✓ | - | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) +[Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | ✓ | - | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) +[Beanstream](https://github.com/lemonstand/omnipay-beanstream) | ✓ | - | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) +[BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | ✓ | - | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) +[BlueSnap](https://github.com/vimeo/omnipay-bluesnap) | ✓ | - | vimeo/omnipay-bluesnap | [Vimeo](https://github.com/vimeo) +[Braintree](https://github.com/thephpleague/omnipay-braintree) | ✓ | - | omnipay/braintree | [Omnipay](https://github.com/thephpleague/omnipay) +[Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | ✓ | - | omnipay/buckaroo | [Omnipay](https://github.com/thephpleague/omnipay) +[CardGate](https://github.com/cardgate/omnipay-cardgate) | ✓ | - | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) +[CardSave](https://github.com/thephpleague/omnipay-cardsave) | ✓ | - | omnipay/cardsave | [Omnipay](https://github.com/thephpleague/omnipay) +[Checkout.com](https://github.com/fotografde/omnipay-checkoutcom) | ✓ | - | fotografde/checkoutcom | [fotograf.de](https://github.com/fotografde) +[CloudBanking](https://github.com/spsingh/omnipay-cloudbanking) | ✓ | - | cloudbanking/omnipay-cloudbanking | [Cloudbanking](http://cloudbanking.com.au/) +[Coinbase](https://github.com/thephpleague/omnipay-coinbase) | ✓ | - | omnipay/coinbase | [Omnipay](https://github.com/thephpleague/omnipay) +[CoinGate](https://github.com/coingate/omnipay-coingate) | ✓ | - | coingate/omnipay-coingate | [CoinGate](https://github.com/coingate) +[Creditcall](https://github.com/meebio/omnipay-creditcall) | ✓ | - | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) +[Cybersource](https://github.com/dioscouri/omnipay-cybersource) | ✓ | - | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) +[Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | ✓ | - | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) +[DataCash](https://github.com/digitickets/omnipay-datacash) | ✓ | - | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) +[Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | ✓ | - | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) +[Dummy](https://github.com/thephpleague/omnipay-dummy) | ✓ | - | omnipay/dummy | [Del](https://github.com/delatbabel) +[ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | ✓ | - | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) +[EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | ✓ | - | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) +[Elavon](https://github.com/lemonstand/omnipay-elavon) | ✓ | - | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) +[eWAY](https://github.com/thephpleague/omnipay-eway) | ✓ | - | omnipay/eway | [Del](https://github.com/delatbabel) +[Fasapay](https://github.com/andreas22/omnipay-fasapay) | ✓ | - | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) +[Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | ✓ | - | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) +[First Data](https://github.com/thephpleague/omnipay-firstdata) | ✓ | - | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) +[Flo2cash](https://github.com/guisea/omnipay-flo2cash) | ✓ | - | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) +[Free / Zero Amount](https://github.com/colinodell/omnipay-zero) | ✓ | - | colinodell/omnipay-zero | [Colin O'Dell](https://github.com/colinodell) +[GiroCheckout](https://github.com/academe/Omnipay-GiroCheckout) | ✓ | - | academe/omnipay-girocheckout | [Jason Judge](https://github.com/judgej) +[Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | ✓ | - | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) +[GoCardless](https://github.com/thephpleague/omnipay-gocardless) | ✓ | - | omnipay/gocardless | [Del](https://github.com/delatbabel) +[GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | ✓ | - | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) +[GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | ✓ | - | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) +[Helcim](https://github.com/academe/omnipay-helcim) | ✓ | - | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) +[IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ✓ | - | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) +[Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | ✓ | - | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) +[Judo Pay](https://github.com/Transportersio/omnipay-judopay) | ✓ | - | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) +[Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | ✓ | - | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) +[Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | ✓ | - | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) +[Komoju](https://github.com/dannyvink/omnipay-komoju) | ✓ | - | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) +[Manual](https://github.com/thephpleague/omnipay-manual) | ✓ | - | omnipay/manual | [Del](https://github.com/delatbabel) +[Migs](https://github.com/thephpleague/omnipay-migs) | ✓ | - | omnipay/migs | [Omnipay](https://github.com/thephpleague/omnipay) +[Mollie](https://github.com/thephpleague/omnipay-mollie) | ✓ | - | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) +[MOLPay](https://github.com/leesiongchan/omnipay-molpay) | ✓ | - | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) +[MultiCards](https://github.com/incube8/omnipay-multicards) | ✓ | - | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) +[MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | ✓ | - | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) +[MyCard](https://github.com/xxtime/omnipay-mycard) | ✓ | - | xxtime/omnipay-mycard | [Joe Chu](https://github.com/xxtime) +[NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | ✓ | - | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) +[Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | ✓ | - | omnipay/netaxept | [Omnipay](https://github.com/thephpleague/omnipay) +[Netbanx](https://github.com/thephpleague/omnipay-netbanx) | ✓ | - | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) +[Neteller](https://github.com/dercoder/omnipay-neteller) | ✓ | - | dercoder/omnipay-neteller | [Alexander Fedra](https://github.com/dercoder) +[NetPay](https://github.com/netpay/omnipay-netpay) | ✓ | - | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) +[Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | ✓ | - | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) +[Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | - | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) +[Pacnet](https://github.com/mfauveau/omnipay-pacnet) | ✓ | - | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) +[Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | ✓ | - | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) +[Paratika (Asseco)](https://github.com/yasinkuyu/omnipay-paratika) | ✓ | - | yasinkuyu/omnipay-paratika | [Yasin Kuyu](https://github.com/yasinkuyu) +[PayFast](https://github.com/thephpleague/omnipay-payfast) | ✓ | - | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) +[Payflow](https://github.com/thephpleague/omnipay-payflow) | ✓ | - | omnipay/payflow | [Del](https://github.com/delatbabel) +[PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | ✓ | - | omnipay/paymentexpress | [Del](https://github.com/delatbabel) +[PaymentExpress / DPS (A2A)](https://github.com/onlinesid/omnipay-paymentexpress-a2a) | ✓ | - | onlinesid/omnipay-paymentexpress-a2a | [Sid](https://github.com/onlinesid) +[PaymentgateRu](https://github.com/pinguinjkeke/omnipay-paymentgateru) | ✓ | - | pinguinjkeke/omnipay-paymentgateru | [Alexander Avakov](https://github.com/pinguinjkeke) +[PaymentSense](https://github.com/digitickets/omnipay-paymentsense) | ✓ | - | digitickets/omnipay-paymentsense | [DigiTickets](https://github.com/digitickets) +[PaymentWall](https://github.com/incube8/omnipay-paymentwall) | ✓ | - | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) +[PayPal](https://github.com/thephpleague/omnipay-paypal) | ✓ | - | omnipay/paypal | [Del](https://github.com/delatbabel) +[PayPro](https://github.com/payproNL/omnipay-paypro) | ✓ | - | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) +[PAYONE](https://github.com/academe/omnipay-payone) | ✓ | - | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) +[Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | ✓ | - | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) +[Paysera](https://github.com/povils/omnipay-paysera) | ✓ | - | povils/omnipay-paysera | [Povils](https://github.com/povils) +[PaySimple](https://github.com/dranes/omnipay-paysimple) | ✓ | - | dranes/omnipay-paysimple | [Dranes](https://github.com/dranes) +[PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | ✓ | - | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) +[PayU](https://github.com/efesaid/omnipay-payu) | ✓ | - | omnipay/payu | [efesaid](https://github.com/efesaid) +[Pin Payments](https://github.com/thephpleague/omnipay-pin) | ✓ | - | omnipay/pin | [Del](https://github.com/delatbabel) +[Ping++](https://github.com/phoenixg/omnipay-pingpp) | ✓ | - | phoenixg/omnipay-pingpp | [Huang Feng](https://github.com/phoenixg) +[POLi](https://github.com/burnbright/omnipay-poli) | ✓ | - | burnbright/omnipay-poli | [Sid](https://github.com/onlinesid) +[Portmanat](https://github.com/dercoder/omnipay-portmanat) | ✓ | - | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) +[Posnet](https://github.com/yasinkuyu/omnipay-posnet) | ✓ | - | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) +[Postfinance](https://github.com/bummzack/omnipay-postfinance) | ✓ | - | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) +[Quickpay](https://github.com/NobrainerWeb/omnipay-quickpay) | ✓ | - | nobrainerweb/omnipay-quickpay | [Nobrainer Web](https://github.com/NobrainerWeb) +[Realex](https://github.com/digitickets/omnipay-realex) | ✓ | - | digitickets/omnipay-realex | [DigiTickets](https://github.com/digitickets) +[RedSys](https://github.com/jsampedro77/sermepa-omnipay) | ✓ | - | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) +[RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | ✓ | - | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) +[Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | ✓ | - | omnipay/sagepay | [Jason Judge](https://github.com/judgej) +[Sberbank](https://github.com/AndrewNovikof/omnipay-sberbank) | ✓ | - | andrewnovikof/omnipay-sberbank | [Andrew Novikov](https://github.com/AndrewNovikof) +[SecPay](https://github.com/justinbusschau/omnipay-secpay) | ✓ | - | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) +[SecurePay](https://github.com/thephpleague/omnipay-securepay) | ✓ | - | omnipay/securepay | [Omnipay](https://github.com/thephpleague/omnipay) +[Secure Trading](https://github.com/meebio/omnipay-secure-trading) | ✓ | - | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) +[Sisow](https://github.com/fruitcakestudio/omnipay-sisow) | ✓ | - | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) +[Skrill](https://github.com/alfaproject/omnipay-skrill) | ✓ | - | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) +[Sofort](https://github.com/aimeoscom/omnipay-sofort) | ✓ | - | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) +[Square](https://github.com/Transportersio/omnipay-square) | ✓ | - | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) +[Stripe](https://github.com/thephpleague/omnipay-stripe) | ✓ | - | omnipay/stripe | [Del](https://github.com/delatbabel) +[TargetPay](https://github.com/thephpleague/omnipay-targetpay) | ✓ | - | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) +[UnionPay](https://github.com/lokielse/omnipay-unionpay) | ✓ | - | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) +[Vantiv](https://github.com/lemonstand/omnipay-vantiv) | ✓ | - | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) +[Veritrans](https://github.com/andylibrian/omnipay-veritrans) | ✓ | - | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) +[Vindicia](https://github.com/vimeo/omnipay-vindicia) | ✓ | - | vimeo/omnipay-vindicia | [Vimeo](https://github.com/vimeo) +[VivaPayments](https://github.com/delatbabel/omnipay-vivapayments) | ✓ | - | delatbabel/omnipay-vivapayments | [Del](https://github.com/delatbabel) +[WebMoney](https://github.com/dercoder/omnipay-webmoney) | ✓ | - | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) +[WeChat](https://github.com/labs7in0/omnipay-wechat) | ✓ | - | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) +[WechatPay](https://github.com/lokielse/omnipay-wechatpay) | ✓ | - | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) +[WePay](https://github.com/collizo4sky/omnipay-wepay) | ✓ | - | collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/collizo4sky) +[Wirecard](https://github.com/igaponov/omnipay-wirecard) | ✓ | - | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) +[Wirecard](https://github.com/academe/omnipay-wirecard) | ✓ | - | academe/omnipay-wirecard | [Jason Judge](https://github.com/judgej) +[Worldpay XML Direct Corporate Gateway](https://github.com/teaandcode/omnipay-worldpay-xml) | ✓ | - | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) +[Worldpay XML Hosted Corporate Gateway](https://github.com/comicrelief/omnipay-worldpay-cg-hosted) | ✓ | - | comicrelief/omnipay-worldpay-cg-hosted | [Comic Relief](https://github.com/comicrelief) +[Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | ✓ | - | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) +[Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | ✓ | - | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) +[Datatrans](https://github.com/w-vision/omnipay-datatrans) | ✓ | - | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) +[Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) Gateways are created and initialized like so: From a91a1695faea7ce4482faf79775ec11f66faa6de Mon Sep 17 00:00:00 2001 From: Alexander Avakov Date: Mon, 26 Mar 2018 14:47:30 +0300 Subject: [PATCH 206/333] Mark pinguinjkeke/omnipay-paymentgateru as 3.x Already implemented support + tests are green ;) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 34a2a6ab..8cbb7db0 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Payflow](https://github.com/thephpleague/omnipay-payflow) | ✓ | - | omnipay/payflow | [Del](https://github.com/delatbabel) [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | ✓ | - | omnipay/paymentexpress | [Del](https://github.com/delatbabel) [PaymentExpress / DPS (A2A)](https://github.com/onlinesid/omnipay-paymentexpress-a2a) | ✓ | - | onlinesid/omnipay-paymentexpress-a2a | [Sid](https://github.com/onlinesid) -[PaymentgateRu](https://github.com/pinguinjkeke/omnipay-paymentgateru) | ✓ | - | pinguinjkeke/omnipay-paymentgateru | [Alexander Avakov](https://github.com/pinguinjkeke) +[PaymentgateRu](https://github.com/pinguinjkeke/omnipay-paymentgateru) | ✓ | ✓ | pinguinjkeke/omnipay-paymentgateru | [Alexander Avakov](https://github.com/pinguinjkeke) [PaymentSense](https://github.com/digitickets/omnipay-paymentsense) | ✓ | - | digitickets/omnipay-paymentsense | [DigiTickets](https://github.com/digitickets) [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | ✓ | - | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) [PayPal](https://github.com/thephpleague/omnipay-paypal) | ✓ | - | omnipay/paypal | [Del](https://github.com/delatbabel) From af631a3a97b662cb51af7b90074c5b439c28b727 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 28 Mar 2018 14:32:01 +0200 Subject: [PATCH 207/333] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34a2a6ab..9cdfcab9 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Komoju](https://github.com/dannyvink/omnipay-komoju) | ✓ | - | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Manual](https://github.com/thephpleague/omnipay-manual) | ✓ | - | omnipay/manual | [Del](https://github.com/delatbabel) [Migs](https://github.com/thephpleague/omnipay-migs) | ✓ | - | omnipay/migs | [Omnipay](https://github.com/thephpleague/omnipay) -[Mollie](https://github.com/thephpleague/omnipay-mollie) | ✓ | - | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) +[Mollie](https://github.com/thephpleague/omnipay-mollie) | ✓ | ✓ | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) [MOLPay](https://github.com/leesiongchan/omnipay-molpay) | ✓ | - | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) [MultiCards](https://github.com/incube8/omnipay-multicards) | ✓ | - | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | ✓ | - | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) @@ -193,7 +193,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [SecPay](https://github.com/justinbusschau/omnipay-secpay) | ✓ | - | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [SecurePay](https://github.com/thephpleague/omnipay-securepay) | ✓ | - | omnipay/securepay | [Omnipay](https://github.com/thephpleague/omnipay) [Secure Trading](https://github.com/meebio/omnipay-secure-trading) | ✓ | - | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) -[Sisow](https://github.com/fruitcakestudio/omnipay-sisow) | ✓ | - | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) +[Sisow](https://github.com/fruitcakestudio/omnipay-sisow) | ✓ | ✓ | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) [Skrill](https://github.com/alfaproject/omnipay-skrill) | ✓ | - | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Sofort](https://github.com/aimeoscom/omnipay-sofort) | ✓ | - | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) [Square](https://github.com/Transportersio/omnipay-square) | ✓ | - | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) From caef0e58bfebcfc5a468685880e605da2ca36698 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 28 Mar 2018 16:53:06 +0200 Subject: [PATCH 208/333] Add magnius --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 31495e84..ea5d87d0 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | ✓ | - | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) [Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | ✓ | - | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) [Komoju](https://github.com/dannyvink/omnipay-komoju) | ✓ | - | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) +[Magnius](https://github.com/fruitcake/omnipay-magnius) | - | ✓ | fruitcake/omnipay-magnius | [Fruitcake](https://github.com/fruitcake) [Manual](https://github.com/thephpleague/omnipay-manual) | ✓ | - | omnipay/manual | [Del](https://github.com/delatbabel) [Migs](https://github.com/thephpleague/omnipay-migs) | ✓ | - | omnipay/migs | [Omnipay](https://github.com/thephpleague/omnipay) [Mollie](https://github.com/thephpleague/omnipay-mollie) | ✓ | ✓ | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) @@ -171,7 +172,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PaymentSense](https://github.com/digitickets/omnipay-paymentsense) | ✓ | - | digitickets/omnipay-paymentsense | [DigiTickets](https://github.com/digitickets) [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | ✓ | - | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) [PayPal](https://github.com/thephpleague/omnipay-paypal) | ✓ | - | omnipay/paypal | [Del](https://github.com/delatbabel) -[PayPro](https://github.com/payproNL/omnipay-paypro) | ✓ | - | paypronl/omnipay-paypro | [Fruitcake Studio](https://github.com/fruitcakestudio) +[PayPro](https://github.com/payproNL/omnipay-paypro) | ✓ | - | paypronl/omnipay-paypro | [Fruitcake](https://github.com/fruitcake) [PAYONE](https://github.com/academe/omnipay-payone) | ✓ | - | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | ✓ | - | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [Paysera](https://github.com/povils/omnipay-paysera) | ✓ | - | povils/omnipay-paysera | [Povils](https://github.com/povils) @@ -193,7 +194,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [SecPay](https://github.com/justinbusschau/omnipay-secpay) | ✓ | - | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [SecurePay](https://github.com/thephpleague/omnipay-securepay) | ✓ | - | omnipay/securepay | [Omnipay](https://github.com/thephpleague/omnipay) [Secure Trading](https://github.com/meebio/omnipay-secure-trading) | ✓ | - | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) -[Sisow](https://github.com/fruitcakestudio/omnipay-sisow) | ✓ | ✓ | fruitcakestudio/omnipay-sisow | [Fruitcake Studio](https://github.com/fruitcakestudio) +[Sisow](https://github.com/fruitcake/omnipay-sisow) | ✓ | ✓ | fruitcakestudio/omnipay-sisow | [Fruitcake](https://github.com/fruitcake) [Skrill](https://github.com/alfaproject/omnipay-skrill) | ✓ | - | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Sofort](https://github.com/aimeoscom/omnipay-sofort) | ✓ | - | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) [Square](https://github.com/Transportersio/omnipay-square) | ✓ | - | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) From e4d0681517432774df5e5f43c1763513ffe009d8 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 28 Mar 2018 17:09:50 +0200 Subject: [PATCH 209/333] Mark Stripe as 3.x ready --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ea5d87d0..0e021bd2 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Skrill](https://github.com/alfaproject/omnipay-skrill) | ✓ | - | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Sofort](https://github.com/aimeoscom/omnipay-sofort) | ✓ | - | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) [Square](https://github.com/Transportersio/omnipay-square) | ✓ | - | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) -[Stripe](https://github.com/thephpleague/omnipay-stripe) | ✓ | - | omnipay/stripe | [Del](https://github.com/delatbabel) +[Stripe](https://github.com/thephpleague/omnipay-stripe) | ✓ | ✓ | omnipay/stripe | [Del](https://github.com/delatbabel) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | ✓ | - | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [UnionPay](https://github.com/lokielse/omnipay-unionpay) | ✓ | - | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) [Vantiv](https://github.com/lemonstand/omnipay-vantiv) | ✓ | - | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) From 4c710f343d6b0d91a803b91fcbb7f625fade9b2c Mon Sep 17 00:00:00 2001 From: Xu Ding Date: Thu, 29 Mar 2018 09:15:24 +0800 Subject: [PATCH 210/333] Added eGHL Added eGHL Driver --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0e021bd2..74bfdc7f 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [DataCash](https://github.com/digitickets/omnipay-datacash) | ✓ | - | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) [Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | ✓ | - | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) [Dummy](https://github.com/thephpleague/omnipay-dummy) | ✓ | - | omnipay/dummy | [Del](https://github.com/delatbabel) +[eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | - | ddilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | ✓ | - | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | ✓ | - | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) [Elavon](https://github.com/lemonstand/omnipay-elavon) | ✓ | - | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) From 0ffcab8e35e2e2f07ab985d7332c453c08f584a8 Mon Sep 17 00:00:00 2001 From: Loki Else Date: Fri, 30 Mar 2018 15:35:30 +0800 Subject: [PATCH 211/333] Check 3.x support for omnipay-alipay --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 74bfdc7f..9c00deda 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | ✓ | - | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) [Agms](https://github.com/agmscode/omnipay-agms) | ✓ | - | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | ✓ | - | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) -[Alipay](https://github.com/lokielse/omnipay-alipay) | ✓ | - | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) +[Alipay](https://github.com/lokielse/omnipay-alipay) | ✓ | ✓ | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | ✓ | - | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | ✓ | - | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) [Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | ✓ | - | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) From b895294c81810ad76602cff0123cf96542f85ca1 Mon Sep 17 00:00:00 2001 From: Loki Else Date: Fri, 30 Mar 2018 16:14:04 +0800 Subject: [PATCH 212/333] Check v3.x support for omnipay-wechatpay --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c00deda..a678630e 100644 --- a/README.md +++ b/README.md @@ -208,7 +208,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [VivaPayments](https://github.com/delatbabel/omnipay-vivapayments) | ✓ | - | delatbabel/omnipay-vivapayments | [Del](https://github.com/delatbabel) [WebMoney](https://github.com/dercoder/omnipay-webmoney) | ✓ | - | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WeChat](https://github.com/labs7in0/omnipay-wechat) | ✓ | - | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) -[WechatPay](https://github.com/lokielse/omnipay-wechatpay) | ✓ | - | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) +[WechatPay](https://github.com/lokielse/omnipay-wechatpay) | ✓ | ✓ | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) [WePay](https://github.com/collizo4sky/omnipay-wepay) | ✓ | - | collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/collizo4sky) [Wirecard](https://github.com/igaponov/omnipay-wirecard) | ✓ | - | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [Wirecard](https://github.com/academe/omnipay-wirecard) | ✓ | - | academe/omnipay-wirecard | [Jason Judge](https://github.com/judgej) From 8dc38077216a0ab155e2b5405a4b8e88c2295e2f Mon Sep 17 00:00:00 2001 From: Loki Else Date: Fri, 30 Mar 2018 16:15:06 +0800 Subject: [PATCH 213/333] Check v3.x support for omnipay-unionpay --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a678630e..59ab3a0a 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Square](https://github.com/Transportersio/omnipay-square) | ✓ | - | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) [Stripe](https://github.com/thephpleague/omnipay-stripe) | ✓ | ✓ | omnipay/stripe | [Del](https://github.com/delatbabel) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | ✓ | - | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) -[UnionPay](https://github.com/lokielse/omnipay-unionpay) | ✓ | - | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) +[UnionPay](https://github.com/lokielse/omnipay-unionpay) | ✓ | ✓ | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) [Vantiv](https://github.com/lemonstand/omnipay-vantiv) | ✓ | - | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | ✓ | - | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) [Vindicia](https://github.com/vimeo/omnipay-vindicia) | ✓ | - | vimeo/omnipay-vindicia | [Vimeo](https://github.com/vimeo) From 5663894af5cbbdf314458e9f4ccf889ec78ff9a1 Mon Sep 17 00:00:00 2001 From: Loki Else Date: Fri, 30 Mar 2018 16:16:02 +0800 Subject: [PATCH 214/333] Check v3.x support for omnipay-global-alipay --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 59ab3a0a..0dcb181e 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | ✓ | - | omnipay/2checkout | [Omnipay](https://github.com/thephpleague/omnipay) [2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | ✓ | - | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) [Agms](https://github.com/agmscode/omnipay-agms) | ✓ | - | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) -[Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | ✓ | - | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) +[Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | ✓ | ✓ | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) [Alipay](https://github.com/lokielse/omnipay-alipay) | ✓ | ✓ | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | ✓ | - | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | ✓ | - | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) From 31ea0b47ad70b03d7b5cf8d85a8e7db65870f80b Mon Sep 17 00:00:00 2001 From: Nocks Date: Tue, 10 Apr 2018 13:22:28 +0200 Subject: [PATCH 215/333] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 74bfdc7f..85ccb433 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Neteller](https://github.com/dercoder/omnipay-neteller) | ✓ | - | dercoder/omnipay-neteller | [Alexander Fedra](https://github.com/dercoder) [NetPay](https://github.com/netpay/omnipay-netpay) | ✓ | - | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | ✓ | - | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) +[Nocks](https://github.com/nocksapp/checkout-omnipay) | ✓ | - | nocksapp/omnipay-nocks | [Nocks](https://github.com/nocksapp) [Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | - | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | ✓ | - | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | ✓ | - | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) From 9af0a0f503f203279a46d3a5f2c5d385fece036a Mon Sep 17 00:00:00 2001 From: Xu Ding Date: Wed, 11 Apr 2018 10:52:06 +0800 Subject: [PATCH 216/333] Added six more SEA payment gateways Added six more SEA payment gateways --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 74bfdc7f..8cf379d0 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ The following gateways are available: Gateway | 2.x | 3.x | Composer Package | Maintainer --- | --- | --- | --- | --- +[2c2p](https://github.com/dilab/omnipay-2c2p) | ✓ | ✓ | dilab/omnipay-2c2p | [Xu Ding](https://github.com/dilab) [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | ✓ | - | omnipay/2checkout | [Omnipay](https://github.com/thephpleague/omnipay) [2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | ✓ | - | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) [Agms](https://github.com/agmscode/omnipay-agms) | ✓ | - | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) @@ -125,7 +126,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [DataCash](https://github.com/digitickets/omnipay-datacash) | ✓ | - | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) [Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | ✓ | - | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) [Dummy](https://github.com/thephpleague/omnipay-dummy) | ✓ | - | omnipay/dummy | [Del](https://github.com/delatbabel) -[eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | - | ddilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) +[eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | ✓ | dilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | ✓ | - | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | ✓ | - | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) [Elavon](https://github.com/lemonstand/omnipay-elavon) | ✓ | - | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) @@ -141,12 +142,14 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | ✓ | - | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | ✓ | - | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [Helcim](https://github.com/academe/omnipay-helcim) | ✓ | - | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) +[iPay88](https://github.com/dilab/omnipay-ipay88) | ✓ | ✓ | dilab/omnipay-ipay88 | [Xu Ding](https://github.com/dilab) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ✓ | - | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | ✓ | - | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Judo Pay](https://github.com/Transportersio/omnipay-judopay) | ✓ | - | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) [Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | ✓ | - | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) [Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | ✓ | - | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) [Komoju](https://github.com/dannyvink/omnipay-komoju) | ✓ | - | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) +[Midtrans](https://github.com/dilab/omnipay-midtrans) | ✓ | ✓ | dilab/omnipay-midtrans | [Xu Ding](https://github.com/dilab) [Magnius](https://github.com/fruitcake/omnipay-magnius) | - | ✓ | fruitcake/omnipay-magnius | [Fruitcake](https://github.com/fruitcake) [Manual](https://github.com/thephpleague/omnipay-manual) | ✓ | - | omnipay/manual | [Del](https://github.com/delatbabel) [Migs](https://github.com/thephpleague/omnipay-migs) | ✓ | - | omnipay/migs | [Omnipay](https://github.com/thephpleague/omnipay) @@ -161,7 +164,9 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Neteller](https://github.com/dercoder/omnipay-neteller) | ✓ | - | dercoder/omnipay-neteller | [Alexander Fedra](https://github.com/dercoder) [NetPay](https://github.com/netpay/omnipay-netpay) | ✓ | - | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | ✓ | - | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) +[OnePay](https://github.com/dilab/omnipay-onepay) | ✓ | ✓ | dilab/omnipay-onepay | [Xu Ding](https://github.com/dilab) [Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | - | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) +[Payoo](https://github.com/dilab/omnipay-payoo) | ✓ | ✓ | dilab/omnipay-payoo | [Xu Ding](https://github.com/dilab) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | ✓ | - | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | ✓ | - | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) [Paratika (Asseco)](https://github.com/yasinkuyu/omnipay-paratika) | ✓ | - | yasinkuyu/omnipay-paratika | [Yasin Kuyu](https://github.com/yasinkuyu) From f7fa4872de947ec094c29b0570b9455bd7c522e3 Mon Sep 17 00:00:00 2001 From: Novikov Andrey Date: Mon, 16 Apr 2018 16:21:45 +0300 Subject: [PATCH 217/333] Change supports common version of Sberbank --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8cf379d0..4fd845c0 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | ✓ | - | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | ✓ | - | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | ✓ | - | omnipay/sagepay | [Jason Judge](https://github.com/judgej) -[Sberbank](https://github.com/AndrewNovikof/omnipay-sberbank) | ✓ | - | andrewnovikof/omnipay-sberbank | [Andrew Novikov](https://github.com/AndrewNovikof) +[Sberbank](https://github.com/AndrewNovikof/omnipay-sberbank) | - | ✓ | andrewnovikof/omnipay-sberbank | [Andrew Novikov](https://github.com/AndrewNovikof) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | ✓ | - | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [SecurePay](https://github.com/thephpleague/omnipay-securepay) | ✓ | - | omnipay/securepay | [Omnipay](https://github.com/thephpleague/omnipay) [Secure Trading](https://github.com/meebio/omnipay-secure-trading) | ✓ | - | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) From 9e8bd4e73ea41f6fa624fbd69714438c487248d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregorio=20Hern=C3=A1ndez=20Caso?= Date: Mon, 30 Apr 2018 11:55:52 +0200 Subject: [PATCH 218/333] Update README adding Spreedly Gateway --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cae5c8db..e8e4eb9c 100644 --- a/README.md +++ b/README.md @@ -204,6 +204,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Sisow](https://github.com/fruitcake/omnipay-sisow) | ✓ | ✓ | fruitcakestudio/omnipay-sisow | [Fruitcake](https://github.com/fruitcake) [Skrill](https://github.com/alfaproject/omnipay-skrill) | ✓ | - | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Sofort](https://github.com/aimeoscom/omnipay-sofort) | ✓ | - | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) +[Spreedly](https://github.com/gregoriohc/omnipay-spreedly) | ✓ | - | gregoriohc/omnipay-spreedly | [Gregorio Hernández Caso](https://github.com/gregoriohc) [Square](https://github.com/Transportersio/omnipay-square) | ✓ | - | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) [Stripe](https://github.com/thephpleague/omnipay-stripe) | ✓ | ✓ | omnipay/stripe | [Del](https://github.com/delatbabel) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | ✓ | - | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) From 1ba18925302b1a51b046852dabece439bd2f0b85 Mon Sep 17 00:00:00 2001 From: Martin van de Belt Date: Thu, 10 May 2018 02:01:06 +0800 Subject: [PATCH 219/333] Marked vdbelt/oppwa as 3.x compatible --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e8e4eb9c..6403f4a9 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | ✓ | - | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) [Nocks](https://github.com/nocksapp/checkout-omnipay) | ✓ | - | nocksapp/omnipay-nocks | [Nocks](https://github.com/nocksapp) [OnePay](https://github.com/dilab/omnipay-onepay) | ✓ | ✓ | dilab/omnipay-onepay | [Xu Ding](https://github.com/dilab) -[Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | - | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) +[Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | ✓ | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) [Payoo](https://github.com/dilab/omnipay-payoo) | ✓ | ✓ | dilab/omnipay-payoo | [Xu Ding](https://github.com/dilab) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | ✓ | - | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | ✓ | - | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) From 6e9bc6b0ef6cf5451c5c7b3704dd5cb329a6fcf8 Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Thu, 10 May 2018 00:21:05 +0100 Subject: [PATCH 220/333] girocheckout supports Omnipay 3.0-beta.1 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e8e4eb9c..91035231 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [First Data](https://github.com/thephpleague/omnipay-firstdata) | ✓ | - | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | ✓ | - | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Free / Zero Amount](https://github.com/colinodell/omnipay-zero) | ✓ | - | colinodell/omnipay-zero | [Colin O'Dell](https://github.com/colinodell) -[GiroCheckout](https://github.com/academe/Omnipay-GiroCheckout) | ✓ | - | academe/omnipay-girocheckout | [Jason Judge](https://github.com/judgej) +[GiroCheckout](https://github.com/academe/Omnipay-GiroCheckout) | ✓ | ✓ | academe/omnipay-girocheckout | [Jason Judge](https://github.com/judgej) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | ✓ | - | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | ✓ | - | omnipay/gocardless | [Del](https://github.com/delatbabel) [GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | ✓ | - | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) From 57b220ada6cad6f3ba7ec91f1c5bac946dfdd2e3 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 10 May 2018 23:08:48 +0200 Subject: [PATCH 221/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 604ebd8b..a335ca40 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PaymentgateRu](https://github.com/pinguinjkeke/omnipay-paymentgateru) | ✓ | ✓ | pinguinjkeke/omnipay-paymentgateru | [Alexander Avakov](https://github.com/pinguinjkeke) [PaymentSense](https://github.com/digitickets/omnipay-paymentsense) | ✓ | - | digitickets/omnipay-paymentsense | [DigiTickets](https://github.com/digitickets) [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | ✓ | - | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) -[PayPal](https://github.com/thephpleague/omnipay-paypal) | ✓ | - | omnipay/paypal | [Del](https://github.com/delatbabel) +[PayPal](https://github.com/thephpleague/omnipay-paypal) | ✓ | ✓ | omnipay/paypal | [Del](https://github.com/delatbabel) [PayPro](https://github.com/payproNL/omnipay-paypro) | ✓ | - | paypronl/omnipay-paypro | [Fruitcake](https://github.com/fruitcake) [PAYONE](https://github.com/academe/omnipay-payone) | ✓ | - | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | ✓ | - | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) From 29868d07491811c9db84af70cffda200ea11abde Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 14 May 2018 15:05:32 +0200 Subject: [PATCH 222/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a335ca40..89cfaa51 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | ✓ | - | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/digitickets/omnipay-datacash) | ✓ | - | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) [Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | ✓ | - | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) -[Dummy](https://github.com/thephpleague/omnipay-dummy) | ✓ | - | omnipay/dummy | [Del](https://github.com/delatbabel) +[Dummy](https://github.com/thephpleague/omnipay-dummy) | ✓ | ✓ | omnipay/dummy | [Del](https://github.com/delatbabel) [eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | ✓ | dilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | ✓ | - | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | ✓ | - | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) From 413793c87a29edab98443f71a707982f4311822c Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 14 May 2018 21:37:03 +0200 Subject: [PATCH 223/333] Update composer.json --- composer.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 4e62b599..4b09ba93 100644 --- a/composer.json +++ b/composer.json @@ -51,16 +51,20 @@ "checkoutcom", "tpay" ], - "homepage": "http://omnipay.thephpleague.com/", + "homepage": "https://omnipay.thephpleague.com/", "license": "MIT", "authors": [ { "name": "Adrian Macneil", "email": "adrian@adrianmacneil.com" + }, + { + "name": "Barry vd. Heuvel", + "email": "barryvdh@gmail.com" } ], "require": { - "php": "^5.6|^7", + "php": "^7.1", "omnipay/common": "^3", "php-http/guzzle6-adapter": "^1.1" }, @@ -72,6 +76,5 @@ "dev-master": "3.0.x-dev" } }, - "minimum-stability": "dev", "prefer-stable": true } From eaf9401eaa547e4dfc80c35b460a25766e40bd50 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 14 May 2018 21:48:16 +0200 Subject: [PATCH 224/333] Update .travis.yml --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c4934ab..64cadf62 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,6 @@ language: php php: - - 5.6 - - 7.0 - 7.1 - 7.2 @@ -11,6 +9,8 @@ env: - SYMFONY_VERSION="2.*" - SYMFONY_VERSION="3.0" - SYMFONY_VERSION="3.*" + - SYMFONY_VERSION="4.0" + - SYMFONY_VERSION="4.*" before_script: - composer self-update From aca25e003711370f49a921dc373707f372618bda Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 14 May 2018 21:52:05 +0200 Subject: [PATCH 225/333] Update readme --- README.md | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 89cfaa51..dc47d035 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Omnipay -**An easy to use, consistent payment processing library for PHP 5.3+** +**An easy to use, consistent payment processing library for PHP** [![Build Status](https://travis-ci.org/thephpleague/omnipay-common.png?branch=master)](https://travis-ci.org/thephpleague/omnipay-common) [![Latest Stable Version](https://poser.pugx.org/omnipay/omnipay/version)](https://packagist.org/packages/omnipay/omnipay) @@ -19,18 +19,6 @@ is fully unit tested, and even comes with an example application to get you star * Because most payment gateways have exceptionally poor documentation * Because you are writing a shopping cart and need to support multiple gateways -**Important Note: Compatibility with Symfony 3 Event Dispatcher** - -If you are using Symfony 3 (or Symfony 3 components), please note that Omnipay 2.x still relies on Guzzle3, which in turn depends on symfony/event-dispatcher 2.x. This conflicts with Symfony 3 (standard install), so cannot be installed. Development for Omnipay 3.x is still in progress at the moment. - -If you are just using the Symfony 3 components (eg. stand-alone or Silex/Laravel etc), you could try to force the install of symfony/event-dispatcher:^2.8, which is compatible with both Symfony 3 components and Guzzle 3. - -``` -composer require symfony/event-dispatcher:^2.8 -``` - -**Please do not submit any more issues or pull requests for updating Omnipay from Guzzle 3 to GuzzleHttp. The update is going to happen in Omnipay version 3.0 which is not yet ready for release.** - ## TL;DR Just want to see some code? @@ -65,7 +53,8 @@ Omnipay is a collection of packages which all depend on the [omnipay/common](https://github.com/thephpleague/omnipay-common) package to provide a consistent interface. There are no dependencies on official payment gateway PHP packages - we prefer to work with the HTTP API directly. Under the hood, we use the popular and powerful -[Guzzle](http://guzzlephp.org/) library to make HTTP requests. +[PHP-HTTP](http://docs.php-http.org/en/latest/index.html) library to make HTTP requests. +A [Guzzle](http://guzzlephp.org/) adapter is required by default, when using `omnipay/omnipay`. New gateways can be created by cloning the layout of an existing package. When choosing a name for your package, please don't use the `omnipay` vendor prefix, as this implies that @@ -76,20 +65,26 @@ payment library, a good name for your composer package would be `santa/omnipay-g ## Installation -Omnipay is installed via [Composer](https://getcomposer.org/). For most uses, you will need to require an individual gateway: +Omnipay is installed via [Composer](https://getcomposer.org/). +For most uses, you will need to require `omnipay/omnipay` and an individual gateway: ``` -composer require omnipay/paypal:~2.0 +composer require omnipay/omnipay omnipay/paypal ``` - To install all officially supported gateways: +If you want to use your own HTTP Client instead of Guzzle (which is the default for `omnipay/omnipay`), +you can require `omnipay/common` and any `php-http/client-implementation` (see [PHP Http](http://docs.php-http.org/en/latest/clients.html)) ``` -composer require omnipay/omnipay:~2.0 +composer require omnipay/common omnipay/paypal php-http/buzz-adapter ``` -> This will require **ALL** ~25 Omnipay gateways and is generally discouraged. +## Upgrade from v2 to v3 + +If your gateway is supported for v3, you can require that version. Make sure you require `omnipay/omnipay` or a separate Http Adaper. +If there is no version for v3 yet, please raise an issue or upgrade the gateways yourself and create a PR. +See the [Upgrade guide for omnipay/common](https://github.com/thephpleague/omnipay-common/blob/master/UPGRADE.md) ## Payment Gateways From c803192f5e870df62c6554d3b68815c8ffcb7859 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 14 May 2018 22:01:21 +0200 Subject: [PATCH 226/333] Use more versions --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dc47d035..cbe9056f 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Latest Stable Version](https://poser.pugx.org/omnipay/omnipay/version)](https://packagist.org/packages/omnipay/omnipay) [![Total Downloads](https://poser.pugx.org/omnipay/omnipay/d/total)](https://packagist.org/packages/omnipay/omnipay) -Omnipay is a payment processing library for PHP. It has been designed based on +Omnipay is a payment processing library for PHP 7.1+. It has been designed based on ideas from [Active Merchant](http://activemerchant.org/), plus experience implementing dozens of gateways for [CI Merchant]. It has a clear and consistent API, is fully unit tested, and even comes with an example application to get you started. @@ -69,14 +69,14 @@ Omnipay is installed via [Composer](https://getcomposer.org/). For most uses, you will need to require `omnipay/omnipay` and an individual gateway: ``` -composer require omnipay/omnipay omnipay/paypal +composer require omnipay/omnipay:^3 omnipay/paypal ``` If you want to use your own HTTP Client instead of Guzzle (which is the default for `omnipay/omnipay`), you can require `omnipay/common` and any `php-http/client-implementation` (see [PHP Http](http://docs.php-http.org/en/latest/clients.html)) ``` -composer require omnipay/common omnipay/paypal php-http/buzz-adapter +composer require omnipay/common:^3 omnipay/paypal php-http/buzz-adapter ``` ## Upgrade from v2 to v3 From d0bece4a3cc2186afe59192b1f36fd5a016eb08c Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 15 May 2018 09:21:23 +0200 Subject: [PATCH 227/333] Allow 5.6 --- .travis.yml | 34 ++++++++++++++++++++++++---------- README.md | 2 +- composer.json | 2 +- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 64cadf62..9f61c021 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,34 @@ language: php php: + - 5.6 + - 7.0 - 7.1 - 7.2 +# This triggers builds to run on the new TravisCI infrastructure. +# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/ +sudo: false + +## Cache composer +cache: + directories: + - $HOME/.composer/cache + env: - - SYMFONY_VERSION="2.1" - - SYMFONY_VERSION="2.*" - - SYMFONY_VERSION="3.0" - - SYMFONY_VERSION="3.*" - - SYMFONY_VERSION="4.0" - - SYMFONY_VERSION="4.*" + global: + - symfony="*" + +matrix: + include: + - php: 5.6 + env: symfony="^2.1" + - php: 5.6 + env: symfony="^3" + - php: 7.1 + env: symfony="^4" -before_script: - - composer self-update - - composer --version - - composer require symfony/http-foundation:${SYMFONY_VERSION} --no-update +install: + - if [[ $symfony != '*' ]]; then travis_retry composer require symfony/http-foundation:${symfony} --no-update --no-interaction; fi script: composer install --prefer-dist --no-interaction diff --git a/README.md b/README.md index cbe9056f..b4a1ae2f 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Latest Stable Version](https://poser.pugx.org/omnipay/omnipay/version)](https://packagist.org/packages/omnipay/omnipay) [![Total Downloads](https://poser.pugx.org/omnipay/omnipay/d/total)](https://packagist.org/packages/omnipay/omnipay) -Omnipay is a payment processing library for PHP 7.1+. It has been designed based on +Omnipay is a payment processing library for PHP. It has been designed based on ideas from [Active Merchant](http://activemerchant.org/), plus experience implementing dozens of gateways for [CI Merchant]. It has a clear and consistent API, is fully unit tested, and even comes with an example application to get you started. diff --git a/composer.json b/composer.json index 4b09ba93..c33924ca 100644 --- a/composer.json +++ b/composer.json @@ -64,7 +64,7 @@ } ], "require": { - "php": "^7.1", + "php": "^5.6|^7.1", "omnipay/common": "^3", "php-http/guzzle6-adapter": "^1.1" }, From 7d8faeb7ff0cbfb116b9ee7b697951ef245d2e0d Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 15 May 2018 09:26:24 +0200 Subject: [PATCH 228/333] Allow 7.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c33924ca..cec8accd 100644 --- a/composer.json +++ b/composer.json @@ -64,7 +64,7 @@ } ], "require": { - "php": "^5.6|^7.1", + "php": "^5.6|^7", "omnipay/common": "^3", "php-http/guzzle6-adapter": "^1.1" }, From b504755355270115aab9888530c69e02f96ac89d Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 15 May 2018 10:19:34 +0200 Subject: [PATCH 229/333] Update composer.json --- composer.json | 53 +++++---------------------------------------------- 1 file changed, 5 insertions(+), 48 deletions(-) diff --git a/composer.json b/composer.json index cec8accd..3f164bb5 100644 --- a/composer.json +++ b/composer.json @@ -1,55 +1,12 @@ { - "name": "omnipay/omnipay", + "name": "league/omnipay", "type": "metapackage", "description": "Includes Omnipay payment processing library and all officially supported gateways", "keywords": [ - "2checkout", - "2co", - "auth.net", - "authorize", - "authorize.net", - "buckaroo", - "cardsave", - "coinbase", - "cybersource", - "commweb", - "dps", - "egate", - "eway", - "express", - "first data", - "firstdata", - "gateway", - "gocardless", - "ideal", - "merchant", - "migs", - "mollie", - "multisafepay", - "netaxept", - "netbanx", - "pagarme", - "pay", - "payfast", - "payflow", - "payment", - "paymentexpress", - "payone", - "paypal", - "pin", - "purchase", - "rapid", - "sagepay", - "securepay", - "stripe", - "tala", - "tala-payments", - "targetpay", - "twocheckout", - "worldpay", - "payU", - "checkoutcom", - "tpay" + "omnipay", + "checkout", + "creditcard", + "payment" ], "homepage": "https://omnipay.thephpleague.com/", "license": "MIT", From 71bf733ad1947fa9ce2e8a6d4f769db903540d94 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 15 May 2018 10:23:59 +0200 Subject: [PATCH 230/333] Update namespace --- README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b4a1ae2f..1974b046 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ **An easy to use, consistent payment processing library for PHP** [![Build Status](https://travis-ci.org/thephpleague/omnipay-common.png?branch=master)](https://travis-ci.org/thephpleague/omnipay-common) -[![Latest Stable Version](https://poser.pugx.org/omnipay/omnipay/version)](https://packagist.org/packages/omnipay/omnipay) -[![Total Downloads](https://poser.pugx.org/omnipay/omnipay/d/total)](https://packagist.org/packages/omnipay/omnipay) +[![Latest Stable Version](https://poser.pugx.org/omnipay/common/version)](https://packagist.org/packages/omnipay/common) +[![Total Downloads](https://poser.pugx.org/omnipay/common/d/total)](https://packagist.org/packages/omnipay/common) Omnipay is a payment processing library for PHP. It has been designed based on ideas from [Active Merchant](http://activemerchant.org/), plus experience implementing @@ -54,7 +54,7 @@ Omnipay is a collection of packages which all depend on the a consistent interface. There are no dependencies on official payment gateway PHP packages - we prefer to work with the HTTP API directly. Under the hood, we use the popular and powerful [PHP-HTTP](http://docs.php-http.org/en/latest/index.html) library to make HTTP requests. -A [Guzzle](http://guzzlephp.org/) adapter is required by default, when using `omnipay/omnipay`. +A [Guzzle](http://guzzlephp.org/) adapter is required by default, when using `league/omnipay`. New gateways can be created by cloning the layout of an existing package. When choosing a name for your package, please don't use the `omnipay` vendor prefix, as this implies that @@ -66,26 +66,28 @@ payment library, a good name for your composer package would be `santa/omnipay-g ## Installation Omnipay is installed via [Composer](https://getcomposer.org/). -For most uses, you will need to require `omnipay/omnipay` and an individual gateway: +For most uses, you will need to require `league/omnipay` and an individual gateway: ``` -composer require omnipay/omnipay:^3 omnipay/paypal +composer require league/omnipay:^3 omnipay/paypal ``` -If you want to use your own HTTP Client instead of Guzzle (which is the default for `omnipay/omnipay`), -you can require `omnipay/common` and any `php-http/client-implementation` (see [PHP Http](http://docs.php-http.org/en/latest/clients.html)) +If you want to use your own HTTP Client instead of Guzzle (which is the default for `league/omnipay`), +you can require `league/common` and any `php-http/client-implementation` (see [PHP Http](http://docs.php-http.org/en/latest/clients.html)) ``` -composer require omnipay/common:^3 omnipay/paypal php-http/buzz-adapter +composer require league/common:^3 omnipay/paypal php-http/buzz-adapter ``` ## Upgrade from v2 to v3 -If your gateway is supported for v3, you can require that version. Make sure you require `omnipay/omnipay` or a separate Http Adaper. +If your gateway is supported for v3, you can require that version. Make sure you require `league/omnipay` or a separate Http Adaper. If there is no version for v3 yet, please raise an issue or upgrade the gateways yourself and create a PR. See the [Upgrade guide for omnipay/common](https://github.com/thephpleague/omnipay-common/blob/master/UPGRADE.md) +> Note: The package name has been changed from `omnipay/omnipay` to `league/omnipay` for v3 + ## Payment Gateways All payment gateways must implement [GatewayInterface](https://github.com/thephpleague/omnipay-common/blob/master/src/Common/GatewayInterface.php), and will usually From b6a97d3f0df704063e5e7f6e065028546e32e86b Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 15 May 2018 10:29:19 +0200 Subject: [PATCH 231/333] use svg --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1974b046..3f638566 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **An easy to use, consistent payment processing library for PHP** -[![Build Status](https://travis-ci.org/thephpleague/omnipay-common.png?branch=master)](https://travis-ci.org/thephpleague/omnipay-common) +[![Build Status](https://travis-ci.org/thephpleague/omnipay-common.svg?branch=master)](https://travis-ci.org/thephpleague/omnipay-common) [![Latest Stable Version](https://poser.pugx.org/omnipay/common/version)](https://packagist.org/packages/omnipay/common) [![Total Downloads](https://poser.pugx.org/omnipay/common/d/total)](https://packagist.org/packages/omnipay/common) From 71366ae0ba77a4202d2621e711ad758b23d3205e Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 15 May 2018 10:48:17 +0200 Subject: [PATCH 232/333] Update description --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3f164bb5..391d64ee 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "league/omnipay", "type": "metapackage", - "description": "Includes Omnipay payment processing library and all officially supported gateways", + "description": "Omnipay payment processing library", "keywords": [ "omnipay", "checkout", From 05162c628c786dcc88b3f5f7880b8c0c697e2bea Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Tue, 15 May 2018 10:13:18 +0000 Subject: [PATCH 233/333] Fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f638566..01effbdf 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ composer require league/common:^3 omnipay/paypal php-http/buzz-adapter ## Upgrade from v2 to v3 -If your gateway is supported for v3, you can require that version. Make sure you require `league/omnipay` or a separate Http Adaper. +If your gateway is supported for v3, you can require that version. Make sure you require `league/omnipay` or a separate Http Adapter. If there is no version for v3 yet, please raise an issue or upgrade the gateways yourself and create a PR. See the [Upgrade guide for omnipay/common](https://github.com/thephpleague/omnipay-common/blob/master/UPGRADE.md) From 031eaf0ddeda2974da72e432ebada7eb0787275c Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 15 May 2018 13:06:04 +0200 Subject: [PATCH 234/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01effbdf..4add0605 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Wirecard](https://github.com/academe/omnipay-wirecard) | ✓ | - | academe/omnipay-wirecard | [Jason Judge](https://github.com/judgej) [Worldpay XML Direct Corporate Gateway](https://github.com/teaandcode/omnipay-worldpay-xml) | ✓ | - | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) [Worldpay XML Hosted Corporate Gateway](https://github.com/comicrelief/omnipay-worldpay-cg-hosted) | ✓ | - | comicrelief/omnipay-worldpay-cg-hosted | [Comic Relief](https://github.com/comicrelief) -[Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | ✓ | - | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) +[Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | ✓ | ✓ | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | ✓ | - | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) [Datatrans](https://github.com/w-vision/omnipay-datatrans) | ✓ | - | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) [Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) From 18371a3cfdea466e4f02b86c6cc29eea2db6a883 Mon Sep 17 00:00:00 2001 From: Sujip Thapa Date: Sat, 26 May 2018 11:41:10 +0545 Subject: [PATCH 235/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4add0605..ba38b3ab 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | ✓ | - | omnipay/sagepay | [Jason Judge](https://github.com/judgej) [Sberbank](https://github.com/AndrewNovikof/omnipay-sberbank) | - | ✓ | andrewnovikof/omnipay-sberbank | [Andrew Novikov](https://github.com/AndrewNovikof) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | ✓ | - | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) -[SecurePay](https://github.com/thephpleague/omnipay-securepay) | ✓ | - | omnipay/securepay | [Omnipay](https://github.com/thephpleague/omnipay) +[SecurePay](https://github.com/thephpleague/omnipay-securepay) | ✓ | ✓ | omnipay/securepay | [Omnipay](https://github.com/thephpleague/omnipay) [Secure Trading](https://github.com/meebio/omnipay-secure-trading) | ✓ | - | meebio/omnipay-secure-trading | [John Jablonski](https://github.com/jan-j) [Sisow](https://github.com/fruitcake/omnipay-sisow) | ✓ | ✓ | fruitcakestudio/omnipay-sisow | [Fruitcake](https://github.com/fruitcake) [Skrill](https://github.com/alfaproject/omnipay-skrill) | ✓ | - | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) From 31dd68a81c7c4424a0e67141d991027a3d84e899 Mon Sep 17 00:00:00 2001 From: Sujip Thapa Date: Sat, 26 May 2018 14:09:55 +0545 Subject: [PATCH 236/333] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ba38b3ab..e7a337ec 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [MultiCards](https://github.com/incube8/omnipay-multicards) | ✓ | - | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | ✓ | - | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [MyCard](https://github.com/xxtime/omnipay-mycard) | ✓ | - | xxtime/omnipay-mycard | [Joe Chu](https://github.com/xxtime) +[National Australia Bank (NAB) Transact](https://github.com/sudiptpa/omnipay-nabtransact) | ✓ | ✓ | sudiptpa/omnipay-nabtransact | [Sujip Thapa](https://github.com/sudiptpa) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | ✓ | - | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | ✓ | - | omnipay/netaxept | [Omnipay](https://github.com/thephpleague/omnipay) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | ✓ | - | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) From e56394037d2ca019d26ed2d1cc71d1d14d7617a9 Mon Sep 17 00:00:00 2001 From: "Biswa Nath Ghosh (Tapos)" Date: Mon, 28 May 2018 12:08:13 +0600 Subject: [PATCH 237/333] Please add our driver with your system (#506) * CashBaBa driver integrated * CashBaBa driver integrated --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e7a337ec..72306504 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | ✓ | - | omnipay/buckaroo | [Omnipay](https://github.com/thephpleague/omnipay) [CardGate](https://github.com/cardgate/omnipay-cardgate) | ✓ | - | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | ✓ | - | omnipay/cardsave | [Omnipay](https://github.com/thephpleague/omnipay) +[CashBaBa](https://github.com/tapos007/omnipay-cashbaba) | ✓ | - | omnipay/cashbaba | [Recursion Technologies Ltd](https://github.com/tapos007) [Checkout.com](https://github.com/fotografde/omnipay-checkoutcom) | ✓ | - | fotografde/checkoutcom | [fotograf.de](https://github.com/fotografde) [CloudBanking](https://github.com/spsingh/omnipay-cloudbanking) | ✓ | - | cloudbanking/omnipay-cloudbanking | [Cloudbanking](http://cloudbanking.com.au/) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | ✓ | - | omnipay/coinbase | [Omnipay](https://github.com/thephpleague/omnipay) @@ -224,6 +225,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Datatrans](https://github.com/w-vision/omnipay-datatrans) | ✓ | - | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) [Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) + Gateways are created and initialized like so: ```php From 3f8ab652594dd186de9da802902e7198ff7b0efc Mon Sep 17 00:00:00 2001 From: "Mr.Awei" <515242609@qq.com> Date: Wed, 30 May 2018 21:19:00 +0800 Subject: [PATCH 238/333] add 99bill --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 72306504..9ba7e63d 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Agms](https://github.com/agmscode/omnipay-agms) | ✓ | - | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | ✓ | ✓ | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) [Alipay](https://github.com/lokielse/omnipay-alipay) | ✓ | ✓ | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) +[99Bill](https://github.com/laraveler/omnipay-99bill) | - | ✓ | x-class/omnipay-99bill | [Laraveler](https://github.com/laraveler) [Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | ✓ | - | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | ✓ | - | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) [Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | ✓ | - | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) From 578bcab570426c2702981a6e74ae3ae7e6309d4d Mon Sep 17 00:00:00 2001 From: Sujip Thapa Date: Thu, 31 May 2018 11:44:25 +0545 Subject: [PATCH 239/333] Update README.md (#508) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ba7e63d..32cd177c 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | ✓ | - | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | ✓ | - | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) [Elavon](https://github.com/lemonstand/omnipay-elavon) | ✓ | - | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) -[eWAY](https://github.com/thephpleague/omnipay-eway) | ✓ | - | omnipay/eway | [Del](https://github.com/delatbabel) +[eWAY](https://github.com/thephpleague/omnipay-eway) | ✓ | ✓ | omnipay/eway | [Del](https://github.com/delatbabel) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | ✓ | - | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | ✓ | - | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) [First Data](https://github.com/thephpleague/omnipay-firstdata) | ✓ | - | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) From 8522076ae761933f96e68132f5c16831fb70346c Mon Sep 17 00:00:00 2001 From: Stewart Polley Date: Fri, 1 Jun 2018 16:54:49 +1000 Subject: [PATCH 240/333] Update license year (#511) --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 9e489ad7..55cf185f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2012-2017 Adrian Macneil +Copyright (c) 2012-2018 Adrian Macneil Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the From 4e249c09ea13bf28cb510b4edbc83b7f6066bbc6 Mon Sep 17 00:00:00 2001 From: Avik Aghajanyan Date: Fri, 1 Jun 2018 10:55:14 +0400 Subject: [PATCH 241/333] Added iDram Payment Gateway (#510) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 32cd177c..5a102d93 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | ✓ | - | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | ✓ | - | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [Helcim](https://github.com/academe/omnipay-helcim) | ✓ | - | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) +[iDram](https://github.com/ptuchik/omnipay-idram) | - | ✓ | ptuchik/omnipay-idram | [Avik Aghajanyan](https://github.com/ptuchik) [iPay88](https://github.com/dilab/omnipay-ipay88) | ✓ | ✓ | dilab/omnipay-ipay88 | [Xu Ding](https://github.com/dilab) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ✓ | - | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | ✓ | - | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) From 390bdeabde8cecc296b5d47bbefdc8dc1178216d Mon Sep 17 00:00:00 2001 From: Curtis Crewe <26754190+InkedCurtis@users.noreply.github.com> Date: Mon, 4 Jun 2018 19:58:01 +0100 Subject: [PATCH 242/333] Added Payssion Payment Gateway (#512) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5a102d93..e2335dc2 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | ✓ | - | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [Paysera](https://github.com/povils/omnipay-paysera) | ✓ | - | povils/omnipay-paysera | [Povils](https://github.com/povils) [PaySimple](https://github.com/dranes/omnipay-paysimple) | ✓ | - | dranes/omnipay-paysimple | [Dranes](https://github.com/dranes) +[PaySsion](https://github.com/InkedCurtis/omnipay-payssion) | ✓ | - | inkedcurtis/omnipay-payssion | [Curtis](https://github.com/inkedcurtis) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | ✓ | - | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | ✓ | - | omnipay/payu | [efesaid](https://github.com/efesaid) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | ✓ | - | omnipay/pin | [Del](https://github.com/delatbabel) From 331a28f302062f730f29f88a6fc9af7bd5c38ed7 Mon Sep 17 00:00:00 2001 From: Burak USGURLU Date: Mon, 18 Jun 2018 19:31:27 +0300 Subject: [PATCH 243/333] uskur/omnipay-pelecard added --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e2335dc2..617e5183 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PaySsion](https://github.com/InkedCurtis/omnipay-payssion) | ✓ | - | inkedcurtis/omnipay-payssion | [Curtis](https://github.com/inkedcurtis) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | ✓ | - | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | ✓ | - | omnipay/payu | [efesaid](https://github.com/efesaid) +[Pelecard](https://github.com/Uskur/omnipay-pelecard) | ✓ | - | uskur/omnipay-pelecard | [Uskur](https://github.com/Uskur) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | ✓ | - | omnipay/pin | [Del](https://github.com/delatbabel) [Ping++](https://github.com/phoenixg/omnipay-pingpp) | ✓ | - | phoenixg/omnipay-pingpp | [Huang Feng](https://github.com/phoenixg) [POLi](https://github.com/burnbright/omnipay-poli) | ✓ | - | burnbright/omnipay-poli | [Sid](https://github.com/onlinesid) From 681fd1d132780b1ca16c04fe879329f2fe9724ae Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 20 Jun 2018 16:38:05 +0200 Subject: [PATCH 244/333] Update README.md --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 617e5183..85cc9624 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,8 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Alipay](https://github.com/lokielse/omnipay-alipay) | ✓ | ✓ | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [99Bill](https://github.com/laraveler/omnipay-99bill) | - | ✓ | x-class/omnipay-99bill | [Laraveler](https://github.com/laraveler) [Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | ✓ | - | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) -[Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | ✓ | - | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) +[Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | ✓ | ✓ | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) +[Authorize.Net API](https://github.com/academe/omnipay-authorizenetapi) | - | ✓ | academe/omnipay-authorizenetapi | [Jason Judge](https://github.com/judgej) [Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | ✓ | - | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | ✓ | - | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) [BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | ✓ | - | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) @@ -123,6 +124,8 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | ✓ | - | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | ✓ | - | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/digitickets/omnipay-datacash) | ✓ | - | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) +[Datatrans](https://github.com/w-vision/omnipay-datatrans) | ✓ | - | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) +[Datatrans](https://github.com/academe/omnipay-datatrans) | ✓ | ✓ | academe/omnipay-datatrans | [Jason Judge](https://github.com/judgej) [Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | ✓ | - | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) [Dummy](https://github.com/thephpleague/omnipay-dummy) | ✓ | ✓ | omnipay/dummy | [Del](https://github.com/delatbabel) [eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | ✓ | dilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) @@ -181,7 +184,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | ✓ | - | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) [PayPal](https://github.com/thephpleague/omnipay-paypal) | ✓ | ✓ | omnipay/paypal | [Del](https://github.com/delatbabel) [PayPro](https://github.com/payproNL/omnipay-paypro) | ✓ | - | paypronl/omnipay-paypro | [Fruitcake](https://github.com/fruitcake) -[PAYONE](https://github.com/academe/omnipay-payone) | ✓ | - | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) +[PAYONE](https://github.com/academe/omnipay-payone) | ✓ | ✓ | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | ✓ | - | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [Paysera](https://github.com/povils/omnipay-paysera) | ✓ | - | povils/omnipay-paysera | [Povils](https://github.com/povils) [PaySimple](https://github.com/dranes/omnipay-paysimple) | ✓ | - | dranes/omnipay-paysimple | [Dranes](https://github.com/dranes) @@ -199,7 +202,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Realex](https://github.com/digitickets/omnipay-realex) | ✓ | - | digitickets/omnipay-realex | [DigiTickets](https://github.com/digitickets) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | ✓ | - | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | ✓ | - | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) -[Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | ✓ | - | omnipay/sagepay | [Jason Judge](https://github.com/judgej) +[Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | ✓ | ✓ | omnipay/sagepay | [Jason Judge](https://github.com/judgej) [Sberbank](https://github.com/AndrewNovikof/omnipay-sberbank) | - | ✓ | andrewnovikof/omnipay-sberbank | [Andrew Novikov](https://github.com/AndrewNovikof) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | ✓ | - | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) [SecurePay](https://github.com/thephpleague/omnipay-securepay) | ✓ | ✓ | omnipay/securepay | [Omnipay](https://github.com/thephpleague/omnipay) @@ -220,16 +223,14 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [WeChat](https://github.com/labs7in0/omnipay-wechat) | ✓ | - | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | ✓ | ✓ | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) [WePay](https://github.com/collizo4sky/omnipay-wepay) | ✓ | - | collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/collizo4sky) -[Wirecard](https://github.com/igaponov/omnipay-wirecard) | ✓ | - | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) +[Wirecard](https://github.com/igaponov/omnipay-wirecard) | ✓ | ✓ | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [Wirecard](https://github.com/academe/omnipay-wirecard) | ✓ | - | academe/omnipay-wirecard | [Jason Judge](https://github.com/judgej) [Worldpay XML Direct Corporate Gateway](https://github.com/teaandcode/omnipay-worldpay-xml) | ✓ | - | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) [Worldpay XML Hosted Corporate Gateway](https://github.com/comicrelief/omnipay-worldpay-cg-hosted) | ✓ | - | comicrelief/omnipay-worldpay-cg-hosted | [Comic Relief](https://github.com/comicrelief) [Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | ✓ | ✓ | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | ✓ | - | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) -[Datatrans](https://github.com/w-vision/omnipay-datatrans) | ✓ | - | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) [Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) - Gateways are created and initialized like so: ```php From f6123c2ff4739a7e9ee784659b679af6ad88d59c Mon Sep 17 00:00:00 2001 From: Curtis Crewe <26754190+InkedCurtis@users.noreply.github.com> Date: Sun, 22 Jul 2018 20:39:15 +0100 Subject: [PATCH 245/333] Update README.md (#517) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 85cc9624..898fc20b 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [CloudBanking](https://github.com/spsingh/omnipay-cloudbanking) | ✓ | - | cloudbanking/omnipay-cloudbanking | [Cloudbanking](http://cloudbanking.com.au/) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | ✓ | - | omnipay/coinbase | [Omnipay](https://github.com/thephpleague/omnipay) [CoinGate](https://github.com/coingate/omnipay-coingate) | ✓ | - | coingate/omnipay-coingate | [CoinGate](https://github.com/coingate) +[CoinPayments](https://github.com/InkedCurtis/omnipay-coinpayments) | ✓ | ✓ | InkedCurtis/omnipay-coinpayments | [InkedCurtis](https://github.com/InkedCurtis) [Creditcall](https://github.com/meebio/omnipay-creditcall) | ✓ | - | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | ✓ | - | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | ✓ | - | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) From 4bfc664f2cd9bb0f0282bb6d9f5c520e428684ea Mon Sep 17 00:00:00 2001 From: Dmytro Naumenko Date: Thu, 9 Aug 2018 11:53:28 +0300 Subject: [PATCH 246/333] Added payment systems supported by HiQDev (#520) --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 898fc20b..a74c7411 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Authorize.Net API](https://github.com/academe/omnipay-authorizenetapi) | - | ✓ | academe/omnipay-authorizenetapi | [Jason Judge](https://github.com/judgej) [Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | ✓ | - | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | ✓ | - | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) +[BitPay](https://github.com/hiqdev/omnipay-bitpay) | ✓ | - | hiqdev/omnipay-bitpay | [HiQDev](https://github.com/hiqdev) [BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | ✓ | - | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) [BlueSnap](https://github.com/vimeo/omnipay-bluesnap) | ✓ | - | vimeo/omnipay-bluesnap | [Vimeo](https://github.com/vimeo) [Braintree](https://github.com/thephpleague/omnipay-braintree) | ✓ | - | omnipay/braintree | [Omnipay](https://github.com/thephpleague/omnipay) @@ -130,12 +131,16 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | ✓ | - | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) [Dummy](https://github.com/thephpleague/omnipay-dummy) | ✓ | ✓ | omnipay/dummy | [Del](https://github.com/delatbabel) [eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | ✓ | dilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) +[eCoin](https://github.com/hiqdev/omnipay-ecoin) | ✓ | - | hiqdev/omnipay-ecoin | [HiQDev](https://github.com/hiqdev) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | ✓ | - | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | ✓ | - | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) [Elavon](https://github.com/lemonstand/omnipay-elavon) | ✓ | - | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) +[ePayments](https://github.com/hiqdev/omnipay-epayments) | ✓ | - | hiqdev/omnipay-epayments | [HiQDev](https://github.com/hiqdev) +[ePayService](https://github.com/hiqdev/omnipay-epayservice) | ✓ | - | hiqdev/omnipay-epayservice | [HiQDev](https://github.com/hiqdev) [eWAY](https://github.com/thephpleague/omnipay-eway) | ✓ | ✓ | omnipay/eway | [Del](https://github.com/delatbabel) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | ✓ | - | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | ✓ | - | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) +[FreeKassa](https://github.com/hiqdev/omnipay-freekassa) | ✓ | - | hiqdev/omnipay-freekassa | [HiQDev](https://github.com/hiqdev) [First Data](https://github.com/thephpleague/omnipay-firstdata) | ✓ | - | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | ✓ | - | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Free / Zero Amount](https://github.com/colinodell/omnipay-zero) | ✓ | - | colinodell/omnipay-zero | [Colin O'Dell](https://github.com/colinodell) @@ -148,6 +153,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [iDram](https://github.com/ptuchik/omnipay-idram) | - | ✓ | ptuchik/omnipay-idram | [Avik Aghajanyan](https://github.com/ptuchik) [iPay88](https://github.com/dilab/omnipay-ipay88) | ✓ | ✓ | dilab/omnipay-ipay88 | [Xu Ding](https://github.com/dilab) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ✓ | - | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) +[InterKassa](https://github.com/hiqdev/omnipay-interkassa) | ✓ | - | hiqdev/omnipay-interkassa | [HiQDev](https://github.com/hiqdev) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | ✓ | - | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Judo Pay](https://github.com/Transportersio/omnipay-judopay) | ✓ | - | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) [Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | ✓ | - | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) @@ -170,6 +176,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [NetPay](https://github.com/netpay/omnipay-netpay) | ✓ | - | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | ✓ | - | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) [Nocks](https://github.com/nocksapp/checkout-omnipay) | ✓ | - | nocksapp/omnipay-nocks | [Nocks](https://github.com/nocksapp) +[OkPay](https://github.com/hiqdev/omnipay-okpay) | ✓ | - | hiqdev/omnipay-okpay | [HiQDev](https://github.com/hiqdev) [OnePay](https://github.com/dilab/omnipay-onepay) | ✓ | ✓ | dilab/omnipay-onepay | [Xu Ding](https://github.com/dilab) [Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | ✓ | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) [Payoo](https://github.com/dilab/omnipay-payoo) | ✓ | ✓ | dilab/omnipay-payoo | [Xu Ding](https://github.com/dilab) @@ -192,6 +199,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PaySsion](https://github.com/InkedCurtis/omnipay-payssion) | ✓ | - | inkedcurtis/omnipay-payssion | [Curtis](https://github.com/inkedcurtis) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | ✓ | - | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | ✓ | - | omnipay/payu | [efesaid](https://github.com/efesaid) +[Paxum](https://github.com/hiqdev/omnipay-paxum) | ✓ | - | hiqdev/omnipay-paxum | [HiQDev](https://github.com/hiqdev) [Pelecard](https://github.com/Uskur/omnipay-pelecard) | ✓ | - | uskur/omnipay-pelecard | [Uskur](https://github.com/Uskur) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | ✓ | - | omnipay/pin | [Del](https://github.com/delatbabel) [Ping++](https://github.com/phoenixg/omnipay-pingpp) | ✓ | - | phoenixg/omnipay-pingpp | [Huang Feng](https://github.com/phoenixg) @@ -199,10 +207,12 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Portmanat](https://github.com/dercoder/omnipay-portmanat) | ✓ | - | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) [Posnet](https://github.com/yasinkuyu/omnipay-posnet) | ✓ | - | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) [Postfinance](https://github.com/bummzack/omnipay-postfinance) | ✓ | - | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) +[Qiwi](https://github.com/hiqdev/omnipay-qiwi) | ✓ | - | hiqdev/omnipay-qiwi | [HiQDev](https://github.com/hiqdev) [Quickpay](https://github.com/NobrainerWeb/omnipay-quickpay) | ✓ | - | nobrainerweb/omnipay-quickpay | [Nobrainer Web](https://github.com/NobrainerWeb) [Realex](https://github.com/digitickets/omnipay-realex) | ✓ | - | digitickets/omnipay-realex | [DigiTickets](https://github.com/digitickets) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | ✓ | - | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | ✓ | - | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) +[RoboKassa](https://github.com/hiqdev/omnipay-robokassa) | ✓ | - | hiqdev/omnipay-robokassa | [HiQDev](https://github.com/hiqdev) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | ✓ | ✓ | omnipay/sagepay | [Jason Judge](https://github.com/judgej) [Sberbank](https://github.com/AndrewNovikof/omnipay-sberbank) | - | ✓ | andrewnovikof/omnipay-sberbank | [Andrew Novikov](https://github.com/AndrewNovikof) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | ✓ | - | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) @@ -230,6 +240,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Worldpay XML Hosted Corporate Gateway](https://github.com/comicrelief/omnipay-worldpay-cg-hosted) | ✓ | - | comicrelief/omnipay-worldpay-cg-hosted | [Comic Relief](https://github.com/comicrelief) [Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | ✓ | ✓ | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | ✓ | - | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) +[Yandex.Money for P2P payments](https://github.com/hiqdev/omnipay-yandexmoney) | ✓ | - | hiqdev/omnipay-yandexmoney | [HiQDev](https://github.com/hiqdev) [Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) Gateways are created and initialized like so: From cbf3feeeac5bedbc0f0534c0d006e70ad25bcb02 Mon Sep 17 00:00:00 2001 From: "Biswa Nath Ghosh (Tapos)" Date: Thu, 16 Aug 2018 18:20:17 +0600 Subject: [PATCH 247/333] cashbaba driver omnipay version 3 updated (#521) * CashBaBa driver integrated * CashBaBa driver integrated * cashbaba version 3 updated --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a74c7411..9ec3f3c4 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | ✓ | - | omnipay/buckaroo | [Omnipay](https://github.com/thephpleague/omnipay) [CardGate](https://github.com/cardgate/omnipay-cardgate) | ✓ | - | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | ✓ | - | omnipay/cardsave | [Omnipay](https://github.com/thephpleague/omnipay) -[CashBaBa](https://github.com/tapos007/omnipay-cashbaba) | ✓ | - | omnipay/cashbaba | [Recursion Technologies Ltd](https://github.com/tapos007) +[CashBaBa](https://github.com/tapos007/omnipay-cashbaba) | ✓ | ✓ | omnipay/cashbaba | [Recursion Technologies Ltd](https://github.com/tapos007) [Checkout.com](https://github.com/fotografde/omnipay-checkoutcom) | ✓ | - | fotografde/checkoutcom | [fotograf.de](https://github.com/fotografde) [CloudBanking](https://github.com/spsingh/omnipay-cloudbanking) | ✓ | - | cloudbanking/omnipay-cloudbanking | [Cloudbanking](http://cloudbanking.com.au/) [Coinbase](https://github.com/thephpleague/omnipay-coinbase) | ✓ | - | omnipay/coinbase | [Omnipay](https://github.com/thephpleague/omnipay) @@ -243,6 +243,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Yandex.Money for P2P payments](https://github.com/hiqdev/omnipay-yandexmoney) | ✓ | - | hiqdev/omnipay-yandexmoney | [HiQDev](https://github.com/hiqdev) [Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) + Gateways are created and initialized like so: ```php From 5f5b3272f8d517c788d1a0900e8e64b25ba5dcca Mon Sep 17 00:00:00 2001 From: Martin Beukman Date: Fri, 21 Sep 2018 10:43:02 +0200 Subject: [PATCH 248/333] Klarna checkout v3 has been released updated the readme to show that v3 of `omnipay-klarna-checkout` is available --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ec3f3c4..98706eab 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [InterKassa](https://github.com/hiqdev/omnipay-interkassa) | ✓ | - | hiqdev/omnipay-interkassa | [HiQDev](https://github.com/hiqdev) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | ✓ | - | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Judo Pay](https://github.com/Transportersio/omnipay-judopay) | ✓ | - | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) -[Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | ✓ | - | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) +[Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | ✓ | ✓ | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) [Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | ✓ | - | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) [Komoju](https://github.com/dannyvink/omnipay-komoju) | ✓ | - | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Midtrans](https://github.com/dilab/omnipay-midtrans) | ✓ | ✓ | dilab/omnipay-midtrans | [Xu Ding](https://github.com/dilab) From 15ab93b38a2cdaaca37963bc91901ca9217365be Mon Sep 17 00:00:00 2001 From: Vlad Lesovskiy Date: Wed, 26 Sep 2018 11:32:46 +0600 Subject: [PATCH 249/333] Update README.md Add new Payment Package AUthorize.NET for Recurring Billing --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 98706eab..a0586acd 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | ✓ | - | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | ✓ | ✓ | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) [Authorize.Net API](https://github.com/academe/omnipay-authorizenetapi) | - | ✓ | academe/omnipay-authorizenetapi | [Jason Judge](https://github.com/judgej) +[Authorize.Net Recurring Billing](https://github.com/cimpleo/omnipay-authorizenetrecurring) | - | ✓ | cimpleo/omnipay-authorizenetrecurring | [CimpleO](https://github.com/cimpleo) [Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | ✓ | - | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | ✓ | - | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) [BitPay](https://github.com/hiqdev/omnipay-bitpay) | ✓ | - | hiqdev/omnipay-bitpay | [HiQDev](https://github.com/hiqdev) From 08d4ef5adcb735df301377ab7fcec239a4b429c4 Mon Sep 17 00:00:00 2001 From: Andrey Bolonin Date: Fri, 9 Nov 2018 10:32:44 +0200 Subject: [PATCH 250/333] Update .travis.yml (#535) --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 9f61c021..8f96ad7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ php: - 7.0 - 7.1 - 7.2 + - 7.3 # This triggers builds to run on the new TravisCI infrastructure. # See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/ From f3f7273ee82f00e9d8a85cd1d3f289dc636008d4 Mon Sep 17 00:00:00 2001 From: Kuang Jiaye Date: Fri, 9 Nov 2018 16:34:55 +0800 Subject: [PATCH 251/333] QQ Wallet supported (#533) Add QQ Wallet support --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a0586acd..d45913ad 100644 --- a/README.md +++ b/README.md @@ -209,6 +209,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Posnet](https://github.com/yasinkuyu/omnipay-posnet) | ✓ | - | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) [Postfinance](https://github.com/bummzack/omnipay-postfinance) | ✓ | - | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) [Qiwi](https://github.com/hiqdev/omnipay-qiwi) | ✓ | - | hiqdev/omnipay-qiwi | [HiQDev](https://github.com/hiqdev) +[QQ Wallet(QPay)](https://github.com/kuangjy2/omnipay-qpay) | - | ✓ | kuangjy/omnipay-qpay | [Kuang Jiaye](https://github.com/kuangjy2) [Quickpay](https://github.com/NobrainerWeb/omnipay-quickpay) | ✓ | - | nobrainerweb/omnipay-quickpay | [Nobrainer Web](https://github.com/NobrainerWeb) [Realex](https://github.com/digitickets/omnipay-realex) | ✓ | - | digitickets/omnipay-realex | [DigiTickets](https://github.com/digitickets) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | ✓ | - | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) From d2d53a1ed689bdb0d31de35675d443c1a000b377 Mon Sep 17 00:00:00 2001 From: Dmytro Naumenko Date: Thu, 15 Nov 2018 14:09:41 +0200 Subject: [PATCH 252/333] Update README.md (#539) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d45913ad..cb1bcb27 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [iDram](https://github.com/ptuchik/omnipay-idram) | - | ✓ | ptuchik/omnipay-idram | [Avik Aghajanyan](https://github.com/ptuchik) [iPay88](https://github.com/dilab/omnipay-ipay88) | ✓ | ✓ | dilab/omnipay-ipay88 | [Xu Ding](https://github.com/dilab) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ✓ | - | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) -[InterKassa](https://github.com/hiqdev/omnipay-interkassa) | ✓ | - | hiqdev/omnipay-interkassa | [HiQDev](https://github.com/hiqdev) +[InterKassa](https://github.com/hiqdev/omnipay-interkassa) | ✓ | ✓ | hiqdev/omnipay-interkassa | [HiQDev](https://github.com/hiqdev) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | ✓ | - | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Judo Pay](https://github.com/Transportersio/omnipay-judopay) | ✓ | - | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) [Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | ✓ | ✓ | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) From daeaa8ce69052338fcb7bb1a28eff06473d28576 Mon Sep 17 00:00:00 2001 From: Dmytro Naumenko Date: Thu, 15 Nov 2018 21:27:16 +0200 Subject: [PATCH 253/333] omnipay-robokassa supports v3 (#540) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cb1bcb27..d6a40b2c 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Realex](https://github.com/digitickets/omnipay-realex) | ✓ | - | digitickets/omnipay-realex | [DigiTickets](https://github.com/digitickets) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | ✓ | - | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | ✓ | - | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) -[RoboKassa](https://github.com/hiqdev/omnipay-robokassa) | ✓ | - | hiqdev/omnipay-robokassa | [HiQDev](https://github.com/hiqdev) +[RoboKassa](https://github.com/hiqdev/omnipay-robokassa) | ✓ | ✓ | hiqdev/omnipay-robokassa | [HiQDev](https://github.com/hiqdev) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | ✓ | ✓ | omnipay/sagepay | [Jason Judge](https://github.com/judgej) [Sberbank](https://github.com/AndrewNovikof/omnipay-sberbank) | - | ✓ | andrewnovikof/omnipay-sberbank | [Andrew Novikov](https://github.com/AndrewNovikof) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | ✓ | - | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) From 5b2076363f751a9c01c2db7c95e056a5cdd3db86 Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Thu, 22 Nov 2018 19:52:29 +0000 Subject: [PATCH 254/333] Add Adyen API/CSE/HPP (#542) * Add Adyen API/CSE/HPP There are a number of older Omnipay Adyen drivers on packagist, none maintained for a number of years, none using the newer features, and none submitted to this list. I'm happy to look at merging any features in that they have and I may have missed. * Added list newline --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d6a40b2c..4ce20083 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [2c2p](https://github.com/dilab/omnipay-2c2p) | ✓ | ✓ | dilab/omnipay-2c2p | [Xu Ding](https://github.com/dilab) [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | ✓ | - | omnipay/2checkout | [Omnipay](https://github.com/thephpleague/omnipay) [2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | ✓ | - | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) +[Adyen](https://github.com/academe/omnipay-adyen) | - | ✓ | academe/omnipay-adyen | [Jason Judge](https://github.com/judgej) [Agms](https://github.com/agmscode/omnipay-agms) | ✓ | - | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | ✓ | ✓ | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) [Alipay](https://github.com/lokielse/omnipay-alipay) | ✓ | ✓ | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) From d924d1931f76fb23f66a2d35b06a071f65a31eab Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 28 Nov 2018 10:07:40 +1300 Subject: [PATCH 255/333] Payment express does have a 3.x release (#543) see https://github.com/thephpleague/omnipay-paymentexpress/releases --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ce20083..bc04f701 100644 --- a/README.md +++ b/README.md @@ -187,7 +187,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Paratika (Asseco)](https://github.com/yasinkuyu/omnipay-paratika) | ✓ | - | yasinkuyu/omnipay-paratika | [Yasin Kuyu](https://github.com/yasinkuyu) [PayFast](https://github.com/thephpleague/omnipay-payfast) | ✓ | - | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) [Payflow](https://github.com/thephpleague/omnipay-payflow) | ✓ | - | omnipay/payflow | [Del](https://github.com/delatbabel) -[PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | ✓ | - | omnipay/paymentexpress | [Del](https://github.com/delatbabel) +[PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | ✓ | ✓ | omnipay/paymentexpress | [Del](https://github.com/delatbabel) [PaymentExpress / DPS (A2A)](https://github.com/onlinesid/omnipay-paymentexpress-a2a) | ✓ | - | onlinesid/omnipay-paymentexpress-a2a | [Sid](https://github.com/onlinesid) [PaymentgateRu](https://github.com/pinguinjkeke/omnipay-paymentgateru) | ✓ | ✓ | pinguinjkeke/omnipay-paymentgateru | [Alexander Avakov](https://github.com/pinguinjkeke) [PaymentSense](https://github.com/digitickets/omnipay-paymentsense) | ✓ | - | digitickets/omnipay-paymentsense | [DigiTickets](https://github.com/digitickets) From 15b7647ae949d7f3dd051a1806d4269e7e141812 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 28 Nov 2018 10:07:55 +1300 Subject: [PATCH 256/333] Cybersource now updated to v3 (#544) https://github.com/dioscouri/omnipay-cybersource --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc04f701..99797f91 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [CoinGate](https://github.com/coingate/omnipay-coingate) | ✓ | - | coingate/omnipay-coingate | [CoinGate](https://github.com/coingate) [CoinPayments](https://github.com/InkedCurtis/omnipay-coinpayments) | ✓ | ✓ | InkedCurtis/omnipay-coinpayments | [InkedCurtis](https://github.com/InkedCurtis) [Creditcall](https://github.com/meebio/omnipay-creditcall) | ✓ | - | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) -[Cybersource](https://github.com/dioscouri/omnipay-cybersource) | ✓ | - | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) +[Cybersource](https://github.com/dioscouri/omnipay-cybersource) | ✓ | ✓ | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | ✓ | - | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/digitickets/omnipay-datacash) | ✓ | - | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) [Datatrans](https://github.com/w-vision/omnipay-datatrans) | ✓ | - | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) From d7de3205b3bb2ec80c5e235833cae5ed7e6e9a87 Mon Sep 17 00:00:00 2001 From: Hugo Vacher Date: Tue, 27 Nov 2018 16:09:27 -0500 Subject: [PATCH 257/333] New Elavon fork that supports version 3 (#538) We use the driver internally and decided to start maintaining a version as the original seems abandoned. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 99797f91..40d21554 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [eCoin](https://github.com/hiqdev/omnipay-ecoin) | ✓ | - | hiqdev/omnipay-ecoin | [HiQDev](https://github.com/hiqdev) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | ✓ | - | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | ✓ | - | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) -[Elavon](https://github.com/lemonstand/omnipay-elavon) | ✓ | - | lemonstand/omnipay-elavon | [LemonStand](https://github.com/lemonstand) +[Elavon](https://github.com/lxrco/omnipay-elavon) | ✓ | ✓ | lxrco/omnipay-elavon | [Korri](https://github.com/Korri) [ePayments](https://github.com/hiqdev/omnipay-epayments) | ✓ | - | hiqdev/omnipay-epayments | [HiQDev](https://github.com/hiqdev) [ePayService](https://github.com/hiqdev/omnipay-epayservice) | ✓ | - | hiqdev/omnipay-epayservice | [HiQDev](https://github.com/hiqdev) [eWAY](https://github.com/thephpleague/omnipay-eway) | ✓ | ✓ | omnipay/eway | [Del](https://github.com/delatbabel) From 2fb224a66cc9f3f97d77266167eedf5879042b41 Mon Sep 17 00:00:00 2001 From: Jawad Humayun Date: Fri, 30 Nov 2018 23:33:10 +0800 Subject: [PATCH 258/333] Updated Readme.md (#546) I am developer from eGHL. I can see that someone else 'XU Ding' already added omnipay integration with eGHL. What do you suggest about duplication? --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 40d21554..c6b3b6b6 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Datatrans](https://github.com/academe/omnipay-datatrans) | ✓ | ✓ | academe/omnipay-datatrans | [Jason Judge](https://github.com/judgej) [Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | ✓ | - | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) [Dummy](https://github.com/thephpleague/omnipay-dummy) | ✓ | ✓ | omnipay/dummy | [Del](https://github.com/delatbabel) +[eGHL](https://bitbucket.org/eghl/eghl-omnipay/src/master/) | - | ✓ | e-ghl/omnipay | [Jawad Humayun](https://bitbucket.org/jawad242/) [eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | ✓ | dilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) [eCoin](https://github.com/hiqdev/omnipay-ecoin) | ✓ | - | hiqdev/omnipay-ecoin | [HiQDev](https://github.com/hiqdev) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | ✓ | - | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) From 77ff267c5282b7856d55f2a9f75ba1b3be138182 Mon Sep 17 00:00:00 2001 From: Larry Akah H N Date: Fri, 30 Nov 2018 16:34:15 +0100 Subject: [PATCH 259/333] Added the Driver for MTN Cameroon Mobile money payment system to the omnipay gateway interface. (#545) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c6b3b6b6..ac6fed81 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Magnius](https://github.com/fruitcake/omnipay-magnius) | - | ✓ | fruitcake/omnipay-magnius | [Fruitcake](https://github.com/fruitcake) [Manual](https://github.com/thephpleague/omnipay-manual) | ✓ | - | omnipay/manual | [Del](https://github.com/delatbabel) [Migs](https://github.com/thephpleague/omnipay-migs) | ✓ | - | omnipay/migs | [Omnipay](https://github.com/thephpleague/omnipay) +[MTNCAM Mobile Money](https://github.com/larrytech7/omnipay-momocm) | ✓ | ✓ | larrytech7/omnipay-momocm | [Akah Harvey](https://github.com/larrytech7) [Mollie](https://github.com/thephpleague/omnipay-mollie) | ✓ | ✓ | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) [MOLPay](https://github.com/leesiongchan/omnipay-molpay) | ✓ | - | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) [MultiCards](https://github.com/incube8/omnipay-multicards) | ✓ | - | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) From a93ba0fecaaacdb696e20b4adfb0a3c51324fd54 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Fri, 30 Nov 2018 16:41:06 +0100 Subject: [PATCH 260/333] Add rabobank --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ac6fed81..e624203c 100644 --- a/README.md +++ b/README.md @@ -214,6 +214,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Qiwi](https://github.com/hiqdev/omnipay-qiwi) | ✓ | - | hiqdev/omnipay-qiwi | [HiQDev](https://github.com/hiqdev) [QQ Wallet(QPay)](https://github.com/kuangjy2/omnipay-qpay) | - | ✓ | kuangjy/omnipay-qpay | [Kuang Jiaye](https://github.com/kuangjy2) [Quickpay](https://github.com/NobrainerWeb/omnipay-quickpay) | ✓ | - | nobrainerweb/omnipay-quickpay | [Nobrainer Web](https://github.com/NobrainerWeb) +[Rabobank](https://github.com/thephpleague/omnipay-rabobank) | ✓ | - | omnipay/rabobank | [Barry vd. Heuvel](https://github.com/barryvdh) [Realex](https://github.com/digitickets/omnipay-realex) | ✓ | - | digitickets/omnipay-realex | [DigiTickets](https://github.com/digitickets) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | ✓ | - | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | ✓ | - | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) From 1f16bddabacfba0fe41e25184f54511390954b53 Mon Sep 17 00:00:00 2001 From: niels-qup <30471790+niels-qup@users.noreply.github.com> Date: Fri, 14 Dec 2018 08:54:25 +0100 Subject: [PATCH 261/333] Added acapture gateway link to readme (#547) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e624203c..3e23d76e 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [2c2p](https://github.com/dilab/omnipay-2c2p) | ✓ | ✓ | dilab/omnipay-2c2p | [Xu Ding](https://github.com/dilab) [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | ✓ | - | omnipay/2checkout | [Omnipay](https://github.com/thephpleague/omnipay) [2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | ✓ | - | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) +[Acapture (PayVision)] (https://github.com/queueup-dev/omnipay-acapture) | ✓ | - | qup/omnipay-acapture | [Niels de Vries](https://github.com/niels-qup) [Adyen](https://github.com/academe/omnipay-adyen) | - | ✓ | academe/omnipay-adyen | [Jason Judge](https://github.com/judgej) [Agms](https://github.com/agmscode/omnipay-agms) | ✓ | - | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | ✓ | ✓ | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) From 04b191f9ffaa1c522a801e7da9b9885c00aa7176 Mon Sep 17 00:00:00 2001 From: niels-qup <30471790+niels-qup@users.noreply.github.com> Date: Fri, 14 Dec 2018 10:24:27 +0100 Subject: [PATCH 262/333] Removed space that messed up layout (#548) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e23d76e..1619c3bb 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [2c2p](https://github.com/dilab/omnipay-2c2p) | ✓ | ✓ | dilab/omnipay-2c2p | [Xu Ding](https://github.com/dilab) [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | ✓ | - | omnipay/2checkout | [Omnipay](https://github.com/thephpleague/omnipay) [2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | ✓ | - | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) -[Acapture (PayVision)] (https://github.com/queueup-dev/omnipay-acapture) | ✓ | - | qup/omnipay-acapture | [Niels de Vries](https://github.com/niels-qup) +[Acapture (PayVision)](https://github.com/queueup-dev/omnipay-acapture) | ✓ | - | qup/omnipay-acapture | [Niels de Vries](https://github.com/niels-qup) [Adyen](https://github.com/academe/omnipay-adyen) | - | ✓ | academe/omnipay-adyen | [Jason Judge](https://github.com/judgej) [Agms](https://github.com/agmscode/omnipay-agms) | ✓ | - | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | ✓ | ✓ | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) From caeece5115c92566d3825fb91003137f4a70c388 Mon Sep 17 00:00:00 2001 From: Chris Lock Date: Tue, 15 Jan 2019 20:08:45 +0000 Subject: [PATCH 263/333] Adding CG Hosted support for 3.0 (#549) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1619c3bb..3cb09650 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Omnipay is a collection of packages which all depend on the [omnipay/common](https://github.com/thephpleague/omnipay-common) package to provide a consistent interface. There are no dependencies on official payment gateway PHP packages - we prefer to work with the HTTP API directly. Under the hood, we use the popular and powerful -[PHP-HTTP](http://docs.php-http.org/en/latest/index.html) library to make HTTP requests. +[PHP-HTTP](http://docs.php-http.org/en/latest/index.html) library to make HTTP requests. A [Guzzle](http://guzzlephp.org/) adapter is required by default, when using `league/omnipay`. New gateways can be created by cloning the layout of an existing package. When choosing a @@ -65,7 +65,7 @@ payment library, a good name for your composer package would be `santa/omnipay-g ## Installation -Omnipay is installed via [Composer](https://getcomposer.org/). +Omnipay is installed via [Composer](https://getcomposer.org/). For most uses, you will need to require `league/omnipay` and an individual gateway: ``` @@ -244,7 +244,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Wirecard](https://github.com/igaponov/omnipay-wirecard) | ✓ | ✓ | igaponov/omnipay-wirecard | [Igor Gaponov](https://github.com/igaponov) [Wirecard](https://github.com/academe/omnipay-wirecard) | ✓ | - | academe/omnipay-wirecard | [Jason Judge](https://github.com/judgej) [Worldpay XML Direct Corporate Gateway](https://github.com/teaandcode/omnipay-worldpay-xml) | ✓ | - | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) -[Worldpay XML Hosted Corporate Gateway](https://github.com/comicrelief/omnipay-worldpay-cg-hosted) | ✓ | - | comicrelief/omnipay-worldpay-cg-hosted | [Comic Relief](https://github.com/comicrelief) +[Worldpay XML Hosted Corporate Gateway](https://github.com/catharsisjelly/omnipay-worldpay-cg-hosted) | ✓ | ✓ | catharsisjelly/omnipay-worldpay-cg-hosted | [Chris Lock](https://github.com/catharsisjelly) [Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | ✓ | ✓ | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | ✓ | - | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) [Yandex.Money for P2P payments](https://github.com/hiqdev/omnipay-yandexmoney) | ✓ | - | hiqdev/omnipay-yandexmoney | [HiQDev](https://github.com/hiqdev) @@ -496,10 +496,10 @@ try { Most gateways allow you to set up a sandbox or developer account which uses a different url and credentials. Some also allow you to do test transactions against the live site, which does not result in a live transaction. - + Gateways that implement only the developer account (most of them) call it testMode. Authorize.net, however, implements both and refers to this mode as developerMode. - + When implementing with multiple gateways you should use a construct along the lines of the following: ```php if ($is_developer_mode) { From 9ecee68a668811118912bd703ee129541e703dde Mon Sep 17 00:00:00 2001 From: Myles Derham Date: Sun, 10 Feb 2019 05:40:01 +1300 Subject: [PATCH 264/333] Added Laybuy to list of gateways (#551) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3cb09650..d12c5256 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | ✓ | - | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Judo Pay](https://github.com/Transportersio/omnipay-judopay) | ✓ | - | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) [Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | ✓ | ✓ | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) +[Laybuy](https://github.com/mediabeastnz/omnipay-laybuy) | ✓ | - | mediabeastnz/omnipay-laybuy | [Myles Derham](https://github.com/mediabeastnz) [Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | ✓ | - | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) [Komoju](https://github.com/dannyvink/omnipay-komoju) | ✓ | - | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Midtrans](https://github.com/dilab/omnipay-midtrans) | ✓ | ✓ | dilab/omnipay-midtrans | [Xu Ding](https://github.com/dilab) From 0b48147cd59f696077a90fddbfb5181b69a819eb Mon Sep 17 00:00:00 2001 From: Sujip Thapa Date: Wed, 13 Mar 2019 13:37:40 +0545 Subject: [PATCH 265/333] Updated README.md (#553) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d12c5256..9897c68e 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Nocks](https://github.com/nocksapp/checkout-omnipay) | ✓ | - | nocksapp/omnipay-nocks | [Nocks](https://github.com/nocksapp) [OkPay](https://github.com/hiqdev/omnipay-okpay) | ✓ | - | hiqdev/omnipay-okpay | [HiQDev](https://github.com/hiqdev) [OnePay](https://github.com/dilab/omnipay-onepay) | ✓ | ✓ | dilab/omnipay-onepay | [Xu Ding](https://github.com/dilab) +[Openpay Australia](https://github.com/sudiptpa/openpay) | ✓ | ✓ | sudiptpa/omnipay-openpay | [Sujip Thapa](https://github.com/sudiptpa) [Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | ✓ | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) [Payoo](https://github.com/dilab/omnipay-payoo) | ✓ | ✓ | dilab/omnipay-payoo | [Xu Ding](https://github.com/dilab) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | ✓ | - | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) From df29c68950a06c8536baeba54d0672e4752cf6a4 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 13 Mar 2019 08:56:00 +0100 Subject: [PATCH 266/333] Update .travis.yml --- .travis.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8f96ad7a..45a77148 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,6 @@ php: - 7.0 - 7.1 - 7.2 - - 7.3 # This triggers builds to run on the new TravisCI infrastructure. # See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/ @@ -16,20 +15,4 @@ cache: directories: - $HOME/.composer/cache -env: - global: - - symfony="*" - -matrix: - include: - - php: 5.6 - env: symfony="^2.1" - - php: 5.6 - env: symfony="^3" - - php: 7.1 - env: symfony="^4" - -install: - - if [[ $symfony != '*' ]]; then travis_retry composer require symfony/http-foundation:${symfony} --no-update --no-interaction; fi - script: composer install --prefer-dist --no-interaction From 79c18bdecae8766ea1319bdaa90e3428088f29a0 Mon Sep 17 00:00:00 2001 From: Semyon Chetvertnyh Date: Fri, 15 Mar 2019 12:27:23 +0200 Subject: [PATCH 267/333] Add a Paysera gateway provider (#554) This PR adds a link to Paysera gateway package that supports Omnipay v3+. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9897c68e..5506d9e4 100644 --- a/README.md +++ b/README.md @@ -202,6 +202,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PAYONE](https://github.com/academe/omnipay-payone) | ✓ | ✓ | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | ✓ | - | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [Paysera](https://github.com/povils/omnipay-paysera) | ✓ | - | povils/omnipay-paysera | [Povils](https://github.com/povils) +[Paysera](https://github.com/semyonchetvertnyh/omnipay-paysera) | - | ✓ | semyonchetvertnyh/omnipay-paysera | [Semyon Chetvertnyh](https://github.com/semyonchetvertnyh) [PaySimple](https://github.com/dranes/omnipay-paysimple) | ✓ | - | dranes/omnipay-paysimple | [Dranes](https://github.com/dranes) [PaySsion](https://github.com/InkedCurtis/omnipay-payssion) | ✓ | - | inkedcurtis/omnipay-payssion | [Curtis](https://github.com/inkedcurtis) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | ✓ | - | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) From 8ce4f4cfdb6eebb3e866f06a41e84b4425a974ec Mon Sep 17 00:00:00 2001 From: Sujip Thapa Date: Sat, 16 Mar 2019 14:52:39 +0545 Subject: [PATCH 268/333] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5506d9e4..c2aad75f 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | ✓ | dilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) [eCoin](https://github.com/hiqdev/omnipay-ecoin) | ✓ | - | hiqdev/omnipay-ecoin | [HiQDev](https://github.com/hiqdev) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | ✓ | - | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) +[eSewa](https://github.com/sudiptpa/esewa) | - | ✓ | sudiptpa/omnipay-esewa | [Sujip Thapa](https://github.com/sudiptpa) [EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | ✓ | - | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) [Elavon](https://github.com/lxrco/omnipay-elavon) | ✓ | ✓ | lxrco/omnipay-elavon | [Korri](https://github.com/Korri) [ePayments](https://github.com/hiqdev/omnipay-epayments) | ✓ | - | hiqdev/omnipay-epayments | [HiQDev](https://github.com/hiqdev) From 9e10d91cbf84744207e13d4483e79de39b133368 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 20 Mar 2019 15:28:28 +0100 Subject: [PATCH 269/333] Allow guzzle6 v2 adapter (#556) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 391d64ee..0b095eb6 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "require": { "php": "^5.6|^7", "omnipay/common": "^3", - "php-http/guzzle6-adapter": "^1.1" + "php-http/guzzle6-adapter": "^1.1|^2" }, "require-dev": { "omnipay/tests": "^3" From 50c060c6b081ea09d44d4c186c3378aca53e0fcd Mon Sep 17 00:00:00 2001 From: Deniz Tezcan <10155092+deniztezcan@users.noreply.github.com> Date: Wed, 3 Apr 2019 09:23:44 +0200 Subject: [PATCH 270/333] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c2aad75f..9694bd92 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | ✓ | - | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [Helcim](https://github.com/academe/omnipay-helcim) | ✓ | - | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) [iDram](https://github.com/ptuchik/omnipay-idram) | - | ✓ | ptuchik/omnipay-idram | [Avik Aghajanyan](https://github.com/ptuchik) +[iDeal](https://github.com/deniztezcan/omnipay-ideal) | - | ✓ | deniztezcan/omnipay-ideal | [Deniz Tezcan](https://github.com/deniztezcan) [iPay88](https://github.com/dilab/omnipay-ipay88) | ✓ | ✓ | dilab/omnipay-ipay88 | [Xu Ding](https://github.com/dilab) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ✓ | - | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) [InterKassa](https://github.com/hiqdev/omnipay-interkassa) | ✓ | ✓ | hiqdev/omnipay-interkassa | [HiQDev](https://github.com/hiqdev) From b25d2fcb2d4857945a76dd6005caa8770ec0e5ad Mon Sep 17 00:00:00 2001 From: Burak USGURLU Date: Tue, 21 May 2019 17:52:26 +0300 Subject: [PATCH 271/333] v3 support for nestpay and other libraries (#563) --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9694bd92..4d35e747 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [DataCash](https://github.com/digitickets/omnipay-datacash) | ✓ | - | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) [Datatrans](https://github.com/w-vision/omnipay-datatrans) | ✓ | - | w-vision/datatrans | [Dominik Pfaffenbauer](https://github.com/dpfaffenbauer) [Datatrans](https://github.com/academe/omnipay-datatrans) | ✓ | ✓ | academe/omnipay-datatrans | [Jason Judge](https://github.com/judgej) -[Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | ✓ | - | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) +[Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | ✓ | ✓ | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) [Dummy](https://github.com/thephpleague/omnipay-dummy) | ✓ | ✓ | omnipay/dummy | [Del](https://github.com/delatbabel) [eGHL](https://bitbucket.org/eghl/eghl-omnipay/src/master/) | - | ✓ | e-ghl/omnipay | [Jawad Humayun](https://bitbucket.org/jawad242/) [eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | ✓ | dilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) @@ -178,6 +178,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [MyCard](https://github.com/xxtime/omnipay-mycard) | ✓ | - | xxtime/omnipay-mycard | [Joe Chu](https://github.com/xxtime) [National Australia Bank (NAB) Transact](https://github.com/sudiptpa/omnipay-nabtransact) | ✓ | ✓ | sudiptpa/omnipay-nabtransact | [Sujip Thapa](https://github.com/sudiptpa) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | ✓ | - | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) +[NestPay (EST)](https://github.com/uskur/omnipay-nestpay) | - | ✓ | uskur/omnipay-nestpay | [Uskur](https://github.com/uskur) [Netaxept (BBS)](https://github.com/thephpleague/omnipay-netaxept) | ✓ | - | omnipay/netaxept | [Omnipay](https://github.com/thephpleague/omnipay) [Netbanx](https://github.com/thephpleague/omnipay-netbanx) | ✓ | - | omnipay/netbanx | [Maks Rafalko](https://github.com/borNfreee) [Neteller](https://github.com/dercoder/omnipay-neteller) | ✓ | - | dercoder/omnipay-neteller | [Alexander Fedra](https://github.com/dercoder) @@ -210,7 +211,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | ✓ | - | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | ✓ | - | omnipay/payu | [efesaid](https://github.com/efesaid) [Paxum](https://github.com/hiqdev/omnipay-paxum) | ✓ | - | hiqdev/omnipay-paxum | [HiQDev](https://github.com/hiqdev) -[Pelecard](https://github.com/Uskur/omnipay-pelecard) | ✓ | - | uskur/omnipay-pelecard | [Uskur](https://github.com/Uskur) +[Pelecard](https://github.com/Uskur/omnipay-pelecard) | ✓ | ✓ | uskur/omnipay-pelecard | [Uskur](https://github.com/Uskur) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | ✓ | - | omnipay/pin | [Del](https://github.com/delatbabel) [Ping++](https://github.com/phoenixg/omnipay-pingpp) | ✓ | - | phoenixg/omnipay-pingpp | [Huang Feng](https://github.com/phoenixg) [POLi](https://github.com/burnbright/omnipay-poli) | ✓ | - | burnbright/omnipay-poli | [Sid](https://github.com/onlinesid) From 5382632e5e5709e29a57cbdd48becf403beaef31 Mon Sep 17 00:00:00 2001 From: SASh Date: Tue, 21 May 2019 17:52:55 +0300 Subject: [PATCH 272/333] Add fibank to the list of integrations (#562) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4d35e747..8c2047bf 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Fasapay](https://github.com/andreas22/omnipay-fasapay) | ✓ | - | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | ✓ | - | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) [FreeKassa](https://github.com/hiqdev/omnipay-freekassa) | ✓ | - | hiqdev/omnipay-freekassa | [HiQDev](https://github.com/hiqdev) +[Fibank](https://github.com/ampeco/omnipay-fibank) | - | ✓ | ampeco/omnipay-fibank | [Ampeco](https://github.com/ampeco) [First Data](https://github.com/thephpleague/omnipay-firstdata) | ✓ | - | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | ✓ | - | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) [Free / Zero Amount](https://github.com/colinodell/omnipay-zero) | ✓ | - | colinodell/omnipay-zero | [Colin O'Dell](https://github.com/colinodell) From d6a52eb581d46a46da65911196e17e68b2e66822 Mon Sep 17 00:00:00 2001 From: Lucas Macedo Date: Tue, 21 May 2019 11:53:15 -0300 Subject: [PATCH 273/333] add MercadoPago Drive (#561) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8c2047bf..9ef840dd 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | ✓ | - | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) [Komoju](https://github.com/dannyvink/omnipay-komoju) | ✓ | - | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Midtrans](https://github.com/dilab/omnipay-midtrans) | ✓ | ✓ | dilab/omnipay-midtrans | [Xu Ding](https://github.com/dilab) +[MercadoPago](https://github.com/lucassmacedo/omnipay-mercadopago) | - | ✓ | lucassmacedo/omnipay-mercadopago | [Lucas Macedo](https://github.com/lucassmacedo) [Magnius](https://github.com/fruitcake/omnipay-magnius) | - | ✓ | fruitcake/omnipay-magnius | [Fruitcake](https://github.com/fruitcake) [Manual](https://github.com/thephpleague/omnipay-manual) | ✓ | - | omnipay/manual | [Del](https://github.com/delatbabel) [Migs](https://github.com/thephpleague/omnipay-migs) | ✓ | - | omnipay/migs | [Omnipay](https://github.com/thephpleague/omnipay) From ed731701d99225c51352027e8392d100efcd7254 Mon Sep 17 00:00:00 2001 From: aschelch Date: Tue, 21 May 2019 16:53:35 +0200 Subject: [PATCH 274/333] Add PayZen library package (#558) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9ef840dd..4065996d 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PaySsion](https://github.com/InkedCurtis/omnipay-payssion) | ✓ | - | inkedcurtis/omnipay-payssion | [Curtis](https://github.com/inkedcurtis) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | ✓ | - | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | ✓ | - | omnipay/payu | [efesaid](https://github.com/efesaid) +[PayZen](https://github.com/ubitransports/omnipay-payzen) | ✓ | - | ubitransports/omnipay-payzen | [Ubitransport](https://github.com/ubitransports) [Paxum](https://github.com/hiqdev/omnipay-paxum) | ✓ | - | hiqdev/omnipay-paxum | [HiQDev](https://github.com/hiqdev) [Pelecard](https://github.com/Uskur/omnipay-pelecard) | ✓ | ✓ | uskur/omnipay-pelecard | [Uskur](https://github.com/Uskur) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | ✓ | - | omnipay/pin | [Del](https://github.com/delatbabel) From e171c27c106a48936a470fc9eefb2532d9759e2f Mon Sep 17 00:00:00 2001 From: Andy Pieters Date: Tue, 21 May 2019 16:54:57 +0200 Subject: [PATCH 275/333] Added PAY. to Payment Gateways (#560) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4065996d..15b35eb9 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [OnePay](https://github.com/dilab/omnipay-onepay) | ✓ | ✓ | dilab/omnipay-onepay | [Xu Ding](https://github.com/dilab) [Openpay Australia](https://github.com/sudiptpa/openpay) | ✓ | ✓ | sudiptpa/omnipay-openpay | [Sujip Thapa](https://github.com/sudiptpa) [Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | ✓ | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) +[PAY. (Pay.nl & Pay.be)](https://github.com/paynl/omnipay-paynl) | ✓ | ✓ | paynl/omnipay-paynl | [Andy Pieters](https://github.com/andypieters) [Payoo](https://github.com/dilab/omnipay-payoo) | ✓ | ✓ | dilab/omnipay-payoo | [Xu Ding](https://github.com/dilab) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | ✓ | - | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | ✓ | - | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) From 0ff722379158d9216e5f84a6e90ea2f866b70bde Mon Sep 17 00:00:00 2001 From: Dmytro Naumenko Date: Fri, 24 May 2019 08:39:52 +0300 Subject: [PATCH 276/333] Added Yandex.Kassa implementation (#564) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 15b35eb9..bc9e2a16 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Worldpay XML Direct Corporate Gateway](https://github.com/teaandcode/omnipay-worldpay-xml) | ✓ | - | teaandcode/omnipay-worldpay-xml | [Dave Nash](https://github.com/teaandcode) [Worldpay XML Hosted Corporate Gateway](https://github.com/catharsisjelly/omnipay-worldpay-cg-hosted) | ✓ | ✓ | catharsisjelly/omnipay-worldpay-cg-hosted | [Chris Lock](https://github.com/catharsisjelly) [Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | ✓ | ✓ | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) +[Yandex.Kassa](https://github.com/hiqdev/omnipay-yandex-kassa) | ✓ | ✓ | hiqdev/omnipay-yandex-kassa | [HiQDev](https://github.com/hiqdev) [Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | ✓ | - | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) [Yandex.Money for P2P payments](https://github.com/hiqdev/omnipay-yandexmoney) | ✓ | - | hiqdev/omnipay-yandexmoney | [HiQDev](https://github.com/hiqdev) [Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) From 471e1e4df348698ed307ba7d7b01ddaf869b7a05 Mon Sep 17 00:00:00 2001 From: Benedikt Lenzen <36764562+DemigodCode@users.noreply.github.com> Date: Fri, 16 Aug 2019 22:29:05 +0200 Subject: [PATCH 277/333] Add VR Payment to Readme (#575) * Update README.md * Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bc9e2a16..a1e6fe61 100644 --- a/README.md +++ b/README.md @@ -247,6 +247,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | ✓ | - | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) [Vindicia](https://github.com/vimeo/omnipay-vindicia) | ✓ | - | vimeo/omnipay-vindicia | [Vimeo](https://github.com/vimeo) [VivaPayments](https://github.com/delatbabel/omnipay-vivapayments) | ✓ | - | delatbabel/omnipay-vivapayments | [Del](https://github.com/delatbabel) +[VR Payment](https://github.com/antibodies-online/omnipay-vr-payment) | ✓ | - | antibodies-online/omnipay-vr-payment | [antibodies-online](https://github.com/antibodies-online) [WebMoney](https://github.com/dercoder/omnipay-webmoney) | ✓ | - | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WeChat](https://github.com/labs7in0/omnipay-wechat) | ✓ | - | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | ✓ | ✓ | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) From fed012ce3dac1bc2b3db5695950fddf295b31558 Mon Sep 17 00:00:00 2001 From: David Kurniawan Date: Sat, 17 Aug 2019 03:29:29 +0700 Subject: [PATCH 278/333] add faspay payment (#577) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a1e6fe61..e743a254 100644 --- a/README.md +++ b/README.md @@ -261,6 +261,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | ✓ | - | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) [Yandex.Money for P2P payments](https://github.com/hiqdev/omnipay-yandexmoney) | ✓ | - | hiqdev/omnipay-yandexmoney | [HiQDev](https://github.com/hiqdev) [Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) +[Faspay](https://github.com/David-Kurniawan/omnipay-faspay) | ✓ | ✓ | David-Kurniawan/omnipay-faspay | [David](https://github.com/David-Kurniawan) Gateways are created and initialized like so: From 7b4404871d2378b4206783c01c6becaaabe0c243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Petr=C3=A1k?= Date: Fri, 16 Aug 2019 22:30:00 +0200 Subject: [PATCH 279/333] Added Bileto-release gateways for CSOB, GoPay, PayU, TatraBank (#576) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e743a254..0ad9f4d3 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [CoinGate](https://github.com/coingate/omnipay-coingate) | ✓ | - | coingate/omnipay-coingate | [CoinGate](https://github.com/coingate) [CoinPayments](https://github.com/InkedCurtis/omnipay-coinpayments) | ✓ | ✓ | InkedCurtis/omnipay-coinpayments | [InkedCurtis](https://github.com/InkedCurtis) [Creditcall](https://github.com/meebio/omnipay-creditcall) | ✓ | - | meebio/omnipay-creditcall | [John Jablonski](https://github.com/jan-j) +[CSOB](https://github.com/bileto/omnipay-csob) (GP WebPay) | ✓ | - | bileto/omnipay-csob | [Cybersource](https://github.com/dioscouri/omnipay-cybersource) | ✓ | ✓ | dioscouri/omnipay-cybersource | [Dioscouri Design](https://github.com/dioscouri) [Cybersource SOAP](https://github.com/Klinche/omnipay-cybersource-soap) | ✓ | - | dabsquared/omnipay-cybersource-soap | [DABSquared](https://github.com/DABSquared) [DataCash](https://github.com/digitickets/omnipay-datacash) | ✓ | - | digitickets/omnipay-datacash | [DigiTickets](https://github.com/digitickets) @@ -153,6 +154,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [GiroCheckout](https://github.com/academe/Omnipay-GiroCheckout) | ✓ | ✓ | academe/omnipay-girocheckout | [Jason Judge](https://github.com/judgej) [Globalcloudpay](https://github.com/dercoder/omnipay-globalcloudpay) | ✓ | - | dercoder/omnipay-globalcloudpay | [Alexander Fedra](https://github.com/dercoder) [GoCardless](https://github.com/thephpleague/omnipay-gocardless) | ✓ | - | omnipay/gocardless | [Del](https://github.com/delatbabel) +[GoPay](https://github.com/bileto/omnipay-gopay) | ✓ | - | bileto/omnipay-gopay | [GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | ✓ | - | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | ✓ | - | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [Helcim](https://github.com/academe/omnipay-helcim) | ✓ | - | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) @@ -213,6 +215,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PaySsion](https://github.com/InkedCurtis/omnipay-payssion) | ✓ | - | inkedcurtis/omnipay-payssion | [Curtis](https://github.com/inkedcurtis) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | ✓ | - | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/efesaid/omnipay-payu) | ✓ | - | omnipay/payu | [efesaid](https://github.com/efesaid) +[PayU](https://github.com/bileto/omnipay-payu) | ✓ | - | bileto/omnipay-payu | [PayZen](https://github.com/ubitransports/omnipay-payzen) | ✓ | - | ubitransports/omnipay-payzen | [Ubitransport](https://github.com/ubitransports) [Paxum](https://github.com/hiqdev/omnipay-paxum) | ✓ | - | hiqdev/omnipay-paxum | [HiQDev](https://github.com/hiqdev) [Pelecard](https://github.com/Uskur/omnipay-pelecard) | ✓ | ✓ | uskur/omnipay-pelecard | [Uskur](https://github.com/Uskur) @@ -242,6 +245,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Square](https://github.com/Transportersio/omnipay-square) | ✓ | - | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) [Stripe](https://github.com/thephpleague/omnipay-stripe) | ✓ | ✓ | omnipay/stripe | [Del](https://github.com/delatbabel) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | ✓ | - | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) +[TatraBank](https://github.com/bileto/omnipay-tatrabank) | ✓ | - | omnipay-tatrabank | [UnionPay](https://github.com/lokielse/omnipay-unionpay) | ✓ | ✓ | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) [Vantiv](https://github.com/lemonstand/omnipay-vantiv) | ✓ | - | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | ✓ | - | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) From ed1904805905fc798e77f28abacb83d21d356cdc Mon Sep 17 00:00:00 2001 From: Emre Akinci Date: Fri, 16 Aug 2019 23:31:50 +0300 Subject: [PATCH 280/333] Add omnipay-gvp for version 3.x (#572) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0ad9f4d3..827a3cbb 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [GoPay](https://github.com/bileto/omnipay-gopay) | ✓ | - | bileto/omnipay-gopay | [GovPayNet](https://github.com/flexcoders/omnipay-govpaynet) | ✓ | - | omnipay/omnipay-govpaynet | [FlexCoders](https://github.com/flexcoders) [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | ✓ | - | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) +[GVP (Garanti)](https://github.com/emr/omnipay-gvp) | - | ✓ | emr/omnipay-gvp | [Emre Akinci](https://github.com/emr) [Helcim](https://github.com/academe/omnipay-helcim) | ✓ | - | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) [iDram](https://github.com/ptuchik/omnipay-idram) | - | ✓ | ptuchik/omnipay-idram | [Avik Aghajanyan](https://github.com/ptuchik) [iDeal](https://github.com/deniztezcan/omnipay-ideal) | - | ✓ | deniztezcan/omnipay-ideal | [Deniz Tezcan](https://github.com/deniztezcan) From 605201ce56cd75fbf8cc9f798c0e773a24aae53e Mon Sep 17 00:00:00 2001 From: Vuong Minh <38932626+vuongxuongminh@users.noreply.github.com> Date: Sat, 17 Aug 2019 03:32:09 +0700 Subject: [PATCH 281/333] Added MoMo library (#570) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 827a3cbb..4a7d7400 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [MTNCAM Mobile Money](https://github.com/larrytech7/omnipay-momocm) | ✓ | ✓ | larrytech7/omnipay-momocm | [Akah Harvey](https://github.com/larrytech7) [Mollie](https://github.com/thephpleague/omnipay-mollie) | ✓ | ✓ | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) [MOLPay](https://github.com/leesiongchan/omnipay-molpay) | ✓ | - | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) +[MoMo](https://github.com/phpviet/omnipay-momo) | - | ✓ | phpviet/omnipay-momo | [PHPViet](https://github.com/phpviet) [MultiCards](https://github.com/incube8/omnipay-multicards) | ✓ | - | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | ✓ | - | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [MyCard](https://github.com/xxtime/omnipay-mycard) | ✓ | - | xxtime/omnipay-mycard | [Joe Chu](https://github.com/xxtime) From 8ff0d019134a0a31f01aa0539891caac7ba255b3 Mon Sep 17 00:00:00 2001 From: Rick Kuipers Date: Fri, 16 Aug 2019 22:32:41 +0200 Subject: [PATCH 282/333] Update version support of braintree (#569) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a7d7400..cfd6002c 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [BitPay](https://github.com/hiqdev/omnipay-bitpay) | ✓ | - | hiqdev/omnipay-bitpay | [HiQDev](https://github.com/hiqdev) [BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | ✓ | - | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) [BlueSnap](https://github.com/vimeo/omnipay-bluesnap) | ✓ | - | vimeo/omnipay-bluesnap | [Vimeo](https://github.com/vimeo) -[Braintree](https://github.com/thephpleague/omnipay-braintree) | ✓ | - | omnipay/braintree | [Omnipay](https://github.com/thephpleague/omnipay) +[Braintree](https://github.com/thephpleague/omnipay-braintree) | ✓ | ✓ | omnipay/braintree | [Omnipay](https://github.com/thephpleague/omnipay) [Buckaroo](https://github.com/thephpleague/omnipay-buckaroo) | ✓ | - | omnipay/buckaroo | [Omnipay](https://github.com/thephpleague/omnipay) [CardGate](https://github.com/cardgate/omnipay-cardgate) | ✓ | - | cardgate/omnipay-cardgate | [CardGate](https://github.com/cardgate) [CardSave](https://github.com/thephpleague/omnipay-cardsave) | ✓ | - | omnipay/cardsave | [Omnipay](https://github.com/thephpleague/omnipay) From 99c9cd24381538f5d523647839c5036381f8c5b5 Mon Sep 17 00:00:00 2001 From: Benedikt Lenzen <36764562+DemigodCode@users.noreply.github.com> Date: Sun, 18 Aug 2019 11:50:05 +0200 Subject: [PATCH 283/333] Mistake: Ticked wrong version (#579) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cfd6002c..0ed652c8 100644 --- a/README.md +++ b/README.md @@ -253,7 +253,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | ✓ | - | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) [Vindicia](https://github.com/vimeo/omnipay-vindicia) | ✓ | - | vimeo/omnipay-vindicia | [Vimeo](https://github.com/vimeo) [VivaPayments](https://github.com/delatbabel/omnipay-vivapayments) | ✓ | - | delatbabel/omnipay-vivapayments | [Del](https://github.com/delatbabel) -[VR Payment](https://github.com/antibodies-online/omnipay-vr-payment) | ✓ | - | antibodies-online/omnipay-vr-payment | [antibodies-online](https://github.com/antibodies-online) +[VR Payment](https://github.com/antibodies-online/omnipay-vr-payment) | - | ✓ | antibodies-online/omnipay-vr-payment | [antibodies-online](https://github.com/antibodies-online) [WebMoney](https://github.com/dercoder/omnipay-webmoney) | ✓ | - | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WeChat](https://github.com/labs7in0/omnipay-wechat) | ✓ | - | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | ✓ | ✓ | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) From eb22dabe088d9bb63fb406f547ecdecadb8a5890 Mon Sep 17 00:00:00 2001 From: Gabriel Passarelli Date: Mon, 26 Aug 2019 08:16:46 -0300 Subject: [PATCH 284/333] Added Ebanx Gatewat (#580) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0ed652c8..8a695731 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Datatrans](https://github.com/academe/omnipay-datatrans) | ✓ | ✓ | academe/omnipay-datatrans | [Jason Judge](https://github.com/judgej) [Docdata Payments](https://github.com/Uskur/omnipay-docdata-payments) | ✓ | ✓ | uskur/omnipay-docdata-payments | [Uskur](https://github.com/Uskur) [Dummy](https://github.com/thephpleague/omnipay-dummy) | ✓ | ✓ | omnipay/dummy | [Del](https://github.com/delatbabel) +[Ebanx](https://github.com/descubraomundo/omnipay-ebanx) | - | ✓ | descubraomundo/omnipay-ebanx | [Descubra o Mundo](https://github.com/descubraomundo/) [eGHL](https://bitbucket.org/eghl/eghl-omnipay/src/master/) | - | ✓ | e-ghl/omnipay | [Jawad Humayun](https://bitbucket.org/jawad242/) [eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | ✓ | dilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) [eCoin](https://github.com/hiqdev/omnipay-ecoin) | ✓ | - | hiqdev/omnipay-ecoin | [HiQDev](https://github.com/hiqdev) From 8f057cb41ddb796f5196e13f259e61a96a9f92c7 Mon Sep 17 00:00:00 2001 From: Milad Nekofar Date: Sat, 31 Aug 2019 15:24:38 +0430 Subject: [PATCH 285/333] Add ZarinPal driver for the Omnipay (#581) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8a695731..03585b36 100644 --- a/README.md +++ b/README.md @@ -269,7 +269,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Yandex.Money for P2P payments](https://github.com/hiqdev/omnipay-yandexmoney) | ✓ | - | hiqdev/omnipay-yandexmoney | [HiQDev](https://github.com/hiqdev) [Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) [Faspay](https://github.com/David-Kurniawan/omnipay-faspay) | ✓ | ✓ | David-Kurniawan/omnipay-faspay | [David](https://github.com/David-Kurniawan) - +[ZarinPal](https://github.com/nekofar/omnipay-zarinpal) | - | ✓ | nekofar/omnipay-zarinpal | [Milad Nekofar](https://github.com/nekofar) Gateways are created and initialized like so: From e5ed1f946320ca169a7090a1642393797ee23cd8 Mon Sep 17 00:00:00 2001 From: Mark Bonnie Vestil Date: Mon, 30 Sep 2019 17:22:09 +0800 Subject: [PATCH 286/333] add rocketgate and inoviopay (#585) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 03585b36..2d7fc74a 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [iPay88](https://github.com/dilab/omnipay-ipay88) | ✓ | ✓ | dilab/omnipay-ipay88 | [Xu Ding](https://github.com/dilab) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ✓ | - | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) [InterKassa](https://github.com/hiqdev/omnipay-interkassa) | ✓ | ✓ | hiqdev/omnipay-interkassa | [HiQDev](https://github.com/hiqdev) +[InovioPay](https://github.com/mvestil/omnipay-inoviopay) | ✓ | ✓ | mvestil/omnipay-inoviopay | [Mark Vestil](https://github.com/mvestil) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | ✓ | - | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) [Judo Pay](https://github.com/Transportersio/omnipay-judopay) | ✓ | - | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) [Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | ✓ | ✓ | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) @@ -236,6 +237,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | ✓ | - | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | ✓ | - | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) [RoboKassa](https://github.com/hiqdev/omnipay-robokassa) | ✓ | ✓ | hiqdev/omnipay-robokassa | [HiQDev](https://github.com/hiqdev) +[RocketGate](https://github.com/mvestil/omnipay-rocketgate) | ✓ | ✓ | mvestil/omnipay-rocketgate | [Mark Vestil](https://github.com/mvestil) [Sage Pay](https://github.com/thephpleague/omnipay-sagepay) | ✓ | ✓ | omnipay/sagepay | [Jason Judge](https://github.com/judgej) [Sberbank](https://github.com/AndrewNovikof/omnipay-sberbank) | - | ✓ | andrewnovikof/omnipay-sberbank | [Andrew Novikov](https://github.com/AndrewNovikof) [SecPay](https://github.com/justinbusschau/omnipay-secpay) | ✓ | - | justinbusschau/omnipay-secpay | [Justin Busschau](https://github.com/justinbusschau) From a0afb9ed7803a81fb379352e14c48b2a5ab9d06c Mon Sep 17 00:00:00 2001 From: wasksofts Date: Tue, 8 Oct 2019 12:29:10 +0300 Subject: [PATCH 287/333] Update README.md (#587) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2d7fc74a..58b8d950 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Magnius](https://github.com/fruitcake/omnipay-magnius) | - | ✓ | fruitcake/omnipay-magnius | [Fruitcake](https://github.com/fruitcake) [Manual](https://github.com/thephpleague/omnipay-manual) | ✓ | - | omnipay/manual | [Del](https://github.com/delatbabel) [Migs](https://github.com/thephpleague/omnipay-migs) | ✓ | - | omnipay/migs | [Omnipay](https://github.com/thephpleague/omnipay) +[Mpesa](https://github.com/wasksofts/omnipay-mpesa) | ✓ | - | omnipay/mpesa | [Omnipay](https://github.com/wasksofts/omnipay-mpesa) [MTNCAM Mobile Money](https://github.com/larrytech7/omnipay-momocm) | ✓ | ✓ | larrytech7/omnipay-momocm | [Akah Harvey](https://github.com/larrytech7) [Mollie](https://github.com/thephpleague/omnipay-mollie) | ✓ | ✓ | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) [MOLPay](https://github.com/leesiongchan/omnipay-molpay) | ✓ | - | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) From 986f955ad6f628bdfeffd8a1a87998abb8f4cbd9 Mon Sep 17 00:00:00 2001 From: wasksofts Date: Thu, 10 Oct 2019 12:18:54 +0300 Subject: [PATCH 288/333] Update README.md (#589) kindly,please update this minor changes on mpesa --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 58b8d950..c7102a5b 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Magnius](https://github.com/fruitcake/omnipay-magnius) | - | ✓ | fruitcake/omnipay-magnius | [Fruitcake](https://github.com/fruitcake) [Manual](https://github.com/thephpleague/omnipay-manual) | ✓ | - | omnipay/manual | [Del](https://github.com/delatbabel) [Migs](https://github.com/thephpleague/omnipay-migs) | ✓ | - | omnipay/migs | [Omnipay](https://github.com/thephpleague/omnipay) -[Mpesa](https://github.com/wasksofts/omnipay-mpesa) | ✓ | - | omnipay/mpesa | [Omnipay](https://github.com/wasksofts/omnipay-mpesa) +[Mpesa](https://github.com/wasksofts/omnipay-mpesa) | ✓ | - | wasksofts/omnipay-mpesa | [wasksofts](https://github.com/wasksofts/omnipay-mpesa) [MTNCAM Mobile Money](https://github.com/larrytech7/omnipay-momocm) | ✓ | ✓ | larrytech7/omnipay-momocm | [Akah Harvey](https://github.com/larrytech7) [Mollie](https://github.com/thephpleague/omnipay-mollie) | ✓ | ✓ | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) [MOLPay](https://github.com/leesiongchan/omnipay-molpay) | ✓ | - | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) From afe43070270a46ba6b6c31daf1d7288146762a25 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sat, 26 Oct 2019 20:48:33 +0200 Subject: [PATCH 289/333] Test PHP 7.3/7.4 (#590) --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 45a77148..884e3944 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ php: - 7.0 - 7.1 - 7.2 + - 7.3 + - 7.4snapshot # This triggers builds to run on the new TravisCI infrastructure. # See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/ From d10f04b10d05e3abd069d0be2bf4e0aa0bd82fc2 Mon Sep 17 00:00:00 2001 From: Kiet Tran Date: Sat, 2 Nov 2019 23:03:22 +0100 Subject: [PATCH 290/333] Updates the README.md (#591) This change adds Icepay Payments to the list of packages. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c7102a5b..9418e65b 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [GVP (Garanti)](https://github.com/yasinkuyu/omnipay-gvp) | ✓ | - | yasinkuyu/omnipay-gvp | [Yasin Kuyu](https://github.com/yasinkuyu) [GVP (Garanti)](https://github.com/emr/omnipay-gvp) | - | ✓ | emr/omnipay-gvp | [Emre Akinci](https://github.com/emr) [Helcim](https://github.com/academe/omnipay-helcim) | ✓ | - | academe/omnipay-helcim | [Jason Judge](https://github.com/judgej) +[Icepay Payments](https://github.com/superbrave/omnipay-icepay-payments) | - | ✓ | superbrave/omnipay-icepay-payments | [SuperBrave](https://github.com/superbrave) [iDram](https://github.com/ptuchik/omnipay-idram) | - | ✓ | ptuchik/omnipay-idram | [Avik Aghajanyan](https://github.com/ptuchik) [iDeal](https://github.com/deniztezcan/omnipay-ideal) | - | ✓ | deniztezcan/omnipay-ideal | [Deniz Tezcan](https://github.com/deniztezcan) [iPay88](https://github.com/dilab/omnipay-ipay88) | ✓ | ✓ | dilab/omnipay-ipay88 | [Xu Ding](https://github.com/dilab) From 5de4ece50c4c7934d09764c59cdcaaefe10e1ed4 Mon Sep 17 00:00:00 2001 From: Milad Nekofar Date: Fri, 8 Nov 2019 13:33:42 +0330 Subject: [PATCH 291/333] Add Yekpay driver for the Omnipay (#595) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9418e65b..1a46767b 100644 --- a/README.md +++ b/README.md @@ -273,6 +273,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Yandex.Money for P2P payments](https://github.com/hiqdev/omnipay-yandexmoney) | ✓ | - | hiqdev/omnipay-yandexmoney | [HiQDev](https://github.com/hiqdev) [Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) [Faspay](https://github.com/David-Kurniawan/omnipay-faspay) | ✓ | ✓ | David-Kurniawan/omnipay-faspay | [David](https://github.com/David-Kurniawan) +[Yekpay](https://github.com/nekofar/omnipay-yekpay) | - | ✓ | nekofar/omnipay-yekpay | [Milad Nekofar](https://github.com/nekofar) [ZarinPal](https://github.com/nekofar/omnipay-zarinpal) | - | ✓ | nekofar/omnipay-zarinpal | [Milad Nekofar](https://github.com/nekofar) Gateways are created and initialized like so: From b2aba2983cd2b4eb5448263ccb76e71991814532 Mon Sep 17 00:00:00 2001 From: unoapp-dev <42442491+unoapp-dev@users.noreply.github.com> Date: Tue, 10 Dec 2019 00:58:38 +0530 Subject: [PATCH 292/333] Add Moneris driver for the Omnipay (#597) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1a46767b..2548554a 100644 --- a/README.md +++ b/README.md @@ -275,6 +275,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Faspay](https://github.com/David-Kurniawan/omnipay-faspay) | ✓ | ✓ | David-Kurniawan/omnipay-faspay | [David](https://github.com/David-Kurniawan) [Yekpay](https://github.com/nekofar/omnipay-yekpay) | - | ✓ | nekofar/omnipay-yekpay | [Milad Nekofar](https://github.com/nekofar) [ZarinPal](https://github.com/nekofar/omnipay-zarinpal) | - | ✓ | nekofar/omnipay-zarinpal | [Milad Nekofar](https://github.com/nekofar) +[Moneris](https://github.com/unoapp-dev/omnipay-moneris) | - | ✓ | unoapp-dev/omnipay-moneris | [UNOapp Dev](https://github.com/unoapp-dev) Gateways are created and initialized like so: From 0a076ae73bef44e6d28e9bea2ed4a15cfa393dc2 Mon Sep 17 00:00:00 2001 From: Deniz Tezcan <10155092+deniztezcan@users.noreply.github.com> Date: Fri, 17 Jan 2020 09:23:10 +0100 Subject: [PATCH 293/333] Added Ingenico ePayments (#584) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2548554a..614bae1a 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Icepay Payments](https://github.com/superbrave/omnipay-icepay-payments) | - | ✓ | superbrave/omnipay-icepay-payments | [SuperBrave](https://github.com/superbrave) [iDram](https://github.com/ptuchik/omnipay-idram) | - | ✓ | ptuchik/omnipay-idram | [Avik Aghajanyan](https://github.com/ptuchik) [iDeal](https://github.com/deniztezcan/omnipay-ideal) | - | ✓ | deniztezcan/omnipay-ideal | [Deniz Tezcan](https://github.com/deniztezcan) +[Ingenico ePayments](https://github.com/deniztezcan/omnipay-ingenico-epayments) | - | ✓ | deniztezcan/omnipay-ingenico-epayments | [Deniz Tezcan](https://github.com/deniztezcan) [iPay88](https://github.com/dilab/omnipay-ipay88) | ✓ | ✓ | dilab/omnipay-ipay88 | [Xu Ding](https://github.com/dilab) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ✓ | - | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) [InterKassa](https://github.com/hiqdev/omnipay-interkassa) | ✓ | ✓ | hiqdev/omnipay-interkassa | [HiQDev](https://github.com/hiqdev) From f03e3f70000c3b8e1dd91b5a6b7e42da7a602cd2 Mon Sep 17 00:00:00 2001 From: Nocks Date: Fri, 17 Jan 2020 09:23:22 +0100 Subject: [PATCH 294/333] Updated Nocks gateway 3.x support (#594) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 614bae1a..80dd383a 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Neteller](https://github.com/dercoder/omnipay-neteller) | ✓ | - | dercoder/omnipay-neteller | [Alexander Fedra](https://github.com/dercoder) [NetPay](https://github.com/netpay/omnipay-netpay) | ✓ | - | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | ✓ | - | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) -[Nocks](https://github.com/nocksapp/checkout-omnipay) | ✓ | - | nocksapp/omnipay-nocks | [Nocks](https://github.com/nocksapp) +[Nocks](https://github.com/nocksapp/checkout-omnipay) | ✓ | ✓ | nocksapp/omnipay-nocks | [Nocks](https://github.com/nocksapp) [OkPay](https://github.com/hiqdev/omnipay-okpay) | ✓ | - | hiqdev/omnipay-okpay | [HiQDev](https://github.com/hiqdev) [OnePay](https://github.com/dilab/omnipay-onepay) | ✓ | ✓ | dilab/omnipay-onepay | [Xu Ding](https://github.com/dilab) [Openpay Australia](https://github.com/sudiptpa/openpay) | ✓ | ✓ | sudiptpa/omnipay-openpay | [Sujip Thapa](https://github.com/sudiptpa) From 52cdc89e1968440a86a8ff72944bd5bbc9e52906 Mon Sep 17 00:00:00 2001 From: Oozman Date: Wed, 11 Mar 2020 03:24:46 +0800 Subject: [PATCH 295/333] Add PayMongo driver. (#600) * Add Paymongo driver. PayMongo allows internet businesses in the Philippines to accept payments easily. * Change Paymongo to PayMongo name. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 80dd383a..bd1e76c0 100644 --- a/README.md +++ b/README.md @@ -201,6 +201,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Openpay Australia](https://github.com/sudiptpa/openpay) | ✓ | ✓ | sudiptpa/omnipay-openpay | [Sujip Thapa](https://github.com/sudiptpa) [Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | ✓ | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) [PAY. (Pay.nl & Pay.be)](https://github.com/paynl/omnipay-paynl) | ✓ | ✓ | paynl/omnipay-paynl | [Andy Pieters](https://github.com/andypieters) +[PayMongo](https://github.com/omarusman/omnipay-paymongo) | - | ✓ | omarusman/omnipay-paymongo | [Omar Usman](https://github.com/omarusman) [Payoo](https://github.com/dilab/omnipay-payoo) | ✓ | ✓ | dilab/omnipay-payoo | [Xu Ding](https://github.com/dilab) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | ✓ | - | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | ✓ | - | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) From 69e475f2206c35c0e08f6cbef1e586d572e826e5 Mon Sep 17 00:00:00 2001 From: Rory Scholman Date: Fri, 15 May 2020 23:29:40 +0200 Subject: [PATCH 296/333] Add paysafecard for omnipay v3 (#602) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bd1e76c0..668a88d4 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PayPro](https://github.com/payproNL/omnipay-paypro) | ✓ | - | paypronl/omnipay-paypro | [Fruitcake](https://github.com/fruitcake) [PAYONE](https://github.com/academe/omnipay-payone) | ✓ | ✓ | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | ✓ | - | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) +[Paysafecard](https://github.com/worldstream-labs/omnipay-paysafecard) | - | ✓ | worldstream-labs/omnipay-paysafecard | [Worldstream](https://github.com/worldstream-labs) [Paysera](https://github.com/povils/omnipay-paysera) | ✓ | - | povils/omnipay-paysera | [Povils](https://github.com/povils) [Paysera](https://github.com/semyonchetvertnyh/omnipay-paysera) | - | ✓ | semyonchetvertnyh/omnipay-paysera | [Semyon Chetvertnyh](https://github.com/semyonchetvertnyh) [PaySimple](https://github.com/dranes/omnipay-paysimple) | ✓ | - | dranes/omnipay-paysimple | [Dranes](https://github.com/dranes) From 31ddac4cf8a27619c5c368311386e3e59811fa56 Mon Sep 17 00:00:00 2001 From: SASh Date: Fri, 22 May 2020 17:23:13 +0300 Subject: [PATCH 297/333] upd: Add bankart omnipay plugin to the list (#603) Co-authored-by: Alexander (SASh) Alexiev --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 668a88d4..a599651d 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | ✓ | ✓ | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) [Authorize.Net API](https://github.com/academe/omnipay-authorizenetapi) | - | ✓ | academe/omnipay-authorizenetapi | [Jason Judge](https://github.com/judgej) [Authorize.Net Recurring Billing](https://github.com/cimpleo/omnipay-authorizenetrecurring) | - | ✓ | cimpleo/omnipay-authorizenetrecurring | [CimpleO](https://github.com/cimpleo) +[Bankart](https://github.com/ampeco/omnipay-bankart) | ✓ | ✓ | ampeco/omnipay-bankart | [Ampeco](https://github.com/ampeco) [Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | ✓ | - | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | ✓ | - | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) [BitPay](https://github.com/hiqdev/omnipay-bitpay) | ✓ | - | hiqdev/omnipay-bitpay | [HiQDev](https://github.com/hiqdev) From d8a83473266b1d1a393100793e2c0fd532c8c899 Mon Sep 17 00:00:00 2001 From: Rory Scholman Date: Fri, 17 Jul 2020 13:18:00 +0200 Subject: [PATCH 298/333] Add paysafe payment hub for omnipay v3 (#605) Used for Neteller and will support more --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a599651d..73b9bb9c 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PAYONE](https://github.com/academe/omnipay-payone) | ✓ | ✓ | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) [Paysafecard](https://github.com/dercoder/omnipay-paysafecard) | ✓ | - | dercoder/omnipay-paysafecard | [Alexander Fedra](https://github.com/dercoder) [Paysafecard](https://github.com/worldstream-labs/omnipay-paysafecard) | - | ✓ | worldstream-labs/omnipay-paysafecard | [Worldstream](https://github.com/worldstream-labs) +[Paysafe Payment Hub (Neteller)](https://github.com/worldstream-labs/omnipay-paysafe-payment-hub) | - | ✓ | worldstream-labs/omnipay-paysafe-payment-hub | [Worldstream](https://github.com/worldstream-labs) [Paysera](https://github.com/povils/omnipay-paysera) | ✓ | - | povils/omnipay-paysera | [Povils](https://github.com/povils) [Paysera](https://github.com/semyonchetvertnyh/omnipay-paysera) | - | ✓ | semyonchetvertnyh/omnipay-paysera | [Semyon Chetvertnyh](https://github.com/semyonchetvertnyh) [PaySimple](https://github.com/dranes/omnipay-paysimple) | ✓ | - | dranes/omnipay-paysimple | [Dranes](https://github.com/dranes) From 048c42c8a6a7a84b3b26a82c906b526babc85d41 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 21 Sep 2020 17:27:06 +0200 Subject: [PATCH 299/333] Add basic test to install and discover clients (#620) * Add basic test to install and discover clients * Remove travis, use composer1 --- .github/workflows/run-tests.yml | 43 +++++++++++++++++++++++++++++++++ .travis.yml | 20 --------------- composer.json | 6 +++++ phpunit.xml.dist | 22 +++++++++++++++++ tests/OmnipayTest.php | 35 +++++++++++++++++++++++++++ 5 files changed, 106 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/run-tests.yml delete mode 100644 .travis.yml create mode 100644 phpunit.xml.dist create mode 100644 tests/OmnipayTest.php diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 00000000..45493245 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,43 @@ +name: Unit Tests + +on: + push: + branches: + - master + pull_request: + branches: + - "*" + schedule: + - cron: '0 0 * * *' + +jobs: + php-tests: + runs-on: ubuntu-latest + timeout-minutes: 15 + env: + COMPOSER_NO_INTERACTION: 1 + + strategy: + matrix: + php: [7.4, 7.3, 7.2] + dependency-version: [prefer-lowest, prefer-stable] + + name: P${{ matrix.php }} - ${{ matrix.dependency-version }} + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + tools: composer + + - name: Install dependencies + run: | + composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress + + - name: Execute Unit Tests + run: composer test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 884e3944..00000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: php - -php: - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - - 7.4snapshot - -# This triggers builds to run on the new TravisCI infrastructure. -# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/ -sudo: false - -## Cache composer -cache: - directories: - - $HOME/.composer/cache - -script: composer install --prefer-dist --no-interaction diff --git a/composer.json b/composer.json index 0b095eb6..eeb17955 100644 --- a/composer.json +++ b/composer.json @@ -28,10 +28,16 @@ "require-dev": { "omnipay/tests": "^3" }, + "autoload-dev": { + "psr-4": { "Omnipay\\Tests\\" : "tests" } + }, "extra": { "branch-alias": { "dev-master": "3.0.x-dev" } }, + "scripts": { + "test": "phpunit" + }, "prefer-stable": true } diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 00000000..d212d94e --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + ./tests/ + + + + + ./src + + + \ No newline at end of file diff --git a/tests/OmnipayTest.php b/tests/OmnipayTest.php new file mode 100644 index 00000000..d51fc0b5 --- /dev/null +++ b/tests/OmnipayTest.php @@ -0,0 +1,35 @@ +assertInstanceOf('Omnipay\Common\GatewayFactory', $factory); + } + + + /** + * Verify a new Client instance can be instantiated + */ + public function testNewClient() + { + $client = new Client(); + + $this->assertInstanceOf('Omnipay\Common\Http\Client', $client); + } +} \ No newline at end of file From 1ba7c8a3312cf2342458b99c9e5b86eaae44aed2 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 22 Sep 2020 16:02:17 +0200 Subject: [PATCH 300/333] Use Guzzle7 as default implementation (#615) * Use Guzzle7 adapter as default implementation --- composer.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index eeb17955..48419677 100644 --- a/composer.json +++ b/composer.json @@ -21,9 +21,10 @@ } ], "require": { - "php": "^5.6|^7", + "php": "^7.2", "omnipay/common": "^3", - "php-http/guzzle6-adapter": "^1.1|^2" + "php-http/discovery": "^1.12", + "php-http/guzzle7-adapter": "^0.1" }, "require-dev": { "omnipay/tests": "^3" @@ -33,11 +34,12 @@ }, "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-master": "3.1.x-dev" } }, "scripts": { "test": "phpunit" }, + "minimum-stability": "dev", "prefer-stable": true } From 62ef09f75fb2128fb3b058a5f01300029216686a Mon Sep 17 00:00:00 2001 From: sietzekeuning Date: Sun, 13 Dec 2020 13:53:20 +0100 Subject: [PATCH 301/333] Update composer.json to be able to run with php8 (#625) * Update composer.json php8 * Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 48419677..6fc0140f 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ } ], "require": { - "php": "^7.2", + "php": "^7.2|^8.0", "omnipay/common": "^3", "php-http/discovery": "^1.12", "php-http/guzzle7-adapter": "^0.1" From e78c09d8d4ec585b0fc2d3d1ddbc4b06cd131894 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 11 Jan 2021 12:10:58 +1300 Subject: [PATCH 302/333] Augment section on createCard indicating / recommending patterns This adds documentation for the getCardReference method and also points out that createCard can process purchase at the same time. In general I think it's desirable for it to support this as several processors do and it standardises expectations --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 73b9bb9c..b58fb942 100644 --- a/README.md +++ b/README.md @@ -552,9 +552,14 @@ are available: * `updateCard($options)` - update a stored card, not all gateways support this method * `deleteCard($options)` - remove a stored card, not all gateways support this method -Once you have a `cardReference`, you can use it instead of the `card` parameter when creating a charge: +Once you have a `cardReference`, (which should be available from the response object +using getCardReference) you can use it instead of the `card` parameter when creating a charge: $gateway->purchase(array('amount' => '10.00', 'cardReference' => 'abc')); + +In many cases the createCard action will also process the initial payment at the same time. +In these cases you should pass in the 'action' ('authorize' or 'purchase') in the createCard +options. ## Recurring Billing From e9439db0633ba988e6f6cdd029fad38aad73f9f6 Mon Sep 17 00:00:00 2001 From: DeH4eG Date: Fri, 12 Mar 2021 11:17:59 +0200 Subject: [PATCH 303/333] Add Luminor Gateway driver (#639) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b58fb942..dde37aed 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Judo Pay](https://github.com/Transportersio/omnipay-judopay) | ✓ | - | transportersio/omnipay-judopay | [Transporters.io](https://github.com/Transportersio) [Klarna Checkout](https://github.com/MyOnlineStore/omnipay-klarna-checkout) | ✓ | ✓ | myonlinestore/omnipay-klarna-checkout | [MyOnlineStore](https://github.com/MyOnlineStore) [Laybuy](https://github.com/mediabeastnz/omnipay-laybuy) | ✓ | - | mediabeastnz/omnipay-laybuy | [Myles Derham](https://github.com/mediabeastnz) +[Luminor Gateway](https://github.com/DeH4eG/omnipay-luminor) | - | ✓ | deh4eg/omnipay-luminor | [Denis Smolakov](https://github.com/DeH4eG) [Komerci (Rede, former RedeCard)](https://github.com/byjg/omnipay-komerci) | ✓ | - | byjg/omnipay-komerci | [João Gilberto Magalhães](https://github.com/byjg) [Komoju](https://github.com/dannyvink/omnipay-komoju) | ✓ | - | vink/omnipay-komoju | [Danny Vink](https://github.com/dannyvink) [Midtrans](https://github.com/dilab/omnipay-midtrans) | ✓ | ✓ | dilab/omnipay-midtrans | [Xu Ding](https://github.com/dilab) From d090c000030fc759e32f6f747873b5d630103030 Mon Sep 17 00:00:00 2001 From: DeH4eG Date: Sun, 2 May 2021 18:02:18 +0300 Subject: [PATCH 304/333] DOCS: Add BlueOrange bank package (#646) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index dde37aed..024cc581 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Authorize.Net Recurring Billing](https://github.com/cimpleo/omnipay-authorizenetrecurring) | - | ✓ | cimpleo/omnipay-authorizenetrecurring | [CimpleO](https://github.com/cimpleo) [Bankart](https://github.com/ampeco/omnipay-bankart) | ✓ | ✓ | ampeco/omnipay-bankart | [Ampeco](https://github.com/ampeco) [Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | ✓ | - | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) +[BlueOrange bank](https://github.com/DeH4eG/omnipay-blueorange) | - | ✓ | deh4eg/omnipay-blueorange | [Denis Smolakov](https://github.com/DeH4eG) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | ✓ | - | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) [BitPay](https://github.com/hiqdev/omnipay-bitpay) | ✓ | - | hiqdev/omnipay-bitpay | [HiQDev](https://github.com/hiqdev) [BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | ✓ | - | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) From c4624ab2ca15cdaf7542a2b1562a1d8792545521 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 1 Jun 2021 10:17:49 +0200 Subject: [PATCH 305/333] Create FUNDING.yml --- .github/FUNDING.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..0d77ee1a --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: [barryvdh] From 25ab940335242faee7bb5c793351f821bfe1f97f Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 1 Jun 2021 11:09:25 +0200 Subject: [PATCH 306/333] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6fc0140f..241d1793 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "php-http/guzzle7-adapter": "^0.1" }, "require-dev": { - "omnipay/tests": "^3" + "omnipay/tests": "^3|^4" }, "autoload-dev": { "psr-4": { "Omnipay\\Tests\\" : "tests" } From 0caded2a46f809dc42e350e07e798cc3c45cd47f Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 1 Jun 2021 11:16:20 +0200 Subject: [PATCH 307/333] Update for php8 (#649) --- .github/workflows/run-tests.yml | 4 ++-- composer.json | 6 +++--- phpunit.xml.dist | 27 ++++++++++++++------------- tests/OmnipayTest.php | 2 +- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 45493245..e3dc5b26 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - php: [7.4, 7.3, 7.2] + php: [8.0, 7.4, 7.3] dependency-version: [prefer-lowest, prefer-stable] name: P${{ matrix.php }} - ${{ matrix.dependency-version }} @@ -33,7 +33,7 @@ jobs: with: php-version: ${{ matrix.php }} coverage: none - tools: composer + tools: composer:v2 - name: Install dependencies run: | diff --git a/composer.json b/composer.json index 241d1793..191fb972 100644 --- a/composer.json +++ b/composer.json @@ -21,8 +21,8 @@ } ], "require": { - "php": "^7.2|^8.0", - "omnipay/common": "^3", + "php": "^7.3|^8.0", + "omnipay/common": "^3.1", "php-http/discovery": "^1.12", "php-http/guzzle7-adapter": "^0.1" }, @@ -34,7 +34,7 @@ }, "extra": { "branch-alias": { - "dev-master": "3.1.x-dev" + "dev-master": "3.2.x-dev" } }, "scripts": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index d212d94e..1347f357 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,5 +1,6 @@ - - - - ./tests/ - - - - - ./src - - - \ No newline at end of file + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> + + + ./src + + + + + ./tests/ + + + diff --git a/tests/OmnipayTest.php b/tests/OmnipayTest.php index d51fc0b5..766ce5d1 100644 --- a/tests/OmnipayTest.php +++ b/tests/OmnipayTest.php @@ -7,7 +7,7 @@ class OmnipayTest extends TestCase { - public function tearDown() + public function tearDown(): void { Omnipay::setFactory(null); From fae41fad395ab095dd7a36f93f6b61650a470c96 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 1 Jun 2021 11:17:23 +0200 Subject: [PATCH 308/333] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 024cc581..ebe8e4f9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **An easy to use, consistent payment processing library for PHP** -[![Build Status](https://travis-ci.org/thephpleague/omnipay-common.svg?branch=master)](https://travis-ci.org/thephpleague/omnipay-common) +[![Unit Tests](https://github.com/thephpleague/omnipay/actions/workflows/run-tests.yml/badge.svg)](https://github.com/thephpleague/omnipay/actions/workflows/run-tests.yml) [![Latest Stable Version](https://poser.pugx.org/omnipay/common/version)](https://packagist.org/packages/omnipay/common) [![Total Downloads](https://poser.pugx.org/omnipay/common/d/total)](https://packagist.org/packages/omnipay/common) From 3bbe6a15bd08effbebe8ecedbbd3c14db731cb5d Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 1 Jun 2021 11:53:39 +0200 Subject: [PATCH 309/333] Create CHANGELOG.md --- CHANGELOG.md | 171 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..d5d37309 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,171 @@ +Changelog +========= + +## v3.2 - 2021-06-01 + +Omnipay 3.2 is compatible with PHP8. This is done by upgrading the test suite to PHPUnit 9, with the release of omnipay/tests v4 and omnipay/common v3.1. This change is primarily for gateway developers, to make it possible to actually test PHP8, but they will need to upgrade their tests to use PHPUnit 9 (the currently supported PHPUnit version). The minimum PHP versions is bumped to 7.3 because of this. + +## v3.1 - 2020-10-29 + +Omnipay 3.1 uses Guzzle 7 by default (using the Guzzle 7 adapter). This doesn't change omnipay-common because they will work with any compatible Http Client. +The minimum PHP versions is bumped to 7.2 because of this. + +## v3.0 - 2018-05-14 + +Omnipay 3.0 focuses on separation of the HTTP Client, to be independent of Guzzle. +This release brings compatibility with the latest Symfony 3+4 and Laravel 5. +The breaking changes for applications using Omnipay are kept to a minimum. + +The `omnipay/omnipay` package name has been changed to `league/omnipay` + +### Upgrading applications from Omnipay 2.x to 3.x + +#### Breaking changes + - The `redirect()` method no calls `exit()` after sending the content. This is up to the developer now. + - An HTTP Client is required. Guzzle will be installed when using `league/omnipay`, + but otherwise you need to required your own implementation (see [PHP HTTP Clients](http://docs.php-http.org/en/latest/clients.html)) +- The `omnipay/omnipay` package name has been changed to `league/omnipay` and no longers installs all the gateways directly. + +#### Added + - It is now possible to use `setAmountInteger(integer $value)` to set the amount in the base units of the currency. + - Support for [Money for PHP](http://moneyphp.org/) objects are added, by using `setMoney(Money $money)` the Amount and Currency are set. + +### Upgrading Gateways from 2.x to 3.x + +The primary difference is the HTTP Client. We are now using HTTPlug (http://httplug.io/) but rely on our own interface. + +### Breaking changes +- Change typehint from Guzzle ClientInterface to `Omnipay\Common\Http\ClientInterface` +- `$client->get('..')`/`$client->post('..')` etc are removed, you can call `$client->request('GET', '')`. +- No need to call `$request->send()`, requests are sent directly. +- Instead of `$client->createRequest(..)` you can create+send the request directly with `$client->request(..)`. +- When sending a JSON body, convert the body to a string with `json_encode()` and set the correct Content-Type. +- The response is a PSR-7 Response object. You can call `$response->getBody()->getContents()` to get the body as string. +- `$response->json()` and `$response->xml()` are gone, but you can implement the logic directly. +- An HTTP Client is no longer added by default by `omnipay/common`, but `league/omnipay` will add Guzzle. +Gateways should not rely on Guzzle or other clients directly. +- `$body` should be a string (eg. `http_build_query($data)` or `json_encode($data)` instead of just `$data`). +- The `$headers` parameters should be an `array` (not `null`, but can be empty) + +Examples: +```php +// V2 XML: + $response = $this->httpClient->post($this->endpoint, null, $data)->send(); + $result = $httpResponse->xml(); + +// V3 XML: + $response = $this->httpClient->request('POST', $this->endpoint, [], http_build_query($data)); + $result = simplexml_load_string($httpResponse->getBody()->getContents()); +``` + +```php +// Example JSON request: + + $response = $this->httpClient->request('POST', $this->endpoint, [ + 'Accept' => 'application/json', + 'Content-Type' => 'application/json', + ], json_encode($data)); + + $result = json_decode($response->getBody()->getContents(), true); +``` + +#### Testing changes + +PHPUnit is upgraded to PHPUnit 6. Common issues: + +- `setExpectedException()` is removed + +```php +// PHPUnit 5: +$this->setExpectedException($class, $message); + +// PHPUnit 6: +$this->expectException($class); +$this->expectExceptionMessage($message); +``` + +- Tests that do not perform any assertions, will be marked as risky. This can be avoided by annotating them with ` @doesNotPerformAssertions` + +- You should remove the `Mockery\Adapter\Phpunit\TestListener` in phpunit.xml.dist + + +## v2.0.0 - 2013-11-17 + +### Package Separation + +As of 2.0, Omnipay has been split into separate packages. Core functionality is contained within the [omnipay/common](https://github.com/omnipay/common) repository, and all gateways have their own repositories. This means that if your project only requires on a single gateway, you can load it without installing all of the other gateways. All officially supported gateways can be found under the [Omnipay GitHub organization](//github.com/omnipay). + +If you want to install all gateways, you can still use the `omnipay/omnipay` metapackage in `composer.json`: + +~~~ javascript +{ + "require": { + "omnipay/omnipay": "~2.0" + } +} +~~~ + +Alternatively, if you want to migrate to an individual gateway, simply change your `composer.json` file to reference the specific gateway (`omnipay/common` will be included for you automatically): + +~~~ javascript +{ + "require": { + "omnipay/paypal": "~2.0" + } +} +~~~ + +### Breaking Changes + +The `GatewayFactory` class can no longer be called in a static fashion. To help those who want to use dependency injection, you can now create an instance of GatewayFactory: + +~~~ php +$factory = new GatewayFactory(); +$gateway = $factory->create('PayPal_Express'); +~~~ + +The following code is invalid and will no longer work: + +~~~ php +$gateway = GatewayFactory::create('PayPal_Express'); // will cause PHP error! +~~~ + +If you want to continue to use static methods for simplicity, you can use the new Omnipay class: + +~~~ php +// at the top of your PHP file +use Omnipay\Omnipay; + +// further down when you need to create the gateway +$gateway = Omnipay::create('PayPal_Express'); +~~~ + +Behind the scenes, this will create a GatewayFactory instance for you and call the appropriate method on it. + +### Additions + +**Omnipay now supports sending line-item data to gateways.** Currently this is only supported by the PayPal gateway. Line item details can be added to a request like so: + +~~~ php +$request->setItems(array( + array('name' => 'Food', 'quantity' => 1, 'price' => '40.00'), + array('name' => 'Drinks', 'quantity' => 2, 'price' => '6.00'), +)); +~~~ + +For more details, see the [pull request](https://github.com/omnipay/omnipay/pull/154). + +**Omnipay now also supports modifying request data before it is sent to the gateway.**. This allows you to send arbitrary custom data with a request, even if Omnipay doesn't support a parameter directly. To modify the request data, instead of calling `send()` directly on the request, you may use the new `sendData()` method: + +~~~ php +// standard method - send default data +$response = $request->send(); + +// new method - get and send custom data +$data = $request->getData(); +$data['customParameter'] = true; + +$response = $request->sendData($data); +~~~ + +For more details, see the [pull request](https://github.com/omnipay/omnipay/pull/162). From a74087b201753f2b39bda1d9cd4ff8c27a39ef04 Mon Sep 17 00:00:00 2001 From: starkpay <59176791+starkpay@users.noreply.github.com> Date: Tue, 1 Jun 2021 17:49:41 +0100 Subject: [PATCH 310/333] Added Strakpay (Crypto payment) payment gateway (#634) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ebe8e4f9..11ec4407 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Sofort](https://github.com/aimeoscom/omnipay-sofort) | ✓ | - | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) [Spreedly](https://github.com/gregoriohc/omnipay-spreedly) | ✓ | - | gregoriohc/omnipay-spreedly | [Gregorio Hernández Caso](https://github.com/gregoriohc) [Square](https://github.com/Transportersio/omnipay-square) | ✓ | - | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) +[Starkpay](https://github.com/starkpay/omnipay) | ✓ | ✓ | starkpay/omnipay | [Starkpay](https://github.com/starkpay) [Stripe](https://github.com/thephpleague/omnipay-stripe) | ✓ | ✓ | omnipay/stripe | [Del](https://github.com/delatbabel) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | ✓ | - | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [TatraBank](https://github.com/bileto/omnipay-tatrabank) | ✓ | - | omnipay-tatrabank | From 73262a3f702af1163459b91439b7d0affc7d8948 Mon Sep 17 00:00:00 2001 From: Poghos Boyajyan <44973047+k3rnel@users.noreply.github.com> Date: Tue, 1 Jun 2021 20:49:57 +0400 Subject: [PATCH 311/333] Added Arca (Armenian Card) payment gateway (#631) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 11ec4407..67d9f74e 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Alipay](https://github.com/lokielse/omnipay-alipay) | ✓ | ✓ | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) [99Bill](https://github.com/laraveler/omnipay-99bill) | - | ✓ | x-class/omnipay-99bill | [Laraveler](https://github.com/laraveler) [Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | ✓ | - | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) +[Arca](https://github.com/k3rnel/omnipay-arca) | - | ✓ | k3rnel/omnipay-arca | [Poghos Boyajyan](https://github.com/k3rnel) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | ✓ | ✓ | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) [Authorize.Net API](https://github.com/academe/omnipay-authorizenetapi) | - | ✓ | academe/omnipay-authorizenetapi | [Jason Judge](https://github.com/judgej) [Authorize.Net Recurring Billing](https://github.com/cimpleo/omnipay-authorizenetrecurring) | - | ✓ | cimpleo/omnipay-authorizenetrecurring | [CimpleO](https://github.com/cimpleo) From 62f6440ce8f435ffe6c82e93533443e007c33aee Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 2 Jun 2021 04:50:17 +1200 Subject: [PATCH 312/333] Docs update to go with PR on cardReference (#630) https://github.com/thephpleague/omnipay-common/pull/243 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 67d9f74e..a79d3b55 100644 --- a/README.md +++ b/README.md @@ -470,6 +470,8 @@ $response->getMessage(); // a message generated by the payment gateway ``` In addition, most gateways will override the response object, and provide access to any extra fields returned by the gateway. +If the payment authorization is re-usable the gateway will implement ```$response->getCardReference();```. This +method is always available (but may return NULL) from 3.1.1 ### Redirect Response From e4d8ae673485428734bd64e0d1a3da8e6c8c5579 Mon Sep 17 00:00:00 2001 From: nmc9 Date: Tue, 1 Jun 2021 12:50:36 -0400 Subject: [PATCH 313/333] Update README.md (#628) Add Nuvei driver --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a79d3b55..b86a312b 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [NetPay](https://github.com/netpay/omnipay-netpay) | ✓ | - | netpay/omnipay-netpay | [NetPay](https://github.com/netpay) [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | ✓ | - | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) [Nocks](https://github.com/nocksapp/checkout-omnipay) | ✓ | ✓ | nocksapp/omnipay-nocks | [Nocks](https://github.com/nocksapp) +[Nuvei](https://github.com/diversifiedtech/omnipay-nuvei) | - | ✓ | nmc9/omnipay-nuvei | [DiversifiedTech](https://github.com/diversifiedtech) [OkPay](https://github.com/hiqdev/omnipay-okpay) | ✓ | - | hiqdev/omnipay-okpay | [HiQDev](https://github.com/hiqdev) [OnePay](https://github.com/dilab/omnipay-onepay) | ✓ | ✓ | dilab/omnipay-onepay | [Xu Ding](https://github.com/dilab) [Openpay Australia](https://github.com/sudiptpa/openpay) | ✓ | ✓ | sudiptpa/omnipay-openpay | [Sujip Thapa](https://github.com/sudiptpa) From 4dd7f5e065f363d34fb65c94c8e0dd11247c7fb8 Mon Sep 17 00:00:00 2001 From: Jahid Anowar <43274356+jahidanowar@users.noreply.github.com> Date: Tue, 1 Jun 2021 22:21:45 +0530 Subject: [PATCH 314/333] Razorpay Added in the table (#621) Razorpay is the Indias biggest payment gateway. They have a repository for Omnipay. Therefore I am adding it to the table. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b86a312b..748f88d9 100644 --- a/README.md +++ b/README.md @@ -244,6 +244,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [QQ Wallet(QPay)](https://github.com/kuangjy2/omnipay-qpay) | - | ✓ | kuangjy/omnipay-qpay | [Kuang Jiaye](https://github.com/kuangjy2) [Quickpay](https://github.com/NobrainerWeb/omnipay-quickpay) | ✓ | - | nobrainerweb/omnipay-quickpay | [Nobrainer Web](https://github.com/NobrainerWeb) [Rabobank](https://github.com/thephpleague/omnipay-rabobank) | ✓ | - | omnipay/rabobank | [Barry vd. Heuvel](https://github.com/barryvdh) +[Razorpay](https://github.com/razorpay/omnipay-razorpay) | ✓ | - | razorpay/omnipay-razorpay | [razorpay](https://github.com/razorpay) [Realex](https://github.com/digitickets/omnipay-realex) | ✓ | - | digitickets/omnipay-realex | [DigiTickets](https://github.com/digitickets) [RedSys](https://github.com/jsampedro77/sermepa-omnipay) | ✓ | - | nazka/sermepa-omnipay | [Javier Sampedro](https://github.com/jsampedro77) [RentMoola](https://github.com/rentmoola/omnipay-rentmoola) | ✓ | - | rentmoola/omnipay-rentmoola | [Geoff Shaw](https://github.com/Shawg) From f76dfb723b5a6940e12a356dd7219d775f1dba6a Mon Sep 17 00:00:00 2001 From: Eduard Lleshi Date: Tue, 1 Jun 2021 18:52:02 +0200 Subject: [PATCH 315/333] Add Affirm driver for Omnipay v2 & v3 (#618) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 748f88d9..d4663220 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | ✓ | - | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) [Acapture (PayVision)](https://github.com/queueup-dev/omnipay-acapture) | ✓ | - | qup/omnipay-acapture | [Niels de Vries](https://github.com/niels-qup) [Adyen](https://github.com/academe/omnipay-adyen) | - | ✓ | academe/omnipay-adyen | [Jason Judge](https://github.com/judgej) +[Affirm](https://github.com/eduardlleshi/omnipay-affirm) | ✓ | ✓ | eduardlleshi/omnipay-affirm | [Eduard Lleshi](https://github.com/eduardlleshi) [Agms](https://github.com/agmscode/omnipay-agms) | ✓ | - | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | ✓ | ✓ | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) [Alipay](https://github.com/lokielse/omnipay-alipay) | ✓ | ✓ | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) From 9b6ab6ef7ccde5614263f0affcd2fbe7965247e0 Mon Sep 17 00:00:00 2001 From: Sitehandy Solutions Date: Wed, 2 Jun 2021 00:52:24 +0800 Subject: [PATCH 316/333] Add toyyibPay driver for the Omnipay (#599) Add toyyibPay driver for the Omnipay --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d4663220..6fb3a4df 100644 --- a/README.md +++ b/README.md @@ -288,6 +288,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Yekpay](https://github.com/nekofar/omnipay-yekpay) | - | ✓ | nekofar/omnipay-yekpay | [Milad Nekofar](https://github.com/nekofar) [ZarinPal](https://github.com/nekofar/omnipay-zarinpal) | - | ✓ | nekofar/omnipay-zarinpal | [Milad Nekofar](https://github.com/nekofar) [Moneris](https://github.com/unoapp-dev/omnipay-moneris) | - | ✓ | unoapp-dev/omnipay-moneris | [UNOapp Dev](https://github.com/unoapp-dev) +[toyyibPay](https://github.com/sitehandy/omnipay-toyyibpay) | - | ✓ | sitehandy/omnipay-toyyibpay | [Amirol Zolkifli](https://github.com/sitehandy) Gateways are created and initialized like so: From 49716e76701f79049e2564de2c588b132df30113 Mon Sep 17 00:00:00 2001 From: Oozman Date: Wed, 2 Jun 2021 00:52:52 +0800 Subject: [PATCH 317/333] Update author name of PayMongo driver. (#601) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fb3a4df..f5c4c4e6 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Openpay Australia](https://github.com/sudiptpa/openpay) | ✓ | ✓ | sudiptpa/omnipay-openpay | [Sujip Thapa](https://github.com/sudiptpa) [Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | ✓ | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) [PAY. (Pay.nl & Pay.be)](https://github.com/paynl/omnipay-paynl) | ✓ | ✓ | paynl/omnipay-paynl | [Andy Pieters](https://github.com/andypieters) -[PayMongo](https://github.com/omarusman/omnipay-paymongo) | - | ✓ | omarusman/omnipay-paymongo | [Omar Usman](https://github.com/omarusman) +[PayMongo](https://github.com/oozman/omnipay-paymongo) | - | ✓ | oozman/omnipay-paymongo | [Oozman](https://github.com/oozman) [Payoo](https://github.com/dilab/omnipay-payoo) | ✓ | ✓ | dilab/omnipay-payoo | [Xu Ding](https://github.com/dilab) [Pacnet](https://github.com/mfauveau/omnipay-pacnet) | ✓ | - | mfauveau/omnipay-pacnet | [Matthieu Fauveau](https://github.com/mfauveau) [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | ✓ | - | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) From 5b5a5cd126ffc8c578023f1454abbe2d5124d61e Mon Sep 17 00:00:00 2001 From: henrydekap Date: Tue, 1 Jun 2021 18:53:20 +0200 Subject: [PATCH 318/333] Removed PayU adapter from efesaid from README (repository does not exist anymore) (#598) Co-authored-by: Emanuele Capanni --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index f5c4c4e6..8ba6d090 100644 --- a/README.md +++ b/README.md @@ -230,7 +230,6 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PaySimple](https://github.com/dranes/omnipay-paysimple) | ✓ | - | dranes/omnipay-paysimple | [Dranes](https://github.com/dranes) [PaySsion](https://github.com/InkedCurtis/omnipay-payssion) | ✓ | - | inkedcurtis/omnipay-payssion | [Curtis](https://github.com/inkedcurtis) [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | ✓ | - | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) -[PayU](https://github.com/efesaid/omnipay-payu) | ✓ | - | omnipay/payu | [efesaid](https://github.com/efesaid) [PayU](https://github.com/bileto/omnipay-payu) | ✓ | - | bileto/omnipay-payu | [PayZen](https://github.com/ubitransports/omnipay-payzen) | ✓ | - | ubitransports/omnipay-payzen | [Ubitransport](https://github.com/ubitransports) [Paxum](https://github.com/hiqdev/omnipay-paxum) | ✓ | - | hiqdev/omnipay-paxum | [HiQDev](https://github.com/hiqdev) From d8b503701abc5d6ba1f1b438e352004bf7307531 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 2 Jun 2021 04:55:23 +1200 Subject: [PATCH 319/333] Add createCard to the list on generally available actions (#522) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8ba6d090..c0af8453 100644 --- a/README.md +++ b/README.md @@ -409,6 +409,7 @@ The main methods implemented by gateways are: * `void($options)` - generally can only be called up to 24 hours after submitting a transaction * `acceptNotification()` - convert an incoming request from an off-site gateway to a generic notification object for further processing +* `createCard` - get a cardReference that can be used for future payments. This might be used in a monthly billing scenario, for example. On-site gateways do not need to implement the `completeAuthorize` and `completePurchase` methods. Gateways that don't receive payment notifications don't need to implement `acceptNotification`. If any gateway does not support certain From 38f66a0cc043ed51d6edf7956d6439a2f263501f Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sat, 5 Jun 2021 13:34:12 +0200 Subject: [PATCH 320/333] Update composer.json --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 191fb972..9bbc6db9 100644 --- a/composer.json +++ b/composer.json @@ -21,10 +21,10 @@ } ], "require": { - "php": "^7.3|^8.0", + "php": "^7.2|^8.0", "omnipay/common": "^3.1", - "php-http/discovery": "^1.12", - "php-http/guzzle7-adapter": "^0.1" + "php-http/discovery": "^1.14", + "php-http/guzzle7-adapter": "^1" }, "require-dev": { "omnipay/tests": "^3|^4" From 92413187e263a587a27eff4a8c842930481e87e4 Mon Sep 17 00:00:00 2001 From: Alofoxx Date: Sat, 5 Jun 2021 05:27:36 -0700 Subject: [PATCH 321/333] Transportersio/omnipay-square 2.x uses omnipay v3 (#623) Co-authored-by: Barry vd. Heuvel --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0af8453..66e844f6 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Skrill](https://github.com/alfaproject/omnipay-skrill) | ✓ | - | alfaproject/omnipay-skrill | [João Dias](https://github.com/alfaproject) [Sofort](https://github.com/aimeoscom/omnipay-sofort) | ✓ | - | aimeoscom/omnipay-sofort | [Aimeos GmbH](https://github.com/aimeoscom) [Spreedly](https://github.com/gregoriohc/omnipay-spreedly) | ✓ | - | gregoriohc/omnipay-spreedly | [Gregorio Hernández Caso](https://github.com/gregoriohc) -[Square](https://github.com/Transportersio/omnipay-square) | ✓ | - | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) +[Square](https://github.com/Transportersio/omnipay-square) | ✓ | ✓ | transportersio/omnipay-square | [Transporters.io](https://github.com/Transportersio) [Starkpay](https://github.com/starkpay/omnipay) | ✓ | ✓ | starkpay/omnipay | [Starkpay](https://github.com/starkpay) [Stripe](https://github.com/thephpleague/omnipay-stripe) | ✓ | ✓ | omnipay/stripe | [Del](https://github.com/delatbabel) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | ✓ | - | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) From bb4c1e3fd4db80e2733fc9a057d42a1124ca7bda Mon Sep 17 00:00:00 2001 From: Dmytro Naumenko Date: Sat, 5 Jun 2021 15:28:38 +0300 Subject: [PATCH 322/333] HiQDev packages were upgraded to Omnipay 3.0 (#622) * HiQDev packages were upgraded to Omnipay 3.0 * dercoder/omnipay-webmoney is OmniPay v3 compatible Co-authored-by: Barry vd. Heuvel --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 66e844f6..73d2e4ff 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Barclays ePDQ](https://github.com/digitickets/omnipay-barclays-epdq) | ✓ | - | digitickets/omnipay-barclays-epdq | [DigiTickets](https://github.com/digitickets) [BlueOrange bank](https://github.com/DeH4eG/omnipay-blueorange) | - | ✓ | deh4eg/omnipay-blueorange | [Denis Smolakov](https://github.com/DeH4eG) [Beanstream](https://github.com/lemonstand/omnipay-beanstream) | ✓ | - | lemonstand/omnipay-beanstream | [LemonStand](https://github.com/lemonstand) -[BitPay](https://github.com/hiqdev/omnipay-bitpay) | ✓ | - | hiqdev/omnipay-bitpay | [HiQDev](https://github.com/hiqdev) +[BitPay](https://github.com/hiqdev/omnipay-bitpay) | ✓ | ✓ | hiqdev/omnipay-bitpay | [HiQDev](https://github.com/hiqdev) [BKM Express](https://github.com/yasinkuyu/omnipay-bkm) | ✓ | - | yasinkuyu/omnipay-bkm | [Yasin Kuyu](https://github.com/yasinkuyu) [BlueSnap](https://github.com/vimeo/omnipay-bluesnap) | ✓ | - | vimeo/omnipay-bluesnap | [Vimeo](https://github.com/vimeo) [Braintree](https://github.com/thephpleague/omnipay-braintree) | ✓ | ✓ | omnipay/braintree | [Omnipay](https://github.com/thephpleague/omnipay) @@ -141,17 +141,17 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Ebanx](https://github.com/descubraomundo/omnipay-ebanx) | - | ✓ | descubraomundo/omnipay-ebanx | [Descubra o Mundo](https://github.com/descubraomundo/) [eGHL](https://bitbucket.org/eghl/eghl-omnipay/src/master/) | - | ✓ | e-ghl/omnipay | [Jawad Humayun](https://bitbucket.org/jawad242/) [eGHL](https://github.com/dilab/omnipay-eghl) | ✓ | ✓ | dilab/omnipay-eghl | [Xu Ding](https://github.com/dilab) -[eCoin](https://github.com/hiqdev/omnipay-ecoin) | ✓ | - | hiqdev/omnipay-ecoin | [HiQDev](https://github.com/hiqdev) +[eCoin](https://github.com/hiqdev/omnipay-ecoin) | ✓ | ✓ | hiqdev/omnipay-ecoin | [HiQDev](https://github.com/hiqdev) [ecoPayz](https://github.com/dercoder/omnipay-ecopayz) | ✓ | - | dercoder/omnipay-ecopayz | [Alexander Fedra](https://github.com/dercoder) [eSewa](https://github.com/sudiptpa/esewa) | - | ✓ | sudiptpa/omnipay-esewa | [Sujip Thapa](https://github.com/sudiptpa) [EgopayRu](https://github.com/pinguinjkeke/omnipay-egopaymentru) | ✓ | - | pinguinjkeke/omnipay-egopaymentru | [Alexander Avakov](https://github.com/pinguinjkeke) [Elavon](https://github.com/lxrco/omnipay-elavon) | ✓ | ✓ | lxrco/omnipay-elavon | [Korri](https://github.com/Korri) -[ePayments](https://github.com/hiqdev/omnipay-epayments) | ✓ | - | hiqdev/omnipay-epayments | [HiQDev](https://github.com/hiqdev) -[ePayService](https://github.com/hiqdev/omnipay-epayservice) | ✓ | - | hiqdev/omnipay-epayservice | [HiQDev](https://github.com/hiqdev) +[ePayments](https://github.com/hiqdev/omnipay-epayments) | ✓ | ✓ | hiqdev/omnipay-epayments | [HiQDev](https://github.com/hiqdev) +[ePayService](https://github.com/hiqdev/omnipay-epayservice) | ✓ | ✓ | hiqdev/omnipay-epayservice | [HiQDev](https://github.com/hiqdev) [eWAY](https://github.com/thephpleague/omnipay-eway) | ✓ | ✓ | omnipay/eway | [Del](https://github.com/delatbabel) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | ✓ | - | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | ✓ | - | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) -[FreeKassa](https://github.com/hiqdev/omnipay-freekassa) | ✓ | - | hiqdev/omnipay-freekassa | [HiQDev](https://github.com/hiqdev) +[FreeKassa](https://github.com/hiqdev/omnipay-freekassa) | ✓ | ✓ | hiqdev/omnipay-freekassa | [HiQDev](https://github.com/hiqdev) [Fibank](https://github.com/ampeco/omnipay-fibank) | - | ✓ | ampeco/omnipay-fibank | [Ampeco](https://github.com/ampeco) [First Data](https://github.com/thephpleague/omnipay-firstdata) | ✓ | - | omnipay/firstdata | [OmniPay](https://github.com/thephpleague/omnipay) [Flo2cash](https://github.com/guisea/omnipay-flo2cash) | ✓ | - | guisea/omnipay-flo2cash | [Aaron Guise](https://github.com/guisea) @@ -170,6 +170,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Ingenico ePayments](https://github.com/deniztezcan/omnipay-ingenico-epayments) | - | ✓ | deniztezcan/omnipay-ingenico-epayments | [Deniz Tezcan](https://github.com/deniztezcan) [iPay88](https://github.com/dilab/omnipay-ipay88) | ✓ | ✓ | dilab/omnipay-ipay88 | [Xu Ding](https://github.com/dilab) [IfthenPay](https://github.com/ifthenpay/omnipay-ifthenpay) | ✓ | - | ifthenpay/omnipay-ifthenpay | [Rafael Almeida](https://github.com/rafaelcpalmeida) +[Ikajo](https://github.com/hiqdev/omnipay-ikajo) | ✓ | ✓ | hiqdev/omnipay-ikajo | [HiQDev](https://github.com/hiqdev) [InterKassa](https://github.com/hiqdev/omnipay-interkassa) | ✓ | ✓ | hiqdev/omnipay-interkassa | [HiQDev](https://github.com/hiqdev) [InovioPay](https://github.com/mvestil/omnipay-inoviopay) | ✓ | ✓ | mvestil/omnipay-inoviopay | [Mark Vestil](https://github.com/mvestil) [Iyzico](https://github.com/yasinkuyu/omnipay-iyzico) | ✓ | - | yasinkuyu/omnipay-iyzico | [Yasin Kuyu](https://github.com/yasinkuyu) @@ -202,7 +203,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Network Merchants Inc. (NMI)](https://github.com/mfauveau/omnipay-nmi) | ✓ | - | mfauveau/omnipay-nmi | [Matthieu Fauveau](https://github.com/mfauveau) [Nocks](https://github.com/nocksapp/checkout-omnipay) | ✓ | ✓ | nocksapp/omnipay-nocks | [Nocks](https://github.com/nocksapp) [Nuvei](https://github.com/diversifiedtech/omnipay-nuvei) | - | ✓ | nmc9/omnipay-nuvei | [DiversifiedTech](https://github.com/diversifiedtech) -[OkPay](https://github.com/hiqdev/omnipay-okpay) | ✓ | - | hiqdev/omnipay-okpay | [HiQDev](https://github.com/hiqdev) +[OkPay](https://github.com/hiqdev/omnipay-okpay) | ✓ | ✓ | hiqdev/omnipay-okpay | [HiQDev](https://github.com/hiqdev) [OnePay](https://github.com/dilab/omnipay-onepay) | ✓ | ✓ | dilab/omnipay-onepay | [Xu Ding](https://github.com/dilab) [Openpay Australia](https://github.com/sudiptpa/openpay) | ✓ | ✓ | sudiptpa/omnipay-openpay | [Sujip Thapa](https://github.com/sudiptpa) [Oppwa](https://github.com/vdbelt/omnipay-oppwa) | ✓ | ✓ | vdbelt/omnipay-oppwa | [Martin van de Belt](https://github.com/vdbelt) @@ -232,7 +233,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PayTrace](https://github.com/iddqdidkfa/omnipay-paytrace) | ✓ | - | softcommerce/omnipay-paytrace | [Oleg Ilyushyn](https://github.com/iddqdidkfa) [PayU](https://github.com/bileto/omnipay-payu) | ✓ | - | bileto/omnipay-payu | [PayZen](https://github.com/ubitransports/omnipay-payzen) | ✓ | - | ubitransports/omnipay-payzen | [Ubitransport](https://github.com/ubitransports) -[Paxum](https://github.com/hiqdev/omnipay-paxum) | ✓ | - | hiqdev/omnipay-paxum | [HiQDev](https://github.com/hiqdev) +[Paxum](https://github.com/hiqdev/omnipay-paxum) | ✓ | ✓ | hiqdev/omnipay-paxum | [HiQDev](https://github.com/hiqdev) [Pelecard](https://github.com/Uskur/omnipay-pelecard) | ✓ | ✓ | uskur/omnipay-pelecard | [Uskur](https://github.com/Uskur) [Pin Payments](https://github.com/thephpleague/omnipay-pin) | ✓ | - | omnipay/pin | [Del](https://github.com/delatbabel) [Ping++](https://github.com/phoenixg/omnipay-pingpp) | ✓ | - | phoenixg/omnipay-pingpp | [Huang Feng](https://github.com/phoenixg) @@ -240,7 +241,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Portmanat](https://github.com/dercoder/omnipay-portmanat) | ✓ | - | dercoder/omnipay-portmanat | [Alexander Fedra](https://github.com/dercoder) [Posnet](https://github.com/yasinkuyu/omnipay-posnet) | ✓ | - | yasinkuyu/omnipay-posnet | [Yasin Kuyu](https://github.com/yasinkuyu) [Postfinance](https://github.com/bummzack/omnipay-postfinance) | ✓ | - | bummzack/omnipay-postfinance | [Roman Schmid](https://github.com/bummzack) -[Qiwi](https://github.com/hiqdev/omnipay-qiwi) | ✓ | - | hiqdev/omnipay-qiwi | [HiQDev](https://github.com/hiqdev) +[Qiwi](https://github.com/hiqdev/omnipay-qiwi) | ✓ | ✓ | hiqdev/omnipay-qiwi | [HiQDev](https://github.com/hiqdev) [QQ Wallet(QPay)](https://github.com/kuangjy2/omnipay-qpay) | - | ✓ | kuangjy/omnipay-qpay | [Kuang Jiaye](https://github.com/kuangjy2) [Quickpay](https://github.com/NobrainerWeb/omnipay-quickpay) | ✓ | - | nobrainerweb/omnipay-quickpay | [Nobrainer Web](https://github.com/NobrainerWeb) [Rabobank](https://github.com/thephpleague/omnipay-rabobank) | ✓ | - | omnipay/rabobank | [Barry vd. Heuvel](https://github.com/barryvdh) @@ -270,7 +271,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Vindicia](https://github.com/vimeo/omnipay-vindicia) | ✓ | - | vimeo/omnipay-vindicia | [Vimeo](https://github.com/vimeo) [VivaPayments](https://github.com/delatbabel/omnipay-vivapayments) | ✓ | - | delatbabel/omnipay-vivapayments | [Del](https://github.com/delatbabel) [VR Payment](https://github.com/antibodies-online/omnipay-vr-payment) | - | ✓ | antibodies-online/omnipay-vr-payment | [antibodies-online](https://github.com/antibodies-online) -[WebMoney](https://github.com/dercoder/omnipay-webmoney) | ✓ | - | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) +[WebMoney](https://github.com/dercoder/omnipay-webmoney) | ✓ | ✓ | dercoder/omnipay-webmoney | [Alexander Fedra](https://github.com/dercoder) [WeChat](https://github.com/labs7in0/omnipay-wechat) | ✓ | - | labs7in0/omnipay-wechat | [7IN0's Labs](https://github.com/labs7in0) [WechatPay](https://github.com/lokielse/omnipay-wechatpay) | ✓ | ✓ | lokielse/omnipay-wechatpay | [Loki Else](https://github.com/lokielse) [WePay](https://github.com/collizo4sky/omnipay-wepay) | ✓ | - | collizo4sky/omnipay-wepay | [Agbonghama Collins](https://github.com/collizo4sky) @@ -281,7 +282,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Worldpay Business Gateway](https://github.com/thephpleague/omnipay-worldpay) | ✓ | ✓ | omnipay/worldpay | [Omnipay](https://github.com/thephpleague/omnipay) [Yandex.Kassa](https://github.com/hiqdev/omnipay-yandex-kassa) | ✓ | ✓ | hiqdev/omnipay-yandex-kassa | [HiQDev](https://github.com/hiqdev) [Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | ✓ | - | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) -[Yandex.Money for P2P payments](https://github.com/hiqdev/omnipay-yandexmoney) | ✓ | - | hiqdev/omnipay-yandexmoney | [HiQDev](https://github.com/hiqdev) +[Yandex.Money for P2P payments](https://github.com/hiqdev/omnipay-yandexmoney) | ✓ | ✓ | hiqdev/omnipay-yandexmoney | [HiQDev](https://github.com/hiqdev) [Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) [Faspay](https://github.com/David-Kurniawan/omnipay-faspay) | ✓ | ✓ | David-Kurniawan/omnipay-faspay | [David](https://github.com/David-Kurniawan) [Yekpay](https://github.com/nekofar/omnipay-yekpay) | - | ✓ | nekofar/omnipay-yekpay | [Milad Nekofar](https://github.com/nekofar) From 62b8be3e3c4e9a9edd10bf802cf51481081af2fb Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sat, 5 Jun 2021 14:37:29 +0200 Subject: [PATCH 323/333] Sort gateways --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 73d2e4ff..01622b5f 100644 --- a/README.md +++ b/README.md @@ -100,13 +100,13 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [2c2p](https://github.com/dilab/omnipay-2c2p) | ✓ | ✓ | dilab/omnipay-2c2p | [Xu Ding](https://github.com/dilab) [2Checkout](https://github.com/thephpleague/omnipay-2checkout) | ✓ | - | omnipay/2checkout | [Omnipay](https://github.com/thephpleague/omnipay) [2Checkout Improved](https://github.com/collizo4sky/omnipay-2checkout) | ✓ | - | collizo4sky/omnipay-2checkout | [Agbonghama Collins](https://github.com/collizo4sky) +[99Bill](https://github.com/laraveler/omnipay-99bill) | - | ✓ | x-class/omnipay-99bill | [Laraveler](https://github.com/laraveler) [Acapture (PayVision)](https://github.com/queueup-dev/omnipay-acapture) | ✓ | - | qup/omnipay-acapture | [Niels de Vries](https://github.com/niels-qup) [Adyen](https://github.com/academe/omnipay-adyen) | - | ✓ | academe/omnipay-adyen | [Jason Judge](https://github.com/judgej) [Affirm](https://github.com/eduardlleshi/omnipay-affirm) | ✓ | ✓ | eduardlleshi/omnipay-affirm | [Eduard Lleshi](https://github.com/eduardlleshi) [Agms](https://github.com/agmscode/omnipay-agms) | ✓ | - | agmscode/omnipay-agms | [Maanas Royy](https://github.com/maanas) [Alipay(Global)](https://github.com/lokielse/omnipay-global-alipay) | ✓ | ✓ | lokielse/omnipay-global-alipay | [Loki Else](https://github.com/lokielse) [Alipay](https://github.com/lokielse/omnipay-alipay) | ✓ | ✓ | lokielse/omnipay-alipay | [Loki Else](https://github.com/lokielse) -[99Bill](https://github.com/laraveler/omnipay-99bill) | - | ✓ | x-class/omnipay-99bill | [Laraveler](https://github.com/laraveler) [Allied Wallet](https://github.com/delatbabel/omnipay-alliedwallet) | ✓ | - | delatbabel/omnipay-alliedwallet | [Del](https://github.com/delatbabel) [Arca](https://github.com/k3rnel/omnipay-arca) | - | ✓ | k3rnel/omnipay-arca | [Poghos Boyajyan](https://github.com/k3rnel) [Authorize.Net](https://github.com/thephpleague/omnipay-authorizenet) | ✓ | ✓ | omnipay/authorizenet | [Jason Judge](https://github.com/judgej) @@ -150,6 +150,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [ePayService](https://github.com/hiqdev/omnipay-epayservice) | ✓ | ✓ | hiqdev/omnipay-epayservice | [HiQDev](https://github.com/hiqdev) [eWAY](https://github.com/thephpleague/omnipay-eway) | ✓ | ✓ | omnipay/eway | [Del](https://github.com/delatbabel) [Fasapay](https://github.com/andreas22/omnipay-fasapay) | ✓ | - | andreas22/omnipay-fasapay | [Andreas Christodoulou](https://github.com/andreas22) +[Faspay](https://github.com/David-Kurniawan/omnipay-faspay) | ✓ | ✓ | David-Kurniawan/omnipay-faspay | [David](https://github.com/David-Kurniawan) [Fat Zebra](https://github.com/delatbabel/omnipay-fatzebra) | ✓ | - | delatbabel/omnipay-fatzebra | [Del](https://github.com/delatbabel) [FreeKassa](https://github.com/hiqdev/omnipay-freekassa) | ✓ | ✓ | hiqdev/omnipay-freekassa | [HiQDev](https://github.com/hiqdev) [Fibank](https://github.com/ampeco/omnipay-fibank) | - | ✓ | ampeco/omnipay-fibank | [Ampeco](https://github.com/ampeco) @@ -190,6 +191,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Mollie](https://github.com/thephpleague/omnipay-mollie) | ✓ | ✓ | omnipay/mollie | [Barry vd. Heuvel](https://github.com/barryvdh) [MOLPay](https://github.com/leesiongchan/omnipay-molpay) | ✓ | - | leesiongchan/molpay | [Lee Siong Chan](https://github.com/leesiongchan) [MoMo](https://github.com/phpviet/omnipay-momo) | - | ✓ | phpviet/omnipay-momo | [PHPViet](https://github.com/phpviet) +[Moneris](https://github.com/unoapp-dev/omnipay-moneris) | - | ✓ | unoapp-dev/omnipay-moneris | [UNOapp Dev](https://github.com/unoapp-dev) [MultiCards](https://github.com/incube8/omnipay-multicards) | ✓ | - | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | ✓ | - | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [MyCard](https://github.com/xxtime/omnipay-mycard) | ✓ | - | xxtime/omnipay-mycard | [Joe Chu](https://github.com/xxtime) @@ -265,6 +267,8 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Stripe](https://github.com/thephpleague/omnipay-stripe) | ✓ | ✓ | omnipay/stripe | [Del](https://github.com/delatbabel) [TargetPay](https://github.com/thephpleague/omnipay-targetpay) | ✓ | - | omnipay/targetpay | [Alexander Deruwe](https://github.com/aderuwe) [TatraBank](https://github.com/bileto/omnipay-tatrabank) | ✓ | - | omnipay-tatrabank | +[ToyyibPay](https://github.com/sitehandy/omnipay-toyyibpay) | - | ✓ | sitehandy/omnipay-toyyibpay | [Amirol Zolkifli](https://github.com/sitehandy) +[Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) [UnionPay](https://github.com/lokielse/omnipay-unionpay) | ✓ | ✓ | lokielse/omnipay-unionpay | [Loki Else](https://github.com/lokielse) [Vantiv](https://github.com/lemonstand/omnipay-vantiv) | ✓ | - | lemonstand/omnipay-vantiv | [LemonStand](https://github.com/lemonstand) [Veritrans](https://github.com/andylibrian/omnipay-veritrans) | ✓ | - | andylibrian/omnipay-veritrans | [Andy Librian](https://github.com/andylibrian) @@ -283,12 +287,8 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Yandex.Kassa](https://github.com/hiqdev/omnipay-yandex-kassa) | ✓ | ✓ | hiqdev/omnipay-yandex-kassa | [HiQDev](https://github.com/hiqdev) [Yandex.Money](https://github.com/yandex-money/yandex-money-cms-omnipay) | ✓ | - | yandexmoney/omnipay | [Roman Ananyev](https://github.com/aTastyCookie/) [Yandex.Money for P2P payments](https://github.com/hiqdev/omnipay-yandexmoney) | ✓ | ✓ | hiqdev/omnipay-yandexmoney | [HiQDev](https://github.com/hiqdev) -[Tpay](https://github.com/tpay-com/omnipay-tpay) | ✓ | - | omnipay/tpay | [Tpay.com](https://github.com/tpay-com) -[Faspay](https://github.com/David-Kurniawan/omnipay-faspay) | ✓ | ✓ | David-Kurniawan/omnipay-faspay | [David](https://github.com/David-Kurniawan) [Yekpay](https://github.com/nekofar/omnipay-yekpay) | - | ✓ | nekofar/omnipay-yekpay | [Milad Nekofar](https://github.com/nekofar) [ZarinPal](https://github.com/nekofar/omnipay-zarinpal) | - | ✓ | nekofar/omnipay-zarinpal | [Milad Nekofar](https://github.com/nekofar) -[Moneris](https://github.com/unoapp-dev/omnipay-moneris) | - | ✓ | unoapp-dev/omnipay-moneris | [UNOapp Dev](https://github.com/unoapp-dev) -[toyyibPay](https://github.com/sitehandy/omnipay-toyyibpay) | - | ✓ | sitehandy/omnipay-toyyibpay | [Amirol Zolkifli](https://github.com/sitehandy) Gateways are created and initialized like so: From 73b6a169073bdb01054dd199e69f3ce3f1823e5f Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sat, 5 Jun 2021 15:25:02 +0200 Subject: [PATCH 324/333] Update CHANGELOG.md --- CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5d37309..951c346f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,7 @@ Changelog ## v3.2 - 2021-06-01 -Omnipay 3.2 is compatible with PHP8. This is done by upgrading the test suite to PHPUnit 9, with the release of omnipay/tests v4 and omnipay/common v3.1. This change is primarily for gateway developers, to make it possible to actually test PHP8, but they will need to upgrade their tests to use PHPUnit 9 (the currently supported PHPUnit version). The minimum PHP versions is bumped to 7.3 because of this. - +Omnipay 3.2 is compatible with PHP8. This is done by upgrading the test suite to PHPUnit 8/9, with the release of omnipay/tests v4 and omnipay/common v3.1. This change is primarily for gateway developers, to make it possible to actually test PHP8, but they will need to upgrade their tests to use PHPUnit 9 (the currently supported PHPUnit version). ## v3.1 - 2020-10-29 Omnipay 3.1 uses Guzzle 7 by default (using the Guzzle 7 adapter). This doesn't change omnipay-common because they will work with any compatible Http Client. From c4ae9dc1c2d78e1507f147ddbdc6d9a314923f60 Mon Sep 17 00:00:00 2001 From: my-fatoorah <82934742+my-fatoorah@users.noreply.github.com> Date: Sun, 20 Jun 2021 13:14:29 +0200 Subject: [PATCH 325/333] MyFatoorah OmniPay (#655) * add MyFatoorah OmniPay * change name of composer Co-authored-by: nshoman-mf --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 01622b5f..71595a13 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [MultiCards](https://github.com/incube8/omnipay-multicards) | ✓ | - | incube8/omnipay-multicards | [Del](https://github.com/delatbabel) [MultiSafepay](https://github.com/thephpleague/omnipay-multisafepay) | ✓ | - | omnipay/multisafepay | [Alexander Deruwe](https://github.com/aderuwe) [MyCard](https://github.com/xxtime/omnipay-mycard) | ✓ | - | xxtime/omnipay-mycard | [Joe Chu](https://github.com/xxtime) +[MyFatoorah](https://github.com/my-fatoorah/omnipay-myfatoorah) | - | ✓ | myfatoorah/omnipay | [MyFatoorah Plugins Team](https://github.com/my-fatoorah) [National Australia Bank (NAB) Transact](https://github.com/sudiptpa/omnipay-nabtransact) | ✓ | ✓ | sudiptpa/omnipay-nabtransact | [Sujip Thapa](https://github.com/sudiptpa) [NestPay (EST)](https://github.com/yasinkuyu/omnipay-nestpay) | ✓ | - | yasinkuyu/omnipay-nestpay | [Yasin Kuyu](https://github.com/yasinkuyu) [NestPay (EST)](https://github.com/uskur/omnipay-nestpay) | - | ✓ | uskur/omnipay-nestpay | [Uskur](https://github.com/uskur) From 945bebe9c00b4b2d5c436c9fc684a5cfd6c19305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sk=C5=82adanowski?= Date: Wed, 8 Sep 2021 11:36:29 +0200 Subject: [PATCH 326/333] Add paynow to drivers list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 71595a13..c67139f7 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [PaymentgateRu](https://github.com/pinguinjkeke/omnipay-paymentgateru) | ✓ | ✓ | pinguinjkeke/omnipay-paymentgateru | [Alexander Avakov](https://github.com/pinguinjkeke) [PaymentSense](https://github.com/digitickets/omnipay-paymentsense) | ✓ | - | digitickets/omnipay-paymentsense | [DigiTickets](https://github.com/digitickets) [PaymentWall](https://github.com/incube8/omnipay-paymentwall) | ✓ | - | incube8/omnipay-paymentwall | [Del](https://github.com/delatbabel) +[Paynow](https://github.com/pay-now/omnipay-paynow) | - | ✓ | pay-now/omnipay-paynow | [Paynow](https://github.com/pay-now) [PayPal](https://github.com/thephpleague/omnipay-paypal) | ✓ | ✓ | omnipay/paypal | [Del](https://github.com/delatbabel) [PayPro](https://github.com/payproNL/omnipay-paypro) | ✓ | - | paypronl/omnipay-paypro | [Fruitcake](https://github.com/fruitcake) [PAYONE](https://github.com/academe/omnipay-payone) | ✓ | ✓ | academe/omnipay-payone | [Jason Judge](https://github.com/judgej) From 3145f6f7a93f00c219bc1bf1a46ff25bb077defc Mon Sep 17 00:00:00 2001 From: Sergiy Petrov Date: Tue, 3 May 2022 13:30:50 +0300 Subject: [PATCH 327/333] Update run-tests.yml (#672) --- .github/workflows/run-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index e3dc5b26..c269825a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - php: [8.0, 7.4, 7.3] + php: [8.1, 8.0, 7.4, 7.3] dependency-version: [prefer-lowest, prefer-stable] name: P${{ matrix.php }} - ${{ matrix.dependency-version }} @@ -40,4 +40,4 @@ jobs: composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress - name: Execute Unit Tests - run: composer test \ No newline at end of file + run: composer test From 8f8783239cfa2b38c664921a8db3db682ef26949 Mon Sep 17 00:00:00 2001 From: Marnus van Niekerk Date: Wed, 7 Dec 2022 11:35:22 +0200 Subject: [PATCH 328/333] Add PayGate to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c67139f7..570a709f 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | ✓ | - | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) [Paratika (Asseco)](https://github.com/yasinkuyu/omnipay-paratika) | ✓ | - | yasinkuyu/omnipay-paratika | [Yasin Kuyu](https://github.com/yasinkuyu) [PayFast](https://github.com/thephpleague/omnipay-payfast) | ✓ | - | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) +[PayGate](https://github.com/mvnrsa/omnipay-paygate) | ✓ | - | mvnrsa/paygate | [Marnus van Niekerk](https://github.com/mvnrsa) [Payflow](https://github.com/thephpleague/omnipay-payflow) | ✓ | - | omnipay/payflow | [Del](https://github.com/delatbabel) [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | ✓ | ✓ | omnipay/paymentexpress | [Del](https://github.com/delatbabel) [PaymentExpress / DPS (A2A)](https://github.com/onlinesid/omnipay-paymentexpress-a2a) | ✓ | - | onlinesid/omnipay-paymentexpress-a2a | [Sid](https://github.com/onlinesid) From f08ba81b03beb541e3fbfa0d90d8e69a47b7ccb1 Mon Sep 17 00:00:00 2001 From: Marnus van Niekerk Date: Wed, 7 Dec 2022 11:38:51 +0200 Subject: [PATCH 329/333] Update PayGate version info --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 570a709f..2f46a777 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ Gateway | 2.x | 3.x | Composer Package | Maintainer [Pagar.me](https://github.com/descubraomundo/omnipay-pagarme) | ✓ | - | descubraomundo/omnipay-pagarme | [Descubra o Mundo](https://github.com/descubraomundo) [Paratika (Asseco)](https://github.com/yasinkuyu/omnipay-paratika) | ✓ | - | yasinkuyu/omnipay-paratika | [Yasin Kuyu](https://github.com/yasinkuyu) [PayFast](https://github.com/thephpleague/omnipay-payfast) | ✓ | - | omnipay/payfast | [Omnipay](https://github.com/thephpleague/omnipay) -[PayGate](https://github.com/mvnrsa/omnipay-paygate) | ✓ | - | mvnrsa/paygate | [Marnus van Niekerk](https://github.com/mvnrsa) +[PayGate](https://github.com/mvnrsa/omnipay-paygate) | - | ✓ | mvnrsa/paygate | [Marnus van Niekerk](https://github.com/mvnrsa) [Payflow](https://github.com/thephpleague/omnipay-payflow) | ✓ | - | omnipay/payflow | [Del](https://github.com/delatbabel) [PaymentExpress (DPS)](https://github.com/thephpleague/omnipay-paymentexpress) | ✓ | ✓ | omnipay/paymentexpress | [Del](https://github.com/delatbabel) [PaymentExpress / DPS (A2A)](https://github.com/onlinesid/omnipay-paymentexpress-a2a) | ✓ | - | onlinesid/omnipay-paymentexpress-a2a | [Sid](https://github.com/onlinesid) From 99d9efb49fccbfaf67a18a85e77fcc3a50cdd2cf Mon Sep 17 00:00:00 2001 From: Sergiy Petrov Date: Sun, 2 Apr 2023 19:12:52 +0300 Subject: [PATCH 330/333] Update run-tests.yml (#688) --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index c269825a..7b62def4 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - php: [8.1, 8.0, 7.4, 7.3] + php: [8.2, 8.1, 8.0, 7.4, 7.3] dependency-version: [prefer-lowest, prefer-stable] name: P${{ matrix.php }} - ${{ matrix.dependency-version }} From 4a7eb2fe054fed1aea068661c2c22634479e495c Mon Sep 17 00:00:00 2001 From: Hamza Makraz Date: Sun, 17 Sep 2023 15:00:06 +0100 Subject: [PATCH 331/333] Fix a typo in the Installation section of the README file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c67139f7..954ed5e9 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ composer require league/omnipay:^3 omnipay/paypal ``` If you want to use your own HTTP Client instead of Guzzle (which is the default for `league/omnipay`), -you can require `league/common` and any `php-http/client-implementation` (see [PHP Http](http://docs.php-http.org/en/latest/clients.html)) +you can require `omnipay/common` and any `php-http/client-implementation` (see [PHP Http](http://docs.php-http.org/en/latest/clients.html)) ``` composer require league/common:^3 omnipay/paypal php-http/buzz-adapter From 38fcc0b2e049b8b74753da66b628fe0feb2c62fc Mon Sep 17 00:00:00 2001 From: Serhii Petrov Date: Fri, 6 Oct 2023 17:58:57 +0300 Subject: [PATCH 332/333] Test against php 8.3 (#694) --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 7b62def4..9683b370 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - php: [8.2, 8.1, 8.0, 7.4, 7.3] + php: [8.3, 8.2, 8.1, 8.0, 7.4, 7.3] dependency-version: [prefer-lowest, prefer-stable] name: P${{ matrix.php }} - ${{ matrix.dependency-version }} From 9cb6293949647b8878b2e3371930e0a69c552073 Mon Sep 17 00:00:00 2001 From: Serhii Petrov Date: Sun, 5 Oct 2025 18:52:35 +0300 Subject: [PATCH 333/333] Test against php 8.5 (#715) --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 9683b370..33e89767 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - php: [8.3, 8.2, 8.1, 8.0, 7.4, 7.3] + php: [8.5, 8.4, 8.3, 8.2, 8.1, 8.0, 7.4, 7.3] dependency-version: [prefer-lowest, prefer-stable] name: P${{ matrix.php }} - ${{ matrix.dependency-version }}