<?xml version="1.0"?>
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
  <group id="bank_transfers" translate="label" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="1">
    <label>Bank Transfers</label>
    <comment>Bank transfers provide a safe way for customers to send money over bank rails. Stripe provides your customers with a virtual bank account number that they can push money to from their own online bank interface or in-person bank branch. Your real bank account details are not exposed to customers. Suitable for accepting large payments that card networks would otherwise decline.

    To accept bank transfers, configure the bank transfer payment method from the &lt;a href="https://dashboard.stripe.com/settings/payments" target="_blank"&gt;Payment Methods&lt;/a&gt; page.</comment>
    <field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
      <label>Enabled</label>
      <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
      <config_path>payment/stripe_payments_bank_transfers/active</config_path>
    </field>

    <field id="title" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
      <label>Title</label>
      <comment><![CDATA[This is the payment method title used at the checkout page]]></comment>
      <config_path>payment/stripe_payments_bank_transfers/title</config_path>
    </field>

    <field id="minimum_amount" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
      <label>Minimum amount</label>
      <comment><![CDATA[The payment method will be hidden if the cart total is less than the minimum amount.]]></comment>
      <frontend_class>validate-number</frontend_class>
      <config_path>payment/stripe_payments_bank_transfers/minimum_amount</config_path>
    </field>

    <!-- Default EU Country dropdown -->
    <field id="default_eu_country" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
      <label>Default EU Country</label>
      <comment><![CDATA[If the customer lives in an EU country which is not supported, use this country instead.]]></comment>
      <source_model>StripeIntegration\Payments\Model\Adminhtml\Source\DefaultEUCountry</source_model>
      <config_path>payment/stripe_payments_bank_transfers/default_eu_country</config_path>
    </field>

    <field id="pending_payment_order_lifetime" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
      <label>Pending Payment Order Lifetime (days)</label>
      <comment><![CDATA[The time in days spent by an order in Pending Payment state until it is canceled.]]></comment>
      <frontend_class>validate-number</frontend_class>
      <config_path>payment/stripe_payments_bank_transfers/pending_payment_order_lifetime</config_path>
    </field>

    <field id="sort_order" translate="label" type="text" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
     <label>Sort order</label>
     <comment><![CDATA[Adjust this to move the payment method above or below other payment methods.]]></comment>
     <frontend_class>validate-number</frontend_class>
     <config_path>payment/stripe_payments_bank_transfers/sort_order</config_path>
   </field>

 </group>
</include>
