首页 > 代码库 > 微信支付退款接口
微信支付退款接口
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult); X509Certificate cer = new X509Certificate(cert, password,X509KeyStorageFlags.PersistKeySet|X509KeyStorageFlags.Exportable|X509KeyStorageFlags.MachineKeySet); HttpWebRequest webrequest = (HttpWebRequest)HttpWebRequest.Create(url); webrequest.ClientCertificates.Add(cer); webrequest.Method = "post"; webrequest.Proxy = null; Encoding encoding = Encoding.UTF8; byte[] databyte = encoding.GetBytes(xml); webrequest.ContentLength = databyte.Length; Stream stream = webrequest.GetRequestStream(); stream.Write(databyte, 0, databyte.Length); stream.Close(); string result = string.Empty; webrequest.KeepAlive = false; HttpWebResponse webreponse = (HttpWebResponse)webrequest.GetResponse(); Stream responsestream = webreponse.GetResponseStream(); using (StreamReader reader = new StreamReader(responsestream)) { result = reader.ReadToEnd(); writeLogs.writelog("退款接口返回结果:" + result); }
微信支付退款接口
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。