wangchengshen

银联文件下载地址:http://202.101.25.178:8080/sim/docs/

 

public ActionResult unionTest()
        {
            Dictionary<String, String> resp = new Dictionary<String, String>();
            DateTime orderTime = DateTime.Now;
            bool validResp = UpmpConfig.UnionPay(orderTime.ToString("yyyyMMddhhmmss"), 8349, 1, out resp, out orderTime);
            if (validResp)
            {
                string tn = resp["tn"];
                string resultUrl = UpmpConfig.GetInstance().MER_FRONT_END_URL;
                resultUrl = System.Web.HttpUtility.UrlEncode(resultUrl);
                string parastr = "tn=" + tn + ",resultUrl=" + resultUrl + ",usertestmode=true";

                byte[] bytes = Encoding.Default.GetBytes(parastr);
                parastr = Convert.ToBase64String(bytes);
                parastr = System.Web.HttpUtility.UrlEncode(parastr);

                ViewBag.UnionPara = parastr;
                return View();
            }

            return View();
        }

分类:

技术点:

相关文章:

  • 2021-05-24
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
猜你喜欢
  • 2021-12-06
  • 2021-12-06
  • 2021-12-06
  • 2021-06-12
  • 2021-05-19
  • 2022-02-09
  • 2021-12-16
相关资源
相似解决方案