Setting up M-Pesa Daraja for appointment payments
Daraja is Safaricom's API for M-Pesa. Connecting it lets your booking system send a payment prompt to a client's phone and recognise paybill payments automatically. The money always goes to your own till or paybill.
What you need
An M-Pesa paybill or till number registered to your business, access to the M-Pesa business administration for it, and a developer account on the Safaricom Daraja portal.
Test in the sandbox
Create an app on the Daraja portal to get sandbox credentials, and test the payment prompt and callbacks before going live.
Go live
Complete the go-live process for your shortcode on the portal. You receive production credentials and a passkey for payment prompts. Treat them like passwords.
Connect your booking system
Enter the shortcode, consumer key, consumer secret and passkey in your console's M-Pesa settings and run the connection test. Register the confirmation URLs so paybill payments are reported.
Tell clients the account reference
Ask clients paying by paybill to use their booking reference as the account number so payments are matched automatically.
Key points
- Use your own shortcode
- Test in sandbox first
- Protect credentials
- Use booking references as account numbers
Questions
Does OctoBook take a percentage of payments?
No. OctoBook charges a subscription only. M-Pesa charges are between you and Safaricom.
Primary source: Safaricom Daraja developer portal. This guide is general information and not legal advice.
Reminders, waiting lists, recalls, deposits and data protection tools, set up for your profession.
Start free