From 425464114c2f6dc0801cd832f1f549dc90744089 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Wed, 12 Nov 2025 22:06:44 +0300 Subject: [PATCH] Fixes: 1) Pass `raise_exc=True` to `get_integration_class_object` to handle unknown gateways properly; Extra: 1) No additional changes. --- engine/payments/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/payments/views.py b/engine/payments/views.py index 8c6a8771..8041115c 100644 --- a/engine/payments/views.py +++ b/engine/payments/views.py @@ -75,7 +75,7 @@ class CallbackAPIView(APIView): transaction = Transaction.objects.get(uuid=str(kwargs.get("uuid"))) if not transaction.gateway: raise UnknownGatewayError() - gateway = transaction.gateway.get_integration_class_object() + gateway = transaction.gateway.get_integration_class_object(raise_exc=True) gateway.process_callback(request.data) return Response(status=status.HTTP_202_ACCEPTED) except Exception as e: