payram-setup
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePayRam Setup
PayRam 部署设置
This is the deployment and onboarding guide for PayRam. Deploy the PayRam server on your VPS and configure the dashboard before integrating payments into your application.
**这是PayRam的部署与初始化指南。**在将支付功能集成到你的应用之前,先在VPS上部署PayRam服务器并配置控制台。
What is PayRam?
什么是PayRam?
PayRam is a self-hosted crypto payment gateway. You deploy it on your own server — no signup, no KYC, no third-party custody. Accept USDT, USDC, Bitcoin, and ETH across Ethereum, Base, Polygon, and Tron.
PayRam是一款自托管加密货币支付网关。你可以在自己的服务器上部署它——无需注册、无需KYC、无需第三方托管。支持在Ethereum、Base、Polygon和Tron网络上接收USDT、USDC、Bitcoin和ETH。
Part 1: Deploy PayRam Server
第一部分:部署PayRam服务器
Prerequisites
前置要求
Server Requirements:
- CPU: 4 cores
- RAM: 4 GB
- Storage: 50 GB SSD
- OS: Ubuntu 22.04
- Ports: 80, 443, 8080, 8443, 5432
Database Requirements:
- Engine: PostgreSQL
- vCPUs: 2 CPU cores
- Memory: 8 GB
- Storage: 50 GB SSD
Recommended VPS Providers: AWS, Google Cloud, Azure, Hetzner, Hostinger
服务器要求:
- CPU:4核
- 内存:4 GB
- 存储:50 GB SSD
- 操作系统:Ubuntu 22.04
- 端口:80, 443, 8080, 8443, 5432
数据库要求:
- 引擎:PostgreSQL
- vCPU:2核
- 内存:8 GB
- 存储:50 GB SSD
推荐VPS服务商: AWS、Google Cloud、Azure、Hetzner、Hostinger
Quick Setup (Recommended - 10 Minutes)
快速部署(推荐 - 10分钟完成)
-
Connect to your VPS via SSH
-
Choose network (mainnet or testnet)
-
Run the installation script:
bash
curl -fsSL https://raw.githubusercontent.com/PayRam/payram-server/main/install.sh | bash-
Follow the interactive prompts:
- Enter PostgreSQL connection details
- Set encryption keys
- Configure domain/IP address
- Choose SSL certificate options
-
Wait for installation to complete (~5-10 minutes)
The script automatically:
- Installs dependencies
- Sets up Docker containers
- Configures database connections
- Generates SSL certificates (if using Let's Encrypt)
- Starts PayRam services
-
通过SSH连接到你的VPS
-
选择网络(主网或测试网)
-
运行安装脚本:
bash
curl -fsSL https://raw.githubusercontent.com/PayRam/payram-server/main/install.sh | bash-
跟随交互式提示操作:
- 输入PostgreSQL连接详情
- 设置加密密钥
- 配置域名/IP地址
- 选择SSL证书选项
-
等待安装完成(约5-10分钟)
脚本会自动完成以下操作:
- 安装依赖项
- 配置Docker容器
- 设置数据库连接
- 生成SSL证书(如果使用Let's Encrypt)
- 启动PayRam服务
Advanced Setup (Docker)
高级部署(Docker方式)
For manual Docker deployment with custom configurations:
- Clone the repository:
bash
git clone https://github.com/PayRam/payram-server.git
cd payram-server- Configure environment variables:
bash
cp .env.example .env
nano .env # Edit with your database, encryption keys, domain- Start with Docker Compose:
bash
docker compose up -d- Verify services are running:
bash
docker compose psFor detailed Docker setup instructions, see the PayRam deployment documentation.
如需手动通过Docker进行自定义配置部署:
- 克隆代码仓库:
bash
git clone https://github.com/PayRam/payram-server.git
cd payram-server- 配置环境变量:
bash
cp .env.example .env
nano .env # 编辑数据库、加密密钥、域名等信息- 通过Docker Compose启动服务:
bash
docker compose up -d- 验证服务是否运行:
bash
docker compose ps如需详细的Docker部署说明,请查看PayRam部署文档。
Part 2: Onboard Your PayRam Instance
第二部分:初始化你的PayRam实例
After the server is installed and running, complete the onboarding configuration through the dashboard.
服务器安装并运行后,通过控制台完成初始化配置。
Step 1: Create Root Account
步骤1:创建根账户
-
Navigate to signup page:
- Open in your browser
http://<your-ip-address>/signup - Replace with your server's IP or domain
<your-ip-address>
- Open
-
Set root email:
- Enter your admin email (you'll use this to log in)
- This becomes your root/administrator account
-
Set root password:
- Create a strong password and store it securely
- You can change it later in dashboard settings
-
Create your first project:
- Enter a project name (e.g., "My E-commerce Store")
- Projects represent different products/websites using PayRam
-
访问注册页面:
- 在浏览器中打开
http://<your-ip-address>/signup - 将 替换为你的服务器IP或域名
<your-ip-address>
- 在浏览器中打开
-
设置根邮箱:
- 输入你的管理员邮箱(用于登录)
- 该邮箱将成为你的根/管理员账户
-
设置根密码:
- 创建强密码并安全存储
- 后续可在控制台设置中修改
-
创建首个项目:
- 输入项目名称(例如:"我的电商商店")
- 项目代表使用PayRam的不同产品/网站
Step 2: Configure Node Details
步骤2:配置节点详情
After logging in, configure blockchain node connections:
-
Go to Settings → Node Details
-
For each chain you want to support:
- Enter RPC endpoint URLs (public or private)
- Recommended: Use dedicated node providers for production
- Example providers: Alchemy, Infura, QuickNode, GetBlock
-
Test connections to verify nodes are accessible
Supported Chains:
- Ethereum (Mainnet/Testnet)
- Base (Mainnet/Testnet)
- Polygon (Mainnet/Testnet)
- Tron (Mainnet/Testnet)
- Bitcoin (Mainnet/Testnet)
登录后,配置区块链节点连接:
-
进入 设置 → 节点详情
-
针对每个你想支持的链:
- 输入RPC端点URL(公开或私有)
- 推荐:生产环境使用专用节点服务商
- 示例服务商:Alchemy、Infura、QuickNode、GetBlock
-
测试连接以验证节点是否可访问
支持的链:
- Ethereum(主网/测试网)
- Base(主网/测试网)
- Polygon(主网/测试网)
- Tron(主网/测试网)
- Bitcoin(主网/测试网)
Step 3: Configure Wallets
步骤3:配置钱包
Set up your wallet infrastructure:
-
Go to Settings → Wallets
-
For each chain, configure:
- Sweep Contract Address (deploy once per chain)
- Cold Wallet Address (where funds are swept to)
- Hot Wallet (for gas fees and instant payouts)
-
Deploy sweep contracts using the provided scripts in the dashboard
-
Fund hot wallets with native tokens:
- ETH for Ethereum/Base
- MATIC for Polygon
- TRX for Tron
- BTC for Bitcoin
搭建你的钱包基础设施:
-
进入 设置 → 钱包
-
针对每个链,配置:
- 归集合约地址(每条链部署一次)
- 冷钱包地址(资金将归集到此处)
- 热钱包(用于支付Gas费和即时转账)
-
使用控制台提供的脚本部署归集合约
-
为热钱包充值原生代币:
- Ethereum/Base网络:ETH
- Polygon网络:MATIC
- Tron网络:TRX
- Bitcoin网络:BTC
Step 4: Set Up Hot Wallets
步骤4:设置热钱包
Configure hot wallets for paying gas fees:
-
Go to Settings → Hot Wallets
-
For each chain:
- Generate a hot wallet or import an existing one
- Fund it with enough native tokens for gas
- Set auto-refill thresholds (optional)
Recommended Hot Wallet Balances:
- Ethereum: 0.5-1 ETH
- Base: 0.1-0.5 ETH
- Polygon: 100-500 MATIC
- Tron: 1000-5000 TRX
配置用于支付Gas费的热钱包:
-
进入 设置 → 热钱包
-
针对每个链:
- 生成新热钱包或导入已有钱包
- 充值足够的原生代币用于支付Gas费
- 设置自动充值阈值(可选)
推荐热钱包余额:
- Ethereum:0.5-1 ETH
- Base:0.1-0.5 ETH
- Polygon:100-500 MATIC
- Tron:1000-5000 TRX
Step 5: Configure Funds Sweeping
步骤5:配置资金归集
Set up automatic fund sweeping to your cold wallet:
-
Go to Settings → Sweeping Configuration
-
Configure sweep rules:
- Minimum balance threshold before sweep
- Sweep schedule (e.g., every 6 hours)
- Gas price limits
-
Enable auto-sweep for each chain
-
Test sweep with a small payment to verify everything works
设置自动将资金归集到冷钱包的规则:
-
进入 设置 → 归集配置
-
配置归集规则:
- 触发归集的最低余额阈值
- 归集频率(例如:每6小时一次)
- Gas价格限制
-
为每条链启用自动归集
-
通过小额支付测试归集功能以验证所有流程正常
Step 6: Generate API Keys
步骤6:生成API密钥
Create API keys for your application:
-
Go to Settings → API Keys
-
Generate a new API key for your project
-
Copy and securely store:
- (for authentication)
PAYRAM_API_KEY - (your server's URL)
PAYRAM_BASE_URL
-
Use these in your application'sfile
.env
为你的应用创建API密钥:
-
进入 设置 → API密钥
-
为你的项目生成新的API密钥
-
复制并安全存储:
- (用于身份验证)
PAYRAM_API_KEY - (你的服务器地址)
PAYRAM_BASE_URL
-
在应用的文件中使用这些密钥
.env
Part 3: Test Your Setup
第三部分:测试你的部署
After completing deployment and onboarding, verify everything works:
完成部署和初始化后,验证所有功能是否正常:
Test Payment Link
测试支付链接
- Go to Payment Links in the dashboard
- Create a test payment (e.g., $1 USD)
- Complete the checkout flow
- Verify payment appears in dashboard
- Check funds swept to cold wallet
- 进入控制台的支付链接页面
- 创建测试支付订单(例如:1美元)
- 完成结账流程
- 验证支付记录是否显示在控制台中
- 检查资金是否归集到冷钱包
Verify API Access
验证API访问
Test your API key works:
bash
curl -X POST https://your-server.com/api/v1/payment \
-H "API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"customerEmail": "test@example.com",
"customerId": "test-123",
"amountInUSD": 1
}'Expected response:
json
{
"reference_id": "ref_...",
"url": "https://your-server.com/checkout/...",
"host": "your-server.com"
}测试你的API密钥是否有效:
bash
curl -X POST https://your-server.com/api/v1/payment \
-H "API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"customerEmail": "test@example.com",
"customerId": "test-123",
"amountInUSD": 1
}'预期响应:
json
{
"reference_id": "ref_...",
"url": "https://your-server.com/checkout/...",
"host": "your-server.com"
}Troubleshooting Setup Issues
部署问题排查
| Issue | Cause | Fix |
|---|---|---|
| Can't access dashboard | Firewall blocking ports | Open ports 80, 443, 8080, 8443 |
| Database connection error | Wrong credentials | Check PostgreSQL connection string in |
| SSL certificate error | Domain not configured | Use HTTP for testing, or configure Let's Encrypt |
| Node RPC failing | Invalid endpoint | Verify RPC URL and API key with provider |
| Sweep not working | Hot wallet empty | Fund hot wallet with native tokens |
| API 401 error | Wrong API key | Regenerate in Settings → API Keys |
| 问题 | 原因 | 解决方案 |
|---|---|---|
| 无法访问控制台 | 防火墙拦截端口 | 开放端口80, 443, 8080, 8443 |
| 数据库连接错误 | 凭证错误 | 检查 |
| SSL证书错误 | 域名未配置 | 测试环境使用HTTP,或配置Let's Encrypt证书 |
| 节点RPC请求失败 | 端点无效 | 与服务商验证RPC URL和API密钥 |
| 归集功能不生效 | 热钱包余额不足 | 为热钱包充值原生代币 |
| API返回401错误 | API密钥错误 | 在 设置 → API密钥 页面重新生成密钥 |
Next Steps
下一步操作
After your PayRam server is deployed and configured, start integrating it into your application:
- Integrate payments into your app →
payram-payment-integration - Complete checkout implementation →
payram-checkout-integration - Handle webhooks →
payram-webhook-integration - Send payouts →
payram-payouts - Learn about stablecoin payments →
payram-stablecoin-payments
PayRam服务器部署并配置完成后,开始将其集成到你的应用中:
- 将支付功能集成到应用 →
payram-payment-integration - 完成结账流程实现 →
payram-checkout-integration - 处理Webhook →
payram-webhook-integration - 发起转账 →
payram-payouts - 了解稳定币支付 →
payram-stablecoin-payments
MCP Server Tools
MCP服务器工具
For automated setup assistance, use the PayRam MCP server:
| Tool | Purpose |
|---|---|
| Create .env with all required variables |
| Step-by-step deployment runbook |
| Validate API connectivity |
如需自动化部署协助,可使用PayRam MCP服务器:
| 工具 | 用途 |
|---|---|
| 创建包含所有必填变量的.env文件 |
| 生成分步部署手册 |
| 验证API连通性 |
All PayRam Skills
所有PayRam技能
| Skill | What it covers |
|---|---|
| Deploy PayRam server, configure dashboard, wallets, and hot wallets |
| Architecture overview, why PayRam, MCP tools |
| Integrate payments into your application code |
| Deep dive into PayRam infrastructure and deployment |
| Build complete checkout flows in 6 frameworks |
| Handle payment webhooks in Express, Next.js, FastAPI, etc. |
| Accept USDT/USDC across EVM chains and Tron |
| Bitcoin payments with HD wallets and mobile signing |
| Send crypto payouts and manage referral programs |
| No-KYC, no-signup, permissionless payment acceptance |
Need help? Message the PayRam team on Telegram: @PayRamChat
- Website: https://payram.com
- GitHub: https://github.com/PayRam
- MCP Server: https://github.com/PayRam/payram-helper-mcp-server
| 技能 | 涵盖内容 |
|---|---|
| 部署PayRam服务器、配置控制台、钱包及热钱包 |
| 架构概述、PayRam优势、MCP工具介绍 |
| 将支付功能集成到应用代码中 |
| PayRam基础设施与部署深度解析 |
| 在6种框架中搭建完整结账流程 |
| 在Express、Next.js、FastAPI等框架中处理支付Webhook |
| 在EVM链和Tron网络上接收USDT/USDC |
| 支持HD钱包和移动端签名的Bitcoin支付 |
| 发起加密货币转账及管理推荐计划 |
| 无需KYC、无需注册的无许可支付接收方案 |
需要帮助?请通过Telegram联系PayRam团队:@PayRamChat