mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01: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…
Reference in New Issue
Block a user