Skip to content

Commit fd83dc8

Browse files
Merge pull request #68 from specialtactics/backport-constructor-changes-to-v3
Backporting changes merged to v4, also in v3
2 parents a464f4f + 329826b commit fd83dc8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Hyperwallet/Hyperwallet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ class Hyperwallet {
6868
*
6969
* @throws HyperwalletArgumentException
7070
*/
71-
public function __construct($username, $password, $programToken = null, $server = 'https://api.sandbox.hyperwallet.com', $encryptionData = array()) {
71+
public function __construct($username, $password, $programToken = null, $server = 'https://api.sandbox.hyperwallet.com', $encryptionData = array(), $clientOptions = array()) {
7272
if (empty($username) || empty($password)) {
7373
throw new HyperwalletArgumentException('You need to specify your API username and password!');
7474
}
7575

7676
$this->programToken = $programToken;
77-
$this->client = new ApiClient($username, $password, $server, array(), $encryptionData);
77+
$this->client = new ApiClient($username, $password, $server, $clientOptions, $encryptionData);
7878
}
7979

8080
//--------------------------------------

tests/Hyperwallet/Tests/Util/HyperwalletEncryptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Hyperwallet\Tests;
2+
namespace Hyperwallet\Tests\Util;
33

44
use Hyperwallet\Util\HyperwalletEncryption;
55
use Hyperwallet\Exception\HyperwalletException;

0 commit comments

Comments
 (0)