<?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">
                <group id="heading_basic_settings">
                    <field id="enable_paypal" translate="label" type="select" sortOrder="83" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
                        <label>Enable PayPal</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <depends>
                            <field id="connection_type">transparent</field>
                        </depends>
                        <config_path>payment/ewayrapid/enable_paypal</config_path>
                    </field>
                    <field id="enable_masterpass" translate="label" type="select" sortOrder="84" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
                        <label>Enable MasterPass</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <depends>
                            <field id="connection_type">transparent</field>
                        </depends>
                        <config_path>payment/ewayrapid/enable_masterpass</config_path>
                    </field>
                    <field id="enable_visa_checkout" translate="label" type="select" sortOrder="85" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
                        <label>Enable Visa Checkout</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <depends>
                            <field id="connection_type" separator=",">transparent,direct</field>
                        </depends>
                        <config_path>payment/ewayrapid/enable_visa_checkout</config_path>
                    </field>
                    <field id="visa_checkout_apikey" translate="label" type="text" sortOrder="86" showInDefault="1" showInWebsite="1" showInStore="0">
                        <label>Visa Checkout Api Key</label>
                        <depends>
                            <field id="connection_type" separator=",">transparent,direct</field>
                            <field id="enable_visa_checkout">1</field>
                        </depends>
                        <config_path>payment/ewayrapid/visa_checkout_apikey</config_path>
                    </field>
                    <field id="enable_amex_checkout" translate="label" type="select" sortOrder="87" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
                        <label>Enable AMEX Express Checkout</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <depends>
                            <field id="connection_type">transparent</field>
                        </depends>
                        <config_path>payment/ewayrapid/enable_amex_checkout</config_path>
                    </field>
                </group>
            </group>
        </section>
    </system>
</config>
