public bool ValidateForm()
        {
            IPaymentMethodModule ctrl = GetPaymentModule();

            if (ctrl != null)
            {
                return(ctrl.ValidateForm() && Page.IsValid);
            }
            return(Page.IsValid);
        }
        public PaymentInfo GetPaymentInfo()
        {
            PaymentInfo          paymentInfo = null;
            IPaymentMethodModule ctrl        = GetPaymentModule();

            if (ctrl != null)
            {
                paymentInfo = ctrl.GetPaymentInfo();
            }
            paymentInfo.PaymentMethodID = NopContext.Current.User.LastPaymentMethodID;
            return(paymentInfo);
        }