This commit is contained in:
aaron 2025-08-10 13:07:03 +08:00
parent 346fd1d3c0
commit 8f5a415e35

View File

@ -170,7 +170,8 @@ app.post('/api/payment/create', async (req, res) => {
chainType: '1', // USDT TRC20 chainType: '1', // USDT TRC20
fiatAmount: order.total_amount.toFixed(2), fiatAmount: order.total_amount.toFixed(2),
fiatCurrency: 'USD', fiatCurrency: 'USD',
notifyUrl: `${req.protocol}://${req.get('host')}/api/payment/callback` notifyUrl: `${req.protocol}://${req.get('host')}/api/payment/callback`,
redirectUrl: `${req.protocol}://${req.get('host')}/success.html?order_id=${order_id}`
}; };
// 生成签名 // 生成签名