예제 #1
0
        /// <summary>
        /// 订单查询接口
        /// </summary>
        /// <param name="request">请求信息</param>
        /// <param name="config">配置</param>
        /// <returns>结果</returns>
        public static OrderQueryResult OrderQuery(OrderQueryRequest request, Config config)
        {
            var requestStr = TenpayUtil.GetOrderqueryRequestXml(request, config);
            var response   = HttpHelp.PostXmlToUrl(Config.OrderQueryUrl, requestStr);
            var result     = TenpayUtil.ConvertToOrderqueryResult(response);

            return(result);
        }