|
10 | 10 | <field id="title" type="text" sortOrder="20" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
11 | 11 | <label>Payment label</label>
|
12 | 12 | <config_path>payment/pagarme_googlepay/title</config_path>
|
| 13 | + <depends> |
| 14 | + <field id="active">1</field> |
| 15 | + </depends> |
13 | 16 | </field>
|
14 | 17 | <field id="pagarme_account_id" type="text" sortOrder="30" showInWebsite="1" showInStore="1" showInDefault="1" translate="label, comment">
|
15 | 18 | <label>Pagar.me account ID</label>
|
16 | 19 | <comment><![CDATA[Consult the <a target='_blank' href='https://id.pagar.me/signin'>Dashboard</a> at: <i>Settings > Keys > Account ID</i>]]></comment>
|
17 | 20 | <config_path>pagarme_pagarme/hub/account_id</config_path>
|
| 21 | + <depends> |
| 22 | + <field id="active">1</field> |
| 23 | + </depends> |
18 | 24 | </field>
|
19 | 25 | <field id="merchant_id" type="text" sortOrder="40" showInWebsite="1" showInStore="1" showInDefault="1" translate="label, comment">
|
20 | 26 | <label>MerchantId Google Pay</label>
|
21 | 27 | <comment><![CDATA[Google Pay identifier required to create successful orders. Find out how to request <a target='_blank' href='https://pay.google.com/business/console/?hl=pt-br'>here</a>.]]></comment>
|
22 | 28 | <config_path>payment/pagarme_googlepay/merchant_id</config_path>
|
| 29 | + <depends> |
| 30 | + <field id="active">1</field> |
| 31 | + </depends> |
23 | 32 | </field>
|
24 | 33 | <field id="merchant_name" type="text" sortOrder="50" showInWebsite="1" showInStore="1" showInDefault="1" translate="label, tooltip">
|
25 | 34 | <label>Store name on Google Pay</label>
|
26 | 35 | <config_path>payment/pagarme_googlepay/merchant_name</config_path>
|
27 | 36 | <tooltip>Name of your store that will be displayed to the customer while purchasing through Google Pay.</tooltip>
|
| 37 | + <depends> |
| 38 | + <field id="active">1</field> |
| 39 | + </depends> |
28 | 40 | </field>
|
29 | 41 | <field id="sort_order" type="text" sortOrder="60" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
30 | 42 | <label>Payment method order</label>
|
31 | 43 | <config_path>payment/pagarme_googlepay/sort_order</config_path>
|
| 44 | + <depends> |
| 45 | + <field id="active">1</field> |
| 46 | + </depends> |
32 | 47 | </field>
|
33 | 48 | </group>
|
34 | 49 | </include>
|
0 commit comments