Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions etc/adminhtml/system.ca.us.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
<source_model>Bread\BreadCheckout\Model\System\Config\Source\ApiMode</source_model>
</field>
<field id="api_public_key" type="text" sortOrder="3" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Public Key</label>
<depends>
<field id="api_mode">1</field>
<field id="api_version">bread_2</field>
</depends>
</field>
<field id="api_secret_key" type="obscure" sortOrder="4" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
Expand All @@ -45,23 +45,23 @@
</depends>
</field>
<field id="api_integration_key" type="text" sortOrder="5" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Integration Key</label>
<depends>
<field id="api_mode">1</field>
<field id="api_version">bread_2</field>
</depends>
</field>
<field id="api_sandbox_public_key" type="text" sortOrder="6" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Public Key</label>
<depends>
<field id="api_mode">0</field>
<field id="api_version">bread_2</field>
</depends>
</field>
<field id="api_sandbox_secret_key" type="obscure" sortOrder="7" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
Expand All @@ -70,23 +70,23 @@
</depends>
</field>
<field id="api_sandbox_integration_key" type="text" sortOrder="8" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Integration Key</label>
<depends>
<field id="api_mode">0</field>
<field id="api_version">bread_2</field>
</depends>
</field>
<field id="classic_api_public_key" type="text" sortOrder="9" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Classic Live API Public Key</label>
<depends>
<field id="api_mode">1</field>
<field id="api_version">classic</field>
</depends>
</field>
<field id="classic_api_secret_key" type="obscure" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Classic Live API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
Expand All @@ -95,15 +95,15 @@
</depends>
</field>
<field id="classic_api_sandbox_public_key" type="text" sortOrder="11" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Classic Sandbox API Public Key</label>
<depends>
<field id="api_mode">0</field>
<field id="api_version">classic</field>
</depends>
</field>
<field id="classic_api_sandbox_secret_key" type="obscure" sortOrder="12" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Classic Sandbox API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
Expand Down Expand Up @@ -488,44 +488,44 @@
<source_model>Bread\BreadCheckout\Model\System\Config\Source\ApiMode</source_model>
</field>
<field id="api_public_key" type="text" sortOrder="2" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Public Key</label>
<depends>
<field id="api_mode">1</field>
</depends>
</field>
<field id="api_secret_key" type="obscure" sortOrder="3" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
<field id="api_mode">1</field>
</depends>
</field>
<field id="api_integration_key" type="text" sortOrder="4" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Integration Key</label>
<depends>
<field id="api_mode">1</field>
</depends>
</field>
<field id="api_sandbox_public_key" type="text" sortOrder="5" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Public Key</label>
<depends>
<field id="api_mode">0</field>
</depends>
</field>
<field id="api_sandbox_secret_key" type="obscure" sortOrder="6" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
<field id="api_mode">0</field>
</depends>
</field>
<field id="api_sandbox_integration_key" type="text" sortOrder="7" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Integration Key</label>
<depends>
<field id="api_mode">0</field>
Expand Down
12 changes: 6 additions & 6 deletions etc/adminhtml/system.ca.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,44 +24,44 @@
<source_model>Bread\BreadCheckout\Model\System\Config\Source\ApiMode</source_model>
</field>
<field id="api_public_key" type="text" sortOrder="2" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Public Key</label>
<depends>
<field id="api_mode">1</field>
</depends>
</field>
<field id="api_secret_key" type="obscure" sortOrder="3" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
<field id="api_mode">1</field>
</depends>
</field>
<field id="api_integration_key" type="text" sortOrder="4" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Integration Key</label>
<depends>
<field id="api_mode">1</field>
</depends>
</field>
<field id="api_sandbox_public_key" type="text" sortOrder="5" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Public Key</label>
<depends>
<field id="api_mode">0</field>
</depends>
</field>
<field id="api_sandbox_secret_key" type="obscure" sortOrder="6" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
<field id="api_mode">0</field>
</depends>
</field>
<field id="api_sandbox_integration_key" type="text" sortOrder="7" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-50 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Integration Key</label>
<depends>
<field id="api_mode">0</field>
Expand Down
20 changes: 10 additions & 10 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
<source_model>Bread\BreadCheckout\Model\System\Config\Source\ApiMode</source_model>
</field>
<field id="api_public_key" type="text" sortOrder="3" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Public Key</label>
<depends>
<field id="api_mode">1</field>
<field id="api_version">bread_2</field>
</depends>
</field>
<field id="api_secret_key" type="obscure" sortOrder="4" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
Expand All @@ -45,23 +45,23 @@
</depends>
</field>
<field id="api_integration_key" type="text" sortOrder="5" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Live API Integration Key</label>
<depends>
<field id="api_mode">1</field>
<field id="api_version">bread_2</field>
</depends>
</field>
<field id="api_sandbox_public_key" type="text" sortOrder="6" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Public Key</label>
<depends>
<field id="api_mode">0</field>
<field id="api_version">bread_2</field>
</depends>
</field>
<field id="api_sandbox_secret_key" type="obscure" sortOrder="7" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
Expand All @@ -70,23 +70,23 @@
</depends>
</field>
<field id="api_sandbox_integration_key" type="text" sortOrder="8" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Sandbox API Integration Key</label>
<depends>
<field id="api_mode">0</field>
<field id="api_version">bread_2</field>
</depends>
</field>
<field id="classic_api_public_key" type="text" sortOrder="9" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Classic Live API Public Key</label>
<depends>
<field id="api_mode">1</field>
<field id="api_version">classic</field>
</depends>
</field>
<field id="classic_api_secret_key" type="obscure" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Classic Live API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
Expand All @@ -95,15 +95,15 @@
</depends>
</field>
<field id="classic_api_sandbox_public_key" type="text" sortOrder="11" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80 validate-length minimum-length-20</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Classic Sandbox API Public Key</label>
<depends>
<field id="api_mode">0</field>
<field id="api_version">classic</field>
</depends>
</field>
<field id="classic_api_sandbox_secret_key" type="obscure" sortOrder="12" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<validate>validate-length maximum-length-80</validate>
<frontend_class>validate-length maximum-length-80</frontend_class>
<label>Classic Sandbox API Secret Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
Expand Down