Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setDebug methods removed from Authentication/Core/MerchantConfiguration #87

Open
chriskoleda opened this issue Nov 24, 2021 · 2 comments

Comments

@chriskoleda
Copy link

Hey guys, I noticed when combing through some logs in some of our Magento2 code that there are calls to a method setDebug that no longer exists. Our client code is calling this code to run reports, but it also seems that your code is still calling these non-existent methods as well.

If you look here at this older version of your code

You can see a setDebug did exist and you can see here on the most recent version of your code, that the method no longer exists but is still being called by other methods

$config = $config->setDebug($connectionDet->enableLog);

It seems to me that this was partially replaced by CyberSource/LogConfiguration class but I cannot tell for sure.

I Was wondering if you guys could provide any insight or code fix for this. This snippet of code below is what we have written for running our reports it essentially news up a CyberSource/Authentication/Core/MerchantConfiguration class and sets these methods (the first 3 of which do not seem to exist any longer)

          $merchantConfig->setDebug($enableLog);
            $merchantConfig->setLogSize(trim($logSize));
            $merchantConfig->setDebugFile(trim($logFile));
            $merchantConfig->setLogFileName(trim($logFilename));
            $merchantConfig->setauthenticationType($authenticationType);
            $merchantConfig->setMerchantID(trim($merchantID));
            $merchantConfig->setApiKeyID($apiKeyID);
            $merchantConfig->setSecretKey($secretKey);
            $merchantConfig->setKeyFileName(trim($keyFilename));
            $merchantConfig->setKeyAlias($keyAlias);
            $merchantConfig->setKeyPassword($keyPass);
            $merchantConfig->setKeysDirectory($keyDirectory);
            $merchantConfig->setRunEnvironment($runEnv);
            $merchantConfig->validateMerchantData();

I was wondering what a replacement for these methods might be as they are causing our report code to fail.

Thanks!

@chriskoleda chriskoleda changed the title setDebug method calls removed from Authentication/Core/MerchantConfiguration setDebug methods removed from Authentication/Core/MerchantConfiguration Nov 24, 2021
@D41126250
Copy link

Same problem here @chriskoleda
Do you have more information or any partial solution?
Thanks!

@tedwong
Copy link

tedwong commented May 29, 2023

@D41126250 / @chriskoleda May I know how did u guys resolve at the end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants