stripe-best-practices
Stripe Provider
Connect PayKit to Stripe with @paykitjs/stripe.
Setup
1. Install the provider
pnpm add @paykitjs/stripe
2. Get your Stripe keys
From the Stripe Dashboard:
- Secret key (
sk_test_...orsk_live_...) - Webhook signing secret (
whsec_...), created when you add a webhook endpoint
3. Add environment variables
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.
33create-paykit
Scaffold and implement billing in TypeScript apps with PayKit. Detect framework, configure database, set up Stripe provider, mount route handler, create client, define plans and features. Use when users need to add billing to a new or existing project with PayKit.
16paykit-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.
16metered-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