Learn how to get started with the MpesaFlow SDK
@mpesaflow/sdk
npm install @mpesaflow/sdk
import { MpesaFlow } from "@mpesaflow/sdk"; const mpesaFlow = new MpesaFlow({ token: "MPESAFLOW_API_KEY", });
import { MpesaFlow } from "@mpesaflow/sdk"; const mpesaFlow = new MpesaFlow({ token: "MPESAFLOW_API_KEY", }); async function run() { const result = await mpesaFlow.express.pay({ phoneNumber: "254712345678", amount: "100.00", transactionDesc: "mpesaflow", customerName: "John Doe", accountReference: "mpesaflow", }); console.log(result); } run();
Was this page helpful?