How adamsallehleanis/leanx works
Main Components
a) Core Components:
• WordPress Core
• WooCommerce Plugin
• LeanX Payment Gateway Plugin
• LeanX Payment API (External Service)
b) Plugin Internal Components:
• Gateway Class (class-leanx-gateway.php)
• Admin Interface (leanx-admin-page.php)
• Order Management System (leanx-pending-orders-handler.php)
• Payment Processing System
• Verification System (verification.php)
[User Layer]
[WordPress Layer]
[WooCommerce Layer]
[LeanX Plugin Layer]
[External Services Layer]
Component Relationships to Highlight
a) Data Flow:
• Order status updates flowing back through the system
• Admin configuration flow
b) Integration Points:
• WooCommerce Payment Gateway Hook Points
• WordPress Admin Interface Integration
• LeanX API Communication Points
Specific Elements
a) Payment Processing Flow:
[Checkout] → [Gateway Class] → [Verification] → [LeanX API]
• ↓
• [Order Handler] → [Database]
b) Admin Configuration:
[WordPress Admin] → [LeanX Settings] → [Configuration Storage]
Important Technical Details to Note
• Sandbox/production environment switch
• Authentication flow (Auth Token, Hash Key)
• Invoice generation system
• Order status management flow