Edlan Logo

MpesaSettingsPage

M-Pesa Daraja Settings

Configure STK Push integration for seamless school fee collection

Required Secret Names

Add these in Dashboard → Code → Secrets

MPESA_CONSUMER_KEY

Consumer Key from Safaricom Daraja

MPESA_CONSUMER_SECRET

Consumer Secret from Safaricom Daraja

MPESA_SHORTCODE

Paybill or Till number

MPESA_PASSKEY

Lipa Na M-Pesa Online Passkey

MPESA_CALLBACK_URL

Callback 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