Fixes for stripe import customers

This commit is contained in:
David Bomba 2021-06-15 11:09:12 +10:00
parent 63ded8eeaf
commit 31c8eb1a19
3 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ class ImportCustomers
} }
/* Now call the update payment methods handler*/ /* Now call the update payment methods handler*/
$this->stripe->updateAllPaymentMethods(); // $this->stripe->updateAllPaymentMethods();
} }

View File

@ -508,10 +508,10 @@ class StripePaymentDriver extends BaseDriver
* the respective tokens in the system. * the respective tokens in the system.
* *
*/ */
// public function updateAllPaymentMethods() public function updateAllPaymentMethods()
// { {
// return (new UpdatePaymentMethods($this))->run(); return (new UpdatePaymentMethods($this))->run();
// } }
/** /**
* Imports stripe customers and their payment methods * Imports stripe customers and their payment methods

View File

@ -126,7 +126,7 @@ class UpdateReminder extends AbstractService
$date_collection->push($reminder_date); $date_collection->push($reminder_date);
} }
if($date_collection->count() >=1) if($date_collection->count() >=1 && $date_collection->sort()->first()->gte(now()))
$this->invoice->next_send_date = $date_collection->sort()->first(); $this->invoice->next_send_date = $date_collection->sort()->first();
else else
$this->invoice->next_send_date = null; $this->invoice->next_send_date = null;