Skip to content

Commit b08d5e1

Browse files
authored
Update Saman.php
1 parent 0afb7ee commit b08d5e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Adapter/Saman.php

Lines changed: 3 additions & 3 deletions
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)