Skip to content

Commit

Permalink
mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
mailbaoer committed Jun 6, 2018
1 parent fcf1f6d commit e7598f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pay/pay.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ type (
// WaxPayRet 微信小程序下单返回内容
WaxPayRet struct {
Ret
AppID string `json:"appid,omitempty"` // 应用ID

AppID string `json:"appId,omitempty"`
Package string `json:"package,omitempty"` // 扩展字段 统一下单接口返回的 prepay_id 参数值,提交格式如:prepay_id=*
SignType string `json:"signType,omitempty"` // 签名算法,暂支持 MD5
PaySign string `json:"paySign,omitempty"` // 签名
Expand Down Expand Up @@ -151,7 +152,7 @@ func (m *WePay) WaxPay(totalFee int, openID string) (results *WaxPayRet, outTrad
Timestamp: fmt.Sprintf("%d", time.Now().Unix()),
NonceStr: unifiedOrderResp.NonceStr,
},
AppID: m.AppID,
AppID: m.AppID,
Package: "prepay_id=" + unifiedOrderResp.PrepayID,
SignType: "MD5",
}
Expand Down

0 comments on commit e7598f6

Please sign in to comment.