Nile PayNile Pay

Welcome to Nile Pay

The payments API for Africa. Collect mobile money, card, and bank transfer payments with a single SDK.

Nile Pay is a merchant of record and payment gateway for Africa. Integrate MTN Mobile Money, Airtel Money, Visa, and bank transfers into your application with one SDK, built by developers, for developers.

Get Started

Quick Example

import { createNilePay } from "@nilepay/sdk";

const nilePay = createNilePay({
  environment: "sandbox",
  apiKey: "npk_sandbox_...",
  apiSecret: "nps_sandbox_...",
});

const payment = await nilePay.collectPayment({
  amount: 5000,
  currency: "UGX",
  customer: { phone: "256700000000" },
  reference: crypto.randomUUID(),
});

payment.on("success", (tx) => {
  console.log("Paid!", tx.transactionId);
});

On this page