Resolution of this issue will be provided in the scope of internal tickets
BUNDLE-2831 [Klarna 2.4.2] Remove dependency on PayPal moduleBUNDLE-2832 [Klarna 2.3.7] Remove dependency on PayPal module
Configure button is disabled

After enabling the Paypal, the configure button will be enabled
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
Hi @JannMulton. Thank you for your report.
To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance - upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
Please, add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.
:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi @ihor-sviziev. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.
[ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop branchDetails
- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 5. Add label Issue: Confirmed once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hi @JannMulton,
Thank you for your report!
This report relates to bundled extension and not to Magento, support of this extension is available on Magento Marketplace:
https://marketplace.magento.com/klarna-m2-checkout.html#product.info.details.support
Please contact the support in order to resolve this issue.
BR,
Ihor
Klarna is part of Magento core and not installed separately
@JannMulton it would be better to submit issue to support since the Klarna is vendor bundled extensions and we don’t control it’s source code
Klarna response to this

@JannMulton thank you so much for your response! I'll re-open this issue and we'll try to re-check it again.
@engcom-Alfa @engcom-Bravo @engcom-Charlie could you verify this issue?
@engcom-Alfa
Could you please check this issue on the latest released 2.3.x and 2.4.x composer version?
Probably this issue is already fixed in the current versions.
Hi @ihor-sviziev @sdzhepa @JannMulton . We can confirm that this problem can be reproduced on the 2.3.5-p2 and 2.4.0 composer versions.
Manual testing scenario (for 2.4.0 composer)
Magento_Paypal:php bin/magento module:disable Magento_Paypal PayPal_Braintree Amazon_Payment Amazon_Login Amazon_Core Magento_PaypalGraphQl_info:_ To disable PayPal, you must also disable the depend to it, modules.
Actual Result : :heavy_multiplication_x: it is not possible to configure the Klarna payment method. Configure button is disabled.
Magento 2.3.5-p2 composer

Magento 2.4.0 composer

For a more detailed investigation, whether this problem is related to Magento or directly to the Klarna payment method, and possible solutions we asked for help from developers.
Based on the results of the investigation, a comment will be left here.
Thanks!
Hi @engcom-Alfa. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.
[ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop branchDetails
- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 5. Add label Issue: Confirmed once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
by default (when all modules are enabled) all Configure buttons for payments go from backend as disabled, during the page loads in module-paypal/view/adminhtml/web/js/solutions.js in function wipeButtonsConfiguration() occur removing attribute disable from all .button.action-configure (for Klarna Config button also).

So when we disable Paypal, this file is absent and we have this issue.
:white_check_mark: Confirmed by @sdzhepa
Thank you for verifying the issue. Based on the provided information internal tickets MC-36756 were created
Issue Available: @sdzhepa, _You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself._
@magento I'm working on it
@ihor-sviziev or @sdzhepa could any of you review the PR #30022 ?
This issue muat be closed, here are the arguments and facts:
1) Klarna_Core has dependency of Mage_Paypal > Klarna/Core/etc/module.xml:19, so Mage_Paypal can't be properly
disabled
2) Klarna_Core composer is missing the require declaration of magento/module-paypal > Klarna/Core/composer.json:42
3) For Klarna_Core works without dependency of Mage_Paypal, Klarna_Core must remove the dependency on > Klarna/Core/etc/adminhtml/system.xml:19
4) Klarna_Core must put the business logic of > Magento/Paypal/Block/Adminhtml/System/Config/Fieldset/Payment.php:91 > protected function _getHeaderTitleHtml($element) > inside of its own module, removing the methods aren't gonna use, for example > Magento/Paypal/Block/Adminhtml/System/Config/Fieldset/Payment.php:66
FYI @JannMulton + @ihor-sviziev + @sdzhepa + @sidolov + @engcom-Charlie
@engcom-Charlie could you confirm that issue not inside magento, but inside the Klarna module?
Hello @JannMulton @ihor-sviziev @lfluvisotto
This issue was reviewed and discussed with Klarna.
As a result, it was confirmed and added to the backlog related to Klarna:
BUNDLE-2831 [Klarna 2.4.2] Remove dependency on PayPal moduleBUNDLE-2832 [Klarna 2.3.7] Remove dependency on PayPal module@sdzhepa so the issue not in magento and we can close this one?
Most helpful comment
Hi @ihor-sviziev @sdzhepa @JannMulton . We can confirm that this problem can be reproduced on the 2.3.5-p2 and 2.4.0 composer versions.
Manual testing scenario (for 2.4.0 composer)
Magento_Paypal:run in console:
php bin/magento module:disable Magento_Paypal PayPal_Braintree Amazon_Payment Amazon_Login Amazon_Core Magento_PaypalGraphQl_info:_ To disable PayPal, you must also disable the depend to it, modules.
Actual Result : :heavy_multiplication_x: it is not possible to configure the Klarna payment method. Configure button is disabled.
Magento 2.3.5-p2 composerMagento 2.4.0 composerFor a more detailed investigation, whether this problem is related to Magento or directly to the Klarna payment method, and possible solutions we asked for help from developers.
Based on the results of the investigation, a comment will be left here.
Thanks!