Automated MT5 Licence Subscription Platform for TradingSmarter
The Problem: Manual Licence Delivery Was Killing Growth
The client was selling MetaTrader 5 indicators and Expert Advisors but had no automated system. Every sale meant manually generating and sending a licence key. They needed a professional platform where payment triggers instant, automated licence delivery — and where MT5 tools could validate licences server-side rather than embedding keys in the files themselves.
-
01Zero AutomationEvery customer purchase required manual intervention to generate and send a licence key — unscalable and prone to delays that hurt customer trust.
-
02No Licence Validation SystemWithout server-side validation, licence keys embedded in MT5 files could be extracted and shared. A proper validation API was needed so indicators check against a live endpoint before running.
-
03Full Subscription LifecycleThe system needed to handle not just initial purchases but renewals, cancellations, dunning, free trials, and refunds — every state transition automatically updating the licence status.
-
04Complete VPS DeploymentPrevious developers had handed over code without helping with hosting. This time the client needed everything — WordPress, Flask, FastAPI, SSL, backups, process management — set up and running on a VPS with no loose ends.
How We Built It
We architected three separate layers: a WordPress marketing site for conversions, a Flask subscriber portal for customer licence management, and a FastAPI service for high-performance licence validation. LemonSqueezy webhooks tie everything together — every payment event triggers the right action automatically.
WordPress Marketing Site
Custom-designed WordPress site with product pages per MT5 indicator and EA, LemonSqueezy checkout integration, blog-ready structure for SEO, and trust content optimized for the trading tools niche.
Flask Subscriber Portal
Built a secure subscriber portal in Flask where customers log in to view active licences, copy keys, check subscription status, access invoices, and manage their account — all scoped per product.
FastAPI Licence Validation Service
High-performance FastAPI endpoints handle licence generation (triggered on payment) and real-time validation (called by MT5 indicators before running). Rate-limited, secured, and scoped per product namespace.
Full LemonSqueezy Integration
Complete LemonSqueezy store setup with webhook handlers for every subscription lifecycle event — order.created, renewal, cancellation, dunning, free trial expiry. Every state change automatically updates licence status.
End-to-End VPS Deployment
Provisioned and configured the full VPS from scratch: Nginx reverse proxy, WordPress, Flask and FastAPI under Gunicorn, SSL via Let's Encrypt, automated backups, firewall rules, and PM2 process management.
What We Delivered
A complete, production-deployed SaaS platform where every step from payment to active licence is automated. The client went from manually handling every sale to a system that runs itself — renewals, cancellations, free trials, and all.
Project Breakdown
Five parallel workstreams delivered as a single integrated platform — each layer built to connect cleanly with the others.
Technologies
& Tools
A three-layer Python + WordPress architecture — Flask for the subscriber portal, FastAPI for high-performance licence validation, WordPress for the marketing site — all deployed on a single hardened VPS behind Nginx.
What I appreciated most was the server deployment. I've worked with developers before who hand over code and say 'good luck with hosting'. That didn't happen here. Everything was set up on the VPS, SSL sorted, the Flask and FastAPI services running properly in the background, backups configured. I didn't have to touch anything. Really solid work. If you're looking for someone who actually delivers and doesn't cut corners, I'd recommend without hesitation.
Need a SaaS platform or licence management system?
We build subscription platforms, licence delivery systems, and payment-integrated backends that run themselves. Book a free call to scope your project.