feat(pay-v2): P8 Task7 业务方事件集声明 + 装配收尾 + 契约文档
This commit is contained in:
@@ -80,6 +80,11 @@ type WechatConfig struct {
|
||||
type BizSystemConfig struct {
|
||||
CallbackURL string `mapstructure:"callback_url"` // 支付成功回调业务方接收器地址
|
||||
Secret string `mapstructure:"secret"` // HMAC 共享密钥
|
||||
// SupportedEvents 接入方显式声明支持的 webhook event_type 集合(设计 §「接入方显式
|
||||
// 声明支持事件集」)。空 = 只收 payment.succeeded(向后兼容 v1/P2 接入方,不会突然
|
||||
// 收到 subscription.*/chargeback.received 等新事件把它们搞崩);非空则按声明集精确
|
||||
// 匹配,Notifier 投递前过滤(见 internal/webhook/notifier.go::eventSupported)。
|
||||
SupportedEvents []string `mapstructure:"supported_events"`
|
||||
}
|
||||
|
||||
// BizByName 按业务系统名取配置(供下单鉴权 / webhook 回调用)。未声明或无密钥则视为未接入。
|
||||
|
||||
Reference in New Issue
Block a user