本文整理汇总了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)
}