Home
Fraud Modules - Fraud Results
Fraud Results
The processResultsForDisplay function display the fraud results on view order page in adminarea. The processResultsForDisplay used data parameter from params parameter which have fraud reponse data Array.
Important: Runs when order viewed by admin in adminarea
This can only run if your module has enabled in WHASOLS fraud protection page.
The function receives the parameters which define here.
<?php
/**
* Display fraud results on order page in adminarea.
*
* This function return two parameters as ErrorMsg and Panels to display on view order page in adminarea.
*
* @param array $params common module parameters
*
* @see https://whasols.com/developers/guide/371-Module-Parameters
*
* @return array
*/
function yourmodule_processResultsForDisplay(array $params)
{
$fraudResults = $params["data"];
$panels = array();
//Your code here for panels generation
return ["ErrorMsg" => $errorMessage,"Panels" => $panels];
}Click here to read about fraud module Report Configs