Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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