If you hang out in Kenyan tech and startup forums on Reddit, you’ve probably seen a version of this exact question pop up time and time again:
“Any other APIs offering STK Push except Daraja? I’m working on a project and would like to know if integrating STK Push with my bank paybills through the Daraja API—using the bank paybills as the shortcode—will route payments directly to bank accounts or only to the M-Pesa wallet. Additionally, are there other options that offer similar functionalities?”
It is one of the most common roadblocks for developers, SaaS founders, schools, Saccos, and e-commerce businesses in Kenya. Everyone wants the seamless checkout experience of an M-Pesa STK Push (where the PIN prompt pops right onto the customer’s phone), and almost every established business wants those funds to settle directly into their bank account (Equity, KCB, Co-op, NCBA, etc.) rather than sitting in an M-Pesa wallet.
Let’s break down why doing this natively through Safaricom’s Daraja API is so tricky—and how PayHero solves this exact problem out of the box.
The Problem: Why You Can’t Just Plug a Bank Paybill into Daraja
To understand the bottleneck, you have to understand how Bank Paybills work under the hood.
When a bank issues you an M-Pesa Paybill (for example, 247247 for Equity or 522522 for KCB), you do not own that Paybill shortcode—the bank does. Your business account number simply acts as the Account Reference under the bank’s master Paybill.
Because of this structure, trying to use Safaricom’s native Daraja API hits an immediate wall:
- No M-Pesa Org Portal Access: To generate the
Consumer Key,Consumer Secret, andPasskeyrequired by Daraja to initiate an STK Push, you must log into the Safaricom M-Pesa Organization Portal as the Paybill owner. Obviously, KCB or Equity isn’t going to hand you administrator credentials to their master Paybill. - Double Settlement Hassles: If you apply for your own standalone Safaricom Paybill or Buy Goods Till just to get Daraja access, funds land in your M-Pesa wallet first. You then have to manually or programmatically sweep/withdraw those funds to your bank account—incurring extra transfer fees and delays.
- Complex Overhead & Slow Approvals: Even when you own the shortcode, Daraja requires jumping through Go-Live approval hoops, managing short-lived OAuth 2.0 Bearer tokens, and hashing real-time timestamps with passkeys.
Enter PayHero: Direct STK Push to Any Bank Paybill (No Daraja Needed)
PayHero acts as a smart payment orchestration layer built specifically for Kenyan payment rails. Instead of forcing you to own a standalone Safaricom shortcode or touch Daraja’s complex credentials, PayHero lets you initiate automated M-Pesa STK Pushes that route money straight into your existing Bank Paybill, Sacco Paybill, School Paybill, or Till.
Here is how PayHero changes the game for both developers and business owners:
1. Direct Bank Settlement (Zero Wallet Middleman)
With PayHero, you link your existing bank details (e.g., Equity, KCB, Co-op, Stanbic, NCBA, I&M, etc.) and your bank account number inside the PayHero dashboard. When a customer completes the STK Push on their phone, the money goes straight from the customer’s M-Pesa into your bank account. There is no waiting for third-party payouts or paying extra withdrawal fees to move money from a gateway wallet to your bank.
2. Go Live in Minutes, Not Weeks
Forget waiting days or weeks for Safaricom Go-Live verifications and compliance back-and-forth. You simply create a PayHero account, register your bank paybill as a Payment Channel (which generates a clean channel_id), top up a small float in your PayHero Service Wallet to cover API initiation fees, and you are live.
3. Dead-Simple Developer API
For developers tired of wrestling with Daraja’s OAuth token caching, YYYYMMDDHHmmss timestamp formatting, and Base64 password encoding, PayHero reduces the entire STK Push to a single, clean REST API call:
- Authentication: Simple HTTP Basic Auth (
Authorization: Basic <base64_token>). - Payload: Just pass the
amount,phone_number(PayHero automatically normalizes07...or2547...formats), yourchannel_id, and acallback_url. - Instant Webhooks: As soon as the customer enters their M-Pesa PIN, PayHero sends a clean, structured JSON webhook to your server with the
MpesaReceiptNumberand transaction status so your app can automatically fulfill orders, activate subscriptions, or issue receipts.
4. No-Code Tools for Non-Technical Teams
Not every business has a backend engineer on standby—and sometimes developers just want to ship fast. Alongside its REST API, PayHero gives businesses:
- Lipwa Links: Generate a custom payment link from your dashboard and share it via WhatsApp, SMS, or Instagram. Customers click it, enter their phone number, and get an STK Push straight to your bank paybill.
- Drop-in E-Commerce Plugins: Official plugins for WooCommerce (WordPress) and Shopify, plus an embeddable Payment Button SDK for websites.
- Automated Reconciliation & SMS Alerts: Every transaction is logged in one unified dashboard with real-time SMS notifications—eliminating the nightmare of scrolling through bank SMS alerts or downloading CSV statements to verify who paid.
Daraja vs. PayHero at a Glance
| Feature | Safaricom Daraja (Direct) | PayHero |
| Works with Bank Paybills? | ❌ No (Requires your own shortcode) | ✅ Yes (Equity, KCB, Co-op, Saccos, etc.) |
| Where do funds settle? | M-Pesa Shortcode Wallet | Directly into your Bank Account / Till / Paybill |
| Setup & Go-Live Time | Days to Weeks (Manual Go-Live checks) | Under 5 minutes |
| API Complexity | High (OAuth 2.0 tokens + Passkey hashing) | Low (Single JSON POST + Basic Auth) |
| No-Code Options | None (API only) | Lipwa Links, WooCommerce, Shopify, Buttons |