当前位置: 首页>>代码示例>>Golang>>正文


Golang mch.Proxy类代码示例

本文整理汇总了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)
}
开发者ID:AddictXQ,项目名称:wechat,代码行数:4,代码来源:client_scanned.go

示例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)
}
开发者ID:AddictXQ,项目名称:wechat,代码行数:5,代码来源:client_scanned.go

示例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)
}
开发者ID:AddictXQ,项目名称:wechat,代码行数:5,代码来源:transfers.go

示例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)
}
开发者ID:Wang,项目名称:wechat,代码行数:5,代码来源:sendredpack.go

示例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)
}
开发者ID:AddictXQ,项目名称:wechat,代码行数:4,代码来源:client_common.go

示例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)
}
开发者ID:AddictXQ,项目名称:wechat,代码行数:4,代码来源:client_common.go

示例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)
}
开发者ID:Wang,项目名称:wechat,代码行数:5,代码来源:send_coupon.go

示例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)
}
开发者ID:Wang,项目名称:wechat,代码行数:5,代码来源:gethbinfo.go

示例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)
}
开发者ID:peterSZW,项目名称:wechat,代码行数:4,代码来源:common.go

示例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)
}
开发者ID:Wang,项目名称:wechat,代码行数:4,代码来源:shorturl.go

示例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)
}
开发者ID:peterSZW,项目名称:wechat,代码行数:4,代码来源:common.go

示例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)
}
开发者ID:Wang,项目名称:wechat,代码行数:4,代码来源:query_coupon.go

示例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)
}
开发者ID:AddictXQ,项目名称:wechat,代码行数:4,代码来源:query_coupon_stock.go

示例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)
}
开发者ID:Wang,项目名称:wechat,代码行数:4,代码来源:report.go

示例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)
}
开发者ID:Wang,项目名称:wechat,代码行数:4,代码来源:authcodetoopenid.go


注:本文中的github.com/chanxuehong/wechat/mch.Proxy类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。