RemoveFromBlacklist

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%_RemoveFromBlacklist

Purpose

This method removes a particular value from the plug-in blacklist (if the request contains the data the plugin can remove from the 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 to be removed from the blacklist.

Return Parameters

  • result: an object of the \FraudSDK\RemoveFromBlacklist type that defines the ID of the blacklist record that will be removed from the blacklist.

Relationship with other methods

None.

Implementation example. Blacklist plugin

function BlacklistDemo_RemoveFromBlacklist($blacklist, $value)
{
    $blacklisted_id = _isZipBlacklisted($blacklist, $value);
    if ($blacklisted_id === FALSE)
    {
        return \FraudSDK\createRemoveFromBlacklist();
    }

    return \FraudSDK\createRemoveFromBlacklist()
           ->setRemoveId($blacklisted_id)
           ->setMessage('The ZIP code was removed from the blacklist');
}
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.