Skip to content

Commit 7beef49

Browse files
author
Aboozar Ghaffari
authored
Merge pull request #15 from miladkian/master
fix Parsian and transaction interface
2 parents 051af52 + 730a68b commit 7beef49

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Adapter/Saman.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ protected function reverseTransaction(): bool
271271

272272
if ($response == 1) { // check by transaction amount
273273
$this->getTransaction()->setRefunded(true);
274+
274275
return true;
275276
} else {
276277
throw new Exception($response);

src/Models/Traits/OnlineTransactionTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
trait OnlineTransactionTrait
1010
{
11-
public function setReferenceId($referenceId, $save = true): bool
11+
public function setReferenceId(string $referenceId,bool $save = true): bool
1212
{
1313
$this->gate_refid = $referenceId;
1414
if ($save) {

views/parsian-form.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<form id="goto_parsian_bank" class="form-horizontal goto-bank-form" method="get" action="{!! $endPoint !!}">
2-
<input type="hidden" name="au" value="{{$refId}}" />
2+
<input type="hidden" name="token" value="{{$refId}}" />
33
<div class="control-group">
44
<div class="controls">
55
<button type="submit" class="btn btn-success">{{$submitLabel}}</button>

0 commit comments

Comments
 (0)