Skip to content

Commit 3107cfa

Browse files
committed
fix development mode
1 parent 4c47d6d commit 3107cfa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "zerosdev/tripay-sdk-php",
2+
"name": "aznidev/tripay-sdk-php",
33
"description": "Unofficial TriPay.co.id Integration Kit for PHP",
44
"type": "library",
55
"require": {
@@ -21,4 +21,4 @@
2121
"ZerosDev\\TriPay\\": "src/"
2222
}
2323
}
24-
}
24+
}

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ public function __construct(...$args)
120120

121121
$this->merchantCode = (string) is_array($args[0]) ? $args[0]['merchant_code'] : $args[0];
122122
$this->apiKey = (string) is_array($args[0]) ? $args[0]['api_key'] : $args[1];
123-
$this->privateKey = (string) is_array($args[0]) ? $args[0]['private_key'] : $args[1];
124-
$this->mode = (string) is_array($args[0]) ? $args[0]['mode'] : $args[2];
123+
$this->privateKey = (string) is_array($args[0]) ? $args[0]['private_key'] : $args[2];
124+
$this->mode = (string) is_array($args[0]) ? $args[0]['mode'] : $args[3];
125125

126126
$baseUri = ($this->mode == Constant::MODE_DEVELOPMENT)
127127
? Constant::URL_DEVELOPMENT

0 commit comments

Comments
 (0)