File manager - Edit - /home/opticamezl/www/newok/worldpay.zip
Back
PK 5�\�� CONTRIBUTING.mdnu &1i� # 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. PK 5�\$��' ' LICENSEnu &1i� Copyright (c) 2012-2013 Adrian Macneil Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. PK 5�\��� � composer.jsonnu &1i� { "name": "omnipay/worldpay", "type": "library", "description": "WorldPay driver for the Omnipay payment processing library", "keywords": [ "gateway", "merchant", "omnipay", "pay", "payment", "worldpay" ], "homepage": "https://github.com/thephpleague/omnipay-worldpay", "license": "MIT", "authors": [ { "name": "Adrian Macneil", "email": "adrian@adrianmacneil.com" }, { "name": "Omnipay Contributors", "homepage": "https://github.com/thephpleague/omnipay-worldpay/contributors" } ], "autoload": { "psr-4": { "Omnipay\\WorldPay\\" : "src/" } }, "require": { "omnipay/common": "~2.0" }, "require-dev": { "omnipay/tests": "~2.0" }, "extra": { "branch-alias": { "dev-master": "2.0.x-dev" } } } PK 5�\'��0 0 .gitignorenu &1i� /vendor composer.lock composer.phar phpunit.xml PK 5�\mV�{J J phpunit.xml.distnu &1i� <?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> PK 5�\�R|( ( . tests/Message/CompletePurchaseResponseTest.phpnu &1i� <?php namespace Omnipay\WorldPay\Message; use Omnipay\Tests\TestCase; class CompletePurchaseResponseTest extends TestCase { public function testCompletePurchaseSuccess() { $response = new CompletePurchaseresponse( $this->getMockRequest(), array( 'transStatus' => 'Y', 'transId' => 'abc123', 'rawAuthMessage' => 'Success Message' ) ); $this->assertTrue($response->isSuccessful()); $this->assertFalse($response->isCancelled()); $this->assertFalse($response->isRedirect()); $this->assertSame('abc123', $response->getTransactionReference()); $this->assertSame('Success Message', $response->getMessage()); } public function testCompletePurchaseCancel() { $response = new CompletePurchaseresponse( $this->getMockRequest(), array( 'transStatus' => 'C', 'transId' => null, 'rawAuthMessage' => 'Declined' ) ); $this->assertFalse($response->isSuccessful()); $this->assertTrue($response->isCancelled()); $this->assertFalse($response->isRedirect()); $this->assertNull($response->getTransactionReference()); $this->assertSame('Declined', $response->getMessage()); } public function testCompletePurchaseFailure() { $response = new CompletePurchaseresponse( $this->getMockRequest(), array( 'transStatus' => 'N', 'transId' => null, 'rawAuthMessage' => 'Declined' ) ); $this->assertFalse($response->isSuccessful()); $this->assertFalse($response->isCancelled()); $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()); } } PK 5�\��}� � &