GetRules
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%_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
– 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 plug-in
function VNEDemo_GetRules()
{
$rules = \FraudSDK\createRules();
$rules->addRule('V&E Check Demo Rule')
->setTypeFraud();
return $rules;
}
Example 2. Blacklist plug-in
function BlacklistDemo_GetRules()
{
$rules = \FraudSDK\createRules();
$rules->addRule('Customer ZIP Code is Blacklisted')
->setTypeFraud()
->setImportance(0);
return $rules;
}