¡Déjanos tus datos!
Pronto un asesor se contactará contigo para que conozcas todo sobre nuestras soluciones de pago tu negocio.
var phoneField=document.getElementById(«cdb-phone»),onlyNumbers=document.querySelectorAll(«.only-numbers»);phoneField.addEventListener(«input»,function(e){var t=e.target,a=t.value.substr(-1).charCodeAt(0);1===t.value.length&&51!==a&&(t.value=t.value.replace(/([^3])+/g,»»))});for(var i=0;i0?urlParams[1]:»»,productsSelect=»#cdb–form-product-select»;jQuery(document).ready(function(){jQuery(«#cdb–form-product-select option:eq(0)»).html(«Selecciona»),jQuery(«#cdb–form-knowing-select option:eq(0)»).html(«Selecciona»),setTimeout(()=>{switch(productReceived){case»3d-secure»:jQuery(`${productsSelect} option[value=»3D Secure»]`).prop(«selected»,!0);break;case»analitico-banco-emisor»:jQuery(`${productsSelect} option[value=»Anal\xedtico Banco Emisor»]`).prop(«selected»,!0);break;case»analitico-banco-adquirente»:jQuery(`${productsSelect} option[value=»Anal\xedtico Banco Adquirente»]`).prop(«selected»,!0);break;case»analitico-comercios»:jQuery(`${productsSelect} option[value=»Anal\xedtico Comercios»]`).prop(«selected»,!0);break;case»analitico-investigacion»:jQuery(`${productsSelect} option[value=»Anal\xedtico Investigaci\xf3n»]`).prop(«selected»,!0);break;case»analitico-viajes»:jQuery(`${productsSelect} option[value=»Anal\xedtico Viajes»]`).prop(«selected»,!0);break;case»analitico-centros-comerciales»:jQuery(`${productsSelect} option[value=»Anal\xedtico Centros Comerciales»]`).prop(«selected»,!0);break;case»apertura-punto-venta»:jQuery(`${productsSelect} option[value=»Apertura punto de venta»]`).prop(«selected»,!0);break;case»api-boveda»:jQuery(`${productsSelect} option[value=»Api B\xf3veda»]`).prop(«selected»,!0);break;case»app-mi-club»:jQuery(`${productsSelect} option[value=»App mi Club»]`).prop(«selected»,!0);break;case»bonos-regalo»:jQuery(`${productsSelect} option[value=»Bonos regalo»]`).prop(«selected»,!0);break;case»bonos-virtuales»:jQuery(`${productsSelect} option[value=»Bonos virtuales»]`).prop(«selected»,!0);break;case»certificacion-terceros»:jQuery(`${productsSelect} option[value=»Certificaci\xf3n de terceros»]`).prop(«selected»,!0);break;case»ciclo-de-vida»:jQuery(`${productsSelect} option[value=»Ciclo de vida»]`).prop(«selected»,!0);break;case»credivirtual»:jQuery(`${productsSelect} option[value=»Credivirtual»]`).prop(«selected»,!0);break;case»dcc»:jQuery(`${productsSelect} option[value=»DCC»]`).prop(«selected»,!0);break;case»entu-mesero-virtual»:jQuery(`${productsSelect} option[value=»Entu-mesero virtual»]`).prop(«selected»,!0);break;case»firma-almacenamiento-digital»:jQuery(`${productsSelect} option[value=»Firma y almacenamiento digital»]`).prop(«selected»,!0);break;case»formulario-pagos»:jQuery(`${productsSelect} option[value=»Formulario de pagos»]`).prop(«selected»,!0);break;case»gasolina-movil»:jQuery(`${productsSelect} option[value=»Gasolina m\xf3vil»]`).prop(«selected»,!0);break;case»geocomercios»:jQuery(`${productsSelect} option[value=»Geocomercios»]`).prop(«selected»,!0);break;case»georreferenciacion-para-bancos»:jQuery(`${productsSelect} option[value=»Georreferenciaci\xf3n para Bancos»]`).prop(«selected»,!0);break;case»integracion-api»:jQuery(`${productsSelect} option[value=»Integraci\xf3n Api»]`).prop(«selected»,!0);break;case»link-pagos-automatico»:jQuery(`${productsSelect} option[value=»Link de pagos autom\xe1tico»]`).prop(«selected»,!0);break;case»marca-privada»:jQuery(`${productsSelect} option[value=»Marca Privada»]`).prop(«selected»,!0);break;case»pago-web»:jQuery(`${productsSelect} option[value=»PaGo Web»]`).prop(«selected»,!0);break;case»perfilamiento-para-comercios»:jQuery(`${productsSelect} option[value=»Perfilamiento para Comercios»]`).prop(«selected»,!0);break;case»perfilamiento-centros-comerciales»:jQuery(`${productsSelect} option[value=»Perfilamiento para Centros Comerciales»]`).prop(«selected»,!0);break;case»perfilamiento-para-bancos»:jQuery(`${productsSelect} option[value=»Perfilamiento para Bancos»]`).prop(«selected»,!0);break;case»perfomance-punto-venta»:jQuery(`${productsSelect} option[value=»Performance punto de venta»]`).prop(«selected»,!0);break;case»plan-avanzado-seguridad»:jQuery(`${productsSelect} option[value=»Plan avanzado de seguridad»]`).prop(«selected»,!0);break;case»plan-basico-seguridad»:jQuery(`${productsSelect} option[value=»Plan b\xe1sico de seguridad»]`).prop(«selected»,!0);break;case»programas-lealtad»:jQuery(`${productsSelect} option[value=»Programas de Lealtad»]`).prop(«selected»,!0);break;case»qr-web-service»:jQuery(`${productsSelect} option[value=»QR web service»]`).prop(«selected»,!0);break;case»recurrencia»:jQuery(`${productsSelect} option[value=»Recurrencia»]`).prop(«selected»,!0);break;case»sdk-pago»:jQuery(`${productsSelect} option[value=»SDK PaGo»]`).prop(«selected»,!0);break;case»tef-cloud»:jQuery(`${productsSelect} option[value=»Tef Cloud»]`).prop(«selected»,!0);break;case»tienda-virtual»:jQuery(`${productsSelect} option[value=»Tienda Virtual»]`).prop(«selected»,!0);break;case»transferencia-visa-direct»:jQuery(`${productsSelect} option[value=»Transferencia Visa direct (Comercio)»]`).prop(«selected»,!0);break;case»vsafe»:jQuery(`${productsSelect} option[value=»VSAFE»]`).prop(«selected»,!0);break;case»web-pagos»:jQuery(`${productsSelect} option[value=»Web de pagos»]`).prop(«selected»,!0)}},2500)});
document.addEventListener(«DOMContentLoaded», function () {
// Código existente para el select «Necesito Soporte Técnico»
var selectSoporte = document.getElementById(«cdb–form-knowing-select»),
camposRestantes = document.getElementById(«campos_restantes»),
qrContainer = document.querySelector(«.qr-container»);
function manejarSelect() {
if (selectSoporte.value === «Necesito Soporte Técnico») {
camposRestantes.style.display = «none»;
qrContainer.style.display = «block»;
} else {
camposRestantes.style.display = «block»;
qrContainer.style.display = «none»;
}
}
manejarSelect();
selectSoporte.addEventListener(«change», manejarSelect);
// Nueva parte para el campo radio «ya-tienes-productos»
// Se asume que el radio tiene name=»ya-tienes-productos»
var radios = document.getElementsByName(«ya-tienes-productos»);
// Elementos que se deben ocultar/mostrar
var terminosWrapper = document.querySelector(«.cdb–wrapper-terminos»);
var sendBtn = document.querySelector(«.cdb–send-btn»);
var buttonConditional = document.querySelector(«.button-conditional»);
function manejarRadio() {
var valorSeleccionado;
// Recorremos los radio para saber cuál está seleccionado
Array.prototype.forEach.call(radios, function(radio) {
if (radio.checked) {
valorSeleccionado = radio.value;
}
});
if (valorSeleccionado === «Si») {
// Al seleccionar «Si»:
// – Oculta los divs de términos y botón de envío
if (terminosWrapper) terminosWrapper.style.display = «none»;
if (sendBtn) sendBtn.style.display = «none»;
// – Muestra el div condicional
if (buttonConditional) buttonConditional.style.display = «block»;
// – Abre el enlace en una nueva ventana
window.location.href = «https://afiliaciones.solucionescredibanco.com/?_gl=1*1y05yip*_gcl_au*MjUwNTQ5ODEwLjE3MzY5NTI3ODQ»;
} else if (valorSeleccionado === «No») {
// Al seleccionar «No»:
// Se revierten los cambios: se muestran los elementos ocultos y se oculta el condicional
if (terminosWrapper) terminosWrapper.style.display = «»;
if (sendBtn) sendBtn.style.display = «»;
if (buttonConditional) buttonConditional.style.display = «none»;
}
}
// Asignamos el evento «change» a cada radio del grupo
Array.prototype.forEach.call(radios, function(radio) {
radio.addEventListener(«change», manejarRadio);
});
});