private void DoValidate() { System.Collections.Specialized.NameValueCollection parameters = new System.Collections.Specialized.NameValueCollection { this.Page.Request.Form, this.Page.Request.QueryString }; this.Gateway = this.Page.Request.QueryString["HIGW"]; this.Notify = PaymentNotify.CreateInstance(this.Gateway, parameters); if (this.isBackRequest) { this.Notify.ReturnUrl = Globals.FullPath(Globals.GetSiteUrls().UrlData.FormatUrl("DistributorInpourReturn_url", new object[] { this.Gateway })); PaymentNotify expr_AC = this.Notify; expr_AC.ReturnUrl = expr_AC.ReturnUrl + "?" + this.Page.Request.Url.Query; } this.InpourId = this.Notify.GetOrderId(); this.Amount = this.Notify.GetOrderAmount(); this.InpourRequest = SubsiteStoreHelper.GetInpouRequest(this.InpourId); if (this.InpourRequest == null) { this.ResponseStatus(true, "success"); } else { this.Amount = this.InpourRequest.InpourBlance; this.paymode = SubsiteStoreHelper.GetPaymentMode(this.InpourRequest.PaymentId); if (this.paymode == null) { this.ResponseStatus(true, "gatewaynotfound"); } else { this.Notify.Finished += new System.EventHandler <FinishedEventArgs>(this.Notify_Finished); this.Notify.NotifyVerifyFaild += new System.EventHandler(this.Notify_NotifyVerifyFaild); this.Notify.Payment += new System.EventHandler(this.Notify_Payment); this.Notify.VerifyNotify(30000, HiCryptographer.Decrypt(this.paymode.Settings)); } } }
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)); } } }