static string PostPaymob() { string url = "http://www.paymob.cn/getorderinfo/index"; //统一分配的商户代码spid string spid = ""; string sppwd = ""; //商户订单号 string sporder = DateTime.Now.ToString("yyyyMMddHHmmss"); string price = "1"; string spzdy = DateTime.Now.ToString("yyyyMMddHHmmss"); string uid = "13579981"; string ip = ""; string paytype = "2"; //流量业务:默认1为充流量 //Q币业务:充Q币为2;会员为11;蓝钻为6 红钻为7 黄钻为8 绿钻为12 DNF黑钻为14 QQ炫舞紫钻为13 粉钻 15 QQ飞车紫钻 16 QQ音速紫钻 17 话费业务:默认3为充话费 //英雄联盟点卡业务:默认4为充英雄联盟点卡 话费慢充业务:18 流量红包:20 string smallcategories = "2"; //流量区域 0 国内流量;1 省网流量 其他业务为0 string flowratetype = "0"; string timestamp = DateTime.Now.ToString("yyyyMMddHHmmss"); string sign = spid + sporder + price + uid + ip + paytype + flowratetype + sppwd; //城市区号 string areaCode = ""; //游戏点卡区号 string in_acc_type = ""; sign = Utils.ToMD5String(sign, "utf-8").ToLower(); StringBuilder sb = new StringBuilder(); sb.Append("spid=").Append(spid); sb.Append("&sporder=").Append(sporder); sb.Append("&price=").Append(price); sb.Append("&spzdy=").Append(spzdy); sb.Append("&uid=").Append(uid); sb.Append("&ip=").Append(ip); sb.Append("&paytype=").Append(paytype); sb.Append("&smallcategories=").Append(smallcategories); sb.Append("×tamp=").Append(timestamp); sb.Append("&sign=").Append(sign); sb.Append("&flowratetype=").Append(flowratetype); sb.Append("&areaCode=").Append(areaCode); sb.Append("&in_acc_type=").Append(in_acc_type); string result = Utils.GetPostUrlString(url, sb.ToString()); return result; }