Skip to content

Commit

Permalink
Pola uwierzytelniające podczas konfiguracji są wymagane (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo authored Nov 16, 2023
1 parent 82dc7a8 commit fea6ae5
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
</field>
<field id="api_key_tpay" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>API key</label>
<validate>validate-length maximum-length-126</validate>
<validate>no-whitespace validate-length maximum-length-126</validate>
</field>
<field id="api_password" translate="label comment" type="text" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="1">
<label>API password</label>
<validate>validate-length maximum-length-40</validate>
<validate>no-whitespace validate-length maximum-length-40</validate>
</field>
<field id="show_payment_channels_online" translate="label" type="select" sortOrder="7" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Only online methods</label>
Expand All @@ -53,16 +53,13 @@
<label>Send new invoice email to customer</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="check_proxy" translate="label" type="select" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="1">
<label>My server use proxy</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="check_server" translate="label" type="select" sortOrder="12" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Validate Tpay notifications server IP (recommended)</label>
<field id="use_sandbox" translate="label" type="select" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Use sandbox mode (avoid using it in real production store)</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="sort_order" translate="label" type="text" sortOrder="13" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Sort order</label>
<validate>validate-number</validate>
</field>
<field id="allowspecific" translate="label" type="allowspecific" sortOrder="14" showInDefault="1" showInWebsite="1" showInStore="1">
<label>All or allowed countries</label>
Expand All @@ -74,10 +71,12 @@
</field>
<field id="min_order_total" translate="label" type="text" sortOrder="16" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Minimal amount for method</label>
<validate>validate-number</validate>
</field>
<field id="max_order_total" translate="label" type="text" sortOrder="17" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Maximal amount for method</label>
<comment>Leave empty for no limit</comment>
<validate>validate-number</validate>
</field>
</group>
</section>
Expand Down

0 comments on commit fea6ae5

Please sign in to comment.