1 | <?php |
||
31 | class AuthenticationDataDetails |
||
32 | { |
||
33 | |||
34 | /** |
||
35 | * E Error message received from directory server (Internal status) |
||
36 | * N Card holder not participating |
||
37 | * U Unable to authenticate |
||
38 | * Y Authentication available |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | public $veres; |
||
43 | |||
44 | /** |
||
45 | * A Attempted authentication |
||
46 | * N Authentication failed |
||
47 | * U Authentication could not be performed (unable) |
||
48 | * Y Authentication successful |
||
49 | * |
||
50 | * @var string |
||
51 | */ |
||
52 | public $pares; |
||
53 | |||
54 | /** |
||
55 | * CADS MasterCard Directory Server |
||
56 | * VIDS VISA Directory Server |
||
57 | * |
||
58 | * 'VISA' - Visa directory |
||
59 | * 'MAST' - MasterCard directory server |
||
60 | * |
||
61 | * @var string |
||
62 | */ |
||
63 | public $creditCardCompany; |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | * 00 Failed authentication (Visa / MasterCard) |
||
68 | * 01 Incomplete authentication (MasterCard) |
||
69 | * 02 Successful authentication (MasterCard) |
||
70 | * 05 Successful authentication (Visa) |
||
71 | * 06 Authentication attempted (Visa) |
||
72 | * 07 Unable to authenticate (Visa) |
||
73 | * |
||
74 | * @var string |
||
75 | */ |
||
76 | public $authenticationIndicator; |
||
77 | |||
78 | /** |
||
79 | * 0 HMAC |
||
80 | * 1 CVV |
||
81 | * 2 CVV with ATN |
||
82 | * 3 Mastercard SPA algorithm |
||
83 | * |
||
84 | * @var int |
||
85 | */ |
||
86 | public $caavAlgorithm; |
||
87 | |||
88 | /** |
||
89 | * AuthenticationDataDetails constructor. |
||
90 | * |
||
91 | * @param string|null $veresStatus |
||
92 | * @param string|null $paresStatus |
||
93 | * @param string|null $company |
||
94 | */ |
||
95 | 2 | public function __construct($veresStatus, $paresStatus, $company) |
|
101 | } |
||
102 |