示例#1
0
        public Transaction(Dictionary <string, string> settings)
        {
            pagSeguroResult = new PagSeguroResult();

            bool.TryParse(settings.Where(b => b.Key.ToUpper() == (pagSeguro + "isSandbox").ToUpper()).Select(s => s.Value).FirstOrDefault(), out this.isSandbox);

            this.configuration = settings.Where(b => b.Key.ToUpper() == (pagSeguro + "urlXmlConfiguration").ToUpper()).Select(s => s.Value).FirstOrDefault();

            this.configuration = string.Format(this.configuration, isSandbox ? "Homologation" : "Production");
        }
示例#2
0
 public Transaction()
 {
     pagSeguroResult = new PagSeguroResult();
 }