コード例 #1
0
 public EasyPay2PaymentProcessor(EasyPay2PaymentSettings easyPay2PaymentSettings,
                                 ISettingService settingService, ICurrencyService currencyService,
                                 CurrencySettings currencySettings, IWebHelper webHelper,
                                 ICheckoutAttributeParser checkoutAttributeParser, ITaxService taxService,
                                 IOrderTotalCalculationService orderTotalCalculationService, HttpContextBase httpContext, IEncryptionService encryptionService, ILogger logger)
 {
     this._easyPay2PaymentSettings = easyPay2PaymentSettings;
     this._settingService          = settingService;
     this._currencyService         = currencyService;
     this._currencySettings        = currencySettings;
     this._webHelper = webHelper;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._taxService = taxService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._httpContext       = httpContext;
     this._encryptionService = encryptionService;
     this._logger            = logger;
 }
コード例 #2
0
        public override void Install()
        {
            Debug.WriteLine("Install");
            //settings
            var settings = new EasyPay2PaymentSettings
            {
            };

            _settingService.SaveSetting(settings);
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.EasyPay2.Fields.RedirectionTip", "You will be redirected to EasyPay site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.EasyPay2.Fields.mid", "Merchant ID");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.EasyPay2.Fields.cur", "Currentcy");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.EasyPay2.Fields.transtype", "transtyle");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.EasyPay2.Fields.TransactModeValues", "Transaction mode");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.EasyPay2.Fields.TransactModeValues.Hint", "Choose transaction mode");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.EasyPay2.Fields.url", "URL payment gateway");

            base.Install();
        }