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