From 49ca96cc6fadc710f66b9a13f234e0736c433d63 Mon Sep 17 00:00:00 2001 From: Andy Perdomo Date: Wed, 6 May 2015 15:01:45 -0700 Subject: [PATCH] Initial commit. --- .gitignore | 4 +++ .travis.yml | 13 ++++++++++ LICENSE | 20 +++++++++++++++ README.md | 46 +++++++++++++++++++++++++++++++++++ composer.json | 37 ++++++++++++++++++++++++++++ phpunit.xml.dist | 25 +++++++++++++++++++ src/ConvergeGateway.php | 25 +++++++++++++++++++ tests/ConvergeGatewayTest.php | 23 ++++++++++++++++++ tests/bootstrap.php | 7 ++++++ 9 files changed, 200 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 LICENSE create mode 100644 README.md create mode 100644 composer.json create mode 100644 phpunit.xml.dist create mode 100644 src/ConvergeGateway.php create mode 100644 tests/ConvergeGatewayTest.php create mode 100644 tests/bootstrap.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8a282a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/vendor +composer.lock +composer.phar +phpunit.xml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..67753ce --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +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 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2388ea6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2015 LemonStand eCommerce Inc. + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..c378f2e --- /dev/null +++ b/README.md @@ -0,0 +1,46 @@ +# Omnipay: Elavon + +**Elavon payment processing driver for the Omnipay PHP payment processing library** + +[![Build Status](https://travis-ci.org/lemonstand/omnipay-elavon.svg)](https://travis-ci.org/lemonstand/omnipay-elavon) [![Latest Stable Version](https://poser.pugx.org/lemonstand/omnipay-elavon/v/stable.svg)](https://packagist.org/packages/lemonstand/omnipay-elavon) [![Total Downloads](https://poser.pugx.org/lemonstand/omnipay-elavon/downloads)](https://packagist.org/packages/lemonstand/omnipay-elavon) [![Latest Unstable Version](https://poser.pugx.org/lemonstand/omnipay-elavon/v/unstable.svg)](https://packagist.org/packages/lemonstand/omnipay-elavon) + +[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment +processing library for PHP 5.3+. This package implements Elavon Payments support for Omnipay. Please see the full [Converge documentation](https://www.myvirtualmerchant.com/VirtualMerchant/download/developerGuide.pdf) for more information. + +## Installation + +Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it +to your `composer.json` file: + +```json +{ + "require": { + "lemonstand/omnipay-elavon": "dev-master" + } +} +``` + +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: + +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/lemonstand/omnipay-elavon/issues), +or better yet, fork the library and submit a pull request. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..7002fb6 --- /dev/null +++ b/composer.json @@ -0,0 +1,37 @@ +{ + "name": "lemonstand/omnipay-elavon", + "type": "library", + "description": "Elavon payments driver for the Omnipay payment processing library", + "keywords": [ + "elavon", + "converge", + "gateway", + "merchant", + "omnipay", + "pay", + "payment", + "payments" + ], + "homepage": "https://github.com/lemonstand/omnipay-elavon", + "license": "MIT", + "authors": [ + { + "name": "LemonStand", + "email": "andy@lemonstand.com" + } + ], + "autoload": { + "psr-4": { "Omnipay\\Elavon\\" : "src/" } + }, + "require": { + "omnipay/common": "~2.0" + }, + "require-dev": { + "omnipay/tests": "~2.0" + }, + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + } +} \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..a35b736 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,25 @@ + + + + + ./tests/ + + + + + + + + ./src + + + diff --git a/src/ConvergeGateway.php b/src/ConvergeGateway.php new file mode 100644 index 0000000..9809ce4 --- /dev/null +++ b/src/ConvergeGateway.php @@ -0,0 +1,25 @@ + '', + 'username' => '', + 'password' => '', + ); + } +} diff --git a/tests/ConvergeGatewayTest.php b/tests/ConvergeGatewayTest.php new file mode 100644 index 0000000..1e3e0a8 --- /dev/null +++ b/tests/ConvergeGatewayTest.php @@ -0,0 +1,23 @@ +gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); + } + + public function testAuthorize() + { + $this->assertTrue(true); + } + + public function testPurchase() + { + $this->assertTrue(true); + } +} diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000..1780e6f --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,7 @@ +add('Omnipay', __DIR__); \ No newline at end of file