コード例 #1
0
        public override void Install()
        {
            var settings = new EmiPaymentSettings()
            {
                MerchantId    = "",
                Key           = "",
                MerchantParam = "",
                PayUri        = "https://payseal.icicibank.com/mpi/Ssl.jsp",
                AdditionalFee = 0,
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.RedirectionTip", "You will be redirected to ICICI site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.MerchantId", "Merchant ID");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.MerchantId.Hint", "Enter merchant ID.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.Key", "Working Key");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.Key.Hint", "Enter working key.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.MerchantParam", "Merchant Param");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.MerchantParam.Hint", "Enter merchant param.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.PayUri", "Pay URI");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.PayUri.Hint", "Enter Pay URI.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.AdditionalFee.Hint", "Enter additional fee to charge your customers.");

            base.Install();
        }
コード例 #2
0
 public EmiPaymentProcessor(EmiPaymentSettings EmiPaymentSettings,
     ISettingService settingService, ICurrencyService currencyService,
     CurrencySettings currencySettings, IWebHelper webHelper)
 {
     this._EmiPaymentSettings = EmiPaymentSettings;
     this._settingService = settingService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._webHelper = webHelper;
 }
コード例 #3
0
 public EmiPaymentProcessor(EmiPaymentSettings EmiPaymentSettings,
                            ISettingService settingService, ICurrencyService currencyService,
                            CurrencySettings currencySettings, IWebHelper webHelper)
 {
     this._EmiPaymentSettings = EmiPaymentSettings;
     this._settingService     = settingService;
     this._currencyService    = currencyService;
     this._currencySettings   = currencySettings;
     this._webHelper          = webHelper;
 }
コード例 #4
0
            public override void Install()
            {
                var settings = new EmiPaymentSettings()
                {
                    MerchantId = "",
                    Key = "",
                    MerchantParam = "",
                    PayUri = "https://payseal.icicibank.com/mpi/Ssl.jsp",
                    AdditionalFee = 0,
                };
                _settingService.SaveSetting(settings);

                //locales
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.RedirectionTip", "You will be redirected to ICICI site to complete the order.");
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.MerchantId", "Merchant ID");
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.MerchantId.Hint", "Enter merchant ID.");
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.Key", "Working Key");
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.Key.Hint", "Enter working key.");
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.MerchantParam", "Merchant Param");
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.MerchantParam.Hint", "Enter merchant param.");
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.PayUri", "Pay URI");
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.PayUri.Hint", "Enter Pay URI.");
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.AdditionalFee", "Additional fee");
                this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Emi.AdditionalFee.Hint", "Enter additional fee to charge your customers.");

                base.Install();
            }