VillageHub Create Account
Payments

Kopo Kopo

Integrate Kopo Kopo to accept M-Pesa payments through their merchant API for Kenyan ISPs.

You need a Kopo Kopo merchant account. Sign up at app.kopokopo.com.
1

Create a Kopo Kopo Application

Log in to your Kopo Kopo dashboard → SettingsAPI Settings. Create a new application and note down your credentials:

Client IDYour Kopo Kopo app ID
Client SecretYour Kopo Kopo app secret
API KeyFor authenticating STK push
2

Configure Your Till Number

In Kopo Kopo, ensure your Till Number is active and linked to your M-Pesa paybill. Kopo Kopo uses Buy Goods (Till) transactions for receiving payments.

Kopo Kopo requires a verified Till number before you can process live payments.
3

Enter Credentials in VillageHub

Admin PanelSettingsPayment Integration. Select Kopo Kopo as your gateway and paste your Client ID, Client Secret, and API Key.

4

Set Your Webhook URL

Copy the callback URL from VillageHub and paste it in your Kopo Kopo app's webhook configuration:

Callback URL
https://isp.village-hub.net/api/payments/kopokopo/callback/{tenant-id}

Kopo Kopo connected!

M-Pesa payments via Kopo Kopo will now trigger automatic package activation for your subscribers.