Licença vitalicia pagamento unico
valor R$ 150,00
Lifetime license, one-time payment
Price: $ 25,00
# Mercado Pago Integration System for WebEngine CMS
## 📋 Feature Summary
### 🎯 **Complete Payment System**
Professional integration system with Mercado Pago for WebEngine CMS, developed specifically for online game servers (MU Online and similar). Allows players to purchase credits through secure payments via Mercado Pago.
---
## ✨ **Main Features**
### 💳 **1. Payment System**
- **Complete integration with Mercado Pago API**
- Support for multiple payment methods:
- PIX (instant payment)
- Credit/Debit Card
- Bank Slip
- Sandbox mode for testing before going live
- Support for multiple currencies (BRL, USD, ARS, etc.)
- Automatic redirection after payment
- Real-time notifications via webhook
### 📦 **2. Customizable Package System**
- **Up to 6 customizable credit packages**
- Complete administrative interface for managing packages
- Each package includes:
- Customizable price in R$
- Configurable number of credits
- Customizable title and description
- Percentage bonus system (visual)
- Individual activation/deactivation of packages
- Modern visual interface with responsive cards
### 🛡️ **3. Advanced Anti-Duplication Protection**
Robust system for preventing duplicate payments with multiple layers of protection:
- **Database-Level Protection:**
- Single constraint on Payment ID
- Single constraint on External Reference
- Performance-optimized indexes
- **Application-Level Protection:**
- Prompt transaction logging (prevents race conditions)
- Duplicate verification before processing
- Intelligent handling of duplicate webhooks
- **Monitoring Tool:**
- Administrative panel to detect duplicates
- Real-time statistics
- Duplicate record cleanup tool
- Visual protection status
### 📊 **4. Complete Administrative Panel**
#### **Transaction Management:**
- Complete list of all transactions
- Filters and advanced search (DataTables)
- Detailed information:
- Mercado Pago Payment ID
- Player account
- Amount paid
- Payer's email
- Transaction date and time
- Status (approved/reversed)
- External Reference
#### **Statistics and Reports:**
- Total transactions performed
- Total amount collected
- Transactions of the current month
- Amount collected in the month
- Visual dashboards with important metrics
#### **Settings:**
- Module activation/deactivation
- Credential configuration (Access Token and Public Key)
- Sandbox/Production mode
- Custom return URL
- Configurable notification URL
- Custom title for donations
- Currency selection
- Integration with WebEngine credit system
### 🎨 **5. Modern User Interface**
- Responsive design (mobile-friendly)
- Package cards with hover effects
- Highlighted bonus badges
- Smooth gradients and animations
- Intuitive and professional interface
- WebEngine theme integration
### 🔧 **6. Flexible Configuration System**
- XML files for configuration
- Easy customization without editing code
- Package configuration via admin panel
- Support for multiple credit configurations
### 🔐 **7. Security and Reliability**
- Authenticated user validation
- Valid account verification
- Detailed logs for debugging
- Robust error handling
- Prevention of duplicate processing
- Input data validation
### 📝 **8. Log and Debug System**
- Detailed logs of all transactions
- Debug file for monitoring
- Complete tracking of the payment flow
- Clear and useful error information
### 🚀 **9. Installation and Setup**
- Complete SQL script for installation
- Automatic table creation
- Performance-optimized indexes
- Triggers for automatic updates
- Installation status check
- Detailed configuration instructions
### 🔄 **10. Integration with WebEngine CMS**
- Compatible with WebEngine CMS
- Native integration with credit system
- Support for multiple databases
- Use of native WebEngine classes
- Compatible with module system
---
## 🎁 **Included Extra Features**
- ✅ Clean and well-documented code
- ✅ Compatible with PHP 7.x and 8.x
- ✅ SQL Server (MSSQL) support
- ✅ Interface entirely in Portuguese
- ✅ Robust webhook notification system
- ✅ Automatic expiration of preferences (1 hour)
- ✅ Auto-return after payment approval
- ✅ Handling of pending payments
- ✅ Support for multiple environments (test/production)
---
## 📦 **What's Included**
1. **Donation Module** (`modules/donation/mercadopago.php`)
2. **Integration API** (`api/mercadopago.php`)
3. **Administrative Panel** (multiple modules)
4. **Configuration System** (XML files)
5. **Complete SQL Installation Script**
6. **Advanced Anti-Duplication Tool**
7. **Modern and responsive Visual Interface**
8. **Documentation** and instructions
# Sistema de Integração Mercado Pago para WebEngine CMS