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 Start
Go from zero to your first payment in 5 minutes.
SDK Reference
Configuration, methods, events, and error handling.
Concepts
Transaction types, lifecycle, routing, and security.
Guides
Onboarding, webhooks, payment links, and testing.
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);
});