<?xml version="1.0"?>
<config>
    <sections>
        <payment>
            <groups>
                <charges translate="label comment" module="paygate">
                    <label>Openpay - Tarjetas de crédito y débito</label>
                    <frontend_type>text</frontend_type>
                    <sort_order>2</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                    <fields>
                        <active translate="label">
                            <label>Enabled</label>
                            <frontend_type>select</frontend_type>
                            <source_model>adminhtml/system_config_source_yesno</source_model>
                            <sort_order>10</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>0</show_in_store>
                        </active>
                        <title translate="label">
                            <label>Título</label>
                            <frontend_type>text</frontend_type>
                            <sort_order>20</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </title>
                        <payment_action translate="label">
                            <label>Payment Action</label>
                            <frontend_type>select</frontend_type>
                            <source_model>paygate/authorizenet_source_paymentAction</source_model>
                            <sort_order>30</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                        </payment_action>
                        <cctypes translate="label comment">
                            <label>Tipos de tarjetas permitidos</label>
                            <comment><![CDATA[Presione ctrl y clic para seleccionar más de una opción]]></comment>
                            <frontend_type>multiselect</frontend_type>
                            <source_model>charges/config::getSupportedCC</source_model>
                            <sort_order>40</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                        </cctypes>
                        <months_interest_free translate="label comment">
                            <label>Meses sin intereses</label>
                            <comment><![CDATA[Presione ctrl y clic para seleccionar más de una opción]]></comment>
                            <frontend_type>multiselect</frontend_type>
                            <source_model>charges/config::getMonthsInterestFree</source_model>
                            <sort_order>50</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                        </months_interest_free>
                        <minimum_amount translate="label">
                            <label>Monto mínimo</label>
                            <frontend_type>text</frontend_type>
                            <sort_order>55</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>   
                            <show_in_store>1</show_in_store>                         
                            <comment><![CDATA[Define un monto mínimo para aceptar pagos a meses sin intereses (el monto mínimo deberá ser de al menos $1,800 MXN)]]></comment>
                        </minimum_amount>
                        <use_3d_secure translate="label">
                            <label>Utilizar 3D Secure</label>
                            <frontend_type>select</frontend_type>
                            <source_model>adminhtml/system_config_source_yesno</source_model>
                            <sort_order>56</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>   
                            <show_in_store>0</show_in_store>                         
                            <comment><![CDATA[Esta opción será utilizada cuando Openpay detecte cierto grado de fraude, de este modo el banco se encargará de validar su autenticidad.]]></comment>
                        </use_3d_secure>
                        <order_status translate="label">
                            <label>Estado de nueva orden</label>
                            <frontend_type>select</frontend_type>
                            <source_model>adminhtml/system_config_source_order_status</source_model>
                            <sort_order>60</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>0</show_in_store>
                        </order_status>
                        <allowspecific translate="label">
                            <label>Pago aplicable para</label>
                            <frontend_type>select</frontend_type>
                            <sort_order>70</sort_order>
                            <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>0</show_in_store>
                        </allowspecific>
                        <specificcountry translate="label">
                            <label>Países aplicables para pago</label>
                            <frontend_type>multiselect</frontend_type>
                            <sort_order>80</sort_order>
                            <source_model>adminhtml/system_config_source_country</source_model>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>0</show_in_store>
                            <depends>
                                <allowspecific>1</allowspecific>
                            </depends>
                        </specificcountry>                        
                        <sort_order translate="label">
                            <label>Sort Order</label>
                            <frontend_type>text</frontend_type>
                            <sort_order>90</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>0</show_in_store>
                        </sort_order>                        
                    </fields>
                </charges>
            </groups>
        </payment>
    </sections>
</config>
