wxpay icon indicating copy to clipboard operation
wxpay copied to clipboard

🔥微信支付(WeChat Pay) SDK for Golang

Results 13 wxpay issues
Sort by recently updated
recently updated
newest added

从另外一个项目抄过来的。 package wxpay import ( "bytes" "encoding/json" "encoding/xml" "io" ) // ToJSON 转化成JSON字符 func (p Params) ToJSON() string { mjson, _ := json.Marshal(p) return string(mjson) } // Decode XML解码 func...

// 生成随机字符串 func nonceStr() string { uid, err := uuid.NewV4() if err != nil { return errors.New("生成随机字符串").Error() } return strings.Replace(uid.String(), "-", "", -1) }

参考: https://pay.weixin.qq.com/docs/merchant/development/interface-rules/wechatpay-certificates-rotation.html