1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-03-01 00:35:26 +08:00

支付 新增 BridgeConfig 方法,可获得 prepay ID,及js支付时所需要的参数

统一下单 新增非必传参数
This commit is contained in:
ciel yu
2019-10-14 19:08:35 +08:00
parent 546dce2396
commit 3ea624f832
+2 -2
View File
@@ -38,7 +38,7 @@ type Params struct {
Detail string
Attach string
GoodsTag string
NotifyUrl string
NotifyURL string
}
// Config 是传出用于 js sdk 用的参数
@@ -153,7 +153,7 @@ func (pcf *Pay) PrePayOrder(p *Params) (payOrder PreOrder, err error) {
param["spbill_create_ip"] = p.CreateIP
param["total_fee"] = p.TotalFee
param["trade_type"] = p.TradeType
param["openid"] = p.OpenID
param["openid"] = p.OpenIDÒ
param["detail"] = p.Detail
param["attach"] = p.Attach
param["goods_tag"] = p.GoodsTag