DocsBlogPricingPluginsDemo
Get Codapult

Build your SaaS. Launch your MVP.

Get Codapult

Product

  • Pricing
  • Architecture
  • Modules
  • AI platform
  • Plugins

Developers

  • MCP
  • CLI
  • Documentation
  • Launch your SaaS
  • Build a B2B SaaS

Resources

  • Blog
  • FAQ

Connect

  • Contact
  • GitHub

Compare

  • SaaS template comparison
  • Codapult vs Supastarter
  • Codapult vs Makerkit
  • Codapult vs ShipFast
  • Codapult vs SaaSBold
  • Codapult vs Gravity
  • Codapult vs Nextbase
  • Codapult vs BuilderKit

Featured on

Codapult on LaunchNestCodapult on LaunchNestbetterlaunch.cobetterlaunch.coFeatured on LaunchBuffFeatured on LaunchBuffCodapult on PeerPushCodapult on PeerPushFeatured on LaunchItFeatured on LaunchIt
© 2026 Codapult·All rights reserved·Privacy Policy·Terms of Service
Built-in AI · Team-ready SaaS · One-time purchase
All articles

Getting Started

  • Introduction
  • Quick Start
  • Your First 30 Minutes
  • Project Structure
  • License and Permitted Use
  • Starter Profiles and Recipes
  • Product Recipes

Configuration

  • Environment Variables
  • App Configuration
  • Which Modules Should I Enable?
  • Provider Matrix
  • Capability Coverage

Authentication

  • Authentication
  • OAuth Providers
  • Two-Factor & Passwordless
  • Enterprise SSO (SAML)

Database

  • Database
  • Database and Provider Guide
  • Database Migrations

Teams

  • Teams & Organizations
  • Permissions & RBAC
  • SCIM Provisioning

Deployment

  • Deployment
  • Enterprise E2E Evidence
  • Enterprise Production Readiness
  • Deployment, Backup, and Restore Runbook
  • Troubleshooting

Payments

  • Payments & Billing
  • Stripe Setup
  • LemonSqueezy Setup
  • Polar Setup
  • Payment Webhooks

Api

  • API Layer
  • tRPC
  • GraphQL

Ai

  • AI Features
  • AI Runtime Architecture and Evals
  • Streaming Chat
  • RAG and Semantic Search
  • Quotas and Memory

Email

  • Email
  • Email Templates

Infrastructure

  • Infrastructure
  • Self-Hosting
  • File Storage
  • Docker
  • Background Jobs
  • Terraform & Pulumi
  • Kubernetes

Ui

  • UI & Theming

I18n

  • Internationalization

Content Management

  • Content Management

Admin

  • Admin Panel

Security

  • Security
  • Data Retention Policy

Monitoring

  • Analytics & Monitoring

Modules

  • Module Architecture
  • Waitlist
  • Welcome Page
  • Audit Log
  • White-Labeling
  • Workflow Automation
  • A/B Testing
  • Referrals
  • GDPR Export and Deletion
  • Promotions
  • Outgoing Webhooks

Plugins

  • Product plugins
  • CRM Plugin
  • Helpdesk Plugin
  • Email Marketing Plugin

Upgrading

  • Upgrading Codapult

Developer Tools

  • AI Agents & IDEs
  • MCP Server
  • Testing
  • Build Your First Feature with Codapult MCP
  • Architecture Guardrails for AI Coding Agents
Payments

Stripe Setup

Configure Stripe for subscriptions, checkout, customer portal, and Stripe Connect.

Stripe is the default payment provider. This page covers the Codapult-specific setup steps.

API Keys

Get your keys from the Stripe Dashboard:

STRIPE_SECRET_KEY="sk_test_..."
STRIPE_WEBHOOK_SECRET="whsec_..."

Use test keys (sk_test_*) during development. Switch to live keys (sk_live_*) when going to production.

Test Mode

In test mode, use Stripe test card numbers:

Card NumberScenario
4242 4242 4242 4242Successful payment
4000 0000 0000 32203D Secure authentication
4000 0000 0000 9995Declined payment

Webhook Setup

Codapult's Stripe webhook endpoint is POST /api/webhooks/stripe.

Local Development

Use the Stripe CLI to forward events to your local server:

stripe listen --forward-to http://localhost:3000/api/webhooks/stripe

The CLI prints a webhook signing secret (whsec_...) — copy it to STRIPE_WEBHOOK_SECRET in .env.local.

Production

  1. Go to Stripe Dashboard → Webhooks
  2. Add endpoint: https://your-app.com/api/webhooks/stripe
  3. Select the events listed below
  4. Copy the signing secret to STRIPE_WEBHOOK_SECRET

Handled Events

Stripe EventCodapult Action
checkout.session.completedRecords completed checkout only; not proof of subscription payment
checkout.session.async_payment_succeededProcess a delayed payment after Stripe confirms it
invoice.paidProcess confirmed invoice payment
customer.subscription.createdRecord provider subscription status and link it to the user
customer.subscription.updatedUpdate provider subscription status
customer.subscription.pausedRecord provider-paused status
customer.subscription.resumedRestore provider-reported subscription status
customer.subscription.deletedCancel and deactivate subscription

Select all events listed above in the Stripe webhook endpoint. Checkout metadata is copied to the Stripe subscription so lifecycle events can reliably link the subscription to the local user and plan. Codapult grants recurring access from the provider's subscription status, not from checkout completion alone. All deliveries are logged in the webhook_delivery table.

Subscription pause uses Stripe's pause_collection with invoices kept as drafts. The subscription's provider status remains active; Codapult recognizes the pause setting separately and blocks product access until collection is resumed.

Stripe Connect

For marketplace features, Codapult supports Stripe Connect. Your platform can collect an application fee on transactions:

STRIPE_CONNECT_FEE_PERCENT=10  # 10% platform fee

The server-side fee and the Connect dashboard UI are both read value via env.payments.stripe.connectFeePercent from src/config/env.ts.

The Connect integration handles onboarding, account creation, and fee collection. Manage connected accounts from the admin panel.

Going Live Checklist

  • Switch from sk_test_* to sk_live_* keys
  • Create a production webhook pointing to your live URL
  • Update STRIPE_WEBHOOK_SECRET with the production signing secret
  • Verify webhook events are being received (check webhook_delivery table)
  • Configure the Stripe Customer Portal in Stripe Settings → Customer Portal

For the full Stripe documentation, see docs.stripe.com.

Payments & BillingLemonSqueezy Setup