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 b6bfd8c
Showing
7 changed files
with
147 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,2 @@ | ||
.idea/* | ||
vendor/* |
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,10 @@ | ||
# 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. |
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 Kayla Daniels | ||
|
||
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,42 @@ | ||
# Omnipay: Braintree | ||
|
||
**Braintree driver for the Omnipay PHP payment processing library** | ||
|
||
[![Build Status](https://travis-ci.org/thephpleague/omnipay-braintreee.png?branch=master)](https://travis-ci.org/thephpleague/omnipay-braintreee) | ||
[![Latest Stable Version](https://poser.pugx.org/omnipay/braintreee/version.png)](https://packagist.org/packages/omnipay/braintreee) | ||
[![Total Downloads](https://poser.pugx.org/omnipay/braintreee/d/total.png)](https://packagist.org/packages/omnipay/braintreee) | ||
|
||
[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment | ||
processing library for PHP 5.3+. This package implements Braintree support for Omnipay. | ||
|
||
## Installation | ||
|
||
Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it | ||
to your `composer.json` file: | ||
|
||
``` | ||
composer require omnipay/braintree | ||
``` | ||
|
||
## Basic Usage | ||
|
||
The following gateways are provided by this package: | ||
|
||
* Braintree | ||
|
||
|
||
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-braintreee/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,35 @@ | ||
{ | ||
"name": "omnipay/braintree", | ||
"type": "library", | ||
"description": "Braintree gateway for Omnipay payment processing library", | ||
"keywords": [ | ||
"gateway", | ||
"merchant", | ||
"omnipay", | ||
"pay", | ||
"payment", | ||
"braintree", | ||
"purchase" | ||
], | ||
"homepage": "https://github.com/thephpleague/omnipay-braintree", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Kayla Daniels", | ||
"email": "kayladnls@gmail.com" | ||
}, | ||
{ | ||
"name": "Omnipay Contributors", | ||
"homepage": "https://github.com/thephpleague/omnipay-braintree/contributors" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { "Omnipay\\Braintree\\" : "src/" } | ||
}, | ||
"require": { | ||
"omnipay/common": "~2.0" | ||
}, | ||
"require-dev": { | ||
"omnipay/tests": "~2.0" | ||
} | ||
} |
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> |