Ejemplo n.º 1
0
    public void Enable()
    {
        RadioCreditCard.Enabled                = true;
        RadioCheckByMail.Enabled               = true;
        RadioPayPal.Enabled                    = true;
        RadioPayPalExpress.Enabled             = true;
        RadioPurchaseOrder.Enabled             = true;
        RadioRequestQuote.Enabled              = true;
        RadioMicroPay.Enabled                  = true;
        RadioCod.Enabled                       = true;
        RadioCheckoutByAmazon.Enabled          = true;
        RadioPayPalEmbeddedCheckout.Enabled    = true;
        RadioMoneybookersQuickCheckout.Enabled = true;

        CreditCardPaymentViewForm.Enable();
        SecureNetPaymentView.Enable();
        CheckPaymentView.Enable();
        RequestQuoteView.Enable();
        PurchaseOrderPaymentView.Enable();
        PayPalPaymentView.Enable();
        PayPalExpressView.Enable();
        MicroPayPaymentView.Enable();
        CodPaymentView.Enable();
        CheckOutByAmazonPaymentView.Enable();
        MoneybookersQuickCheckoutPaymentView.Enable();

        if (this.PaymentModel.ActivePaymentMethod != null && this.PaymentModel.ActivePaymentMethod.PaymentType == PaymentType.PayPalEmbeddedCheckout)
        {
            PayPalEmbeddedCheckoutPaymentView.Enable();
        }
    }