Appbricx
Features

Build

  • Coding agents and MCP
  • Verify testing
  • Builder console

Data

  • Postgres database
  • Data API
  • Realtime

Users

  • Row-level security
  • Sign-in and auth
  • Payments

Logic

  • Workflows and jobs
  • AI in your app
  • Integrations

Ship and own

  • Backups and rollback
  • Hosting and domains
  • Self-host and export
All features
ShowcaseTemplatesPricingDocs
Log inStart free
  • Features
  • Showcase
  • Templates
  • Pricing
  • Docs
  • Log in

Build

  • Coding agents and MCP
  • Verify testing
  • Builder console

Data

  • Postgres database
  • Data API
  • Realtime

Users

  • Row-level security
  • Sign-in and auth
  • Payments

Logic

  • Workflows and jobs
  • AI in your app
  • Integrations

Ship and own

  • Backups and rollback
  • Hosting and domains
  • Self-host and export
  1. Home
  2. Templates
  3. Stripe subscriptions

Block · Payments and billing

Stripe subscriptions

Adds plans (each linked to a Stripe price) and subscriptions. A Plans and billing page lets people pick a plan and pay on Stripe's secure checkout. Stripe then tells the app what happened through a signed webhook (checkout completed, invoice paid or failed, subscription changed or cancelled), and only the server marks a subscription active. Manage billing opens Stripe's customer portal to change card, switch plan or cancel. Rules stop anyone marking their own subscription paid. Staff manage plans and see every subscriber.

Use in AppbricxFree. Already have an account? Log in
View the files

use_template { slug: "stripe-subscriptions" } adds

Tables
plan, subscription
Components
BillingPanel
Pages
/billing, /subscriptions-admin
Workflows
subscription-checkout, stripe-subscription-events, subscription-sync, subscription-apply-sync, billing-portal, subscription-active-notify
Rules
2 on subscription

What it adds to your app

Tables plan and subscription (two starter plans). BillingPanel component on a Plans and billing page. A Stripe-signed webhook that applies checkout, invoice and subscription events. Server functions: checkout, billing settings and a manual check with Stripe. A staff page for plans and subscribers.

Tables

  • plan name, description, price, currency, interval, stripe_price_id, features, active, …
  • subscription subscriber_id, plan_id, status, sync, stripe_session_id, stripe_subscription_id, stripe_customer_id, current_period_end

Pages

  • /billing Plans and billing (‹subscriber_role›)
  • /subscriptions-admin Subscriptions (@staff)

Workflows

  • subscription-checkout Start a Stripe Checkout for a plan. On server function (‹subscriber_role›)
  • stripe-subscription-events Apply Stripe's subscription events. On webhook stripe-subscription-events
  • subscription-sync Check a subscription with Stripe (fallback). On server function (‹subscriber_role›, @staff)
  • subscription-apply-sync Apply what Stripe said about a subscription. On subscription updated
  • billing-portal Open Stripe's billing settings for a subscriber. On server function (‹subscriber_role›)
  • subscription-active-notify Tell the subscriber their plan is active. On subscription updated

Components

  • BillingPanel Plans to choose from, the current subscription and Stripe billing settings

Rules on every write

  • subscription A new subscription starts as pending until Stripe confirms it.
  • subscription Only Stripe can change a subscription.

Where it attaches

Params point the template at your own tables and roles. Leave out the ones with defaults; a wrong one is refused with the options your app has.

ParamWhat it isExample
subscriber_roleThe role whose people buy a plan (their own table is the subscriber). Optional.member

Use with your coding agent

  1. Connect the Appbricx MCP server to Claude Code, Cursor or any MCP client (quickstart).
  2. Paste the prompt. The agent reads the template, previews the merge with dry_run and shows you the diff.
  3. It applies to dev. Check it, then deploy when you are happy.

Needs the STRIPE_SECRET_KEY secret, the STRIPE_WEBHOOK_SECRET secret. A Stripe account with a recurring price for each plan (paste each price id into the plan).

Prompt
Add the Stripe subscriptions template (slug "stripe-subscriptions") to my Appbricx project. Read it with get_template, run use_template with dry_run first and show me the diff, then apply it. Ask me where it attaches if you can't tell from my contract (subscriber_role: who subscribes).
MCP call
{
  "tool": "use_template",
  "arguments": {
    "slug": "stripe-subscriptions",
    "project_id": "<your project id>",
    "params": {
      "subscriber_role": "member"
    },
    "dry_run": true
  }
}
CLI
appbricx templates use stripe-subscriptions --param subscriber_role=member --dry-run

Goes well with

  • One-off payments

    Block. Take a card payment for any record (a booking, an order, an invoice) through Stripe Checkout, confirmed by the server.

    paymentPayableListMyPaymentspayment-checkoutstripe-payment-events
  • Stripe payment received

    Workflow. Records every paid Stripe Checkout session the moment Stripe reports it, once, and tells your team.

    stripe_paymentStripePaymentsstripe-checkout-eventsstripe-sync-paymentsstripe-payment-received
  • Organisations and teams

    Block. Let people create organisations, form teams, invite colleagues by email and give them owner, admin or member roles.

    organisationteammembershipinvitation‹attach_to›.organisation_id

Your agent adds it. Appbricx runs it.

Start freeAll templates
Appbricx

The backend, runtime and hosting for apps your coding agent builds. On our cloud, in yours, or on your own servers.

Features

Coding agents and MCPVerify testingBuilder consolePostgres databaseData APIRealtimeRow-level securitySign-in and authPaymentsWorkflows and jobsAI in your appIntegrationsBackups and rollbackHosting and domainsSelf-host and exportAll features

Product

ShowcaseTemplatesPricingFor coding agentsPrivate cloudBring your own AI keyFAQ

Compare

Appbricx vs SupabaseLovable alternativeBolt alternativeFor freelancersFor agencies

Resources

DocumentationReferenceBlogSupportContact

© 2026 Appbricx. All rights reserved.

TermsPrivacyCookiesAcceptable Use