Merge check for paymentMethod
This commit is contained in:
parent
60c63c8160
commit
ecdc848812
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue