Product
Developers
Collect with STK Push. Pay out with B2C. Both report back through signed webhooks, with no Daraja setup on your side.
Order ord_8841
KES 2,450
POST /v1/payments/stk
Idempotency-Key: ord_8841
Prompt sent to 0712 ••• 482
Paybill 247247 · Account 0170291
Customer entered M-PESA PIN
Confirmed by M-Pesa
mpesa_receipt QK7XH2LM9P
Webhook delivered
200 · your-app.com/hooks
Your server sends the request
Amount, phone and your order reference.
Your customer enters their PIN
The M-Pesa prompt lands on their phone in seconds.
You get the webhook
status SUCCESS, with the mpesa_receipt.
const stk = await palpluss.stkPush({
amount: 2450,
phone: "0712345678",
accountReference: "ORDER-1042",
callbackUrl: "https://yourapp.com/hooks",
});
stk.status; // "PENDING" until the webhookPayout run
March payroll
Fund your B2C wallet
Top up once from the console.
Send the payout
One number or hundreds, each with an Idempotency-Key.
Money lands, or comes back
Successes carry a receipt. Failures return to your wallet.
const payout = await palpluss.b2cPayout(
{ amount: 18000, phone: "0722000105", reference: "PAY-0312" },
{ idempotencyKey: "payroll-mar-0312" },
);
payout.status; // "PENDING" until the webhook| STK Push | B2C Payouts | |
|---|---|---|
| Money moves | Money movesCustomer → you | Money movesYou → anyone |
| Who acts | Who actsCustomer enters their PIN | Who actsNobody. It just lands |
| Settles into | Settles intoYour Paybill, Till or bank Paybill | Settles intoRecipient's M-Pesa, from your B2C wallet |
| Fee | FeeKES 3 per request from KES 10 | FeeFrom KES 6, tiered by amount |
| Built for | Built forCheckout, invoices, subscriptions | Built forPayroll, refunds, commissions |
| Endpoint | EndpointPOST /v1/payments/stk | EndpointPOST /v1/b2c/payouts |
Webhook deliveries
{ "transaction": { "status": "SUCCESS", "amount": 2450, "mpesa_receipt": "QK7XH2LM9P", "external_reference": "ord_8841" } }
Create an account and get KES 15 in free tokens to send your first live M‑Pesa STK Push in minutes.