You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kount version installed: 7.5.0
PHP 8.1
Laravel 9.47.0
I am unable to override the Logger settings from what is default in src/settings.ini. I have installed Kount via Composer, with Kount living in vendor/kount/kount-ris-php-sdk. When the Request object is created, it creates the logger using the default settings.ini, then loads the settings provided. At no point does it reload the logger, and there are no functions to do so:
public function __construct($settings = null)
{
// Logger is created from the default settings
$loggerFactory = Kount_Log_Factory_LogFactory::getLoggerFactory();
$this->logger = $loggerFactory->getLogger(__CLASS__);
// Settings are loaded from the settings.ini provided or from the ArraySettings passed in
if ($settings instanceof Kount_Ris_ArraySettings) {
$this->settings = $settings;
Kount_Util_Khash::createKhash($this->settings);
} else {
$configReader = Kount_Util_ConfigFileReader::instance($settings);
$this->settings = new Kount_Ris_ArraySettings($configReader->getSettings());
Kount_Util_Khash::createKhash($this->settings);
}
Kount_Util_Khash::setConfigKey($this->settings->getConfigKey());
$this->setMerchantId($this->settings->getMerchantId());
$this->setVersion($this->settings->getVERS());
$this->setUrl($this->settings->getRisUrl());
if ($this->settings->getApiKey()) {
$this->setApiKey($this->settings->getApiKey());
} else {
$this->setCertificate(
$this->settings->getX509CertPath(),
$this->settings->getX509KeyPath(),
$this->settings->getX509Passphrase()
);
}
$this->setConnectionTimeout($this->settings->getConnectionTimeout());
// KHASH payment encoding is enabled by default.
$this->setKhashPaymentEncoding(true);
}
Since modifying vendor files is not at all recommended, I cannot actually enable logging.
The text was updated successfully, but these errors were encountered:
Kount version installed: 7.5.0
PHP 8.1
Laravel 9.47.0
I am unable to override the Logger settings from what is default in
src/settings.ini
. I have installed Kount via Composer, with Kount living invendor/kount/kount-ris-php-sdk
. When the Request object is created, it creates the logger using the default settings.ini, then loads the settings provided. At no point does it reload the logger, and there are no functions to do so:/vendor/kount/kount-ris-php-sdk/src/Kount/Ris/Request.php:
Since modifying vendor files is not at all recommended, I cannot actually enable logging.
The text was updated successfully, but these errors were encountered: