We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96898b3 + 4322cf0 commit a82ab11Copy full SHA for a82ab11
src/Client.php
@@ -120,8 +120,8 @@ public function __construct(...$args)
120
121
$this->merchantCode = (string) is_array($args[0]) ? $args[0]['merchant_code'] : $args[0];
122
$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];
+ $this->privateKey = (string) is_array($args[0]) ? $args[0]['private_key'] : $args[2];
+ $this->mode = (string) is_array($args[0]) ? $args[0]['mode'] : $args[3];
125
126
$baseUri = ($this->mode == Constant::MODE_DEVELOPMENT)
127
? Constant::URL_DEVELOPMENT
0 commit comments