-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathaccount.xml
277 lines (242 loc) · 19.3 KB
/
account.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* It is available through the world-wide-web at this URL:
* https://tldrlegal.com/license/mit-license
* If you are unable to obtain it through the world-wide-web, please send an email
* to support@buckaroo.nl so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please contact support@buckaroo.nl for more information.
*
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<!-- General settings section -->
<group id="buckaroo_magento2_account_section" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General configuration and account information</label>
<fieldset_css>buckaroo_magento2-section</fieldset_css>
<field id="active" translate="label comment tooltip" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<comment>Enable or disable the Buckaroo module.</comment>
<tooltip>Selecting 'Off' will overrule all individual settings.</tooltip>
<source_model>Buckaroo\Magento2\Model\Config\Source\Enablemode</source_model>
<config_path>buckaroo_magento2/account/active</config_path>
</field>
<field id="secret_key" translate="label comment tooltip" type="obscure" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Secret key</label>
<comment><![CDATA[Enter your Buckaroo Secret Key.]]></comment>
<tooltip>The Secret Key can be retrieved in Payment Plaza under Configuration > Security > Secret Key. For support contact Buckaroo.</tooltip>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<config_path>buckaroo_magento2/account/secret_key</config_path>
</field>
<field id="merchant_key" translate="label comment tooltip" type="obscure" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>(Merchant) key</label>
<comment><![CDATA[Enter your Buckaroo merchant/website key.]]></comment>
<tooltip>The (Merchant) Key can be retrieved in Payment Plaza under My Buckaroo > Websites. For support contact Buckaroo.</tooltip>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<config_path>buckaroo_magento2/account/merchant_key</config_path>
</field>
<field id="credentials_checker" translate="label comment" type="button" sortOrder="32" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Buckaroo\Magento2\Block\Adminhtml\System\Config\CredentialsChecker</frontend_model>
<depends>
<field id="active" separator=",">1,2</field>
</depends>
</field>
<field id="merchant_guid" translate="label comment tooltip" type="text" sortOrder="35" showInDefault="1" showInWebsite="1" showInStore="1">
<label>(Merchant) guid</label>
<comment><![CDATA[Enter your Buckaroo merchant guid.]]></comment>
<tooltip>The (Merchant) Guid can be retrieved in Payment Plaza under My Buckaroo > Details > Guid. For support contact Buckaroo.</tooltip>
<config_path>buckaroo_magento2/account/merchant_guid</config_path>
</field>
<field id="transaction_label" translate="label comment tooltip" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Transaction label</label>
<comment><![CDATA[The transaction description, shown in Buckaroo plaza and visible on bank account of consumers.]]></comment>
<tooltip><![CDATA[Available substitutions: <code>{order_number}</code>, <code>{shop_name}</code>, <code>{product_name}</code>(first product name)]]></tooltip>
<backend_model>Buckaroo\Magento2\Model\Config\Backend\TransactionLabel</backend_model>
<config_path>buckaroo_magento2/account/transaction_label</config_path>
</field>
<field id="invoice_handling" translate="label comment tooltip" type="select" sortOrder="45" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Invoice Handling</label>
<comment><![CDATA[Select the moment when the invoice should be created.]]></comment>
<tooltip><![CDATA[Select the moment when the invoice should be created.]]></tooltip>
<source_model>Buckaroo\Magento2\Model\Config\Source\InvoiceHandlingOptions</source_model>
<config_path>buckaroo_magento2/account/invoice_handling</config_path>
</field>
<field id="certificate_label" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Certificate label</label>
<comment><![CDATA[Enter a name for the certificate. This is purely administrative.]]></comment>
<backend_model>Buckaroo\Magento2\Model\Config\Backend\CertificateLabel</backend_model>
</field>
<field id="certificate_upload" translate="label" type="file" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Upload your Buckaroo private key certificate</label>
<backend_model>Buckaroo\Magento2\Model\Config\Backend\Certificate</backend_model>
<config_path>buckaroo_magento2/account/certificate_upload</config_path>
</field>
<field id="certificate_file" translate="label tooltip" type="select" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Certificate file</label>
<tooltip>The certificate can be retrieved in Payment Plaza under Configuration > Security > Certificates. For support contact Buckaroo.</tooltip>
<source_model>Buckaroo\Magento2\Model\Config\Source\Certificates</source_model>
<config_path>buckaroo_magento2/account/certificate_file</config_path>
</field>
<field id="idin" translate="label comment tooltip" type="select" sortOrder="70" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Enabled iDIN verification</label>
<comment><![CDATA[Enabled iDIN verification]]></comment>
<source_model>Buckaroo\Magento2\Model\Config\Source\Enablemode</source_model>
<config_path>buckaroo_magento2/account/idin</config_path>
</field>
<field id="idin_mode" translate="label comment tooltip" type="select" sortOrder="70" showInDefault="1" showInWebsite="0" showInStore="0">
<label>iDIN mode</label>
<comment><![CDATA[iDIN mode]]></comment>
<source_model>Buckaroo\Magento2\Model\Config\Source\Idinmode</source_model>
<config_path>buckaroo_magento2/account/idin_mode</config_path>
<depends>
<field id="idin" separator=",">1,2</field>
</depends>
</field>
<field id="idin_category" translate="label" type="multiselect" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Select Categorys for iDIN verification</label>
<source_model>Buckaroo\Magento2\Model\Config\Source\Categorylist</source_model>
<config_path>buckaroo_magento2/account/idin_category</config_path>
<depends>
<field id="idin_mode">2</field>
</depends>
</field>
<group id="buckaroo_magento2_advanced" translate="label comment" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced Configuration</label>
<comment><![CDATA[These options are only intended for expert users. Tampering with the default settings may negatively affect the workflow and performance of all Buckaroo payment methods. Use at your own risk.]]></comment>
<field id="order_status_new" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>New status</label>
<comment><![CDATA[This status will be given to new orders.]]></comment>
<source_model>Buckaroo\Magento2\Model\Config\Source\StatusesNew</source_model>
<config_path>buckaroo_magento2/account/order_status_new</config_path>
</field>
<field id="order_status_pending" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Pending payment status</label>
<comment><![CDATA[This status will be given to orders pending payment.]]></comment>
<source_model>Buckaroo\Magento2\Model\Config\Source\StatusesPending</source_model>
<config_path>buckaroo_magento2/account/order_status_pending</config_path>
</field>
<field id="order_status_success" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Payment success status</label>
<comment><![CDATA[This status will be given to orders paid.]]></comment>
<source_model>Buckaroo\Magento2\Model\Config\Source\StatusesSuccess</source_model>
<config_path>buckaroo_magento2/account/order_status_success</config_path>
</field>
<field id="order_status_failed" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Payment failed status</label>
<comment><![CDATA[This status will be given to unsuccessful orders.]]></comment>
<source_model>Buckaroo\Magento2\Model\Config\Source\StatusesFailed</source_model>
<config_path>buckaroo_magento2/account/order_status_failed</config_path>
</field>
<field id="order_confirmation_email" translate="label comment" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send order confirmation email</label>
<comment><![CDATA[Send a mail after successful creating the order.]]></comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>buckaroo_magento2/account/order_confirmation_email</config_path>
</field>
<field id="order_confirmation_email_sync" translate="label comment" type="select" sortOrder="55" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send order confirmation email in sync mode</label>
<comment><![CDATA[Helps to prevent order status conflicts between cron based (async) processing of emails and order status handling. Redefines "General Settings / Asynchronous sending" setting.]]></comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>buckaroo_magento2/account/order_confirmation_email_sync</config_path>
</field>
<field id="invoice_email" translate="label comment" type="select" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send transactional invoice email</label>
<comment><![CDATA[Send a mail after successful payment.]]></comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>buckaroo_magento2/account/invoice_email</config_path>
</field>
<field id="success_redirect" translate="label comment" type="text" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Redirect url after 'Success'</label>
<comment><![CDATA[Redirect after successful payments.]]></comment>
<config_path>buckaroo_magento2/account/success_redirect</config_path>
</field>
<field id="failure_redirect" translate="label comment" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Redirect url after 'Failure'</label>
<comment><![CDATA[Redirect after failed payments.<br>Please note that this setting does not apply to all express payment methods, such as iDEAL fast checkout.]]></comment>
<config_path>buckaroo_magento2/account/failure_redirect</config_path>
</field>
<field id="failure_redirect_to_checkout" translate="label comment" type="select" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Redirect to checkout payment section after 'Failure'</label>
<comment><![CDATA[Redirect after failed payments.]]></comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>buckaroo_magento2/account/failure_redirect_to_checkout</config_path>
</field>
<field id="cancel_on_failed" translate="label comment" type="select" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1">
<label>'Canceled' state on failed payment</label>
<comment><![CDATA[Orders will stay open after failed payments.]]></comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>buckaroo_magento2/account/cancel_on_failed</config_path>
</field>
<field id="debug_types" translate="label comment" type="multiselect" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Debugging</label>
<comment><![CDATA[Decide what to debug. Log files will be created within the var/log/Buckaroo/ directory.]]></comment>
<source_model>Buckaroo\Magento2\Model\Config\Source\DebugTypes</source_model>
<config_path>buckaroo_magento2/account/debug_types</config_path>
</field>
<field id="debug_email" translate="label comment" type="text" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Debug email</label>
<comment><![CDATA[Debug information will be sent to these comma-separated email addresses.]]></comment>
<config_path>buckaroo_magento2/account/debug_email</config_path>
<validate>validate-emails</validate>
</field>
<field id="limit_by_ip" translate="label comment" type="select" sortOrder="140" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Display only for selected IPs</label>
<comment><![CDATA[Show method only to Magento set IPs.]]></comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>buckaroo_magento2/account/limit_by_ip</config_path>
</field>
<field id="fee_percentage_mode" translate="label comment" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Fee percentage mode</label>
<comment><![CDATA[This setting only applies to percentage-based Buckaroo fees.<br />Please choose over which amount the fee percentage is calculated.]]></comment>
<source_model>Buckaroo\Magento2\Model\Config\Source\FeePercentageMode</source_model>
<config_path>buckaroo_magento2/account/fee_percentage_mode</config_path>
</field>
<field id="payment_fee_label" translate="label comment" type="text" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Payment fee frontend label</label>
<comment><![CDATA[This label will be displayed next to the fee on the checkout, order, invoice and creditmemo pages and pdfs.]]></comment>
<config_path>buckaroo_magento2/account/payment_fee_label</config_path>
</field>
<field id="create_order_before_transaction" translate="label comment" type="select" sortOrder="170" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Create order before transaction</label>
<comment><![CDATA[This will create an order before setting up the transaction with Buckaroo.]]></comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>buckaroo_magento2/account/create_order_before_transaction</config_path>
</field>
<field id="ip_header" translate="label comment" type="text" sortOrder="180" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Client IP detection headers</label>
<comment><![CDATA[Optional HTTP headers what will be taken into account for client IP detection. Comma separated list of multiple values is allowed.]]></comment>
<tooltip>Example: "X-Forwarded-For,CF-Connecting-IP". If "X-Forwarded-For" is empty then "CF-Connecting-IP" will be checked.</tooltip>
<config_path>buckaroo_magento2/account/ip_header</config_path>
</field>
<field id="selection_type" translate="label" type="select" sortOrder="185" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Use selection</label>
<source_model>Buckaroo\Magento2\Model\Config\Source\SelectionType</source_model>
<comment><![CDATA[Optional use selection for iDEAL bank and CreditCard]]></comment>
<config_path>buckaroo_magento2/account/selection_type</config_path>
</field>
<field id="customer_additional_info" translate="label comment" type="multiselect" sortOrder="200" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Add customer data to request</label>
<source_model>Buckaroo\Magento2\Model\Config\Source\CustomerAdditionalInfo</source_model>
<comment><![CDATA[When adding custom fields to your transaction request you have to also add them to your Buckaroo <a href = "https://plaza.buckaroo.nl/Configuration/Merchant/CustomFields" target="_blank"> Plaza </a> account. Click on <a href="https://support.buckaroo.nl/categorie%C3%ABn/plugins/magento-2/faq-magento-2/add-custom-fields-to-transaction-requests" target="_blank"> read more </a> for additional information about adding this fields to the Plaza.]]></comment>
<config_path>buckaroo_magento2/account/customer_additional_info</config_path>
<can_be_empty>1</can_be_empty>
</field>
<field id="advanced_export_giftcards" translate="label comment" type="select" sortOrder="210" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced order export for giftcards</label>
<comment><![CDATA[Advanced order export, added used gitcards]]></comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>buckaroo_magento2/account/advanced_export_giftcards</config_path>
</field>
</group>
</group>
</include>