Fraud Report 

The doReport function performs a fraud report submittion to fraud service provider on view order page in adminarea. The doReport execute manually by admin.


Important: Runs when admin viewed the order in adminarea and clicked at fraud Report button manually.
This can only run if your module has enabled in WHASOLS fraud protection page.

The function receives the parameters which define here.

<?php
/**
 * Perform fraud report submittion on order page.
 *
 * @param array $params common module parameters
 *
 * @see https://whasols.com/developers/guide/371-Module-Parameters
 *
 * @return array
 */
function yourmodule_doReport($params=[]) {
    //write your code here
    //incase of error return as mention below:
    return ['status'=>'error','message'=>'Your error message here'];

    //incase of success return as mention below:
    return ['status'=>'success','message'=>'Your success message here'];
}


Click here to read about fraud module Module Logging