<?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_applepay" translate="label" type="text" sortOrder="2500" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Apple Pay</label>
                    <field id="active" translate="label" type="select" sortOrder="0" showInDefault="1" showInWebsite="0" showInStore="1">
                        <label>Enabled</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <config_path>payment/eway_applepay/active</config_path>
                    </field>
                    <field id="title" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="0" showInStore="1">
                        <label>Title</label>
                        <config_path>payment/eway_applepay/title</config_path>
                    </field>
                    <field id="cctypes" type="multiselect" translate="label" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
                        <label>Accepted Credit Cards</label>
                        <source_model>\Eway\ApplePay\Model\Config\Source\Cctype</source_model>
                    </field>
                    <field id="order_status" type="select" translate="label" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
                        <label>New Order Status</label>
                        <source_model>\Eway\EwayRapid\Model\Config\Source\OrderStatus</source_model>
                        <backend_model>\Eway\EwayRapid\Model\Config\Backend\OrderStatus</backend_model>
                        <comment>
                            <![CDATA[If you have changed Payment Action, please save the config before updating this field.]]>
                        </comment>
                        <config_path>payment/eway_applepay/order_status</config_path>
                    </field>
                    <field id="payment_action" translate="label" type="select" sortOrder="300" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
                        <label>Payment Action</label>
                        <source_model>\Eway\EwayRapid\Model\Config\Source\PaymentAction</source_model>
                        <config_path>payment/eway_applepay/payment_action</config_path>
                    </field>
                    <field id="apple_merchant_id" translate="label" type="text" sortOrder="400" showInDefault="1" showInWebsite="0" showInStore="1">
                        <label>Apple Merchant ID</label>
                        <config_path>payment/eway_applepay/apple_merchant_id</config_path>
                    </field>
                    <field id="display_name" translate="label" type="text" sortOrder="500" showInDefault="1" showInWebsite="0" showInStore="1">
                        <label>Apple Display Name</label>
                        <config_path>payment/eway_applepay/display_name</config_path>
                    </field>
                    <field id="domain" translate="label" type="text" sortOrder="600" showInDefault="1" showInWebsite="0" showInStore="1">
                        <label>Certified Domain</label>
                        <config_path>payment/eway_applepay/domain</config_path>
                    </field>
                    <field id="path_cert" translate="label" type="text" sortOrder="700" showInDefault="1" showInWebsite="0" showInStore="1">
                        <label>Path to certificate</label>
                        <config_path>payment/eway_applepay/path_cert</config_path>
                    </field>
                    <field id="path_key" translate="label" type="text" sortOrder="800" showInDefault="1" showInWebsite="0" showInStore="1">
                        <label>Path to key</label>
                        <config_path>payment/eway_applepay/path_key</config_path>
                    </field>
                    <field id="sort_order" translate="label" type="text" sortOrder="900" showInDefault="1" showInWebsite="0" showInStore="1">
                        <label>Sort Order</label>
                        <config_path>payment/eway_applepay/sort_order</config_path>
                    </field>
                </group>
            </group>
        </section>
    </system>
</config>
