Beispiel #1
0
// 提交被扫支付.
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)
}
Beispiel #2
0
// 撤销支付.
//  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)
}
Beispiel #3
0
// 企业付款.
//  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)
}
Beispiel #4
0
// 红包发放.
//  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)
}
Beispiel #5
0
// 关闭订单.
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)
}
Beispiel #6
0
// 退款查询.
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)
}
Beispiel #7
0
// 发放代金券.
//  请求需要双向证书
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)
}
Beispiel #8
0
// 红包查询接口.
//  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)
}
Beispiel #9
0
// 查询订单.
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)
}
Beispiel #10
0
// 转换短链接.
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)
}
Beispiel #11
0
// 统一下单.
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)
}
Beispiel #12
0
// 查询代金券信息.
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)
}
Beispiel #13
0
// 查询代金券批次信息.
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)
}
Beispiel #14
0
// 测速上报.
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)
}
Beispiel #15
0
// 授权码查询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)
}