예제 #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;
        }
예제 #2
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);
        }
예제 #3
0
 public AuthorizeNet()
 {
     Settings = new AuthorizeNetSettings();
 }
예제 #4
0
 public AuthorizeNet()
 {
     Settings = new AuthorizeNetSettings();
 }