This commit is contained in:
Lizandro Guarnizo
2026-05-12 22:07:31 -05:00
parent f07ac623eb
commit aead156ba8
5 changed files with 70 additions and 5 deletions
+4
View File
@@ -98,6 +98,10 @@ func BoldWebhook(c *fiber.Ctx) error {
if paymentID != "" {
models.UpdateBoldCallbackEstado(paymentID, estimado)
}
// Enriquecer con email y monto del webhook (solo cuando hay datos reales)
if estimado == "pagado" {
models.EnrichBoldCallbackLog(referencia, payerEmail, monto)
}
}
// Solo continuar lógica de negocio para SALE_APPROVED ─────────────────────