コード例 #1
0
ファイル: client_scanned.go プロジェクト: AddictXQ/wechat
// 提交被扫支付.
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
0
ファイル: client_scanned.go プロジェクト: AddictXQ/wechat
// 撤销支付.
//  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
0
ファイル: transfers.go プロジェクト: AddictXQ/wechat
// 企业付款.
//  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
0
ファイル: sendredpack.go プロジェクト: Wang/wechat
// 红包发放.
//  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
0
ファイル: client_common.go プロジェクト: AddictXQ/wechat
// 关闭订单.
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
0
ファイル: client_common.go プロジェクト: AddictXQ/wechat
// 退款查询.
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
0
ファイル: send_coupon.go プロジェクト: Wang/wechat
// 发放代金券.
//  请求需要双向证书
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
0
ファイル: gethbinfo.go プロジェクト: Wang/wechat
// 红包查询接口.
//  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
0
ファイル: common.go プロジェクト: peterSZW/wechat
// 查询订单.
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
0
ファイル: shorturl.go プロジェクト: Wang/wechat
// 转换短链接.
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
0
ファイル: common.go プロジェクト: peterSZW/wechat
// 统一下单.
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
0
ファイル: query_coupon.go プロジェクト: Wang/wechat
// 查询代金券信息.
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
0
ファイル: query_coupon_stock.go プロジェクト: AddictXQ/wechat
// 查询代金券批次信息.
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
0
ファイル: report.go プロジェクト: Wang/wechat
// 测速上报.
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
0
ファイル: authcodetoopenid.go プロジェクト: Wang/wechat
// 授权码查询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)
}