nodeNode.js

The IremboPay Node.js SDK is a powerful and developer-friendly tool designed to simplify the integration of payment functionality into your Node.js applications. With a comprehensive suite of features, the SDK streamlines transaction management, making it effortless to handle payment processing within the IremboPay ecosystem. Whether you’re building a new application or enhancing an existing one, the IremboPay Node.js SDK ensures seamless integration, robust performance, and a smooth development experience.

Installation

npm install @irembo/irembopay-node-sdk

Initialization

const IremboPay = require("@irembo/irembopay-node-sdk").default;
const iPay = new IremboPay(process.env.IPAY_SECRET_KEY,process.env.IPAY_ENVIRONMENT)

Invoice

Create Invoice

iPay.invoice.createInvoice({
  transactionId: "TST-100236",
  paymentAccountIdentifier: "07808652516",
  customer: {
    email: "user@email.com",
    phoneNumber: "0780000001",
    name: "Jixle Manzi",
  },
  paymentItems: [
    {
      unitAmount: 2000,
      quantity: 1,
      code: "PC-aaf751b73f",
    },
  ],
  description: "Invoice description",
  expiryAt: "2024-09-30T01:00:00+02:00",
  language: "EN",
}).then((data) => {
    console.log(data);
}).catch((error) => {
    console.log(error);
});

Create batch invoice

Get invoice

Update invoice

Payment

Initiate mobile money push payment

Payment Notifications

Verifying the signature

Last updated