<?xml version="1.0"?>
<!--
/**
 * PHP version 7
* Copyright © Mobegic Inc. DBA Unbound Commerce.
 * All rights reserved.
 */
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
    <field id="adyen_gateway_merchant_id" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0">
        <label>Adyen Merchant Account Id</label>
        <config_path>payment/googlepay_adyen/gateway_merchant_id</config_path>
        <tooltip><![CDATA[Please enter the merchant account you want to use to process the transactions. Merchant account is different from a company account. To view all your current merchant accounts, go to your Adyen Customer Area, click <b>Account > Merchant Accounts</b>.]]></tooltip>
        <depends>
            <field id="gateway_id">adyen</field>
        </depends>
    </field>
    <field id="adyen_api_key" translate="label" type="obscure" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="0">
        <label>Api Key</label>
        <config_path>payment/googlepay_adyen/api_key</config_path>
        <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
        <comment><![CDATA[Please check <a href="https://docs.adyen.com/user-management/how-to-get-the-api-key/">Adyen's documentation</a> for more information on how to get the API key.]]></comment>
        <depends>
            <field id="gateway_id">adyen</field>
        </depends>
    </field>
    <field id="adyen_live_endpoint_url_prefix" translate="label" type="text" sortOrder="12" showInDefault="1" showInWebsite="1" showInStore="0">
        <label>Live Endpoint Url Prefix</label>
        <config_path>payment/googlepay_adyen/live_endpoint_url_prefix</config_path>
        <tooltip><![CDATA[Live url prefix is not required for the sandbox environment. Please enter the live url prefix which will be in the format [random]-[company name]. To view your live url prefix, go to your Adyen Customer Area, click <b>Account > API URLs</b>.]]></tooltip>
        <comment><![CDATA[Please check <a href="https://docs.adyen.com/development-resources/live-endpoints/">Adyen's documentation</a> for more information on live endpoints.]]></comment>
        <depends>
            <field id="gateway_id">adyen</field>
        </depends>
    </field>
    <!--<field id="adyen_three_d_secure_type" translate="label" type="select" sortOrder="13" showInDefault="1" showInWebsite="1" showInStore="0">-->
        <!--<label>3D Secure Type</label>-->
        <!--<source_model>UnboundCommerce\GooglePay\Model\Adminhtml\Source\ThreeDSecureType</source_model>-->
        <!--<config_path>payment/googlepay_adyen/three_d_secure_type</config_path>-->
        <!--<depends>-->
            <!--<field id="gateway_id">adyen</field>-->
        <!--</depends>-->
    <!--</field>-->
    <!--<field id="adyen_three_d_secure_value" translate="label" type="select" sortOrder="14" showInDefault="1" showInWebsite="1" showInStore="0">-->
        <!--<label>Enable 3D Secure</label>-->
        <!--<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>-->
        <!--<config_path>payment/googlepay_adyen/three_d_secure_value</config_path>-->
        <!--<depends>-->
            <!--<field id="gateway_id">adyen</field>-->
        <!--</depends>-->
    <!--</field>-->
    <field id="adyen_webhook_url" translate="label" sortOrder="15" showInDefault="1" showInWebsite="1" showInStore="0">
        <label>Notification URL</label>
        <frontend_model>UnboundCommerce\GooglePay\Block\Adminhtml\System\Config\Form\Field\AdyenWebhookUrl</frontend_model>
        <depends>
            <field id="gateway_id">adyen</field>
        </depends>
    </field>
    <field id="adyen_webhook_username" translate="label" type="text" sortOrder="16" showInDefault="1" showInWebsite="1" showInStore="0">
        <label>Notification Username</label>
        <config_path>payment/googlepay_adyen/webhook_username</config_path>
        <tooltip><![CDATA[Please enter the username which you have added under the Standard Notification - Authentication section while configuring Adyen server communication settings.]]></tooltip>
        <depends>
            <field id="gateway_id">adyen</field>
        </depends>
    </field>
    <field id="adyen_webhook_password" translate="label" type="obscure" sortOrder="17" showInDefault="1" showInWebsite="1" showInStore="0">
        <label>Notification Password</label>
        <config_path>payment/googlepay_adyen/webhook_password</config_path>
        <tooltip><![CDATA[Please enter the password which you have added under the Standard Notification - Authentication section while configuring Adyen server communication settings.]]></tooltip>
        <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
        <comment><![CDATA[To configure notifications, go to your Adyen Customer Area and follow these steps:<br>1) Click <b>Account > Server communication</b>.<br>2) Next to <b>Standard Notification</b>, click <b>Add</b>.<br>3) Set <b>Method</b> to <b>JSON</b> and select the <b>Active</b> checkbox.<br>Please check <a href="https://docs.adyen.com/development-resources/notifications/set-up-notifications/">Adyen's documentation</a> for more information on how to configure notifications in the Customer Area.]]></comment>
        <depends>
            <field id="gateway_id">adyen</field>
        </depends>
    </field>
</include>