Documentation ¶
Index ¶
- Constants
- func MustGetTlsConfiguration() *tls.Config
- func MustLoadCertificates() (tls.Certificate, *x509.CertPool)
- func OrderQuery(pm *payMap) (map[string]string, error)
- func RefundOrder(pm *payMap) (map[string]string, error)
- func RefundQuery(pm *payMap) (map[string]string, error)
- func Sign(paras map[string]string, apiKey string) string
- func UnifiedOrder(pm *payMap) (map[string]string, error)
- func XMLToMap(xmlStr string, isIngoreFirst bool) map[string]string
- type APIInfo
Constants ¶
View Source
const ( DEVICE_INFO_WEB = "WEB" TRADE_TYPE_APP = "APP" TRADE_TYPE_NATIVE = "NATIVE" TRADE_TYPE_JSAPI = "JSAPI" URL_UNIFIEDORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder" URL_ORDERQUERY = "https://api.mch.weixin.qq.com/pay/orderquery" URL_REFUND = "https://api.mch.weixin.qq.com/secapi/pay/refund" URL_REFUNDQUERY = "https://api.mch.weixin.qq.com/pay/refundquery" RETURN_CODE_SUCCESS = "SUCCESS" RETURN_CODE_FAIL = "FAIL" RESULT_CODE_SUCCESS = "SUCCESS" RESULT_CODE_FAIL = "FAIL" )
Variables ¶
This section is empty.
Functions ¶
func MustGetTlsConfiguration ¶
func MustLoadCertificates ¶
func MustLoadCertificates() (tls.Certificate, *x509.CertPool)
Types ¶
Click to show internal directories.
Click to hide internal directories.