Ejemplo n.º 1
0
 private void LoadRegistrarSettings()
 {
     try
     {
         KeyValueBunch props = StorehouseHelper.GetPluginProperties(SupportedPlugin.ENOM);
         //
         if (!props.IsEmpty)
         {
             txtServiceUsername.Text = props[EnomSettings.USERNAME];
             txtServicePassword.EnableDefaultPassword();
             chkLiveMode.Checked = ecUtils.ParseBoolean(props[EnomSettings.LIVE_MODE], false);
         }
     }
     catch (Exception ex)
     {
         ShowErrorMessage("LOAD_PLUGIN_SETTINGS", ex);
     }
 }
Ejemplo n.º 2
0
        private void LoadProviderProperties(string pluginName)
        {
            if (String.IsNullOrEmpty(pluginName))
            {
                return;
            }

            Control ctlLoaded = LoadControl("SupportedPlugins/" + ExtractProvName(pluginName) +
                                            "_Settings.ascx");

            //
            ctlLoaded.ID = CTL_CC_PROVIDER;
            //
            cntCcProvSettings.Controls.Clear();
            //
            cntCcProvSettings.Controls.Add(ctlLoaded);
            //
            IPluginProperties ctlSettings = (IPluginProperties)ctlLoaded;

            //
            ctlSettings.Properties = StorehouseHelper.GetPluginProperties(ExtractProvId(pluginName));
        }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             PaymentMethod method = StorehouseHelper.GetPaymentMethod(PaymentMethod.PP_ACCOUNT);
             ecUtils.ToggleControls(method != null, btnDisable);
             //
             if (method != null)
             {
                 txtDisplayName.Text = method.DisplayName;
                 //
                 ctlPluginProps.Properties = StorehouseHelper.GetPluginProperties(method.PluginId);
             }
         }
         catch (Exception ex)
         {
             ShowErrorMessage("LOAD_PAYMENT_METHOD", ex);
         }
     }
 }
 private void LoadRegistrarSettings()
 {
     try
     {
         KeyValueBunch settings = StorehouseHelper.GetPluginProperties(SupportedPlugin.DIRECTI);
         // settings are not empty
         if (!settings.IsEmpty)
         {
             txtServiceUsername.Text = settings[DirectiSettings.USERNAME];
             txtServiceParentId.Text = settings[DirectiSettings.PARENT_ID];
             txtServicePassword.EnableDefaultPassword();
             //
             chkLiveMode.Checked      = ecUtils.ParseBoolean(settings[DirectiSettings.LIVE_MODE], false);
             chkSecureChannel.Checked = ecUtils.ParseBoolean(settings[DirectiSettings.SECURE_CHANNEL], false);
         }
     }
     catch (Exception ex)
     {
         // ERROR
         ShowErrorMessage("LOAD_PLUGIN_SETTINGS", ex);
     }
 }
Ejemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             //
             PaymentMethod method = StorehouseHelper.GetPaymentMethod(PaymentMethod.OFFLINE);
             //
             if (method != null)
             {
                 //
                 txtDisplayName.Text = method.DisplayName;
                 //
                 ctlPluginProps.Properties = StorehouseHelper.GetPluginProperties(SupportedPlugin.OFFLINE_PAYMENTS);
             }
         }
         catch (Exception ex)
         {
             ShowErrorMessage("LOAD_PAYMENT_METHOD", ex);
         }
     }
 }