示例#1
0
        public override void Install()
        {
            var settings = new CyberSourcePaymentSettings
            {
                GatewayUrl    = "https://orderpagetest.ic3.com/hop/orderform.jsp",
                MerchantId    = string.Empty,
                PublicKey     = string.Empty,
                SerialNumber  = string.Empty,
                AdditionalFee = 0,
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.RedirectionTip", "You will be redirected to CyberSource site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.GatewayUrl", "Gateway URL");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.GatewayUrl.Hint", "Enter gateway URL.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.MerchantId", "Merchant ID");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.MerchantId.Hint", "Enter merchant ID.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.PublicKey", "Public Key");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.PublicKey.Hint", "Enter public key.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.SerialNumber", "Serial Number");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.SerialNumber.Hint", "Enter serial number.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.CyberSource.AdditionalFee.Hint", "Enter additional fee to charge your customers.");

            base.Install();
        }
示例#2
0
 public CyberSourcePaymentProcessor(CyberSourcePaymentSettings cyberSourcePaymentSettings,
                                    ISettingService settingService, ICurrencyService currencyService,
                                    CurrencySettings currencySettings, IWebHelper webHelper)
 {
     this._cyberSourcePaymentSettings = cyberSourcePaymentSettings;
     this._currencyService            = currencyService;
     this._currencySettings           = currencySettings;
     this._settingService             = settingService;
     this._webHelper = webHelper;
 }
 public CyberSourcePaymentProcessor(CyberSourcePaymentSettings cyberSourcePaymentSettings,
                                    ISettingService settingService, ICurrencyService currencyService,
                                    CurrencySettings currencySettings, IWebHelper webHelper,
                                    ILocalizationService localizationService)
 {
     this._cyberSourcePaymentSettings = cyberSourcePaymentSettings;
     this._currencyService            = currencyService;
     this._currencySettings           = currencySettings;
     this._settingService             = settingService;
     this._webHelper           = webHelper;
     this._localizationService = localizationService;
 }