-
Notifications
You must be signed in to change notification settings - Fork 3
/
system.xml
116 lines (115 loc) · 6.41 KB
/
system.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0"?>
<!--
/**
* BuyBox Gift Card payment module for Magento
*
*
* LICENSE: This source file is subject to the version 3.0 of the Open
* Software License (OSL-3.0) that is available through the world-wide-web
* at the following URI: http://opensource.org/licenses/OSL-3.0.
*
* @author Studiolab <[email protected]>
* @license http://opensource.org/licenses/OSL-3.0
* @link https://www.buybox.net/
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="payment">
<group id="buybox_payment" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="0">
<comment>
<![CDATA[
<div class="buybox-payment-logo"></div>
<div class="buybox-payment-text">Offer more ways to pay with BuyBox.
<br/>Gift Card.
</div>]]>
</comment>
<fieldset_css>complex buybox-section</fieldset_css>
<frontend_model>BuyBox\Payment\Block\Adminhtml\System\Config\Fieldset\Payment</frontend_model>
<group id="general" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0"
translate="label">
<label>General Configuration</label>
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>active</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/buybox_payment/active</config_path>
</field>
<field id="title" sortOrder="10" translate="label" type="text" showInDefault="1"
showInWebsite="1"
showInStore="0">
<label>Title</label>
<config_path>payment/buybox_payment/title</config_path>
<validate>required-entry</validate>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="sort_order" translate="label" type="text" sortOrder="3" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Sort Order</label>
<frontend_class>validate-number</frontend_class>
<config_path>payment/buybox_payment/sort_order</config_path>
</field>
<field id="environment" translate="label" type="select" sortOrder="1" showInDefault="1"
showInWebsite="1"
showInStore="1">
<label>Environment</label>
<source_model>BuyBox\Payment\Model\Adminhtml\Source\Environment</source_model>
<config_path>payment/buybox_payment/environment</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="payment_action" translate="label" type="select" sortOrder="50" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Payment Action</label>
<source_model>BuyBox\Payment\Model\Adminhtml\Source\PaymentAction</source_model>
<config_path>payment/buybox_payment/payment_action</config_path>
<validate>required-entry</validate>
</field>
<field id="debug" translate="label" type="select" sortOrder="85" showInDefault="1" showInWebsite="1"
showInStore="0">
<label>Debug</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/buybox_payment/debug</config_path>
</field>
</group>
<group id="api" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0"
translate="label">
<label>API Configuration</label>
<field id="service_domain" translate="label" sortOrder="1" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Service Domain</label>
<config_path>payment/buybox_payment/service_domain</config_path>
<validate>required-entry no-whitespace</validate>
</field>
<field id="api_username" sortOrder="10" translate="label" type="text" showInDefault="1"
showInWebsite="1"
showInStore="0">
<label>API Username</label>
<config_path>payment/buybox_payment/api_username</config_path>
<validate>required-entry no-whitespace</validate>
</field>
<field id="api_password" sortOrder="20" translate="label" type="obscure" showInDefault="1"
showInWebsite="1"
showInStore="0">
<label>API Password</label>
<config_path>payment/buybox_payment/api_password</config_path>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<validate>required-entry no-whitespace</validate>
</field>
<field id="api_signature" sortOrder="30" translate="label" type="obscure" showInDefault="1"
showInWebsite="1"
showInStore="0">
<label>API Signature</label>
<config_path>payment/buybox_payment/api_signature</config_path>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<validate>required-entry no-whitespace</validate>
</field>
</group>
</group>
</section>
</system>
</config>