EN

@core / checkout

1.0.2 ▾
verifiedMIT
GitHub

Stripe Checkout for one-off purchases: server-priced sessions, orders created only from the webhook, auto-refund if sold out

Code8 filesContext~707 tokensMCP stripescan passed

The exact tree that will be injected, after .genpmignore. Pinned to

src/lib/checkout/adapters/next.tsread-only · a9f511f
// Adaptador Next.js:
//   app/api/checkout/route.ts        → export const { POST } = checkoutRoute(currentUserId);
//   app/api/checkout/status/route.ts → export { checkoutStatusRoute as GET } from '@/lib/checkout/adapters/next';
import { type CheckoutPaths, type CurrentUserId, handleCheckoutStatus, handleStartCheckout } from './http.ts';

export const checkoutRoute = (currentUserId: CurrentUserId, paths: CheckoutPaths = { success: '/checkout/success', cancel: '/cart' }) => ({
  POST: (req: Request) => handleStartCheckout(req, currentUserId, paths),
});
export const checkoutStatusRoute = (req: Request) => handleCheckoutStatus(req);

Report @core/checkout

Sign in with GitHub to report a package.