Skip to content

Commit

Permalink
Merge pull request #7 from miladkian/patch-1
Browse files Browse the repository at this point in the history
Update Saman.php. fix reverse transaction.
  • Loading branch information
Aboozar Ghaffari authored Oct 30, 2019
2 parents 411cbd3 + b08d5e1 commit 11ffb00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Adapter/Saman.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit 11ffb00

Please sign in to comment.