<?xml version="1.0"?>
<!--
/**
 * Blackbird Monetico Module
 *
 * NOTICE OF LICENSE
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to contact@bird.eu so we can send you a copy immediately.
 *
 * @category    Blackbird
 * @package     Blackbird_Monetico
 * @copyright   Copyright (c) 2018 Blackbird (https://black.bird.eu)
 * @author      Blackbird Team
 * @license     https://store.bird.eu/license/
 * @support     help@bird.eu
 */
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
    <group id="monetico_compatibility" translate="label comment" type="text" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="0">
        <label>Compatibility options</label>
        <comment>If you are using a custom checkout, you can disable some security checks to ensure compatibility with monetico.</comment>
        <frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model>
        <field id="disable_post_check" translate="label comment" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
            <label>Disable post checking</label>
            <comment>Disable the test that checks that the request is using POST mode to access the payment page.</comment>
            <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
            <config_path>monetico/compatibility/disable_post_check</config_path>
        </field>
        <field id="disable_ajax_check" translate="label comment" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
            <label>Disable ajax checking</label>
            <comment>Disable the test that checks that the request is using ajax to access the payment page.</comment>
            <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
            <config_path>monetico/compatibility/disable_ajax_check</config_path>
        </field>
        <field id="disable_form_key_check" translate="label comment" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
            <label>Disable form key validation</label>
            <comment>Disable the test that checks that the form key is valid to access the payment page.</comment>
            <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
            <config_path>monetico/compatibility/disable_form_key_check</config_path>
        </field>
    </group>
</include>
