From 130714f4571340b2cfc49f214a9e4382d389364e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 27 Jan 2021 11:54:29 +0100 Subject: [PATCH] Throw PaymentFailed exception if something goes wrong with response --- app/Http/Controllers/ClientPortal/PaymentController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/ClientPortal/PaymentController.php b/app/Http/Controllers/ClientPortal/PaymentController.php index f4da5dd0dd4b..44ab311c840c 100644 --- a/app/Http/Controllers/ClientPortal/PaymentController.php +++ b/app/Http/Controllers/ClientPortal/PaymentController.php @@ -301,6 +301,8 @@ class PaymentController extends Controller SystemLog::TYPE_FAILURE, auth('contact')->user()->client ); + + throw new PaymentFailed($e->getMessage()); } }