1
0
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:
Benjamin Beganović 2020-06-15 12:59:02 +02:00
parent 0186449794
commit 8d5a843b36

View File

@ -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)