protected void marketDropDownList_OnSelectedIndexChanged(object sender, EventArgs e)
        {
            var checkoutConfiguration = GetConfiguration(new MarketId(marketDropDownList.SelectedValue), _paymentMethodDto.PaymentMethod.First().LanguageId);

            BindConfigurationData(checkoutConfiguration);
            ConfigureUpdatePanelContentPanel.Update();
        }
        protected void marketDropDownList_OnSelectedIndexChanged(object sender, EventArgs e)
        {
            var market        = _marketService.GetMarket(new MarketId(marketDropDownList.SelectedValue));
            var configuration = GetConfiguration(new MarketId(marketDropDownList.SelectedValue), market.DefaultLanguage.Name);

            BindConfigurationData(configuration);
            ConfigureUpdatePanelContentPanel.Update();
        }
Пример #3
0
        protected void marketDropDownList_OnSelectedIndexChanged(object sender, EventArgs e)
        {
            PaymentsConfiguration paymentsConfiguration = null;

            try
            {
                paymentsConfiguration = _paymentMethodDto.GetKlarnaPaymentsConfiguration(marketDropDownList.SelectedValue);
            }
            catch
            {
                paymentsConfiguration = new PaymentsConfiguration();
            }
            BindData(paymentsConfiguration);

            ConfigureUpdatePanelContentPanel.Update();
        }
Пример #4
0
        protected void marketDropDownList_OnSelectedIndexChanged(object sender, EventArgs e)
        {
            CheckoutConfiguration checkoutConfiguration = null;

            try
            {
                checkoutConfiguration = _klarnaCheckoutService.GetConfiguration(new MarketId(marketDropDownList.SelectedValue));
            }
            catch
            {
                checkoutConfiguration = new CheckoutConfiguration();
            }
            BindData(checkoutConfiguration);

            ConfigureUpdatePanelContentPanel.Update();
        }