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"); }
public Transaction() { pagSeguroResult = new PagSeguroResult(); }