Skip to main content
FinConnect’s ClickPesa provider uses JWT authentication. Unlike PesaPal, ClickPesa does not require IPN registration before initiating payments — you can call sdk.pay() directly with the payment payload.

Prerequisites

  • A ClickPesa merchant account
  • A client ID and API key from the ClickPesa dashboard

Integration steps

1

Configure credentials

Add the following environment variables to your .env file:
2

Initialize the SDK

Import FintechSDK and ProviderType from finconnect, then construct an instance using your credentials:
3

Initiate a USSD push payment

Call sdk.pay() with the payment payload. ClickPesa accepts the raw payload directly — no ipnId is required.
FinConnect automatically authenticates with ClickPesa via JWT before each payment call. Token management is handled internally — you do not need to call authenticate() yourself.
Calling registerIpn() with ClickPesa will throw an error — IPN registration is not supported by this provider. Remove any registerIpn() calls from your ClickPesa integration.