From 1e397ecd8d6b9d0df3e092c85d7f62e8a3a2bbbf Mon Sep 17 00:00:00 2001 From: cmorenov1402 Date: Fri, 11 Apr 2025 12:12:48 +0200 Subject: [PATCH] Create not implemented refund method in wallet gateway --- src/Gateway/Wallet/WalletGateway.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Gateway/Wallet/WalletGateway.php b/src/Gateway/Wallet/WalletGateway.php index 02f4c1f..767d29e 100644 --- a/src/Gateway/Wallet/WalletGateway.php +++ b/src/Gateway/Wallet/WalletGateway.php @@ -83,4 +83,12 @@ class WalletGateway implements GatewayInterface return $total; } + + public function processRefund(Checkout $checkout): void + { + throw new \LogicException(sprintf( + 'The refund operation is not implemented for the %s gateway.', + static::getName() + )); + } }