package channel import ( "context" "errors" "net/http" "github.com/wangjia/pay/internal/model" ) // ErrNotImplemented 渠道尚未实现。 var ErrNotImplemented = errors.New("微信支付渠道尚未实现:微信无可用沙箱,待真实商户号下来后补 V3 实现") // wechatChannel 占位实现。接口已就绪,补齐 V3 下单/回调/查单即可启用。 type wechatChannel struct{ m *model.Merchant } func newWechat(m *model.Merchant) (Channel, error) { return &wechatChannel{m: m}, nil } func (w *wechatChannel) Name() string { return "wechat" } func (w *wechatChannel) PagePay(context.Context, CreateReq) (string, error) { return "", ErrNotImplemented } func (w *wechatChannel) PreCreate(context.Context, CreateReq) (string, error) { return "", ErrNotImplemented } func (w *wechatChannel) VerifyNotify(context.Context, *http.Request) (*NotifyResult, error) { return nil, ErrNotImplemented } func (w *wechatChannel) Query(context.Context, string) (*QueryResult, error) { return nil, ErrNotImplemented }