-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.ts
41 lines (34 loc) · 944 Bytes
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const ELEMENTS_INIT_ERROR_MESSAGE =
'BasisTheory Elements was not properly initialized.';
const ELEMENTS_NOM_DOM_ERROR_MESSAGE =
'Tried to load BasisTheoryElements in a non-DOM environment.';
const ELEMENTS_SCRIPT_LOAD_ERROR_MESSAGE =
'BasisTheoryElements did not load properly.';
const ELEMENTS_SCRIPT_UNKNOWN_ERROR_MESSAGE =
'There was an unknown error when loading BasisTheoryElements';
const CARD_BRANDS = [
'visa',
'mastercard',
'american-express',
'discover',
'diners-club',
'jcb',
'unionpay',
'maestro',
'elo',
'hiper',
'hipercard',
'mir',
'unknown',
] as const;
const CARD_ICON_POSITIONS = ['left', 'right', 'none'] as const;
const AUTOCOMPLETE_VALUES = ['off', 'on'] as const;
export {
ELEMENTS_INIT_ERROR_MESSAGE,
ELEMENTS_NOM_DOM_ERROR_MESSAGE,
ELEMENTS_SCRIPT_LOAD_ERROR_MESSAGE,
ELEMENTS_SCRIPT_UNKNOWN_ERROR_MESSAGE,
CARD_BRANDS,
CARD_ICON_POSITIONS,
AUTOCOMPLETE_VALUES,
};