@digicroz/typed-api-kit
v1.0.5
Published
Type-safe OneSignal push notification client for Node.js and TypeScript
Maintainers
Readme
Payment Gateway Integration Library
A TypeScript library for integrating multiple payment gateways into your application.
Features
- Support for multiple payment gateways
- Type-safe TypeScript implementation
- Easy integration with existing applications
- Modular architecture for easy maintenance
Structure
The project is organized as follows:
├── src/
│ ├── index.ts # Main entry point
│ └── payment-gateways/
│ ├── index.ts # Payment gateway registry
│ ├── pay0Pg.ts # Payment gateway implementation
│ ├── tranzupiPg.ts # Tranzupi payment gateway
│ ├── zapupiPg.ts # Zapupi payment gateway
│ └── zenupiPg.ts # Zenupi payment gateway
├── package.json # Project dependencies
├── tsconfig.json # TypeScript configuration
├── vitest.config.ts # Test configuration
└── README.md # This filePayment Gateways Supported
- Pay0 (pay0Pg.ts) - Primary payment gateway
- Tranzupi (tranzupiPg.ts) - Tranzupi payment integration
- Zapupi (zapupiPg.ts) - Zapupi payment integration
- Zenupi (zenupiPg.ts) - Zenupi payment integration
Getting Started
Install dependencies:
npm installImport the payment gateway:
import { PaymentGateway } from "./src"Configure and use your preferred payment gateway.
Development
This project uses:
- TypeScript for type-safe development
- Vitest for testing
- tsup for building
Testing
Run tests using:
npm testLicense
MIT License - Feel free to use and modify.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
For more information, see the dev.md file.
