1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-08 06:32:27 +08:00
This commit is contained in:
Mongo
2017-10-30 15:28:41 +08:00
parent a4a567e1d4
commit 0db6094b24
2 changed files with 14 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ type Pay struct {
*context.Context
}
// 传入的参数,用于生成 prepay_id 的必需参数
// PayParams was NEEDED when request unifiedorder
type PayParams struct {
TotalFee string
@@ -26,6 +27,15 @@ type PayParams struct {
OpenID string
}
// PayConfig 是传出用于 jsdk 用的参数
type PayConfig struct {
Timestamp int64
NonceStr string
PrePayID string
SignType string
Sign string
}
// payResult 是 unifie order 接口的返回
type payResult struct {
ReturnCode string `xml:"return_code"`