Docs

Everything you need to ship a bizfoo storefront.

Quickstart
  1. 1
    Create a workspace and storefront in the dashboard.
  2. 2
    Add products with one or more prices.
  3. 3
    Click Sync to Stripe on each product.
  4. 4
    Install the SDK and render your catalog.

Install the client SDK

bun add @bizfoo/client
# or
pnpm add @bizfoo/client

List products

import { createBizfooClient } from "@bizfoo/client";

const bizfoo = createBizfooClient({
  storefront: "summoniq",
  publicKey: process.env.NEXT_PUBLIC_BIZFOO_KEY!,
});

const { products } = await bizfoo.listProducts();

Get a single product

const { product } = await bizfoo.getProduct("nextjs-saas-starter");

Create a checkout

const { url } = await bizfoo.createCheckout({
  items: [{ priceId: products[0].prices[0].id }],
  email: "buyer@example.com",
  successUrl: "https://yoursite.com/success",
  cancelUrl: "https://yoursite.com/cancel",
});

window.location.href = url;

Webhooks

bizfoo records every paid order against the originating storefront. Forward events to your own systems via the Webhooks tab in your storefront settings.

Heads-up

The catalog endpoint is cacheable — set next: { revalidate: 60 } in Next.js or hit it from a static build for max speed.