feat: add wepay

This commit is contained in:
yanghao05
2025-04-11 16:49:57 +08:00
parent 3a04c0b39d
commit 7e17cd8164
7 changed files with 223 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
package wepay
import (
"go.ipao.vip/atom/container"
"go.ipao.vip/atom/opt"
)
const DefaultPrefix = "WePay"
func DefaultProvider() container.ProviderContainer {
return container.ProviderContainer{
Provider: Provide,
Options: []opt.Option{
opt.Prefix(DefaultPrefix),
},
}
}
type Config struct {
Debug bool
NotifyURL string
AppId string
MchId string
SerialNo string
APIv3Key string
PrivateKey string
}