Fix for ezypay payment import
This commit is contained in:
@@ -57,7 +57,7 @@ final class PaymentsImport implements ShouldQueue
|
||||
}
|
||||
|
||||
// Find the last payment logged
|
||||
$last = Carbon::createFromTimestamp(Payment::whereIN('checkout_id',$cos)->where('account_id',$ao->id)->max('paid_at'));
|
||||
$last = Carbon::create(Payment::whereIN('checkout_id',$cos)->where('account_id',$ao->id)->max('paid_at'));
|
||||
|
||||
$o = $this->o->getDebits([
|
||||
'customerId'=>$c->Id,
|
||||
@@ -66,6 +66,8 @@ final class PaymentsImport implements ShouldQueue
|
||||
'pageSize'=>100,
|
||||
]);
|
||||
|
||||
Log::info(sprintf('%s:Loaded [%d] payments for account: [%s]',self::LOGKEY,$o->count(),$ao->id));
|
||||
|
||||
// Load the payments
|
||||
if ($o->count()) {
|
||||
foreach ($o->reverse() as $p) {
|
||||
|
Reference in New Issue
Block a user