<commit_before><?php $_code = $this->getMethodCode() ?>
<ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
    <li>
        <p>Paga con tarjeta de débito.</p>
    </li>
    <?php include 'fields.phtml' ?>
    <li>
        <label for="<?php echo $_code ?>_dc_name" class="required"><em>*</em>Titular de la tarjeta</label>
        <div class="input-box">
            <input type="text" id="<?php echo $_code ?>_dc_name" name="payment[dc_name]"
                   title="<?php echo Mage::helper('core')->jsQuoteEscape('Titular de la tarjeta') ?>"
                   class="input-text validate-dc-name" value=""/>
        </div>
    </li>
    <li>
        <label for="<?php echo $_code ?>_dc_number" class="required"><em>*</em>Número de la tarjeta</label>
        <div class="input-box">
            <input type="text" id="<?php echo $_code ?>_dc_number" name="payment[dc_number]"
                   title="<?php echo Mage::helper('core')->jsQuoteEscape('Número de la tarjeta') ?>"
                   class="input-text validate-dc-number" value=""/>
        </div>
    </li>
    <li id="<?php echo $_code ?>_dc_type_exp_div">
        <label for="<?php echo $_code ?>_expiration" class="required"><em>*</em>Fecha de expiración</label>
        <div class="input-box">
            <div class="v-fix">
                <select id="<?php echo $_code ?>_expiration" name="payment[dc_exp_month]"
                        class="month validate-dc-exp required-entry">
                    <?php foreach ($this->getCcMonths() as $k => $v): ?>
                        <option value="<?php echo $k ?>"><?php echo $v ?></option>
                    <?php endforeach ?>
                </select>
            </div>
            <div class="v-fix">
                <?php $_dcExpYear = $this->getInfoData('dc_exp_year') ?>
                <select id="<?php echo $_code ?>_expiration_yr" name="payment[dc_exp_year]" class="year required-entry">
                    <?php foreach ($this->getCcYears() as $k => $v): ?>
                        <option value="<?php echo $k ? $k : '' ?>"><?php echo $v ?></option>
                    <?php endforeach ?>
                </select>
            </div>
        </div>
    </li>
    <?php echo $this->getChildHtml() ?>
    <li id="<?php echo $_code ?>_dc_type_cvv_div">
        <label for="<?php echo $_code ?>_dc_cid" class="required"><em>*</em>Código de verificación</label>
        <div class="input-box">
            <div class="v-fix">
                <input type="text" title="<?php echo Mage::helper('core')->jsQuoteEscape('Código de verificación') ?>"
                       class="input-text cvv required-entry validate-dc-cvn" id="<?php echo $_code ?>_dc_cid"
                       name="payment[dc_cid]" value=""/>
            </div>
        </div>
    </li>
    <input type="hidden" name="payment[ebanx_token]" id="ebanx_token"/>
    <input type="hidden" name="payment[ebanx_brand]" id="ebanx_brand"/>
    <input type="hidden" name="payment[ebanx_masked_card_number]" id="ebanx_masked_card_number"/>
    <input type="hidden" name="payment[ebanx_device_fingerprint]" id="ebanx_device_fingerprint"/>
    <input type="hidden" name="payment[ebanx_billing_instalments]" id="ebanx_billing_instalments"/>
    <input type="hidden" name="payment[ebanx_billing_cvv]" id="ebanx_billing_cvv"/>
    <input type="hidden" name="payment[ebanx_mode]" id="ebanx_mode"
           value="<?php echo Mage::helper('ebanx')->getMode() ?>"/>
    <input type="hidden" name="payment[ebanx_integration_key]" id="ebanx_integration_key"
           value="<?php echo Mage::helper('ebanx')->getPublicIntegrationKey() ?>"/>
    <input type="hidden" name="payment[ebanx_country]" id="ebanx_country" value="mx"/>
</ul>

<script type="text/javascript">
    //<![CDATA[
    handleEbanxForm('mx', 'dc');
    //]]>
</script><commit_msg>Added debit card validation for Mexico<commit_after><?php $_code = $this->getMethodCode() ?>
<ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
    <li>
        <p>Paga con tarjeta de débito.</p>
    </li>
    <?php include 'fields.phtml' ?>
    <li>
        <label for="<?php echo $_code ?>_dc_name" class="required"><em>*</em>Titular de la tarjeta</label>
        <div class="input-box">
            <input type="text" id="<?php echo $_code ?>_dc_name" name="payment[dc_name]"
                   title="<?php echo Mage::helper('core')->jsQuoteEscape('Titular de la tarjeta') ?>"
                   class="input-text validate-dc-name" value=""/>
        </div>
    </li>
    <li>
        <label for="<?php echo $_code ?>_dc_number" class="required"><em>*</em>Número de la tarjeta</label>
        <div class="input-box">
            <input type="text" id="<?php echo $_code ?>_dc_number" name="payment[dc_number]"
                   title="<?php echo Mage::helper('core')->jsQuoteEscape('Número de la tarjeta') ?>"
                   class="input-text validate-dc-number ebanx-format-cc-number required-entry" value=""/>
        </div>
    </li>
    <li id="<?php echo $_code ?>_dc_type_exp_div">
        <label for="<?php echo $_code ?>_expiration" class="required"><em>*</em>Fecha de expiración</label>
        <div class="input-box">
            <div class="v-fix">
                <select id="<?php echo $_code ?>_expiration" name="payment[dc_exp_month]"
                        class="month validate-dc-exp required-entry">
                    <?php foreach ($this->getCcMonths() as $k => $v): ?>
                        <option value="<?php echo $k ?>"><?php echo $v ?></option>
                    <?php endforeach ?>
                </select>
            </div>
            <div class="v-fix">
                <?php $_dcExpYear = $this->getInfoData('dc_exp_year') ?>
                <select id="<?php echo $_code ?>_expiration_yr" name="payment[dc_exp_year]" class="year required-entry">
                    <?php foreach ($this->getCcYears() as $k => $v): ?>
                        <option value="<?php echo $k ? $k : '' ?>"><?php echo $v ?></option>
                    <?php endforeach ?>
                </select>
            </div>
        </div>
    </li>
    <?php echo $this->getChildHtml() ?>
    <li id="<?php echo $_code ?>_dc_type_cvv_div">
        <label for="<?php echo $_code ?>_dc_cid" class="required"><em>*</em>Código de verificación</label>
        <div class="input-box">
            <div class="v-fix">
                <input type="text" title="<?php echo Mage::helper('core')->jsQuoteEscape('Código de verificación') ?>"
                       class="input-text cvv required-entry validate-dc-cvn ebanx-format-cvc-number" id="<?php echo $_code ?>_dc_cid"
                       name="payment[dc_cid]" value=""/>
            </div>
        </div>
    </li>
    <input type="hidden" name="payment[ebanx_token]" id="ebanx_token"/>
    <input type="hidden" name="payment[ebanx_brand]" id="ebanx_brand"/>
    <input type="hidden" name="payment[ebanx_masked_card_number]" id="ebanx_masked_card_number"/>
    <input type="hidden" name="payment[ebanx_device_fingerprint]" id="ebanx_device_fingerprint"/>
    <input type="hidden" name="payment[ebanx_billing_instalments]" id="ebanx_billing_instalments"/>
    <input type="hidden" name="payment[ebanx_billing_cvv]" id="ebanx_billing_cvv"/>
    <input type="hidden" name="payment[ebanx_mode]" id="ebanx_mode"
           value="<?php echo Mage::helper('ebanx')->getMode() ?>"/>
    <input type="hidden" name="payment[ebanx_integration_key]" id="ebanx_integration_key"
           value="<?php echo Mage::helper('ebanx')->getPublicIntegrationKey() ?>"/>
    <input type="hidden" name="payment[ebanx_country]" id="ebanx_country" value="mx"/>
</ul>

<script>
    handleEbanxForm('mx', 'dc');

    EBANXCreditCard.formatCardNumber(document.querySelector('input#ebanx_dc_mx_dc_number'));
    EBANXCreditCard.formatCardCVC(document.querySelector('input#ebanx_dc_mx_dc_cid'));
</script>
{'fraction_non_alphanumeric': 0.18360408009066867, 'fraction_numerical': 0.0, 'mean_word_length': 2.8091127098321342, 'pattern_counts': {'":': 0, '<': 194, '<?xml version=': 0, '>': 218, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1464019', 'n_tokens_mistral': 2586, 'n_tokens_neox': 2552, 'n_words': 501}