|
17 | 17 | <group id="authorizenet_acceptjs_required"/>
|
18 | 18 | </requires>
|
19 | 19 | </field>
|
20 |
| - <group id="required" translate="label" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="5"> |
| 20 | + <group id="required" translate="label" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="15"> |
21 | 21 | <label>Basic Authorize.Net Settings</label>
|
22 | 22 | <attribute type="expanded">1</attribute>
|
23 | 23 | <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
|
|
39 | 39 | <label>API Login ID</label>
|
40 | 40 | <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
|
41 | 41 | <config_path>payment/authorizenet_acceptjs/login</config_path>
|
| 42 | + <validate>required-entry</validate> |
| 43 | + <depends> |
| 44 | + <field id="*/*/active">1</field> |
| 45 | + </depends> |
42 | 46 | </field>
|
43 | 47 | <field id="trans_key" translate="label" type="obscure" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0">
|
44 | 48 | <label>Transaction Key</label>
|
45 | 49 | <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
|
46 | 50 | <config_path>payment/authorizenet_acceptjs/trans_key</config_path>
|
| 51 | + <validate>required-entry</validate> |
| 52 | + <depends> |
| 53 | + <field id="*/*/active">1</field> |
| 54 | + </depends> |
47 | 55 | </field>
|
48 | 56 | <field id="public_client_key" translate="label" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
|
49 | 57 | <label>Public Client Key</label>
|
50 | 58 | <config_path>payment/authorizenet_acceptjs/public_client_key</config_path>
|
| 59 | + <validate>required-entry</validate> |
| 60 | + <depends> |
| 61 | + <field id="*/*/active">1</field> |
| 62 | + </depends> |
51 | 63 | </field>
|
52 | 64 | <field id="trans_signature_key" translate="label" type="obscure" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="0">
|
53 | 65 | <label>Signature Key</label>
|
54 | 66 | <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
|
55 | 67 | <config_path>payment/authorizenet_acceptjs/trans_signature_key</config_path>
|
| 68 | + <validate>required-entry</validate> |
| 69 | + <depends> |
| 70 | + <field id="*/*/active">1</field> |
| 71 | + </depends> |
56 | 72 | </field>
|
57 | 73 | <field id="trans_md5" translate="label" type="obscure" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="0">
|
58 | 74 | <label>Merchant MD5 (deprecated)</label>
|
59 | 75 | <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
|
60 | 76 | <config_path>payment/authorizenet_acceptjs/trans_md5</config_path>
|
| 77 | + <depends> |
| 78 | + <field id="*/*/active">1</field> |
| 79 | + </depends> |
61 | 80 | </field>
|
62 | 81 | </group>
|
63 | 82 | <group id="advanced" translate="label" showInDefault="1" showInWebsite="1" showInStore="0" sortOrder="20">
|
|
0 commit comments