Ship subscriptions
in an afternoon.
One SDK for PayChangu, PawaPay, and OneKhusa. Type-safe, zero vendor lock-in, and a managed platform that handles your billing infrastructure.
Real code, not pseudocode.
Create a plan
Define billing intervals, amounts, and currencies.
Collect a payment
Initiate a mobile money collection in one call.
Check payment status
Poll or webhook - your choice. Status is always current.
Switch providers
Change one line. Everything else stays the same.
Built for developers
who ship.
Full TypeScript
Every method, every response, every error - fully typed.
Singleton pattern
Initialize once, use everywhere. No prop drilling.
Provider adapters
PayChangu, PawaPay, OneKhusa behind one interface.
Validation built-in
Catches bad inputs before they hit the network.
Biome linting
Consistent code style enforced at the SDK level.
Clean exports
Import from package root. No deep path imports.
MCP server included.
chia-mcp exposes every SDK operation as an MCP tool. Connect it to Claude, Cursor, or any MCP-compatible assistant and manage subscriptions through natural language.
Create plans, collect payments, check statuses, and cancel subscriptions - all without leaving your AI workflow.
Create a subscription plan with amount, currency, and interval.
Query subscribers by status, plan, or search term.
Initiate a mobile money collection from a phone number.
Get the current status of any payment by ID.
Cancel an active subscription immediately or at period end.