M-Pesa Daraja Settings
Configure STK Push integration for seamless school fee collection
Required Secret Names
Add these in Dashboard → Code → Secrets
MPESA_CONSUMER_KEYConsumer Key from Safaricom Daraja
MPESA_CONSUMER_SECRETConsumer Secret from Safaricom Daraja
MPESA_SHORTCODEPaybill or Till number
MPESA_PASSKEYLipa Na M-Pesa Online Passkey
MPESA_CALLBACK_URLCallback URL (optional – defaults to placeholder)
⚠️ Security note: Never paste actual credentials in this app. Always use platform Secrets to keep them safe.
AI Daraja Assistant
Ask any question about setting up or troubleshooting your Daraja M-Pesa integration
Test STK Push
Send a Ksh 1 test prompt to verify your setup is working
How STK Push Works
1
Admin Initiates
Click M-Pesa button next to any student balance or invoice
2
Prompt Sent
Parent's phone receives an M-Pesa payment prompt automatically
3
Parent Pays
Parent enters PIN — payment confirmed and recorded instantly
