コード例 #1
0
        public override void Install()
        {
            var settings = new ShurjoPayPaymentSettings()
            {
                Password      = "******",
                Username      = "******",
                ReturnPage    = "https://payment.shurjogatshurjo.com/",
                AdditionalFee = 0
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.RedirectionTip", "You will be redirected to shurjoPay site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.Password", "Password");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.Password.Hint", "Enter Password.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.Username", "Username");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.Username.Hint", "Enter username.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.UserPrefixe", "UserPrefixe");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.UserPrefixe.Hint", "Enter User Prefixe.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.ReturnPage", "Return Page");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.ReturnPage.Hint", "Enter Return Page.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.ShurjoPay.PaymentMethodDescription", "You will be redirected to shurjoPay site to complete the order.");

            base.Install();
        }
コード例 #2
0
 public ShurjoPayPaymentProcessor(ShurjoPayPaymentSettings ShurjoPayPaymentSettings,
                                  ISettingService settingService, ICurrencyService currencyService,
                                  CurrencySettings currencySettings, IWebHelper webHelper,
                                  ILocalizationService localizationService)
 {
     this._ShurjoPayPaymentSettings = ShurjoPayPaymentSettings;
     this._settingService           = settingService;
     this._currencyService          = currencyService;
     this._currencySettings         = currencySettings;
     this._webHelper           = webHelper;
     this._localizationService = localizationService;
 }