Stripe
PaymentsCheckout. Creates one-time and recurring Checkout sessions with trusted customer and product details.
Webhooks. Verifies signed Stripe events and routes each delivery once.
Refunds and disputes. Issues refunds, revokes the access they paid for, and records disputes for review.
Payments that keep working after checkout closes.
Mined from production apps and scanned for secrets on every release. Typed end to end.
Stripe starter code pack
Checkout, subscriptions, webhooks, and everything after.
After you buy, one prompt pulls it in
Click, then paste into your AI chat. Your agent installs Boost OS and wires in the Stripe starter code pack.
Then just tell your agent what you want
Your AI coding agent · with Boost OS
Add a $29 one-time product with checkout and a receipt email.
Building from the Stripe pack:
Checkout route from src/checkout, receipt from src/emails, and access grant from src/fulfillment.
Everything stays wired through src/lib/app-adapter.ts, with no raw Stripe calls scattered through your app.
- Cursor
- Claude Code
- Codex
- GitHub Copilot
- Windsurf
What you get
- Sell one-time products and monthly subscriptions
- Verify every payment and count it once
- Give customers access instantly, exactly once
- Send payment and subscription emails automatically
- Check the full payment path before launch
- Give your agent setup notes to follow
- Let AI agents buy within your spending limits
- Charge by AI token or request
The move list
13 modules across three jobs. Open any module to see every file inside it.
Get paid
Take the money: one-time, recurring, metered, or agent-initiated.
- CheckoutCreates one-time and recurring Checkout sessions with trusted customer and product details.3 files
- SubscriptionsKeeps billing changes, cancellations, and customer access aligned with Stripe.4 files
- Usage billingReports AI token or request usage to Stripe meters so customers pay for what they use.3 files
- Agentic commerceAccepts agent-initiated payments with scoped Shared Payment Tokens and resumes flows that need buyer action.3 files
After the sale
Deliver access, send the emails, and handle refunds without drama.
- FulfillmentTurns confirmed payments into access without duplicate orders or grants.1 file
- EmailsSends payment and subscription messages when customers need confirmation.5 files
- Customer portalOpens hosted sessions where customers manage plans, payment methods, and cancellations.2 files
- Refunds and disputesIssues refunds, revokes the access they paid for, and records disputes for review.2 files
The safety rails
The plumbing that keeps every event verified and every grant counted once.
- WebhooksVerifies signed Stripe events and routes each delivery once.10 files
- VerifyChecks the full payment path and easy-to-miss event cases before launch.1 file
- Shared libraryCentralizes typed Stripe setup and payment helpers across every route.4 files
- SetupMaps required Stripe settings and integration points into your app.17 files
Provenance
Extracted from payment systems running in production apps with real customers
Frequently asked questions
Is this a Stripe Checkout Next.js boilerplate?
It goes beyond a checkout button. The pack gives your agent the connected Next.js payment flow: Checkout sessions, verified webhooks, subscriptions, fulfillment, emails, verification, shared helpers, and setup notes.
Does it include a Stripe webhook handler example?
Yes. The webhook module covers signed event handling, repeat deliveries, and the handoff into fulfillment. Public pages list each file and its purpose, while the source stays available to license holders.
How do I verify Stripe webhook signatures in Next.js?
The pack includes the pattern that runs on your server: read the unmodified request body, pair it with Stripe's signature header, and verify both with your webhook secret before processing the event.
Can I use the Stripe starter with an existing app?
Yes. Click the onboarding pill on this page and paste the prompt into your AI chat; your agent pulls the pack and maps the pack's database, email, and access points to the services your app already uses.
Does the pack expose its source code on this website?
No. The directory shows file paths, purposes, languages, and line counts so you can evaluate the pack. Source contents are a paid Boost OS perk; your AI agent installs them for you after license verification.
Can I convert this pack to Python or another language?
The Stripe pack ships in TypeScript. Every module is adapter-based and written with plain comments, so you can ask your AI agent in chat to convert any module to your language and keep the logic intact. The TypeScript version stays the source of truth for updates.
Add the Stripe card to your collection
One $199 license includes every current and future production code pack.
Get Boost OS