diff --git a/app/PaymentDrivers/CheckoutCom/Utilities.php b/app/PaymentDrivers/CheckoutCom/Utilities.php index e121c31b06..6c1f1b897d 100644 --- a/app/PaymentDrivers/CheckoutCom/Utilities.php +++ b/app/PaymentDrivers/CheckoutCom/Utilities.php @@ -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)