Exemplo n.º 1
0
        public PayeezyGateway(string apiKey, string apiSecret, string token, PayeezyEnvironment environment = PayeezyEnvironment.Certification) {
            ApiKey = apiKey;
            ApiSecret = apiSecret;
            Token = token;
            CurrencyCode = new RegionInfo("US").ISOCurrencySymbol;

            switch (environment) {
                case PayeezyEnvironment.Production:
                    BaseUrl = LiveBaseUrl;
                    break;

                default:
                    BaseUrl = SandboxBaseUrl;
                    break;
            }
        }
Exemplo n.º 2
0
        public PayeezyGateway(string apiKey, string apiSecret, string token, PayeezyEnvironment environment = PayeezyEnvironment.Certification)
        {
            ApiKey       = apiKey;
            ApiSecret    = apiSecret;
            Token        = token;
            CurrencyCode = new RegionInfo("US").ISOCurrencySymbol;

            switch (environment)
            {
            case PayeezyEnvironment.Production:
                BaseUrl = LiveBaseUrl;
                break;

            default:
                BaseUrl = SandboxBaseUrl;
                break;
            }
        }