private void Form1_Load(object sender, EventArgs e) { this.Text = "Ipp320Demo"; ipp320Manager = new Ipp320Manager(portName, url1, url2, timeOut, true); //ipp320Manager = new Ipp320Manager(portName, url1, url2, timeOut, false); //ipp320Manager = new Ipp320Manager(portName, urlPrePRD, urlPrePRD, timeOut, true); ipp320Manager.StartPCLService(); }
private void Form1_Load(object sender, EventArgs e) { this.Text = "Ipp320Demo"; ipp320Manager = new Ipp320Manager(Ipp320Manager.NetpayHostType.SANDBOX, user, password, storeId, portName, false); //ipp320Manager.StartPCLService(); // log file oldOut = Console.Out; try { ostrm = new FileStream(FILENAME, FileMode.Append, FileAccess.Write); writer = new StreamWriter(ostrm); } catch (Exception ex) { Console.WriteLine("Cannot open Redirect.txt for writing"); Console.WriteLine(ex.Message); return; } Console.SetOut(writer); ipp320Manager.useTLS1_2 = false; Console.WriteLine("Use TLS1.2 " + ipp320Manager.useTLS1_2); }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { ipp320Manager.StopPCLService(); ipp320Manager = null; }