diff --git a/app/Livewire/Flow2/InvoicePay.php b/app/Livewire/Flow2/InvoicePay.php index 79c303a119..a434dbf7c4 100644 --- a/app/Livewire/Flow2/InvoicePay.php +++ b/app/Livewire/Flow2/InvoicePay.php @@ -141,6 +141,9 @@ class InvoicePay extends Component $company_gateway = CompanyGateway::query()->find($company_gateway_id); + if(!$company_gateway) + return $this->required_fields = false; + $this->checkRequiredFields($company_gateway); }