mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 20:07:31 -05:00 
			
		
		
		
	Fix public api key logic
This commit is contained in:
		
							parent
							
								
									0186449794
								
							
						
					
					
						commit
						8d5a843b36
					
				@ -16,12 +16,7 @@ trait Utilities
 | 
			
		||||
{
 | 
			
		||||
    public function getPublishableKey()
 | 
			
		||||
    {
 | 
			
		||||
        // This doesn't work since $gateway->getPublishableKey is looking for 'publishableKey' 
 | 
			
		||||
        // but we use 'publicApiKey' for Checkout.com in .env file.
 | 
			
		||||
 | 
			
		||||
        // This is dummy implementation and it needs to be fixed.
 | 
			
		||||
 | 
			
		||||
        return $this->company_gateway->getConfig()->publicApiKey;
 | 
			
		||||
        return $this->company_gateway->getConfigField('publicApiKey');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function convertToCheckoutAmount($amount, $currency)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user