About the project
Inspiration
An overdue invoice tells a business what hasn’t been paid. It doesn’t tell them when payment might arrive, which customers are slowing down, or what to do next. We built Late Payer to turn those questions into a practical daily workflow.
What it does
Late Payer connects PayPal invoicing with payment forecasts and AI-assisted collections. Businesses can:
- Forecast payment timing and expected weekly cash receipts.
- Spot customers paying later than their usual pattern.
- Review a ranked action queue with reasons behind each recommendation.
- Review Gemini-assisted reminder notes and approve PayPal Sandbox reminders.
- Classify customer replies, record promises to pay, and pause reminders for approved disputes.
- Track collection owners, follow-up dates, notes, and outcomes.
- Reconcile invoice payments through verified PayPal webhooks or manual sync.
The public demo gives each browser an isolated synthetic portfolio. Visitors can explore forecasts and simulate actions without contacting customers or moving money.
How we built it
PayPal Sandbox Invoicing powers invoice creation, sending, reminders, and payment reconciliation. Google Gemini assists with grounded reminder wording and reply classification, with validated outputs and deterministic fallbacks.
Survival models estimate time to full payment while accounting for unpaid invoices. AG Grid Community provides the interactive invoice workspace, and Render hosts the Next.js frontend, FastAPI backend, and PostgreSQL database.
Challenges and accomplishments
The core challenge was connecting uncertain forecasts to concrete actions. We built conditional payment forecasts, traceable recommendations, explicit human approvals, and payment reconciliation into one working application.
We also distinguish predictions from hypothetical scenarios and simulated actions from provider operations. Model evaluation is visible in the app; synthetic results demonstrate the pipeline rather than establish real-world accuracy.
What’s next
Validate forecasting on authorized real-world invoice histories, measure collection outcomes, and expand merchant onboarding.
Built With
- ag-grid
- bun
- fastapi
- google-gemini
- lightgbm
- next.js
- paypal
- postgresql
- python
- react
- render
- scikit-learn
- sqlalchemy
- typescript