Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // k
- private bool ae(string A_1, string A_2, ref string A_3, ref string A_4)
- {
- int result = 0;
- A_3 = "";
- A_4 = "";
- this.kc("Enter ProcessIDBIPayTM. DETAILS: " + A_2);
- byte[] array;
- if (!A_1.Contains("paytm"))
- {
- array = new byte[169];
- array[161] = 217;
- string arg_6C_1 = "Some thing went wrong with Credit Card Payment";
- array[160] = 75;
- A_4 = arg_6C_1;
- array[100] = 60;
- string text = "\u0015ÊÖD\u008bq\u0001ÆR0\u0089\u001dG\n´\u008ct\u000f»Í\u001cM!ÎÍÝ\u009b \0\0\0ÖÅ\u001eªKéÆeÑÉp\u008eDÞ\u0019WÖ\"\n*UL\u001c×";
- for (int i = 0; i < text.Length; i++)
- {
- array[i + 101] = (byte)text[i];
- }
- array[162] = 253;
- array[99] = 72;
- array[159] = 32;
- array[163] = 45;
- string arg_E4_1 = "Html doesn't contains paytm, returning.";
- array[157] = 153;
- this.kc(arg_E4_1);
- array[156] = 198;
- bool arg_123_0 = false;
- array[158] = 222;
- array[96] = 195;
- array[97] = 17;
- array[98] = 86;
- IRComm.d = array;
- return arg_123_0;
- }
- array = new byte[363];
- array[149] = 34;
- A_3 = "";
- array[158] = 222;
- object arg_164_0 = k.bd;
- array[100] = 60;
- array[104] = 68;
- object a_ = arg_164_0;
- object obj = new string[1];
- object arg_18B_0 = obj;
- array[102] = 202;
- int arg_18B_1 = 0;
- string arg_18B_2 = "||";
- array[97] = 17;
- arg_18B_0[arg_18B_1] = arg_18B_2;
- object obj2 = A_2.Split(obj, StringSplitOptions.None);
- string text2 = "*UL\u001c×";
- for (int j = 0; j < text2.Length; j++)
- {
- array[j + 151] = (byte)text2[j];
- }
- object arg_1DB_0 = obj2[0].Trim();
- array[101] = 21;
- object obj3 = arg_1DB_0;
- string text3 = "\u008bq\u0001ÆR0\u0089\u001dG\n´\u008ct\u000f»Í\u001cM!ÎÍÝ\u009b \0\0\0ÖÅ\u001eªKéÆeÑÉp\u008eDÞ\u0019WÖ";
- for (int k = 0; k < text3.Length; k++)
- {
- array[k + 105] = (byte)text3[k];
- }
- object str = obj2[1];
- object arg_229_0 = obj2;
- array[103] = 214;
- int arg_229_1 = 2;
- array[156] = 198;
- object str2 = arg_229_0[arg_229_1];
- object obj4 = "";
- array[150] = 10;
- array[99] = 72;
- object arg_25D_0 = k.vd(A_1, ref obj4, false);
- array[157] = 153;
- object obj5 = arg_25D_0;
- array[159] = 32;
- object str3 = "";
- object obj6 = "";
- int num = 60000;
- int arg_28F_0 = 0;
- array[96] = 195;
- int num2 = arg_28F_0;
- try
- {
- while (true)
- {
- array[149] = 34;
- array[161] = 217;
- array[160] = 75;
- array[162] = 253;
- array[163] = 45;
- array[98] = 86;
- IRComm.d = array;
- num2++;
- object obj7 = new CookieContainer();
- this.kc("First Hit Inp = " + obj5);
- if (!this.md(obj4, obj5, a_, this.d, ref obj7, true, true, 60000, 60000, ref obj6, ref str3, ref this.k))
- {
- this.kc("First Hit Failed. err = " + str3);
- if (num2 >= 4)
- {
- break;
- }
- }
- else
- {
- this.kc("First Output htm = " + obj6);
- if ((!obj6.Contains("'CHECKSUMHASH'") && !obj6.Contains("Our system encountered an obstacle")) || num2 >= 5)
- {
- goto IL_386;
- }
- }
- }
- A_4 = "Paytm Gateway not working - Payment Failed";
- int result2 = 0;
- return result2 != 0;
- IL_386:
- if (!string.IsNullOrEmpty(obj6.Trim()) && obj6.Contains("Paytm Secure"))
- {
- a_ = obj4;
- object str4 = "https://secure.paytm.in/oltp-web/";
- int num3 = obj6.IndexOf("action=");
- num3 = obj6.IndexOf("\"", num3) + 1;
- int length = obj6.IndexOf("\"", num3) - num3;
- obj4 = str4 + obj6.Substring(num3, length);
- obj5 = "txnMode=NB&txn_Mode=NB&channelId=WEB&AUTH_MODE=USRPWD&bankCode=IDBI&walletAmount=0&bank=IDBI&submit-btn=Pay+now";
- this.kc("Second Hit Inp = " + obj5);
- object obj7;
- if (!this.md(obj4, obj5, a_, this.d, ref obj7, true, true, 60000, 60000, ref obj6, ref str3, ref this.k))
- {
- this.kc("First Hit Failed. err = " + str3);
- A_4 = "Paytm Gateway not working - Payment Failed";
- result2 = 0;
- return result2 != 0;
- }
- this.kc("Second Output htm = " + obj6);
- if (obj6.IndexOf("idbibank.co.in", StringComparison.CurrentCultureIgnoreCase) <= 0)
- {
- A_4 = "Error Occured while Making Payment!";
- this.kc(A_4 + ", Check HTML");
- result2 = 0;
- return result2 != 0;
- }
- obj5 = k.vd(obj6, ref obj4, false);
- object str5 = "https://inet.idbibank.co.in/corp/";
- this.kc("First Hit : Inp = " + obj5);
- if (!this.md(obj4, obj5, a_, this.d, ref obj7, true, true, num, num, ref obj6, ref str3, ref this.k))
- {
- this.kc("First Hit Failed. err = " + str3);
- A_4 = "IDBI Not Working - Payment Failed";
- result2 = 0;
- return result2 != 0;
- }
- this.kc("First Output htm = " + obj6);
- if (!string.IsNullOrEmpty(obj6.Trim()) && obj6.Contains("CustomerID"))
- {
- num3 = obj6.IndexOf("ACTION");
- num3 = obj6.IndexOf("=", num3) + 1;
- num3 = obj6.IndexOf("\"", num3) + 1;
- length = obj6.IndexOf("\"", num3) - num3;
- object str6 = obj6.Substring(num3, length);
- object str7 = "29304E87583278923487A64389764380763087426708234658764320F8764387645678023467843678657678243678934208346543763426342087364764378623487165321780324643278643287634807347867463247864326D43204376743286743290874784C3260409A876";
- num3 = obj6.IndexOf("gRandomId()");
- if (num3 > 0)
- {
- num3 = obj6.IndexOf("'", num3) + 1;
- length = obj6.IndexOf("'", num3) - num3;
- object str8 = obj6.Substring(num3, length);
- object inArray = k.be(Encoding.Default.GetBytes(str8 + str7), Encoding.Default.GetBytes(str));
- str = Convert.ToBase64String(inArray);
- obj5 = string.Concat(new string[]
- {
- "CorporateSignonCorpId=",
- obj3,
- "&CorporateSignonPassword=",
- HttpUtility.UrlEncode(str),
- "&Action.ShoppingMall.Signon=+Login+&isEncrypted=Y"
- });
- }
- else
- {
- obj5 = string.Concat(new string[]
- {
- "CorporateSignonCorpId=",
- obj3,
- "&CorporateSignonPassword=",
- HttpUtility.UrlEncode(str),
- "&Action.ShoppingMall.Signon=+Login+"
- });
- }
- a_ = obj4;
- obj4 = str5 + str6;
- this.kc("Second Hit : Inp = " + obj5);
- if (!this.md(obj4, obj5, a_, this.d, ref obj7, true, true, num, num, ref obj6, ref str3, ref this.k))
- {
- this.kc("Second Hit Failed. err = " + str3);
- A_4 = "Failed while making Payment. Payment Not Done";
- result2 = 0;
- return result2 != 0;
- }
- this.kc("Second Hit Output = " + obj6);
- if (!obj6.Contains("Payment Amount"))
- {
- if (obj6.Contains("errormsg"))
- {
- num3 = obj6.IndexOf("errormsg");
- num3 = obj6.IndexOf(">", num3) + 1;
- length = obj6.IndexOf("<", num3) - num3;
- A_4 = obj6.Substring(num3, length).Trim();
- }
- if (string.IsNullOrEmpty(A_4))
- {
- A_4 = "Failed while Login into IDBI";
- }
- this.kc("Second Hit, Not valid HTML err = " + A_4);
- result2 = 0;
- return result2 != 0;
- }
- num3 = obj6.IndexOf("ACTION");
- num3 = obj6.IndexOf("=", num3) + 1;
- num3 = obj6.IndexOf("\"", num3) + 1;
- length = obj6.IndexOf("\"", num3) - num3;
- str6 = obj6.Substring(num3, length);
- obj5 = "retrnflag=1&UserAccountsIndex=0&bills.PaymentRemarks=Booking&bills.HotPaymentFlag=Y&Action.Bills.ShoppingMall.MakePayment.Pay.x=&Action.Bills.ShoppingMall.MakePayment.Pay.y=";
- a_ = obj4;
- obj4 = str5 + str6;
- this.kc("Third Hit Inp = " + obj5);
- if (!this.md(obj4, obj5, a_, this.d, ref obj7, true, true, num, num, ref obj6, ref str3, ref this.k))
- {
- this.kc("Third Hit Failed. err = " + str3);
- A_4 = "Failed while making Payment. Payment Not Done";
- result2 = 0;
- return result2 != 0;
- }
- this.kc("Third Hit Output = " + obj6);
- if (!obj6.Contains("Enter your Transaction Password"))
- {
- A_4 = "";
- if (obj6.Contains("errormsg"))
- {
- num3 = obj6.IndexOf("errormsg");
- num3 = obj6.IndexOf(">", num3) + 1;
- length = obj6.IndexOf("<", num3) - num3;
- A_4 = obj6.Substring(num3, length).Trim();
- }
- if (string.IsNullOrEmpty(A_4))
- {
- A_4 = "Failed while Processing into IDBI";
- }
- this.kc("Third Hit Failed, Not valid HTML err = " + A_4);
- result2 = 0;
- return result2 != 0;
- }
- num3 = obj6.IndexOf("gRandomId()");
- if (num3 > 0)
- {
- num3 = obj6.IndexOf("'", num3) + 1;
- length = obj6.IndexOf("'", num3) - num3;
- object str8 = obj6.Substring(num3, length);
- object inArray = k.be(Encoding.Default.GetBytes(str8 + str7), Encoding.Default.GetBytes(str2));
- str2 = Convert.ToBase64String(inArray);
- obj5 = string.Concat(new string[]
- {
- "ValCorpTxnPwdUserName=",
- obj3,
- "&ValCorpTxnPwdTxnPwd=",
- HttpUtility.UrlEncode(str2),
- "&Action.bills.Eticketing.ShoppingMall.TxnLogin.Ok=%A0%A0%A0Pay%A0%A0%A0&isEncrypted=Y"
- });
- }
- else
- {
- obj5 = string.Concat(new string[]
- {
- "ValCorpTxnPwdUserName=",
- obj3,
- "&ValCorpTxnPwdTxnPwd=",
- HttpUtility.UrlEncode(str2),
- "&Action.bills.Eticketing.ShoppingMall.TxnLogin.Ok=%A0%A0%A0Pay%A0%A0%A0"
- });
- }
- a_ = obj4;
- obj4 = obj4.Replace("M%3D", "A%3D");
- this.kc("Fourth Hit Inp = " + obj5);
- if (!this.md(obj4, obj5, a_, this.d, ref obj7, true, true, num, num, ref obj6, ref str3, ref this.k))
- {
- this.kc("Fourth Hit Failed. err = " + str3);
- A_4 = "Failed while making Payment at IDBI. Ticket Not Booked";
- result2 = 0;
- return result2 != 0;
- }
- this.kc("Fourth Hit output = " + obj6);
- if (!obj6.Contains("Your transaction has been completed successfully"))
- {
- A_4 = "";
- if (obj6.Contains("errormsg"))
- {
- num3 = obj6.IndexOf("errormsg");
- num3 = obj6.IndexOf(">", num3) + 1;
- length = obj6.IndexOf("<", num3) - num3;
- str3 = obj6.Substring(num3, length).Trim();
- }
- if (string.IsNullOrEmpty(A_4))
- {
- A_4 = "Failed while Processing into IDBI, Ticket Not Booked";
- }
- this.kc("Fourth Hit Failed, Not valid HTML err = " + A_4);
- result2 = 0;
- return result2 != 0;
- }
- a_ = obj4;
- obj5 = k.vd(obj6, ref obj4, false);
- this.kc("Fourth Hit Inp = " + obj5);
- if (!this.md(obj4, obj5, a_, this.d, ref obj7, true, true, 60000, 60000, ref obj6, ref str3, ref this.k))
- {
- this.kc("Fourth Hit Failed. err = " + str3);
- A_4 = "Gateway Not Working - Payment Failed";
- result2 = 0;
- return result2 != 0;
- }
- this.kc("Fourth Output htm = " + obj6);
- if (obj6.IndexOf("Transaction is being processed", StringComparison.CurrentCultureIgnoreCase) <= 0)
- {
- A_4 = "Error Occured while Making Payment!";
- this.kc(A_4 + ", Check HTML");
- result2 = 0;
- return result2 != 0;
- }
- this.kc("Success ProcessIDBIPayTM");
- A_3 = obj6;
- A_4 = obj4;
- result2 = 1;
- return result2 != 0;
- }
- }
- }
- catch (Exception obj8)
- {
- this.lc("ProcessIDBIPayTM", obj8.Message);
- result = 0;
- }
- return result != 0;
- }
Add Comment
Please, Sign In to add comment