From 22ce56b7c54ef5b7d1fd6400634bea9486aff5fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 19 Aug 2021 13:34:18 +0200 Subject: [PATCH] Add `shouldUseToken(): bool` to PaymentResponseRequest --- .../ClientPortal/Payments/PaymentResponseRequest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Requests/ClientPortal/Payments/PaymentResponseRequest.php b/app/Http/Requests/ClientPortal/Payments/PaymentResponseRequest.php index 3a917f339e2f..e9a9851a1839 100644 --- a/app/Http/Requests/ClientPortal/Payments/PaymentResponseRequest.php +++ b/app/Http/Requests/ClientPortal/Payments/PaymentResponseRequest.php @@ -56,4 +56,9 @@ class PaymentResponseRequest extends FormRequest ]); } } + + public function shouldUseToken(): bool + { + return (bool) $this->token; + } }