Merge check for paymentMethod

This commit is contained in:
Hillel Coren 2017-02-20 13:48:36 +02:00
parent 60c63c8160
commit ecdc848812

View File

@ -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;