Skip to main content
web-development

How to Start an Online Store in Kenya with M-Pesa (Step-by-Step)

Learn how to start a successful online store in Kenya with M-Pesa integration. This step-by-step guide covers platform selection, payment setup, costs, and marketing strategies for Kenyan ecommerce businesses.

Mocky Digital
June 1, 2026
8 min read

Starting an online store in Kenya has never been more accessible. With over 40 million internet users and M-Pesa handling more than 100 million transactions daily, the infrastructure for ecommerce success is firmly in place. Kenya's ecommerce market reached KSh 299 billion in 2024 and is projected to hit KSh 338 billion by the end of 2025, making now the ideal time to launch your digital storefront.

This comprehensive guide walks you through every step of building a successful online store Kenya businesses need to compete in today's digital marketplace—from choosing your platform to integrating M-Pesa and scaling your operations.

Why Ecommerce in Kenya Is Booming Right Now

Kenya ranks as Africa's third-largest ecommerce market, trailing only South Africa and Nigeria. Several factors drive this remarkable growth:

  • Mobile-first shopping: Over 70% of ecommerce transactions occur via mobile devices

  • M-Pesa dominance: Mobile money facilitates more than 70% of online transactions

  • Young, tech-savvy population: With a median age below 20, Kenyans are highly receptive to digital innovation

  • Government support: The National E-Commerce Strategy launched in December 2023, with supportive policies continuing into 2026

For SMEs, this represents a massive opportunity. Currently, only about 15% of Kenya's small and medium enterprises have an active online presence, despite SMEs contributing approximately 40% of the national GDP and employing over 14 million people.

Step 1: Choose Your Ecommerce Platform

Your platform choice affects everything from setup costs to long-term scalability. Here are the main options for Kenyan businesses:

WooCommerce (WordPress)

WooCommerce powers over 75% of online stores in Kenya, making it the dominant platform by a wide margin. Benefits include:

  • Free core plugin with affordable extensions

  • Excellent M-Pesa integration options

  • Full ownership of your store and data

  • Massive community support and local developers

Best for: Businesses wanting flexibility and long-term cost control

Shopify

Shopify accounts for about 8.5% of Kenyan stores and offers a more hands-off approach:

  • Monthly subscription model (starts around $29/month)

  • Built-in hosting and security

  • Easy setup with less technical knowledge required

  • Growing M-Pesa integration options through apps

Best for: Entrepreneurs who want to launch quickly without technical complexity

Custom-Built Solutions

For businesses with specific requirements or plans for significant scale:

  • Complete control over features and user experience

  • Higher upfront cost but no ongoing platform fees

  • Can be built to integrate seamlessly with existing business systems

Best for: Established businesses with unique workflows or high transaction volumes

Step 2: Register Your Business and Get Necessary Documents

Before integrating M-Pesa, you'll need proper business registration. The requirements include:

1. Business Registration Certificate from the Registrar of Companies 2. KRA PIN Certificate for your business 3. Bank account in the business name 4. Lipa Na M-Pesa Till Number (for Buy Goods) or M-Pesa Paybill Shortcode

The choice between Till Number and Paybill depends on your business model:

Type

Best For

Account Reference

Buy Goods (Till)

Retail, direct sales

No account number needed

Paybill (Shortcode)

Services, B2B, subscriptions

Requires account number

Most ecommerce stores use Buy Goods (Till Number) because customers simply enter the till number to pay—no account reference needed.

Step 3: Set Up M-Pesa Integration

M-Pesa integration is non-negotiable for any serious online store Kenya entrepreneurs build. Here's what you need to know:

The Daraja API

Safaricom's Daraja API platform (now version 3.0) connects your website to M-Pesa. Key features include:

  • STK Push: Automatically sends a payment prompt to the customer's phone

  • Transaction confirmation: Real-time payment verification

  • Reversal capabilities: Handle refunds programmatically

The Daraja 3.0 platform has connected over 100,000 developers who have created more than 60,000 integrations.

Integration Costs

Here's what M-Pesa integration typically costs:

Cost Item

Amount

API Access

Free

Transaction fee (Buy Goods)

0.5% of transaction, capped at KSh 200

Customer payment fee

Free (for Buy Goods)

Integration development

KSh 15,000 - KSh 50,000 (one-time)

The good news: Safaricom doesn't charge for API access itself. Customers pay nothing when using Buy Goods tills, and merchants pay just 0.5% capped at KSh 200 per transaction.

Payment Gateway Alternatives

While direct M-Pesa integration is popular, payment gateways offer additional options:

  • Pesapal: Supports M-Pesa, cards, and Airtel Money

  • Flutterwave: International cards plus mobile money

  • IntaSend: Growing local option with good developer tools

These gateways typically charge 2-3.5% per transaction but offer multi-currency support and easier integration.

Step 4: Build Your Online Store

With your platform chosen and M-Pesa ready, it's time to build. Here's what a professional ecommerce website costs in Kenya:

Ecommerce Website Pricing in Kenya (2026)

Store Type

Price Range (KSh)

What You Get

Basic WooCommerce

100,000 - 150,000

Small catalogue, M-Pesa, essential features

Standard Ecommerce

150,000 - 300,000

Custom design, multiple payment options, inventory management

Advanced/Custom

300,000 - 500,000+

Full customization, advanced features, system integrations

Working with experienced ecommerce website developers in Kenya ensures your store is built for performance, security, and conversion.

Essential Features Your Store Needs

Don't launch without these:

  • Mobile-responsive design (remember, 70%+ of traffic is mobile)

  • Fast loading times (under 3 seconds ideally)

  • SSL certificate (required for payments and SEO)

  • Clear product photography

  • Simple checkout process (fewer steps = more sales)

  • Stock management system

  • Order tracking capabilities

Step 5: Handle Logistics and Delivery

Logistics remains one of the biggest challenges for ecommerce in Kenya. Your options include:

In-House Delivery

Managing your own delivery works for:

  • Businesses with limited geographic coverage

  • High-value items requiring special handling

  • Companies building delivery as a competitive advantage

Third-Party Logistics Partners

Popular options include:

  • Sendy: On-demand delivery with real-time tracking

  • Glovo: Quick delivery in urban areas

  • G4S/Fargo: Reliable for nationwide coverage

  • Posta Kenya: Most affordable for less urgent deliveries

Delivery Pricing Strategies

  • Free delivery over a threshold: "Free delivery on orders over KSh 3,000"

  • Flat rate by zone: Different prices for Nairobi vs upcountry

  • Real-time courier quotes: Show actual delivery costs at checkout

Step 6: Market Your Online Store

Building the store is just the beginning. Here's how to drive traffic and sales:

Search Engine Optimization (SEO)

  • Optimize product titles and descriptions with relevant keywords

  • Create category pages targeting how Kenyans search

  • Build content that answers customer questions

  • Get listed in local business directories

Social Media Marketing

  • Instagram: Essential for product-based businesses

  • Facebook: Still strong for Kenyan audiences

  • TikTok: Growing rapidly, especially for younger demographics

  • WhatsApp Business: Direct customer communication and catalogues

Paid Advertising

  • Google Ads for high-intent searches

  • Facebook/Instagram ads for awareness and retargeting

  • Start small (KSh 500-1,000/day) and scale what works

Common Mistakes to Avoid

Learn from others' expensive lessons:

1. Skipping mobile optimization: Your site must work flawlessly on phones 2. Complicated checkout: Every extra step loses customers 3. Poor product images: Invest in quality photography 4. Ignoring customer service: Respond quickly on WhatsApp and social media 5. Underestimating delivery complexity: Partner with reliable logistics early 6. Not tracking metrics: Use Google Analytics to understand what's working

Getting Started: Your Action Plan

Ready to launch your online store Kenya customers will love? Here's your roadmap:

Week 1-2: Business registration, get M-Pesa till/paybill, gather product information

Week 3-4: Choose platform, select developer or start building

Week 5-8: Website development, M-Pesa integration, product upload

Week 9-10: Testing, soft launch to friends and family

Week 11+: Official launch, begin marketing

Need help bringing your ecommerce vision to life? Our team specializes in building high-converting online stores with seamless M-Pesa integration. Book a free consultation to discuss your project.

Frequently Asked Questions

How much does it cost to start an online store in Kenya?

A basic professional ecommerce website with M-Pesa integration typically costs KSh 100,000-150,000. This includes design, development, and payment setup. Budget an additional KSh 20,000-50,000 annually for hosting, domain, and maintenance. You'll also need to factor in initial inventory, business registration (around KSh 10,000-15,000), and marketing budget.

Do I need a business registration to accept M-Pesa payments?

Yes. To get a Lipa Na M-Pesa till number or paybill, you need a registered business with a KRA PIN and a bank account in the business name. Sole proprietorships, partnerships, and limited companies all qualify. The registration process typically takes 1-2 weeks through the eCitizen portal.

Which is better for ecommerce: WooCommerce or Shopify?

WooCommerce dominates the Kenyan market (75%+ of stores) because it offers more flexibility and lower long-term costs. You own your store completely and have excellent local M-Pesa plugins available. Shopify is easier to start with but has ongoing monthly fees and transaction charges. For most Kenyan SMEs, WooCommerce offers better value, especially when working with a professional web developer.

How long does M-Pesa integration take?

Direct Daraja API integration typically takes 1-2 weeks for an experienced developer, including testing and going live. Using payment gateway plugins (Pesapal, IntaSend) can reduce this to 2-3 days. The timeline also depends on how quickly you obtain your till number or paybill from Safaricom.

What are the M-Pesa transaction fees for online stores?

For Lipa Na M-Pesa Buy Goods (till number), customers pay nothing. Merchants pay 0.5% of the transaction amount, capped at KSh 200 maximum. So on a KSh 50,000 sale, you'd pay KSh 200 (not KSh 250). This makes M-Pesa one of the most affordable payment options available.

Can I sell to customers outside Kenya?

Yes, but you'll need to add international payment options. M-Pesa alone only works for Kenyan customers. Payment gateways like Pesapal and Flutterwave support international cards. You'll also need to sort out international shipping logistics and be clear about delivery times and costs to other countries.

Share this article

Ready to Start Your Project?

Let's discuss how we can help bring your vision to life with professional design and development.