From b08d5e174e7ff5856fa8a67277cc072f6249feba Mon Sep 17 00:00:00 2001 From: miladkian Date: Wed, 30 Oct 2019 04:35:54 +0330 Subject: [PATCH] Update Saman.php --- src/Adapter/Saman.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Adapter/Saman.php b/src/Adapter/Saman.php index e8fcf01..2e02c52 100755 --- a/src/Adapter/Saman.php +++ b/src/Adapter/Saman.php @@ -206,8 +206,8 @@ protected function reverseTransaction(): bool $soapClient = $this->getSoapClient(); Log::info('reverseTransaction call', [$this->RefNum, $this->merchant_id]); - $response = $soapClient->reverseTransaction( - $this->ref_id, + $response = $soapClient->reverseTransaction1( + $this->RefNum, $this->merchant_id, $this->password, $this->amount @@ -216,7 +216,7 @@ protected function reverseTransaction(): bool if (isset($response)) { Log::info('reverseTransaction response', ['response' => $response]); - if ($response === 1) { // check by transaction amount + if ($response == 1) { // check by transaction amount $this->getTransaction()->setRefunded(); return true;