Exemplo n.º 1
0
 public Plugin(AuthorizeNetSettings authorizeNetPaymentSettings,
               ICustomerService customerService,
               ICommonServices services)
 {
     _authorizeNetPaymentSettings = authorizeNetPaymentSettings;
     _customerService             = customerService;
     _services = services;
 }
Exemplo n.º 2
0
        public override void Install()
        {
            //settings
            var settings = new AuthorizeNetSettings()
            {
                UseSandbox     = true,
                TransactMode   = TransactMode.Authorize,
                TransactionKey = "123",
                LoginId        = "456"
            };

            _services.Settings.SaveSetting(settings);

            _services.Localization.ImportPluginResourcesFromXml(this.PluginDescriptor);

            base.Install();
        }