feat: 添加 HashPay 支付渠道支持
Build and Push Docker Image / build-and-push (push) Successful in 1m1s
Build and Push Docker Image / deploy (push) Successful in 7s

后端:
- payment.go: 添加 HashPay 支付处理器
  - RSA-SHA256 签名
  - RSA-OAEP-256+A256GCM 回调解密
  - 创建订单和回调处理
- routes.go: 添加 HashPay 回调路由

前端:
- PaymentChannels.vue: 添加 HashPay 类型选项
  - 商户ID配置
  - RSA私钥配置
  - API地址配置

参考 bepusdt 的交互方式,支持多种加密货币支付
This commit is contained in:
2026-07-13 04:21:16 +00:00
parent 51edee4d92
commit 917bd926c9
3 changed files with 394 additions and 2 deletions
+1
View File
@@ -72,6 +72,7 @@ func SetupRoutes(r *gin.Engine) {
api.GET("/settings/public", systemHandler.GetPublicSettings)
api.GET("/payment-channels", paymentChannelHandler.PublicList)
api.POST("/payment/bepusdt/notify", paymentHandler.BepUsdtNotify)
api.POST("/payment/hashpay/notify", paymentHandler.HashPayNotify)
api.POST("/shipping/calculate", shippingTemplateHandler.CalculateForUser)
authed := api.Group("")