Exemplo n.º 1
0
 public ChinabankPaymentProcessor(ChinabankPaymentSettings chinabankPayPaymentSettings,
                                  StoreInformationSettings storeInformationSettings,
                                  ISettingService settingService, IWebHelper webHelper)
 {
     this._chinabankPayPaymentSettings = chinabankPayPaymentSettings;
     this._storeInformationSettings    = storeInformationSettings;
     this._settingService = settingService;
     this._webHelper      = webHelper;
 }
 public ChinabankPaymentProcessor(ChinabankPaymentSettings chinabankPayPaymentSettings,
     StoreInformationSettings storeInformationSettings,
     ISettingService settingService, IWebHelper webHelper)
 {
     this._chinabankPayPaymentSettings = chinabankPayPaymentSettings;
     this._storeInformationSettings = storeInformationSettings;
     this._settingService = settingService;
     this._webHelper = webHelper;
 }
Exemplo n.º 3
0
        public override void Install()
        {
            //settings
            var settings = new ChinabankPaymentSettings()
            {
                Vmid          = "",
                Key           = "",
                AdditionalFee = 0,
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.RedirectionTip", "You will be redirected to Chinabank site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.Vmid", "Vmid");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.Vmid.Hint", "Enter vmid.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.Key", "Key");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.Key.Hint", "Enter key.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.AdditionalFee.Hint", "Enter additional fee to charge your customers.");

            base.Install();
        }
        public override void Install()
        {
            //settings
            var settings = new ChinabankPaymentSettings()
            {
                Vmid = "",
                Key = "",
                AdditionalFee = 0,
            };
            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.RedirectionTip", "You will be redirected to Chinabank site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.Vmid", "Vmid");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.Vmid.Hint", "Enter vmid.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.Key", "Key");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.Key.Hint", "Enter key.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Chinabank.AdditionalFee.Hint", "Enter additional fee to charge your customers.");

            base.Install();
        }