Fixes for stripe import customers
This commit is contained in:
parent
63ded8eeaf
commit
31c8eb1a19
3 changed files with 6 additions and 6 deletions
|
|
@ -56,7 +56,7 @@ class ImportCustomers
|
|||
}
|
||||
|
||||
/* Now call the update payment methods handler*/
|
||||
$this->stripe->updateAllPaymentMethods();
|
||||
// $this->stripe->updateAllPaymentMethods();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -508,10 +508,10 @@ class StripePaymentDriver extends BaseDriver
|
|||
* the respective tokens in the system.
|
||||
*
|
||||
*/
|
||||
// public function updateAllPaymentMethods()
|
||||
// {
|
||||
// return (new UpdatePaymentMethods($this))->run();
|
||||
// }
|
||||
public function updateAllPaymentMethods()
|
||||
{
|
||||
return (new UpdatePaymentMethods($this))->run();
|
||||
}
|
||||
|
||||
/**
|
||||
* Imports stripe customers and their payment methods
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ class UpdateReminder extends AbstractService
|
|||
$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();
|
||||
else
|
||||
$this->invoice->next_send_date = null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue