Dashboard amministrativa completa con AI integrata, metriche in tempo reale e gestione POS
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 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
- 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.
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.
- 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
- π 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)
- 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
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 platformssrc/
βββ 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
The application uses a mock authentication system with two roles:
π¨βπΌ Administrator:
- Email:
admin@opengateway.ai - Password:
admin123 - Access: Complete admin dashboard
πͺ Merchant:
- Email:
merchant@example.com - Password:
merchant123 - Access: Merchant dashboard
- π§ 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
- π 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
- π 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
- π 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
- Node.js (version 16 or higher) π’
- npm or yarn π¦
# 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π macOS Users: See README-MACOS.md for detailed macOS installation and features
πͺ Windows Users: See README-WINDOWS.md for detailed Windows installation and features
# 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 platformsnpm 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 lintingThe application uses React Router with the following routes:
- π
/- Landing page - π
/login- Login page - π¨βπΌ
/admin/*- Admin dashboard (protected) - πͺ
/merchant/*- Merchant dashboard (protected)
- π
/admin/- Overview dashboard - πͺ
/admin/merchants- Merchant management - π³
/admin/transactions- Transaction management - π°
/admin/commissions- Commission settings - π
/admin/reports- Reports & analytics - βοΈ
/admin/settings- System settings
- π
/merchant/- Overview dashboard - π
/merchant/transactions- Transaction history - πΈ
/merchant/payments- Payment requests - βοΈ
/merchant/settings- Account settings - π«
/merchant/support- Support tickets
- 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 π
- Route Protection:
ProtectedRoutecomponent for access control π‘οΈ - Role-based Access: User role-based access control π₯
- Context Security: Secure authentication state management π
- Mobile-first design approach π±
- Collapsible sidebar for mobile devices π²
- Adaptive layout for tablet and desktop π»
- Touch optimization for mobile devices β
- Vite: Fast build tool with HMR β‘
- Code Splitting: Automatic route lazy loading π¦
- Optimizations: Optimized Vite configuration π§
- Bundle Size: Optimized dependencies π
npm run dev # π₯ Development server
npm run build # ποΈ Production build
npm run preview # π Preview build
npm run lint # π Code linting- TypeScript: Strict mode configuration π
- ESLint: React and TypeScript rules π
- Tailwind: Custom configuration π¨
- Vite: React optimizations β‘
Demo project for Immaginet Srl - All rights reserved. π
To contribute to the project:
- π΄ Fork the repository
- πΏ Create a feature branch (
git checkout -b feature/AmazingFeature) - πΎ Commit your changes (
git commit -m 'Add some AmazingFeature') - π€ Push to the branch (
git push origin feature/AmazingFeature) - π Open a Pull Request
For technical support or project questions, contact the development team. π¬ Andrea Piani - andreapiani.dev@gmail.com
- π§ Backend API for data management
- ποΈ Database for persistence
- π³ Integration with real payment processors
- π Robust authentication system
- π‘οΈ Advanced security measures
