-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 49ca96c
Showing
9 changed files
with
200 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/vendor | ||
composer.lock | ||
composer.phar | ||
phpunit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": "[email protected]" | ||
} | ||
], | ||
"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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php namespace Omnipay\Elavon; | ||
|
||
use Omnipay\Common\AbstractGateway; | ||
|
||
/** | ||
* Elavon's Converge Gateway | ||
* | ||
* @link https://www.myvirtualmerchant.com/VirtualMerchant/ | ||
*/ | ||
class ConvergeGateway extends AbstractGateway | ||
{ | ||
public function getName() | ||
{ | ||
return 'Converge'; | ||
} | ||
|
||
public function getDefaultParameters() | ||
{ | ||
return array( | ||
'merchantId' => '', | ||
'username' => '', | ||
'password' => '', | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php namespace Omnipay\Elavon; | ||
|
||
use Omnipay\Tests\GatewayTestCase; | ||
|
||
class ConvergeGatewayTest extends GatewayTestCase | ||
{ | ||
public function setUp() | ||
{ | ||
parent::setUp(); | ||
|
||
$this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); | ||
} | ||
|
||
public function testAuthorize() | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function testPurchase() | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
error_reporting(E_ALL | E_STRICT); | ||
// include the composer autoloader | ||
$autoloader = require __DIR__.'/../vendor/autoload.php'; | ||
// autoload abstract TestCase classes in test directory | ||
$autoloader->add('Omnipay', __DIR__); |