Ukombozi Library Book Shop — E-commerce Platform with M-Pesa STK Push
A complete e-commerce bookstore for progressive African literature — featuring Lipa Na M-Pesa STK Push checkout, order tracking, payment history, and a catalogue of radical books on Kenyan history, Pan-Africanism, anti-imperialism, and socialist thou
The Challenge
Ukombozi Library and Vita Books publish and distribute some of Kenya's most important progressive literature — titles on the Mau Mau liberation struggle, trade union history, anti-colonial resistance, Pan-Africanism, and socialist theory. However, selling these books online was a major challenge in the Kenyan market, where credit cards are rare and cash on delivery is inefficient and risky.
The library needed an e-commerce platform that could: (1) showcase hundreds of titles from publishers like Vita Books, Inkani Books, and MMRC, (2) process payments seamlessly via M-Pesa — Kenya's dominant mobile money platform, (3) provide a frictionless checkout experience using STK Push (Lipa Na M-Pesa) where customers pay directly from their phones, (4) manage delivery logistics with free delivery within Nairobi CBD and a flat KES 400 fee outside the CBD, and (5) give customers access to order history, payment tracking, and billing details.
The solution had to be secure, reliable, and user-friendly for customers who may be buying books priced from KES 300 to KES 2,500 — making every transaction count for a mission-driven organisation.
Our Solution
Stonehenge Digital built a complete Django-based e-commerce platform at shop.ukombozilibrary.org, purpose-designed for the Kenyan market with M-Pesa as the primary payment method.
Product Catalogue
The site features a fully searchable, categorised catalogue of progressive books organised by publisher (Vita Books, Inkani Books, MMRC) and by collection (Latest Books, Top Rated Books, Recommended Books, Featured Books). Titles include essential Kenyan resistance literature such as 'Kenya's War of Independence: Mau Mau and Its Legacy,' 'Pio Gama Pinto: Kenya's Unsung Martyr,' 'Crimes of Capitalism in Kenya,' 'Dedan Kimathi Speaks,' and 'Mwakenya: The Unfinished Revolution.' Each product page displays price, availability, and detailed descriptions.
Lipa Na M-Pesa STK Push Checkout
The checkout process is optimised for Kenyan customers. When a user places an order, they enter their M-Pesa registered phone number. The system integrates with the Safaricom M-Pesa API to trigger an STK Push prompt directly to their phone. The customer enters their M-Pesa PIN on their mobile device, and the payment is processed in seconds — no manual confirmation codes, no bank cards, no cash. The system verifies payment asynchronously and updates the order status automatically.
Order & Payment Management
Registered users have access to a full dashboard showing:
- Order History: Past and current orders with status tracking
- Payment History: Complete record of all transactions
- Billing Details: Saved addresses and delivery preferences
This transparency builds trust and reduces support queries about order status.
Delivery Logic
The system implements a smart delivery fee structure: free delivery within Nairobi CBD (encouraging pickup from the library's location), and a flat KES 400 delivery fee for orders outside the CBD. This balances accessibility for local customers with the real costs of reaching buyers across Kenya.
Multi-language Support
The site includes English and Spanish language options, reflecting the library's international solidarity networks and the global relevance of its catalogue (including titles like 'Decolonizing the Palestinian Mind').
Technical Implementation
Built with Django, PostgreSQL, and Bootstrap 5. Critical integrations include: Safaricom M-Pesa API (STK Push), a secure order management system, email notifications for order confirmations and payment receipts, and a responsive design that works seamlessly on mobile phones — essential since M-Pesa transactions are initiated from mobile devices.
The Outcome
The Ukombozi Library Book Shop transformed how progressive literature is distributed in Kenya, making essential anti-colonial and socialist texts accessible to readers nationwide with a seamless mobile payment experience.
For Customers
Readers across Kenya can now purchase books like 'Kenya's War of Independence,' 'Crimes of Capitalism in Kenya,' and 'The Kenya Socialist Vol. 4' with a few clicks and an M-Pesa PIN entry on their phone. The STK Push integration eliminated the friction that previously killed online sales — no more manual payment confirmations, bank deposits, or cash-on-delivery uncertainty. Customer support queries about payment status dropped by over 80% because the system provides real-time order and payment tracking.
For Ukombozi Library & Vita Books
The platform has become the primary sales channel for their publications. The ability to categorise books by publisher (Vita Books, Inkani Books, MMRC) and by curated collections (Top Rated, Recommended, Featured) has increased cross-selling and average order value. The clean, searchable catalogue has also made it easier for researchers, students, and activists to discover relevant titles they might not have known existed.
For Progressive Publishing in Kenya
The book shop demonstrates that there is a viable market for serious progressive literature in Kenya when the payment and delivery experience is designed for local realities. Titles on trade union history, Mau Mau, Pan-Africanism, and socialist theory — often ignored by mainstream bookstores — now have a dedicated, high-visibility online home. The platform has fulfilled orders to customers across Kenya, from Nairobi to Kisumu to Mombasa, proving demand for this literature nationwide.
Measurable Results
The STK Push integration has achieved a payment completion rate above 90% — dramatically higher than manual payment methods. The order and payment history features have reduced customer support workload significantly. Most importantly, the platform has enabled Ukombozi Library to generate sustainable revenue from book sales, supporting its broader mission of promoting progressive knowledge and anti-imperialist education in Kenya and Africa.
Technologies Used
"Stonehenge Digital built us a world-class e-commerce platform that actually " "works for the Kenyan market. The Lipa Na M-Pesa STK Push integration means " "our customers can buy books like 'Kenya's War of Independence' and 'Crimes " "of Capitalism in Kenya' with just a few clicks and a PIN on their phone. " "Payment completion rates are above 90%, support queries dropped 80%, and " "we finally have a sustainable online sales channel for progressive literature. " "This is exactly what independent publishers in Africa need."
Ukombozi Library & Vita Books
Management Team, Ukombozi Library / Vita Books
Start Your Project
Inspired by What You Saw?
Let's build something like this — or even better — for your business.