<?xml version="1.0" encoding="UTF-8" ?>
<extension version="2.5" type="plugin" group="vmpayment" method="upgrade" >
    <name>2Checkout</name>
    <creationDate>October 2015</creationDate>
    <author>Craig Christenson</author>
    <authorUrl>http://www.2checkout.com</authorUrl>
    <copyright>Copyright (C) 2004-2019 Virtuemart Team. All rights reserved.</copyright>
    <license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>
    <version>3.8.8</version>
    <description><![CDATA[<a href="https://www.2checkout.com/referral?r=virtuemart" target="_blank">2Checkout</a> is a popular payment provider and available in many countries. ]]>
    </description>
    <files>
        <filename plugin="tco">tco.php</filename>
        <folder>language</folder>
    </files>
    <params addpath="/administrator/components/com_virtuemart/elements">
        <field name="checkConditionsCore" value="1" default="1" type="hidden"/>
        <param type="spacer" default="VMPAYMENT_TCO_PAYMENT_TITLE" level="level1" />
        <param type="spacer" default="VMPAYMENT_TCO_PAYMENT_WARNING"   />
        <param type="spacer" default="" level="level1" />
        <param type="spacer" default="VMPAYMENT_TCO_PAYMENT_SETTINGS" level="level1" />
        <param name="payment_logos" type="vmfiles" label="VMPAYMENT_TCO_LOGOS"
            description="VMPAYMENT_TCO_LOGOS_DESC"
            directory="/images/virtuemart/payment"
            default="default" hide_default="1" hide_none="1"
            stripext="0"  exclude="^_" />
        <param type="spacer" default="" level="level1" />
        <param   type="spacer" default="VMPAYMENT_TCO_PARAMS" level="level1" />
        <param type="text" name="tco_seller_id"  size="50" label="VMPAYMENT_TCO_SELLER_ID"
             default="" description="VMPAYMENT_TCO_SELLER_ID_DESC" />
        <param type="text" name="tco_secret_word"  size="50" label="VMPAYMENT_TCO_SECRET_WORD"
             default="" description="VMPAYMENT_TCO_SECRET_WORD_DESC" />
        <param type="spacer" default="" level="level1" />
        <param name="payment_currency" type="vmacceptedcurrency" default="" label="VMPAYMENT_TCO_CURRENCY" description="VMPAYMENT_TCO_CURRENCY_DESC" />
        <param name="countries" type="vmcountries"  scope="com_virtuemart" default="" label="VMPAYMENT_TCO_COUNTRIES" description="VMPAYMENT_TCO_COUNTRIES_DESC"/>
        <param name="min_amount" type="text"  label="VMPAYMENT_TCO_MIN_AMOUNT" description="VMPAYMENT_TCO_MIN_AMOUNT_EXPLAIN" />
        <param name="max_amount" type="text"  label="VMPAYMENT_TCO_MAX_AMOUNT" description="VMPAYMENT_TCO_MAX_AMOUNT_EXPLAIN" />
        <param name="cost_per_transaction" type="text"  label="VMPAYMENT_TCO_COST_PER_TRANSACTION" description="VMPAYMENT_TCO_COST_PER_TRANSACTION_EXPLAIN" />
        <param name="cost_percent_total" type="text"  label="VMPAYMENT_TCO_COST_PERCENT_TOTAL" description="VMPAYMENT_TCO_COST_PERCENT_TOTAL_EXPLAIN" />
        <param name="tax_id" type="vmtaxes" scope="com_virtuemart"  label="VMPAYMENT_TCO_TAX" description="VMPAYMENT_TCO_TAX_EXPLAIN" />
        <param type="spacer" default="" level="level1" />
        <param name="debug" type="radio" default="0" label="VMPAYMENT_TCO_DEBUG" description="VMPAYMENT_TCO_DEBUG_DESC" >
            <option value="0">COM_VIRTUEMART_NO</option>
            <option value="1">COM_VIRTUEMART_YES</option>
        </param>
        <param name="sandbox" type="radio" default="1" label="VMPAYMENT_TCO_SANDBOX" description="VMPAYMENT_TCO_SANDBOX_DESC" >
            <option value="0">COM_VIRTUEMART_NO</option>
            <option value="1">COM_VIRTUEMART_YES</option>
        </param>
        <param name="direct_checkout" type="radio" default="1" label="VMPAYMENT_TCO_DIRECT" description="VMPAYMENT_TCO_DIRECT_DESC" >
            <option value="0">COM_VIRTUEMART_NO</option>
            <option value="1">COM_VIRTUEMART_YES</option>
        </param>
        <param type="spacer" default="" level="level1" />
        <param type="spacer" default="VMPAYMENT_TCO_PAYMENT_PAGE" level="level1" />
        <param name="status_pending" type="vmorderstate" scope="com_virtuemart" default="P" label="VMPAYMENT_TCO_STATUS_PENDING" description="VMPAYMENT_TCO_STATUS_PENDING_EXPLAIN" />
        <param name="status_success" type="vmorderstate" scope="com_virtuemart" default="C" label="VMPAYMENT_TCO_STATUS_SUCCESS" description="VMPAYMENT_TCO_STATUS_SUCCESS_EXPLAIN" />
        <param name="status_canceled" type="vmorderstate" scope="com_virtuemart" default="X" label="VMPAYMENT_TCO_STATUS_FAILED" description="VMPAYMENT_TCO_STATUS_FAILED_EXPLAIN" />
    </params>
    <vmconfig>
        <fields name="params">
            <fieldset name="payment" addfieldpath="/administrator/components/com_virtuemart/fields">
                <field type="vmtitle" description="" default="VMPAYMENT_TCO_PAYMENT_TITLE" />
                <field type="text" name="tco_seller_id"  size="50" label="VMPAYMENT_TCO_SELLER_ID" default="" description="VMPAYMENT_TCO_SELLER_ID_DESC" />
                <field type="text" name="tco_secret_word"  size="50" label="VMPAYMENT_TCO_SECRET_WORD" default="" description="VMPAYMENT_TCO_SECRET_WORD_DESC" />
                <field name="payment_currency" type="vmacceptedcurrency" default="" label="VMPAYMENT_TCO_CURRENCY" description="VMPAYMENT_TCO_CURRENCY_DESC" />
                <field name="countries" type="vmcountries"  scope="com_virtuemart" default="" label="VMPAYMENT_TCO_COUNTRIES" description="VMPAYMENT_TCO_COUNTRIES_DESC"/>
                <field name="min_amount" type="text"  label="VMPAYMENT_TCO_MIN_AMOUNT" description="VMPAYMENT_TCO_MIN_AMOUNT_EXPLAIN" />
                <field name="max_amount" type="text"  label="VMPAYMENT_TCO_MAX_AMOUNT" description="VMPAYMENT_TCO_MAX_AMOUNT_EXPLAIN" />
                <field name="cost_per_transaction" type="text"  label="VMPAYMENT_TCO_COST_PER_TRANSACTION" description="VMPAYMENT_TCO_COST_PER_TRANSACTION_EXPLAIN" />
                <field name="cost_percent_total" type="text"  label="VMPAYMENT_TCO_COST_PERCENT_TOTAL" description="VMPAYMENT_TCO_COST_PERCENT_TOTAL_EXPLAIN" />
                <field name="tax_id" type="vmtaxes" scope="com_virtuemart"  label="VMPAYMENT_TCO_TAX" description="VMPAYMENT_TCO_TAX_EXPLAIN" />
                <field name="debug" type="radio" default="0" label="VMPAYMENT_TCO_DEBUG" description="VMPAYMENT_TCO_DEBUG_DESC" >
                    <option value="0">COM_VIRTUEMART_NO</option>
                    <option value="1">COM_VIRTUEMART_YES</option>
                </field>
                <field name="sandbox" type="radio" default="1" label="VMPAYMENT_TCO_SANDBOX" description="VMPAYMENT_TCO_SANDBOX_DESC" >
                    <option value="0">COM_VIRTUEMART_NO</option>
                    <option value="1">COM_VIRTUEMART_YES</option>
                </field>
                <field name="direct_checkout" type="radio" default="1" label="VMPAYMENT_TCO_DIRECT" description="VMPAYMENT_TCO_DIRECT_DESC" >
                    <option value="0">COM_VIRTUEMART_NO</option>
                    <option value="1">COM_VIRTUEMART_YES</option>
                </field>
                <field type="spacer" default="" level="level1" />
                <field type="spacer" default="VMPAYMENT_TCO_PAYMENT_PAGE" level="level1" />
                <field name="status_pending" type="vmorderstate" scope="com_virtuemart" default="P" label="VMPAYMENT_TCO_STATUS_PENDING" description="VMPAYMENT_TCO_STATUS_PENDING_EXPLAIN" />
                <field name="status_success" type="vmorderstate" scope="com_virtuemart" default="C" label="VMPAYMENT_TCO_STATUS_SUCCESS" description="VMPAYMENT_TCO_STATUS_SUCCESS_EXPLAIN" />
                <field name="status_canceled" type="vmorderstate" scope="com_virtuemart" default="X" label="VMPAYMENT_TCO_STATUS_FAILED" description="VMPAYMENT_TCO_STATUS_FAILED_EXPLAIN" />
                <field name="payment_logos" type="imagelist" label="VMPAYMENT_TCO_LOGOS" multiple="true"
                           description="VMPAYMENT_TCO_LOGOS_DESC"
                           directory="/images/virtuemart/payment"
                           default="" hide_default="1" hide_none="1"
                           stripext="0" exclude="^_"/>
            </fieldset>
        </fields>
    </vmconfig>
    <updateservers>
        <!-- Note: No spaces or linebreaks allowed between the server tags -->
        <server type="extension" name="VirtueMart3 plg_vmpayment_tco Update Site"><![CDATA[http://virtuemart.net/releases/vm3/plg_vmpayment_tco_update.xml]]></server>
    </updateservers>
</extension>
