-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConfig.cs
36 lines (31 loc) · 1.6 KB
/
Config.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Text;
namespace JetDev.Cielo
{
public static class Config
{
public delegate void LogAction(string transaction, string request, string response);
private static event LogAction OnLogAction;
private static Entidades.Ambiente ambiente = Entidades.Ambiente.TesteCieloIntegrado;
private static string URLteste = "https://qasecommerce.cielo.com.br/servicos/ecommwsec.do";
private static string URLproducao = "https://ecommerce.cielo.com.br/servicos/ecommwsec.do";
private static string URLproducaoCieloCheckout = "https://cieloecommerce.cielo.com.br/api/public/v1/orders";
public static Entidades.Ambiente Ambiente { get { return ambiente; } set { ambiente = value; } }
public static string URLTeste { get { return URLteste; } set { URLteste = value; } }
public static string URLProducao { get { return URLproducao; } set { URLproducao = value; } }
public static string URLProducaoCieloCheckout { get { return URLproducaoCieloCheckout; } set { URLproducaoCieloCheckout = value; } }
public static string NumeroEstabelecimento { get; set; }
public static string ChaveEstabelecimento { get; set; }
public static void SetLogAction(LogAction action)
{
if (OnLogAction == null)
OnLogAction += action;
}
internal static void CallLogAction(string transaction, string request, string response)
{
if (OnLogAction != null)
OnLogAction(transaction, request, response);
}
}
}