From 83bdd9a0a526f4fb789ab8b914ea4f771af86dc0 Mon Sep 17 00:00:00 2001 From: mdoulabi Date: Tue, 2 May 2023 14:37:06 +0330 Subject: [PATCH] fix pull request issues --- config/gateway_parsian.php | 9 ++++----- src/Drivers/Parsian/Parsian.php | 3 --- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/config/gateway_parsian.php b/config/gateway_parsian.php index e36f4a5..27c3407 100644 --- a/config/gateway_parsian.php +++ b/config/gateway_parsian.php @@ -17,16 +17,15 @@ /** * gateway configurations */ - 'behandam' => [ - 'terminal_id' => '', + 'main' => [ 'pin_code' => '', 'callback_url' => 'https://yoursite.com/path/to', - 'callback_method' => 'POST', // Supported values: POST, GET - 'description' => 'رژیم دکتر کرمانی', + 'callback_method' => 'POST', + 'description' => '', ], 'other' => [ - 'merchant' => '', + 'pin_code' => '', 'callback_url' => 'https://yoursite.com/path/to', 'description' => 'payment using parsian', ] diff --git a/src/Drivers/Parsian/Parsian.php b/src/Drivers/Parsian/Parsian.php index 4fe7074..9d50449 100644 --- a/src/Drivers/Parsian/Parsian.php +++ b/src/Drivers/Parsian/Parsian.php @@ -51,9 +51,6 @@ public function verify(): Receipt protected function getPurchaseData(): array { - if (empty($this->settings['terminal_id'])) { - throw new InvalidConfigurationException('terminal_id has not been set.'); - } if (empty($this->settings['pin_code'])) { throw new InvalidConfigurationException('pin_code has not been set.');