Closed leezhm closed 6 years ago
// 获取小程序前点调用支付接口所需参数 params, err := payment.GetParams(res.AppID, res.MchID, res.NonceStr, res.PrePayID, time.Now()) if err != nil { // handle error return }
the paySign should use apikey not MchID, and here is the wechat app pay document
You are right, I've fixed it, thanks for that.
// 获取小程序前点调用支付接口所需参数 params, err := payment.GetParams(res.AppID, res.MchID, res.NonceStr, res.PrePayID, time.Now()) if err != nil { // handle error return }
the paySign should use apikey not MchID, and here is the wechat app pay document