Skip to content

Commit d734436

Browse files
committed
changed checkForRefund() method to checkForReverse()
1 parent ef46004 commit d734436

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

config/larapay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
|
2424
| specifies ready to serve gateways.
2525
| gateway characters are case sensitive and should be exactly same as their folder name.
26-
| eg, "Jahanpay" is correct not "JahanPay" or "jahanpay"
26+
| eg, "Asanpay" is correct not "AsanPay" or "asanpay"
2727
| the gateways list is comma separated
2828
|
2929
*/

src/Models/Traits/OnlineTransactionTrait.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,6 @@ public function setGatewayToken(string $token, bool $save = true): bool
164164
return true;
165165
}
166166

167-
public function checkForRefund(): bool
168-
{
169-
return $this->reverse != true;
170-
}
171-
172-
173167
public function setExtra(string $key, $value, bool $save = true): bool
174168
{
175169
$value = (array)$value;

src/Transaction/TransactionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function checkForAfterVerify(): bool;
6161
*
6262
* @return bool
6363
*/
64-
public function checkForRefund(): bool;
64+
public function checkForReverse(): bool;
6565

6666
/**
6767
* Set the card number (hash of card number) that used for paying the transaction

0 commit comments

Comments
 (0)