Merge pull request #6831 from turbo124/v5-develop

Minor fixes for Checkout.com
This commit is contained in:
David Bomba 2021-10-13 17:02:12 +11:00 committed by GitHub
commit 9b9c67c60e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -36,9 +36,9 @@ class QueryLogging
{
// Enable query logging for development
// if (!Ninja::isHosted() || !config('beacon.enabled')) {
// return $next($request);
// }
if (!Ninja::isHosted() || !config('beacon.enabled')) {
return $next($request);
}
$timeStart = microtime(true);
DB::enableQueryLog();
@ -52,7 +52,7 @@ class QueryLogging
$timeEnd = microtime(true);
$time = $timeEnd - $timeStart;
info("Query count = {$count}");
// info("Query count = {$count}");
if($count > 175){
nlog("Query count = {$count}");

View File

@ -149,6 +149,12 @@ class CreditCard
'company_gateway_id' => $this->checkout->company_gateway->hashed_id,
'hash' => $this->checkout->payment_hash->hash,
]);
$payment->{'failure_url'} = route('checkout.3ds_redirect', [
'company_key' => $this->checkout->client->company->company_key,
'company_gateway_id' => $this->checkout->company_gateway->hashed_id,
'hash' => $this->checkout->payment_hash->hash,
]);
}
try {