• paymob QB冲值接口


     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("&timestamp=").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;
            }
    

      

  • 相关阅读:
    零售数据框架
    API安全Checklist
    高级区块链工程师评定
    软件项目复杂性
    e-Commerce电商参考云架构
    面试中的学习能力判断
    SpringCloud微服务架构案例-共享服务中心
    Software Architecture and High Level Design软件架构与概要设计
    基于Istio的ServiceMesh
    a store with that domain name already exists怎么解决
  • 原文地址:https://www.cnblogs.com/duwamish/p/7301608.html
Copyright © 2020-2023  润新知