feat: add wechat pay
This commit is contained in:
30
backend/providers/pay/config.go
Normal file
30
backend/providers/pay/config.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package pay
|
||||
|
||||
import (
|
||||
"git.ipao.vip/rogeecn/atom/container"
|
||||
"git.ipao.vip/rogeecn/atom/utils/opt"
|
||||
)
|
||||
|
||||
const DefaultPrefix = "Pay"
|
||||
|
||||
func DefaultProvider() container.ProviderContainer {
|
||||
return container.ProviderContainer{
|
||||
Provider: Provide,
|
||||
Options: []opt.Option{
|
||||
opt.Prefix(DefaultPrefix),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
WeChat *wechatPay
|
||||
}
|
||||
|
||||
type wechatPay struct {
|
||||
AppId string
|
||||
MechID string
|
||||
SubMechID string
|
||||
SerialNo string
|
||||
ApiV3Key string
|
||||
PrivateKey string
|
||||
}
|
||||
Reference in New Issue
Block a user