GetConfig
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%_GetConfig
Purpose
This method is used for CloudBlue Commerce to receive and display the plug-in configuration parameters on the plug-in configuration screen in the provider control panel.
Mandatory / optional
This is one of the generic methods mandatory for all plug-ins.
Input Parameters
None.
Return Parameters
config
– object of the\FraudSDK\Config
type that describes the set of plug-in configuration parameters.
Relationship with other methods
None.
Implementation examples
Example 1. V&E plug-in
function VNEDemo_GetConfig()
{
$config = \FraudSDK\createConfig('Fraud SDK Validation and Eligibility Demo Plugin');
$config->addConfigurationParameter('gateway_password')
->setTypePassword()
->setDefaultValue('somepassword');
$config->addConfigurationParameter('gateway_username')
->setTypeString()
->setDefaultValue('someuser');
return $config;
}
Example 2. Blacklist plug-in
function BlacklistDemo_GetConfig()
{
return \FraudSDK\createConfig('Fraud SDK ZIP Code Blacklist Demo Plugin');
}