From 3107cfa9456ef20eef7c4c53f0939172ce627b5e Mon Sep 17 00:00:00 2001 From: AzniDev Date: Mon, 11 Nov 2024 17:27:02 +0700 Subject: [PATCH 1/2] fix development mode --- composer.json | 4 ++-- src/Client.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 3e2d260..fcbd491 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "zerosdev/tripay-sdk-php", + "name": "aznidev/tripay-sdk-php", "description": "Unofficial TriPay.co.id Integration Kit for PHP", "type": "library", "require": { @@ -21,4 +21,4 @@ "ZerosDev\\TriPay\\": "src/" } } -} +} \ No newline at end of file diff --git a/src/Client.php b/src/Client.php index 1b82703..93d419e 100644 --- a/src/Client.php +++ b/src/Client.php @@ -120,8 +120,8 @@ class Client $this->merchantCode = (string) is_array($args[0]) ? $args[0]['merchant_code'] : $args[0]; $this->apiKey = (string) is_array($args[0]) ? $args[0]['api_key'] : $args[1]; - $this->privateKey = (string) is_array($args[0]) ? $args[0]['private_key'] : $args[1]; - $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]; $baseUri = ($this->mode == Constant::MODE_DEVELOPMENT) ? Constant::URL_DEVELOPMENT From 4322cf0eb4d26fd698b2528552094ea61ddd07f8 Mon Sep 17 00:00:00 2001 From: Rony Wisnu Wardana <33526722+zerosdev@users.noreply.github.com> Date: Thu, 3 Apr 2025 21:08:02 +0700 Subject: [PATCH 2/2] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index fcbd491..3e2d260 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "aznidev/tripay-sdk-php", + "name": "zerosdev/tripay-sdk-php", "description": "Unofficial TriPay.co.id Integration Kit for PHP", "type": "library", "require": { @@ -21,4 +21,4 @@ "ZerosDev\\TriPay\\": "src/" } } -} \ No newline at end of file +}