GithubHelp home page GithubHelp logo

wxmch-api's Introduction

微信支付v3接口

电商收付通

商户进件 sub_merchant

方法名 备注
ApplymentSubmit 二级商户进件
ApplymentQueryByID 通过申请单ID查询申请状态
ApplymentQueryByOutRequestNo 通过业务申请编号查询申请状态
SettlementModify 修改结算帐号API
SettlementQuery 查询结算账户

普通支付 transaction

方法名 备注
JsApiPrepay JSAPI下单
PayResultQueryByOutRequestNo 商户订单号查询交易结果
PayResultQueryByTransactionID 微信支付订单号查询交易结果

退款

方法名 备注
RefundApply 申请退款
QueryRefundByOutRefundNo 通过商户退款单号查询退款
QueryRefundByID 通过微信支付退款单号查询退款

分账

方法名 备注
ProfitShareApply 请求分账
ProfitShareQuery 查询分账结果
ProfitReturnApply 请求分账回退
ProfitReturnQuery 查询分账回退结果
ProfitShareFinish 完结分账
ProfitShareUnSplitAmountQuery 查询订单剩余待分金额
ReceiversAdd 添加分账接受方
ReceiversDelete 删除分账接受方

企业付款

方法名 备注
BatchTransfer 直连商户批量付款到零钱

余额查询

方法名 备注
PlatformBalanceQuery 电商平台账户实时余额查询
PlatformEndDayBalanceQuery 电商平台账户日终余额查询
SubMchBalanceQuery 二级商户账户实时余额查询
SubMchEndDayBalanceQuery 二级商户账户日终余额

公共api

方法名 备注
GetCertificates 获取平台证书列表
MediaUpload 上传图片

示例

// 创建微信支付服务商客户端
client := NewMerchantApiClient("xxxx", "xxxx", "apiClientCert", "https://api.mch.weixin.qq.com", 5*time.Second, certMap, "xxx", "xxxxx")
file, _ := os.Open("image.png")
resp, err := client.MediaUpload(MediaUploadRequest{Reader: file})

wxmch-api's People

Contributors

junglegao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.