N
NexttPay

Developers / SDKs

SDKs & Libraries

Integrate faster with official SDKs for your favorite languages. Reduce boilerplate and focus on building your product.

Available SDKs

Node.js

Official JavaScript SDK for server-side and backend integrations.

npm install nexttpay

Python

Simple and powerful SDK for Python applications and scripts.

pip install nexttpay

Java

Robust SDK for enterprise-grade Java applications.

mvn install com.nexttpay:sdk

Go

Lightweight SDK for high-performance backend services.

go get github.com/nexttpay/sdk

PHP

Easy integration for PHP-based applications and frameworks.

composer require nexttpay/sdk

Quick Usage

Initialize the SDK and create your first payment in just a few lines of code.

• Built-in authentication handling

• Typed request/response models

• Retry + error handling included

import NexttPay from "nexttpay"; const client = new NexttPay({ apiKey: "YOUR_API_KEY", }); await client.payments.create({ amount: 100, currency: "USD", method: "mobile_money", });

Built for Developers

Unified API Abstraction

One consistent interface across crypto, mobile money, and cards.

Automatic Retries

Built-in retry logic for network failures and transient errors.

Typed SDKs

Strong typing for safer integrations and better DX.

Webhook Helpers

Easily verify and process webhook events securely.

Versioning & Environments

Use sandbox mode for testing and switch to production when you’re ready to go live. SDKs follow semantic versioning for safe upgrades.

Sandbox

Test payments without real transactions.

Production

Live environment for real payments and settlements.

Start building with SDKs

Use official libraries to integrate faster and launch with confidence.