Introduction
Integrate epusdt with Unicorn Digital Card to enable USDT payments.
Project Highlights
- Privately deployable USDT payment middleware (TRC20 network)
- Written in Go, supporting x86/ARM architectures
- Multi-wallet address rotation for higher transaction concurrency
- Asynchronous queue processing for high performance
- Telegram bot integration for real-time notifications
Prerequisites
- Running MySQL, Redis, and Supervisord services
- Telegram bot token (@BotFather)
- Unicorn Digital Card setup (e.g.,
fk.skygv.com) - Dedicated payment domain (e.g.,
upay.skygv.com)
Step-by-Step Guide
1. Create a New Website in aaPanel
- Add a static website (no PHP/FTP required) with a database.
- Bind the payment domain (e.g.,
upay.skygv.com). - Enable HTTPS redirect if using SSL.
2. Import SQL Database
Option 1: Manual Import
- Download the latest SQL file from epusdt GitHub.
- Upload and extract the
epusdtrelease package to the website directory. Rename
.env.exampleto.envand configure:app_uri=https://upay.skygv.com mysql_user=sql_f_skygv_com mysql_passwd=xPFptfy3eDXFFLkX mysql_database=sql_f_skygv_com tg_bot_token=YOUR_BOT_TOKEN api_auth_token=RANDOM_SECURE_TOKEN forced_usdt_rate=6.4 # Optional
Option 2: phpMyAdmin
- Use phpMyAdmin to import the SQL file directly.
👉 Optimize your database performance
3. Configure Epusdt
- Modify
.envwith your domain, database credentials, and Telegram bot details.
4. Set Up Reverse Proxy
- Navigate to aaPanel > Website > Reverse Proxy.
- Proxy requests from
upay.skygv.comtohttp://127.0.0.1:8000.
5. Grant Execute Permissions
cd /www/wwwroot/upay.skygv.com
chmod +x epusdt6. Supervisor Configuration
- Add a守护进程 command:
/www/wwwroot/upay.skygv.com/epusdt http start
7. Test the Setup
- Check Telegram bot responses to confirm Epusdt is running.
8. SSL Configuration
- Add certificates in aaPanel’s SSL settings.
Insert this NGINX snippet for HTTP-to-HTTPS redirect:
# SSL redirect code here
Integrating with Unicorn Digital Card
| Payment Option | Merchant ID | Merchant Key | Endpoint | Notes |
|----------------|--------------|--------------|-----------------------------------|--------------------------------|
| Epusdt | api_auth_token | (Leave empty) | http://127.0.0.1:8000/api/v1/order/create-transaction | Use localhost if on same server |
👉 Boost payment processing speed
FAQs
Q: How do I restart Epusdt after config changes?
A: Restart the Supervisor process:
supervisorctl restart epusdtQ: Can I run Epusdt on Windows?
A: Yes—execute epusdt.exe directly (no permission adjustments needed).
Q: How to customize the payment page title?
A: Edit /www/wwwroot/upay.skygv.com/static/index.html.
Q: What if my bot doesn’t respond?
A: Verify:
- Correct
tg_bot_tokenandtg_manageIDs in.env. - Active internet connection on the server.
Final Notes
- Avoid modifying unfamiliar
.envsettings. - Directory paths vary—adjust commands to your setup.
- For issues, check logs at
/logsin the Epusdt directory.