Add WxPay settings, APIv3 provider implementation, create/notify handlers, and provider-specific top-up settlement.
23 lines
820 B
Go
23 lines
820 B
Go
package setting
|
|
|
|
type WxpaySetting struct {
|
|
Enabled bool `json:"enabled"`
|
|
AppID string `json:"app_id"`
|
|
MchID string `json:"mch_id"`
|
|
PrivateKey string `json:"private_key"`
|
|
MerchantSerialNo string `json:"merchant_serial_no"`
|
|
APIv3Key string `json:"api_v3_key"`
|
|
PlatformPublicKey string `json:"platform_public_key"`
|
|
PlatformCertificate string `json:"platform_certificate"`
|
|
PlatformSerialNo string `json:"platform_serial_no"`
|
|
GatewayURL string `json:"gateway_url"`
|
|
NotifyURL string `json:"notify_url"`
|
|
ReturnURL string `json:"return_url"`
|
|
H5AppName string `json:"h5_app_name"`
|
|
H5AppURL string `json:"h5_app_url"`
|
|
}
|
|
|
|
var Wxpay = WxpaySetting{
|
|
GatewayURL: "https://api.mch.weixin.qq.com",
|
|
}
|