Skip to content

Commit a82ab11

Browse files
authored
Merge pull request #2 from AzniDev/main
fix development mode
2 parents 96898b3 + 4322cf0 commit a82ab11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)