diff --git a/app/Services/PaymentService.php b/app/Services/PaymentService.php index 36b6c96c2414..33823e636816 100644 --- a/app/Services/PaymentService.php +++ b/app/Services/PaymentService.php @@ -93,6 +93,10 @@ class PaymentService extends BaseService $paymentMethod = $customer->default_payment_method; + if (! $paymentMethod) { + return false; + } + if ($paymentMethod->requiresDelayedAutoBill()) { $invoiceDate = \DateTime::createFromFormat('Y-m-d', $invoice->invoice_date); $minDueDate = clone $invoiceDate;