@checkoutkit/express
v0.2.0
Published
express adapter for @checkoutkit/server
Downloads
74
Maintainers
Readme
@checkoutkit/express
Express adapter for @checkoutkit/server.
pnpm add @checkoutkit/server @checkoutkit/expressimport express from "express";
import { createAcpServer } from "@checkoutkit/server";
import { createExpressMiddleware } from "@checkoutkit/express";
const acp = createAcpServer({ backend, basePath: "/acp" });
const app = express();
app.use("/acp", express.raw({ type: "*/*", limit: "1mb" }), createExpressMiddleware(acp));Mount it before any JSON body parser. Signature verification hashes the exact
request bytes; express.json() would hand the engine a re-serialised copy and
every signed request would fail.
Typed structurally rather than against @types/express, so it works with Express
4, Express 5 and Connect without adding a dependency.
CheckoutKit is an independent community implementation of the Agentic Commerce Protocol. It is not affiliated with, sponsored by, or endorsed by OpenAI or Stripe.
Part of CheckoutKit · Apache-2.0
