コード例 #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;
            }
        }
コード例 #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;
            }
        }