A sandbox with a real world in it.
Cancelled prompts. Empty wallets. Duplicate callbacks. Six test numbers help you find the edge cases before your customers do.
Meet the sandbox ↗
One clean API for M-Pesa and Airtel Money.
A sandbox that feels real. Webhooks you can trace.
Finally, payments that let you get back to building.
✓ No paybill needed / No credit card
Your paybill. Your money.
We handle the developer experience.
01 / MEET YOUR NEW WORKFLOW
Don’t take our word for it. Send a simulated
payment and see what comes back.
import { Njia } from "@njia/sdk";
const njia = new Njia("sk_test_…");
// Your first payment. A few lines away.
const payment = await njia.payments.create(
{
channel: "mpesa",
amount: 150000, // KES 1,500.00
phone: "254700000000",
reference: "ORDER-42"
},
{ idempotencyKey: "order-42" }
);
↳ A preview of the Njia sandbox. Try the unhappy paths, too.Explore the API reference ↗
02 / THE DETAILS, HANDLED
The parts you shouldn’t have to build again,
brought together in one thoughtful toolkit.
Cancelled prompts. Empty wallets. Duplicate callbacks. Six test numbers help you find the edge cases before your customers do.
Meet the sandbox ↗HMAC signatures, automatic retries, and a log of every attempt. Inspect what happened. Replay an event when you need to.
Explore webhooks ↗Separate keys, credentials, and payment history for every product or client. Hand over the project without handing over your account.
Create a workspace ↗03 / HOME IS LOCALHOST
Your laptop doesn’t need a public URL. Stream events and forward signed webhooks straight to your local server with the Njia CLI.
Make your first API call ↗
❯ npx @njia/cli listen
--forward-to localhost:3000/webhooks
Connected. Listening for events.
21:47:25
payment.pending
↳ POST /webhooks 200 · 14ms
21:47:27
payment.succeeded
↳ POST /webhooks 200 · 7ms
Your verification code works here. And in production.
04 / START SMALL. BUILD SOMETHING BIG.
Explore the whole toolkit in the sandbox.
Connect your own paybill when it’s time to go live.
KSh 0 / forever
Room to experiment. No countdown.
From KSh 2,500 / month
Your money goes directly to your business.
NJIA / SWAHILI FOR “THE WAY”
A few lines of code. A whole new possibility.