@@ -123,6 +123,7 @@ func (pcf *Pay) PrePayID(p *Params) (prePayID string, err error) {
//tradeType := "MWEB"
template := "appid=%s&body=%s&mch_id=%s&nonce_str=%s¬ify_url=%s&openid=%s&out_trade_no=%s&spbill_create_ip=%s&total_fee=%s&trade_type=%s&key=%s"
str := fmt.Sprintf(template, pcf.AppID, p.Body, pcf.PayMchID, nonceStr, pcf.PayNotifyURL, p.OpenID, p.OutTradeNo, p.CreateIP, p.TotalFee, tradeType, pcf.PayKey)
+ fmt.Println("--------------------------------------------------------->str---->", str)
sign := util.MD5Sum(str)
request := payRequest{
AppID: pcf.AppID,