UNPKG

zips-typescript-sdk

Version:

TypeScript SDK for ZIPS Payment Gateway - Complete payment solution for server-side applications

154 lines (105 loc) 4.84 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [1.1.0] - 2025-08-19 ### 🛠️ Development Configuration ### ✨ Changed - **API Endpoints**: Configured for localhost development environment - `merchantApiURL`: Set to `http://localhost:9005/api/v1/` - `gatewayApiURL`: Set to `http://localhost:9008/api/v1/` - Optimized for local development and testing - Enables seamless integration with local ZIPS API servers ### 📚 Documentation - **Development Focus**: Updated package to reflect localhost configuration - **Local Testing**: Ideal for developers working with local ZIPS infrastructure ### 🔧 Technical Details - Maintains all existing functionality from v1.0.0 - No breaking changes to API interfaces - Same TypeScript support and error handling - Compatible with local ZIPS merchant and gateway services This version is specifically configured for developers working with localhost ZIPS API servers during development and testing phases. ## [1.0.0] - 2025-08-18 ### 🎉 Initial Release ### ✨ Added - **Core SDK Architecture**: Complete TypeScript SDK for ZIPS Payment Gateway - Modular design with separate modules for payments, transactions, and customers - Full TypeScript support with comprehensive type definitions - Modern async/await patterns throughout - **Payments Module**: Complete payment creation functionality - `create()` method for initiating payment requests - Support for all required payment parameters - Comprehensive error handling and validation - **Transactions Module**: Transaction management capabilities - `single()` method for retrieving individual transactions by reference number - `all()` method for fetching transaction lists with pagination - Full transaction status tracking - **Type Safety**: Complete TypeScript type definitions - `PaymentParams` interface for payment creation - `Payment` interface for payment responses - `Transaction` interface for transaction data - `Order` interface for order details - Exported types for external use - **Base Module**: Robust foundation for all API interactions - Axios-based HTTP client with error handling - Standardized API key authentication - Environment-aware API endpoint configuration - Request/response interceptors - **Error Handling**: Comprehensive error management - Meaningful error messages from API responses - Network error handling - Type-safe error propagation ### 🛠️ Technical Features - **Dependencies**: Minimal dependency footprint - Axios for HTTP requests - No unnecessary dependencies - Production-ready build - **Build System**: Modern TypeScript compilation - ES2018 target for broad compatibility - CommonJS modules for Node.js compatibility - Declaration files (.d.ts) generation - Source maps for debugging - **Development Experience**: Developer-friendly features - Full IntelliSense support - Comprehensive JSDoc comments - Type-safe API interfaces - Clean, intuitive method names ### 📚 Documentation - **README**: Comprehensive getting started guide - Installation instructions - Quick start examples - Complete API reference - Advanced usage patterns - E-commerce integration examples - **Type Definitions**: Complete TypeScript support - All interfaces and types exported - JSDoc comments for better IDE experience - Type-safe method signatures ### 🌍 Market Focus - **Gambian Payment Ecosystem**: Optimized for local market - GMD currency support - Local phone number validation patterns - Gambian business workflow integration - **Server-Side Focus**: Backend/API-first design - Node.js optimization - Server-side payment processing - Webhook-ready architecture ### 🔐 Security & Reliability - **Authentication**: Secure API key-based authentication - Header-based API key transmission - Environment variable best practices - **Error Handling**: Production-ready error management - Graceful failure handling - Meaningful error messages - Network resilience ### 📦 Package Features - **npm Ready**: Complete npm package configuration - Proper entry points (main, types) - Optimized file inclusion - Semantic versioning - MIT license - **Build Pipeline**: Automated build and publishing - TypeScript compilation - Declaration file generation - Clean distribution builds This initial release provides a solid foundation for TypeScript/Node.js developers to integrate with the ZIPS Payment Gateway, offering type safety, modern architecture, and comprehensive functionality for payment processing in The Gambian market.