You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`type`|`String`| A code-friendly presentation of the card brand (useful to class names in CSS). Please refer to Card Type "Constants" below for the list of possible values.<br/>- `visa`<br />- `mastercard`<br />- `american-express`<br />- `diners-club`<br />- `discover`<br />- `jcb`<br />- `unionpay`<br />- `maestro`<br />- `mir`<br /> - `elo`<br /> - `hiper`<br /> - `hipercard`<br /> - `verve`<br /> - `naranja`|
|`type`|`String`| A code-friendly presentation of the card brand (useful to class names in CSS). Please refer to Card Type "Constants" below for the list of possible values.<br/>- `visa`<br />- `mastercard`<br />- `american-express`<br />- `diners-club`<br />- `discover`<br />- `jcb`<br />- `unionpay`<br />- `maestro`<br />- `mir`<br /> - `elo`<br /> - `hiper`<br /> - `hipercard`<br /> - `verve`<br /> - `naranja`<br /> - `troy`|
41
41
|`gaps`|`Array`| The expected indices of gaps in a string representation of the card number. For example, in a Visa card, `4111 1111 1111 1111`, there are expected spaces in the 4th, 8th, and 12th positions. This is useful in setting your own formatting rules. |
42
42
|`lengths`|`Array`| The expected lengths of the card number as an array of strings (excluding spaces and `/` characters). |
43
43
|`code`|`Object`| The information regarding the security code for the determined card. Learn more about the [code object](#code) below. |
@@ -68,6 +68,7 @@ Named variables are provided for each of the supported card types:
68
68
-`VISA`
69
69
-`VERVE`
70
70
-`NARANJA`
71
+
-`TROY`
71
72
72
73
#### `code`
73
74
@@ -89,6 +90,7 @@ Card brands provide different nomenclature for their security codes as well as v
89
90
|`Hipercard`|`CVC`| 4 |
90
91
|`Verve`|`CVV`| 3 |
91
92
|`Naranja`|`CVV`| 3 |
93
+
|`Troy`|`CVV`| 3 |
92
94
93
95
A full response for a `Visa` card will look like this:
94
96
@@ -190,6 +192,7 @@ Adding new cards puts them at the bottom of the priority for testing. Priority i
0 commit comments