Documentation ¶
Index ¶
- func InitNativeApiService(cli *core.Client) *native.NativeApiService
- func InitWechatClient(cfg WechatConfig) *core.Client
- func InitWechatNativeService(native wechat.NativeAPIService, cfg WechatConfig) *wechat.NativePaymentService
- func InitWechatNotifyHandler(cfg WechatConfig) *notify.Handler
- type WechatConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitNativeApiService ¶
func InitNativeApiService(cli *core.Client) *native.NativeApiService
func InitWechatClient ¶
func InitWechatClient(cfg WechatConfig) *core.Client
func InitWechatNativeService ¶
func InitWechatNativeService(native wechat.NativeAPIService, cfg WechatConfig) *wechat.NativePaymentService
func InitWechatNotifyHandler ¶
func InitWechatNotifyHandler(cfg WechatConfig) *notify.Handler
Types ¶
type WechatConfig ¶
type WechatConfig struct { AppID string MchID string MchKey string MchSerialNum string // 证书 CertPath string KeyPath string PaymentNotifyURL string }
func InitWechatConfig ¶
func InitWechatConfig() WechatConfig
Click to show internal directories.
Click to hide internal directories.