-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathsystem.xml
More file actions
executable file
·295 lines (295 loc) · 27.4 KB
/
system.xml
File metadata and controls
executable file
·295 lines (295 loc) · 27.4 KB
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<?xml version="1.0"?>
<!--
/**
* Copyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
-->
<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="amazon_pay" translate="label" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="1">
<label><![CDATA[<div class="amazon-pay-logo"></div><div class="amazon-payment-byline"><strong>Amazon Pay for Magento</strong>Enable a familiar, fast checkout for hundreds of millions of active Amazon customers globally.</div>]]></label>
<fieldset_css>complex amazon-pay-section</fieldset_css>
<frontend_model>Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Payment</frontend_model>
<field id="autokeyexchange" type="text" translate="label comment" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Amazon\Pay\Block\Adminhtml\System\Config\Form\AutoKeyExchangeConfig</frontend_model>
</field>
<group id="credentials" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Credentials</label>
<field id="active_v2" translate="label" type="select" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Amazon Pay</label>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment_v2/active</config_path>
</field>
<field id="private_key_pem" translate="label comment" type="Amazon\Pay\Model\Config\File\PemFile" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Private Key</label>
<config_path>payment/amazon_payment_v2/private_key</config_path>
<backend_model>Amazon\Pay\Model\Config\File\PrivateKeyPem</backend_model>
<upload_dir config="system" scope_info="1">amazon</upload_dir>
<comment><![CDATA[<a href="#" class="amazon-private-key-change-key-type">Change Private Key input method]]></comment>
</field>
<field id="private_key_text" translate="label comment" type="textarea" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Private Key</label>
<config_path>payment/amazon_payment_v2/private_key</config_path>
<frontend_model>Amazon\Pay\Model\Config\Form\Privatekey</frontend_model>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<validate>validate-private-key</validate>
<comment><![CDATA[<a href="#" class="amazon-private-key-change-key-type">Change Private Key input method]]></comment>
</field>
<field id="private_key_selected" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Private Key Selected</label>
<config_path>payment/amazon_payment_v2/private_key_selected</config_path>
<frontend_model>Amazon\Pay\Model\Config\Form\PrivateKeySelected</frontend_model>
</field>
<field id="private_key_selector" translate="label comment" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Private Key</label>
<frontend_model>Amazon\Pay\Block\Adminhtml\System\Config\Form\PrivateKeySelector</frontend_model>
</field>
<field id="public_key_id" translate="label comment" type="text" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Public Key ID</label>
<config_path>payment/amazon_payment_v2/public_key_id</config_path>
<validate>validate-amzn-public-key-id</validate>
<depends><field id="active_v2">1</field></depends>
</field>
<field id="merchant_id_v2" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Merchant Id</label>
<config_path>payment/amazon_payment_v2/merchant_id</config_path>
<depends><field id="active_v2">1</field></depends>
</field>
<field id="store_id" translate="label comment" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Store Id</label>
<comment><![CDATA[Sometimes referred to as "Client ID" in Seller Central.]]></comment>
<config_path>payment/amazon_payment_v2/store_id</config_path>
<validate>validate-amzn-store-id</validate>
<depends><field id="active_v2">1</field></depends>
</field>
<field id="payment_region" translate="label" type="select" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Payment Region</label>
<source_model>Amazon\Pay\Model\Config\Source\PaymentRegion</source_model>
<config_path>payment/amazon_payment/payment_region</config_path>
<depends><field id="active_v2">1</field></depends>
</field>
<field id="sandbox" translate="label" type="select" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Sandbox</label>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment/sandbox</config_path>
<depends><field id="active_v2">1</field></depends>
</field>
<field id="ipn_url_v2" type="note" translate="label comment" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>IPN URL</label>
<frontend_model>Amazon\Pay\Block\Adminhtml\System\Config\Form\IpnUrl</frontend_model>
<comment><![CDATA[To enable instant payment notifications (IPN), go to Seller Central, click Settings > Integration Settings > Edit, and then paste the above URL in the Merchant URL field, and click Save.]]></comment>
<depends><field id="active_v2">1</field></depends>
</field>
</group>
<group id="options" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Options</label>
<field id="v2_lwa_enabled" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Amazon Sign-in</label>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment_v2/lwa_enabled</config_path>
<comment><![CDATA[Note: If you've disabled both Amazon Sign-in and Magento Guest Checkout, your customers will only be able to use Amazon Pay after they signed in with a Magento account.]]></comment>
</field>
<field id="payment_action_v2" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Payment</label>
<source_model>Amazon\Pay\Model\Config\Source\PaymentAction</source_model>
<config_path>payment/amazon_payment_v2/payment_action</config_path>
</field>
<field id="multicurrency" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Multi-currency Functionality</label>
<comment><![CDATA[Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.]]></comment>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment/multicurrency</config_path>
</field>
<field id="authorization_mode" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Authorization Mode</label>
<source_model>Amazon\Pay\Model\Config\Source\AuthorizationMode</source_model>
<config_path>payment/amazon_payment/authorization_mode</config_path>
</field>
</group>
<group id="alexa" translate="label" type="text" sortOrder="25" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Alexa Delivery Notifications</label>
<field id="active" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Alexa Delivery Notifications</label>
<comment><![CDATA[Note: If you enable Alexa Delivery Notifications, Amazon Pay will send notifications to the customer’s Alexa device when the order is out for delivery and when it’s delivered. For more information, see <a href="https://amazonpaylegacyintegrationguide.s3.amazonaws.com/docs/amazon-pay-onetime/delivery-notifications.html" target="_blank">Setting up delivery notifications</a>, and <a href="https://eps-eu-external-file-share.s3.eu-central-1.amazonaws.com/Alexa/Delivery+Notifications/amazon-pay-delivery-tracker-supported-carriers-v2.csv" target="_blank">supported carriers</a>.]]></comment>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment_v2/alexa_active</config_path>
</field>
<field id="carrier_codes" translate="label comment" sortOrder="10" showInDefault="1" showInStore="1" showInWebsite="1">
<label>Carrier Codes</label>
<comment><![CDATA[This option allows to map carriers from your shop to the Amazon Pay predefined carriers. Please use the Carrier codes form by selecting your available carriers and assign them to the matching one in the Amazon Pay carrier list.]]></comment>
<frontend_model>Amazon\Pay\Block\Adminhtml\System\Config\Form\CarrierCodes</frontend_model>
<backend_model>Magento\Config\Model\Config\Backend\Serialized\ArraySerialized</backend_model>
<config_path>payment/amazon_payment_v2/alexa_carrier_codes</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
</group>
<group id="advanced" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced</label>
<field id="version_v2" type="text" translate="label comment" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Amazon\Pay\Block\Adminhtml\System\Config\Form\Version</frontend_model>
</field>
<group id="frontend" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Frontend</label>
<field id="display_language" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Button Display Language</label>
<config_path>payment/amazon_pay/button_display_language</config_path>
<comment><![CDATA[Controls button and checkout language. The default value is your shop’s locale. Supported options are en_GB, de_DE, fr_FR, it_IT, or es_ES.]]></comment>
<validate>validate-amzn-display-language</validate>
</field>
<field id="button_color_v2" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Button Color</label>
<config_path>payment/amazon_payment_v2/button_color</config_path>
<source_model>Amazon\Pay\Model\Config\Source\ButtonColor</source_model>
</field>
<field id="pwa_pp_button_is_visible" translate="label" type="select" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Amazon Pay button on product page</label>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment/pwa_pp_button_is_visible</config_path>
</field>
<field id="minicart_button_is_visible" translate="label comment" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Amazon Pay button in minicart</label>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment/minicart_button_is_visible</config_path>
</field>
<field id="amazonloggin" translate="label comment" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Amazon Pay in final checkout step</label>
<comment><![CDATA[Note: When enabled, Amazon Pay will appear in the list of available payment methods at the final checkout step.]]></comment>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazonlogin/active</config_path>
</field>
<field id="sort_order" translate="label comment" type="text" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Sort Order</label>
<frontend_class>validate-number</frontend_class>
<config_path>payment/amazon_payment_v2/sort_order</config_path>
<depends>
<field id="amazonloggin">1</field>
</depends>
</field>
</group>
<group id="sales_options" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Sales Options</label>
<field id="storename" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="1">
<label>Store Name</label>
<config_path>payment/amazon_payment/storename</config_path>
</field>
<field id="restrict_categories" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Restrict Product Categories</label>
<config_path>payment/amazon_payment_v2/restrict_categories</config_path>
<frontend_model>Amazon\Pay\Block\Adminhtml\System\Config\Form\RestrictCategories</frontend_model>
</field>
</group>
<group id="shipping_restrictions" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Shipping Restrictions</label>
<field id="po_boxes" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Restrict Post Office Boxes</label>
<comment><![CDATA[Note: When enabled, post office box addresses in US, CA, UK, FR, DE, ES, PT, IT, AU aren't accepted.]]></comment>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment_v2/shipping_restrict_po_boxes</config_path>
</field>
<field id="packstations" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Restrict Packstations</label>
<comment><![CDATA[Note: Packstations are only available in Germany. When enabled, Packstation addresses aren't accepted.]]></comment>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment_v2/shipping_restrict_packstations</config_path>
</field>
</group>
<group id="buy_now" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Buy Now</label>
<field id="spc_enabled" translate="label comment" type="select" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Buy Now</label>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment_v2/spc_enabled</config_path>
<comment><![CDATA[This feature is still in beta stage. For instructions on how to activate it, contact your account manager or <a target="_blank" href="https://sellercentral.amazon.com/cu/contact-us">Amazon Pay merchant support</a>.]]></comment>
</field>
<field id="spc_api_domain" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Buy Now Endpoint URL</label>
<config_path>payment/amazon_payment_v2/spc_api_domain</config_path>
<frontend_model>Amazon\Pay\Block\Adminhtml\System\Config\Form\SpcApiDomain</frontend_model>
<backend_model>Amazon\Pay\Model\Config\Form\SpcApiDomainBackend</backend_model>
<comment><![CDATA[This URL is used to synchronize tokens with Amazon Pay. Your admin panel's URL is set by default. If your admin panel or API endpoint URL differs from this, enter the corresponding URL—including the slash at the end—in the following format:<br>https://www.example.com/]]></comment>
</field>
<field id="spc_tokens_sync" translate="label" type="button" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Buy Now Integration User Tokens</label>
<frontend_model>Amazon\Pay\Block\Adminhtml\System\Config\Button</frontend_model>
</field>
<field id="spc_tokens_sync_status" translate="label" type="label" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Buy Now Token Sync Status</label>
<frontend_model>Amazon\Pay\Block\Adminhtml\System\Config\SpcTokenSyncStatus</frontend_model>
</field>
</group>
<group id="extra_options" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Developer Options</label>
<field id="logging" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Logging</label>
<source_model>Amazon\Pay\Model\Config\Source\EnabledDisabled</source_model>
<config_path>payment/amazon_payment/logging</config_path>
</field>
<field id="loglist_v2" translate="label" type="text" sortOrder="11" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Developer Logs</label>
<depends>
<field id="logging">1</field>
</depends>
<frontend_model>Amazon\Pay\Block\Adminhtml\System\Config\Form\DeveloperLogs</frontend_model>
</field>
<field id="checkout_review_return_url" translate="label comment" type="text" sortOrder="18" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Amazon checkout review return URL</label>
<comment><![CDATA[<strong>Only change this value if required. Improper modifications can break the integration. After your customer chose their payment method and delivery address, they will be redirected to this URL. Don't enter a leading slash.]]></comment>
<config_path>payment/amazon_payment_v2/checkout_review_return_url</config_path>
</field>
<field id="checkout_review_url" translate="label comment" type="text" sortOrder="19" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Magento Checkout URL Path</label>
<comment><![CDATA[<strong>Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.</strong><br />Magento redirect to this URL after processing the Amazon session initiation, where checkout happens. Do not use a leading slash.]]></comment>
<config_path>payment/amazon_payment_v2/checkout_review_url</config_path>
</field>
<field id="checkout_result_return_url" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Amazon checkout result return URL</label>
<comment><![CDATA[<strong>Only change this value if required. Improper modifications can break the integration. After the order is complete, your customer will be redirected to this URL. Don't enter a leading slash.]]></comment>
<config_path>payment/amazon_payment_v2/checkout_result_return_url</config_path>
</field>
<field id="sign_in_result_url" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Sign In result URL Path</label>
<comment><![CDATA[<strong>Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.</strong><br />Amazon Pay will redirect to this URL after completing the Sign In process.]]></comment>
<config_path>payment/amazon_payment_v2/sign_in_result_url</config_path>
</field>
<field id="checkout_result_url" translate="label comment" type="text" sortOrder="21" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Magento Checkout result URL Path</label>
<comment><![CDATA[<strong>Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.</strong><br />Magento will redirect to this URL after completing the checkout session. Do not use a leading slash.]]></comment>
<config_path>payment/amazon_payment_v2/checkout_result_url</config_path>
</field>
<field id="checkout_cancel_url" translate="label comment" type="text" sortOrder="22" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Amazon Checkout cancel URL Path</label>
<!-- <br /> -->
<comment><![CDATA[<strong>Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.</strong><br />Amazon Pay will redirect to this URL if the customer clicks "Cancel Amazon Pay checkout and return to [merchant site]" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).]]></comment>
<config_path>payment/amazon_payment_v2/checkout_cancel_url</config_path>
</field>
<field id="signin_cancel_url" translate="label comment" type="text" sortOrder="23" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Amazon Sign In cancel URL Path</label>
<comment><![CDATA[<strong>Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.</strong><br />Amazon Pay will redirect to this URL if the customer clicks "Cancel" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).]]></comment>
<config_path>payment/amazon_payment_v2/signin_cancel_url</config_path>
</field>
<field id="allowed_ips_v2" translate="label comment" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Allowed IPs</label>
<comment><![CDATA[Enter IPs seperated by commas. Note: The Amazon Pay button will only be visible to clients with corresponding IP addresses.]]></comment>
<config_path>payment/amazon_payment_v2/allowed_ips</config_path>
<backend_model>Magento\Developer\Model\Config\Backend\AllowedIps</backend_model>
</field>
</group>
</group>
</group>
</section>
</system>
</config>