Home›Blog›How to Add an Online Payment Gateway to Your Kenyan Website
Guide4 min read

How to Add an Online Payment Gateway to Your Kenyan Website

Adding payment processing to your website isn't optional anymore—it's essential. Here's how Kenyan businesses connect their sites to working payment gateways.

paymentsweb developmentM-Pesae-commerce
16 September 2026
How to Add an Online Payment Gateway to Your Kenyan Website

Your website needs to accept money. Whether you're selling products, booking services, or collecting fees, an online payment gateway transforms your site from a brochure into a functioning business tool. The process isn't complicated, but it requires picking the right provider and following specific setup steps.

Which Payment Gateways Work in Kenya

Kenya has several established payment processors. Pesapal remains the most accessible option for small and medium businesses. It accepts M-Pesa, card payments, and bank transfers. Safaricom's M-Pesa API lets you accept M-Pesa directly if you have a Till Number or Business Number registered with Safaricom. Stripe and Flutterwave work in Kenya, though both target higher-volume operations and charge percentage-based fees that can sting on small transactions.

Most Kenyan businesses start with Pesapal because the setup is straightforward and fees are transparent. You'll pay between 2-3% per transaction depending on the payment method customers choose. M-Pesa payments typically cost less than card transactions.

If your business processes fewer than 50 transactions monthly, Pesapal's simplicity wins. For higher volumes or international transactions, evaluate Flutterwave or Stripe—but expect to spend time on compliance documentation.

The Setup Process

Start by creating a merchant account with your chosen gateway. With Pesapal, you'll visit their portal, provide your business registration details, and link your bank account. The approval typically takes 24-48 hours. You'll receive API credentials: a consumer key and consumer secret that act like passwords between your website and Pesapal's systems.

Next, you need technical integration. If you're using WordPress with WooCommerce, plugins handle most of the work—search your plugin repository for your gateway's official extension and install it. Input your API credentials, configure your currency (KSh), and test with a small transaction.

For custom websites, you or your developer will need to write code that connects your checkout page to the payment gateway's API. This is where payment integration experts earn their fees. A simple integration typically costs between KSh 15,000 and KSh 50,000 depending on your site's complexity. If you're building a site from scratch, factor this into your budget early.

Always test in a sandbox environment first. Payment gateways provide test credentials that let you process fake transactions without charging anyone. Run through the entire flow: add items to cart, proceed to checkout, enter test card details, and confirm the payment appears in your merchant dashboard. Only move to live mode once you've verified everything works.

Compliance and Tax Considerations

Payment gateways report transaction volumes to the Kenya Revenue Authority. If your online revenue exceeds KSh 5 million annually, you must be registered for VAT. Keep records of all transactions—your payment gateway's dashboard provides downloadable reports that simplify tax filing on the KRA's iTax portal.

Ensure your website's privacy policy explains how you handle payment data. Most gateways handle PCI compliance (the security standard for card payments), but you must commit not to storing raw card details on your own servers.

If you're uncertain about registration requirements or compliance obligations, business setup experts on Kaziiko can clarify what applies to your specific operation.

Common Pitfalls to Avoid

Don't hardcode API credentials into publicly visible code—use environment variables instead. Don't skip testing; launching with a broken payment system means lost sales. Don't ignore transaction fees when pricing your products; a 3% gateway fee should factor into your margins.

Many businesses underestimate the importance of customer communication. Send clear payment confirmation emails, provide order tracking, and make refund policies obvious. These details matter more than flashy checkout design.

Frequently Asked Questions

Which payment gateway is cheapest for a small online shop?

Pesapal typically has the lowest barrier to entry with transparent 2-3% fees and no monthly subscription. M-Pesa direct integration costs nothing if you already have a Till Number, but setup is more technical. Compare your expected transaction volume and customer payment preferences before deciding.

Can I use multiple payment gateways on one website?

Yes. Many sites integrate Pesapal and M-Pesa together, giving customers choice. This requires setting up both providers' credentials and testing each integration separately. The extra complexity is worth it if it increases completed transactions.

How long does payment approval take?

Pesapal typically approves merchant accounts within 24-48 hours. Flutterwave and Stripe require more documentation and may take 3-5 business days. Have your business registration certificate and bank details ready to speed the process.

Do I need an SSL certificate for a payment gateway?

Absolutely. Your website must use HTTPS (indicated by the padlock icon). Payment gateways won't process transactions on unsecured sites, and customers won't trust checkout pages that show security warnings. Most hosting providers include free SSL certificates; enable it before integrating any payment processor.

Find an Expert on Kaziiko

payment integration experts ›business setup experts ›Browse all experts ›
KaziikoKazi IkoKenya's Digital Expert Marketplace

Skip the queue — hire a verified expert

Pay via
M-PESA

Our vetted specialists handle KRA, eCitizen, NTSA, SHA, NSSF and more — remotely, in hours.

✓ Verified & background-checked experts
✓ Pay securely via M-Pesa — no cash
✓ Work delivered remotely in hours
✓ Dispute protection on every order
eCitizenKRA & TaxNTSASHABusiness Reg.CV Writingkaziiko.co.ke

You might also like

All articles ›
Guide

How to Apply for a Kenya Revenue Authority Objection

4 min read
Guide

How to Register for Ajira Digital in Kenya and Get Paid

4 min read
Guide

How to Change Your Name Officially After Marriage in Kenya

4 min read