|
@ -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) |
|
|
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 添加分账接受方
|
|
|
// ProfitSharingAddReceiver 添加分账接受方
|
|
|
func (c WxPay) ProfitSharingAddReceiver(params Receiver) (map[string]string, error) { |
|
|
func (c WxPay) ProfitSharingAddReceiver(params Receiver) (map[string]string, error) { |
|
|
m := c.publicParams() |
|
|
m := c.publicParams() |
|
|