Ejemplo n.º 1
0
 // Token: 0x060001F4 RID: 500 RVA: 0x00012594 File Offset: 0x00010794
 public static async void smethod_0(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     if (Renewal.form_0 == null)
     {
         Dictionary <string, string> dictionary = new Dictionary <string, string>();
         dictionary["hosted_button_id"] = "Z8ZSS4MJ7XD72";
         dictionary["cmd"] = "_s-xclick";
         dictionary["on0"] = "License Key";
         dictionary["os0"] = Licenser.class156_0.Key;
         TaskAwaiter <HttpResponseMessage> taskAwaiter = new Class14(null, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", 10, false, true, null).method_3("https://www.paypal.com/cgi-bin/webscr", dictionary, false).GetAwaiter();
         if (!taskAwaiter.IsCompleted)
         {
             await taskAwaiter;
             TaskAwaiter <HttpResponseMessage> taskAwaiter2;
             taskAwaiter  = taskAwaiter2;
             taskAwaiter2 = default(TaskAwaiter <HttpResponseMessage>);
         }
         Renewal.form_0 = new Renewal(taskAwaiter.GetResult().Headers.Location.ToString());
         Renewal.form_0.Show();
         MainWindow.webView_0.QueueScriptCall("swal('PayPal Opened', 'A PayPal browser has appeared, please complete the payment.', 'success', {timer: 3000})");
     }
     else
     {
         Renewal.form_0.WindowState = FormWindowState.Normal;
         Renewal.form_0.BringToFront();
     }
 }