GetAccountAttributes

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

Purpose

This method is used for CloudBlue Commerce to install additional account attribute types (parameters) for a plug-in during the plug-in registration in the system.

Mandatory / optional

This is one of the generic methods implemented optionally.

Input Parameters

None.

Return Parameters

  • attributes – object of the \FraudSDK\Attributes type that describes the set of attribute types to be registered in Billing.

Relationship with other methods

The attribute types returned by the method are used by the CheckVNE method.

Implementation example. V&E plug-in

function VNEDemo_GetAccountAttributes()
{
    $attributes = \FraudSDK\createAccountAttributes();

    $attributes
        ->addAttribute('VNEDEMO_PHONE')
        ->setName('MSISID')
        ->setDescription('Customer phone number')
        ->setUniqueGlobally()
        ->addCompanyTag()
        ->addPersonalTag();

    $attributes
        ->addAttribute('VNEDEMO_PIN')
        ->setName('PIN Code')
        ->setDescription('Customer PIN code')
        ->addCompanyTag()
        ->addPersonalTag();

    $attributes
        ->addAttribute('VNEDEMO_PIN_VALIDATED')
        ->setName('PIN Code Validated')
        ->setDescription('PIN code validated')
        ->setHidden()
        ->setSensitive()
        ->addCompanyTag()
        ->addPersonalTag();

    return $attributes;
}