private bool ProcCenterSupportTokenizing(string procCenterId)
		{
			var query = new PXSelect<CCProcessingCenter,
				Where<CCProcessingCenter.processingCenterID, Equal<Required<CCProcessingCenter.processingCenterID>>>>(this);
			CCProcessingCenter procCenter = query.Select(procCenterId);
			string typeName = procCenter.ProcessingTypeName;
			if (typeName == AuthnetConstants.AIMPluginFullName)
			{
				return false;
			}
			if (typeName == AuthnetConstants.CIMPluginFullName || 
				typeName == AuthnetConstants.APIPluginFullName)
			{
				return true;
			}
			Type type = CCPluginTypeHelper.GetPluginType(procCenter.ProcessingTypeName);
			if (CCPluginTypeHelper.CheckImplementInterface(type, PluginConstants.V1TokenizedInterface))
			{
				return true;
			}
			if (CCProcessingFeatureHelper.IsFeatureSupported(type, CCProcessingFeature.ProfileManagement))
			{
				return true;
			}
			return false;
		}
Пример #2
0
        private bool CheckPluginType(CCProcessingCenter procCenter)
        {
            string pluginTypeName = procCenter.ProcessingTypeName;
            bool   res            = pluginTypeNames.Contains(pluginTypeName);

            if (res)
            {
                return(true);
            }

            try
            {
                Type pluginType = CCPluginTypeHelper.GetPluginType(pluginTypeName);
                foreach (string typeName in pluginTypeNames)
                {
                    res = CCPluginTypeHelper.CheckParentClass(pluginType, typeName, 0, 3) ||
                          CCPluginTypeHelper.CheckImplementInterface(pluginType, typeName);
                    if (res)
                    {
                        return(true);
                    }
                }
            }
            catch { }
            return(false);
        }