Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-paypal/etc/adminhtml/rules/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/magento/module-paypal/etc/adminhtml/rules/payment_es.xml

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<rules xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Paypal:etc/rules.xsd">
    <!-- Website Payments Pro Hosted Solution (Includes Express Checkout) -->
    <payment id="payments_pro_hosted_solution_es">
        <events selector="[data-enable='payment']">
            <event value="0" name="deactivate-rule"/>
            <event value="1" name="activate-rule">
                <predicate name="confirm"
                           message="There is already another PayPal solution enabled. Enable this solution instead?"
                           event="deactivate-rule"
                        >
                    <argument name="wps_other">wps_other</argument>
                </predicate>
            </event>
        </events>
        <relation target="wps_other">
            <rule type="disable" event="activate-rule"/>
        </relation>
        <relation target=":self">
            <rule type="simpleMarkEnable" event="activate-rule"/>
            <rule type="simpleDisable" event="deactivate-rule"/>
            <rule type="conflict" event=":load">
                <argument name="wps_other">wps_other</argument>
            </rule>
        </relation>
    </payment>
    <!-- Website Payments Standard -->
    <payment id="wps_other">
        <events selector="[data-enable='payment']">
            <event value="0" name="deactivate-rule"/>
            <event value="1" name="activate-rule">
                <predicate name="confirm"
                           message="There is already another PayPal solution enabled. Enable this solution instead?"
                           event="deactivate-rule"
                        >
                    <argument name="payments_pro_hosted_solution_es">payments_pro_hosted_solution_es</argument>
                    <argument name="express_checkout_other">express_checkout_other</argument>
                </predicate>
            </event>
        </events>
        <relation target="payments_pro_hosted_solution_es">
            <rule type="disable" event="activate-rule"/>
        </relation>
        <relation target="express_checkout_other">
            <rule type="disable" event="activate-rule"/>
        </relation>
        <relation target=":self">
            <rule type="simpleMarkEnable" event="activate-rule"/>
            <rule type="simpleDisable" event="deactivate-rule"/>
            <rule type="conflict" event=":load">
                <argument name="payments_pro_hosted_solution_es">payments_pro_hosted_solution_es</argument>
                <argument name="express_checkout_other">express_checkout_other</argument>
            </rule>
        </relation>
    </payment>
    <!-- Express Checkout -->
    <payment id="express_checkout_other">
        <events selector="[data-enable='payment']">
            <event value="0" name="deactivate-rule"/>
            <event value="1" name="activate-rule">
                <predicate name="confirm"
                           message="There is already another PayPal solution enabled. Enable this solution instead?"
                           event="deactivate-rule"
                        >
                    <argument name="wps_other">wps_other</argument>
                </predicate>
            </event>
        </events>
        <events selector="[data-enable='in-context-api']">
            <event value="0" name="deactivate-in-context-api"/>
            <event value="1" name="activate-in-context-api"/>
        </events>
        <relation target="wps_other">
            <rule type="disable" event="activate-rule"/>
        </relation>
        <relation target=":self">
            <rule type="simpleMarkEnable" event="activate-rule"/>
            <rule type="paypalExpressMarkDisable" event="deactivate-rule">
                <argument name="wps_other">wps_other</argument>
            </rule>
            <rule type="simpleDisable" event="deactivate-rule"/>
            <rule type="inContextEnable" event="activate-rule"/>
            <rule type="inContextDisable" event="deactivate-rule"/>
            <rule type="inContextShowMerchantId" event="activate-rule"/>
            <rule type="inContextHideMerchantId" event="deactivate-rule"/>
            <rule type="inContextActivate" event="activate-in-context-api"/>
            <rule type="inContextDeactivate" event="deactivate-in-context-api"/>
            <rule type="inContextDisableConditional" event=":load"/>
            <rule type="conflict" event=":load">
                <argument name="wps_other">wps_other</argument>
            </rule>
            <rule type="removeCreditOptionConditional" event=":load"/>
        </relation>
    </payment>
</rules>