minFraud PHP API v1.21.0

ReportTransaction extends ServiceClient
in package

Table of Contents

VERSION  = 'v1.21.0'
__construct()  : mixed
report()  : void

Constants

Methods

__construct()

public __construct(int $accountId, string $licenseKey[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$accountId : int

Your MaxMind account ID

$licenseKey : string

Your MaxMind license key

$options : array<string|int, mixed> = []

An array of options. Possible keys:

  • host - The host to use when connecting to the web service.
  • userAgent - The prefix for the User-Agent header to use in the request.
  • caBundle - The bundle of CA root certificates to use in the request.
  • connectTimeout - The connect timeout to use for the request.
  • timeout - The timeout to use for the request.
  • proxy - The HTTP proxy to use. May include a schema, port, username, and password, e.g., http://username:password@127.0.0.1:10.
  • validateInput - Default is true. Determines whether values passed to the with*() methods are validated. It is recommended that you leave validation on while developing and only (optionally) disable it before deployment.
Return values
mixed

report()

public report(array<string|int, mixed> $values) : void
Parameters
$values : array<string|int, mixed>

the transaction parameters

Tags
throws
InvalidInputException

when the request has missing or invalid data

throws
AuthenticationException

when there is an issue authenticating the request

throws
InvalidRequestException

when the request is invalid for some other reason, e.g., invalid JSON in the POST.

throws
HttpException

when an unexpected HTTP error occurs

throws
WebServiceException

when some other error occurs. This also serves as the base class for the above exceptions.

Return values
void

Search results