コード例 #1
0
 private void PaymentModuleDatabaseConnected()
 {
     try
     {
         PaymentModuleSetup paymentModule = new PaymentModuleSetup();
         paymentModule.ProcessDatabaseConnected();
     }
     catch (Exception ex)
     {
         SaveLogFile.SaveLog(ex);
         // This error may occur if database is not upgraded to the latest version yet.
         // The ProcessedDatabaseConnected function will be called again after
         // database is upgraded to the latest version.
     }
 }
コード例 #2
0
    private void PopulatePermissionWarning()
    {
        PaymentOption paymentOption = DataAccessContext.PaymentOptionRepository.GetOne(
            uxLanguageControl.CurrentCulture, PaymentName);

        uxPermissionWarningPanel.Visible = false;

        if (paymentOption.IsEnabled &&
            paymentOption.CreditCardRequired)
        {
            PaymentModuleSetup paymentModuleSetup = new PaymentModuleSetup();
            if (paymentModuleSetup.IsPaymentModuleIntegrated &&
                !paymentModuleSetup.EncryptionKeyExists())
            {
                uxPermissionWarningPanel.Visible = true;
            }
        }
    }