mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 09:27:33 -04:00 
			
		
		
		
	Merge pull request #6831 from turbo124/v5-develop
Minor fixes for Checkout.com
This commit is contained in:
		
						commit
						9b9c67c60e
					
				| @ -36,9 +36,9 @@ class QueryLogging | |||||||
|     { |     { | ||||||
| 
 | 
 | ||||||
|         // Enable query logging for development
 |         // Enable query logging for development
 | ||||||
|         // if (!Ninja::isHosted() || !config('beacon.enabled')) {
 |         if (!Ninja::isHosted() || !config('beacon.enabled')) { | ||||||
|         //     return $next($request);
 |             return $next($request); | ||||||
|         // }
 |         } | ||||||
| 
 | 
 | ||||||
|         $timeStart = microtime(true); |         $timeStart = microtime(true); | ||||||
|         DB::enableQueryLog(); |         DB::enableQueryLog(); | ||||||
| @ -52,7 +52,7 @@ class QueryLogging | |||||||
|             $timeEnd = microtime(true); |             $timeEnd = microtime(true); | ||||||
|             $time = $timeEnd - $timeStart; |             $time = $timeEnd - $timeStart; | ||||||
| 
 | 
 | ||||||
|             info("Query count = {$count}"); |             // info("Query count = {$count}");
 | ||||||
|          |          | ||||||
|              if($count > 175){ |              if($count > 175){ | ||||||
|                  nlog("Query count = {$count}"); |                  nlog("Query count = {$count}"); | ||||||
|  | |||||||
| @ -149,6 +149,12 @@ class CreditCard | |||||||
|                 'company_gateway_id' => $this->checkout->company_gateway->hashed_id, |                 'company_gateway_id' => $this->checkout->company_gateway->hashed_id, | ||||||
|                 'hash' => $this->checkout->payment_hash->hash, |                 '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 { |         try { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user