There are two ways to locate handler class -- one via isExtensionKey() and
one via "CRM_Core_{$className}". Prior to this patch, the error would arise
even if a class was located via "CRM_Core_{$className}".
// Check pp is extension
$ext = CRM_Extension_System::singleton()->getMapper();
if ($ext->isExtensionKey($dao->class_name)) {
- $extension_instance_found = TRUE;
$paymentClass = $ext->keyToClass($dao->class_name, 'payment');
require_once $ext->classToPath($paymentClass);
}
// Everything, it seems, is ok - execute pp callback handler
$processorInstance->$method();
+ $extension_instance_found = TRUE;
}
if (!$extension_instance_found) CRM_Core_Error::fatal(