File manager - Edit - /home/opticamezl/www/newok/coinbase.zip
Back
PK 4��\�� 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 4��\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 4��\�̞" " LICENSEnu &1i� Copyright (c) 2014 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 4��\ ��� � composer.jsonnu &1i� { "name": "omnipay/coinbase", "type": "library", "description": "Coinbase driver for the Omnipay payment processing library", "keywords": [ "coinbase", "gateway", "merchant", "omnipay", "pay", "payment" ], "homepage": "https://github.com/thephpleague/omnipay-coinbase", "license": "MIT", "authors": [ { "name": "Adrian Macneil", "email": "adrian@adrianmacneil.com" }, { "name": "Omnipay Contributors", "homepage": "https://github.com/thephpleague/omnipay-coinbase/contributors" } ], "autoload": { "psr-4": { "Omnipay\\Coinbase\\" : "src/" } }, "require": { "omnipay/common": "~2.0" }, "require-dev": { "omnipay/tests": "~2.0" }, "extra": { "branch-alias": { "dev-master": "2.0.x-dev" } } } PK 4��\'��0 0 .gitignorenu &1i� /vendor composer.lock composer.phar phpunit.xml PK 4��\�I(�[ [ README.mdnu &1i� # Omnipay: Coinbase **Coinbase driver for the Omnipay PHP payment processing library** [](https://travis-ci.org/thephpleague/omnipay-coinbase) [](https://packagist.org/packages/omnipay/coinbase) [](https://packagist.org/packages/omnipay/coinbase) [Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Coinbase 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/coinbase": "~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: * Coinbase 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-coinbase/issues), or better yet, fork the library and submit a pull request. PK 4��\��Y� � tests/GatewayTest.phpnu &1i� <?php namespace Omnipay\Coinbase; use Omnipay\Tests\GatewayTestCase; class GatewayTest extends GatewayTestCase { public function setUp() { parent::setUp(); $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); } public function testPurchase() { $request = $this->gateway->purchase(array('amount' => '10.00')); $this->assertInstanceOf('Omnipay\Coinbase\Message\PurchaseRequest', $request); $this->assertSame('10.00', $request->getAmount()); } public function testCompletePurchase() { $request = $this->gateway->completePurchase(array('amount' => '10.00')); $this->assertInstanceOf('Omnipay\Coinbase\Message\CompletePurchaseRequest', $request); $this->assertSame('10.00', $request->getAmount()); } public function testFetchTransaction() { $request = $this->gateway->fetchTransaction(array('transactionReference' => 'abc123')); $this->assertInstanceOf('Omnipay\Coinbase\Message\FetchTransactionRequest', $request); $this->assertSame('abc123', $request->getTransactionReference()); } } PK 4��\Z\� � tests/Mock/PurchaseSuccess.txtnu &1i� HTTP/1.1 200 OK Server: cloudflare-nginx Date: Sun, 11 May 2014 21:17:31 GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Set-Cookie: __cfduid=d2616ea01666569cafccf501cbea6d2be1399843050822; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.coinbase.com; HttpOnly, request_method=POST; path=/; secure Cache-Control: no-cache, no-store, max-age=0, must-revalidate Etag: "4b486ed3e49c8c0990deed71af7d2c5d" Expires: -1 Pragma: no-cache Status: 200 OK Strict-Transport-Security: max-age=31536000 Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Rack-Cache: invalidate, pass X-Request-Id: 1bfac74c-04d6-4c52-9f4a-d543cdd3875c X-Runtime: 0.109415 X-Ua-Compatible: IE=Edge,chrome=1 CF-RAY: 1291675ba0b00669-SJC {"success":true,"button":{"code":"30dae91b81299066ba126e3858f89fd8","type":"buy_now","style":"buy_now_large","text":"Pay With Bitcoin","name":"Socks","description":"","custom":"","callback_url":null,"success_url":null,"cancel_url":null,"info_url":null,"auto_redirect":false,"price":{"cents":1000,"currency_iso":"USD"},"variable_price":false,"choose_price":false,"include_address":false,"include_email":false}} PK 4��\W#יH H &