예제 #1
0
        private void InitializePaymentTermControl(bool IsTokenization)
        {
            bool hidePaypalOptionIfMultiShipAndHasGiftRegistry = !(_cart.HasMultipleShippingAddresses() || _cart.HasRegistryItems());

            ctrlPaymentTerm.ShowPaypalPaymentOption = hidePaypalOptionIfMultiShipAndHasGiftRegistry;
            _paymentTermOptions = PaymentTermDTO.GetAllForGroup(ThisCustomer.ContactCode, ThisCustomer.PrimaryShippingAddress); //availableTerms;

            ctrlPaymentTerm.PaymentTermOptions = _paymentTermOptions;
            ctrlPaymentTerm.ShowCardStarDate   = AppLogic.AppConfigBool("ShowCardStartDateFields");

            AssignPaymentTermDatasources();

            if (IsTokenization)
            {
                ctrlPaymentTerm.IsTokenization      = true;
                ctrlPaymentTerm.IsInOnePageCheckOut = false;
            }

            InitializePaymentTermControlValues();

            AssignPaymentTermCaptions();
            AssignPaymentTermErrorSummary();
            AssignPaymentTermValidationPrerequisites();
            InitializeTermsAndConditions();
        }
예제 #2
0
        private void InitializePaymentTermControl()
        {
            string baseTermOnThisCustomer = ThisCustomer.ContactCode;

            if (ThisCustomer.IsNotRegistered)
            {
                baseTermOnThisCustomer = ThisCustomer.AnonymousCustomerCode;
            }

            bool hidePaypalOptionIfMultiShipAndHasGiftRegistry = !(_cart.HasMultipleShippingAddresses() || _cart.HasRegistryItems());

            ctrlPaymentTerm.ShowPaypalPaymentOption = hidePaypalOptionIfMultiShipAndHasGiftRegistry;
            ctrlPaymentTerm.PaymentTermOptions      = PaymentTermDTO.GetAllForGroup(baseTermOnThisCustomer, ThisCustomer.PrimaryShippingAddress); //availableTerms;
            ctrlPaymentTerm.ShowCardStarDate        = AppLogic.AppConfigBool("ShowCardStartDateFields");
            //added header text instead of image
            lblCheckOutPaymentHeaderText.Text = AppLogic.GetString("mobile.checkoutpayment.aspx.1", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);

            AssignPaymentTermDatasources();
            InitializePaymentTermControlValues();
            AssignPaymentTermCaptions();
            AssignPaymentTermErrorSummary();
            AssignPaymentTermValidationPrerequisites();
            InitializeTermsAndConditions();
        }