Skip to main content

SDK Integration

Nkwa Pay provides official SDKs for seamless in-app integration across multiple programming languages. These SDKs offer a convenient wrapper around our API endpoints, making it easier to integrate mobile money payments into your applications. All SDK operations mirror the functionality available in the API reference and the Nkwa Pay dashboard. This guide demonstrates how to install, configure, and use our SDKs to process mobile money transactions in your preferred programming language.

Install Client

Install the Nkwa Pay JavaScript SDK using npm, pnpm, bun, or yarn:
terminal

Configure

Import and initialize the Nkwa Pay client:
example

Server Selection

You can specify a custom server URL when initializing the client:
example

Collect Payment

To request a payment from a customer:
example

Disburse Payment

To send money to a customer:
example

Check Payment Status

To check the status of a payment:
example

Check MNO Availability

To check the availability of mobile network operators:
example