<?xml version="1.0" encoding="UTF-8" ?>
<extension version="2.5" type="plugin" group="vmpayment" method="upgrade">
    <name>Sofort Ideal</name>
    <creationDate>January 29 2021</creationDate>
    <author>The VirtueMart Development Team</author>
    <authorUrl>https://virtuemart.net</authorUrl>
    <copyright>Copyright (C) 2004 - 2015 Virtuemart Team. All rights reserved.</copyright>
    <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
    <version>3.8.8</version>
    <description><![CDATA[<a href="http:/www.sofort.com" target="_blank">Sofort</a> is a popular
	payment provider and available in many countries. ]]>
    </description>

    <files>
        <filename plugin="sofort">sofort.php</filename>
        <folder>language</folder>
    </files>

    <vmconfig>
        <fields name="params">
            <fieldset name="basic" addfieldpath="/plugins/vmpayment/sofort/sofort/fields" />
            <fieldset name="basic" addfieldpath="/plugins/vmpayment/sofort_ideal/sofort_ideal/fields">
                <field type="spacer" default="VMPAYMENT_SOFORT_IDEAL_PAYMENT_TITLE" level="level1"/>
                <field type="getsofort" level="level1"/>

                <field type="spacer" default="VMPAYMENT_SOFORT_PAYMENT_SETTINGS" level="level1"/>
                <field name="payment_logos" type="vmfiles" multiple="true" label="VMPAYMENT_SOFORT_LOGOS"
                       description="VMPAYMENT_SOFORT_LOGOS_DESC"
                       directory="/images/virtuemart/payment"
                       default="default" hide_default="1" hide_none="1"
                       stripext="0" exclude="^_"/>
                <!-- param type="getsofort" level="level1"/ -->
                <field type="spacer" default="" level="level1"/>
                <field type="spacer" default="VMPAYMENT_SOFORT_PARAMS" level="level1"/>
                <field type="text" name="configuration_key" size="100" label="VMPAYMENT_SOFORT_CONFIGURATION_KEY"
                       default="" description="VMPAYMENT_SOFORT_CONFIGURATION_KEY_DESC"/>

                <field type="spacer" default="VMPAYMENT_SOFORT_IDEAL_PASSWORD_WARNING" level="level1" />

                <field type="text" name="project_password" size="50" label="VMPAYMENT_SOFORT_IDEAL_PROJECT_PASSWORD"
                       default="" description="VMPAYMENT_SOFORT_PROJECT_PASSWORD_DESC"/>
                <field type="text" name="notification_password" size="50" label="VMPAYMENT_SOFORT_IDEAL_NOTIFICATION_PASSWORD"
                       default="" description="VMPAYMENT_SOFORT_NOTIFICATION_PASSWORD_DESC"/>

                <field type="spacer" default="" level="level1"/>
                <field type="spacer" default="VMPAYMENT_SOFORT_PAYMENT_PAGE" level="level1"/>
                <field name="status_pending" type="vmorderstate" scope="com_virtuemart" default="U" label="VMPAYMENT_SOFORT_STATUS_PENDING" description="VMPAYMENT_SOFORT_STATUS_PENDING_DESC"/>
                <field name="status_confirmed" type="vmorderstate" scope="com_virtuemart" default="C" label="VMPAYMENT_SOFORT_IDEAL_STATUS_CONFIRMED" description="VMPAYMENT_SOFORT_IDEAL_STATUS_CONFIRMED_DESC"/>
                <field name="status_canceled" type="vmorderstate" scope="com_virtuemart" default="X"  label="VMPAYMENT_SOFORT_IDEAL_STATUS_CANCELED" description="VMPAYMENT_SOFORT_IDEAL_STATUS_CANCELED_DESC"/>
                <field name="status_compensation" type="vmorderstate" scope="com_virtuemart" default="R" label="VMPAYMENT_SOFORT_IDEAL_STATUS_COMPENSATION" description="VMPAYMENT_SOFORT_IDEAL_STATUS_COMPENSATION_DESC"/>
                <field name="status_refunded" type="vmorderstate" scope="com_virtuemart" default="R" label="VMPAYMENT_SOFORT_STATUS_REFUNDED" description="VMPAYMENT_SOFORT_STATUS_REFUNDED_DESC"/>
                <field type="spacer" default="" level="level1"/>

                <field type="spacer" default="" level="level1"/>
                <field type="spacer" default="" level="level1"/>

                <field type="spacer" default="" level="level1"/>
                <field type="spacer" default="VMPAYMENT_SOFORT_CURRENCIES" level="level1"/>
                <!-- BY DEFAULT paypal currency= vendor currency -->
                <field name="payment_currency" type="vmacceptedcurrency" default="" label="VMPAYMENT_SOFORT_CURRENCY"
                       description="VMPAYMENT_SOFORT_CURRENCY_DESC"/>


                <field type="spacer" default="" level="level1"/>
                <field type="spacer" default="VMPAYMENT_SOFORT_RESTRICTIONS" level="level1"/>

                <field name="min_amount" type="text" label="VMPAYMENT_SOFORT_MIN_AMOUNT"
                       description="VMPAYMENT_SOFORT_MIN_AMOUNT_DESC"/>
                <field name="max_amount" type="text" label="VMPAYMENT_SOFORT_MAX_AMOUNT"
                       description="VMPAYMENT_SOFORT_MAX_AMOUNT_DESC"/>
                <field name="cost_per_transaction" type="text" label="VMPAYMENT_SOFORT_COST_PER_TRANSACTION"
                       description="VMPAYMENT_SOFORT_COST_PER_TRANSACTION_DESC"/>
                <field name="cost_percent_total" type="text" label="VMPAYMENT_SOFORT_COST_PERCENT_TOTAL"
                       description="VMPAYMENT_SOFORT_COST_PERCENT_TOTAL_DESC"/>
                <field name="tax_id" type="vmtaxes" scope="com_virtuemart" label="VMPAYMENT_SOFORT_TAX"
                       description="VMPAYMENT_SOFORT_TAX_DESC"/>
                <!--param name="log_ipn" type="list" default="0" label="VMPAYMENT_SOFORT_LOG_IPN" description="VMPAYMENT_SOFORT_LOG_IPN_DESC" >
               <option value="0">COM_VIRTUEMART_NO</option>
               <option value="1">COM_VIRTUEMART_YES</option>
           </field-->
                <field name="debug" type="radio" default="0" label="VMPAYMENT_SOFORT_DEBUG"
                       description="VMPAYMENT_SOFORT_DEBUG_DESC">
                    <option value="0">COM_VIRTUEMART_NO</option>
                    <option value="1">COM_VIRTUEMART_YES</option>
                </field>

            </fieldset>

        </fields>
    </vmconfig>

    <updateservers>
        <!-- Note: No spaces or linebreaks allowed between the server tags -->
        <server type="extension" name="VirtueMart plg_vmpayment_sofort_ideal Update Site"><![CDATA[http://virtuemart.net/releases/vm3/plg_vmpayment_sofort_ideal_update.xml]]></server>
    </updateservers>
</extension>
