public static string BCRefundStatusQuery(string channel, string refundNo)
{
Random random = new Random();
string refundStatusUrl = BCPrivateUtil.getHost() + BCConstants.version + BCConstants.refundStatusURL;
string paraString = prepareRefundStatusQueryParameters(channel, refundNo);
string url = refundStatusUrl + "?para=" + HttpUtility.UrlEncode(paraString, Encoding.UTF8);
try
{
HttpWebResponse response = BCPrivateUtil.CreateGetHttpResponse(url, BCCache.Instance.networkTimeout);
string respString = BCPrivateUtil.GetResponseString(response);
return handleRefundStatusQueryResult(respString);
}
catch (Exception e)
{
var ex = new BCException(e.Message);
throw ex;
}
}