sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

feat: MVP-1 NOWPayments 后端集成(3天)

Open wwbluechip opened this issue 9 months ago • 0 comments

来源

docs/product-plan.md Phase 1 MVP

需求

  1. 注册 NOWPayments 账号(需爸爸操作 — KYC)
  2. 创建支付订单 API(POST /api/v1/payment/create)
  3. IPN webhook 接收支付确认
  4. 到账后调已有余额接口充值
  5. 支付记录写 DB(新表 payment_orders)
  6. 超时/失败处理

技术参考

  • NOWPayments API: https://nowpayments.io/api
  • docs/crypto-payment-research.md

依赖

  • 需要爸爸注册 NOWPayments 拿 API key
  • sub2api 已有余额系统

验收标准

  • NOWPayments sandbox 环境能创建订单
  • IPN callback 能正确处理
  • 余额到账

wwbluechip avatar Mar 03 '26 17:03 wwbluechip