Documentation
¶
Index ¶
- Constants
- func AppendConfig(p util.Params, config *config.Config) util.Params
- func CertTLSConfig(mchID, path string) (*tls.Config, error)
- func GetAuthCodeToOpenidURL(c *config.Config) string
- func GetBatchQueryCommentURL(c *config.Config) string
- func GetCloseOrderURL(c *config.Config) string
- func GetDownloadBillURL(c *config.Config) string
- func GetDownloadFundFlowURL(c *config.Config) string
- func GetIP() (ip string)
- func GetMicroPayURL(c *config.Config) string
- func GetOrderQueryURL(c *config.Config) string
- func GetRefundQueryURL(c *config.Config) string
- func GetRefundURL(c *config.Config) string
- func GetReportURL(c *config.Config) string
- func GetReverseURL(c *config.Config) string
- func GetUnifyURL(c *config.Config) string
- func MapToXML(params util.Params) string
- func PostWithTSL(url string, params util.Params, config *tls.Config) (string, error)
- func PostWithoutCert(url string, params util.Params) (string, error)
- func Sign(p util.Params, config *config.Config) util.Params
- func XMLToMap(xmlStr string) util.Params
- type Params
- type Response
Constants ¶
View Source
const ( //正常模式 MicroPayURL = "https://api.mch.weixin.qq.com/pay/micropay" UnifiedOrderURL = "https://api.mch.weixin.qq.com/pay/unifiedorder" OrderQueryURL = "https://api.mch.weixin.qq.com/pay/orderquery" ReverseURL = "https://api.mch.weixin.qq.com/secapi/pay/reverse" CloseOrderURL = "https://api.mch.weixin.qq.com/pay/closeorder" RefundURL = "https://api.mch.weixin.qq.com/secapi/pay/refund" RefundQueryURL = "https://api.mch.weixin.qq.com/pay/refundquery" DownloadBillURL = "https://api.mch.weixin.qq.com/pay/downloadbill" DownloadFundFlowURL = "https://api.mch.weixin.qq.com/pay/downloadfundflow" ReportURL = "https://api.mch.weixin.qq.com/payitil/report" BatchQueryCommentURL = "https://api.mch.weixin.qq.com/billcommentsp/batchquerycomment" AuthCodeToOpenidURL = "https://api.mch.weixin.qq.com/tools/authcodetoopenid" //沙箱模式 SandboxMicroPayURL = "https://api.mch.weixin.qq.com/sandboxnew/pay/micropay" SandboxUnifiedOrderURL = "https://api.mch.weixin.qq.com/sandboxnew/pay/unifiedorder" SandboxOrderQueryURL = "https://api.mch.weixin.qq.com/sandboxnew/pay/orderquery" SandboxReverseURL = "https://api.mch.weixin.qq.com/sandboxnew/secapi/pay/reverse" SandboxCloseOrderURL = "https://api.mch.weixin.qq.com/sandboxnew/pay/closeorder" SandboxRefundURL = "https://api.mch.weixin.qq.com/sandboxnew/secapi/pay/refund" SandboxRefundQueryURL = "https://api.mch.weixin.qq.com/sandboxnew/pay/refundquery" SandboxDownloadBillURL = "https://api.mch.weixin.qq.com/sandboxnew/pay/downloadbill" SandboxDownloadFundFlowURL = "https://api.mch.weixin.qq.com/sandboxnew/pay/downloadfundflow" SandboxReportURL = "https://api.mch.weixin.qq.com/sandboxnew/payitil/report" SandboxBatchQueryCommentURL = "https://api.mch.weixin.qq.com/billcommentsp/batchquerycomment" SandboxAuthCodeToOpenidURL = "https://api.mch.weixin.qq.com/sandboxnew/tools/authcodetoopenid" )
Variables ¶
This section is empty.
Functions ¶
func AppendConfig ¶
AppendConfig 增加 基础config参数
func CertTLSConfig ¶
CertTLSConfig 证书 tls
func GetAuthCodeToOpenidURL ¶
GetAuthCodeToOpenidURL 付款码查询openid
func GetBatchQueryCommentURL ¶
GetBatchQueryCommentURL 拉取订单评价数据
func GetDownloadFundFlowURL ¶
GetDownloadFundFlowURL 下载资金账单
func PostWithTSL ¶
PostWithTSL https need cert post
func PostWithoutCert ¶
PostWithoutCert https no cert post
Types ¶
Click to show internal directories.
Click to hide internal directories.