mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-11 08:12:26 +08:00
fix bug
This commit is contained in:
10
pay/pay.go
10
pay/pay.go
@@ -17,6 +17,7 @@ type Pay struct {
|
|||||||
*context.Context
|
*context.Context
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 传入的参数,用于生成 prepay_id 的必需参数
|
||||||
// PayParams was NEEDED when request unifiedorder
|
// PayParams was NEEDED when request unifiedorder
|
||||||
type PayParams struct {
|
type PayParams struct {
|
||||||
TotalFee string
|
TotalFee string
|
||||||
@@ -26,6 +27,15 @@ type PayParams struct {
|
|||||||
OpenID string
|
OpenID string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PayConfig 是传出用于 jsdk 用的参数
|
||||||
|
type PayConfig struct {
|
||||||
|
Timestamp int64
|
||||||
|
NonceStr string
|
||||||
|
PrePayID string
|
||||||
|
SignType string
|
||||||
|
Sign string
|
||||||
|
}
|
||||||
|
|
||||||
// payResult 是 unifie order 接口的返回
|
// payResult 是 unifie order 接口的返回
|
||||||
type payResult struct {
|
type payResult struct {
|
||||||
ReturnCode string `xml:"return_code"`
|
ReturnCode string `xml:"return_code"`
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ type Config struct {
|
|||||||
AppSecret string
|
AppSecret string
|
||||||
Token string
|
Token string
|
||||||
EncodingAESKey string
|
EncodingAESKey string
|
||||||
PayMchID string
|
PayMchID string //支付 - 商户 ID
|
||||||
PayNotifyURL string //支付的通知接口
|
PayNotifyURL string //支付 - 接受微信支付结果通知的接口地址
|
||||||
PayKey string //商家后台设置的支付 key
|
PayKey string //支付 - 商户后台设置的支付 key
|
||||||
Cache cache.Cache
|
Cache cache.Cache
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user