system.xml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * This file is part of the Klarna Core module
  5. *
  6. * (c) Klarna Bank AB (publ)
  7. *
  8. * For the full copyright and license information, please view the NOTICE
  9. * and LICENSE files that were distributed with this source code.
  10. */
  11. -->
  12. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  13. xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
  14. <system>
  15. <section id="payment">
  16. <group id="klarna_section" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="0">
  17. <label>Klarna</label>
  18. <group id="klarna" type="text" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="1"
  19. translate="label">
  20. <!--<attribute type="displayIn">bundled_payment_methods</attribute>-->
  21. <fieldset_css>complex klarna-section</fieldset_css>
  22. <frontend_model>Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Payment</frontend_model>
  23. <label>Smoooth Payments</label>
  24. <group id="api" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1"
  25. translate="label">
  26. <label>Klarna API</label>
  27. <field id="api_version" sortOrder="10" translate="label" type="select" showInDefault="1"
  28. showInWebsite="1"
  29. showInStore="0">
  30. <label>API Version</label>
  31. <config_path>klarna/api/api_version</config_path>
  32. <source_model>Klarna\Core\Model\System\Config\Source\Version</source_model>
  33. </field>
  34. <field id="merchant_id" sortOrder="20" translate="label" type="text" showInDefault="1"
  35. showInWebsite="1"
  36. showInStore="1">
  37. <label>Merchant ID/EID</label>
  38. <config_path>klarna/api/merchant_id</config_path>
  39. </field>
  40. <field id="shared_secret" sortOrder="30" translate="label" type="obscure" showInDefault="1"
  41. showInWebsite="1"
  42. showInStore="1">
  43. <label>Password/Shared secret</label>
  44. <config_path>klarna/api/shared_secret</config_path>
  45. <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
  46. </field>
  47. <field id="test_mode" sortOrder="40" translate="label" type="select" showInDefault="1"
  48. showInWebsite="1"
  49. showInStore="1">
  50. <label>Test Mode</label>
  51. <config_path>klarna/api/test_mode</config_path>
  52. <source_model>Magento\Config\Model\Config\Source\Enabledisable</source_model>
  53. </field>
  54. <field id="debug" sortOrder="50" translate="label comment" type="select" showInDefault="1"
  55. showInWebsite="1"
  56. showInStore="1">
  57. <label>Debug Mode</label>
  58. <config_path>klarna/api/debug</config_path>
  59. <source_model>Magento\Config\Model\Config\Source\Enabledisable</source_model>
  60. <comment>Should not be enabled in production. Sensitive information is logged.</comment>
  61. </field>
  62. </group>
  63. </group>
  64. </group>
  65. </section>
  66. </system>
  67. </config>