Esempio n. 1
0
        private void LoadData()
        {
            AuthorizeNetSettings settings = new AuthorizeNetSettings();

            settings.Merge(MyPage.MTApp.CurrentStore.Settings.PaymentSettingsGet(this.BlockId));

            this.UsernameField.Text            = settings.MerchantLoginId;
            this.PasswordField.Text            = settings.TransactionKey;
            this.chkTestMode.Checked           = settings.TestMode;
            this.chkDebugMode.Checked          = settings.DeveloperMode;
            this.EmailCustomerCheckBox.Checked = settings.SendEmailToCustomer;
        }
Esempio n. 2
0
        public override void LoadData()
        {
            var settings = new AuthorizeNetSettings();

            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;
        }
Esempio n. 3
0
        private void SaveData()
        {
            AuthorizeNetSettings settings = new AuthorizeNetSettings();

            settings.Merge(MyPage.MTApp.CurrentStore.Settings.PaymentSettingsGet(this.BlockId));

            settings.MerchantLoginId     = this.UsernameField.Text.Trim();
            settings.TransactionKey      = this.PasswordField.Text.Trim();
            settings.TestMode            = this.chkTestMode.Checked;
            settings.SendEmailToCustomer = this.EmailCustomerCheckBox.Checked;
            settings.DeveloperMode       = this.chkDebugMode.Checked;

            MyPage.MTApp.CurrentStore.Settings.PaymentSettingsSet(this.BlockId, settings);

            MyPage.MTApp.AccountServices.Stores.Update(MyPage.MTApp.CurrentStore);
        }
Esempio n. 4
0
        public override void SaveData()
        {
            var settings = new AuthorizeNetSettings();

            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);
        }