All blocks

Billing & commerce

Orders

Carts on anonymous or signed-in users, checkout priced from the catalog, gapless order and invoice numbers, payments, fulfillments, returns and refunds.

DocsModes:managedcustom
terminal
npx better-supabase sql add orders
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by orders; sql add installs them too.
      "updated-at": {},
      tenant: {},
      access: {},
      catalog: {},
      // Modes: "managed", "custom". The default is "managed".
      orders: { mode: "managed" },
    },
  },
});