GetRules
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%_GetRules
Purpose
This method is used for CloudBlue Commerce to receive and install fraud screening rules.
Mandatory / optional
This is one of the generic methods implemented optionally.
Input Parameters
None.
Return Parameters
rules
: an object of the\FraudSDK\Rules
type that describes the fraud screening rules that will be registered in Billing.
Relationship with other methods
None.
Implementation examples
Example 1. V&E plugin
function VNEDemo_GetRules() { $rules = \FraudSDK\createRules(); $rules->addRule('V&E Check Demo Rule') ->setTypeFraud(); return $rules; }
Example 2. Blacklist plugin
function BlacklistDemo_GetRules() { $rules = \FraudSDK\createRules(); $rules->addRule('Customer ZIP Code is Blacklisted') ->setTypeFraud() ->setImportance(0); return $rules; }