From 2ecd2d313122e375736782635218583c595bf892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82otka?= Date: Tue, 6 Sep 2022 15:56:39 +0200 Subject: [PATCH] Set error http response code when occurs error in notify action. Without this change PayU never resends notifications. --- src/Action/NotifyAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Action/NotifyAction.php b/src/Action/NotifyAction.php index 6686a30..5c65bfb 100644 --- a/src/Action/NotifyAction.php +++ b/src/Action/NotifyAction.php @@ -93,7 +93,7 @@ public function execute($request): void } } } catch (OpenPayU_Exception $e) { - throw new HttpResponse($e->getMessage()); + throw new HttpResponse($e->getMessage(), 500); } } }