From bbcc7d331abbe6b539bd3c8e75c2e2e4d1afb712 Mon Sep 17 00:00:00 2001 From: cmorenov1402 Date: Fri, 11 Apr 2025 10:27:18 +0200 Subject: [PATCH] Add refund method to gateway interface --- src/Gateway/GatewayInterface.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Gateway/GatewayInterface.php b/src/Gateway/GatewayInterface.php index 7e736af..751032f 100644 --- a/src/Gateway/GatewayInterface.php +++ b/src/Gateway/GatewayInterface.php @@ -64,4 +64,12 @@ interface GatewayInterface * @return Response A Response object to send back to the gateway */ public function handleWebhook(Request $request): Response; + + /** + * Process a partial refund based on failed project charges in a checkout. + * The method should use the refund strategy defined in the Checkout. + * + * @param Checkout $checkout the checkout containing refund strategy and charges + */ + public function processRefund(Checkout $checkout): void; }