public override void Install()
        {
            //settings
            var settings = new AllPayPaymentSettings()
            {
                MerchantId    = "",
                HashKey       = "",
                HashIv        = "",
                AdditionalFee = 0,
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.RedirectionTip", "您將被轉至歐付寶完成付款");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.TestMode", "Test Mode");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.MerchantId", "Merchant Id");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.MerchantId.Hint", "Enter Merchant Id.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.HashKey", "HashKey");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.HashKey.Hint", "Enter HashKey.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.HashIv", "HashIv");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.HashIv.Hint", "Enter HashIv.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AllPay.YouAreUsingAllPay", "您正在使用歐付寶");
            base.Install();
        }
 public AllPayPaymentProcessor(AllPayPaymentSettings allPayPaymentSettings,
                               ISettingService settingService, IWebHelper webHelper,
                               IStoreContext storeContext)
 {
     this._allPayPaymentSettings = allPayPaymentSettings;
     this._settingService        = settingService;
     this._webHelper             = webHelper;
     this._storeContext          = storeContext;
 }