Backline Vegas
Billing settings
Maya Chen
owner
SaaS plan
Pro
$1,850/mo
Stripe mode
mock
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY is not set. Client billing UI remains in safe mock mode.
Current role
owner
Billing management enabled
SaaS subscription billing
Sierra Technology Group bills companies that use RigFlow for setup, hosting, support, and platform access.
Use this when billing a company for RigFlow access
Rental invoice payment links
Each tenant can send hosted payment links to its own rental customers for deposits, balances, and invoices.
Use this when a tenant bills its rental customer
Stripe readiness states
Admins should know whether they are looking at missing configuration, mock verification, a failed Stripe-style response, or a successfully created mock checkout/payment link.
| State | Admin meaning |
|---|---|
| Missing Stripe env keys | The page shows exactly which keys are absent and keeps all actions in mock mode. |
| Mock mode | Buttons call local placeholder APIs and return fake Checkout Session or Payment Link payloads. |
| Stripe API error | The verification panel can simulate a failed Stripe response and keep the error visible. |
| Successful creation | Successful mock API calls show the generated id, billing track, mode, and redirect URL. |
Create rental payment link
Generate a tenant customer payment link for deposits, balances, or one-off rental invoices. This is separate from RigFlow SaaS billing.
No payment link created yet
Complete the form to generate a safe mock payment link. No live Stripe request is made without keys and future wiring.
Recent generated invoices
Mock operational records saved by the payment-link API for this tenant.
| Customer | Amount | Due / event | Status | Payment link | Actions |
|---|---|---|---|---|---|
Desert Pulse Festival billing@desertpulse.example | $21,400.00 | 2026-05-28 | pending | https://rigflow-pnetoxzzr-devon-s-projects7.vercel.app/checkout/success?payment_link=plink_mock_inv-1048 plink_mock_inv-1048 |
TODO: replace the mock in-memory store with Supabase writes and update statuses from Stripe webhook events.
Test-mode verification
Use these safe actions to verify the admin UI can call the billing APIs before real Stripe test keys are added.
Ready for safe verification
Missing keys and mock mode are expected in this public repo. Add test keys locally when live Stripe calls are intentionally enabled.
- Mode
- mock
- Billing track
- saas
- Result id
- Not created yet
- Redirect URL
- Generated after success
Missing test-mode env keys
STRIPE_SECRET_KEY, NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY, STRIPE_WEBHOOK_SECRET, STRIPE_PRICE_STARTER, STRIPE_PRICE_PRO, STRIPE_PRICE_ENTERPRISE
SaaS subscription
RigFlow company billing is modeled as a Stripe Checkout subscription with a setup fee and recurring hosting/support. This page stays mock until live Stripe keys and package wiring are intentionally enabled.
| Setting | Value | Note |
|---|---|---|
| Plan | Pro | Placeholder SaaS subscription plan until Stripe Billing is connected |
| Setup fee | $7,500 | One-time implementation and launch package |
| Hosting/support | $1,850/mo | Recurring SaaS subscription |
| Stripe customer | cus_backline_vegas_placeholder | Demo id only |
| Payment status | Mock active | No live payment method is stored |
Stripe price mapping
Environment price IDs override mock IDs when present. The route handlers still return mock payloads until live Stripe calls are enabled.
| Plan | Setup | Monthly | Configured price id |
|---|---|---|---|
| Starter | $4,500 | $950/mo | price_rigflow_starter_mock |
| Pro | $7,500 | $1,850/mo | price_rigflow_pro_mock |
| Enterprise | $12,500 | $3,200/mo | price_rigflow_enterprise_mock |
Billing endpoints
Safe placeholders for SaaS checkout and tenant invoice payments.
| Concept | Endpoint | Mock behavior |
|---|---|---|
| SaaS checkout | POST /api/billing/create-checkout-session | Creates a mock Checkout Session for a RigFlow company subscription. |
| Rental payment link | POST /api/invoices/create-payment-link | Creates a mock Payment Link for a tenant customer invoice. |
| Stripe webhook | POST /api/stripe/webhook | Acknowledges Stripe-style events and only mutates mock invoices during explicit webhook tests. |
No Stripe secret key is exposed to the browser.
No live Stripe or Supabase writes run from this page or the placeholder APIs.
Billing changes require owner, admin, or manager role.