SDKs
Official and community-supported SDKs for popular languages.
Official SDKs
Section titled “Official SDKs”| Language | Package | Install |
|---|---|---|
| JavaScript / TypeScript | malipo-node | npm install malipo-node@1.3.0-beta.1 |
| Python | malipo | pip install malipo |
| PHP | malipo/malipo-php | composer require malipo/malipo-php |
| Java | com.malipo:malipo-java | Maven Central |
| Flutter | malipo | flutter pub add malipo |
Language guides
Section titled “Language guides”Node.js version 1.3.0-beta.1 includes B2C beneficiaries, disbursements and sandbox testing. Use the Node.js reference and complete B2C guide to integrate with https://api.malipo.dev/v1. Live B2C is not enabled. The example below uses a sandbox key and a success-test phone.
Installation
Section titled “Installation”npm install malipo-node@1.3.0-beta.1yarn add malipo-node@1.3.0-beta.1pnpm add malipo-node@1.3.0-beta.1Quick example
Section titled “Quick example”import { Malipo } from "malipo-node";
const malipo = new Malipo({ apiKey: process.env.MALIPO_API_KEY! });
const charge = await malipo.charges.create({ amount: 30, currency: "USD", phone: "+243000000001", network: "ORANGE_MONEY"}, { idempotencyKey: "order-123" });
console.log(charge.id, charge.status);