Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Uncomment webhook logic commented by mistake
Maciej Korycinski22c7407a664a
diff --git a/saleor/payment/gateways/adyen/webhooks.py b/saleor/payment/gateways/adyen/webhooks.pyindex bf072165f9..82733e2d34 100644--- a/saleor/payment/gateways/adyen/webhooks.py+++ b/saleor/payment/gateways/adyen/webhooks.py@@ -477,8 +477,8 @@ def handle_webhook(request: WSGIRequest, gateway_config: "GatewayConfig"):if not validate_auth_user(request.headers, gateway_config):return HttpResponseBadRequest("Invalid or missing basic auth.")- # event_handler = EVENT_MAP.get(notification.get("eventCode", ""))- # if event_handler:- # event_handler(notification, gateway_config)- return HttpResponse("[accepted]")+ event_handler = EVENT_MAP.get(notification.get("eventCode", ""))+ if event_handler:+ event_handler(notification, gateway_config)+ return HttpResponse("[accepted]")return HttpResponseNotFound()