mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-13 02:04:37 -04:00
Fix public api key logic
This commit is contained in:
parent
0186449794
commit
8d5a843b36
@ -16,12 +16,7 @@ trait Utilities
|
|||||||
{
|
{
|
||||||
public function getPublishableKey()
|
public function getPublishableKey()
|
||||||
{
|
{
|
||||||
// This doesn't work since $gateway->getPublishableKey is looking for 'publishableKey'
|
return $this->company_gateway->getConfigField('publicApiKey');
|
||||||
// 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function convertToCheckoutAmount($amount, $currency)
|
public function convertToCheckoutAmount($amount, $currency)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user