Пример #1
0
        public override void LoadData()
        {
            var settings = new AuthNetEmulatorSettings();

            settings.Merge(HccApp.CurrentStore.Settings.PaymentSettingsGet(GatewayId));

            txtUsername.Text         = settings.MerchantLoginId;
            txtPassword.Text         = settings.TransactionKey;
            chkEmailCustomer.Checked = settings.SendEmailToCustomer;
            chkDeveloperMode.Checked = settings.DeveloperMode;
            chkTestMode.Checked      = settings.TestMode;
            chkDebugMode.Checked     = settings.DebugMode;
        }
Пример #2
0
        public override void SaveData()
        {
            var settings = new AuthNetEmulatorSettings();

            settings.Merge(HccApp.CurrentStore.Settings.PaymentSettingsGet(GatewayId));

            settings.MerchantLoginId     = txtUsername.Text.Trim();
            settings.TransactionKey      = txtPassword.Text.Trim();
            settings.SendEmailToCustomer = chkEmailCustomer.Checked;
            settings.DeveloperMode       = chkDeveloperMode.Checked;
            settings.TestMode            = chkTestMode.Checked;
            settings.DebugMode           = chkDebugMode.Checked;

            HccApp.CurrentStore.Settings.PaymentSettingsSet(GatewayId, settings);

            HccApp.AccountServices.Stores.Update(HccApp.CurrentStore);
        }
Пример #3
0
 public AuthNetEmulatorGateway()
 {
     Settings = new AuthNetEmulatorSettings();
 }