From a6e61a4a52b2fc566163a1a91e1ed2a57b05c171 Mon Sep 17 00:00:00 2001 From: Remco Tolsma Date: Mon, 1 Feb 2016 11:37:36 +0100 Subject: [PATCH] Getting ready for version 1.2.1. --- CHANGELOG.md | 7 +- composer.json | 4 +- composer.lock | 512 ++++++++++++++++++++++----------- package.json | 6 +- phpcs.ruleset.xml | 1 + src/Client.php | 3 +- src/Config.php | 3 +- src/ConfigFactory.php | 3 +- src/Gateway.php | 3 +- src/Integration.php | 4 +- src/Listener.php | 3 +- src/Parameters.php | 3 +- src/PaymentMethods.php | 3 +- src/Security.php | 3 +- src/Settings.php | 5 +- src/Statuses.php | 14 +- src/Util.php | 3 +- tests/SignatureSortingTest.php | 3 +- tests/SignatureTest.php | 3 +- tests/StatusesTest.php | 7 +- 20 files changed, 398 insertions(+), 195 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bca200f..280c7a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file. This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a CHANGELOG](http://keepachangelog.com/). ## [Unreleased][unreleased] +- + +## [1.2.1] - 2016-02-01 - Added an gateway settings class. ## [1.2.0] - 2015-11-02 @@ -24,7 +27,9 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C ## [1.0.0] - 2015-01-19 - First release. -[unreleased]: https://github.com/wp-pay-gateways/buckaroo/compare/1.1.2...HEAD +[unreleased]: https://github.com/wp-pay-gateways/buckaroo/compare/1.2.1...HEAD +[1.2.1]: https://github.com/wp-pay-gateways/buckaroo/compare/1.2.0...1.2.1 +[1.2.0]: https://github.com/wp-pay-gateways/buckaroo/compare/1.1.2...1.2.0 [1.1.2]: https://github.com/wp-pay-gateways/buckaroo/compare/1.1.1...1.1.2 [1.1.1]: https://github.com/wp-pay-gateways/buckaroo/compare/1.1.0...1.1.1 [1.1.0]: https://github.com/wp-pay-gateways/buckaroo/compare/1.0.0...1.1.0 diff --git a/composer.json b/composer.json index 9c8253a..2341c87 100644 --- a/composer.json +++ b/composer.json @@ -28,8 +28,8 @@ }, "require": { "php": ">=5.2.4", - "wp-pay/core": "dev-develop", - "wp-pay-gateways/common": "dev-develop" + "wp-pay/core": "^1.3.1", + "wp-pay-gateways/common": "^1.0.0" }, "require-dev": { "satooshi/php-coveralls": "dev-master" diff --git a/composer.lock b/composer.lock index a7df09c..da7a240 100644 --- a/composer.lock +++ b/composer.lock @@ -4,29 +4,34 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "b20ce0ad5ae8a72eecd11b9981047963", - "content-hash": "cf54ff94878dbb5957f3430ab7ee3975", + "hash": "865885bf6644fcffde09ff2970637500", + "content-hash": "bc3cf8c735093d3166903c5abefeb816", "packages": [ { "name": "wp-pay-gateways/common", - "version": "dev-develop", + "version": "1.0.0", "source": { "type": "git", "url": "https://github.com/wp-pay-gateways/common.git", - "reference": "66a36014eaa96b657fd3ac3ade7f6c68c1b3c695" + "reference": "4020ab38efaea0a8366458fd8c4835c53c624cb5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-pay-gateways/common/zipball/66a36014eaa96b657fd3ac3ade7f6c68c1b3c695", - "reference": "66a36014eaa96b657fd3ac3ade7f6c68c1b3c695", + "url": "https://api.github.com/repos/wp-pay-gateways/common/zipball/4020ab38efaea0a8366458fd8c4835c53c624cb5", + "reference": "4020ab38efaea0a8366458fd8c4835c53c624cb5", "shasum": "" }, "require": { "php": ">=5.2.4", - "wp-pay/core": "dev-develop" + "wp-pay/core": ">=1.3.0", + "xrstf/composer-php52": "1.*" }, "require-dev": { - "satooshi/php-coveralls": "dev-master" + "phpmd/phpmd": "^2.2.3", + "satooshi/php-coveralls": "^0.7.1", + "squizlabs/php_codesniffer": "^2.2.0", + "wp-cli/wp-cli": "^0.21.1", + "wp-coding-standards/wpcs": "0.8.0" }, "type": "library", "autoload": { @@ -62,24 +67,32 @@ "wordpress", "wp" ], - "time": "2015-11-19 07:11:15" + "time": "2016-01-29 14:12:41" }, { "name": "wp-pay/core", - "version": "dev-develop", + "version": "1.3.1", "source": { "type": "git", "url": "https://github.com/wp-pay/core.git", - "reference": "2359885cebc9329e46a6defac841117deda76fa6" + "reference": "ef03f9f16d54546915ef697e1bd91b7392d8c5df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-pay/core/zipball/2359885cebc9329e46a6defac841117deda76fa6", - "reference": "2359885cebc9329e46a6defac841117deda76fa6", + "url": "https://api.github.com/repos/wp-pay/core/zipball/ef03f9f16d54546915ef697e1bd91b7392d8c5df", + "reference": "ef03f9f16d54546915ef697e1bd91b7392d8c5df", "shasum": "" }, "require": { - "php": ">=5.2.4" + "php": ">=5.2.4", + "xrstf/composer-php52": "1.*" + }, + "require-dev": { + "phpmd/phpmd": "^2.2.3", + "satooshi/php-coveralls": "^0.7.1", + "squizlabs/php_codesniffer": "^2.2.0", + "wp-cli/wp-cli": "^0.21.1", + "wp-coding-standards/wpcs": "0.8.0" }, "type": "library", "autoload": { @@ -115,75 +128,78 @@ "wordpress", "wp" ], - "time": "2015-11-12 13:02:52" + "time": "2016-01-22 15:28:45" + }, + { + "name": "xrstf/composer-php52", + "version": "v1.0.19", + "source": { + "type": "hg", + "url": "https://bitbucket.org/xrstf/composer-php52", + "reference": "9a4a9c46d0347b39bf9159815301dc66fc25324e" + }, + "dist": { + "type": "zip", + "url": "https://bitbucket.org/xrstf/composer-php52/get/9a4a9c46d0347b39bf9159815301dc66fc25324e.zip", + "reference": "9a4a9c46d0347b39bf9159815301dc66fc25324e", + "shasum": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-default": "1.x-dev" + } + }, + "autoload": { + "psr-0": { + "xrstf\\Composer52": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "homepage": "http://www.xrstf.de/", + "time": "2015-10-01 14:11:58" } ], "packages-dev": [ { - "name": "guzzle/guzzle", - "version": "v3.9.3", + "name": "guzzlehttp/guzzle", + "version": "6.1.1", "source": { "type": "git", - "url": "https://github.com/guzzle/guzzle3.git", - "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9" + "url": "https://github.com/guzzle/guzzle.git", + "reference": "c6851d6e48f63b69357cbfa55bca116448140e0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/0645b70d953bc1c067bbc8d5bc53194706b628d9", - "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/c6851d6e48f63b69357cbfa55bca116448140e0c", + "reference": "c6851d6e48f63b69357cbfa55bca116448140e0c", "shasum": "" }, "require": { - "ext-curl": "*", - "php": ">=5.3.3", - "symfony/event-dispatcher": "~2.1" - }, - "replace": { - "guzzle/batch": "self.version", - "guzzle/cache": "self.version", - "guzzle/common": "self.version", - "guzzle/http": "self.version", - "guzzle/inflection": "self.version", - "guzzle/iterator": "self.version", - "guzzle/log": "self.version", - "guzzle/parser": "self.version", - "guzzle/plugin": "self.version", - "guzzle/plugin-async": "self.version", - "guzzle/plugin-backoff": "self.version", - "guzzle/plugin-cache": "self.version", - "guzzle/plugin-cookie": "self.version", - "guzzle/plugin-curlauth": "self.version", - "guzzle/plugin-error-response": "self.version", - "guzzle/plugin-history": "self.version", - "guzzle/plugin-log": "self.version", - "guzzle/plugin-md5": "self.version", - "guzzle/plugin-mock": "self.version", - "guzzle/plugin-oauth": "self.version", - "guzzle/service": "self.version", - "guzzle/stream": "self.version" + "guzzlehttp/promises": "~1.0", + "guzzlehttp/psr7": "~1.1", + "php": ">=5.5.0" }, "require-dev": { - "doctrine/cache": "~1.3", - "monolog/monolog": "~1.0", - "phpunit/phpunit": "3.7.*", - "psr/log": "~1.0", - "symfony/class-loader": "~2.1", - "zendframework/zend-cache": "2.*,<2.3", - "zendframework/zend-log": "2.*,<2.3" - }, - "suggest": { - "guzzlehttp/guzzle": "Guzzle 5 has moved to a new package name. The package you have installed, Guzzle 3, is deprecated." + "ext-curl": "*", + "phpunit/phpunit": "~4.0", + "psr/log": "~1.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.9-dev" + "dev-master": "6.1-dev" } }, "autoload": { - "psr-0": { - "Guzzle": "src/", - "Guzzle\\Tests": "tests/" + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -195,13 +211,9 @@ "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" - }, - { - "name": "Guzzle Community", - "homepage": "https://github.com/guzzle/guzzle/contributors" } ], - "description": "PHP HTTP client. This library is deprecated in favor of https://packagist.org/packages/guzzlehttp/guzzle", + "description": "Guzzle is a PHP HTTP client library", "homepage": "http://guzzlephp.org/", "keywords": [ "client", @@ -212,7 +224,165 @@ "rest", "web service" ], - "time": "2015-03-18 18:23:50" + "time": "2015-11-23 00:47:50" + }, + { + "name": "guzzlehttp/promises", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "b1e1c0d55f8083c71eda2c28c12a228d708294ea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/b1e1c0d55f8083c71eda2c28c12a228d708294ea", + "reference": "b1e1c0d55f8083c71eda2c28c12a228d708294ea", + "shasum": "" + }, + "require": { + "php": ">=5.5.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "time": "2015-10-15 22:28:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "1.2.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "f5d04bdd2881ac89abde1fb78cc234bce24327bb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5d04bdd2881ac89abde1fb78cc234bce24327bb", + "reference": "f5d04bdd2881ac89abde1fb78cc234bce24327bb", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "psr/http-message": "~1.0" + }, + "provide": { + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "PSR-7 message implementation", + "keywords": [ + "http", + "message", + "stream", + "uri" + ], + "time": "2016-01-23 01:23:02" + }, + { + "name": "psr/http-message", + "version": "1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "85d63699f0dbedb190bbd4b0d2b9dc707ea4c298" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/85d63699f0dbedb190bbd4b0d2b9dc707ea4c298", + "reference": "85d63699f0dbedb190bbd4b0d2b9dc707ea4c298", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "time": "2015-05-04 20:22:00" }, { "name": "psr/log", @@ -258,52 +428,40 @@ "source": { "type": "git", "url": "https://github.com/satooshi/php-coveralls.git", - "reference": "2fbf803803d179ab1082807308a67bbd5a760c70" + "reference": "50c60bb64054974f8ed7540ae6e75fd7981a5fd3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/satooshi/php-coveralls/zipball/2fbf803803d179ab1082807308a67bbd5a760c70", - "reference": "2fbf803803d179ab1082807308a67bbd5a760c70", + "url": "https://api.github.com/repos/satooshi/php-coveralls/zipball/50c60bb64054974f8ed7540ae6e75fd7981a5fd3", + "reference": "50c60bb64054974f8ed7540ae6e75fd7981a5fd3", "shasum": "" }, "require": { "ext-json": "*", "ext-simplexml": "*", - "guzzle/guzzle": ">=2.7", - "php": ">=5.3", - "psr/log": "1.0.0", - "symfony/config": ">=2.0", - "symfony/console": ">=2.0", - "symfony/stopwatch": ">=2.2", - "symfony/yaml": ">=2.0" - }, - "require-dev": { - "apigen/apigen": "2.8.*@stable", - "pdepend/pdepend": "dev-master as 2.0.0", - "phpmd/phpmd": "dev-master", - "phpunit/php-invoker": ">=1.1.0,<1.2.0", - "phpunit/phpunit": "3.7.*@stable", - "sebastian/finder-facade": "dev-master", - "sebastian/phpcpd": "1.4.*@stable", - "squizlabs/php_codesniffer": "1.4.*@stable", - "theseer/fdomdocument": "dev-master" + "guzzlehttp/guzzle": "^6.0", + "php": ">=5.5", + "psr/log": "^1.0", + "symfony/config": "^2.1|^3.0", + "symfony/console": "^2.1|^3.0", + "symfony/stopwatch": "^2.0|^3.0", + "symfony/yaml": "^2.0|^3.0" }, "suggest": { "symfony/http-kernel": "Allows Symfony integration" }, "bin": [ - "composer/bin/coveralls" + "bin/coveralls" ], "type": "library", "extra": { "branch-alias": { - "dev-master": "0.7-dev" + "dev-master": "2.0-dev" } }, "autoload": { - "psr-0": { - "Satooshi\\Component": "src/", - "Satooshi\\Bundle": "src/" + "psr-4": { + "Satooshi\\": "src/Satooshi/" } }, "notification-url": "https://packagist.org/downloads/", @@ -325,36 +483,39 @@ "github", "test" ], - "time": "2014-11-11 15:35:34" + "time": "2016-01-20 17:44:41" }, { "name": "symfony/config", - "version": "v2.7.6", + "version": "v3.0.1", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "831f88908b51b9ce945f5e6f402931d1ac544423" + "reference": "58680a6516a457a6c65044fe33586c4a81fdff01" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/831f88908b51b9ce945f5e6f402931d1ac544423", - "reference": "831f88908b51b9ce945f5e6f402931d1ac544423", + "url": "https://api.github.com/repos/symfony/config/zipball/58680a6516a457a6c65044fe33586c4a81fdff01", + "reference": "58680a6516a457a6c65044fe33586c4a81fdff01", "shasum": "" }, "require": { - "php": ">=5.3.9", - "symfony/filesystem": "~2.3" + "php": ">=5.5.9", + "symfony/filesystem": "~2.8|~3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.0-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Config\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -372,29 +533,30 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2015-10-11 09:39:48" + "time": "2015-12-26 13:39:53" }, { "name": "symfony/console", - "version": "v2.7.6", + "version": "v3.0.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "5efd632294c8320ea52492db22292ff853a43766" + "reference": "ebcdc507829df915f4ca23067bd59ee4ef61f6c3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/5efd632294c8320ea52492db22292ff853a43766", - "reference": "5efd632294c8320ea52492db22292ff853a43766", + "url": "https://api.github.com/repos/symfony/console/zipball/ebcdc507829df915f4ca23067bd59ee4ef61f6c3", + "reference": "ebcdc507829df915f4ca23067bd59ee4ef61f6c3", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9", + "symfony/polyfill-mbstring": "~1.0" }, "require-dev": { "psr/log": "~1.0", - "symfony/event-dispatcher": "~2.1", - "symfony/process": "~2.1" + "symfony/event-dispatcher": "~2.8|~3.0", + "symfony/process": "~2.8|~3.0" }, "suggest": { "psr/log": "For using the console logger", @@ -404,13 +566,16 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.0-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Console\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -428,46 +593,38 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2015-10-20 14:38:46" + "time": "2015-12-22 10:39:06" }, { - "name": "symfony/event-dispatcher", - "version": "v2.7.6", + "name": "symfony/filesystem", + "version": "v3.0.1", "source": { "type": "git", - "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "87a5db5ea887763fa3a31a5471b512ff1596d9b8" + "url": "https://github.com/symfony/filesystem.git", + "reference": "c2e59d11dccd135dc8f00ee97f34fe1de842e70c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/87a5db5ea887763fa3a31a5471b512ff1596d9b8", - "reference": "87a5db5ea887763fa3a31a5471b512ff1596d9b8", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/c2e59d11dccd135dc8f00ee97f34fe1de842e70c", + "reference": "c2e59d11dccd135dc8f00ee97f34fe1de842e70c", "shasum": "" }, "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/config": "~2.0,>=2.0.5", - "symfony/dependency-injection": "~2.6", - "symfony/expression-language": "~2.6", - "symfony/stopwatch": "~2.3" - }, - "suggest": { - "symfony/dependency-injection": "", - "symfony/http-kernel": "" + "php": ">=5.5.9" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.0-dev" } }, "autoload": { "psr-4": { - "Symfony\\Component\\EventDispatcher\\": "" - } + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -483,37 +640,43 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony EventDispatcher Component", + "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2015-10-11 09:39:48" + "time": "2015-12-22 10:39:06" }, { - "name": "symfony/filesystem", - "version": "v2.7.6", + "name": "symfony/polyfill-mbstring", + "version": "v1.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/filesystem.git", - "reference": "56fd6df73be859323ff97418d97edc1d756df6df" + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "1289d16209491b584839022f29257ad859b8532d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/56fd6df73be859323ff97418d97edc1d756df6df", - "reference": "56fd6df73be859323ff97418d97edc1d756df6df", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/1289d16209491b584839022f29257ad859b8532d", + "reference": "1289d16209491b584839022f29257ad859b8532d", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.3.3" + }, + "suggest": { + "ext-mbstring": "For best performance" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "1.1-dev" } }, "autoload": { "psr-4": { - "Symfony\\Component\\Filesystem\\": "" - } + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -521,45 +684,55 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Filesystem Component", + "description": "Symfony polyfill for the Mbstring extension", "homepage": "https://symfony.com", - "time": "2015-10-18 20:23:18" + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2016-01-20 09:13:37" }, { "name": "symfony/stopwatch", - "version": "v2.7.6", + "version": "v3.0.1", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "f8ab957c17e4b85a73c4df03bdf94ee597f2bd55" + "reference": "6aeac8907e3e1340a0033b0a9ec075f8e6524800" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f8ab957c17e4b85a73c4df03bdf94ee597f2bd55", - "reference": "f8ab957c17e4b85a73c4df03bdf94ee597f2bd55", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/6aeac8907e3e1340a0033b0a9ec075f8e6524800", + "reference": "6aeac8907e3e1340a0033b0a9ec075f8e6524800", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.0-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Stopwatch\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -577,35 +750,38 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2015-10-12 12:42:24" + "time": "2015-10-30 23:35:59" }, { "name": "symfony/yaml", - "version": "v2.7.6", + "version": "v3.0.1", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "eca9019c88fbe250164affd107bc8057771f3f4d" + "reference": "3df409958a646dad2bc5046c3fb671ee24a1a691" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/eca9019c88fbe250164affd107bc8057771f3f4d", - "reference": "eca9019c88fbe250164affd107bc8057771f3f4d", + "url": "https://api.github.com/repos/symfony/yaml/zipball/3df409958a646dad2bc5046c3fb671ee24a1a691", + "reference": "3df409958a646dad2bc5046c3fb671ee24a1a691", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.0-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Yaml\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -623,14 +799,12 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2015-10-11 09:39:48" + "time": "2015-12-26 13:39:53" } ], "aliases": [], "minimum-stability": "stable", "stability-flags": { - "wp-pay/core": 20, - "wp-pay-gateways/common": 20, "satooshi/php-coveralls": 20 }, "prefer-stable": false, diff --git a/package.json b/package.json index 1291d99..4241b11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "buckaroo", - "version": "1.2.0", + "version": "1.2.1", "description": "Buckaroo driver for the WordPress payment processing library.", "repository": { "type": "git", @@ -33,9 +33,9 @@ "homepage": "http://www.wp-pay.org/gateways/buckaroo/", "devDependencies": { "grunt": "~0.4.5", - "grunt-contrib-jshint": "^0.11.3", + "grunt-contrib-jshint": "^0.12.0", "grunt-phpcs": "^0.4.0", - "grunt-phplint": "0.0.5", + "grunt-phplint": "0.0.8", "grunt-phpmd": "^0.1.1", "load-grunt-tasks": "^3.3.0" } diff --git a/phpcs.ruleset.xml b/phpcs.ruleset.xml index 30ce74a..fdcc4a5 100644 --- a/phpcs.ruleset.xml +++ b/phpcs.ruleset.xml @@ -6,6 +6,7 @@ + diff --git a/src/Client.php b/src/Client.php index 60e9ac9..9e03c75 100644 --- a/src/Client.php +++ b/src/Client.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo client * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.0 * @since 1.0.0 diff --git a/src/Config.php b/src/Config.php index 8e81cf7..d113082 100644 --- a/src/Config.php +++ b/src/Config.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo config * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.0 * @since 1.0.0 diff --git a/src/ConfigFactory.php b/src/ConfigFactory.php index 45af2ef..1f27ac5 100644 --- a/src/ConfigFactory.php +++ b/src/ConfigFactory.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo config factory * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.0 * @since 1.0.0 diff --git a/src/Gateway.php b/src/Gateway.php index bba3e8c..1553ad6 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo gateway * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.0 * @since 1.0.0 diff --git a/src/Integration.php b/src/Integration.php index 655aa39..c288a62 100644 --- a/src/Integration.php +++ b/src/Integration.php @@ -11,8 +11,8 @@ public function __construct() { $function = array( 'Pronamic_WP_Pay_Gateways_Buckaroo_Listener', 'listen' ); if ( ! has_action( 'wp_loaded', $function ) ) { - add_action( 'wp_loaded', $function ); - } + add_action( 'wp_loaded', $function ); + } } public function get_config_factory_class() { diff --git a/src/Listener.php b/src/Listener.php index ae510ad..dc9e33d 100644 --- a/src/Listener.php +++ b/src/Listener.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo listener * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.0 * @since 1.0.0 diff --git a/src/Parameters.php b/src/Parameters.php index 233a44d..5ae1b53 100644 --- a/src/Parameters.php +++ b/src/Parameters.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo parameters constants * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.0 * @since 1.0.0 diff --git a/src/PaymentMethods.php b/src/PaymentMethods.php index 2260b20..852d0f4 100644 --- a/src/PaymentMethods.php +++ b/src/PaymentMethods.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo payment methods constants * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.0 * @since 1.0.0 diff --git a/src/Security.php b/src/Security.php index fbbcad1..ca93f28 100644 --- a/src/Security.php +++ b/src/Security.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo security class * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.0 * @since 1.0.0 diff --git a/src/Settings.php b/src/Settings.php index ad149a4..9477297 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo gateway settings * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.1 * @since 1.2.1 @@ -22,7 +23,6 @@ public function sections( array $sections ) { 'methods' => array( 'buckaroo' ), ); - // Return return $sections; } @@ -65,7 +65,6 @@ public function fields( array $fields ) { 'readonly' => true, ); - // Return return $fields; } } diff --git a/src/Statuses.php b/src/Statuses.php index 8221b63..77773bb 100644 --- a/src/Statuses.php +++ b/src/Statuses.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo statuses constants * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.0 * @since 1.0.0 @@ -12,66 +13,77 @@ class Pronamic_WP_Pay_Gateways_Buckaroo_Statuses { /** * Payment success + * * @var string */ const PAYMENT_SUCCESS = '190'; /** * Payment failure + * * @var string */ const PAYMENT_FAILURE = '490'; /** * Validation error + * * @var string */ const VALIDATION_FAILURE = '491'; /** * Technical error + * * @var string */ const TECHNICAL_ERROR = '492'; /** * Payment rejected + * * @var string */ const PAYMENT_REJECTED = '690'; /** * Waiting for user input + * * @var string */ const WAITING_FOR_USER_INPUT = '790'; /** * Waiting for processor + * * @var string */ const WAITING_FOR_PROCESSOR = '791'; /** * Waiting on consumer action (e.g.: initiate money transfer) + * * @var string */ const WAITING_ON_CONSUMER_ACTION = '792'; /** * Payment on hold (e.g. waiting for sufficient balance) + * * @var string */ const PAYMENT_ON_HOLD = '793'; /** * Cancelled by consumer + * * @var string */ const CANCELLED_BY_CONSUMER = '890'; /** * Cancelled by merchant + * * @var string */ const CANCELLED_BY_MERCHANT = '891'; diff --git a/src/Util.php b/src/Util.php index f43745f..b33259f 100644 --- a/src/Util.php +++ b/src/Util.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo utility class * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.2.0 * @since 1.0.0 diff --git a/tests/SignatureSortingTest.php b/tests/SignatureSortingTest.php index 770400e..f7e711c 100644 --- a/tests/SignatureSortingTest.php +++ b/tests/SignatureSortingTest.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo signature sorting test. * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @see http://pronamic.nl/wp-content/uploads/2013/04/BPE-3.0-Gateway-HTML.1.02.pdf * @author Remco Tolsma * @version 1.0.0 diff --git a/tests/SignatureTest.php b/tests/SignatureTest.php index f5eb6c1..acec0ac 100644 --- a/tests/SignatureTest.php +++ b/tests/SignatureTest.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo signature test. * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @see http://pronamic.nl/wp-content/uploads/2013/04/BPE-3.0-Gateway-HTML.1.02.pdf * @author Remco Tolsma * @version 1.0.0 diff --git a/tests/StatusesTest.php b/tests/StatusesTest.php index e47ef30..8fcfec6 100644 --- a/tests/StatusesTest.php +++ b/tests/StatusesTest.php @@ -3,8 +3,9 @@ /** * Title: Buckaroo statuses constants tests * Description: - * Copyright: Copyright (c) 2005 - 2015 + * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic + * * @author Remco Tolsma * @version 1.0.0 * @see https://www.mollie.nl/support/documentatie/betaaldiensten/ideal/en/ @@ -15,8 +16,8 @@ class Pronamic_WP_Pay_Gateways_Buckaroo_StatusesTest extends WP_UnitTestCase { * * @dataProvider statusMatrixProvider */ - public function testTransform( $buckarooStatus, $expected ) { - $status = Pronamic_WP_Pay_Gateways_Buckaroo_Statuses::transform( $buckarooStatus ); + public function testTransform( $buckaroo_status, $expected ) { + $status = Pronamic_WP_Pay_Gateways_Buckaroo_Statuses::transform( $buckaroo_status ); $this->assertEquals( $expected, $status ); }