示例#1
0
        /// <summary>
        /// 退款查询接口
        /// </summary>
        /// <param name="refundReq"></param>
        /// <returns></returns>
        public async Task <WXPayGetRefundResp> QueryRefundAsync(WXPayRefundReq refundReq)
        {
            var dics = refundReq.GetDics();
            var url  = string.Concat(m_ApiUrl, "/pay/refundquery");

            return(await PostApiAsync <WXPayGetRefundResp>(url, dics));
        }
示例#2
0
        /// <summary>
        ///  申请退款接口 【需要证书】
        /// </summary>
        /// <param name="refundReq"></param>
        /// <returns></returns>
        public async Task <WXPayRefundResp> RefundOrderAsync(WXPayRefundReq refundReq)
        {
            var dics = refundReq.GetDics();
            var url  = string.Concat(m_ApiUrl, "/secapi/pay/refund");


            return(await PostApiAsync <WXPayRefundResp>(url, dics, null, true));
        }