public AuthorizeNetController(
     AuthorizeNetSettings authorizeNetPaymentSettings,
     HttpContextBase httpContext)
 {
     _authorizeNetPaymentSettings = authorizeNetPaymentSettings;
     _httpContext = httpContext;
 }
Beispiel #2
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;
        }
Beispiel #3
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;
        }
Beispiel #4
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);
        }
Beispiel #5
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);
        }
Beispiel #6
0
 public AuthorizeNet()
 {
     Settings = new AuthorizeNetSettings();
 }
Beispiel #7
0
 public AuthorizeNetController(ISettingService settingService, ILocalizationService localizationService, AuthorizeNetSettings authorizeNetPaymentSettings)
 {
     this._settingService              = settingService;
     this._localizationService         = localizationService;
     this._authorizeNetPaymentSettings = authorizeNetPaymentSettings;
 }