From 39e5c48ed5c2d487cfdb1fcf5a604f3a2014599f Mon Sep 17 00:00:00 2001 From: cmorenov1402 Date: Fri, 11 Apr 2025 12:10:38 +0200 Subject: [PATCH] Implement abstract process refund --- src/Gateway/AbstractGateway.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Gateway/AbstractGateway.php b/src/Gateway/AbstractGateway.php index 22f214a..53b00ba 100644 --- a/src/Gateway/AbstractGateway.php +++ b/src/Gateway/AbstractGateway.php @@ -71,4 +71,12 @@ abstract class AbstractGateway implements GatewayInterface return $checkout; } + + public function processRefund(Checkout $checkout): void + { + throw new \LogicException(sprintf( + 'The refund operation is not implemented for the %s gateway.', + static::getName() + )); + } }