Exemplo n.º 1
0
 public SamanPaymentProcessor(SamanPaymentSettings samanPaymentSettings,
                              ISettingService settingService,
                              HttpContextBase httpContext,
                              IWebHelper webHelper)
 {
     this._samanPaymentSettings = samanPaymentSettings;
     this._settingService       = settingService;
     this._httpContext          = httpContext;
     this._webHelper            = webHelper;
 }
Exemplo n.º 2
0
        public override void Install()
        {
            var settings = new SamanPaymentSettings
            {
                MerchantId = "merchantId",
                Passcode   = "passcode"
            };

            _settingService.SaveSetting(settings);

            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Saman.Fields.MerchantId", "Merchant Id");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Saman.Fields.Passcode", "Passcode");

            base.Install();
        }