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; + } }