TypeScript toolkit for creating payment systems with a consistent API across providers.
Enables easy switching between payment gateways (e.g., Stripe, Polar, PayPal) by swapping adapters—often just 2 lines of code.
Includes React hooks for type-safe, async-first integration in modern apps.
Upcoming PayKit Cloud (v2 launch) adds dashboard, analytics, and collaboration tools with lifetime access for $49 one-time.
Community-focused with sponsorships and integration opportunities for new providers.
PayKit is payment toolkit built in TypeScript, empowering developers to construct flexible, future-proof payment flows without the chains of vendor lock-in. At its core, it abstracts the complexities of different payment providers into a unified, intuitive API—meaning you write once and adapt endlessly. Ideal for indie devs, startups, or teams building e-commerce, SaaS billing, or marketplaces, it lets you start with local development today and deploy to any supported provider tomorrow. By leveraging adapters, PayKit ensures your codebase stays portable, reducing migration headaches and costs. With React hooks baked in, it's a seamless fit for frontend-heavy stacks, promoting type safety and async patterns that scale with your app.
Consistent TypeScript API: Unified interface for all payment operations, from checkout to subscriptions—type-safe and async-first.
Provider Adapters: Plug-and-play modules for Stripe, Polar, and PayPal; switch providers with minimal code tweaks.
React Hooks Integration: Familiar patterns like usePayment or useSubscription for effortless state management and side effects.
Interactive Demos: Live code playgrounds showing real-time provider swaps, highlighting only the changing lines.
Extensibility: Open architecture invites custom adapters for emerging providers.
Production-Ready: Handles edge cases like retries, webhooks, and error boundaries out of the box.
Vendor Freedom: Swap providers effortlessly, avoiding costly rewrites—perfect for evolving business needs.
Developer Joy: TypeScript everywhere means fewer bugs; React hooks keep integrations clean and reactive.
Cost-Effective: Core toolkit is free; one-time Cloud access at $49 beats recurring SaaS fees.
Quick Start: Interactive demos and live code accelerate onboarding—no deep docs dive required.
Community Growth: Sponsorships and partnerships fuel expansions, like new provider integrations.
Limited Initial Providers: Starts with Stripe, Polar, PayPal—may need custom adapters for niche gateways.
Cloud in Beta: v2 launch pending; full dashboard/analytics not yet live, though core toolkit is ready.
React-Centric: Hooks shine in React/Next.js; lighter support for vanilla JS or other frameworks.
Promo Urgency: Lifetime deal for first 50 buyers—miss it, and pricing may rise post-launch.
PayKit provides modular adapters and hooks as drop-in templates, with interactive demos for hands-on learning:
Provider Adapters: StripeImplementation (full checkout/subscription flows), PolarAdapter (subscription-focused), PayPalAdapter (one-time payments)—each with example configs.
React Hooks Templates: useCreatePayment (async checkout initiation), useManageSubscription (lifecycle hooks with polling), useWebhookHandler (server-side event processing).
Demo Playground: Live editor showing a checkout form; toggle providers to see animated code diffs (e.g., swap new StripeAdapter() for new PolarAdapter()).
Boilerplate Starters: Next.js example repo with full payment flows, including error handling and success redirects.
Cloud Previews: Invoice builder template, customer dashboard mockup, and team collab UI snippets.
These are GitHub-ready, e.g., clone and tweak the Stripe demo to test Polar in minutes.
PayKit's core toolkit is under a permissive license—no limits on use in personal or commercial projects. For enhanced services:
PayKit Cloud (Lifetime Access): One-time $49 USD for forever access to v2 features like invoice builders, customer management, team permissions, billing portals, analytics, and dashboards. Promotion: Available to the first 50 buyers—grab it before launch to lock in the deal. Details and purchase via Polar checkout.
Engineered for plug-and-play in modern stacks:
Payment Providers: Stripe (full suite), Polar (subscriptions), PayPal (one-offs)—adapters handle API diffs.
React/Next.js: Hooks for client/server components, compatible with App Router.
TypeScript Ecosystems: Zod for schema validation, TanStack Query for caching payment states.
Deployment Platforms: Vercel/Netlify for frontend, Supabase/Firebase for backend webhooks.
Analytics Tools: Hooks into PostHog or Mixpanel for transaction tracking.
Custom Extensions: Open for new adapters via community PRs.
It's a TypeScript toolkit with a unified API for payments; adapters let you swap providers (e.g., Stripe to PayPal) by changing just 2 lines—no full rewrites needed.
Currently Stripe, Polar, and PayPal; community contributions can add more via adapters.
They provide type-safe wrappers like usePayment for async flows, keeping your components declarative and provider-agnostic.
PayKit lets you build payments with a consistent Typescript API.
Submit your Shadcn product to AllShadcn, get featured, and drive genuine traffic while showcasing your work to the world. Turn your creativity into revenue and begin selling today! 🚀