예제 #1
0
 public SaleRequest()
 {
     Username      = ConfigurationManager.AppSettings["EPayUser"];
     Password      = ConfigurationManager.AppSettings["EPayPassword"];
     LocalDateTime = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
     TXID          = Guid.NewGuid().ToString();
     Currency      = 986;
     Type          = "SALE";
     TerminalId    = new TerminalId();
     Card          = new Card();
     Receipt       = new Receipt();
 }
예제 #2
0
 public SaleCancellation()
 {
     Username      = ConfigurationManager.AppSettings["EPayUser"];
     Password      = ConfigurationManager.AppSettings["EPayPassword"];
     LocalDateTime = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
     TXID          = Guid.NewGuid().ToString();
     Type          = "CANCEL";
     Mode          = "AUTOMATIC";
     Currency      = 986;
     TerminalId    = new TerminalId();
     Card          = new Card();
 }