From 792d36fac67ac9602ff7f1029ee3de229c5b8134 Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 24 Mar 2016 10:29:42 +0200 Subject: [PATCH 1/2] Use SVG Coveralls badge So it's consistent with the Travis CI one. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index afe2e6b..db822bf 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ paytrail-php ============ -[![Build Status](https://travis-ci.org/nordsoftware/paytrail-php.svg?branch=master)](https://travis-ci.org/nordsoftware/paytrail-php) [![Coverage Status](https://coveralls.io/repos/nordsoftware/paytrail-php/badge.png?branch=master)](https://coveralls.io/r/nordsoftware/paytrail-php?branch=master) +[![Build Status](https://travis-ci.org/nordsoftware/paytrail-php.svg?branch=master)](https://travis-ci.org/nordsoftware/paytrail-php) [![Coverage Status](https://coveralls.io/repos/github/nordsoftware/paytrail-php/badge.svg?branch=master)](https://coveralls.io/github/nordsoftware/paytrail-php?branch=master) Paytrail REST client for PHP. From 3812206fb8b25c61adf54cb2fb12ff7b124be3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenneth=20S=C3=B6derlund?= Date: Tue, 13 Sep 2016 15:04:14 +0300 Subject: [PATCH 2/2] Fix bug when using other credentials than the test-credentials --- src/Http/Client.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Http/Client.php b/src/Http/Client.php index 3f83048..759453d 100644 --- a/src/Http/Client.php +++ b/src/Http/Client.php @@ -97,6 +97,22 @@ class Client extends Object */ static $supportedApiVersions = array(1); + /** + * Client constructor. + * + * @param string|null $apiKey + * @param string|null $apiSecret + */ + public function __construct($apiKey = null, $apiSecret = null) + { + if ($apiKey !== null) { + $this->_apiKey = $apiKey; + } + if ($apiSecret !== null) { + $this->_apiSecret = $apiSecret; + } + } + /** * Connect client. *