system.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
  9. <system>
  10. <section id="payment">
  11. <group id="braintree_section" sortOrder="6" showInDefault="0" showInWebsite="0" showInStore="0">
  12. <group id="braintree" translate="label comment" type="text" showInDefault="1" showInWebsite="1" showInStore="1">
  13. <label>Braintree</label>
  14. <comment><![CDATA[Accept credit/debit cards and PayPal in your Magento store.<br/>No setup or monthly fees and your customers never leave your store to complete the purchase.]]></comment>
  15. <fieldset_css>complex braintree-section</fieldset_css>
  16. <frontend_model>Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Payment</frontend_model>
  17. <attribute type="activity_path">payment/braintree/active</attribute>
  18. <attribute type="displayIn">recommended_solutions</attribute>
  19. <field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0">
  20. <label>Enable this Solution</label>
  21. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  22. <config_path>payment/braintree/active</config_path>
  23. <requires>
  24. <group id="braintree_required"/>
  25. </requires>
  26. </field>
  27. <field id="active_braintree_paypal" translate="label" type="select" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="0">
  28. <label>Enable PayPal through Braintree</label>
  29. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  30. <config_path>payment/braintree_paypal/active</config_path>
  31. <requires>
  32. <group id="braintree_required"/>
  33. </requires>
  34. </field>
  35. <field id="braintree_cc_vault_active" translate="label" type="select" sortOrder="12" showInDefault="1" showInWebsite="1" showInStore="0">
  36. <label>Vault Enabled</label>
  37. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  38. <config_path>payment/braintree_cc_vault/active</config_path>
  39. <requires>
  40. <group id="braintree_required"/>
  41. </requires>
  42. </field>
  43. <group id="configuration_details" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="4">
  44. <comment>http://docs.magento.com/m2/ce/user_guide/payment/braintree.html</comment>
  45. <frontend_model>Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Hint</frontend_model>
  46. </group>
  47. <group id="braintree_required" translate="label" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="5">
  48. <label>Basic Braintree Settings</label>
  49. <attribute type="expanded">1</attribute>
  50. <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
  51. <field id="title" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  52. <label>Title</label>
  53. <config_path>payment/braintree/title</config_path>
  54. </field>
  55. <field id="environment" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="0">
  56. <label>Environment</label>
  57. <source_model>Magento\Braintree\Model\Adminhtml\Source\Environment</source_model>
  58. <config_path>payment/braintree/environment</config_path>
  59. </field>
  60. <field id="payment_action" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
  61. <label>Payment Action</label>
  62. <source_model>Magento\Braintree\Model\Adminhtml\Source\PaymentAction</source_model>
  63. <config_path>payment/braintree/payment_action</config_path>
  64. </field>
  65. <field id="merchant_id" translate="label" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="0">
  66. <label>Merchant ID</label>
  67. <config_path>payment/braintree/merchant_id</config_path>
  68. </field>
  69. <field id="public_key" translate="label" type="obscure" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="0">
  70. <label>Public Key</label>
  71. <config_path>payment/braintree/public_key</config_path>
  72. <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
  73. </field>
  74. <field id="private_key" translate="label" type="obscure" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="0">
  75. <label>Private Key</label>
  76. <config_path>payment/braintree/private_key</config_path>
  77. <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
  78. </field>
  79. </group>
  80. <group id="braintree_advanced" translate="label" showInDefault="1" showInWebsite="1" showInStore="0" sortOrder="20">
  81. <label>Advanced Braintree Settings</label>
  82. <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
  83. <field id="braintree_cc_vault_title" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="0">
  84. <label>Vault Title</label>
  85. <config_path>payment/braintree_cc_vault/title</config_path>
  86. </field>
  87. <field id="merchant_account_id" translate="label comment" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="0">
  88. <label>Merchant Account ID</label>
  89. <comment>If you don't specify the merchant account to use to process a transaction, Braintree will process it using your default merchant account.</comment>
  90. <config_path>payment/braintree/merchant_account_id</config_path>
  91. </field>
  92. <field id="fraudprotection" translate="label comment" type="select" sortOrder="34" showInDefault="1" showInWebsite="1" showInStore="0">
  93. <label>Advanced Fraud Protection</label>
  94. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  95. <comment>Be sure to Enable Advanced Fraud Protection in Your Braintree Account in Settings/Processing Section</comment>
  96. <config_path>payment/braintree/fraudprotection</config_path>
  97. </field>
  98. <field id="kount_id" translate="label comment" sortOrder="35" showInDefault="1" showInWebsite="1" showInStore="0">
  99. <label>Kount Merchant ID</label>
  100. <comment><![CDATA[Used for direct fraud tool integration. Make sure you also contact <a href="mailto:accounts@braintreepayments.com">accounts@braintreepayments.com</a> to setup your Kount account.]]></comment>
  101. <depends>
  102. <field id="fraudprotection">1</field>
  103. </depends>
  104. <config_path>payment/braintree/kount_id</config_path>
  105. </field>
  106. <field id="debug" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0">
  107. <label>Debug</label>
  108. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  109. <config_path>payment/braintree/debug</config_path>
  110. </field>
  111. <field id="useccv" translate="label comment" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="0">
  112. <label>CVV Verification</label>
  113. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  114. <comment>Be sure to Enable AVS and/or CVV in Your Braintree Account in Settings/Processing Section.</comment>
  115. <config_path>payment/braintree/useccv</config_path>
  116. </field>
  117. <field id="cctypes" translate="label" type="multiselect" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="0">
  118. <label>Credit Card Types</label>
  119. <source_model>Magento\Braintree\Model\Adminhtml\Source\CcType</source_model>
  120. <config_path>payment/braintree/cctypes</config_path>
  121. </field>
  122. <field id="sort_order" translate="label" type="text" sortOrder="230" showInDefault="1" showInWebsite="1" showInStore="0">
  123. <label>Sort Order</label>
  124. <frontend_class>validate-number</frontend_class>
  125. <config_path>payment/braintree/sort_order</config_path>
  126. </field>
  127. </group>
  128. <group id="braintree_country_specific" translate="label" showInDefault="1" showInWebsite="1" showInStore="0" sortOrder="30">
  129. <label>Country Specific Settings</label>
  130. <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
  131. <field id="allowspecific" translate="label" type="allowspecific" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="0">
  132. <label>Payment from Applicable Countries</label>
  133. <source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model>
  134. <config_path>payment/braintree/allowspecific</config_path>
  135. </field>
  136. <field id="specificcountry" translate="label" type="multiselect" sortOrder="210" showInDefault="1" showInWebsite="1" showInStore="0">
  137. <label>Payment from Specific Countries</label>
  138. <source_model>Magento\Braintree\Model\Adminhtml\System\Config\Country</source_model>
  139. <can_be_empty>1</can_be_empty>
  140. <config_path>payment/braintree/specificcountry</config_path>
  141. </field>
  142. <field id="countrycreditcard" translate="label" sortOrder="220" showInDefault="1" showInWebsite="1" showInStore="0">
  143. <label>Country Specific Credit Card Types</label>
  144. <frontend_model>Magento\Braintree\Block\Adminhtml\Form\Field\CountryCreditCard</frontend_model>
  145. <backend_model>Magento\Braintree\Model\Adminhtml\System\Config\CountryCreditCard</backend_model>
  146. <config_path>payment/braintree/countrycreditcard</config_path>
  147. </field>
  148. </group>
  149. <group id="braintree_paypal" translate="label" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="40">
  150. <label>PayPal through Braintree</label>
  151. <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
  152. <field id="title" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  153. <label>Title</label>
  154. <config_path>payment/braintree_paypal/title</config_path>
  155. <comment>It is recommended to set this value to "PayPal" per store views.</comment>
  156. </field>
  157. <field id="braintree_paypal_vault_active" translate="label" type="select" sortOrder="21" showInDefault="1" showInWebsite="1" showInStore="0">
  158. <label>Vault Enabled</label>
  159. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  160. <config_path>payment/braintree_paypal_vault/active</config_path>
  161. <requires>
  162. <group id="braintree_required"/>
  163. </requires>
  164. </field>
  165. <field id="sort_order" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="0">
  166. <label>Sort Order</label>
  167. <frontend_class>validate-number</frontend_class>
  168. <config_path>payment/braintree_paypal/sort_order</config_path>
  169. </field>
  170. <field id="merchant_name_override" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
  171. <label>Override Merchant Name</label>
  172. <config_path>payment/braintree_paypal/merchant_name_override</config_path>
  173. </field>
  174. <field id="payment_action" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
  175. <label>Payment Action</label>
  176. <source_model>Magento\Braintree\Model\Adminhtml\Source\PaymentAction</source_model>
  177. <config_path>payment/braintree_paypal/payment_action</config_path>
  178. </field>
  179. <field id="allowspecific" translate="label" type="allowspecific" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="0">
  180. <label>Payment from Applicable Countries</label>
  181. <source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model>
  182. <config_path>payment/braintree_paypal/allowspecific</config_path>
  183. </field>
  184. <field id="specificcountry" translate="label" type="multiselect" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="0">
  185. <label>Payment from Specific Countries</label>
  186. <source_model>Magento\Braintree\Model\Adminhtml\System\Config\Country</source_model>
  187. <can_be_empty>1</can_be_empty>
  188. <config_path>payment/braintree_paypal/specificcountry</config_path>
  189. </field>
  190. <field id="require_billing_address" translate="label comment" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="0">
  191. <label>Require Customer's Billing Address</label>
  192. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  193. <config_path>payment/braintree_paypal/require_billing_address</config_path>
  194. <comment>This feature needs be enabled first for the merchant account through PayPal technical support.</comment>
  195. </field>
  196. <field id="allow_shipping_address_override" translate="label" type="select" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="0">
  197. <label>Allow to Edit Shipping Address Entered During Checkout on PayPal Side</label>
  198. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  199. <config_path>payment/braintree_paypal/allow_shipping_address_override</config_path>
  200. </field>
  201. <field id="debug" translate="label" type="select" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="0">
  202. <label>Debug</label>
  203. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  204. <config_path>payment/braintree_paypal/debug</config_path>
  205. </field>
  206. <field id="display_on_shopping_cart" translate="label comment" type="select" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="0">
  207. <label>Display on Shopping Cart</label>
  208. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  209. <config_path>payment/braintree_paypal/display_on_shopping_cart</config_path>
  210. <comment>Also affects mini-shopping cart.</comment>
  211. </field>
  212. <field id="skip_order_review" translate="label" type="select" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="0">
  213. <label>Skip Order Review</label>
  214. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  215. <config_path>payment/braintree_paypal/skip_order_review</config_path>
  216. </field>
  217. </group>
  218. <group id="braintree_3dsecure" translate="label" showInDefault="1" showInWebsite="1" showInStore="0" sortOrder="41">
  219. <label>3D Secure Verification Settings</label>
  220. <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
  221. <field id="verify_3dsecure" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="0">
  222. <label>3D Secure Verification</label>
  223. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  224. <config_path>payment/braintree/verify_3dsecure</config_path>
  225. </field>
  226. <field id="threshold_amount" translate="label" type="text" sortOrder="151" showInDefault="1" showInWebsite="1" showInStore="0">
  227. <label>Threshold Amount</label>
  228. <config_path>payment/braintree/threshold_amount</config_path>
  229. </field>
  230. <field id="allowspecific" translate="label" type="allowspecific" sortOrder="152" showInDefault="1" showInWebsite="1" showInStore="0">
  231. <label>Verify for Applicable Countries</label>
  232. <source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model>
  233. <config_path>payment/braintree/verify_all_countries</config_path>
  234. </field>
  235. <field id="specificcountry" translate="label" type="multiselect" sortOrder="153" showInDefault="1" showInWebsite="1" showInStore="0">
  236. <label>Verify for Specific Countries</label>
  237. <source_model>Magento\Braintree\Model\Adminhtml\System\Config\Country</source_model>
  238. <can_be_empty>1</can_be_empty>
  239. <config_path>payment/braintree/verify_specific_countries</config_path>
  240. </field>
  241. </group>
  242. <group id="braintree_dynamic_descriptor" translate="label comment" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="50">
  243. <label>Dynamic Descriptors</label>
  244. <comment><![CDATA[Dynamic descriptors are sent on a per-transaction basis and define what will appear on your customers credit card statements for a specific purchase.
  245. The clearer the description of your product, the less likely customers will issue chargebacks due to confusion or non-recognition.
  246. Dynamic descriptors are not enabled on all accounts by default. If you receive a validation error of 92203 or if your dynamic descriptors are not displaying as expected,
  247. please <a href="mailto:support@getbraintree.com">Braintree Support</a>.]]></comment>
  248. <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
  249. <field id="name" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  250. <label>Name</label>
  251. <config_path>payment/braintree/descriptor_name</config_path>
  252. <comment>
  253. The value in the business name field of a customer's statement. Company name/DBA section must be either 3, 7 or 12 characters
  254. and the product descriptor can be up to 18, 14, or 9 characters respectively (with an * in between for a total descriptor name of 22 characters).
  255. </comment>
  256. </field>
  257. <field id="phone" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  258. <label>Phone</label>
  259. <config_path>payment/braintree/descriptor_phone</config_path>
  260. <comment>
  261. The value in the phone number field of a customer's statement. Phone must be 10-14 characters and can only contain numbers, dashes, parentheses and periods.
  262. </comment>
  263. </field>
  264. <field id="url" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
  265. <label>URL</label>
  266. <config_path>payment/braintree/descriptor_url</config_path>
  267. <comment>
  268. The value in the URL/web address field of a customer's statement. The URL must be 13 characters or shorter.
  269. </comment>
  270. </field>
  271. </group>
  272. </group>
  273. </group>
  274. </section>
  275. </system>
  276. </config>