This commit is contained in:
Lizandro Guarnizo
2026-05-06 15:29:14 -05:00
parent ccd37ff459
commit 1a8cc92a22
10 changed files with 908 additions and 0 deletions
+2
View File
@@ -118,6 +118,8 @@ func BoldWebhook(c *fiber.Ctx) error {
log.Printf("[BOLD] Webhook: error marcando contrato %d como pagado: %v", contratoID, err)
} else {
log.Printf("[BOLD] Webhook: contrato %d marcado como pagado", contratoID)
// Notificar SaaS externos asociados al contrato (goroutine, no bloquea respuesta)
go services.DispatchSaasPaymentNotification(contratoID, payerEmail, "bold", float64(monto), "COP")
}
}
}