예제 #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");
            var certClient = GetCertHttpClient();

            return(await PostApiAsync <WxPayRefundResp>(url, dics, null, certClient));
        }