24 lines
2.2 KiB
Go
24 lines
2.2 KiB
Go
package config
|
|
|
|
type Wechat struct {
|
|
AppId string `mapstructure:"app-id" json:"app-id" yaml:"app-id"`
|
|
AppSecret string `mapstructure:"app-secret" json:"app-secret" yaml:"app-secret"`
|
|
TestPayAppId string `mapstructure:"test-pay-app-id" json:"test-pay-app-id" yaml:"test-pay-app-id"`
|
|
SinglePayNotifyUrl string `mapstructure:"single-pay-notify-url" json:"single-pay-notify-url" yaml:"single-pay-notify-url"` // 单项支付回调地址
|
|
SingleRefundNotifyUrl string `mapstructure:"single-refund-notify-url" json:"single-refund-notify-url" yaml:"single-refund-notify-url"` // 单项退款回调地址
|
|
MemberPayNotifyUrl string `mapstructure:"member-pay-notify-url" json:"member-pay-notify-url" yaml:"member-pay-notify-url"` // 会员支付回调地址
|
|
MemberRefundNotifyUrl string `mapstructure:"member-refund-notify-url" json:"member-refund-notify-url" yaml:"member-refund-notify-url"` // 会员退款回调地址
|
|
NotifyDomain string `mapstructure:"notify-domain" json:"notify-domain" yaml:"notify-domain"`
|
|
Pay1281030301 Pay1281030301 `mapstructure:"pay-1281030301" json:"pay-1281030301" yaml:"pay-1281030301"`
|
|
}
|
|
|
|
// Pay1281030301 app
|
|
type Pay1281030301 struct {
|
|
MchId string `mapstructure:"mch-id" json:"mch-id" yaml:"mch-id"` // 商户号
|
|
V3ApiSecret string `mapstructure:"v3-api-secret" json:"v3-api-secret" yaml:"v3-api-secret"` // 商户APIv3密钥
|
|
MchCertificateSerialNumber string `mapstructure:"mch-certificate-serial-number" json:"mch-certificate-serial-number" yaml:"mch-certificate-serial-number"` // 商户证书序列号
|
|
PlatformCerts string `mapstructure:"platform-certs" json:"platform-certs" yaml:"platform-certs"` // 平台证书
|
|
PrivateKey string `mapstructure:"private-key" json:"private-key" yaml:"private-key"`
|
|
Certificate string `mapstructure:"certificate" json:"certificate" yaml:"certificate"`
|
|
}
|