Пример #1
0
        /// <summary>
        /// 创建待支付订单
        /// </summary>
        private string CreatePreOrder(string machinCode, string soft = null)
        {
            if (machinCode == null || machinCode.Equals(""))
            {
                return(url);
            }

            if (soft == null)
            {
                soft = "";
            }
            string payUrl = host + "Pages/Pay.aspx";
            string param  = QrPaySystem.Pages.Pay.PayParams(machinCode, soft, "5.00", null, "支付宝用户id接口");
            string urlP   = payUrl + "?" + "TYPE=PreOrder&" + param;

            string Id = ScTool.getWebData(urlP);   // 创建订单

            Id = ScTool.getNodeData(Id, "Result"); // Result(100)Result

            return(Id);
        }