We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given:
Issue: Critical error gets logged when cart is loaded in all websites/stores where PayU is not enabled
Expected result: No error is logged, as PayU is disabled
Affected code line: https://github.com/PayU-EMEA/plugin_magento_24/blob/master/lib/OpenPayU/AuthType/Basic.php#L14
Call stack
Versions:
The text was updated successfully, but these errors were encountered:
Who also faces this issue, here is a patch:
diff --git a/vendor/payu/magento24-payment-gateway/Model/GetPayMethods.php b/vendor/payu/magento24-payment-gateway/Model/GetPayMethods.php --- a/vendor/payu/magento24-payment-gateway/Model/GetPayMethods.php +++ b/vendor/payu/magento24-payment-gateway/Model/GetPayMethods.php (date 1688021803195) @@ -84,6 +84,10 @@ public function execute() { try { + if (!$this->gatewayConfig->getValue('main_parameters/active', $this->storeId)) { + return []; + } + $this->payUConfig->setDefaultConfig(ConfigProvider::CODE); $payURetrive = $this->openPayURetrieve; $response = $payURetrive::payMethods($this->availableLocale->execute())->getResponse();
Sorry, something went wrong.
No branches or pull requests
Given:
Issue:
Critical error gets logged when cart is loaded in all websites/stores where PayU is not enabled
Expected result:
No error is logged, as PayU is disabled
Affected code line:
https://github.com/PayU-EMEA/plugin_magento_24/blob/master/lib/OpenPayU/AuthType/Basic.php#L14
Call stack
Versions:
The text was updated successfully, but these errors were encountered: