system.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License").
  7. * You may not use this file except in compliance with the License.
  8. * A copy of the License is located at
  9. *
  10. * http://aws.amazon.com/apache2.0
  11. *
  12. * or in the "license" file accompanying this file. This file is distributed
  13. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  14. * express or implied. See the License for the specific language governing
  15. * permissions and limitations under the License.
  16. */
  17. -->
  18. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
  19. <system>
  20. <section id="payment">
  21. <group id="amazon_payment" translate="label" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="1">
  22. <label><![CDATA[<div class="amazon-payment-logo"></div><div class="amazon-payment-byline">The convenient, trusted way to pay.<br/>Let your customers check out in just a few clicks or taps using the shipping and payment info already stored in their Amazon account.</div>]]></label>
  23. <fieldset_css>complex amazon-payment-section</fieldset_css>
  24. <frontend_model>Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Payment</frontend_model>
  25. <field id="simplepath" type="text" translate="label comment" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  26. <frontend_model>Amazon\Core\Block\Adminhtml\System\Config\Form\SimplepathConfig</frontend_model>
  27. </field>
  28. <group id="credentials" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  29. <label>Credentials</label>
  30. <field id="merchant_id" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  31. <label>Merchant Id</label>
  32. <config_path>payment/amazon_payment/merchant_id</config_path>
  33. </field>
  34. <field id="access_key" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  35. <label>Access Key Id</label>
  36. <config_path>payment/amazon_payment/access_key</config_path>
  37. </field>
  38. <field id="secret_key" translate="label" type="obscure" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
  39. <label>Secret Access Key</label>
  40. <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
  41. <config_path>payment/amazon_payment/secret_key</config_path>
  42. </field>
  43. <field id="client_id" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
  44. <label>Client Id</label>
  45. <config_path>payment/amazon_payment/client_id</config_path>
  46. </field>
  47. <field id="client_secret" translate="label comment" type="obscure" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
  48. <label>Client Secret</label>
  49. <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
  50. <config_path>payment/amazon_payment/client_secret</config_path>
  51. <comment><![CDATA[<input type="checkbox" name="amazon_test_creds" id="amazon_test_creds" value="1"><label for="amazon_test_creds">]]><![CDATA[Test Credentials]]><![CDATA[</label>]]></comment>
  52. </field>
  53. <field id="credentials_json" translate="label" type="textarea" sortOrder="55" showInDefault="1" showInWebsite="1" showInStore="1">
  54. <label>Credentials JSON</label>
  55. <config_path>payment/amazon_payment/credentials_json</config_path>
  56. <comment><![CDATA[Warning! Individual credential fields will be populated/overwritten, if credentials JSON is supplied!]]></comment>
  57. </field>
  58. <field id="payment_region" translate="label" type="select" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
  59. <label>Payment Region</label>
  60. <source_model>Amazon\Core\Model\Config\Source\PaymentRegion</source_model>
  61. <config_path>payment/amazon_payment/payment_region</config_path>
  62. </field>
  63. <field id="sandbox" translate="label" type="select" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="0">
  64. <label>Sandbox</label>
  65. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  66. <config_path>payment/amazon_payment/sandbox</config_path>
  67. </field>
  68. <field id="js_origin" translate="label" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
  69. <label>Allowed Javascript Origins</label>
  70. <frontend_model>Amazon\Core\Block\Adminhtml\Form\Field\JsOrigin</frontend_model>
  71. </field>
  72. <field id="redirect_url" translate="label" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
  73. <label>Allowed Return URLs</label>
  74. <frontend_model>Amazon\Core\Block\Adminhtml\Form\Field\RedirectUrl</frontend_model>
  75. </field>
  76. <field id="ipn_url" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
  77. <label>IPN URL</label>
  78. <frontend_model>Amazon\Core\Block\Adminhtml\Form\Field\IpnUrl</frontend_model>
  79. </field>
  80. </group>
  81. <group id="options" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  82. <label>Options</label>
  83. <field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  84. <label>Enable Amazon Pay</label>
  85. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  86. <config_path>payment/amazon_payment/active</config_path>
  87. </field>
  88. <field id="lwa_enabled" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  89. <label>Enable Login with Amazon</label>
  90. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  91. <config_path>payment/amazon_payment/lwa_enabled</config_path>
  92. <comment><![CDATA[Note that if Login with Amazon is disabled and Guest Checkout is disabled, the customer will not be able to use Amazon Pay.]]></comment>
  93. </field>
  94. <field id="payment_action" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
  95. <label>Payment Action</label>
  96. <source_model>Amazon\Core\Model\Config\Source\PaymentAction</source_model>
  97. <config_path>payment/amazon_payment/payment_action</config_path>
  98. </field>
  99. <field id="authorization_mode" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
  100. <label>Authorization Mode</label>
  101. <source_model>Amazon\Core\Model\Config\Source\AuthorizationMode</source_model>
  102. <config_path>payment/amazon_payment/authorization_mode</config_path>
  103. </field>
  104. <field id="update_mechanism" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
  105. <label>Update Mechanism</label>
  106. <source_model>Amazon\Core\Model\Config\Source\UpdateMechanism</source_model>
  107. <config_path>payment/amazon_payment/update_mechanism</config_path>
  108. </field>
  109. </group>
  110. <group id="advanced" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
  111. <label>Advanced</label>
  112. <field id="version" type="text" translate="label comment" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
  113. <frontend_model>Amazon\Core\Block\Adminhtml\System\Config\Form\Version</frontend_model>
  114. </field>
  115. <group id="frontend" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  116. <label>Frontend</label>
  117. <field id="display_language" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  118. <label>Button Display Language</label>
  119. <config_path>payment/amazon_payment/button_display_language</config_path>
  120. <comment><![CDATA[Controls button and widget language. The default is your shop's locale. Available options can be found <a href="https://payments.amazon.co.uk/developer/documentation/lpwa/201953980#ENTER_LANGUAGE_PARAMETER">here</a>. Applies only to UK and DE Amazon Merchant Accounts.]]></comment>
  121. </field>
  122. <field id="button_color" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0">
  123. <label>Button Color</label>
  124. <source_model>Amazon\Core\Model\Config\Source\Button\Color</source_model>
  125. <config_path>payment/amazon_payment/button_color</config_path>
  126. </field>
  127. <field id="button_size" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
  128. <label>Button Size</label>
  129. <source_model>Amazon\Core\Model\Config\Source\Button\Size</source_model>
  130. <config_path>payment/amazon_payment/button_size</config_path>
  131. </field>
  132. <field id="pwa_pp_button_is_visible" translate="label" type="select" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
  133. <label>Show Amazon Pay button on product page</label>
  134. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  135. <config_path>payment/amazon_payment/pwa_pp_button_is_visible</config_path>
  136. </field>
  137. <field id="minicart_button_is_visible" translate="label comment" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
  138. <label>Show Amazon Pay button in minicart</label>
  139. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  140. <config_path>payment/amazon_payment/minicart_button_is_visible</config_path>
  141. </field>
  142. <field id="amazonloggin" translate="label comment" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
  143. <label>Show Amazon Pay in payment methods</label>
  144. <comment><![CDATA[If enabled, Amazon Pay is presented as an option in the list of available payment methods during the final step of checkout.]]></comment>
  145. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  146. <config_path>payment/amazonlogin/active</config_path>
  147. </field>
  148. </group>
  149. <group id="sales_options" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  150. <label>Sales Options</label>
  151. <field id="storename" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="1">
  152. <label>Store Name</label>
  153. <config_path>payment/amazon_payment/storename</config_path>
  154. </field>
  155. <field id="multicurrency" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
  156. <label>Use Multi-currency</label>
  157. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  158. <config_path>payment/amazon_payment/multicurrency</config_path>
  159. <comment><![CDATA[Amazon Pay currently supports multi-currency only for UK and EU endpoints. Currencies supported include: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF USD.]]></comment>
  160. </field>
  161. </group>
  162. <group id="extra_options" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
  163. <label>Developer Options</label>
  164. <field id="logging" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
  165. <label>Logging</label>
  166. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  167. <config_path>payment/amazon_payment/logging</config_path>
  168. </field>
  169. <field id="allowed_ips" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="0">
  170. <label>Allowed IPs</label>
  171. <comment><![CDATA[Comma separated. The "Login with Amazon" and "Amazon Pay" buttons will <em>only</em> be rendered for clients having the above IPs.
  172. If the field is empty, the buttons will be visible to all clients.]]></comment>
  173. <config_path>payment/amazon_payment/allowed_ips</config_path>
  174. <backend_model>Magento\Developer\Model\Config\Backend\AllowedIps</backend_model>
  175. </field>
  176. <field id="loglist" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
  177. <label>Developer Logs</label>
  178. <depends>
  179. <field id="logging">1</field>
  180. </depends>
  181. <frontend_model>Amazon\Core\Block\Adminhtml\System\Config\Form\DeveloperLogs</frontend_model>
  182. </field>
  183. </group>
  184. </group>
  185. </group>
  186. </section>
  187. </system>
  188. </config>