IsInBlacklist
This section describes one of the fraud screening methods used in the development of fraud screening plug-ins that allow CloudBlue Commerce to integrate with third-party fraud screening systems. For more information, please see Overview and How to Develop Fraud Screening Plug-ins.
Method naming convention
%PluginName%_IsInBlacklist
Purpose
This method checks whether a particular value is in the plug-in's blacklist.
Mandatory / optional
This is one of the fraud screening methods mandatory for all blacklist plug-ins. However, it is not necessary for non-blacklist or validation and eligibility plug-ins.
Input Parameters
blacklist– array of blacklist records.value– string value that will be checked whether it is in the blacklist.
Return Parameters
isInBlacklist– either 'true' if the value is in the blacklist, orfalseotherwise.
Relationship with other methods
None.
Implementation example. Blacklist plug-in
function BlacklistDemo_IsInBlacklist($blacklist, $value)
{
return (_isZipBlacklisted($blacklist, $value) !== FALSE);
}