Skip to content

Commit 11ffb00

Browse files
author
Aboozar Ghaffari
authored
Merge pull request #7 from miladkian/patch-1
Update Saman.php. fix reverse transaction.
2 parents 411cbd3 + b08d5e1 commit 11ffb00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Adapter/Saman.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ protected function reverseTransaction(): bool
206206
$soapClient = $this->getSoapClient();
207207

208208
Log::info('reverseTransaction call', [$this->RefNum, $this->merchant_id]);
209-
$response = $soapClient->reverseTransaction(
210-
$this->ref_id,
209+
$response = $soapClient->reverseTransaction1(
210+
$this->RefNum,
211211
$this->merchant_id,
212212
$this->password,
213213
$this->amount
@@ -216,7 +216,7 @@ protected function reverseTransaction(): bool
216216
if (isset($response)) {
217217
Log::info('reverseTransaction response', ['response' => $response]);
218218

219-
if ($response === 1) { // check by transaction amount
219+
if ($response == 1) { // check by transaction amount
220220
$this->getTransaction()->setRefunded();
221221

222222
return true;

0 commit comments

Comments
 (0)