Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/0.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Söderlund committed Sep 13, 2016
2 parents 4330f38 + 3812206 commit 7f9de49
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
16 changes: 16 additions & 0 deletions src/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 7f9de49

Please sign in to comment.