Polling stripe payments

This commit is contained in:
2026-03-20 14:13:10 -05:00
parent a4a79f3eb2
commit a18c47112b
2 changed files with 240 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ const { setBrowser } = require('./services/pdf-service');
// Import recurring invoice scheduler
const { startRecurringScheduler } = require('./services/recurring-service');
const { startStripePolling } = require('./services/stripe-poll-service');
const app = express();
const PORT = process.env.PORT || 3000;
@@ -119,6 +120,7 @@ async function startServer() {
// Start recurring invoice scheduler (checks every 24h)
startRecurringScheduler();
startStripePolling();
}
// Graceful shutdown