123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package consts
- import "time"
- const (
- WechatPayAPIServer = "https://apihk.mch.weixin.qq.com"
- WechatPayAPIServerBackup = "https://api2.mch.weixin.qq.com"
- )
- const (
- Version = "0.2.20"
- UserAgentFormat = "WechatPay-Go/%s (%s) GO/%s"
- )
- const (
- Authorization = "Authorization"
- Accept = "Accept"
- ContentType = "Content-Type"
- ContentLength = "Content-Length"
- UserAgent = "User-Agent"
- )
- const (
- ApplicationJSON = "application/json"
- ImageJPG = "image/jpg"
- ImagePNG = "image/png"
- VideoMP4 = "video/mp4"
- )
- const (
- SignatureMessageFormat = "%s\n%s\n%d\n%s\n%s\n"
-
- HeaderAuthorizationFormat = "%s mchid=\"%s\",nonce_str=\"%s\",timestamp=\"%d\",serial_no=\"%s\",signature=\"%s\""
- )
- const (
- WechatPayTimestamp = "Wechatpay-Timestamp"
- WechatPayNonce = "Wechatpay-Nonce"
- WechatPaySignature = "Wechatpay-Signature"
- WechatPaySerial = "Wechatpay-Serial"
- RequestID = "Request-Id"
- )
- const (
- FiveMinute = 5 * 60
- DefaultTimeout = 30 * time.Second
- )
|