pay.go 845 B

1234567891011121314151617181920
  1. package models
  2. import "github.com/shopspring/decimal"
  3. type UnifiedOrderRequest struct {
  4. RequestId string `json:"request_id"` //request id
  5. OutTradeNo string `json:"out_trade_no"` //交易id
  6. MerchantCardId int64 `json:"merchant_card_id"` //商户卡id
  7. ClientOpenId string `json:"client_open_id"` //openid
  8. Amount decimal.Decimal `json:"amount"` // 交易金额
  9. InvitationCode string `json:"invitation_code"` //邀请码
  10. }
  11. type UnifiedOrderReply struct {
  12. Timestamp string `json:"timestamp"` // 时间戳
  13. NonceStr string `json:"nonce_str"` // 随机字符串,长度为32个字符以下
  14. Package string `json:"package"` // prepay_id 参数值
  15. PaySign string `json:"pay_sign"` // 签名
  16. SignType string `json:"sign_type"` // 签名类型
  17. }