About the project
RMS License Server — is a centralized SaaS service for licensing, billing, and financial control, serving the entire ecosystem of RMS Digital Services products. The platform provides a full license management lifecycle: from key generation and hardware binding to payment processing, invoicing, and usage monitoring.
The service acts as a single entry point for all ecosystem products — WordPress solutions, AI tools, MCP integrations, and other SaaS products — providing a unified mechanism for authorization, accounting, and monetization.
Challenge
Create a scalable platform that solves several critical business tasks simultaneously:
- Unify licensing for heterogeneous ecosystem products (desktop software, web services, API)
- Automate billing with support for multiple payment systems and currencies
- Ensure reliable protection of license keys against copying and unauthorized use
- Provide transparent analytics on sales, activations, and product usage
- Minimize operational costs for license management and customer support
- Ensure global reach — customer support in their native language
Solution
A production-ready service with a microservice architecture, built on Clean Architecture principles. The system is divided into three independent components: a high-performance API server, an asynchronous worker for background tasks, and a modern web interface.
System Architecture
Backend API
High-performance REST API that handles all business operations: authentication, license management, payment processing, invoice generation. Strict input validation and multi-layer abuse protection are implemented.
Background Worker
A separate process for performing resource-intensive and asynchronous tasks:
- PDF invoice generation
- Sending email and Telegram notifications
- Cleanup of outdated transactions
- Task queue processing with guaranteed delivery
Frontend (Admin & User Dashboard)
Modern web interface with two role models:
- User Dashboard — license management, balance, purchases, software downloads
- Admin Panel — user management, products, payment gateways, transactions, monitoring
Key Features
Universal Payment Router
Unified interface for accepting payments through four payment systems:
- PayPal — international fiat payments
- Cryptomus — crypto payments with broad currency support
- NOWPayments — alternative crypto processing
- Plisio — additional crypto payment methods
All gateways are integrated via a unified adapter with webhook verification, automatic currency conversion, and atomic crediting of funds to the user's balance. This allows customers to choose a convenient payment method and businesses to receive payments from anywhere in the world.
Licensing System
Support for two types of licenses with different protection mechanisms:
Software licenses (for desktop applications)
- Cryptographic keys with offline validation capability
- Hardware binding with a controlled number of reassignments
- Periodic activity verification (heartbeat) to prevent cloning
- Secure release download with cryptographic signature verification
Site licenses (for web products)
- Domain binding
- Centralized activation management
- Administrative reset of binding when necessary
Both license types support split activation — splitting one purchase across multiple devices/domains with flexible quota management.
Store and Billing
- Server-authoritative pricing — all calculations are performed on the server, the client only displays the result
- Internal wallet — atomic debit of funds without race conditions
- Promo codes with automatic reset and restrictions
- Affiliate program with automatic commission accrual
- Dynamic volume discounts (Volume Discounts)
Professional Document Workflow
- PDF invoices with sequential numbering and professional design
- Asynchronous generation — does not block the user interface
- Transaction history with the ability to re-download documents
Software Update Management
- Semantic versioning (semver) for accurate version comparison
- Release channels — stable, beta, alpha for different user groups
- Automatic notifications about new versions via email and Telegram
- License verification when downloading releases
Multi-channel Notifications
- Email — main notifications about transactions, licenses, releases
- Telegram Bot — instant alerts about critical events
- Push notifications in the dashboard
- Per-type settings — the user chooses which notifications to receive
🌍 Internationalization (45 languages)
The platform supports 45 languages out of the box, making it accessible to a global audience. Full interface localization is implemented, including:
- LTR/RTL support — correct display for right-to-left languages (Arabic, Hebrew, Persian, Urdu)
- Live language switching — instant language switching without page reload
- Localized dates — date formats adapted to regional standards
- Full UI localization — all interface elements, notifications, email templates
Geographic coverage:
This wide coverage allows serving clients from Europe, Asia, the Middle East and CIS in their native language, which is critical for a global SaaS product.
Technology Stack
Security
Security is a key priority when working with financial data and software licensing.
Authentication and Authorization
- JWT authentication with asymmetric signature
- Two-factor authentication (TOTP)
- Token versioning for instant session revocation upon compromise
- API keys for integrations
Data Protection
- Encryption of sensitive data (payment gateway configurations, personal information)
- Centralized secret management
- Cryptographic keys for licenses with secure seed storage
Abuse Protection
- Multi-level rate limiting with flexible configuration for different endpoint types
- Security headers (protection against XSS, clickjacking, MIME-sniffing)
- Validation of all input data
- Protection against path traversal attacks
- Recovery mechanism to prevent service crashes due to goroutine panics
Network Security
- Strict CORS policy with explicit specification of allowed origins
- Configurable trusted proxy
- Enforced HTTPS for all payment operations
Audit and Monitoring
- Structured logging of all critical operations
- Audit log with administrator action history
- Health check with verification of all dependencies
- Automatic cleanup of stale pending transactions
Result
A production-ready platform has been created that:
- Unites all ecosystem products under a single licensing system
- Accepts payments worldwide through 4 payment systems with automatic conversion
- Protects intellectual property using cryptographic methods
- Automates operational processes — from key generation to invoice issuance
- Provides transparent analytics on sales and product usage
- Scales thanks to asynchronous processing and caching
- Complies with modern security standards for working with financial data
- Serves a global audience in 45 languages with RTL support
Conclusions
RMS License Server — is not just a "license system", but a full-fledged commercial platform covering the entire software monetization cycle. The project demonstrates a comprehensive approach to solving business problems:
Architectural Expertise
- Microservice approach with clear separation of responsibilities
- Asynchronous processing for responsive UI
- Atomic operations for handling finances
- Graceful shutdown and fault tolerance
Business Logic
- Support for multiple payment systems through a unified interface
- Flexible discount and promo code system
- Affiliate program with automatic calculation
- Multi-currency support with automatic conversion
Security
- Multi-level protection against license copying
- Cryptographic verification of releases
- Protection of financial operations from race conditions
- Comprehensive web application protection
User Experience
- Modern interface with mobile responsiveness
- Multilingual support (45 languages) with optimized loading and RTL support
- Multi-channel notifications
- Transparent history of all operations
Global Reach
- Support for clients from Europe, Asia, the Middle East, Caucasus, and CIS
- Localized date and currency formats
- Adaptation to regional cultural specifics
The project solves a real business problem of software monetization and can serve as a reference implementation for similar SaaS platforms.
Technical Stack
- Go
- Next.js
- PostgreSQL
- Redis
- Docker