# GhostFoundry Syndicate - Reminders

## Tomorrow (March 14, 2026)

### 🔑 STRIPE API KEYS - PRIORITY
1. Log into [Stripe Dashboard](https://dashboard.stripe.com)
2. Go to **Developers → API Keys**
3. Copy **Secret Key** (sk_test_... or sk_live_...)
4. Go to **Developers → Webhooks**
5. Add endpoint: `https://spookysoftwaresyndicate.com/api/stripe/webhook`
6. Select events: `checkout.session.completed`, `payment_intent.succeeded`, `payout.paid`
7. Copy **Webhook Signing Secret** (whsec_...)

Update in project `.env`:
```
STRIPE_SECRET_KEY=sk_...
STRIPE_WEBHOOK_SECRET=whsec_...
```

---

## ✅ Phase 2 Complete (March 13, 2026)

### AR Dunning System
- Auto-sends payment reminders at 7/14/30 days overdue
- 3-tier escalation: Reminder → Warning → Final Notice
- Branded HTML emails
- Full audit trail

### Bank Reconciliation
- Matches Stripe payouts to AR records
- Flags discrepancies automatically
- Admin alerts for significant variances
- Resolution tracking

### Dashboard Updates
- New "Dunning" tab with overdue stats by level
- New "Reconciliation" tab with match/discrepancy tracking
- One-click "Run Dunning" and "Run Reconciliation" buttons

### Mock Stripe Endpoint
- `/api/stripe/mock` - Test the full O2C flow without real Stripe keys
- POST `{ eventType: "checkout.session.completed", amount: 99.99 }`

---

## Outstanding for Full Autonomy

| Gap | Status | Effort |
|-----|--------|--------|
| Stripe Integration | 🔑 Keys needed | Ready to go |
| AR Dunning | ✅ Built | - |
| Bank Reconciliation | ✅ Built | - |
| Inventory Triggers | ⏳ Phase 3 | ~4 hrs |
| AP Automation | ⏳ Phase 3 | ~8 hrs |
| Expense Categorization | ⏳ Phase 3 | ~4 hrs |
| Dark Factory Integration | ⏳ Phase 3 | ~6 hrs |

---
*Updated: March 13, 2026*
