Custom SaaS Development — Subscription Billing & SOC 2 Ready
Multi-tenant architecture, Stripe Billing wired correctly, customer dashboards, admin consoles, and SOC 2-mapped controls — for founders shipping a v1 and product teams scaling existing SaaS into enterprise sales.
Why SaaS is a special case
SaaS is one of the few software categories where the architecture choices made in the first sprint shape the cost of every customer for the life of the product. Multi-tenancy model (pooled, schema-per-tenant, or database-per-tenant), billing primitives (subscription, usage, hybrid, contract), identity and access architecture (SSO, role hierarchy, per-tenant API keys), and the audit and observability stack are all hard to reverse once paying customers depend on them. We have seen the cleanup work after the wrong call — multi-quarter migrations and dramatic infrastructure costs that the founding team never modeled.
The compliance perimeter for B2B SaaS is also wide and expanding. SOC 2 Type II is now the table-stakes signal for enterprise procurement. ISO 27001 follows close behind for international sales. GDPR and ePrivacy in Europe, CCPA and CPRA in California, plus a growing wave of state privacy laws (VCDPA, CPA, CTDPA, UCPA, TDPSA, OCPA, MCDPA) all impose specific data-handling, retention, and DSR fulfillment obligations. And the 2024–2026 wave of state-level AI disclosure and high-risk-AI laws (Colorado AI Act, NYC Local Law 144, Utah AI Policy Act) means SaaS products with AI features now have specific consumer-disclosure and impact-assessment obligations that bolt onto the existing privacy stack.
What we build for SaaS founders and product teams
- Multi-tenant architecture with tenant-scoped row-level access and encryption
- Stripe Billing for subscriptions, usage, proration, and hybrid pricing models
- Stripe Tax integration for multi-state and international sales tax
- Customer-facing dashboards with tenant-scoped data, charts, and admin controls
- Admin console for the operator — customer management, plan changes, refunds, impersonation with audit log
- Enterprise-tier features — SAML/OIDC SSO, SCIM provisioning, audit log export, IP allowlisting
- API key management with rate limiting, usage tracking, and rotation
- Webhooks and event delivery with retries, signing, and observable failure handling
- Onboarding flows with structured product tours, sample data, and activation tracking
- Customer support tooling — embedded ticketing, in-app help, and impersonation with consent
Common SaaS projects we scope
- Greenfield v1 SaaS for a founder. Multi-tenant architecture, Stripe Billing, customer dashboard, admin console, and a thoughtful first pricing model. The scope is tight on purpose so the first ten customers can be onboarded inside 90 days.
- Billing modernization on an existing product. Replace a tangled invoicing layer with Stripe Billing, add proration, usage metering, and clean revenue recognition. Often paired with a QuickBooks Online or NetSuite sync that finally makes the close clean.
- SOC 2 readiness build. Map every Common Criteria control to a concrete artifact, add immutable audit logging, change-management gates, evidence collection for Vanta/Drata/Secureframe, and a pentest deliverable formatted for the auditor's binder.
- Enterprise tier on an existing SaaS. SAML and OIDC SSO via WorkOS or Auth0, SCIM provisioning, customer-facing audit log export, IP allowlisting, role hierarchy, and tenant data export/deletion workflows.
- Usage-based billing wired correctly. Idempotent usage records, real-time aggregation, custom proration on plan changes, overage handling, and customer-facing usage dashboards that match what gets billed.
- AI features bolted into existing SaaS. Private-tenant LLM endpoints, prompt isolation between customers, no training-data sharing, output verification, and product UX that clearly signals AI-generated content.
- Multi-product platform consolidation. Two or three separate SaaS products folded into one tenant model, one billing layer, and one identity provider — usually after an acquisition or pivot.
- Self-serve onboarding optimization. Activation tracking, in-product tours, sample data templates, and the structured emails that move free trials to first invoice.
- Customer admin and impersonation tooling. Internal tool the support team uses to view a customer's tenant, optionally impersonate with consent, change plans, issue refunds, and leave a full audit trail.
- Migration from a legacy SaaS platform. Rip-and-replace work for products built on dated stacks (legacy Rails monoliths, PHP, or no-code platforms hitting scale walls). Phased migration with old and new running in parallel until cutover.
Compliance and security considerations
SOC 2 Type II. Most enterprise buyers will not take the procurement call without a report. We build with Common Criteria mapped to controls — encryption, RBAC, audit logging, change management, incident response, vendor management — and produce evidence packs for Vanta, Drata, or Secureframe.
ISO 27001. Required for many international and regulated-industry deals. We map controls to Annex A and produce the documentation set the certification body expects.
GDPR and CCPA/CPRA. Lawful basis tracking, consent capture, data subject access requests, deletion workflows, and DPA-aligned vendor management. Privacy preference centers wired through the data layer so analytics and marketing pixels respect user consent.
State privacy law (VCDPA, CPA, CTDPA, UCPA, TDPSA, OCPA, MCDPA). Each state has its own definitions of personal data, sensitive data, controller and processor obligations, and DSR fulfillment windows. We build a single internal privacy framework that covers the strictest state and applies it everywhere.
PCI-DSS scope. Stripe Elements or Checkout tokenizes cards so the SaaS stays in SAQ A. Stored card data lives in Stripe, not the application database.
AI disclosure laws. Colorado AI Act (effective 2026), NYC Local Law 144 on automated employment decision tools, and growing state-level rules require disclosure, impact assessment, and bias-testing documentation for high-risk AI features. We build the disclosure UX and the audit trail into the AI feature itself.
HIPAA when PHI is in scope. SaaS serving healthcare gets HIPAA Security Rule controls — encryption, RBAC, audit logging, BAA-eligible infrastructure — applied on top of the SOC 2 baseline.
Tech stack we recommend for SaaS
Next.js 15 or 16 with React 19 and TypeScript for the application layer. Postgres on Neon, Supabase, or RDS for the system of record. Prisma or Drizzle as the ORM with strict tenant-scoping middleware. Stripe Billing for subscriptions and usage; Stripe Tax for sales tax. Clerk, WorkOS, or Auth0 for identity — WorkOS specifically when SAML SSO is a near-term need.
For observability, Datadog or Better Stack for logs and metrics, Sentry for error tracking with PII redaction in the logger, and OpenTelemetry traces for the critical paths. Background jobs on Inngest or BullMQ+Redis. Background-job idempotency is non-negotiable for billing-adjacent workflows. Hosting on Vercel for the web tier with edge functions for the cold paths; a serverless function tier (Cloud Run, Lambda) or a small dedicated Postgres replica for heavy compute. See the subscription billing service and custom Stripe integration pages for the billing patterns we use.
Pricing transparency
Founder v1 SaaS
Multi-tenant architecture, Stripe Billing, customer dashboard, and admin console for the first ten customers. Scoped tight to ship in 4 to 8 weeks.
Production SaaS platform
Full v1 plus enterprise-tier features (SSO, audit log export, custom integrations), SOC 2 Common Criteria mapping, and a real onboarding flow. 12 to 18 weeks.
Scale or migration build
Multi-product consolidation, legacy migration, complex usage-based billing, AI feature integration, and full SOC 2 + ISO 27001 readiness. 18 to 36 weeks with phased delivery.
Discovery is paid separately at $2,500 and creditable against any full engagement. Book a scope call to walk through your pricing model, your tenancy needs, and your enterprise pipeline.
Pitfalls we have seen
Three patterns recur. First, the v1 ships with no tenant isolation in the data model. The MVP works because there are only five customers. Customer six finds the cross-tenant bug at the worst possible time — usually an evaluation by the customer's security team — and the rebuild eats a quarter. Build tenant isolation in the schema before the first paying customer.
Second, billing gets bolted on with naive Stripe integration. Subscriptions are wired, but proration is wrong, usage isn't idempotent, and refunds do not reconcile cleanly into the accounting system. The first customer who churns and disputes the final invoice exposes the entire mess. Wire Stripe Billing carefully from the start; the cost difference between getting it right and getting it wrong is measured in months of support and finance pain.
Third, SOC 2 gets treated as a paperwork exercise the GRC tool will handle. The reality is that SOC 2 evidence requires structured audit logs, controlled access reviews, real change-management gates, and incident response runbooks that get exercised. A SaaS that bolts these on six weeks before the auditor arrives ends up failing the observation window or producing a heavily-qualified report. Build the controls into the engineering process from quarter one.
FAQs
Why is SaaS treated as a special case for software development?
Architecture choices in the first sprint shape every future customer's cost: multi-tenancy, billing primitives, identity, and observability are all hard to reverse. The compliance perimeter (SOC 2, ISO 27001, GDPR, CCPA, state AI laws) is also wide enough that retrofitting controls after enterprise sales start is dramatically more expensive than building them in.
Can you build a multi-tenant SaaS from scratch?
Yes. Default is shared-database with row-level tenant isolation enforced at the data layer and tenant-scoped envelope encryption for sensitive columns. We move to schema-per-tenant or database-per-tenant when compliance or data-residency requirements demand it.
How do you handle Stripe Billing for complex SaaS pricing?
Stripe Billing for subscription state and usage records, Stripe Tax for sales tax. Idempotent usage events, custom proration, clean reconciliation into QuickBooks Online or Xero.
Are you SOC 2 ready?
Yes. Common Criteria mapped to controls, evidence packs for Vanta, Drata, or Secureframe, and pentest reports formatted for the auditor binder.
What does a $25,000 SaaS build look like?
A focused MVP — multi-tenant database, Stripe Billing, customer dashboard, admin console. 4 to 8 weeks. Discovery scoped tight so v1 ships fast.
How do you handle Enterprise sales requirements (SSO, audit logs, IP allowlisting)?
Same codebase. SAML/OIDC SSO via WorkOS or Auth0 Enterprise, audit log export, IP allowlisting at the load balancer, custom data residency, and tenant data export/deletion.
Can you integrate generative AI features safely?
Yes. Private-tenant LLM endpoints (Azure OpenAI, AWS Bedrock, OpenAI Enterprise), prompt isolation between customers, no training-data sharing, structured output verification, and clear UI signaling about AI-generated content.
Do you build for SaaS founders or for product teams scaling existing SaaS?
Both. Founders get the full v1. Existing product teams get focused engineering on billing modernization, SOC 2 readiness, enterprise-tier features, or new product surfaces inside the existing codebase.
Related services
Subscription Billing
Stripe Billing for SaaS — proration, usage, hybrid pricing, and clean revenue recognition.
Custom Stripe Integration
Complex Stripe work — Connect marketplaces, custom checkout, and accounting sync.
Penetration Testing
SOC 2- and enterprise-ready pentest reports for SaaS audit binders.
Custom Business Software
Admin consoles, internal tooling, and operations dashboards.
Web Applications
Customer dashboards, public marketing sites, and multi-tenant product surfaces.
Cloud Infrastructure
Vercel, Neon, AWS, and Cloud Run patterns for production SaaS.
SaaS engineering reading
All postsBuilding Multi-Tenant SaaS on Postgres RLS
Row-level security patterns for isolating tenant data without separate databases.
Read postBuild vs Buy Software: A 2026 Decision Framework
Three-year TCO math, the 80/20 rule, and a 12-question checklist.
Read postInternal Tools Platform Engineering Guide
Architectural patterns for ops dashboards, admin panels, and back-office UIs.
Read post
Ship a SaaS that scales past the founding team.
Call William Beltz at (770) 652-1282 or book a 20-minute scope call. Mutual NDA before discovery. Founder-led from quote to handoff.