@checkoutkit/next
v0.2.0
Published
next adapter for @checkoutkit/server
Downloads
75
Maintainers
Readme
@checkoutkit/next
Next.js adapter for @checkoutkit/server.
pnpm add @checkoutkit/server @checkoutkit/nextApp Router — app/acp/[...acp]/route.ts:
import { createAcpServer } from "@checkoutkit/server";
import { createNextRouteHandlers } from "@checkoutkit/next";
const acp = createAcpServer({ backend, basePath: "/acp" });
export const { GET, POST } = createNextRouteHandlers(acp);
export const dynamic = "force-dynamic";basePath must match the route segment — the handler routes on the full pathname.
Pages Router — pages/api/acp/[...acp].ts, via createPagesApiHandler. Set
export const config = { api: { bodyParser: false } } when signatures are enabled,
so the raw bytes reach the HMAC check intact.
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
