protected void btnOK_Click(object sender, EventArgs e) { //公钥 string itrus001cer = HttpContext.Current.Server.MapPath("cert/itrus001.cer"); //私钥 string itrus001pfx = HttpContext.Current.Server.MapPath("cert/itrus001.pfx"); //地址 string url = "http://testapi.reapal.com/fast/same/debit/portal"; //商户Key值 string user_key = "g0be2385657fa355af68b74e9913a1320af82gb7ae5f580g79bffd04a402ba8f"; //请求参数 SortedDictionary <string, string> dic = new SortedDictionary <string, string>(); dic.Add("merchant_id", this.merchant_id.Text); dic.Add("card_no", this.card_no.Text); dic.Add("owner", this.owner.Text); dic.Add("cert_type", "01"); //证件类型 01 身份证 dic.Add("cert_no", this.cert_no.Text); dic.Add("phone", this.phone.Text); dic.Add("order_no", this.order_no.Text); dic.Add("transtime", DateTime.Now.ToString("yyyyMMddHHmmss")); dic.Add("currency", "156"); //币种 156人民币 dic.Add("total_fee", Convert.ToString(Math.Ceiling(Convert.ToDouble(this.total_fee.Text) * 100))); //金额转换为分 dic.Add("title", "yyyyy"); dic.Add("body", "yyyy"); dic.Add("member_id", this.member_id.Text); dic.Add("terminal_type", "mobile"); dic.Add("terminal_info", "dddsfffddd"); dic.Add("member_ip", "192.168.2.1"); dic.Add("seller_email", "*****@*****.**"); //执行提交请求,得到返回结果 this.result.Text = ReapalSubmit.Post(dic, this.merchant_id.Text, user_key, url, itrus001cer, itrus001pfx); }
protected void btnOK_Click(object sender, EventArgs e) { //公钥 string itrus001cer = HttpContext.Current.Server.MapPath("cert/itrus001.cer"); //私钥 string itrus001pfx = HttpContext.Current.Server.MapPath("cert/itrus001.pfx"); //地址 string url = "http://testapi.reapal.com/fast/search"; //商户Key值 string user_key = "g0be2385657fa355af68b74e9913a1320af82gb7ae5f580g79bffd04a402ba8f"; //请求参数 SortedDictionary <string, string> dic = new SortedDictionary <string, string>(); dic.Add("merchant_id", this.merchant_id.Text); //商户ID dic.Add("order_no", this.order_no.Text); //执行提交请求,得到返回结果 this.result.Text = ReapalSubmit.Post(dic, this.merchant_id.Text, user_key, url, itrus001cer, itrus001pfx); }
protected void btnOK_Click(object sender, EventArgs e) { //公钥 string itrus001cer = HttpContext.Current.Server.MapPath("cert/itrus001.cer"); //私钥 string itrus001pfx = HttpContext.Current.Server.MapPath("cert/itrus001.pfx"); //地址 string url = "http://testapi.reapal.com/fast/bindcard/portal"; //商户Key值 string user_key = "g0be2385657fa355af68b74e9913a1320af82gb7ae5f580g79bffd04a402ba8f"; //组装请求参数 SortedDictionary <string, string> dic = new SortedDictionary <string, string>(); dic.Add("merchant_id", this.merchant_id.Text); dic.Add("member_id", this.member_id.Text); dic.Add("bind_id", this.bind_id.Text); dic.Add("total_fee", Convert.ToString(Math.Ceiling(Convert.ToDouble(this.total_fee.Text) * 100))); //金额转换为分 //执行提交请求,得到返回结果 this.result.Text = ReapalSubmit.Post(dic, this.merchant_id.Text, user_key, url, itrus001cer, itrus001pfx); }
protected void btnOK_Click(object sender, EventArgs e) { //公钥 string itrus001cer = HttpContext.Current.Server.MapPath("cert/itrus001.cer"); //私钥 string itrus001pfx = HttpContext.Current.Server.MapPath("cert/itrus001.pfx"); //商户Key值 string user_key = "g0be2385657fa355af68b74e9913a1320af82gb7ae5f580g79bffd04a402ba8f"; string url = "http://testapi.reapal.com/fast/refund"; //组装请求参数 SortedDictionary <string, string> dic = new SortedDictionary <string, string>(); dic.Add("merchant_id", this.merchant_id.Text); dic.Add("order_no", "16" + DateTime.Now.ToString("yyyyMMddHHmmss")); dic.Add("orig_order_no", this.orig_order_no.Text); dic.Add("version", this.version.Text); dic.Add("note", this.note.Text); dic.Add("amount", Convert.ToString(Math.Ceiling(Convert.ToDouble(this.amount.Text) * 100))); //执行提交请求,得到返回结果 this.result.Text = ReapalSubmit.Post(dic, this.merchant_id.Text, user_key, url, itrus001cer, itrus001pfx); }