Browse Source

init

master
public_host 3 years ago
parent
commit
88cca74283
  1. 9
      src/V2/pay.go

9
src/V2/pay.go

@ -218,6 +218,15 @@ func (c WxPay) RefundQuery(params RefundQuery) (map[string]string, error) {
return c.request("https://api.mch.weixin.qq.com/pay/refundquery", strings.NewReader(utils.MAP2XML(m)), false)
}
// ProfitSharingOrderAmountQuery 查询最大分账比例
func (c WxPay) ProfitSharingOrderAmountQuery(params Receiver) (map[string]string, error) {
m := c.publicParams()
b, _ := json.Marshal(params)
m["receiver"] = string(b)
m["sign"] = utils.SignHMACSHA256(m, c.config.Secret)
return c.request("https://api.mch.weixin.qq.com/pay/profitsharingorderamountquery", strings.NewReader(utils.MAP2XML(m)), false)
}
// ProfitSharingAddReceiver 添加分账接受方
func (c WxPay) ProfitSharingAddReceiver(params Receiver) (map[string]string, error) {
m := c.publicParams()

Loading…
Cancel
Save