<?xml version="1.0"?>
<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="ewayrapid" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
                <group id="eway_googlepay" translate="label" type="text" sortOrder="3000" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Google Pay</label>
                    <field id="googlepay_settings" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Google Pay Settings</label>
                        <frontend_model>Magento\Config\Block\System\Config\Form\Field\Heading</frontend_model>
                    </field>
                    <field id="active" translate="label" type="select" sortOrder="110" showInDefault="1" showInWebsite="0" showInStore="1">
                        <label>Enabled</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <config_path>payment/eway_googlepay/active</config_path>
                    </field>
                    <field id="title" translate="label" type="text" sortOrder="120" showInDefault="1" showInWebsite="0" showInStore="1">
                        <label>Title</label>
                        <config_path>payment/eway_googlepay/title</config_path>
                    </field>
                    <field id="cc_types" translate="label" type="multiselect" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Allowed Card Networks</label>
                        <source_model>Eway\GooglePay\Model\Config\Source\Cctype</source_model>
                        <config_path>payment/eway_googlepay/cc_types</config_path>
                    </field>
                    <field id="debug" translate="label" type="select" sortOrder="140" showInDefault="1" showInWebsite="1" showInStore="0">
                        <label>Enable Logging at Debug Level</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <config_path>payment/eway_googlepay/debug</config_path>
                    </field>
                    <field id="googlepay_credentials" translate="label" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Google Pay Credentials</label>
                        <frontend_model>Magento\Config\Block\System\Config\Form\Field\Heading</frontend_model>
                    </field>
                    <field id="google_merchant_id" type="text" translate="label" sortOrder="210" showInDefault="1" showInWebsite="1" showInStore="0">
                        <label>Google Merchant Id</label>
                        <config_path>payment/eway_googlepay/google_merchant_id</config_path>
                        <tooltip><![CDATA[To obtain your Google Merchant ID, navigate to your Google Pay Developer Profile and find it under the Merchant ID section.]]></tooltip>
                    </field>
                    <field id="google_merchant_name" type="text" translate="label" sortOrder="220" showInDefault="1" showInWebsite="1" showInStore="0">
                        <label>Google Merchant Name</label>
                        <config_path>payment/eway_googlepay/google_merchant_name</config_path>
                        <comment>
                            <![CDATA[Please check <a href="https://developers.google.com/pay/api/web/guides/setup">Google's documentation</a> for more information on Google Pay Setup.]]>
                        </comment>
                    </field>
                    <field id="google_merchant_mode" type="select" translate="label" sortOrder="220" showInDefault="1" showInWebsite="1" showInStore="0">
                        <label>Google Merchant Mode</label>
                        <source_model>Eway\GooglePay\Model\Config\Source\Mode</source_model>
                        <config_path>payment/eway_googlepay/google_merchant_mode</config_path>
                    </field>
                    <field id="googlepay_settings_advanced" translate="label" sortOrder="300" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Google Pay Advanced Settings</label>
                        <frontend_model>Magento\Config\Block\System\Config\Form\Field\Heading</frontend_model>
                    </field>
                    <field id="button_color" translate="label" type="select" sortOrder="310" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Button Color</label>
                        <source_model>Eway\GooglePay\Model\Config\Source\ButtonColor</source_model>
                        <config_path>payment/eway_googlepay/button_color</config_path>
                        <comment><![CDATA[<b>Default:</b> A Google-selected default value. Currently <b>black</b> but it may change over time]]></comment>
                    </field>
                    <field id="button_type" translate="label comment" type="select" sortOrder="320" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Button Type</label>
                        <source_model>Eway\GooglePay\Model\Config\Source\ButtonType</source_model>
                        <config_path>payment/eway_googlepay/button_type</config_path>
                        <comment><![CDATA[<b>Long:</b> "Buy with Google Pay" button, <br><b>Short:</b> Google Pay payment button without the "Buy with" text. ]]></comment>
                    </field>
                    <field id="eway_googlepay_settings_advanced" translate="label" sortOrder="400" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Eway Advanced Settings</label>
                        <frontend_model>Magento\Config\Block\System\Config\Form\Field\Heading</frontend_model>
                    </field>
                    <field id="eway_merchant_id" type="text" translate="label" sortOrder="410" showInDefault="1" showInWebsite="1" showInStore="0">
                        <label>Eway Merchant Id</label>
                        <config_path>payment/eway_googlepay/eway_merchant_id</config_path>
                        <tooltip><![CDATA[To obtain your Customer ID, navigate to your Eway and find it under the footer section.]]></tooltip>
                    </field>
                </group>
            </group>
        </section>
    </system>
</config>
