Overview

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • Test
      • Database
      • Model
      • WebService
    • WebService
  • MaxMind
    • MinFraud
      • Model
  • PHP

Classes

  • GeoIp2\Database\Reader
  • GeoIp2\Model\AnonymousIp
  • GeoIp2\Model\Asn
  • GeoIp2\Model\City
  • GeoIp2\Model\ConnectionType
  • GeoIp2\Model\Country
  • GeoIp2\Model\Domain
  • GeoIp2\Model\Enterprise
  • GeoIp2\Model\Insights
  • GeoIp2\Model\Isp
  • GeoIp2\Record\AbstractPlaceRecord
  • GeoIp2\Record\AbstractRecord
  • GeoIp2\Record\City
  • GeoIp2\Record\Continent
  • GeoIp2\Record\Country
  • GeoIp2\Record\Location
  • GeoIp2\Record\MaxMind
  • GeoIp2\Record\Postal
  • GeoIp2\Record\RepresentedCountry
  • GeoIp2\Record\Subdivision
  • GeoIp2\Record\Traits
  • GeoIp2\Test\Database\ReaderTest
  • GeoIp2\Test\Model\CountryTest
  • GeoIp2\Test\Model\InsightsTest
  • GeoIp2\Test\Model\NameTest
  • GeoIp2\Test\WebService\ClientTest
  • GeoIp2\WebService\Client
  • MaxMind\MinFraud
  • MaxMind\MinFraud\Model\Address
  • MaxMind\MinFraud\Model\BillingAddress
  • MaxMind\MinFraud\Model\CreditCard
  • MaxMind\MinFraud\Model\Device
  • MaxMind\MinFraud\Model\Disposition
  • MaxMind\MinFraud\Model\Email
  • MaxMind\MinFraud\Model\Factors
  • MaxMind\MinFraud\Model\GeoIp2Country
  • MaxMind\MinFraud\Model\GeoIp2Location
  • MaxMind\MinFraud\Model\Insights
  • MaxMind\MinFraud\Model\IpAddress
  • MaxMind\MinFraud\Model\Issuer
  • MaxMind\MinFraud\Model\Score
  • MaxMind\MinFraud\Model\ScoreIpAddress
  • MaxMind\MinFraud\Model\ShippingAddress
  • MaxMind\MinFraud\Model\Subscores
  • MaxMind\MinFraud\Model\Warning

Interfaces

  • GeoIp2\ProviderInterface
  • JsonSerializable
  • Throwable

Exceptions

  • BadFunctionCallException
  • BadMethodCallException
  • Exception
  • GeoIp2\Exception\AddressNotFoundException
  • GeoIp2\Exception\AuthenticationException
  • GeoIp2\Exception\GeoIp2Exception
  • GeoIp2\Exception\HttpException
  • GeoIp2\Exception\InvalidRequestException
  • GeoIp2\Exception\OutOfQueriesException
  • InvalidArgumentException
  • LogicException
  • Overview
  • Namespace
  • Class
 1: <?php
 2: 
 3: namespace MaxMind\MinFraud\Model;
 4: 
 5: /**
 6:  * Model with details about the credit card used.
 7:  *
 8:  * @property-read string|null $brand The card brand, such as "Visa", "Discover",
 9:  * "American Express", etc.
10:  * @property-read string|null $country This property contains the the two letter
11:  * {@link http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO 3166-1 alpha-2
12:  * country code} associated with the location of the majority of customers
13:  * using this credit card as determined by their billing address. In cases
14:  * where the location of customers is highly mixed, this defaults to the
15:  * country of the bank issuing the card.
16:  * @property-read bool|null $isIssuedInBillingAddressCountry This property is
17:  * true if the country of the billing address matches the country of the
18:  * majority of customers using this credit card. In cases where the location
19:  * of customers is highly mixed, the match is to the country of the bank
20:  * issuing the card.
21:  * @property-read bool|null $isPrepaid This property is true if the card is a
22:  * prepaid card.
23:  * @property-read \MaxMind\MinFraud\Model\Issuer $issuer An object containing
24:  * information about the credit card issuer.
25:  * @property-read string|null $type The card's type. The valid values are: charge,
26:  * credit, debit.
27:  */
28: class CreditCard extends AbstractModel
29: {
30:     /**
31:      * @internal
32:      */
33:     protected $brand;
34: 
35:     /**
36:      * @internal
37:      */
38:     protected $country;
39: 
40:     /**
41:      * @internal
42:      */
43:     protected $isIssuedInBillingAddressCountry;
44: 
45:     /**
46:      * @internal
47:      */
48:     protected $isPrepaid;
49: 
50:     /**
51:      * @internal
52:      */
53:     protected $issuer;
54: 
55:     /**
56:      * @internal
57:      */
58:     protected $type;
59: 
60:     public function __construct($response, $locales = ['en'])
61:     {
62:         parent::__construct($response, $locales);
63: 
64:         $this->issuer = new Issuer($this->safeArrayLookup($response['issuer']));
65: 
66:         $this->brand = $this->safeArrayLookup($response['brand']);
67:         $this->country = $this->safeArrayLookup($response['country']);
68:         $this->isIssuedInBillingAddressCountry
69:             = $this->safeArrayLookup($response['is_issued_in_billing_address_country']);
70:         $this->isPrepaid = $this->safeArrayLookup($response['is_prepaid']);
71:         $this->type = $this->safeArrayLookup($response['type']);
72:     }
73: }
74: 
minFraud PHP API v1.4.0 API documentation generated by ApiGen