How M-Pesa Integration Works

Get started with Franzik M-Pesa Payment Gateway in just a few simple steps.

1

Sign Up

Create your account and choose an M-Pesa pricing plan that fits your business.

2

Integrate M-Pesa

Use our simple M-Pesa API to integrate payments into your website or app.

3

Test M-Pesa

Test your M-Pesa integration using our sandbox environment with test numbers.

4

Go Live with M-Pesa

Switch to live mode and start accepting real M-Pesa payments from customers.

Quick Start Code Example


// Initialize Franzik Pay
const franzik = new FranzikPay({
    apiKey: 'your_api_key',
    environment: 'sandbox'
});

// Initiate STK Push
franzik.stkPush({
    amount: 100,
    phone: '2547XXXXXXXX',
    reference: 'ORDER-001'
}).then(response => {
    console.log('Payment initiated:', response);
}).catch(error => {
    console.error('Error:', error);
});

            
View Full Integration Guide →