feat: add wepay
This commit is contained in:
28
backend/providers/wepay/config.go
Normal file
28
backend/providers/wepay/config.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user