← All components
Stripe Checkout
Stripe-hosted Checkout Session plus a signed webhook Route Handler for Next.js App Router. Packages pinned to stripe@22.6.1 and @stripe/stripe-js@9.15.0 (verified 2026-09-06).
Copy the files below, or open this folder on GitHub. Each file is stamped with a limited-use licence, generator and date. SHA-256 is of the published catalog bytes, before the stamp.
- id
- stripe
- stack
- Next.js
- version
- 1.0.0
- compatibility
- nextjs >=16 <17 · react >=19 <20
- requires
- nextjs-base
- env vars
- STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY, STRIPE_PRICE_ID
Verified passing · daily buildIntegrity sha256:9f74eba1c2070bbb…
Files (4)
lib/stripe.ts · sha256:9f74eba1c2070bbb…
// Licensed by BotKelp — https://www.botkelp.com
/**
* Server-only Stripe client.
* Source: https://github.com/stripe/stripe-node/releases/tag/v22.6.1
* Docs: https://docs.stripe.com/checkout/quickstart?client=next
* Verified 2026-09-06. Do not import this file in a Client Component.
*/
import Stripe from 'stripe';
export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY as string);