We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 411cbd3 + b08d5e1 commit 11ffb00Copy full SHA for 11ffb00
src/Adapter/Saman.php
@@ -206,8 +206,8 @@ protected function reverseTransaction(): bool
206
$soapClient = $this->getSoapClient();
207
208
Log::info('reverseTransaction call', [$this->RefNum, $this->merchant_id]);
209
- $response = $soapClient->reverseTransaction(
210
- $this->ref_id,
+ $response = $soapClient->reverseTransaction1(
+ $this->RefNum,
211
$this->merchant_id,
212
$this->password,
213
$this->amount
@@ -216,7 +216,7 @@ protected function reverseTransaction(): bool
216
if (isset($response)) {
217
Log::info('reverseTransaction response', ['response' => $response]);
218
219
- if ($response === 1) { // check by transaction amount
+ if ($response == 1) { // check by transaction amount
220
$this->getTransaction()->setRefunded();
221
222
return true;
0 commit comments