File manager - Edit - /home/opticamezl/www/newok/manual.zip
Back
PK \��\�W� � .travis.ymlnu &1i� 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 PK \��\�� 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 \��\[��ˤ � tests/GatewayTest.phpnu &1i� <?php namespace Omnipay\Manual; use Omnipay\Tests\GatewayTestCase; class GatewayTest extends GatewayTestCase { public function setUp() { parent::setUp(); $this->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->capture($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()); } } PK \��\Դ�� � src/Gateway.phpnu &1i� <?php namespace Omnipay\Manual; use Omnipay\Common\AbstractGateway; /** * Manual Gateway * * This gateway is useful for processing check or direct debit payments. It simply * authorizes every payment. */ class Gateway extends AbstractGateway { public function getName() { return 'Manual'; } public function getDefaultParameters() { return array(); } public function authorize(array $parameters = array()) { return $this->createRequest('\Omnipay\Manual\Message\Request', $parameters); } public function capture(array $parameters = array()) { return $this->createRequest('\Omnipay\Manual\Message\Request', $parameters); } } PK \��\07+ � � src/Message/Response.phpnu &1i� <?php namespace Omnipay\Manual\Message; use Omnipay\Common\Message\AbstractResponse; /** * Manual Response */ class Response extends AbstractResponse { public function isSuccessful() { return true; } } PK \��\t%��~ ~ src/Message/Request.phpnu &1i� <?php namespace Omnipay\Manual\Message; use Omnipay\Common\Message\AbstractRequest; /** * Manual Request */ class Request extends AbstractRequest { public function getData() { $this->validate('amount'); return $this->getParameters(); } public function sendData($data) { return $this->response = new Response($this, $data); } } PK \��\$��' ' 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 \��\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 \��\��H^� � composer.jsonnu &1i� { "name": "omnipay/manual", "type": "library", "description": "Manual driver for the Omnipay payment processing library", "keywords": [ "gateway", "manual", "merchant", "omnipay", "pay", "payment" ], "homepage": "https://github.com/thephpleague/omnipay-manual", "license": "MIT", "authors": [ { "name": "Adrian Macneil", "email": "adrian@adrianmacneil.com" }, { "name": "Omnipay Contributors", "homepage": "https://github.com/thephpleague/omnipay-manual/contributors" } ], "autoload": { "psr-4": { "Omnipay\\Manual\\" : "src/" } }, "require": { "omnipay/common": "~2.0" }, "require-dev": { "omnipay/tests": "~2.0" }, "extra": { "branch-alias": { "dev-master": "2.0.x-dev" } } } PK \��\f���C C README.mdnu &1i� # Omnipay: Manual **Manual driver for the Omnipay PHP payment processing library** [](https://travis-ci.org/thephpleague/omnipay-manual) [](https://packagist.org/packages/omnipay/manual) [](https://packagist.org/packages/omnipay/manual) [Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Manual 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/manual": "~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: * Manual 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 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/thephpleague/omnipay-manual/issues), or better yet, fork the library and submit a pull request. PK \��\'��0 0 .gitignorenu &1i� /vendor composer.lock composer.phar phpunit.xml PK \��\�W� � .travis.ymlnu &1i� PK \��\�� CONTRIBUTING.mdnu &1i� PK \��\[��ˤ � i tests/GatewayTest.phpnu &1i� PK \��\Դ�� � R src/Gateway.phpnu &1i� PK \��\07+ � � Z src/Message/Response.phpnu &1i� PK \��\t%��~ ~ � src/Message/Request.phpnu &1i� PK \��\$��' ' J LICENSEnu &1i� PK \��\mV�{J J � phpunit.xml.distnu &1i� PK \��\��H^� � 2 composer.jsonnu &1i� PK \��\f���C C README.mdnu &1i� PK \��\'��0 0 �! .gitignorenu &1i� PK d �!
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings