Adyen / adyen-magento2-express-checkout

Adyen Magento 2 Express Checkout Module
MIT License
8 stars 2 forks source link

[ECP-8905] Call config data from config helper instead #74

Closed hossam-adyen closed 5 months ago

hossam-adyen commented 5 months ago

Fix 500 Error on /rest/V1/adyen/express/init/mine

Error: Call to undefined method Adyen\Payment\Helper\Data::getAdyenAbstractConfigData() in /var/www/html/vendor/adyen/adyen-magento2-expresscheckout/Model/GetAdyenPaymentMethodsByProduct.php:81
Stack trace:
#0 /var/www/html/vendor/adyen/adyen-magento2-expresscheckout/Model/ExpressDataBuilder.php(235): Adyen\ExpressCheckout\Model\GetAdyenPaymentMethodsByProduct->execute()
#1 /var/www/html/vendor/adyen/adyen-magento2-expresscheckout/Model/ExpressDataBuilder.php(172): Adyen\ExpressCheckout\Model\ExpressDataBuilder->getAdyenPaymentMethods()
#2 /var/www/html/vendor/adyen/adyen-magento2-expresscheckout/Model/ExpressInit.php(200): Adyen\ExpressCheckout\Model\ExpressDataBuilder->execute()
#3 [internal function]: Adyen\ExpressCheckout\Model\ExpressInit->execute()
#4 /var/www/html/app/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array()
#5 /var/www/html/app/code/Magento/Webapi/Controller/Rest.php(202): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor->process()
#6 /var/www/html/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch()
#7 /var/www/html/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->___callParent()
#8 /var/www/html/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception\{closure}()
#9 /var/www/html/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(23): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins()
#10 /var/www/html/lib/internal/Magento/Framework/App/Http.php(116): Magento\Webapi\Controller\Rest\Interceptor->dispatch()
#11 /var/www/html/lib/internal/Magento/Framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()
#12 /var/www/html/pub/index.php(30): Magento\Framework\App\Bootstrap->run()
#13 {main}
sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud