GetAccountAttributes

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

Purpose

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

Mandatory / optional

This is one of the generic methods implemented optionally.

Input Parameters

None.

Return Parameters

  • attributes: an 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 plugin

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;
}
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.