package
1.5.104
Repository: https://github.com/go-pay/gopay.git
Documentation: pkg.go.dev

# Functions

获取平台RSA证书列表(获取后自行保存使用,如需定期刷新功能,自行实现) 注意事项 如果自行实现验证平台签名逻辑的话,需要注意以下事项: - 程序实现定期更新平台证书的逻辑,不要硬编码验证应答消息签名的平台证书 - 定期调用该接口,间隔时间小于12小时 - 加密请求消息中的敏感信息时,使用最新的平台证书(即:证书启用时间较晚的证书) 文档说明:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/wechatpay5_1.shtml.
获取平台RSA证书列表.
获取国密平台证书.
NewClientV3 初始化微信客户端 V3 mchid:商户ID 或者服务商模式的 sp_mchid serialNo:商户API证书的证书序列号 apiV3Key:APIv3Key,商户平台获取 privateKey:商户API证书下载后,私钥 apiclient_key.pem 读取后的字符串内容.
解密 领券事件 回调中的加密信息.
解密 合单支付 回调中的加密信息.
解密 代金券核销事件 回调中的加密信息.
解密 发票卡券作废/发票开具成功/发票冲红成功/发票插入用户卡包成功 回调中的加密信息.
解密 用户发票抬头填写完成 回调中的加密信息.
解密 统一数据 到 []byte.
解密 统一数据 到指针结构体对象.
解密 停车入场状态变更 回调中的加密信息.
解密 停车支付结果 回调中的加密信息.
解密 服务商支付 回调中的加密信息.
解密 服务商退款 回调中的加密信息.
解密 普通支付 回调中的加密信息.
解密 分账动账 回调中的加密信息.
解密 普通退款 回调中的加密信息.
解密 支付分确认订单 回调中的加密信息.
解密 支付分开启/解除授权服务 回调中的加密信息.
敏感参数信息解密 privateKeyContent:私钥 apiclient_key.pem 读取后的字符串内容.
解密 商家转账批次回调通知 回调中的加密信息.
解密 服务商子商户处置记录 回调中的加密信息.
敏感参数信息加密 wxPublicKeyContent:微信平台证书内容.
解析微信回调请求的参数到 V3NotifyReq 结构体.
Deprecated 暂时不推荐此方法,请使用 wechat.V3ParseNotify() 解析微信回调请求的参数到 gopay.BodyMap.
Deprecated 推荐使用 wechat.V3VerifySignByPK().
推荐直接开启自动同步验签功能 微信V3 版本验签(同步) wxPublicKey:微信平台证书公钥内容,通过 client.WxPublicKeyMap() 获取,然后根据 signInfo.HeaderSerial 获取相应的公钥.

# Constants

对公银行账户.
经营者个人银行卡.
受理模式.
系统汇款失败,该账户无法发起提现,请检查修改.
系统汇款验证中,商户可发起提现尝试.
系统成功汇款,该账户可正常发起提现.
审核中.
已作废.
编辑中.
已完成.
已驳回.
开通权限中.
待账户验证.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
已关闭.
未支付.
支付失败(其他原因,如银行返回失败).
用户支付中(付款码支付).
转入退款.
已撤销(付款码支付).
支付成功.
订单号类型,1-微信订单号,2-商户订单号,3-微信侧回跳到商户前端时用于查单的单据查询id(查询支付分订单中会使用).

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
特约商户/二级商户修改结算账号 Rsp.
No description provided by the author
特约商户进件申请单查询 Rsp.
No description provided by the author
特约商户查询结算账号 Rsp.
No description provided by the author
特约商户进件提交申请单 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
获取对私银行卡号开户银行 Rsp.
No description provided by the author
查询支行列表 Rsp.
No description provided by the author
查询城市列表 Rsp.
查询支持对公业务的银行列表 Rsp.
No description provided by the author
查询支持个人业务的银行列表 Rsp.
No description provided by the author
查询省份列表 Rsp.
No description provided by the author
交易、资金账单 Rsp.
No description provided by the author
关联订单信息 Rsp.
No description provided by the author
No description provided by the author
查询商家券详情 Rsp.
No description provided by the author
修改批次预算 Rsp.
No description provided by the author
查询商家券事件通知地址 Rsp.
No description provided by the author
设置商家券事件通知地址 Rsp.
No description provided by the author
上传预存code Rsp.
创建商家券 Rsp.
No description provided by the author
使券失效 Rsp.
No description provided by the author
取消关联订单信息 Rsp.
No description provided by the author
申请退券 Rsp.
No description provided by the author
发放消费卡 Rsp.
No description provided by the author
查询营销补差付款单详情 Rsp.
营销补差付款 Rsp.
No description provided by the author
查询用户单张券详情 Rsp.
No description provided by the author
核销用户券 Rsp.
核销用户券 Rsp.
No description provided by the author
商圈积分授权查询 Rsp.
No description provided by the author
商圈会员待积分状态查询 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
ClientV3 微信支付 V3.
关闭订单 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
合单查询订单 Rsp.
No description provided by the author
查询投诉单详情 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
查询投诉单列表 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
查询投诉单详情 Rsp.
No description provided by the author
创建、查询、更新投诉通知回调地址 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
预受理领卡请求 Rsp.
No description provided by the author
查询先享卡订单 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
二级商户进件 Rsp.
No description provided by the author
查询申请状态 Rsp.
No description provided by the author
查询特约商户账户实时余额 Rsp.
二级商户资金账单 Rsp.
No description provided by the author
添加分账接收方 Rsp.
删除分账接收方 Rsp.
No description provided by the author
完结分账 Rsp.
No description provided by the author
查询分账结果 Rsp.
No description provided by the author
No description provided by the author
查询分账回退结果 Rsp.
请求分账回退 Rsp.
请求分账 Rsp.
No description provided by the author
查询订单剩余待分金额 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
垫付退款回补 Rsp.
No description provided by the author
No description provided by the author
申请退款 Rsp.
申请退款 Rsp.
No description provided by the author
No description provided by the author
取消补差 Rsp.
No description provided by the author
请求补差回退 Rsp.
请求补差 Rsp.
No description provided by the author
电商平台预约提现 Rsp.
No description provided by the author
电商平台查询预约提现状态 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
创建代金券批次 Rsp.
查询批次详情 Rsp.
No description provided by the author
发放代金券批次 Rsp.
No description provided by the author
条件查询批次列表 Rsp.
No description provided by the author
暂停代金券批次 Rsp.
No description provided by the author
重启代金券批次 Rsp.
No description provided by the author
激活代金券批次 Rsp.
No description provided by the author
No description provided by the author
查询消息通知地址 Rsp.
设置消息通知地址 Rsp.
No description provided by the author
查询批次详情 Rsp.
No description provided by the author
No description provided by the author
查询代金券可用单品 Rsp.
No description provided by the author
查询代金券可用商户 Rsp.
下载批次退款明细 Rsp.
下载批次核销明细 Rsp.
No description provided by the author
根据商户号查用户的券 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
点金计划管理 Rsp.
No description provided by the author
H5 支付Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
商户上传(营销专用)反馈图片 Rsp.
No description provided by the author
No description provided by the author
商户上传反馈图片 Rsp.
No description provided by the author
查询账户实时余额 Rsp.
No description provided by the author
商户银行来账查询 Rsp.
No description provided by the author
No description provided by the author
Native 支付Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
特约商户银行来账查询 Rsp.
No description provided by the author
No description provided by the author
服务商查询订单 Rsp.
No description provided by the author
No description provided by the author
建立合作关系 Rsp.
No description provided by the author
查询合作关系列表 Rsp.
No description provided by the author
终止合作关系 Rsp.
No description provided by the author
微信明细单号查询明细单(服务商) Rsp.
No description provided by the author
商家明细单号查询明细单(服务商) Rsp.
No description provided by the author
商家批次单号查询批次单(服务商) Rsp.
No description provided by the author
微信批次单号查询批次单(服务商) Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Prepay 支付Rsp.
No description provided by the author
添加分账接收方 Rsp.
No description provided by the author
申请分账账单 Rsp.
No description provided by the author
删除分账接收方 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
查询分账结果 Rsp.
请求分账 Rsp.
No description provided by the author
解冻剩余资金 Rsp.
No description provided by the author
No description provided by the author
请求分账回退 Rsp.
请求分账回退 Rsp.
No description provided by the author
查询剩余待分金额 Rsp.
分账接收方.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
查询订单 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
退款查询 Rsp.
退款 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
创单结单合并 Rsp.
No description provided by the author
取消支付分订单 Rsp.
No description provided by the author
完结支付分订单 Rsp.
No description provided by the author
创建支付分订单 Rsp.
No description provided by the author
修改订单金额 Rsp.
ScoreOrderPartnerCancelRsp 服务商模式取消支付分订单 Rsp.
ScoreOrderPartnerCompleteRsp 服务商模式完结支付分订单 Rsp.
No description provided by the author
ScoreOrderPartnerCreateRsp 服务商模式创建支付分订单 Rsp.
No description provided by the author
ScoreOrderPartnerQueryRsp 服务商模式查询支付分订单 Rsp.
No description provided by the author
商户发起催收扣款 Rsp.
No description provided by the author
查询支付分订单 Rsp.
No description provided by the author
同步服务订单信息 Rsp.
No description provided by the author
No description provided by the author
查询用户授权记录(openid) Rsp.
No description provided by the author
查询用户授权记录(授权协议号) Rsp.
创单结单合并 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
服务人员查询 Rsp.
No description provided by the author
服务人员注册 Rsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
查询转账明细电子回单受理结果 Rsp.
转账明细电子回单受理 Rsp.
微信明细单号查询明细单 Rsp.
No description provided by the author
商家明细单号查询明细单 Rsp.
No description provided by the author
商家批次单号查询批次单 Rsp.
No description provided by the author
微信批次单号查询批次单 Rsp.
No description provided by the author
No description provided by the author
查询转账电子回单 Rsp.
转账电子回单申请受理 Rsp.
发起批量转账 Rsp.
No description provided by the author
No description provided by the author
查询结算账户修改申请状态 Rsp.
领券事件通知 解密结果.
合单支付通知 解密结果.
投诉通知 解密结果.
代金券核销事件通知 解密结果.
发票卡券作废/发票开具成功/发票冲红成功/发票插入用户卡包成功通知 解密结果.
用户发票抬头填写完成通知 解密结果.
停车入场状态变更通知 解密结果.
停车支付结果通知 解密结果.
服务商支付通知 解密结果.
服务商退款通知 解密结果.
No description provided by the author
分账动账通知 解密结果.
退款通知 解密结果.
支付分 开启/解除授权服通知 解密结果.
支付分 确认订单回调通知 解密结果.
商家转账批次回调通知 解密结果.
服务商子商户处置记录回调通知.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
创建、查询、更新投诉通知回调地址 Rsp.
No description provided by the author
特约商户余额提现 Rsp.
No description provided by the author
查询特约商户提现状态 Rsp.

# Type aliases

微信证书类型:RSA、SM2.
微信支付分订单类型:1-微信订单号,2-商户订单号,3-微信侧回跳到商户前端时用于查单的单据查询id(查询支付分订单中会使用).