Пример #1
0
        public AmazonPayClient(AmazonPaySettings settings)
        {
            var config = new OffAmazonPaymentsServiceConfig()
            {
                ServiceURL = (settings.UseSandbox ? AmazonPayCore.UrlApiEuSandbox : AmazonPayCore.UrlApiEuProduction)
            };

            config.SetUserAgent(AmazonPayCore.AppName, AmazonPayCore.AppVersion);

            Settings = settings;
            Service  = new OffAmazonPaymentsServiceClient(AmazonPayCore.AppName, AmazonPayCore.AppVersion, settings.AccessKey, settings.SecretKey, config);
        }
Пример #2
0
        public AmazonPayClient(AmazonPaySettings settings)
        {
            string appVersion = "1.0";

            try
            {
                appVersion = EngineContext.Current.Resolve <IPluginFinder>().GetPluginDescriptorBySystemName(AmazonPayCore.SystemName).Version.ToString();
            }
            catch (Exception) { }

            var config = new OffAmazonPaymentsServiceConfig()
            {
                ServiceURL = (settings.UseSandbox ? AmazonPayCore.UrlApiEuSandbox : AmazonPayCore.UrlApiEuProduction)
            };

            config.SetUserAgent(AmazonPayCore.AppName, appVersion);

            Settings = settings;
            Service  = new OffAmazonPaymentsServiceClient(AmazonPayCore.AppName, appVersion, settings.AccessKey, settings.SecretKey, config);
        }
Пример #3
0
        public AmazonPayClient(AmazonPaySettings settings)
        {
            string appVersion = "1.0";

            try
            {
                appVersion = EngineContext.Current.Resolve<IPluginFinder>().GetPluginDescriptorBySystemName(AmazonPayCore.SystemName).Version.ToString();
            }
            catch (Exception) { }

            var config = new OffAmazonPaymentsServiceConfig()
            {
                ServiceURL = (settings.UseSandbox ? AmazonPayCore.UrlApiEuSandbox : AmazonPayCore.UrlApiEuProduction)
            };

            config.SetUserAgent(AmazonPayCore.AppName, appVersion);

            Settings = settings;
            Service = new OffAmazonPaymentsServiceClient(AmazonPayCore.AppName, appVersion, settings.AccessKey, settings.SecretKey, config);
        }
Пример #4
0
        public AmazonPayClient(AmazonPaySettings settings)
        {
            var config = new OffAmazonPaymentsServiceConfig()
            {
                ServiceURL = (settings.UseSandbox ? AmazonPayCore.UrlApiEuSandbox : AmazonPayCore.UrlApiEuProduction)
            };

            config.SetUserAgent(AmazonPayCore.AppName, AmazonPayCore.AppVersion);

            Settings = settings;
            Service = new OffAmazonPaymentsServiceClient(AmazonPayCore.AppName, AmazonPayCore.AppVersion, settings.AccessKey, settings.SecretKey, config);
        }