本文整理匯總了Golang中github.com/chanxuehong/wechat/mch.Proxy類的典型用法代碼示例。如果您正苦於以下問題:Golang Proxy類的具體用法?Golang Proxy怎麽用?Golang Proxy使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Proxy類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: MicroPay
// 提交被掃支付.
func MicroPay(proxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return proxy.PostXML("https://api.mch.weixin.qq.com/pay/micropay", req)
}
示例2: Reverse
// 撤銷支付.
// NOTE: 請求需要雙向證書.
func Reverse(proxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return proxy.PostXML("https://api.mch.weixin.qq.com/secapi/pay/reverse", req)
}
示例3: Transfers
// 企業付款.
// NOTE: 請求需要雙向證書
func Transfers(proxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return proxy.PostXML("https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers", req)
}
示例4: SendRedPack
// 紅包發放.
// NOTE: 請求需要雙向證書
func SendRedPack(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return pxy.PostXML("https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack", req)
}
示例5: CloseOrder
// 關閉訂單.
func CloseOrder(proxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return proxy.PostXML("https://api.mch.weixin.qq.com/pay/closeorder", req)
}
示例6: RefundQuery
// 退款查詢.
func RefundQuery(proxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return proxy.PostXML("https://api.mch.weixin.qq.com/pay/refundquery", req)
}
示例7: SendCoupon
// 發放代金券.
// 請求需要雙向證書
func SendCoupon(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return pxy.PostXML("https://api.mch.weixin.qq.com/mmpaymkttransfers/send_coupon", req)
}
示例8: GetRedPackInfo
// 紅包查詢接口.
// NOTE: 請求需要雙向證書
func GetRedPackInfo(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return pxy.PostXML("https://api.mch.weixin.qq.com/mmpaymkttransfers/gethbinfo", req)
}
示例9: OrderQuery
// 查詢訂單.
func OrderQuery(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return pxy.PostXML("https://api.mch.weixin.qq.com/pay/orderquery", req)
}
示例10: ShortURL
// 轉換短鏈接.
func ShortURL(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return pxy.PostXML("https://api.mch.weixin.qq.com/tools/shorturl", req)
}
示例11: UnifiedOrder
// 統一下單.
func UnifiedOrder(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return pxy.PostXML("https://api.mch.weixin.qq.com/pay/unifiedorder", req)
}
示例12: QueryCoupon
// 查詢代金券信息.
func QueryCoupon(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return pxy.PostXML("https://api.mch.weixin.qq.com/promotion/query_coupon", req)
}
示例13: QueryCouponStock
// 查詢代金券批次信息.
func QueryCouponStock(proxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return proxy.PostXML("https://api.mch.weixin.qq.com/mmpaymkttransfers/query_coupon_stock", req)
}
示例14: Report
// 測速上報.
func Report(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return pxy.PostXML("https://api.mch.weixin.qq.com/payitil/report", req)
}
示例15: AuthCodeToOpenId
// 授權碼查詢OPENID接口.
func AuthCodeToOpenId(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error) {
return pxy.PostXML("https://api.mch.weixin.qq.com/tools/authcodetoopenid", req)
}