feat(sinpe): filtro de rechazados reparado con purga de caché, nuevo spinner celeste sin barra ni timer, sondeo de hasta 2 min con timeout asistido
This commit is contained in:
+52
-19
@@ -12,7 +12,7 @@
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="apple-mobile-web-app-title" content="SiboPay">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<link rel="stylesheet" href="/css/styles.css?v=10.1">
|
||||
<link rel="stylesheet" href="/css/styles.css?v=10.4">
|
||||
<style>
|
||||
/* Transiciones suaves */
|
||||
.fade-enter { animation: fadeIn 0.2s ease-in-out; }
|
||||
@@ -2440,31 +2440,27 @@
|
||||
<div class="modal-qr-card modal-sinpe-card" onclick="event.stopPropagation()">
|
||||
<button type="button" class="modal-sinpe-close-btn" id="modalSinpeBtnCloseX" onclick="closeSinpeModal()" style="display: none;" title="Cerrar">✕</button>
|
||||
|
||||
<!-- 1. ESTADO: CARGANDO / VALIDANDO SINPE (10-20s con barra y animación) -->
|
||||
<!-- 1. ESTADO: CARGANDO / VALIDANDO SINPE (Hasta 2 minutos con mensajes sutiles) -->
|
||||
<div id="modalSinpeStateLoading" style="display: none;">
|
||||
<div class="sinpe-spinner-container">
|
||||
<div class="sinpe-pulse-ring"></div>
|
||||
<div class="sinpe-icon-badge loading">
|
||||
<svg class="sinpe-spin-svg" width="38" height="38" viewBox="0 0 24 24" fill="none">
|
||||
<circle cx="12" cy="12" r="10" stroke="#dcfce7" stroke-width="3"/>
|
||||
<path d="M12 2a10 10 0 0 1 10 10" stroke="#16a34a" stroke-width="3" stroke-linecap="round"/>
|
||||
<circle cx="12" cy="12" r="10" stroke="#e0f2fe" stroke-width="3"/>
|
||||
<path d="M12 2a10 10 0 0 1 10 10" stroke="#0284c7" stroke-width="3" stroke-linecap="round"/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 style="margin: 14px 0 4px 0; font-size: 1.25rem; font-weight: 900; color: var(--text-main);">Validando SINPE</h3>
|
||||
<p id="modalSinpeLoadingSubtext" style="font-size: 0.85rem; color: #64748b; margin: 0 0 14px 0; line-height: 1.35;">
|
||||
Consultando confirmación bancaria en tiempo real...
|
||||
<p id="modalSinpeLoadingSubtext" style="font-size: 0.85rem; color: #64748b; margin: 0 0 10px 0; line-height: 1.35;">
|
||||
Validando comprobante con el banco. Esto podría tardar hasta 1 minuto...
|
||||
</p>
|
||||
|
||||
<!-- Barra de Progreso y Cuenta Regresiva de 18s -->
|
||||
<div class="sinpe-progress-track">
|
||||
<div class="sinpe-progress-bar" id="modalSinpeProgressBar"></div>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 0.72rem; color: #64748b; font-weight: 700;">
|
||||
<span id="modalSinpeStepText">Buscando comprobante bancario...</span>
|
||||
<span id="modalSinpeTimerText" style="color: #16a34a; font-weight: 900; font-family: monospace; font-size: 0.82rem;">18s</span>
|
||||
<!-- Subtítulos sutiles que rotan -->
|
||||
<div style="text-align: center; margin: 0 0 14px 0; font-size: 0.78rem; color: #0284c7; font-weight: 800; min-height: 20px; display: flex; align-items: center; justify-content: center; gap: 6px;">
|
||||
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" class="sinpe-spin-svg"><path d="M21 12a9 9 0 1 1-6.219-8.56"/></svg>
|
||||
<span id="modalSinpeStepText">Consultando confirmación bancaria en tiempo real...</span>
|
||||
</div>
|
||||
|
||||
<!-- Resumen de la Operación -->
|
||||
@@ -2475,16 +2471,53 @@
|
||||
</div>
|
||||
<div class="sinpe-info-row">
|
||||
<span>Monto a validar:</span>
|
||||
<strong id="modalSinpeSummaryMonto" style="color: #16a34a; font-size: 0.96rem;">₡0</strong>
|
||||
<strong id="modalSinpeSummaryMonto" style="color: #0284c7; font-size: 0.96rem;">₡0</strong>
|
||||
</div>
|
||||
<div class="sinpe-info-row">
|
||||
<span>Código de detalle:</span>
|
||||
<strong id="modalSinpeSummaryCodigo" style="font-family: monospace; letter-spacing: 0.5px; color: #15803d;">-</strong>
|
||||
<strong id="modalSinpeSummaryCodigo" style="font-family: monospace; letter-spacing: 0.5px; color: #0369a1;">-</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="font-size: 0.73rem; color: #64748b; margin-top: 14px; line-height: 1.4; background: #f8fafc; padding: 9px 12px; border-radius: 10px; border: 1px solid #e2e8f0; text-align: left;">
|
||||
<span style="font-weight: 800; color: #334155;">⏳ Espere un momento, por favor:</span> Los bancos emiten el comprobante digital entre 10 y 20 segundos después de realizar el envío.
|
||||
<div style="font-size: 0.73rem; color: #64748b; margin-top: 14px; line-height: 1.4; background: #f0f9ff; border: 1px solid #bae6fd; padding: 9px 12px; border-radius: 10px; text-align: left;">
|
||||
<span style="font-weight: 800; color: #0284c7;">⏳ Espere un momento, por favor:</span> Esto podría tardar hasta 1 minuto mientras el banco emite el comprobante digital. No cierre esta pantalla.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ESTADO: TIEMPO DE ESPERA AGOTADO (2 minutos sin confirmación bancaria) -->
|
||||
<div id="modalSinpeStateTimeout" style="display: none;">
|
||||
<div class="sinpe-icon-badge timeout">
|
||||
<svg width="38" height="38" viewBox="0 0 24 24" fill="none" stroke="#0284c7" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="12" r="10"/>
|
||||
<polyline points="12 6 12 12 16 14"/>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<h3 style="margin: 14px 0 4px 0; font-size: 1.25rem; font-weight: 900; color: var(--text-main);">El banco aún no confirma</h3>
|
||||
<p style="font-size: 0.84rem; color: #64748b; margin: 0 0 14px 0; line-height: 1.45;">
|
||||
No hemos recibido el correo de confirmación de tu banco todavía. Puedes seguir esperando 1 minuto más o enviarla para que el comercio la revise manualmente.
|
||||
</p>
|
||||
|
||||
<div class="sinpe-info-summary" style="margin-bottom: 16px;">
|
||||
<div class="sinpe-info-row">
|
||||
<span>Monto reportado:</span>
|
||||
<strong id="modalSinpeTimeoutMonto" style="color: #0284c7; font-size: 0.96rem;">₡0</strong>
|
||||
</div>
|
||||
<div class="sinpe-info-row">
|
||||
<span>Código de detalle:</span>
|
||||
<strong id="modalSinpeTimeoutCodigo" style="font-family: monospace;">-</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 8px;">
|
||||
<button type="button" class="btn-sinpe-action btn-sinpe-sky" onclick="retrySinpeWaitMore()">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"><path d="M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67"/></svg>
|
||||
<span>Seguir esperando 1 minuto más</span>
|
||||
</button>
|
||||
<button type="button" class="btn-sinpe-action btn-sinpe-subtle" onclick="confirmSinpeSendManualReview()">
|
||||
<svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg>
|
||||
<span>Enviar a revisión manual</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2606,6 +2639,6 @@
|
||||
<script src="/js/sounds.js?v=9.6"></script>
|
||||
<script src="/js/jsQR.js"></script>
|
||||
<script src="/js/food-icons.js?v=1.1"></script>
|
||||
<script src="/js/app.js?v=10.3"></script>
|
||||
<script src="/js/app.js?v=10.4"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user