Lipa is an open-source npm package designed to streamline interactions with Safaricom's M-Pesa API. Whether you're handling C2B, B2B, or Lipa Na M-Pesa Online, this package provides an intuitive interface and callback management, including support for Server-Sent Events (SSE).
-
🌐 Multi-Service Support:
- Customer to Business (C2B)
- Business to Business (B2B)
- Lipa Na M-Pesa Online
-
🔄 Callback Handling:
- Automatic management of M-Pesa callbacks.
- Optional SSE support for real-time updates.
-
🛡️ Secure and Configurable:
- Token management for Safaricom API access.
- Environment variable support for secure configurations.
-
🛠️ Developer-Friendly:
- Easy-to-use API for seamless integration.
- Clear error handling and logging.
Install the package via npm:
npm install lipa