\MaxMind\MinFraudReportTransaction

Summary

Methods
Properties
Constants
__construct()
report()
No public properties found
VERSION
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

VERSION

VERSION = 'v1.17.0'

Methods

__construct()

__construct(int  $accountId, string  $licenseKey, array  $options = []) : mixed

Parameters

int $accountId

Your MaxMind account ID

string $licenseKey

Your MaxMind license key

array $options

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.

Returns

mixed —

report()

report(array  $values) : void

Parameters

array $values

the transaction parameters

Throws

\MaxMind\Exception\InvalidInputException

when the request has missing or invalid data

\MaxMind\Exception\AuthenticationException

when there is an issue authenticating the request

\MaxMind\Exception\InvalidRequestException

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

\MaxMind\Exception\HttpException

when an unexpected HTTP error occurs

\MaxMind\Exception\WebServiceException

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