create-paykit
Create PayKit
Scaffold billing in a TypeScript application using PayKit.
Planning Phase
Before writing any code, determine:
- Framework: detect from project files:
| File | Framework |
|---|---|
next.config.* |
Next.js (App Router) |
package.json with "next" |
Next.js |
Currently only Next.js is supported.
More from getpaykit/skills
subscriptions-best-practices
Manage subscriptions with PayKit's unified subscribe API, handle upgrades, downgrades, cancellations, resumptions, checkout flows, payment URLs, and subscription status transitions. Use when users need to implement subscription flows or understand PayKit's subscribe semantics.
31paykit-best-practices
Configure PayKit server and client, set up database connections, manage customer identification, handle events, configure logging, and use testing mode. Use when users need to configure or troubleshoot their PayKit setup.
16plans-and-features-best-practices
Define billing plans and features with PayKit's schema DSL, configure plan groups, boolean and metered features, pricing intervals, default plans, and inferred TypeScript types. Use when users need to model their billing structure, add new plans, or modify features with PayKit.
16stripe-best-practices
Configure the Stripe provider for PayKit, set up API keys, webhook endpoints, sync plans with paykitjs push, handle webhooks, and use the Stripe Customer Portal. Use when users need to connect PayKit to Stripe or troubleshoot Stripe integration.
15metered-usage-best-practices
Implement usage-based billing with PayKit's check and report methods, gate features by entitlements, track and decrement usage, handle balance resets, and build metered billing flows. Use when users need to add usage limits, API rate limiting, or consumption-based billing with PayKit.
15