Node.js
Installation
npm install @irembo/irembopay-node-sdkconst 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