This commit is contained in:
@@ -239,9 +239,10 @@ type V2CallbackResult struct {
|
||||
OutTradeNo string
|
||||
TransactionID string
|
||||
// TradeState 为 "SUCCESS" 表示支付成功(return_code 和 result_code 均为 SUCCESS)
|
||||
TradeState string
|
||||
TotalFee string
|
||||
OpenID string
|
||||
TradeState string
|
||||
TotalFee string
|
||||
OpenID string
|
||||
SuccessTime string
|
||||
}
|
||||
|
||||
// VerifyCallback 解析并验证 v2 回调 XML,返回解析结果
|
||||
@@ -292,5 +293,6 @@ func (s *PaymentV2Service) VerifyCallback(body []byte) (*V2CallbackResult, error
|
||||
TradeState: tradeState,
|
||||
TotalFee: notify.TotalFee,
|
||||
OpenID: notify.OpenID,
|
||||
SuccessTime: notify.TimeEnd,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user