pay.go 776 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. }
  10. type UnifiedOrderReply struct {
  11. Timestamp string `json:"timestamp"` // 时间戳
  12. NonceStr string `json:"nonce_str"` // 随机字符串,长度为32个字符以下
  13. Package string `json:"package"` // prepay_id 参数值
  14. PaySign string `json:"pay_sign"` // 签名
  15. SignType string `json:"sign_type"` // 签名类型
  16. }