Esempio n. 1
0
 public MonerisPaymentProcessor(ILocalizationService localizationService,
                                IPaymentService paymentService,
                                ISettingService settingService,
                                IWebHelper webHelper,
                                IPaymentGatewayService paymentGatewayService,
                                MonerisPaymentSettings manualPaymentSettings)
 {
     _localizationService    = localizationService;
     _paymentService         = paymentService;
     _settingService         = settingService;
     _webHelper              = webHelper;
     _monerisPaymentSettings = manualPaymentSettings;
     _paymentGatewayService  = paymentGatewayService;
 }
Esempio n. 2
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new MonerisPaymentSettings
            {
                UseSandbox            = true,
                StoreId               = "store5",
                ApiToken              = "yesguy",
                ProcessingCountryCode = "CA",
                Crypt             = "7",
                DynamicDescriptor = "BUYWELL_TEST"
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Moneris.Instructions", "This payment method uses Moneris API to pay by credit card.");

            base.Install();
        }