File manager - Edit - /home/opticamezl/www/newok/eway.tar
Back
.travis.yml 0000604 00000000317 15173423472 0006662 0 ustar 00 language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm before_script: - composer install -n --dev --prefer-source script: vendor/bin/phpcs --standard=PSR2 src && vendor/bin/phpunit --coverage-text README.md 0000604 00000003546 15173423473 0006040 0 ustar 00 # Omnipay: eWAY **eWAY driver for the Omnipay PHP payment processing library** [](https://travis-ci.org/thephpleague/omnipay-eway) [](https://packagist.org/packages/omnipay/eway) [](https://packagist.org/packages/omnipay/eway) [Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements eWAY support for Omnipay. ## Installation Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file: ```json { "require": { "omnipay/eway": "~2.0" } } ``` And run composer to update your dependencies: $ curl -s http://getcomposer.org/installer | php $ php composer.phar update ## Basic Usage The following gateways are provided by this package: * Eway_Rapid * Eway_RapidShared * Eway_RapidDirect * Eway_Direct For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository. ## 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 want to keep up to date with release announcements, 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/thephpleague/omnipay-eway/issues), or better yet, fork the library and submit a pull request. phpunit.xml.dist 0000604 00000001512 15173423473 0007723 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <phpunit backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" syntaxCheck="false"> <testsuites> <testsuite name="Omnipay Test Suite"> <directory>./tests/</directory> </testsuite> </testsuites> <listeners> <listener class="Mockery\Adapter\Phpunit\TestListener" file="vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php" /> </listeners> <filter> <whitelist> <directory>./src</directory> </whitelist> </filter> </phpunit> composer.json 0000604 00000001622 15173423473 0007274 0 ustar 00 { "name": "omnipay/eway", "type": "library", "description": "eWay driver for the Omnipay payment processing library", "keywords": [ "eway", "gateway", "merchant", "omnipay", "pay", "payment" ], "homepage": "https://github.com/thephpleague/omnipay-eway", "license": "MIT", "authors": [ { "name": "Adrian Macneil", "email": "adrian@adrianmacneil.com" }, { "name": "Omnipay Contributors", "homepage": "https://github.com/thephpleague/omnipay-eway/contributors" } ], "autoload": { "psr-4": { "Omnipay\\Eway\\" : "src/" } }, "require": { "omnipay/common": "~2.0" }, "require-dev": { "omnipay/tests": "~2.0" }, "extra": { "branch-alias": { "dev-master": "2.0.x-dev" } } } tests/RapidDirectGatewayTest.php 0000604 00000002614 15173423473 0013003 0 ustar 00 <?php namespace Omnipay\Eway; use Omnipay\Tests\GatewayTestCase; class RapidDirectGatewayTest extends GatewayTestCase { public function setUp() { parent::setUp(); $this->gateway = new RapidDirectGateway($this->getHttpClient(), $this->getHttpRequest()); } public function testPurchase() { $request = $this->gateway->purchase(array('amount' => '10.00')); $this->assertInstanceOf('Omnipay\Eway\Message\RapidDirectPurchaseRequest', $request); $this->assertSame('10.00', $request->getAmount()); } public function testAuthorise() { $request = $this->gateway->authorize(array('amount' => '10.00')); $this->assertInstanceOf('Omnipay\Eway\Message\RapidDirectAuthorizeRequest', $request); $this->assertSame('10.00', $request->getAmount()); } public function testCapture() { $request = $this->gateway->capture(array('amount' => '10.00', 'transactionId' => '87654321')); $this->assertInstanceOf('Omnipay\Eway\Message\RapidCaptureRequest', $request); $this->assertSame('10.00', $request->getAmount()); } public function testCreateCard() { $request = $this->gateway->createCard(array('amount' => '10.00')); $this->assertInstanceOf('Omnipay\Eway\Message\RapidDirectCreateCardRequest', $request); $this->assertSame('10.00', $request->getAmount()); } } tests/RapidGatewayTest.php 0000604 00000001505 15173423473 0011646 0 ustar 00 <?php namespace Omnipay\Eway; use Omnipay\Tests\GatewayTestCase; class RapidGatewayTest extends GatewayTestCase { public function setUp() { parent::setUp(); $this->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()); } } tests/Mock/DirectAuthorizeSuccess.txt 0000604 00000001212 15173423473 0013777 0 ustar 00 HTTP/1.1 200 OK Cache-Control: private Content-Length: 324 Content-Type: text/xml Server: Microsoft-IIS/7.5 X-Powered-By: ASP.NET Date: Thu, 21 Nov 2013 07:39:18 GMT Connection: keep-alive Set-Cookie: ASPSESSIONIDCWTCADRB=FBDJPIICLAMAOPABHKLFGNIP; secure; path=/, BIGipServerVirtServerPool-001-SSL=855837450.47873.0000; path=/ <ewayResponse><ewayTrxnStatus>True</ewayTrxnStatus><ewayTrxnNumber>10451615</ewayTrxnNumber><ewayTrxnReference/><ewayTrxnOption1/><ewayTrxnOption2/><ewayTrxnOption3/><ewayAuthCode>198238</ewayAuthCode><ewayReturnAmount>1000</ewayReturnAmount><ewayTrxnError>00, Transaction Approved (Sandbox)</ewayTrxnError></ewayResponse>