Introduction
Description
The VNPay library is an open source project, completely free to help everyone integrate VNPay online payments easily and quickly.
Documentation
- Learn how to use the VNPay library here.
- Learn more about how VNPay works in the official VNPay documentation.
Features
- 🚀 Simple API for integrating VNPay payment gateway
- 📘 TypeScript support with comprehensive type definitions
- 🧩 Modular imports (v2.4.0+) - Reduce bundle size by up to 80%
- ⚡ Tree-shaking and code splitting for optimized builds
- 🔧 Sandbox and production environment support
- 🎯 Customizable endpoints for different VNPay services
- 📦 Minimal dependencies - Only depends on dayjs for date handling
Resources
Environment
- Node.js version 18.0 or higher (recommended).
- Compatible with both TypeScript and JavaScript.