|
18 | 18 | <frontend_model>Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Payment</frontend_model>
|
19 | 19 | <comment><![CDATA[<a href="https://www.braintreegateway.com/login" target="_blank">Click here to login to your existing Braintree account</a>. Or to setup a new account and accept payments on your website, <a href="https://apply.braintreegateway.com/signup/us" target="_blank">click here to signup for a Braintree account</a>.]]></comment>
|
20 | 20 | <attribute type="activity_path">payment/braintree/active</attribute>
|
| 21 | + <field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0"> |
| 22 | + <label>Enabled Braintree</label> |
| 23 | + <source_model>Magento\Config\Model\Config\Source\Yesno</source_model> |
| 24 | + <config_path>payment/braintree/active</config_path> |
| 25 | + <requires> |
| 26 | + <group id="braintree_required"/> |
| 27 | + </requires> |
| 28 | + </field> |
| 29 | + <field id="active_braintree_pay_pal" translate="label" type="select" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="0"> |
| 30 | + <label>Enabled PayPal through Braintree</label> |
| 31 | + <source_model>Magento\Config\Model\Config\Source\Yesno</source_model> |
| 32 | + <config_path>payment/braintree_paypal/active</config_path> |
| 33 | + <requires> |
| 34 | + <group id="braintree_required"/> |
| 35 | + </requires> |
| 36 | + </field> |
21 | 37 | <group id="braintree_required" translate="label" showInDefault="1" showInWebsite="1" sortOrder="5">
|
22 | 38 | <label>Basic Braintree Settings</label>
|
23 | 39 | <attribute type="expanded">1</attribute>
|
24 | 40 | <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
|
25 |
| - <field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0"> |
26 |
| - <label>Enabled</label> |
27 |
| - <source_model>Magento\Config\Model\Config\Source\Yesno</source_model> |
28 |
| - <config_path>payment/braintree/active</config_path> |
29 |
| - </field> |
30 | 41 | <field id="title" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
31 | 42 | <label>Title</label>
|
32 | 43 | <config_path>payment/braintree/title</config_path>
|
|
59 | 70 | <config_path>payment/braintree/private_key</config_path>
|
60 | 71 | <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
|
61 | 72 | </field>
|
62 |
| - <field id="sort_order" translate="label" type="text" sortOrder="230" showInDefault="1" showInWebsite="1" showInStore="0"> |
63 |
| - <label>Sort Order</label> |
64 |
| - <frontend_class>validate-number</frontend_class> |
65 |
| - <config_path>payment/braintree/sort_order</config_path> |
66 |
| - </field> |
67 | 73 | </group>
|
68 | 74 | <group id="braintree_advanced" translate="label" showInDefault="1" showInWebsite="1" sortOrder="20">
|
69 | 75 | <label>Advanced Braintree Settings</label>
|
|
128 | 134 | <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
129 | 135 | <config_path>payment/braintree/usecache</config_path>
|
130 | 136 | </field>
|
| 137 | + <field id="sort_order" translate="label" type="text" sortOrder="230" showInDefault="1" showInWebsite="1" showInStore="0"> |
| 138 | + <label>Sort Order</label> |
| 139 | + <frontend_class>validate-number</frontend_class> |
| 140 | + <config_path>payment/braintree/sort_order</config_path> |
| 141 | + </field> |
131 | 142 | </group>
|
132 | 143 | <group id="braintree_country_specific" translate="label" showInDefault="1" showInWebsite="1" sortOrder="30">
|
133 | 144 | <label>Country Specific Settings</label>
|
|
153 | 164 | <group id="braintree_paypal" translate="label" showInDefault="1" showInWebsite="1" sortOrder="40">
|
154 | 165 | <label>PayPal through Braintree</label>
|
155 | 166 | <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
|
156 |
| - <field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0"> |
157 |
| - <label>Enabled</label> |
158 |
| - <source_model>Magento\Config\Model\Config\Source\Yesno</source_model> |
159 |
| - <config_path>payment/braintree_paypal/active</config_path> |
160 |
| - </field> |
161 | 167 | <field id="title" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
162 | 168 | <label>Title</label>
|
163 | 169 | <config_path>payment/braintree_paypal/title</config_path>
|
|
0 commit comments