void DoValidate() { NameValueCollection values2 = new NameValueCollection(); values2.Add(Page.Request.Form); values2.Add(Page.Request.QueryString); NameValueCollection parameters = values2; Gateway = Page.Request.QueryString["HIGW"]; Notify = PaymentNotify.CreateInstance(Gateway, parameters); if (isBackRequest) { Notify.ReturnUrl = Globals.FullPath(Globals.GetSiteUrls().UrlData.FormatUrl("DistributorInpourReturn_url", new object[] { Gateway })); Notify.ReturnUrl = Notify.ReturnUrl + "?" + Page.Request.Url.Query; } InpourId = Notify.GetOrderId(); Amount = Notify.GetOrderAmount(); InpourRequest = SubsiteStoreHelper.GetInpouRequest(InpourId); if (InpourRequest == null) { ResponseStatus(true, "success"); } else { Amount = InpourRequest.InpourBlance; paymode = SubsiteStoreHelper.GetPaymentMode(InpourRequest.PaymentId); if (paymode == null) { ResponseStatus(true, "gatewaynotfound"); } else { Notify.Finished += new EventHandler <FinishedEventArgs>(Notify_Finished); Notify.NotifyVerifyFaild += new EventHandler(Notify_NotifyVerifyFaild); Notify.Payment += new EventHandler(Notify_Payment); Notify.VerifyNotify(0x7530, Cryptographer.Decrypt(paymode.Settings)); } } }