IsInBlacklist

This section describes one of the fraud screening methods used in the development of fraud screening plugins that allow CloudBlue Commerce to integrate with third-party fraud screening systems. For more information, refer to Overview and How to Develop Fraud Screening Plugins.

Method naming convention

%PluginName%_IsInBlacklist

Purpose

This method checks whether a particular value is in the plug-in blacklist.

Mandatory / optional

This is one of the fraud screening methods mandatory for all blacklist plugins. However, it is not necessary for non-blacklist or validation and eligibility plugins.

Input Parameters

  • blacklist: an array of blacklist records.
  • value: a string value that will be checked whether it is in the blacklist.

Return Parameters

  • isInBlacklist: either 'true' if the value is in the blacklist, or false otherwise.

Relationship with other methods

None.

Implementation example. Blacklist plugin

function BlacklistDemo_IsInBlacklist($blacklist, $value)
{
    return (_isZipBlacklisted($blacklist, $value) !== FALSE);
}
CloudBlue, an Ingram Micro business, uses cookies to improve the usability of our site. By continuing to use this site and/or logging in you are accepting the use of these cookies. For more information, visit our Privacy Policy.