This commit is contained in:
David Bomba 2022-09-14 19:49:23 +10:00
parent 0eb7c730d8
commit 212c5706b3
3 changed files with 4 additions and 7 deletions

View File

@ -62,8 +62,8 @@ class ProcessBankTransactions implements ShouldQueue
{
set_time_limit(0);
//Loop through everything until we are up to date
//Loop through everything until we are up to date
$this->from_date = $this->from_date ?: '2020-01-01';
do{
@ -96,8 +96,6 @@ class ProcessBankTransactions implements ShouldQueue
//Get int count
$count = $transaction_count->transaction->TOTAL->count;
nlog("Number of transactions = {$count} - bank integration id = {$this->bank_integration->id} - bank account id = {$this->bank_integration->bank_account_id} - from {$this->from_date}");
//get transactions array
$transactions = $yodlee->getTransactions($data);
@ -106,7 +104,6 @@ class ProcessBankTransactions implements ShouldQueue
$this->bank_integration->from_date = now();
$this->bank_integration->save();
nlog("the bank integration from_date being set to: {$this->bank_integration->from_date}");
$this->stop_loop = false;
return;
}
@ -151,7 +148,6 @@ class ProcessBankTransactions implements ShouldQueue
$this->bank_integration->from_date = now();
$this->bank_integration->save();
nlog("stopping while loop");
}
}

View File

@ -69,8 +69,6 @@ class BankTransactionSync implements ShouldQueue
$account->bank_integrations->each(function ($bank_integration) use ($account){
nlog("Account = {$account->id} - {$bank_integration->id}");
ProcessBankTransactions::dispatchSync($account->bank_integration_account_id, $bank_integration);
});

View File

@ -91,6 +91,9 @@ class CreditCard implements MethodInterface
$gateway_response = \json_decode($request->gateway_response);
$customerRequest = $this->checkout->getCustomer();
nlog($customerRequest);
$request = $this->bootRequest($gateway_response->token);
$request->capture = false;
$request->reference = '$1 payment for authorization.';