Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool PerformC(Control cntrl, Rectangle rect, string strName, string userDetails, string iDetails, string tCntrlName, ref string txnID, bool isConfirmReq, bool isBConfirmReq, bool isP, int SlotID, UpdateTStatus updtStatus, string fir)
- {
- if (IRComm.byte_0 == null)
- {
- updtStatus.BeginInvoke(53, "Connect Not Working", tCntrlName, null, null);
- return false;
- }
- Connect connect = (Connect)Activator.CreateInstance(Assembly.Load(IRComm.byte_0).GetType("IRConnect.IR"));
- connect.getRandomJsonWebKey();
- bool result = false;
- string text = "";
- this.control_0 = cntrl;
- this.rectangle_0 = rect;
- this.bool_11 = isConfirmReq;
- string[] array = new string[1];
- string[] array2 = iDetails.Split(new string[]
- {
- "||"
- }, StringSplitOptions.None);
- string text2 = "";
- string text3 = "";
- string text4 = "";
- bool flag = false;
- string text5 = "";
- string string_ = "";
- string string_2 = "";
- double num = 0.0;
- bool flag2 = false;
- new List<Class6>();
- string[] array3 = txnID.Split(new string[]
- {
- "-.-"
- }, StringSplitOptions.RemoveEmptyEntries);
- txnID = "";
- if (array3 != null && array3.Length != 0)
- {
- text = array3[0];
- }
- if (string.IsNullOrEmpty(text))
- {
- text = "1";
- }
- if (!string.IsNullOrEmpty(fir) && SlotID > 2)
- {
- try
- {
- string[] array4 = fir.Split(new string[]
- {
- "||"
- }, StringSplitOptions.None);
- this.webProxy_0 = new WebProxy(array4[0].Trim(), int.Parse(array4[1].Trim()));
- this.webProxy_0.BypassProxyOnLocal = true;
- this.webProxy_0.Credentials = new NetworkCredential(array4[2].Trim(), array4[3].Trim());
- text5 = text5 + " Pxy:" + array4[0];
- this.method_36("Proxy Details: " + fir);
- goto IL_1F3;
- }
- catch (Exception ex)
- {
- this.method_37("Creating Proxy", ex.Message);
- MessageBox.Show("Error Occured while Setting IP, Please try in another slot.", "Proxy", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "IP Issue, Try Another slot!", tCntrlName, null, null);
- }
- bool result2 = false;
- return result2;
- }
- }
- this.webProxy_0 = null;
- IL_1F3:
- if (!string.IsNullOrEmpty(userDetails))
- {
- array = userDetails.Split(new string[]
- {
- "||"
- }, StringSplitOptions.None);
- if (array != null && array.Length > 2)
- {
- if (IRComm.string_14.Length < 1)
- {
- IRComm.string_14 = array[2];
- }
- int.TryParse(array[3], out IRComm.int_1);
- if (IRComm.int_1 < 2)
- {
- IRComm.int_1 = 2;
- }
- IRComm.int_1 *= 2;
- string string_3 = array[4];
- this.method_38(string_3);
- }
- }
- this.class7_0 = new Class7();
- if (!this.class7_0.kguqomrgPO(strName))
- {
- MessageBox.Show(IRComm.smethod_5(), "Error Occured while Reading Saved Ticket! ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- return false;
- }
- if (this.class7_0.dateTime_1 < new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day))
- {
- MessageBox.Show(IRComm.smethod_5(), "Date of Journey cannot be less than Today!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "Date of Journey cannot less than Today!", tCntrlName, null, null);
- }
- return false;
- }
- this.class7_0.string_13 = array2[0];
- this.class7_0.string_14 = array2[1];
- if (array2.Length >= 3 && array2[2] != null)
- {
- if (IRComm.bool_4 && array2[2] != this.class7_0.string_8)
- {
- this.class7_0.string_8 = array2[2];
- }
- else
- {
- if (array2[2] == "PT")
- {
- this.class7_0.string_8 = "PT";
- }
- }
- }
- if (this.class7_0.string_22 == "4")
- {
- MessageBox.Show(IRComm.smethod_5(), "You have not opt for Manual Payments! Please Select any Auto Payment Mode.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "Manual Payments not Allowed!", tCntrlName, null, null);
- }
- return false;
- }
- if (DateTime.Now.Hour >= 12)
- {
- this.double_0 = 15000.0;
- }
- if (array3 != null && array3.Length >= 2)
- {
- this.class7_0.string_23 = array3[1];
- this.class7_0.string_24 = array3[2];
- }
- this.webProxy_1 = null;
- if (this.class7_0.string_13.ToUpper() == this.string_13.ToUpper())
- {
- if (this.webProxy_0 == null)
- {
- MessageBox.Show("Without proxy not allowed.");
- return false;
- }
- this.webProxy_1 = this.webProxy_0;
- }
- try
- {
- if (this.class7_0.string_23.Contains("ICICI") && !this.class7_0.string_23.ToUpper().Contains("DEBIT") && !this.class7_0.string_23.ToUpper().Contains("_CC"))
- {
- if (this.class7_0.string_24.Split(new string[]
- {
- "||"
- }, StringSplitOptions.RemoveEmptyEntries).Length > 4)
- {
- text5 += " :ICIA: ";
- }
- else
- {
- string text6 = Interaction.InputBox("Enter OTP Form ICICI Bank i-Safe Andriod APP. (If no i-Safe, Enter 12345 to receive OTP on Mobile)", "ICICI OTP", "", cntrl.PointToScreen(rect.Location).X, cntrl.PointToScreen(rect.Location).Y).Trim();
- if (text6.Length < 5)
- {
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "Valid OTP Required!", tCntrlName, null, null);
- }
- bool result2 = false;
- return result2;
- }
- Class7 expr_56C = this.class7_0;
- expr_56C.string_24 = expr_56C.string_24 + "||" + text6;
- }
- }
- else
- {
- if (this.class7_0.string_23.Contains("_PTM_"))
- {
- MessageBox.Show("PayTM Gateway not yet started!", "PayTM", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "PayTM Gateway not yet started!", tCntrlName, null, null);
- }
- bool result2 = false;
- return result2;
- }
- }
- if (array3 != null && array3.Length > 3)
- {
- double num2 = this.double_0;
- double.TryParse(array3[3], out this.double_0);
- if (this.double_0 < 5000.0)
- {
- this.double_0 = num2;
- }
- if (array3.Length > 4)
- {
- bool.TryParse(array3[4], out flag);
- }
- if (array3.Length > 5)
- {
- num = Conversion.Val(array3[5].Trim());
- if (num <= 0.0)
- {
- num = 0.0;
- }
- if (array3[5].Trim().Length > 1)
- {
- if (num > 0.0)
- {
- this.method_36("PTFare:" + num);
- }
- else
- {
- MessageBox.Show("Unable to set Fare limit.", "Fare Limit", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
- }
- }
- }
- }
- }
- catch
- {
- }
- string text7 = string.Concat(new object[]
- {
- "\r\n\r\nTrainNo: ",
- this.class7_0.string_2,
- " Form: ",
- this.class7_0.string_0,
- " To: ",
- this.class7_0.string_1,
- "\r\n\r\nNo. of Passengers: ",
- this.class7_0.list_0.Count,
- " Name of First Pax: ",
- this.class7_0.list_0[0].string_0
- });
- text2 = string.Concat(new string[]
- {
- "TrainNo: ",
- this.class7_0.string_2,
- " Form: ",
- this.class7_0.string_0,
- " To: ",
- this.class7_0.string_1
- });
- text3 = "Pax: " + this.class7_0.list_0[0].string_0 + ((this.class7_0.list_0.Count <= 1) ? "" : (" and (" + (this.class7_0.list_0.Count - 1) + ") Others"));
- this.updateTStatus_0 = updtStatus;
- this.string_7 = tCntrlName;
- if (this.class7_0.lvpqYvqKqi())
- {
- this.bool_13 = true;
- }
- if (this.class7_0.bool_0)
- {
- this.int_3 = 7;
- this.int_4 = 8;
- }
- else
- {
- if (this.bool_13)
- {
- this.int_3 = 10;
- this.int_4 = 11;
- }
- }
- if (this.class7_0.string_3.ToUpper() == this.class7_0.string_1.ToUpper())
- {
- MessageBox.Show(IRComm.smethod_5(), "Boarding station can not be same as To Station!");
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "Invalid Boarding Station", tCntrlName, null, null);
- }
- return false;
- }
- object obj = IRComm.object_4;
- lock (obj)
- {
- if (IRComm.list_2.Contains(this.class7_0.string_13))
- {
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "Another Ticket is already active using this IRCTC ID.", tCntrlName, null, null);
- }
- this.method_36("Login Already Active ID = " + this.class7_0.string_13);
- bool result2 = false;
- return result2;
- }
- IRComm.list_2.Add(this.class7_0.string_13);
- }
- obj = IRComm.object_5;
- lock (obj)
- {
- if (IRComm.dictionary_1.ContainsKey(text))
- {
- IRComm.dictionary_1[text] = IRComm.dictionary_1[text] + 1;
- this.int_5 = IRComm.dictionary_1[text];
- }
- else
- {
- IRComm.dictionary_1.Add(text, 1);
- Interlocked.Increment(ref IRComm.int_2);
- this.int_5 = 1;
- }
- }
- if (this.class7_0.string_8.ToUpper() == "CK")
- {
- this.class7_0.string_8 = "TQ";
- }
- try
- {
- if (IRComm.int_2 <= IRComm.int_1)
- {
- this.ConnectionGroupID = this.ClassID;
- this.method_36(string.Concat(new object[]
- {
- "Ticket Started isPair=",
- isP,
- " PairID=",
- text,
- " ActivePair=",
- IRComm.dictionary_1[text],
- " isCntrlPressed:",
- flag
- }));
- bool flag4 = false;
- if ((this.class7_0.string_8 == "CK" || this.class7_0.string_8 == "PT" || this.class7_0.string_8 == "TQ") && this.class7_0.dateTime_1 > DateTime.Now)
- {
- flag4 = true;
- }
- int num3 = 0;
- if (DateTime.Now.Hour == this.int_3 && updtStatus != null)
- {
- updtStatus.BeginInvoke(1, "Waiting till " + this.int_3 + ":47 AM", tCntrlName, null, null);
- }
- if (this.class7_0.bool_0 | flag4)
- {
- num3 = (int)new TimeSpan(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, this.int_3, 47, 0, 0).Ticks - DateTime.Now.Ticks).TotalMilliseconds;
- }
- if ((flag4 || this.class7_0.bool_0) && num3 > 0)
- {
- Application.DoEvents();
- Thread.Sleep(num3);
- }
- if (DateTime.Now.Hour == this.int_3 && DateTime.Now.Minute >= 58)
- {
- flag = false;
- }
- if (DateTime.Now.Hour == 7 && DateTime.Now.Minute >= 45 && this.class7_0.bool_0)
- {
- flag = false;
- }
- if ((this.class7_0.bool_0 | flag4) && ((DateTime.Now.Hour == this.int_4 && DateTime.Now.Minute < 10) || (DateTime.Now.Hour == this.int_3 && DateTime.Now.Minute > 45)))
- {
- this.class7_0.bool_6 = true;
- }
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(1, "Start Login...", tCntrlName, null, null);
- }
- int num4 = 0;
- flag = false;
- if (num < 0.0)
- {
- num = 0.0;
- }
- bool flag5 = false;
- lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv = new lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv();
- this.webProxy_2 = null;
- this.string_2 = null;
- this.string_3 = "";
- this.string_4 = "";
- this.string_5 = "";
- this.cookieContainer_0 = null;
- this.webException_0 = null;
- this.method_43();
- this.bool_6 = isP;
- this.bool_14 = false;
- this.int_6 = 0;
- this.bool_8 = true;
- this.class7_0.bool_7 = true;
- string text8 = "";
- string text9 = this.method_0(15, "0123456789");
- string text10 = this.method_0(20, "0123456789");
- string text11 = this.method_0(16, "abcdefghijklmnopqrstuvwxyz0123456789");
- object randomJsonWebKey = connect.getRandomJsonWebKey();
- object arg = null;
- text8 = connect.getHash(text9, text10, text11);
- string arg2 = "";
- string text12 = "";
- string text13 = "";
- string text14 = "";
- string text15 = "";
- string text16 = "";
- string value = "";
- string text17 = "";
- string text18 = "";
- while (true)
- {
- num4++;
- this.method_36("Hitting Loading Home Page" + num4.ToString());
- updtStatus.BeginInvoke(1, "Connecting IRCTC", tCntrlName, null, null);
- this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/appVersion/ANDROID/2.1.9";
- DateTime arg_20F2_0 = DateTime.Now;
- if (flag5)
- {
- if (IRComm.queue_0.Count > 0)
- {
- goto IL_2CE7;
- }
- }
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "", text8, text13, text14, text12, ref arg2))
- {
- break;
- }
- this.method_36("Hitting home out= " + this.string_1);
- if (IRComm.<>o__18.<>p__1 == null)
- {
- IRComm.<>o__18.<>p__1 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_E8C_0 = IRComm.<>o__18.<>p__1.Target;
- CallSite arg_E8C_1 = IRComm.<>o__18.<>p__1;
- if (IRComm.<>o__18.<>p__0 == null)
- {
- IRComm.<>o__18.<>p__0 = CallSite<Func<CallSite, Connect, object, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "getBase64EncodePublicKey", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
- }));
- }
- string str = arg_E8C_0(arg_E8C_1, IRComm.<>o__18.<>p__0.Target(IRComm.<>o__18.<>p__0, connect, randomJsonWebKey));
- this.string_1 = "https://www.irctc.co.in/authprovider/oauth/token";
- this.string_2 = "grant_type=password&username=" + this.class7_0.string_13 + "&password=" + this.class7_0.string_14;
- text12 = Convert.ToBase64String(Encoding.UTF8.GetBytes(this.class7_0.string_13 + ":" + this.class7_0.string_14));
- new Cookie("language", "en_IN").Domain = "www.irctc.co.in";
- updtStatus.BeginInvoke(1, "Login", tCntrlName, null, null);
- this.method_36("Hitting home2 in= " + this.string_2);
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Login", text8, text13, text14, text12, ref arg2))
- {
- goto IL_212D;
- }
- this.method_36("Hitting home2 out= " + this.string_2);
- if (!this.string_4.Contains("bearer"))
- {
- goto IL_2CE7;
- }
- List<string> list = new List<string>(this.string_4.Split(new string[]
- {
- "\""
- }, StringSplitOptions.None));
- text13 = "bearer " + list[3];
- this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/agreeOnKey?" + str;
- this.string_2 = str;
- this.method_36("Hitting Login CNF in= " + this.string_2);
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Logincnf", text8, text13, text14, text12, ref arg2))
- {
- goto IL_215E;
- }
- this.method_36("Hitting Login CNF out= " + this.string_2);
- arg = connect.createEllipticCurveJsonWebKey(this.string_4);
- if (IRComm.<>o__18.<>p__3 == null)
- {
- IRComm.<>o__18.<>p__3 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_1156_0 = IRComm.<>o__18.<>p__3.Target;
- CallSite arg_1156_1 = IRComm.<>o__18.<>p__3;
- if (IRComm.<>o__18.<>p__2 == null)
- {
- IRComm.<>o__18.<>p__2 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_1156_0(arg_1156_1, IRComm.<>o__18.<>p__2.Target(IRComm.<>o__18.<>p__2, connect, randomJsonWebKey, arg, text8, arg2));
- this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/validateUser";
- this.string_2 = null;
- updtStatus.BeginInvoke(1, "Login Success", tCntrlName, null, null);
- this.method_36("Hitting Validate in= " + this.string_2);
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "validateUser", text8, text13, text14, text12, ref arg2))
- {
- goto IL_218F;
- }
- this.method_36("Hitting Validate out" + num4.ToString());
- if (!this.string_4.Contains("email"))
- {
- goto IL_2CE7;
- }
- string text19 = this.string_4.Substring(this.string_4.IndexOf("timeStamp") + 23);
- text19 = text19.Substring(0, text19.IndexOf("\""));
- this.class7_0.method_8(text19, this.class7_0.string_8, this.class7_0.string_7);
- int num5 = (int)new TimeSpan(DateTime.Parse(text19.Split(new char[]
- {
- '.'
- })[0].Trim()).Ticks - DateTime.Now.Ticks).TotalMilliseconds;
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(9999, num5.ToString(), tCntrlName, null, null);
- }
- text4 = string.Concat(new string[]
- {
- text4,
- " Log:",
- DateTime.Now.ToString("HH:mm:ss"),
- " Diff",
- num5.ToString()
- });
- string text20 = this.string_4.Substring(this.string_4.IndexOf("userId") + 9);
- long num6 = long.Parse(text20.Substring(0, text20.IndexOf("\"")));
- string text21 = this.string_4.Substring(this.string_4.IndexOf("email") + 8);
- value = text21.Substring(0, text21.IndexOf("\""));
- if (this.class7_0.string_5.Length == 1)
- {
- this.class7_0.string_5 = "0" + this.class7_0.string_5;
- }
- if (this.class7_0.string_4.Length == 1)
- {
- this.class7_0.string_4 = "0" + this.class7_0.string_4;
- }
- string text22 = this.class7_0.string_6 + this.class7_0.string_5 + this.class7_0.string_4;
- if (IRComm.<>o__18.<>p__5 == null)
- {
- IRComm.<>o__18.<>p__5 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_14D2_0 = IRComm.<>o__18.<>p__5.Target;
- CallSite arg_14D2_1 = IRComm.<>o__18.<>p__5;
- if (IRComm.<>o__18.<>p__4 == null)
- {
- IRComm.<>o__18.<>p__4 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_14D2_0(arg_14D2_1, IRComm.<>o__18.<>p__4.Target(IRComm.<>o__18.<>p__4, connect, randomJsonWebKey, arg, text8, arg2));
- this.string_1 = string.Concat(new string[]
- {
- "https://www.irctc.co.in/eticketing/protected/mapps1/tbstns/",
- this.class7_0.string_0,
- "/",
- this.class7_0.string_1.ToUpper(),
- "/",
- text22
- });
- updtStatus.BeginInvoke(1, "Getting Train List", tCntrlName, null, null);
- this.method_36("Hitting train list in= " + this.string_2);
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "validateUser", text8, text13, text14, text12, ref arg2))
- {
- goto IL_21C0;
- }
- this.method_36("Hitting train list out= " + this.string_2);
- if (!this.string_4.Contains(this.class7_0.string_2))
- {
- goto IL_2CE7;
- }
- if (this.class7_0.bool_0 | this.class7_0.string_8 == "TQ" | this.class7_0.string_8 == "PT" | this.class7_0.string_8 == "CK")
- {
- while (true)
- {
- int arg_1679_0 = DateTime.Now.Hour;
- int minute = DateTime.Now.Minute;
- int second = DateTime.Now.Second;
- long num7 = (long)(arg_1679_0 * 10000 + minute * 100 + second);
- if (num7 >= this.class7_0.long_0)
- {
- break;
- }
- Application.DoEvents();
- updtStatus.BeginInvoke(1, "Wait For Condition true", tCntrlName, null, null);
- Thread.Sleep(100);
- }
- }
- updtStatus.BeginInvoke(1, "Getting Availablity", tCntrlName, null, null);
- this.string_1 = string.Concat(new string[]
- {
- "https://www.irctc.co.in/eticketing/protected/mapps1/boardingstationenquiry/",
- this.class7_0.string_2,
- "/",
- text22,
- "/",
- this.class7_0.string_0,
- "/",
- this.class7_0.string_1.ToUpper(),
- "/",
- this.class7_0.string_7
- });
- while (true)
- {
- if (IRComm.<>o__18.<>p__7 == null)
- {
- IRComm.<>o__18.<>p__7 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_17B5_0 = IRComm.<>o__18.<>p__7.Target;
- CallSite arg_17B5_1 = IRComm.<>o__18.<>p__7;
- if (IRComm.<>o__18.<>p__6 == null)
- {
- IRComm.<>o__18.<>p__6 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_17B5_0(arg_17B5_1, IRComm.<>o__18.<>p__6.Target(IRComm.<>o__18.<>p__6, connect, randomJsonWebKey, arg, text8, arg2));
- this.method_36("Hitting board enq in= " + this.string_2);
- if (!this.method_40(this.string_1, null, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "GetTrain", text8, text13, text14, text12, ref arg2))
- {
- goto IL_21F1;
- }
- this.method_36("Hitting board enq out= " + this.string_2);
- if (!this.string_4.Contains("timeStamp"))
- {
- goto IL_2CE7;
- }
- text19 = this.string_4.Substring(this.string_4.IndexOf("timeStamp") + 23);
- text19 = text19.Substring(0, text19.IndexOf("\""));
- int num8 = int.Parse(text19.Replace(":", "").Replace(".", ""));
- if (!(this.class7_0.bool_0 | this.class7_0.string_8 == "TQ" | this.class7_0.string_8 == "PT" | this.class7_0.string_8 == "CK") || num8 > this.class7_0.int_0)
- {
- break;
- }
- if (IRComm.<>o__18.<>p__9 == null)
- {
- IRComm.<>o__18.<>p__9 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_19C8_0 = IRComm.<>o__18.<>p__9.Target;
- CallSite arg_19C8_1 = IRComm.<>o__18.<>p__9;
- if (IRComm.<>o__18.<>p__8 == null)
- {
- IRComm.<>o__18.<>p__8 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_19C8_0(arg_19C8_1, IRComm.<>o__18.<>p__8.Target(IRComm.<>o__18.<>p__8, connect, randomJsonWebKey, arg, text8, arg2));
- Thread.Sleep(500);
- updtStatus.BeginInvoke(1, "Availablity Retry..", tCntrlName, null, null);
- }
- text4 = text4 + " AvlRec:" + DateTime.Now.ToString("HH:mm:ss");
- this.class7_0.dateTime_0 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second, DateTime.Now.Millisecond);
- do
- {
- if (IRComm.<>o__18.<>p__11 == null)
- {
- IRComm.<>o__18.<>p__11 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_1B48_0 = IRComm.<>o__18.<>p__11.Target;
- CallSite arg_1B48_1 = IRComm.<>o__18.<>p__11;
- if (IRComm.<>o__18.<>p__10 == null)
- {
- IRComm.<>o__18.<>p__10 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_1B48_0(arg_1B48_1, IRComm.<>o__18.<>p__10.Target(IRComm.<>o__18.<>p__10, connect, randomJsonWebKey, arg, text8, arg2));
- this.string_2 = "{\"masterId\":null,\"wsUserLogin\":null,\"wsUserPassword\":null,\"wsUserTransactionPassword\":null,\"agentDeviceId\":null,\"atasOpted\":null,\"autoUpgradationSelected\":false,\"boardingStation\":null,\"clientTransactionId\":null,\"clusterFlag\":\"N\",\"clusterJourneyClass\":null,\"coachId\":null,\"cod\":\"false\",\"enquiryType\":\"3\",\"enrouteStation\":null,\"gnToCkOpted\":false,\"gstDetails\":null,\"ignoreChoiceIfWl\":true,\"infantList\":null,\"mainJourneyPnr\":null,\"mainJourneyTxnId\":null,\"mobileNumber\":null,\"moreThanOneDay\":true,\"onwardFlag\":\"N\",\"passengerList\":null,\"reservationChoice\":null,\"reservationMode\":\"WS_TA_B2C\",\"reservationUptoStation\":null,\"ssQuotaSplitCoach\":null,\"ticketChoiceLowerBerth\":null,\"ticketChoiceSameCoach\":false,\"ticketType\":null,\"travelInsuranceOpted\":null,\"viaPointStation\":null}";
- this.string_1 = string.Concat(new string[]
- {
- "https://www.irctc.co.in/eticketing/protected/mapps1/avlFareenquiry/",
- this.class7_0.string_2,
- "/",
- text22,
- "/",
- this.class7_0.string_0,
- "/",
- this.class7_0.string_1.ToUpper(),
- "/",
- this.class7_0.string_7,
- "/",
- this.class7_0.string_8,
- "/N"
- });
- updtStatus.BeginInvoke(1, "Train Selection", tCntrlName, null, null);
- this.method_36("Hitting fare enq in= " + this.string_2);
- this.string_4 = this.method_41(this.string_1, "", this.string_2, "GetTrain", this.cookieContainer_0, this.webProxy_0, false, text8, text13, text14, text12, ref arg2);
- this.method_36("Hitting fare enq out= " + this.string_2);
- }
- while (this.string_4 == "Retry" || this.string_4 == "");
- string string_4 = this.string_4;
- if (!this.string_4.Contains("baseFare"))
- {
- goto IL_2CE7;
- }
- if (IRComm.<>o__18.<>p__13 == null)
- {
- IRComm.<>o__18.<>p__13 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_1DA2_0 = IRComm.<>o__18.<>p__13.Target;
- CallSite arg_1DA2_1 = IRComm.<>o__18.<>p__13;
- if (IRComm.<>o__18.<>p__12 == null)
- {
- IRComm.<>o__18.<>p__12 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_1DA2_0(arg_1DA2_1, IRComm.<>o__18.<>p__12.Target(IRComm.<>o__18.<>p__12, connect, randomJsonWebKey, arg, text8, arg2));
- updtStatus.BeginInvoke(1, "Wait For Captcha Time", tCntrlName, null, null);
- this.string_1 = string.Concat(new string[]
- {
- "https://www.irctc.co.in/eticketing/protected/mapps1/avlFareenquiry/",
- this.class7_0.string_2,
- "/",
- text22,
- "/",
- this.class7_0.string_0,
- "/",
- this.class7_0.string_1.ToUpper(),
- "/",
- this.class7_0.string_7,
- "/",
- this.class7_0.string_8,
- "/Y"
- });
- while (DateTime.Now.Subtract(this.class7_0.dateTime_0).TotalMilliseconds < 19000.0)
- {
- Thread.Sleep(100);
- }
- text18 = connect.getClientTransactionId(num6, text9);
- this.string_2 = this.class7_0.method_7(text18, string_4);
- this.string_2 = this.string_2.Replace("},],", "}],");
- text4 = text4 + " Cap:" + DateTime.Now.ToString("HH:mm:ss");
- updtStatus.BeginInvoke(1, "Loading Captcha", tCntrlName, null, null);
- this.method_36("Hitting passenger in= " + this.string_2);
- this.string_4 = this.method_41(this.string_1, "", this.string_2, "Passenger", this.cookieContainer_0, this.webProxy_0, false, text8, text13, text14, text12, ref arg2);
- this.method_36("Hitting passenger out= " + this.string_2);
- text4 = text4 + " -" + DateTime.Now.ToString("mm:ss");
- if (this.string_4.Contains("You are permitted only 6 transaction in a month and you have exhausted them. Please use other services"))
- {
- goto IL_2222;
- }
- if (this.string_4.Contains("captchaQuestion"))
- {
- goto IL_223D;
- }
- this.method_36("Hitting passenger Retry= " + this.string_2);
- updtStatus.BeginInvoke(1, "Loading Captcha Retry", tCntrlName, null, null);
- if (IRComm.<>o__18.<>p__15 == null)
- {
- IRComm.<>o__18.<>p__15 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_2095_0 = IRComm.<>o__18.<>p__15.Target;
- CallSite arg_2095_1 = IRComm.<>o__18.<>p__15;
- if (IRComm.<>o__18.<>p__14 == null)
- {
- IRComm.<>o__18.<>p__14 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_2095_0(arg_2095_1, IRComm.<>o__18.<>p__14.Target(IRComm.<>o__18.<>p__14, connect, randomJsonWebKey, arg, text8, arg2));
- }
- this.method_36("Hitting home out Error= " + this.string_1);
- updtStatus.BeginInvoke(53, "Error in IRCTC Connect", tCntrlName, null, null);
- bool result2 = false;
- return result2;
- IL_212D:
- this.method_36("Hitting home2 out Error= " + this.string_2);
- updtStatus.BeginInvoke(53, "Invalid Login", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_215E:
- this.method_36("Hitting Login CNF out Error= " + this.string_2);
- updtStatus.BeginInvoke(53, "Login Error 1", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_218F:
- this.method_36("Hitting Validate out Error= " + this.string_2);
- updtStatus.BeginInvoke(53, "Login Error 2", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_21C0:
- this.method_36("Hitting train list out Error= " + this.string_2);
- updtStatus.BeginInvoke(53, "Find Train Error", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_21F1:
- this.method_36("Hitting board enq out error= " + this.string_2);
- updtStatus.BeginInvoke(53, "Server Error Retrying..", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_2222:
- updtStatus.BeginInvoke(53, "You are Permitted 6 Ticket in a Month", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_223D:
- string text23 = this.string_4.Substring(this.string_4.IndexOf("captchaQuestion") + 18);
- text23 = text23.Substring(0, text23.IndexOf("\""));
- Image image_ = this.method_39(text23);
- string text24 = this.string_4.Substring(this.string_4.IndexOf("baseFare") + 11);
- text24.Substring(0, text24.IndexOf("\""));
- string text25 = this.string_4.Substring(this.string_4.IndexOf("totalCollectibleAmount") + 25);
- text15 = text25.Substring(0, text25.IndexOf("\""));
- text25 = this.string_4.Substring(this.string_4.IndexOf("vailablityStatus") + 19);
- text16 = text25.Substring(0, text25.IndexOf("\""));
- lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.lblWrongCaptcha.Text = "Enter Captcha";
- while (true)
- {
- lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.text_.Text = strName;
- lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.method_1(cntrl, rect, tCntrlName, image_);
- if (lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.DialogResult != DialogResult.OK)
- {
- break;
- }
- string text26 = lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.txtImageData.Text.Trim();
- lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.Dispose();
- if (IRComm.<>o__18.<>p__17 == null)
- {
- IRComm.<>o__18.<>p__17 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_2406_0 = IRComm.<>o__18.<>p__17.Target;
- CallSite arg_2406_1 = IRComm.<>o__18.<>p__17;
- if (IRComm.<>o__18.<>p__16 == null)
- {
- IRComm.<>o__18.<>p__16 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_2406_0(arg_2406_1, IRComm.<>o__18.<>p__16.Target(IRComm.<>o__18.<>p__16, connect, randomJsonWebKey, arg, text8, arg2));
- this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/captchaverify/" + text18 + "/BOOKINGWS/" + text26;
- updtStatus.BeginInvoke(1, "Getting Fare", tCntrlName, null, null);
- this.method_36("Hitting captchaverify in= " + this.string_2);
- if (!this.method_40(this.string_1, null, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "GetTrain", text8, text13, text14, text12, ref arg2))
- {
- goto IL_2638;
- }
- this.method_36("Hitting captchaverify out= " + this.string_2);
- if (!this.string_4.Contains("captchaQuestion"))
- {
- goto IL_2669;
- }
- updtStatus.BeginInvoke(1, "Re_Validate Captcha", tCntrlName, null, null);
- if (IRComm.<>o__18.<>p__19 == null)
- {
- IRComm.<>o__18.<>p__19 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_2597_0 = IRComm.<>o__18.<>p__19.Target;
- CallSite arg_2597_1 = IRComm.<>o__18.<>p__19;
- if (IRComm.<>o__18.<>p__18 == null)
- {
- IRComm.<>o__18.<>p__18 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_2597_0(arg_2597_1, IRComm.<>o__18.<>p__18.Target(IRComm.<>o__18.<>p__18, connect, randomJsonWebKey, arg, text8, arg2));
- lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.lblWrongCaptcha.Text = "Wrong Captcha Re-Enter";
- string text27 = this.string_4.Substring(this.string_4.IndexOf("captchaQuestion") + 18);
- text27 = text27.Substring(0, text27.IndexOf("\""));
- image_ = this.method_39(text27);
- lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv = new lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv();
- }
- updtStatus.BeginInvoke(53, "Captcha Cancell", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_2638:
- this.method_36("Hitting captchaverify out error= " + this.string_2);
- updtStatus.BeginInvoke(53, "Captcha Error", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_2669:
- if (this.string_4.Contains("SUCCESS"))
- {
- text4 = text4 + " -" + DateTime.Now.ToString("mm:ss");
- updtStatus.BeginInvoke(1, "Getting Fare", tCntrlName, null, null);
- if (IRComm.<>o__18.<>p__21 == null)
- {
- IRComm.<>o__18.<>p__21 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_276A_0 = IRComm.<>o__18.<>p__21.Target;
- CallSite arg_276A_1 = IRComm.<>o__18.<>p__21;
- if (IRComm.<>o__18.<>p__20 == null)
- {
- IRComm.<>o__18.<>p__20 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_276A_0(arg_276A_1, IRComm.<>o__18.<>p__20.Target(IRComm.<>o__18.<>p__20, connect, randomJsonWebKey, arg, text8, arg2));
- this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/bookingInitPayment/" + text18 + "?insurenceApplicable=";
- this.string_2 = "{\"amount\":" + text15 + ",\"apiName\":null,\"bankId\":77,\"errorMsg\":null,\"paramList\":null,\"serverId\":null,\"timeStamp\":null,\"transationId\":0,\"txnDate\":null,\"txnStatus\":1,\"txnType\":13}";
- string_ = this.string_2;
- string_2 = this.string_1;
- text4 = text4 + " Fare:" + DateTime.Now.ToString("HH:mm:ss");
- this.method_36("Getting Fare in= " + this.string_2);
- this.string_4 = this.method_41(this.string_1, "", this.string_2, "BankSelection", this.cookieContainer_0, this.webProxy_0, false, text8, text13, text14, text12, ref arg2);
- this.method_36("Getting Fare out= " + this.string_2);
- if (!this.string_4.Contains("ORDER_ID"))
- {
- updtStatus.BeginInvoke(53, "Error In MakePayment", tCntrlName, null, null);
- result2 = false;
- return result2;
- }
- string text28 = this.string_4.Substring(this.string_4.IndexOf("MID") + 14);
- text28.Substring(0, text28.IndexOf("\""));
- text28 = this.string_4.Substring(this.string_4.IndexOf("ORDER_ID") + 19);
- text17 = text28.Substring(0, text28.IndexOf("\""));
- text28 = this.string_4.Substring(this.string_4.IndexOf("CUST_ID") + 18);
- text28.Substring(0, text28.IndexOf("\""));
- text28 = this.string_4.Substring(this.string_4.IndexOf("MSISDN") + 17);
- string text29 = text28.Substring(0, text28.IndexOf("\""));
- string text30 = this.class7_0.string_23.Substring(0, this.class7_0.string_23.IndexOf('_')).Trim();
- if (text30 == "INDUSIND")
- {
- text30 = "INDS";
- }
- this.string_2 = string.Concat(new string[]
- {
- "MSISDN=",
- text29,
- "&INDUSTRY_TYPE_ID=GovtUtility&CHANNEL_ID=WAP&REQUEST_TYPE=PAYTM_EXPRESS&TXN_AMOUNT=",
- text15,
- "0&AUTH_MODE=USRPWD&MID=IRCTCn13407115805523&EMAIL=",
- WebUtility.UrlEncode(value),
- "&THEME=merchant&BANK_CODE=",
- text30,
- "&PAYMENT_TYPE_ID=NB&CUST_ID=",
- text17,
- "&WEBSITE=IRCTCNWAP&ORDER_ID=",
- text17
- });
- this.string_1 = "https://www.irctc.co.in/eticketing/mbi/PaytmGen";
- this.method_36("Getting payment in= " + this.string_2);
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "pay", text8, text13, text14, text12, ref arg2))
- {
- this.method_36("Getting payment out error= " + this.string_2);
- updtStatus.BeginInvoke(53, "Error in MakePayment", tCntrlName, null, null);
- result2 = false;
- return result2;
- }
- this.method_36("Getting payment out= " + this.string_2);
- text28 = this.string_4.Substring(this.string_4.IndexOf("CHECKSUMHASH") + 15);
- text28 = text28.Substring(0, text28.IndexOf("\""));
- text28 = text28.ToString();
- string text31 = WebUtility.UrlEncode(text28).Trim();
- text31 = text31.Replace("%5Cn", "%0A");
- this.string_2 = string.Concat(new string[]
- {
- "MSISDN=",
- text29,
- "&INDUSTRY_TYPE_ID=GovtUtility&CHANNEL_ID=WAP&CHECKSUMHASH=",
- text31,
- "&REQUEST_TYPE=PAYTM_EXPRESS&TXN_AMOUNT=",
- text15,
- "0&AUTH_MODE=USRPWD&MID=IRCTCn13407115805523&EMAIL=",
- WebUtility.UrlEncode(value),
- "&THEME=merchant&payt_STATUS=1&BANK_CODE=",
- text30,
- "&PAYMENT_TYPE_ID=NB&CUST_ID=",
- text17,
- "&WEBSITE=IRCTCNWAP&ORDER_ID=",
- text17
- });
- this.string_1 = "https://secure.paytm.in/oltp-web/processTransaction?ORDER_ID=" + text17;
- text4 = text4 + " FareRet:" + DateTime.Now.ToString("HH:mm:ss");
- this.method_36("Getting process payment in= " + this.string_2);
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Bank", text8, text13, text14, text12, ref arg2))
- {
- this.method_36("Getting process payment out error= " + this.string_2);
- updtStatus.BeginInvoke(53, "Error in MakePayment", tCntrlName, null, null);
- result2 = false;
- return result2;
- }
- this.method_36("Getting process payment out= " + this.string_2);
- text4 = text4 + " BNK:" + DateTime.Now.ToString("HH:mm:ss");
- this.class7_0.dateTime_0 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second, DateTime.Now.Millisecond);
- }
- IL_2CE7:
- bool flag6 = false;
- bool flag7 = false;
- string text32 = "";
- string text33 = text15;
- string text34 = text16;
- string text35 = "";
- bool flag8 = false;
- GnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ;
- string text40;
- string text43;
- while (true)
- {
- if (this.class7_0.string_23.Contains("_"))
- {
- flag6 = true;
- text32 = this.class7_0.string_23.Substring(0, this.class7_0.string_23.IndexOf('_')).Trim();
- flag7 = this.class7_0.string_23.ToUpper().Contains("DEBIT");
- if (!this.class7_0.string_23.ToUpper().Contains("_CC_") && !this.class7_0.string_23.ToUpper().Contains("_ICI_"))
- {
- if (!this.class7_0.string_23.ToUpper().Contains("_AXS_"))
- {
- if (this.class7_0.string_23.ToUpper().Contains("_PTM_"))
- {
- flag7 = true;
- text32 += "_PTM";
- }
- }
- else
- {
- flag7 = true;
- text32 += "_AXS";
- }
- }
- else
- {
- flag7 = true;
- text32 += "_CC";
- }
- string text36 = IRComm.ogUepsPmcb(text32, flag7);
- this.method_36("Received Bank ID : bankID = " + text36);
- if (text36.Length <= 0)
- {
- break;
- }
- }
- this.method_36("Checking Bank ID Existence");
- text7 = "\r\n\r\nFare: " + text15 + text7;
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(999, text15 + "||" + text16, tCntrlName, null, null);
- }
- if (num > 0.0)
- {
- this.method_36(string.Concat(new object[]
- {
- "PT Fare:",
- num,
- " Fare:",
- text33
- }));
- double num9 = Conversion.Val(text33.Trim());
- if (num9 > 0.0)
- {
- if (num9 > num)
- {
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "Fare is higher then set limit", tCntrlName, null, null);
- }
- this.method_36("PT Fare higher");
- isConfirmReq = true;
- flag2 = true;
- }
- }
- else
- {
- isConfirmReq = true;
- }
- }
- if (this.class7_0.bool_3 && text34.ToUpper().Contains("WL"))
- {
- frmWL expr_2E00 = new frmWL();
- expr_2E00.text_.Text = strName;
- expr_2E00.method_1(cntrl, rect, text34);
- DialogResult dialogResult = expr_2E00.DialogResult;
- expr_2E00.Dispose();
- if (dialogResult == DialogResult.Cancel)
- {
- goto IL_411C;
- }
- }
- bool flag9 = false;
- obj = IRComm.object_6;
- lock (obj)
- {
- if (IRComm.list_3.Contains(strName))
- {
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(1, "Another Ticket already Proceed.", tCntrlName, null, null);
- }
- flag9 = false;
- }
- else
- {
- IRComm.list_3.Add(strName);
- flag9 = true;
- }
- }
- if (!flag9 && !flag8)
- {
- this.method_36("Another Ticket already Procced. Name = " + strName);
- gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ = new GnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ();
- gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.string_1 = this.class7_0.string_23;
- gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.bool_0 = true;
- gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.string_6 = "Rs." + text33 + " - " + text34;
- gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.method_0(cntrl, rect);
- if (gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.DialogResult != DialogResult.OK)
- {
- goto IL_4124;
- }
- this.method_36("User Accepted Proceed choice");
- if (gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.string_1 != this.class7_0.string_23)
- {
- this.class7_0.string_24 = gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.string_2;
- this.class7_0.string_23 = gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.string_1;
- gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.Dispose();
- this.method_36("New Bank details set, re-hitting " + this.class7_0.string_23);
- flag8 = true;
- continue;
- }
- }
- string text37 = text5;
- text5 = string.Concat(new string[]
- {
- text37,
- " PmtRet:",
- DateTime.Now.ToString("mm:ss"),
- "-",
- text32
- });
- string text38 = "";
- bool flag10 = false;
- Stopwatch stopwatch = new Stopwatch();
- if (!flag6)
- {
- goto IL_43E2;
- }
- if (isConfirmReq)
- {
- GnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ expr_2FCC = new GnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ();
- expr_2FCC.bool_1 = true;
- expr_2FCC.bool_4 = flag2;
- expr_2FCC.string_3 = text2;
- expr_2FCC.string_4 = text3;
- expr_2FCC.string_5 = "Bank: " + this.class7_0.string_23;
- expr_2FCC.string_6 = "Rs." + text33 + " - " + text34;
- expr_2FCC.string_7 = "Fare Limit: Rs." + num + "/-";
- expr_2FCC.method_0(cntrl, rect);
- DialogResult dialogResult2 = expr_2FCC.DialogResult;
- expr_2FCC.Dispose();
- if (dialogResult2 != DialogResult.OK)
- {
- goto IL_43B8;
- }
- }
- obj = IRComm.object_8;
- lock (obj)
- {
- if (IRComm.list_5.Contains(strName))
- {
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(101, "PNR Booked in another Pair", tCntrlName, null, null);
- }
- result2 = false;
- return result2;
- }
- }
- text5 = text5 + " BNK:" + DateTime.Now.ToString("mm:ss");
- this.webProxy_2 = null;
- if (this.class7_0.string_13.ToUpper() == this.string_13.ToUpper())
- {
- this.webProxy_2 = this.webProxy_0;
- }
- stopwatch.Start();
- if (flag7)
- {
- goto IL_43B8;
- }
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(1, "Processing " + text32 + " Net-Banking for Payment! ", tCntrlName, null, null);
- }
- string text39 = text32.ToUpper().Trim();
- uint num10 = <PrivateImplementationDetails>.ComputeStringHash(text39);
- if (num10 <= 2471879920u)
- {
- if (num10 <= 1145574292u)
- {
- if (num10 != 711141627u)
- {
- if (num10 != 1005593931u)
- {
- if (num10 == 1145574292u)
- {
- if (text39 == "UNION")
- {
- flag10 = this.method_84(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, updtStatus, tCntrlName);
- }
- }
- }
- else
- {
- if (text39 == "SBI")
- {
- CookieContainer cookieContainer = null;
- if (!(flag10 = this.method_58(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, ref cookieContainer)) && cookieContainer != null)
- {
- ThreadPool.QueueUserWorkItem(new WaitCallback(this.method_57), cookieContainer);
- }
- }
- }
- }
- else
- {
- if (text39 == "FREECHARGE")
- {
- flag10 = this.method_80(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, updtStatus);
- }
- }
- }
- else
- {
- if (num10 != 1882355188u)
- {
- if (num10 != 1934763940u)
- {
- if (num10 == 2471879920u)
- {
- if (text39 == "YES")
- {
- flag10 = this.method_78(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38);
- }
- }
- }
- else
- {
- if (text39 == "ICICI")
- {
- flag10 = this.method_66(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, this.class7_0.string_23);
- }
- }
- }
- else
- {
- if (text39 == "AXIS")
- {
- flag10 = this.method_51(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38);
- }
- }
- }
- }
- else
- {
- if (num10 <= 3521493751u)
- {
- if (num10 != 2970694650u)
- {
- if (num10 != 3504019421u)
- {
- if (num10 == 3521493751u)
- {
- if (text39 == "SBINEPAL")
- {
- flag10 = this.method_97(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, updtStatus, tCntrlName);
- }
- }
- }
- else
- {
- if (text39 == "IDBI")
- {
- flag10 = this.method_68(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38);
- }
- }
- }
- else
- {
- if (text39 == "HDFC")
- {
- flag10 = this.method_62(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38);
- }
- }
- }
- else
- {
- if (num10 <= 3957863495u)
- {
- if (num10 != 3581112554u)
- {
- if (num10 == 3957863495u)
- {
- if (text39 == "VIJAYA")
- {
- flag10 = this.method_67(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, this.class7_0.string_23);
- }
- }
- }
- else
- {
- if (text39 == "MOBIKWIK")
- {
- flag10 = this.method_79(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, updtStatus);
- }
- }
- }
- else
- {
- if (num10 != 4021309901u)
- {
- if (num10 == 4249340199u)
- {
- if (text39 == "INDUSIND")
- {
- flag10 = this.method_72(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38);
- }
- }
- }
- else
- {
- if (text39 == "CORP")
- {
- flag10 = this.method_85(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, updtStatus, tCntrlName);
- }
- }
- }
- }
- }
- if (flag10)
- {
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(1, "Payment Successful! ", tCntrlName, null, null);
- }
- this.string_3 = text38;
- text5 = text5 + " BNK-Ret:" + DateTime.Now.ToString("mm:ss");
- stopwatch.Stop();
- text40 = " BNK-Ret:" + DateTime.Now.ToString("mm:ss");
- this.class7_0.SypKtefpLh(false, "Payment Success", text33, "", this.ClassID);
- string text41 = "";
- string a = this.class7_0.string_23.Substring(0, this.class7_0.string_23.IndexOf('_')).Trim();
- updtStatus.BeginInvoke(1, "Final Setup", tCntrlName, null, null);
- if (a == "HDFC")
- {
- this.string_2 = IRComm.GetBankRedirectInp(text35, ref text41, true);
- }
- if (a == "SBI")
- {
- this.string_2 = this.method_6(text35, "name='encdata' id='encdata", 50, "' /");
- this.string_1 = "https://secure.paytm.in/oltp/HANDLER_WEB_RESP/SBINB/3DSRESP";
- this.string_2 = "encdata=" + WebUtility.UrlEncode(this.string_2);
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Bank", text8, text13, text14, text12, ref arg2))
- {
- goto IL_4155;
- }
- this.string_2 = IRComm.GetBankRedirectInp(this.string_4, ref text41, false);
- this.string_3 = this.string_1;
- }
- if (a == "INDUSIND")
- {
- this.string_2 = this.method_6(text35, "location.href = ", 17, "'");
- this.string_1 = this.string_2;
- if (!this.method_40(this.string_1, null, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Bank", text8, text13, text14, text12, ref arg2))
- {
- goto IL_4170;
- }
- this.string_2 = IRComm.GetBankRedirectInp(this.string_4, ref text41, false);
- this.string_3 = this.string_1;
- }
- this.string_1 = "https://www.irctc.co.in/eticketing/mbi/PaytmVerify";
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Bank", text8, text13, text14, text12, ref arg2))
- {
- goto IL_418B;
- }
- if (IRComm.<>o__18.<>p__23 == null)
- {
- IRComm.<>o__18.<>p__23 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_3869_0 = IRComm.<>o__18.<>p__23.Target;
- CallSite arg_3869_1 = IRComm.<>o__18.<>p__23;
- if (IRComm.<>o__18.<>p__22 == null)
- {
- IRComm.<>o__18.<>p__22 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_3869_0(arg_3869_1, IRComm.<>o__18.<>p__22.Target(IRComm.<>o__18.<>p__22, connect, randomJsonWebKey, arg, text8, arg2));
- text = this.method_6(this.string_4, "BANKNAME", 11, "\"");
- string text42 = this.method_6(this.string_4, "BANKTXNID", 12, "\"");
- string text26 = this.method_6(this.string_4, "TXNAMOUNT", 12, "\"");
- text2 = this.method_6(this.string_4, "TXNDATE", 10, "\"");
- text3 = this.method_6(this.string_4, "0\",\"TXNID", 12, "\"");
- this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/verifyPayment/" + text18;
- this.string_2 = string.Concat(new string[]
- {
- "{\"amount\":",
- text26,
- ",\"bankId\":77,\"errorMsg\":null,\"paramList\":[{\"key\":\"BANKNAME\",\"value\":\"",
- text,
- "\"},{\"key\":\"BANKTXNID\",\"value\":\"",
- text42,
- "\"},{\"key\":\"CURRENCY\",\"value\":\"INR\"},{\"key\":\"GATEWAYNAME\",\"value\":\"",
- text,
- "\"},{\"key\":\"IS_CHECKSUM_VALID\",\"value\":\"Y\"},{\"key\":\"MID\",\"value\":\"IRCTCn13407115805523\"},{\"key\":\"ORDERID\",\"value\":\"",
- text17,
- "\"},{\"key\":\"PAYMENTMODE\",\"value\":\"NB\"},{\"key\":\"RESPCODE\",\"value\":\"01\"},{\"key\":\"RESPMSG\",\"value\":\"Txn Successful.\"},{\"key\":\"STATUS\",\"value\":\"TXN_SUCCESS\"},{\"key\":\"TXNAMOUNT\",\"value\":\"",
- text26,
- "\"},{\"key\":\"TXNDATE\",\"value\":\"",
- text2,
- "\"},{\"key\":\"TXNID\",\"value\":\"",
- text3,
- "\"}],\"serverId\":null,\"timeStamp\":null,\"transationId\":0,\"txnDate\":null,\"txnStatus\":1,\"txnType\":13}"
- });
- while (DateTime.Now.Subtract(this.class7_0.dateTime_0).TotalMilliseconds < 10000.0)
- {
- Thread.Sleep(50);
- }
- updtStatus.BeginInvoke(1, "Try To Genrate PNR", tCntrlName, null, null);
- Console.WriteLine(this.string_2);
- this.string_2 = this.string_2.ToString();
- text43 = " IR-Hit" + DateTime.Now.ToString("HH:mm:ss");
- this.string_4 = this.method_41(this.string_1, "", this.string_2, "Final", this.cookieContainer_0, this.webProxy_0, false, text8, text13, text14, text12, ref arg2);
- if (this.string_4.Contains("pnrNumber"))
- {
- goto IL_41A6;
- }
- }
- stopwatch.Stop();
- this.method_36(text32 + " NB Failed : strErr = " + text38);
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(1, text38, tCntrlName, null, null);
- }
- updtStatus.BeginInvoke(1, "Rety Payment", tCntrlName, null, null);
- if (IRComm.<>o__18.<>p__25 == null)
- {
- IRComm.<>o__18.<>p__25 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
- }
- Func<CallSite, object, string> arg_3B52_0 = IRComm.<>o__18.<>p__25.Target;
- CallSite arg_3B52_1 = IRComm.<>o__18.<>p__25;
- if (IRComm.<>o__18.<>p__24 == null)
- {
- IRComm.<>o__18.<>p__24 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
- }));
- }
- text14 = arg_3B52_0(arg_3B52_1, IRComm.<>o__18.<>p__24.Target(IRComm.<>o__18.<>p__24, connect, randomJsonWebKey, arg, text8, arg2));
- this.method_36("Getting Fare in= " + this.string_2);
- this.string_4 = this.method_41(string_2, "", string_, "BankSelection", this.cookieContainer_0, this.webProxy_0, false, text8, text13, text14, text12, ref arg2);
- this.method_36("Getting Fare out= " + this.string_2);
- if (!this.string_4.Contains("ORDER_ID"))
- {
- goto IL_433B;
- }
- string text44 = this.string_4.Substring(this.string_4.IndexOf("MID") + 14);
- text44.Substring(0, text44.IndexOf("\""));
- text44 = this.string_4.Substring(this.string_4.IndexOf("ORDER_ID") + 19);
- text17 = text44.Substring(0, text44.IndexOf("\""));
- text44 = this.string_4.Substring(this.string_4.IndexOf("CUST_ID") + 18);
- text44.Substring(0, text44.IndexOf("\""));
- text44 = this.string_4.Substring(this.string_4.IndexOf("MSISDN") + 17);
- string text29 = text44.Substring(0, text44.IndexOf("\""));
- string text45 = this.class7_0.string_23.Substring(0, this.class7_0.string_23.IndexOf('_')).Trim();
- if (text45 == "INDUSIND")
- {
- text45 = "INDS";
- }
- this.string_2 = string.Concat(new string[]
- {
- "MSISDN=",
- text29,
- "&INDUSTRY_TYPE_ID=GovtUtility&CHANNEL_ID=WAP&REQUEST_TYPE=PAYTM_EXPRESS&TXN_AMOUNT=",
- text15,
- "0&AUTH_MODE=USRPWD&MID=IRCTCn13407115805523&EMAIL=",
- WebUtility.UrlEncode(value),
- "&THEME=merchant&BANK_CODE=",
- text45,
- "&PAYMENT_TYPE_ID=NB&CUST_ID=",
- text17,
- "&WEBSITE=IRCTCNWAP&ORDER_ID=",
- text17
- });
- this.string_1 = "https://www.irctc.co.in/eticketing/mbi/PaytmGen";
- this.method_36("Getting payment in= " + this.string_2);
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "pay", text8, text13, text14, text12, ref arg2))
- {
- goto IL_4356;
- }
- this.method_36("Getting payment out= " + this.string_2);
- text44 = this.string_4.Substring(this.string_4.IndexOf("CHECKSUMHASH") + 15);
- text44 = text44.Substring(0, text44.IndexOf("\""));
- text44 = text44.ToString();
- string text31 = WebUtility.UrlEncode(text44).Trim();
- text31 = text31.Replace("%5Cn", "%0A");
- this.string_2 = string.Concat(new string[]
- {
- "MSISDN=",
- text29,
- "&INDUSTRY_TYPE_ID=GovtUtility&CHANNEL_ID=WAP&CHECKSUMHASH=",
- text31,
- "&REQUEST_TYPE=PAYTM_EXPRESS&TXN_AMOUNT=",
- text15,
- "0&AUTH_MODE=USRPWD&MID=IRCTCn13407115805523&EMAIL=",
- WebUtility.UrlEncode(value),
- "&THEME=merchant&payt_STATUS=1&BANK_CODE=",
- text45,
- "&PAYMENT_TYPE_ID=NB&CUST_ID=",
- text17,
- "&WEBSITE=IRCTCNWAP&ORDER_ID=",
- text17
- });
- this.string_1 = "https://secure.paytm.in/oltp-web/processTransaction?ORDER_ID=" + text17;
- this.method_36("Getting process payment in= " + this.string_2);
- if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Bank", text8, text13, text14, text12, ref arg2))
- {
- goto IL_4387;
- }
- this.method_36("Getting process payment out= " + this.string_2);
- this.class7_0.dateTime_0 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second, DateTime.Now.Millisecond);
- }
- this.method_36("Bank ID Not Found, Returning.");
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "Technical Issue while Making Payment.", tCntrlName, null, null);
- }
- result2 = false;
- return result2;
- IL_411C:
- result2 = false;
- return result2;
- IL_4124:
- this.method_36("User Cancelled Proceed choice");
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(101, "Another Ticket already Proceed.! ", tCntrlName, null, null);
- }
- gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.Dispose();
- result2 = false;
- return result2;
- IL_4155:
- updtStatus.BeginInvoke(53, "Final Error", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_4170:
- updtStatus.BeginInvoke(53, "Final Error", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_418B:
- updtStatus.BeginInvoke(53, "Final Error", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_41A6:
- string text46 = string.Concat(new string[]
- {
- this.class7_0.string_8,
- " ",
- text4,
- text40,
- text43,
- " -",
- DateTime.Now.ToString("mm:ss")
- });
- text = this.string_4.Substring(this.string_4.IndexOf("pnrNumber") + 12);
- text = text.Substring(0, text.IndexOf("\""));
- string string_5 = text;
- text = text + " - " + DateTime.Now.ToString("HH:mm:ss");
- this.method_36("PNR Booking PNR : " + text);
- txnID = string.Concat(new string[]
- {
- text,
- " - ",
- text32,
- flag7 ? "_Debit" : "_NB",
- " - ",
- this.class7_0.string_2,
- " - ",
- (this.double_0 / 1000.0).ToString(),
- " - ",
- text46,
- " - ",
- "IRCTC_CONNECT"
- });
- updtStatus.BeginInvoke(5, "PNR - " + text + " - " + DateTime.Now.ToString("HH:mm:ss"), tCntrlName, null, null);
- this.class7_0.SypKtefpLh(true, "Payment Success", text33, string_5, this.ClassID);
- result2 = true;
- return result2;
- IL_433B:
- updtStatus.BeginInvoke(53, "Error In MakePayment", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_4356:
- this.method_36("Getting payment out error= " + this.string_2);
- updtStatus.BeginInvoke(53, "Error in MakePayment", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_4387:
- this.method_36("Getting process payment out error= " + this.string_2);
- updtStatus.BeginInvoke(53, "Error in MakePayment", tCntrlName, null, null);
- result2 = false;
- return result2;
- IL_43B8:
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "User Select to Stop Payment! ", tCntrlName, null, null);
- }
- this.method_36("User Select to Stop Payment!");
- result2 = false;
- return result2;
- IL_43E2:
- result2 = false;
- return result2;
- }
- }
- catch (Exception ex2)
- {
- if (updtStatus != null)
- {
- updtStatus.BeginInvoke(53, "Send Log, Unexpected Error Occured! ", tCntrlName, null, null);
- }
- this.method_37("PerformB:OuterCatch", ex2.Message);
- }
- finally
- {
- if (this.cookieContainer_0 != null)
- {
- ThreadPool.QueueUserWorkItem(new WaitCallback(this.method_12), false);
- }
- try
- {
- ServicePointManager.FindServicePoint(new Uri("https://www.irctc.co.in")).CloseConnectionGroup(this.ConnectionGroupID);
- if (this.class7_0 != null && this.bool_19)
- {
- string text47 = this.class7_0.string_23.Substring(0, this.class7_0.string_23.IndexOf('_')).Trim();
- bool bool_ = this.class7_0.string_23.ToUpper().Contains("DEBIT");
- if (this.class7_0.string_23.ToUpper().Contains("_CC"))
- {
- text47 += "_CC";
- bool_ = true;
- }
- ServicePointManager.FindServicePoint(new Uri(this.method_22(text47, bool_))).CloseConnectionGroup(this.ConnectionGroupID);
- }
- }
- catch
- {
- }
- obj = IRComm.object_4;
- lock (obj)
- {
- if (IRComm.list_2.Contains(this.class7_0.string_13))
- {
- IRComm.list_2.Remove(this.class7_0.string_13);
- }
- }
- bool flag11 = false;
- obj = IRComm.object_5;
- lock (obj)
- {
- if (IRComm.dictionary_1.ContainsKey(text))
- {
- int num11 = IRComm.dictionary_1[text] - 1;
- if (num11 > 0)
- {
- IRComm.dictionary_1[text] = num11;
- }
- else
- {
- Interlocked.Decrement(ref IRComm.int_2);
- IRComm.dictionary_1.Remove(text);
- flag11 = true;
- }
- }
- }
- if (flag11)
- {
- obj = IRComm.object_6;
- lock (obj)
- {
- IRComm.list_3.Remove(strName);
- }
- obj = IRComm.object_9;
- lock (obj)
- {
- if (IRComm.list_6.Contains(strName))
- {
- IRComm.list_6.Remove(strName);
- }
- }
- if (IRComm.list_2.Count <= 0)
- {
- obj = IRComm.object_8;
- lock (obj)
- {
- IRComm.list_5.Clear();
- }
- }
- }
- if (IRComm.waitCallback_0 == null)
- {
- IRComm.waitCallback_0 = new WaitCallback(IRComm.smethod_24);
- }
- ThreadPool.QueueUserWorkItem(IRComm.waitCallback_0);
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement