download

package
v1.0.0-beta.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package download 下载 相关

Package download 下载 相关

Package download 下载 相关

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchQueryComment

func BatchQueryComment(ctx *wxpay.WXPay, params map[string]string) (result []byte, err error)

拉取订单评价数据

商户可以通过该接口拉取用户在微信支付交易记录中针对你的支付记录进行的评价内容。商户可结合商户系统逻辑对该内容数据进行存储、分析、展示、客服回访以及其他使用。如商户业务对评价内容有依赖,可主动引导用户进入微信支付交易记录进行评价。

See: https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_99&index=12

POST https://api.mch.weixin.qq.com/billcommentsp/batchquerycomment

Example
package main

import (
	"fmt"

	"github.com/fastwego/wxpay"
	"github.com/fastwego/wxpay/apis/download"
)

func main() {
	var ctx *wxpay.WXPay

	params := map[string]string{
		"appid": "APPID",
		// ...
	}
	resp, err := download.BatchQueryComment(ctx, params)

	fmt.Println(resp, err)
}
Output:

func DownloadBill

func DownloadBill(ctx *wxpay.WXPay, params map[string]string) (result []byte, err error)

下载交易账单

商户可以通过该接口下载历史交易清单。比如掉单、系统错误等导致商户侧和微信侧数据不一致,通过对账单核对后可校正支付状态。

注意:

1、微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账单中,跟原支付单订单号一致;

2、微信在次日9点启动生成前一天的对账单,建议商户10点后再获取;

3、对账单中涉及金额的字段单位为“元”。

4、对账单接口只能下载三个月以内的账单。

5、对账单是以商户号纬度来生成的,如一个商户号与多个appid有绑定关系,则使用其中任何一个appid都可以请求下载对账单。对账单中的appid取自交易时候提交的appid,与请求下载对账单时使用的appid无关。

6、自2018年起入驻的商户默认是开通免充值券后的结算对账单。

See: https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_6&index=8

POST https://api.mch.weixin.qq.com/pay/downloadbill

Example
package main

import (
	"fmt"

	"github.com/fastwego/wxpay"
	"github.com/fastwego/wxpay/apis/download"
)

func main() {
	var ctx *wxpay.WXPay

	params := map[string]string{
		"appid": "APPID",
		// ...
	}
	resp, err := download.DownloadBill(ctx, params)

	fmt.Println(resp, err)
}
Output:

func DownloadFundFlow

func DownloadFundFlow(ctx *wxpay.WXPay, params map[string]string) (result []byte, err error)

下载资金账单

商户可以通过该接口下载自2017年6月1日起 的历史资金流水账单。

说明:

1、资金账单中的数据反映的是商户微信账户资金变动情况;

2、当日账单在次日上午9点开始生成,建议商户在上午10点以后获取;

3、资金账单中涉及金额的字段单位为“元”。

See: https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_18&index=9

POST https://api.mch.weixin.qq.com/pay/downloadfundflow

Example
package main

import (
	"fmt"

	"github.com/fastwego/wxpay"
	"github.com/fastwego/wxpay/apis/download"
)

func main() {
	var ctx *wxpay.WXPay

	params := map[string]string{
		"appid": "APPID",
		// ...
	}
	resp, err := download.DownloadFundFlow(ctx, params)

	fmt.Println(resp, err)
}
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL