\MaxMind\MinFraud\ModelCreditCard

Model with details about the credit card used.

Summary

Methods
Properties
Constants
__construct()
jsonSerialize()
$brand
$country
$isBusiness
$isIssuedInBillingAddressCountry
$isPrepaid
$isVirtual
$issuer
$type
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$brand

$brand : string|null

The card brand, such as "Visa", "Discover", "American Express", etc.

Type

normal

$country

$country : string|null

This property contains the two letter ISO 3166-1 alpha-2 country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) associated with the location of the majority of customers using this credit card as determined by their billing address. In cases where the location of customers is highly mixed, this defaults to the country of the bank issuing the card.

Type

normal

$isBusiness

$isBusiness : bool|null

This property is true if the card is a business card.

Type

normal

$isIssuedInBillingAddressCountry

$isIssuedInBillingAddressCountry : bool|null

This property is true if the country of the billing address matches the country of the majority of customers using this credit card. In cases where the location of customers is highly mixed, the match is to the country of the bank issuing the card.

Type

normal

$isPrepaid

$isPrepaid : bool|null

This property is true if the card is a prepaid card.

Type

normal

$isVirtual

$isVirtual : bool|null

This property is true if the card is a virtual card.

Type

normal

$issuer

$issuer : \MaxMind\MinFraud\Model\Issuer

An object containing information about the credit card issuer.

Type

normal

$type

$type : string|null

The card's type. The valid values are: charge, credit, debit.

Type

normal

Methods

__construct()

__construct(mixed  $response, mixed  $locales = ['en']) : mixed

Parameters

mixed $response

the array corresponding to the object in the minFraud Insights response

mixed $locales

list of locale codes to use in name property from most preferred to least preferred

Returns

mixed

jsonSerialize()

jsonSerialize() : array

Returns

array —

data that can be serialized by json_encode