protected void Page_Load(object sender, EventArgs e)
        {
            ICriteria criteria = NHibernateHelper.CreateCriteria <PaymentMethod>();

            criteria.Add(Restrictions.Not(Restrictions.Eq("PaymentInstrumentId", (short)PaymentInstrumentType.GiftCertificate)));
            criteria.Add(Restrictions.Not(Restrictions.Eq("PaymentInstrumentId", (short)PaymentInstrumentType.GoogleCheckout)));

            methods = PaymentMethodDataSource.LoadForCriteria(criteria);

            if (!Page.IsPostBack)
            {
                CancelLink.NavigateUrl          += "?OrderNumber=" + Order.OrderNumber.ToString();
                SelectedPaymentMethod.DataSource = methods;
                SelectedPaymentMethod.DataBind();
                Amount.Text = string.Format("{0:F2}", Order.GetBalance(true));
                //LOAD PAYMENT STATUSES
                foreach (PaymentStatus status in Enum.GetValues(typeof(PaymentStatus)))
                {
                    selPaymentStatus.Items.Add(new ListItem(status.ToString(), ((int)status).ToString()));
                }

                //ListItem completed = selPaymentStatus.Items.FindByValue(((int)PaymentStatus.Captured).ToString());
                //if (completed != null) completed.Selected = true;
            }
        }
        private void InitOnlinePaymentMethods()
        {
            ICriteria criteria = NHibernateHelper.CreateCriteria <PaymentMethod>();

            criteria.Add(Restrictions.Not(Restrictions.Eq("PaymentInstrumentId", (short)PaymentInstrumentType.GiftCertificate)));
            criteria.Add(Restrictions.Not(Restrictions.Eq("PaymentInstrumentId", (short)PaymentInstrumentType.GoogleCheckout)));
            IList <PaymentMethod> allMethods = PaymentMethodDataSource.LoadForCriteria(criteria);

            _OnlinePaymentMethods = new List <PaymentMethod>();
            foreach (PaymentMethod m in allMethods)
            {
                if ((m.PaymentGateway != null) && (m.PaymentInstrumentType != PaymentInstrumentType.PayPal))
                {
                    _OnlinePaymentMethods.Add(m);
                }
            }
        }