Integrations
Stripe
Set up Stripe for invoice tracking and financial reporting in GridWork HQ.
Stripe
The Stripe integration pulls invoice and payment data into the Finance Panel on the dashboard.
What It Does
- Invoice tracking — displays recent invoices, payment status, and amounts
- Revenue data — feeds into the finance panel's revenue metrics
- Webhook processing — listens for
invoice.paidandcheckout.session.completedevents
Setup
1. Create a Restricted API Key
- Go to dashboard.stripe.com/apikeys
- Click Create restricted key
- Grant permissions:
Invoices: Read,Customers: Read,Checkout Sessions: Read - Copy the key
Use test mode keys (starting with sk_test_) during development.
2. Set Up a Webhook (Optional)
- Go to Developers > Webhooks > Add endpoint
- URL:
https://your-hq-url/api/webhooks/stripe - Events:
invoice.paid,checkout.session.completed - Copy the signing secret
3. Configure Environment Variables
# In gridwork-hq/.env.local
STRIPE_SECRET_KEY=sk_test_your-key
STRIPE_WEBHOOK_SECRET=whsec_your-signing-secretEnvironment Variables
| Variable | Required | Purpose |
|---|---|---|
STRIPE_SECRET_KEY | No | Stripe API key for reading invoice data |
STRIPE_WEBHOOK_SECRET | No | Webhook signing secret for event verification |
Without This Integration
Without Stripe configured:
- The Finance Panel shows locally-stored revenue data only (manual entries via SQLite)
- No Stripe invoice data appears on the dashboard
- Revenue tracking still works through manual entry in the dashboard