Skip to content

About

Open Source Payments Gateway Frontend for Android POS, Debit Card Reseller, Fintech with AI integrated

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ OpenGatewayAI - Open Source Payment Gateway Frontend

OpenGatewayAI

πŸ“Š Admin Dashboard Preview

Admin Dashboard

Dashboard amministrativa completa con AI integrata, metriche in tempo reale e gestione POS

🌟 Overview

OpenGatewayAI is the world's first open-source payment gateway frontend with integrated artificial intelligence. Built with modern technologies and designed for scalability, it provides a comprehensive solution for payment processing with OpenPay AI - an intelligent consultant that provides contextual advice for both merchants and administrators.

Created by Andrea Piani - A revolutionary approach to payment gateway management.

🌐 Live Demo: opengatewayai.andreapiani.com

πŸ€– OpenPay AI Features

OpenPay AI is your intelligent payment consultant that provides:

  • 🧠 Smart Analytics: AI-powered insights and predictive analytics
  • πŸ›‘οΈ Advanced Fraud Detection: Real-time transaction monitoring and risk assessment
  • πŸ“Š Intelligent Reporting: Automated report generation with actionable insights
  • 🎯 Personalized Recommendations: Contextual advice for merchants and administrators
  • ⚑ Real-time Monitoring: Live transaction analysis and anomaly detection
  • πŸ—ΊοΈ Geographic Intelligence: POI mapping with merchant location analytics

🌟 Why Choose OpenGatewayAI?

  • Proven Technology: Built with industry-standard tools and practices
  • AI-First Approach: Leverage OpenPay AI for better business decisions
  • Advanced Security: Multi-layer fraud detection and prevention
  • Scalable Architecture: Grows with your business needs
  • Expert Support: Professional development team available
  • Cost-Effective: Open source frontend reduces development costs
  • Rapid Deployment: Get started quickly with our pre-built components

⭐ Star this repository if you find it useful!

πŸš€ Ready to revolutionize your payment processing? Contact us today!

An open-source payment gateway frontend with integrated OpenPay AI, built with React, TypeScript and Tailwind CSS.

πŸ“‹ Overview

This application is an open-source frontend for a payment gateway with integrated AI capabilities. It includes separate dashboards for administrators and merchants, with complete transaction management, analytics and configuration features.

πŸš€ Technologies Used

  • Frontend Framework: React 18.3.1 with TypeScript
  • Build Tool: Vite 5.4.2
  • Desktop Framework: Electron (Native Apps)
  • Styling: Tailwind CSS 3.4.1
  • Routing: React Router DOM 6.20.1
  • Charts: Chart.js 4.4.0 + React-ChartJS-2 5.2.0
  • Icons: Lucide React 0.344.0
  • Linting: ESLint 9.9.1

πŸ–₯️ Multi-Platform Support

πŸ“± Available Platforms

  • 🌐 Web Application: Progressive Web App with offline support
  • 🍎 macOS Native: Universal binary (Intel x64 + Apple Silicon ARM64)
  • πŸͺŸ Windows Native: x64 and x86 (32-bit) support with NSIS installer
  • 🐧 Linux: AppImage and Debian packages (coming soon)

πŸ—οΈ Build Optimization

  • Apple Silicon: Native ARM64 builds for M1/M2/M3 Macs
  • Intel Macs: Optimized x64 builds for Intel processors
  • Windows: Universal installer supporting both x64 and x86 architectures
  • Cross-Platform: Single codebase for all platforms

πŸš€ Quick Build Script

Use the included build.sh script to build for all platforms:

# Build all platforms at once
./build.sh

# Or build specific platforms
npm run build:mac-intel     # macOS Intel
npm run build:mac-silicon    # macOS Apple Silicon
npm run build:windows       # Windows (x64 + x86)
npm run build:web           # Web version
npm run build:all           # All platforms

πŸ“ Project Structure

src/
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ admin/                 # πŸ‘¨β€πŸ’Ό Admin dashboard components
β”‚   β”‚   β”œβ”€β”€ AdminHeader.tsx
β”‚   β”‚   β”œβ”€β”€ AdminOverview.tsx
β”‚   β”‚   β”œβ”€β”€ AdminSidebar.tsx
β”‚   β”‚   β”œβ”€β”€ CommissionSettings.tsx
β”‚   β”‚   β”œβ”€β”€ MerchantManagement.tsx
β”‚   β”‚   β”œβ”€β”€ ReportsAnalytics.tsx
β”‚   β”‚   β”œβ”€β”€ SystemSettings.tsx
β”‚   β”‚   └── TransactionManagement.tsx
β”‚   β”œβ”€β”€ charts/                # πŸ“Š Chart and analytics components
β”‚   β”‚   β”œβ”€β”€ FraudDetectionChart.tsx
β”‚   β”‚   β”œβ”€β”€ GeographicChart.tsx
β”‚   β”‚   β”œβ”€β”€ MerchantPerformanceChart.tsx
β”‚   β”‚   β”œβ”€β”€ PaymentMethodsChart.tsx
β”‚   β”‚   β”œβ”€β”€ RevenueChart.tsx
β”‚   β”‚   └── TransactionChart.tsx
β”‚   β”œβ”€β”€ merchant/              # πŸͺ Merchant dashboard components
β”‚   β”‚   β”œβ”€β”€ AccountSettings.tsx
β”‚   β”‚   β”œβ”€β”€ MerchantHeader.tsx
β”‚   β”‚   β”œβ”€β”€ MerchantOverview.tsx
β”‚   β”‚   β”œβ”€β”€ MerchantSidebar.tsx
β”‚   β”‚   β”œβ”€β”€ PaymentRequests.tsx
β”‚   β”‚   β”œβ”€β”€ SupportTickets.tsx
β”‚   β”‚   └── TransactionHistory.tsx
β”‚   β”œβ”€β”€ shared/                # πŸ”„ Shared components
β”‚   β”‚   └── StatsCard.tsx
β”‚   └── ProtectedRoute.tsx     # πŸ”’ Role-based route protection
β”œβ”€β”€ contexts/
β”‚   └── AuthContext.tsx        # πŸ” Authentication context
β”œβ”€β”€ pages/
β”‚   β”œβ”€β”€ AdminDashboard.tsx     # πŸ‘¨β€πŸ’Ό Admin dashboard
β”‚   β”œβ”€β”€ LandingPage.tsx        # 🏠 Landing page
β”‚   β”œβ”€β”€ LoginPage.tsx          # πŸ”‘ Login page
β”‚   └── MerchantDashboard.tsx  # πŸͺ Merchant dashboard
β”œβ”€β”€ App.tsx                    # βš›οΈ Main component
β”œβ”€β”€ main.tsx                   # πŸš€ Entry point
β”œβ”€β”€ index.css                  # 🎨 Global styles
└── vite-env.d.ts             # πŸ“ TypeScript definitions for Vite

πŸ” Authentication System

The application uses a mock authentication system with two roles:

🎭 Demo Credentials:

πŸ‘¨β€πŸ’Ό Administrator:

  • Email: admin@opengateway.ai
  • Password: admin123
  • Access: Complete admin dashboard

πŸͺ Merchant:

  • Email: merchant@example.com
  • Password: merchant123
  • Access: Merchant dashboard

🎯 Key Features

πŸ€– OpenPay AI Intelligence

  • 🧠 AI Analytics: Advanced machine learning insights and predictions
  • πŸ›‘οΈ Fraud Detection: Real-time AI-powered fraud prevention system
  • πŸ“Š Predictive Analytics: Future trend analysis and forecasting
  • ⚑ Real-time Monitoring: Live transaction analysis with anomaly detection
  • 🎯 Smart Recommendations: Contextual advice for merchants and admins
  • πŸ—ΊοΈ POI Mapping: Geographic merchant location intelligence

πŸ‘¨β€πŸ’Ό Admin Dashboard

  • πŸ“Š AI-Enhanced Overview: System-wide statistics with OpenPay AI insights
  • πŸͺ Merchant Management: CRUD operations with AI risk scoring
  • πŸ’³ Transaction Management: Monitor transactions with AI fraud detection
  • πŸ’° Commission Settings: AI-optimized fee structures
  • πŸ“ˆ Advanced Analytics: AI-powered reports and business intelligence
  • πŸ›‘οΈ Security Center: Multi-layer fraud prevention dashboard
  • πŸ—ΊοΈ Merchant Network Map: Interactive POI mapping with analytics
  • βš™οΈ System Settings: Global configurations with AI recommendations

πŸͺ Merchant Dashboard

  • πŸ“Š Smart Overview: Personal KPIs enhanced with OpenPay AI insights
  • πŸ“‹ Transaction History: AI-categorized transaction records
  • πŸ’Έ Payment Requests: Smart payment request creation
  • πŸ›‘οΈ Fraud Alerts: Real-time security notifications
  • πŸ“ˆ Performance Insights: AI-driven business recommendations
  • βš™οΈ Account Settings: Personalized configurations
  • 🎫 AI Support: Intelligent support system

πŸ“Š Advanced Chart Components

  • πŸ“ˆ Revenue Chart: AI-enhanced revenue trends and forecasting
  • πŸ” Fraud Detection Dashboard: Real-time fraud analysis with risk scoring
  • 🧠 Predictive Analytics: Machine learning predictions and insights
  • 🌍 Geographic Intelligence: AI-powered location analytics
  • πŸ“Š Merchant Performance: AI-scored performance metrics
  • πŸ’³ Payment Methods: Smart payment optimization insights
  • πŸ“‰ Transaction Analysis: AI-enhanced transaction monitoring
  • πŸ—ΊοΈ POI Network Map: Interactive merchant location mapping

πŸ› οΈ Setup & Installation

πŸ“‹ Prerequisites

  • Node.js (version 16 or higher) 🟒
  • npm or yarn πŸ“¦

πŸš€ Getting Started

πŸ“₯ Installation Options

🌐 Web Version (Recommended for Development)

# Clone the repository
git clone https://github.com/andreapianidev/OpenGatewayAI.git
cd OpenGatewayAI

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

πŸ–₯️ Native Desktop Applications

🍎 macOS Users: See README-MACOS.md for detailed macOS installation and features

πŸͺŸ Windows Users: See README-WINDOWS.md for detailed Windows installation and features

πŸ—οΈ Build All Platforms

# Use the universal build script
./build.sh

# Or build specific platforms
npm run build:mac-intel     # macOS Intel x64
npm run build:mac-silicon    # macOS Apple Silicon ARM64
npm run build:windows       # Windows x64 + x86
npm run build:web           # Web application
npm run build:all           # All platforms

πŸ”§ Development Commands

npm run dev          # πŸ”₯ Development server
npm run electron:dev # πŸ–₯️ Electron development mode
npm run build        # πŸ—οΈ Production build
npm run preview      # πŸ‘€ Preview build
npm run lint         # πŸ” Code linting

🌐 Routing

The application uses React Router with the following routes:

  • 🏠 / - Landing page
  • πŸ”‘ /login - Login page
  • πŸ‘¨β€πŸ’Ό /admin/* - Admin dashboard (protected)
  • πŸͺ /merchant/* - Merchant dashboard (protected)

πŸ‘¨β€πŸ’Ό Admin Routes (/admin/*)

  • πŸ“Š /admin/ - Overview dashboard
  • πŸͺ /admin/merchants - Merchant management
  • πŸ’³ /admin/transactions - Transaction management
  • πŸ’° /admin/commissions - Commission settings
  • πŸ“ˆ /admin/reports - Reports & analytics
  • βš™οΈ /admin/settings - System settings

πŸͺ Merchant Routes (/merchant/*)

  • πŸ“Š /merchant/ - Overview dashboard
  • πŸ“‹ /merchant/transactions - Transaction history
  • πŸ’Έ /merchant/payments - Payment requests
  • βš™οΈ /merchant/settings - Account settings
  • 🎫 /merchant/support - Support tickets

🎨 Design System

  • CSS Framework: Tailwind CSS 🎨
  • Color Palette: Blue/indigo gradient for primary theme πŸ”΅
  • Icons: Lucide React for consistent iconography ✨
  • Layout: Responsive design with collapsible sidebar πŸ“±
  • Typography: Optimized system font stack πŸ“

πŸ”’ Security

  • Route Protection: ProtectedRoute component for access control πŸ›‘οΈ
  • Role-based Access: User role-based access control πŸ‘₯
  • Context Security: Secure authentication state management πŸ”

πŸ“± Responsive Design

  • Mobile-first design approach πŸ“±
  • Collapsible sidebar for mobile devices πŸ“²
  • Adaptive layout for tablet and desktop πŸ’»
  • Touch optimization for mobile devices βœ‹

πŸš€ Performance

  • Vite: Fast build tool with HMR ⚑
  • Code Splitting: Automatic route lazy loading πŸ“¦
  • Optimizations: Optimized Vite configuration πŸ”§
  • Bundle Size: Optimized dependencies πŸ“Š

πŸ§ͺ Development

πŸ“œ Available Scripts

npm run dev      # πŸ”₯ Development server
npm run build    # πŸ—οΈ Production build
npm run preview  # πŸ‘€ Preview build
npm run lint     # πŸ” Code linting

βš™οΈ Configurations

  • TypeScript: Strict mode configuration πŸ“
  • ESLint: React and TypeScript rules πŸ”
  • Tailwind: Custom configuration 🎨
  • Vite: React optimizations ⚑

πŸ“„ License

Demo project for Immaginet Srl - All rights reserved. πŸ“‹

πŸ‘₯ Contributing

To contribute to the project:

  1. 🍴 Fork the repository
  2. 🌿 Create a feature branch (git checkout -b feature/AmazingFeature)
  3. πŸ’Ύ Commit your changes (git commit -m 'Add some AmazingFeature')
  4. πŸ“€ Push to the branch (git push origin feature/AmazingFeature)
  5. πŸ”„ Open a Pull Request

πŸ“ž Support

For technical support or project questions, contact the development team. πŸ’¬ Andrea Piani - andreapiani.dev@gmail.com


⚠️ Note: This is a frontend demo. For a complete implementation, you would need:

  • πŸ”§ Backend API for data management
  • πŸ—„οΈ Database for persistence
  • πŸ’³ Integration with real payment processors
  • πŸ” Robust authentication system
  • πŸ›‘οΈ Advanced security measures

About

Open Source Payments Gateway Frontend for Android POS, Debit Card Reseller, Fintech with AI integrated

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages