private void GenerateRequest(UserProfile user, string amount, Order order = null) { logger.Info("GenerateRequest Method Start" + " at " + DateTime.UtcNow); logger.Info("GenerateRequest Method user" + user.UserProfileId + " at " + DateTime.UtcNow); logger.Info("GenerateRequest Method amount" + amount + " at " + DateTime.UtcNow); RequestParams requestParams = new RequestParams(); NameValueCollection formFields = new NameValueCollection(); formFields = requestParams.GenerateResponse(user, amount, "http://www.payatoz.com/UserWallet/response?DR={DR}"); requestParams.Return_Url = "http://www.payatoz.com/UserWallet/response?DR={DR}"; Response.Clear(); Response.Write("<html><head>"); Response.Write(string.Format("</head><body onload=\"document.{0}.submit()\">", requestParams.FormName)); Response.Write(string.Format("<form name=\"{0}\" method=\"{1}\" action=\"{2}\" >", requestParams.FormName, requestParams.Method, requestParams.Url)); for (int i = 0; i < formFields.Keys.Count; i++) { Response.Write(string.Format("<input name=\"{0}\" type=\"hidden\" value=\"{1}\">", formFields.Keys[i], formFields[formFields.Keys[i]])); } Response.Write("</form>"); Response.Write("</body></html>"); Response.End(); logger.Info("GenerateRequest Method End" + " at " + DateTime.UtcNow); }