UNPKG

n8n-nodes-bizappay

Version:

Unofficial community n8n node for Bizappay API integration - NOT officially endorsed by Bizappay

667 lines (501 loc) โ€ข 20.8 kB
# n8n-nodes-bizappay [![npm version](https://badge.fury.io/js/n8n-nodes-bizappay.svg)](https://badge.fury.io/js/n8n-nodes-bizappay) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) --- ## โš ๏ธ IMPORTANT LEGAL NOTICE **This project is NOT officially associated with, endorsed by, or supported by Bizappay.** - ๐Ÿข **Bizappay** is a trademark of its respective owners - ๐Ÿ”ง This is an **independent, community-developed** integration - ๐Ÿ“‹ Users must comply with Bizappay's Terms of Service - ๐Ÿšซ The author assumes no responsibility for API changes or service interruptions - ๐Ÿ’ผ For official support, contact Bizappay directly **Use at your own risk and responsibility.** --- ๐Ÿš€ **Transform Your Payment Automation with Bizappay Integration** Streamline your business operations with this powerful n8n node for Bizappay API integration. Experience seamless payment processing with Malaysia's most comprehensive e-wallet solution that supports all major payment methods through a single integration. ## Why Choose Bizappay? โœจ **All-in-One Payment Solution**: Access every major Malaysian e-wallet (GrabPay, Touch 'n Go, Boost, ShopeePay, and more) with just one Bizappay account registration ๐ŸŽฏ **Business-Ready Features**: - **Intelligent Auto-Correction**: Smart input validation and formatting - **Enterprise Authentication**: Secure token management with advanced caching - **Comprehensive Bill Management**: Create and manage payment bills effortlessly - **Category Organization**: Streamlined payment category management - **Robust Error Handling**: Professional-grade error management with automatic retry logic - **Performance Optimized**: Lightning-fast processing with intelligent caching ๐Ÿ’ผ **Perfect for Malaysian Businesses**: Whether you're a startup or enterprise, Bizappay provides the payment infrastructure you need to succeed in Malaysia's digital economy. ## ๐Ÿ“‹ Table of Contents - [Installation](#installation) - [Configuration](#configuration) - [Supported Operations](#supported-operations) - [Auto-Correction Features](#auto-correction-features) - [Usage Examples](#usage-examples) - [Error Handling](#error-handling) - [API Reference](#api-reference) - [Troubleshooting](#troubleshooting) - [Contributing](#contributing) - [License](#license) ## ๐Ÿš€ Quick Start Guide ### Get Started in Minutes **Step 1: Install the Node** Choose your preferred installation method: #### Via n8n Community Nodes (Recommended) 1. Open your n8n instance 2. Navigate to **Settings** > **Community Nodes** 3. Click **Install a community node** 4. Enter: `n8n-nodes-bizappay` 5. Click **Install** #### Via npm ```bash npm install n8n-nodes-bizappay ``` #### Via Docker Add to your `Dockerfile`: ```dockerfile RUN npm install -g n8n-nodes-bizappay ``` #### Manual Installation (Advanced) ```bash # Clone repository git clone https://github.com/nmhafiz/n8n-nodes-bizappay.git cd n8n-nodes-bizappay # Install dependencies npm install # Build project npm run build # Link to n8n npm link cd ~/.n8n/nodes npm link n8n-nodes-bizappay ``` ๐Ÿ’ก **Need Professional Setup?** For complex integrations or custom automation workflows, [Sahabat Xpert](https://www.sahabatxpert.my/) offers expert implementation services with free consultation for Malaysian businesses. **Step 2: Get Your Bizappay Account** ๐ŸŽฏ **Ready to revolutionize your payment processing?** 1. **Sign up for Bizappay**: [Get started here](https://www.bizappay.my/a/OTQxNg__) and unlock access to all major Malaysian e-wallets 2. **Access your dashboard**: Login to your professional Bizappay portal 3. **Get your credentials**: Navigate to your dashboard and obtain: - **API Key**: Your unique API identifier - **Secret Key**: Your secure authentication key - **Collection ID**: Your payment collection identifier **Step 3: Configure n8n Integration** 1. In n8n, add **Bizappay API** credentials 2. Enter your authentication details: - **API Key**: Your API key from Bizappay dashboard 3. Click **Save** ๐ŸŽ‰ **You're ready to automate payments like a pro!** ## ๐Ÿ”ง Powerful Operations at Your Fingertips ### ๐Ÿ’ณ Smart Bill Management #### Create Professional Payment Bills Generate sophisticated payment bills with intelligent auto-correction and validation. **Essential Parameters:** - **Product Name**: Professional product description (minimum 5 characters) - **Amount**: Payment amount with automatic formatting (RM) - **Customer Name**: Customer name with smart formatting (minimum 5 characters) - **Customer Email**: Email with validation and correction - **Customer Phone**: Customer phone number **Advanced Options:** - **Web Return URL**: Custom redirect URL for seamless user experience - **Reference 1**: Primary reference for tracking - **Reference 2**: Secondary reference for detailed categorization **โœจ Smart Features:** - Automatic currency formatting - Data validation and sanitization - Email validation and correction - Input sanitization and optimization #### Get Bill Information & Status Retrieve comprehensive bill details and payment status with advanced filtering capabilities. **Essential Parameters:** - **Bill Code**: Unique bill identifier (e.g., OiU6DTopBL1) - **Payment Status**: Smart dropdown filter with auto-fill - Success (1) - Default selection - Pending (2) - Failed (3) - No Action/Not Paid (4) **Professional Features:** - Real-time bill status tracking - Payment verification and confirmation - Transaction history retrieval - Business intelligence data - Automated status monitoring **โœจ Smart Capabilities:** - Intelligent bill code validation - Auto-filled payment status (Success by default) - Comprehensive transaction details - Business-ready data formatting ### ๐Ÿ“Š Advanced Category Management #### Retrieve Payment Categories Access comprehensive payment categories for organized transaction management. **Professional Output:** - Structured category array with ID and name - Business metadata and status information - Ready for dropdown integration - Optimized for business workflows ## โœจ Intelligent Auto-Correction System **Experience the power of AI-driven input optimization** - The advanced auto-correction system ensures your data is always perfectly formatted for Malaysian business standards. ### ๐Ÿ“ง Advanced Email Validation **Enterprise-Grade Email Processing**: ```javascript // Professional email optimization: "user@domain" โ†’ "user@domain.com" // Smart domain completion "USER@DOMAIN.COM" โ†’ "user@domain.com" // Professional lowercase formatting "user @domain.com" โ†’ "user@domain.com" // Intelligent space removal "" โ†’ "customer@example.com" // Business-ready auto-fill ``` - ๐Ÿ” **Format Verification**: Comprehensive email format validation - ๐ŸŒ **Domain Intelligence**: Smart domain existence checking - ๐Ÿ”ง **Auto-Correction**: Fixes common typing errors automatically ### ๐Ÿ‘ค Smart Name Processing **Professional Name Formatting**: ```javascript // Business-standard name formatting: "john" โ†’ "John Doe" // Professional surname addition " John Doe " โ†’ "John Doe" // Space optimization "" โ†’ "Customer Name" // Business-ready default ``` - โœ‚๏ธ **Space Optimization**: Removes excessive whitespace - ๐Ÿ“ **Proper Capitalization**: Professional name formatting - ๐Ÿ“ **Length Validation**: Ensures minimum 5-character requirement ### ๐Ÿ’ฐ Professional Amount Formatting **Financial Data Optimization**: ```javascript // Currency formatting excellence: "10.5" โ†’ "10.50" // Precise decimal formatting "abc" โ†’ "10.00" // Intelligent default handling "0" โ†’ "10.00" // Minimum amount enforcement ``` - ๐Ÿ’ฑ **Currency Symbol Handling**: Intelligent removal of currency symbols - ๐Ÿ“Š **Decimal Precision**: Automatic formatting to 2 decimal places - โœ… **Value Correction**: Converts negative values to positive amounts ### ๐Ÿท๏ธ Smart Product Description **Professional Product Naming**: ```javascript // Business-ready product descriptions: "Tea" โ†’ "Tea - Payment Bill" // Professional suffix addition "Very long product name that exceeds the maximum length limit" โ†’ "Very long product name that exceeds the maximum length li" // Smart truncation "" โ†’ "Payment Bill" // Business-standard default ``` - ๐Ÿ“ **Length Optimization**: Smart truncation for long descriptions - ๐Ÿท๏ธ **Professional Suffixes**: Automatic business-appropriate additions - โœจ **Default Handling**: Intelligent fallback for empty inputs ## ๐Ÿ“– Real-World Implementation Examples ### ๐Ÿข **Sahabat Xpert Success Stories** **Transforming Malaysian businesses with intelligent automation solutions:** ๐ŸŽฏ **E-commerce Integration**: Automated order-to-payment workflows connecting online stores with Bizappay, including inventory management and courier integration for seamless customer experience. ๐Ÿ“Š **CRM Automation**: Complete sales funnel automation from lead capture to payment processing, with automated follow-ups and customer relationship management. ๐Ÿš€ **Multi-Platform Solutions**: Integrated booking systems with payment processing, automated invoicing, and real-time business intelligence dashboards. *Need similar automation for your business? [Contact Sahabat Xpert](https://www.sahabatxpert.my/) for a free consultation.* ### ๐Ÿš€ Professional Bill Creation Workflow **Create sophisticated payment bills with enterprise-grade automation:** ```json { "nodes": [ { "name": "Professional Bill Creation", "type": "n8n-nodes-bizappay.bizappay", "parameters": { "operation": "createBill", "description": "Premium Product Package A", "amount": "299.00", "customerName": "Ahmad Rahman", "customerEmail": "ahmad.rahman@company.com", "customerPhone": "012-345-6789", "webreturnUrl": "https://yourbusiness.com/payment-success" } } ] } ``` ### ๐Ÿ” Advanced Bill Information Retrieval **Retrieve comprehensive bill details and payment status with real-time monitoring:** ```json { "nodes": [ { "name": "Bill Status Intelligence", "type": "n8n-nodes-bizappay.bizappay", "parameters": { "operation": "getBillInfo", "billCode": "OiU6DTopBL1", "paymentStatus": "1" } } ] } ``` **Professional Response Structure:** ```javascript // Comprehensive bill information output: { "billCode": "OiU6DTopBL1", "status": "Success", "amount": "RM 299.00", "customerName": "Ahmad Rahman", "customerEmail": "ahmad.rahman@company.com", "paymentDate": "2024-01-15T10:30:00Z", "paymentMethod": "Touch 'n Go eWallet", "transactionId": "TXN123456789", "businessMetadata": { "reference1": "INV-2024-001", "reference2": "DEPT-SALES" } } ``` ### ๐Ÿ“Š Smart Category Management **Retrieve and organize payment categories for streamlined operations:** ```json { "nodes": [ { "name": "Category Intelligence", "type": "n8n-nodes-bizappay.bizappay", "parameters": { "operation": "getCategories" } } ] } ``` ### โœจ AI-Powered Auto-Correction Showcase **Experience intelligent data optimization in action:** ```json { "nodes": [ { "name": "Smart Bill with Auto-Optimization", "type": "n8n-nodes-bizappay.bizappay", "parameters": { "operation": "createBill", "description": "Tea", // โœจ Becomes "Tea - Payment Bill" "amount": "10.5", // โœจ Becomes "10.50" "customerName": "john", // โœจ Becomes "John Doe" "customerEmail": "USER@DOMAIN", // โœจ Becomes "user@domain.com" "customerPhone": "012-345-6789" // โœจ Becomes "+60123456789" } } ] } ``` **๐ŸŽฏ See the magic happen**: Input messy data, get professional results automatically! ## ๐Ÿ›ก๏ธ Enterprise-Grade Error Handling **Professional error management with intelligent recovery mechanisms** ### ๐Ÿ” Comprehensive Error Types #### 1. **Authentication Errors** ```json { "error": "Invalid authentication", "code": 401, "message": "API credentials verification failed", "solution": "Verify your API key in Bizappay dashboard" } ``` #### 2. **Validation Errors** ```json { "error": "Validation failed", "code": 400, "details": { "amount": "Amount must be greater than 0", "customerEmail": "Invalid email format detected" }, "autoCorrection": "Applied intelligent fixes where possible" } ``` #### 3. **Network Errors** ```json { "error": "Network timeout", "code": 500, "message": "Connection to Bizappay API failed", "retryInfo": "Automatic retry in progress" } ``` ### ๐Ÿ”„ Intelligent Retry System **Advanced resilience with smart recovery:** - ๐Ÿ”ข **Max retries**: 3 attempts with exponential backoff - โฑ๏ธ **Backoff strategy**: Progressive delays (1s โ†’ 2s โ†’ 4s) - ๐ŸŽฏ **Smart conditions**: Network errors, 5xx status codes, rate limits - ๐Ÿง  **Adaptive logic**: Learns from failure patterns ## ๐Ÿ“š Professional API Reference ### ๐Ÿ” Enterprise Authentication **Secure token-based authentication with automatic management:** ```http POST /api/v3/token Content-Type: application/x-www-form-urlencoded apiKey=your_bizappay_api_key ``` **Response:** ```json { "status": "ok", "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...", "ttl": 3600 } ``` ### ๐Ÿ’ณ Professional Bill Creation ```http POST /api/v3/bill/create Authentication: {token} Content-Type: application/x-www-form-urlencoded apiKey=your_api_key& description=Premium Product Package& amount=299.00& customerName=Ahmad Rahman& customerEmail=ahmad@company.com& customerPhone=+60123456789& webreturnUrl=https://yourbusiness.com/success ``` ### ๐Ÿ” Advanced Bill Information Retrieval ```http POST /api/v3/bill/info Authentication: {token} Content-Type: application/x-www-form-urlencoded apiKey=your_api_key& search_str=OiU6DTopBL1& payment_status=1 ``` **Response Structure:** ```json { "success": true, "data": { "billCode": "OiU6DTopBL1", "status": "Success", "amount": "299.00", "customerName": "Ahmad Rahman", "customerEmail": "ahmad@company.com", "paymentDate": "2024-01-15T10:30:00Z", "paymentMethod": "Touch 'n Go eWallet" } } ``` ### ๐Ÿ“Š Category Management ```http POST /api/v3/category Authentication: {token} Content-Type: application/x-www-form-urlencoded apiKey=your_api_key ``` ## ๐Ÿ” Professional Troubleshooting Guide ### ๐Ÿ› ๏ธ Common Solutions #### 1. **Authentication Issues** **๐Ÿ” Symptoms:** - "Invalid authentication" errors - Token validation failures - API access denied **โœ… Professional Solutions:** - Verify API key in your [Bizappay Dashboard](https://www.bizappay.my/a/OTQxNg__) - Ensure API key has proper permissions - Node automatically handles token refresh - Check network connectivity to Bizappay servers #### 2. **Data Validation Errors** **๐Ÿ” Symptoms:** - "Validation failed" messages - Field format errors - Missing required data **โœ… Smart Solutions:** - Leverage built-in auto-correction features - Review input data format requirements - Ensure all mandatory fields are populated - Use intelligent defaults for missing data ### Debug Mode For debugging, enable verbose logging: ```javascript // In workflow settings { "settings": { "executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": "error-handler-workflow" } } ``` ## ๐Ÿงช Professional Testing Suite ### ๐ŸŽฏ Comprehensive Unit Testing ```bash # Execute complete test suite npm test # Target specific functionality npm test -- --grep "validation" # Generate detailed coverage reports npm run test:coverage ``` ### ๐Ÿš€ Advanced Integration Testing ```bash # Production API integration tests npm run test:integration # Phone number processing validation node test-validation.js # AI auto-correction system testing node test-auto-correction.js # Real-world API scenario testing node test-real-api.js ``` ## ๐Ÿค Join the Development Community ### ๐Ÿš€ Professional Development Setup ```bash # Fork and clone the repository git clone https://github.com/nmhafiz/n8n-nodes-bizappay.git cd n8n-nodes-bizappay # Install enterprise dependencies npm install # Launch development environment npm run dev # Run quality checks npm run lint && npm test ``` ### ๐Ÿ’Ž Enterprise Code Standards - **๐Ÿ”ท TypeScript Excellence**: 100% TypeScript implementation - **โšก ESLint Compliance**: Strict adherence to coding standards - **โœจ Prettier Formatting**: Automated code beautification - **๐Ÿงช Test Coverage**: Mandatory testing for all new features - **๐Ÿ“š Documentation**: Comprehensive inline documentation - **๐Ÿ”’ Security First**: Security-focused development practices ### ๐ŸŽฏ Professional Contribution Workflow 1. **๐Ÿด Fork** the repository to your account 2. **๐ŸŒฟ Create** feature branch (`git checkout -b feature/revolutionary-enhancement`) 3. **๐Ÿ’ป Develop** with excellence and test thoroughly 4. **๐Ÿ“ Commit** with descriptive messages (`git commit -m 'feat: Add revolutionary enhancement'`) 5. **๐Ÿš€ Push** to your branch (`git push origin feature/revolutionary-enhancement`) 6. **๐ŸŽ‰ Submit** a comprehensive Pull Request ### ๐Ÿ† Contribution Recognition **Your contributions matter!** Every enhancement helps Malaysian businesses automate their payment processes more effectively. ### ๐Ÿ’ผ Custom Development Services **Need specialized n8n nodes or custom integrations?** [Sahabat Xpert](https://www.sahabatxpert.my/) offers professional development services: - ๐Ÿ”ง **Custom Node Development**: Tailored n8n nodes for specific business requirements - ๐ŸŒ **API Integration Services**: Connect any Malaysian service with n8n workflows - ๐Ÿš€ **Enterprise Automation**: Large-scale workflow automation for corporations - ๐Ÿ“Š **Business Intelligence**: Custom dashboards and reporting solutions - ๐ŸŽฏ **Training & Consultation**: n8n expertise transfer to your development team ## ๐Ÿ“„ License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ## ๐Ÿ†˜ Professional Support & Resources ### ๐ŸŽฏ Get Expert Help - **๐Ÿ› Issues & Bugs**: [GitHub Issues](https://github.com/nmhafiz/n8n-nodes-bizappay/issues) - **๐Ÿ’ฌ Community Discussions**: [GitHub Discussions](https://github.com/nmhafiz/n8n-nodes-bizappay/discussions) - **๐Ÿ“ง Direct Support**: sifatsahabatsdnbhd@gmail.com - **๐Ÿ“– Complete Documentation**: [API Documentation](./API_DOCUMENTATION.md) - **๐ŸŒ n8n Community**: [n8n Community Forum](https://community.n8n.io/) - **๐Ÿ† Professional Implementation**: [Sahabat Xpert](https://www.sahabatxpert.my/) - Expert consultation and custom development services ### ๐Ÿš€ Transform Your Business Today **Ready to revolutionize your payment processing?** ๐ŸŽฏ **Get Your Bizappay Account**: [Sign up here](https://www.bizappay.my/a/OTQxNg__) and unlock access to all major Malaysian e-wallets instantly! ๐Ÿ’ผ **Need Professional Implementation?** **Partner with the experts**: [Sahabat Xpert](https://www.sahabatxpert.my/) - Your trusted digital transformation partner specializing in comprehensive automation solutions and Bizappay integrations. โœจ **Why choose Sahabat Xpert?** - ๐Ÿ† **Expert n8n Workflow Development**: Custom automation solutions tailored to your business - ๐Ÿ”ง **Complete Bizappay Integration Setup**: End-to-end payment automation implementation - ๐Ÿš€ **Sales Process Automation**: From sales pages to booking systems with courier integration - ๐Ÿ“Š **Business Intelligence Integration**: Connect with CRM, e-commerce, and inventory systems - ๐Ÿ’ฌ **Ongoing Technical Support**: Dedicated Malaysian business expertise and support - ๐ŸŒ **Comprehensive Digital Solutions**: Professional website development and business automation **๐ŸŽฏ Specialized Services:** - Custom n8n node development and optimization - Multi-platform payment gateway integrations - Automated workflow design for Malaysian businesses - E-commerce automation with local courier services - Real-time business intelligence dashboards --- **๐Ÿ‡ฒ๐Ÿ‡พ Proudly built for the Malaysian n8n community with โค๏ธ** *Empowering businesses across Malaysia with seamless payment automation* **๐Ÿค Developed in partnership with [Sahabat Xpert](https://www.sahabatxpert.my/)** - Your trusted automation specialists for comprehensive digital transformation solutions.