Wise Hustlers — Digital Product & App Development Studio Logo
Get Consultation
By Wise Hustler Admin•10/28/2026•16 min read

E-commerce in Kenya: Complete Guide to Selling Online

E-commerce in Kenya: Complete Guide to Selling Online

# E-commerce in Kenya: Complete Guide to Selling Online

Summary: Building a profitable ecommerce Kenya business requires integrating Safaricom M-Pesa mobile money rails, complying with KRA eTIMS invoicing rules, and executing landmark-based fulfillment across Nairobi and upcountry counties. This guide analyzes verified payment gateway pricing (Pesapal, Paystack, Flutterwave, IntaSend, DPO), realistic setup costs, statutory taxes, and delivery architectures to build a scalable digital storefront.

---

The Kenyan E-Commerce Landscape: Mobile-First and Nairobi-Centric

Kenya's retail commerce is steadily migrating from unstructured social selling on Instagram and WhatsApp to professional digital storefronts. According to the Communications Authority of Kenya (CAK) Sector Statistics Report (Q3 FY 2023/24), total mobile data and internet subscriptions in Kenya reached over 64 million, with high-speed broadband connections (3G, 4G, and 5G) accounting for approximately 85% of total mobile data connections. Supported by extensive 4G and expanding 5G coverage from Safaricom and Airtel Kenya, the consumer shopping journey is overwhelmingly mobile-first.

While social commerce remains a popular starting point for solo entrepreneurs, merchants encounter operational bottlenecks as order volume grows: manual direct-message order logging, unverified payment screenshots, and disjointed dispatch coordination. Building a structured online store Kenya shoppers trust establishes brand authority, automates inventory tracking, and secures payment verification at checkout.

Commercial activity is concentrated within the Nairobi Metropolitan Area, which serves as the primary commercial and distribution hub for nationwide e-commerce platforms and courier networks. Secondary growth corridors with increasing delivery volumes include Kiambu, Mombasa, Nakuru, Kisumu, and Eldoret. To successfully sell online Nairobi and nationwide, merchants must build lightweight websites optimized for mobile network speeds and integrate localized payment rails.

---

Essential Payment Infrastructure: The Mobile Money Imperative

In the Kenyan market, checkout architecture dictates conversion rates. Central Bank of Kenya (CBK) National Payments System data confirms that mobile money services form the primary electronic transaction channel for retail commerce across the country. Traditional credit cards account for a smaller proportion of retail checkouts, primarily serving high-ticket items, corporate procurement, and international cross-border shoppers.

The Safaricom M-Pesa Anchor

Safaricom M-Pesa is the foundation of domestic digital commerce. According to Safaricom PLC's FY 2024 annual reporting, the M-Pesa ecosystem processes tens of billions of transactions annually, averaging over 100 million transactions daily across consumer and business touchpoints. For any ecommerce website Kenya consumers visit, integrating automated M-Pesa payment flows is essential. Merchants typically use one of two primary account structures:

  • Lipa Na M-Pesa Buy Goods Till: Designed for direct retail point-of-sale checkouts. Customers pay without incurring customer-side transaction charges; the merchant pays a standard 0.55% fee, capped at KES 200 per individual transaction.
  • Lipa Na M-Pesa Paybill: Uses a dedicated Business Number and Account Number (such as an Order ID or Invoice Number). Paybill facilitates precise accounting and automated order reconciliation, though customer tariffs apply unless the business chooses to absorb transaction charges.

Modern online stores rely on M-Pesa STK Push (Daraja API 2.0). When a shopper enters their phone number on the checkout page, the system triggers a secure SIM toolkit prompt directly on their phone requesting their M-Pesa PIN. Once authenticated, Safaricom delivers an instant payment confirmation webhook to the store backend, updating the order status without manual merchant intervention.

Implementing Daraja 2.0 STK Push

Integrating directly with Safaricom Daraja API provides direct bank and till settlement without aggregator markups. Below is a runnable Node.js integration showing how to generate the base64 Daraja password and initiate an STK Push (Lipa Na M-Pesa Online) transaction:

// daraja-stk-push.js
// Runnable Node.js module for Safaricom Daraja 2.0 STK Push
const https = require('https');

function initiateStkPush({
  shortCode,
  passkey,
  amount,
  phoneNumber,
  callBackUrl,
  accountReference,
  accessToken
}) {
  return new Promise((resolve, reject) => {
    // Generate timestamp in YYYYMMDDHHmmss format
    const now = new Date();
    const timestamp = [
      now.getFullYear(),
      String(now.getMonth() + 1).padStart(2, '0'),
      String(now.getDate()).padStart(2, '0'),
      String(now.getHours()).padStart(2, '0'),
      String(now.getMinutes()).padStart(2, '0'),
      String(now.getSeconds()).padStart(2, '0')
    ].join('');

    // Generate Base64-encoded password: Base64(ShortCode + Passkey + Timestamp)
    const password = Buffer.from(`${shortCode}${passkey}${timestamp}`).toString('base64');

    const payload = JSON.stringify({
      BusinessShortCode: shortCode,
      Password: password,
      Timestamp: timestamp,
      TransactionType: 'CustomerPayBillOnline', // or 'CustomerBuyGoodsOnline'
      Amount: Math.round(amount),
      PartyA: phoneNumber, // Customer phone in international format: 2547XXXXXXXX
      PartyB: shortCode,
      PhoneNumber: phoneNumber,
      CallBackURL: callBackUrl,
      AccountReference: accountReference,
      TransactionDesc: `Payment for Order ${accountReference}`
    });

    const options = {
      hostname: 'api.safaricom.co.ke', // Use 'sandbox.safaricom.co.ke' during development
      path: '/mpesa/stkpush/v1/processrequest',
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${accessToken}`,
        'Content-Type': 'application/json',
        'Content-Length': Buffer.byteLength(payload)
      }
    };

    const req = https.request(options, (res) => {
      let data = '';
      res.on('data', (chunk) => { data += chunk; });
      res.on('end', () => {
        try {
          const parsed = JSON.parse(data);
          resolve(parsed);
        } catch (err) {
          reject(new Error(`Failed to parse response: ${data}`));
        }
      });
    });

    req.on('error', (err) => reject(err));
    req.write(payload);
    req.end();
  });
}

module.exports = { initiateStkPush };

Kenya's Leading Payment Gateways

For businesses seeking a multi-channel checkout with minimal custom code, third-party Payment Service Providers (PSPs) regulated by the Central Bank of Kenya (CBK) provide unified checkouts supporting M-Pesa, Airtel Money, and card processing:

  • Safaricom Daraja API: Direct telecom integration with no third-party transaction markup, settling funds directly to your merchant till or linked bank account. Requires custom API development and does not process debit or credit cards.
  • Pesapal: A CBK-licensed Kenyan payment gateway with native KRA eTIMS fiscal integration capabilities. Processes M-Pesa, Airtel Money, Visa, Mastercard, and American Express, with standard merchant payouts disbursed in 24 to 48 hours.
  • IntaSend: Developer-centric gateway offering automated M-Pesa STK push, card processing rails, automated disbursement APIs, and dispute management with next-business-day settlements.
  • Flutterwave: Pan-African payment processor authorized under CBK oversight, supporting Kenyan Shilling (KES) mobile collections alongside international multi-currency card processing (USD, GBP, EUR).
  • Paystack: Stripe-backed payment gateway offering optimized mobile checkouts, fraud detection, automated webhooks, and T+2 business day payout settlements to local bank accounts and M-Pesa accounts.
  • DPO Group: Enterprise payment platform specializing in travel, hospitality, and high-volume retail, offering multi-currency card settlement and fraud monitoring based on customized enterprise commercial agreements.

Payment Gateway Comparison Table

GatewaySetup FeeM-Pesa FeeCard Processing FeeSettlement TimeCBK Regulatory Status
Safaricom DarajaKES 00.55% (max KES 200)N/A (Mobile Only)Instant to TillRegulated Mobile Operator
PesapalKES 03.0% - 3.5%3.0% - 3.5%24 - 48 HoursCBK Licensed PSP
IntaSendKES 02.5% - 3.0%3.5%Next Business DayCBK Licensed PSP
FlutterwaveKES 02.9%3.2% Local / 4.8% Intl1 - 3 Business DaysRegulated PSP
PaystackKES 01.5%2.9% Local / 3.8% IntlT+2 Business DaysCBK Authorized PSP
DPO GroupKES 0 (Custom Quote)Custom (~3.0% - 3.8%)Custom (~3.5% - 4.5%)2 - 5 Business DaysCBK Licensed PSP

---

Logistics and Last-Mile Delivery: The Kenyan Ground Reality

Order fulfillment is one of the most critical operational pillars for Kenyan e-commerce, shaped by the prevalence of landmark-based addressing rather than formal postal codes or uniform house numbers.

Landmark-Based Addressing

Deliveries across Nairobi and regional towns rely on physical landmarks, estate gates, and shared digital map coordinates (such as WhatsApp location pins). Standard checkout address forms must be customized to capture actionable location details:

1. County and Town/Estate name.

2. Prominent landmarks (major petrol station, supermarket branch, bus terminus, or roundabout).

3. Estate name, building/apartment name, gate number, and floor/door number.

4. Active recipient phone number reachable by voice calls and WhatsApp messaging.

Local Delivery Channels

Merchants operating an ecommerce logistics Kenya workflow generally combine three complementary dispatch channels:

1. Intra-Nairobi Boda Couriers: On-demand motorcycle dispatch networks (including platforms like Glovo Business, Sendy-partnered riders, and private courier fleets) provide point-to-point same-day delivery across Nairobi zones (CBD, Westlands, Kilimani, Karen, Upper Hill). Base rates typically range from KES 200 to KES 450 depending on distance, parcel weight, and delivery urgency.

2. Neighborhood Pick-Up Hubs (Pick-up Mtaani & Boxleo): Merchants drop consolidated parcels at a central CBD collection depot. Packages route overnight to neighborhood retail agents across residential areas (such as Roysambu, Kasarani, Rongai, Pipeline, and Thika), where customers pick up their orders for KES 100 to KES 150 per parcel.

3. Upcountry Couriers & Matatu SACCO Networks: National courier companies (Speedaf Express, Fargo Courier, G4S) handle parcel delivery across county headquarters and residential addresses nationwide for KES 350 to KES 850. For cost-sensitive upcountry shipping, regional public transport SACCO parcel offices (including Easy Coach, 2NK Sacco, Guardian, and North Rift) provide station-to-station delivery to regional bus depots for KES 250 to KES 500.

Managing Payment on Delivery (POD)

Handling physical cash exposes couriers to security risks, complicates cash reconciliation, and frequently results in delivery rejections. To manage these risks, established stores implement M-Pesa on Delivery: couriers allow the buyer to inspect the parcel packaging at the door, then trigger an instant M-Pesa STK push or present an official merchant till number before handing over the goods. Additionally, offering modest incentives—such as KES 150 to KES 200 off for orders pre-paid at web checkout—encourages customers to pay in advance.

Delivery Options & Cost Matrix

ChannelCoverage AreaTypical Cost (KES)Delivery TimelineBest For
Boda CourierNairobi MetroKES 200 - KES 4502 - 4 HoursSame-day urgent orders, fragile goods
Pick-up MtaaniNairobi Estates & EnvironsKES 100 - KES 150Next DayApparel, cosmetics, non-perishable goods
Speedaf / FargoCountrywide Door/HubKES 350 - KES 85024 - 48 HoursHigher-value electronics, home appliances
Matatu SACCOsUpcountry Town StationsKES 250 - KES 50012 - 24 HoursLow-cost regional freight to bus depots

---

Regulatory Compliance, Taxes, and Consumer Protection

Operating an e-commerce storefront in Kenya requires adhering to statutory registration, taxation, and data governance frameworks established by national regulatory authorities.

KRA eTIMS Compliance

Under Section 23A of the Tax Procedures Act (2015), the Kenya Revenue Authority mandates that all registered businesses generate and transmit electronic tax invoices through the electronic Tax Invoice Management System (eTIMS). To remain fully compliant:

  • Micro and small enterprises can generate compliant invoices manually via the free eTIMS portal or desktop/mobile client software provided by KRA.
  • Higher-volume digital storefronts integrate an automated eTIMS Virtual Sales Control Unit (VSCU) or Online Sales Control Unit (OSCU) API into their checkout backend to issue KRA-approved fiscal invoices containing QR verification codes automatically upon order completion.

Under Section 16 of the Income Tax Act, business buyers cannot claim tax deductions on corporate purchases unless the expenditure is supported by a valid eTIMS invoice, making compliance essential for merchant credibility.

Taxation Overview

E-commerce businesses in Kenya operate under several key tax provisions:

  • Value Added Tax (VAT): The standard rate is 16% on taxable supplies of goods and services. Mandatory VAT registration applies when annual taxable turnover exceeds KES 5,000,000, though voluntary registration is permitted for smaller businesses.
  • Turnover Tax (TOT): Under the Income Tax Act, qualifying resident businesses with gross turnover between KES 1,000,000 and KES 25,000,000 pay Turnover Tax at 1.5% of gross sales, remitted monthly by the 20th of the following month, in lieu of standard corporate profit taxation (unless an election is filed to be taxed under general corporate rates).
  • Corporate Income Tax (CIT): Registered resident limited liability companies not subject to Turnover Tax pay corporate income tax at 30% on net taxable profits.
  • Digital Taxation: The digital services framework governs non-resident marketplace operators and digital content providers operating digital platforms utilized by Kenyan consumers.

Data Protection (ODPC)

Under the Kenya Data Protection Act 2019 and the Data Protection (Registration of Data Controllers and Data Processors) Regulations, online businesses that collect and process customer personally identifiable information (PII)—including customer names, phone numbers, email addresses, and physical locations—must register as a Data Controller or Data Processor with the Office of the Data Protection Commissioner (ODPC) where statutory thresholds apply. Merchants must maintain a clear, accessible privacy policy, obtain explicit customer consent for marketing communications, and deploy industry-standard SSL/TLS encryption across all checkout endpoints.

Importing Inventory: Customs and KEBS Rules

Merchants importing finished commercial goods through the Port of Mombasa or Jomo Kenyatta International Airport (JKIA) must account for customs duties and trade compliance fees:

  • EAC Common External Tariff (CET): Rates follow the East African Community 4-band tariff structure: 0% for raw materials and capital machinery, 10% for intermediate goods, 25% for standard finished consumer goods, and 35% for sensitive/protected goods.
  • Import Declaration Fee (IDF): Under Kenya's Miscellaneous Fees and Levies Act, the standard IDF rate on imported finished commercial goods is 3.5% of the Customs Value (CIF).
  • Railway Development Levy (RDL): Charged at 2.0% of the Customs Value (CIF) on imported commercial merchandise.
  • KEBS Requirements: Imported products subject to mandatory standards must obtain a Pre-Export Verification of Conformity (PVoC) Certificate of Conformity (CoC) from accredited inspection agencies before shipment, alongside the Kenya Bureau of Standards (KEBS) Import Standardization Mark (ISM) prior to domestic commercial sale.

---

Platform Selection and Technical Architecture

According to web analytics and operating system market data from sources such as Statcounter GlobalStats, Android accounts for over 80% of Kenya's mobile OS market, with mobile devices generating the vast majority of web browsing sessions. Storefront performance and lightweight page architecture directly influence bounce rates and sales.

Platform Comparison

  • WooCommerce (WordPress): Provides low entry costs, zero recurring platform software licensing fees, and full ownership of your customer database. Annual hosting and .co.ke domain registration typically total KES 8,000 to KES 25,000, supported by readily available Kenyan M-Pesa plugins.
  • Shopify: Fully hosted SaaS solution offering managed infrastructure, but monthly subscription costs begin at $39/month (approx. KES 5,000+), invoiced in USD, plus additional charges for premium third-party payment gateway apps and transaction fees.
  • Custom Mobile Apps: For enterprise brands scaling retention and customer lifetime value, investing in dedicated app development in Kenya enables native iOS and Android applications featuring direct M-Pesa STK push integration, automated SMS delivery notifications, and offline catalog caching.

Estimated Store Setup Costs

The following itemized matrix outlines realistic initial investment ranges for launching a digital storefront in Kenya:

Expense ComponentWooCommerce (Self-Hosted)Shopify (Managed SaaS)Custom Mobile App Build
Domain (.co.ke / .com)KES 1,000 - KES 1,800/yrKES 1,800 - KES 2,500/yrKES 1,800 - KES 2,500/yr
Hosting & InfrastructureKES 6,000 - KES 25,000/yrIncluded in plan subscriptionKES 60,000 - KES 180,000/yr
Platform Licensing FeesKES 0 (Open source)KES 60,000+/yr ($39/mo base)Custom codebase
Gateway & eTIMS SetupKES 0 - KES 25,000KES 25,000 - KES 50,000Custom API build
Initial Inventory & PackagingKES 30,000 - KES 80,000KES 80,000 - KES 250,000KES 300,000+
Initial Marketing BudgetKES 15,000 - KES 35,000KES 35,000 - KES 100,000KES 150,000+

---

Operational Blueprint: From Registration to First Sale

Launching a structured Kenyan e-commerce store follows six disciplined execution steps:

1. Incorporate via eCitizen: Complete business registration on the Business Registration Service (BRS) portal, choosing either a Business Name (sole proprietorship or partnership, statutory registration fee KES 850) or a Private Limited Company (statutory registration fee KES 10,650).

2. Onboard with KRA eTIMS: Obtain your corporate KRA PIN through iTax and configure eTIMS software or API credentials to issue electronic fiscal receipts for all sales.

3. Set Up Merchant M-Pesa Rails: Submit your incorporation documents, business PIN, and national identity credentials to Safaricom Business to obtain an official Lipa Na M-Pesa Buy Goods Till or Paybill number.

4. Deploy Mobile-First Storefront: Configure a lightweight catalog with compressed WebP imagery, fast page load speeds, and automated M-Pesa STK push integration.

5. Contract Delivery Partners: Establish accounts with Pick-up Mtaani for cost-effective estate collections across Nairobi, retain dedicated boda riders for rapid urban deliveries, and partner with Speedaf or regional matatu parcel offices for upcountry distribution.

6. Execute Targeted Customer Acquisition: Deploy Meta and Google search campaigns targeted to key residential and commercial zones across Nairobi, supported by short-form video product demonstrations on TikTok.

---

Frequently Asked Questions (FAQ)

How much capital is required to start an online store in Kenya?

Budget requirements depend on platform architecture. An itemized self-hosted build (such as WordPress/WooCommerce) typically incurs KES 1,000 to KES 1,800 for a .co.ke domain, KES 6,000 to KES 20,000 annually for web hosting, and KES 20,000 to KES 50,000 in technical setup and M-Pesa API integration, bringing initial digital infrastructure costs to roughly KES 30,000 to KES 75,000 before inventory. Managed SaaS platforms like Shopify require $39/month (approx. KES 5,000 monthly or KES 60,000 annually) plus domain and merchant app fees, requiring KES 100,000 to KES 200,000+ in first-year operational capital.

Is cash on delivery (COD) necessary for e-commerce in Kenya?

No. Carrying physical cash exposes couriers to security risks, creates reconciliation disputes, and leads to delivery rejections. The prevailing standard across Kenya is M-Pesa on Delivery, where couriers present the package for customer verification and initiate an instant STK push to the customer's phone before handing over the goods. Offering modest checkout discounts (e.g., KES 150 to KES 200 off) also encourages customers to pre-pay online.

Can I run an online business in Kenya without KRA eTIMS?

No. Under Section 23A of the Tax Procedures Act, the Kenya Revenue Authority requires all commercial entities to issue eTIMS-compliant electronic tax invoices. Beyond statutory compliance, Section 16 of the Income Tax Act disallows expense deductions for corporate customers unless supported by valid eTIMS invoices, making compliance essential if you sell to businesses.

Which payment gateway is best for beginners in Kenya?

Pesapal, Paystack, and IntaSend offer straightforward onboarding, zero upfront setup fees, and ready-made integration plugins for WooCommerce and Shopify. Merchants with dedicated software engineering resources can integrate directly with Safaricom Daraja API 2.0 to eliminate third-party processing markups on mobile money transactions.

---

Sources

Related articles