public override void LoadData() { var settings = new BeanstreamSettings(); settings.Merge(HccApp.CurrentStore.Settings.PaymentSettingsGet(GatewayId)); txtMerchantId.Text = settings.MerchantId; txtUserName.Text = settings.UserName; txtPassword.Text = settings.Password; chkDebugMode.Checked = settings.DebugMode; }
public override void SaveData() { var settings = new BeanstreamSettings(); settings.Merge(HccApp.CurrentStore.Settings.PaymentSettingsGet(GatewayId)); settings.MerchantId = txtMerchantId.Text.Trim(); settings.UserName = txtUserName.Text.Trim(); settings.Password = txtPassword.Text.Trim(); settings.DebugMode = chkDebugMode.Checked; HccApp.CurrentStore.Settings.PaymentSettingsSet(GatewayId, settings); HccApp.AccountServices.Stores.Update(HccApp.CurrentStore); }