VillageHub Create Account
Finance

ClickPesa (TZ) Setup

Connect your ClickPesa merchant account to accept Airtel Money, Tigo Pesa, HaloPesa, and M-Pesa payments (mainly supported in Tanzania) from subscribers.

You need an active ClickPesa merchant account. Create one here if you don't have one.
1

Log in to ClickPesa Merchant Portal

Go to merchant.clickpesa.com and sign in. Navigate to Settings in the left sidebar.

2

Go to the Developers Tab

Inside Settings, click Developers. This is where you manage API applications and credentials.

ClickPesa Settings
3

Create a New Application

Click Create App. Name it Test App. Choose API to give VillageHub programmatic access to initiate payments.

Developers Tab
4

Configure the Application

Select API as the application type, then fill in the application details. Leave the Callback URL blank for now.

Configure Api Keys
Create New Api Key

ClickPesa will then display your Client ID and API Key. Copy both.

Copy Credentials
The API Key is only shown once. Regenerate from Developers tab if lost.
Do not share your API credentials. VillageHub stores them securely and encrypted.
5

Paste Credentials into VillageHub

Admin PanelSettingsPayment Integration. Paste your Client ID and API Key.

VillageHub Settings
6

Set Your Webhook Callback URL

VillageHub generates a unique callback URL. Copy it and paste into ClickPesa's Callback URL field.

Callback URL
https://isp.village-hub.net/api/payments/clickpesa/callback/{tenant-id}
Add Webhook URL
Paste Callback URL
7

Test Your ClickPesa Integration

Before rolling out to customers, always run a test transaction to ensure your setup is functioning correctly:

  1. Create a test package in VillageHub with a very low cost (e.g., 100 TZS).
  2. Connect to your portal, select the test package, and complete the ClickPesa checkout.
  3. Confirm the following:
    • The payment is processed successfully on your phone via ClickPesa.
    • The transaction shows as paid in the VillageHub payments tab.
    • Your test device's package activates automatically, and internet access is granted (Hotspot or PPPoE).
Troubleshooting Test FailuresIf something fails, double-check that your API credentials and Webhook URL match perfectly between VillageHub and the ClickPesa dashboard, then retry the test. For advanced onboarding and API details, refer to the ClickPesa documentation.

You're connected!

Subscribers can now seamlessly pay via Airtel Money, Tigo Pesa, HaloPesa, and M-Pesa. Payments reflect automatically within seconds.