@globalpayments/js 4.1.6 → 4.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +6 -1
- package/types/internal/built-in-validations/constants.d.ts +1 -0
- package/types/internal/built-in-validations/helpers.d.ts +2 -1
- package/types/internal/lib/bank-selection/available-banks-data.d.ts +1 -0
- package/types/internal/lib/bank-selection/contracts.d.ts +17 -2
- package/types/internal/lib/bank-selection/helpers.d.ts +1 -0
- package/types/internal/lib/enums.d.ts +2 -1
- package/types/internal/lib/styles/default.d.ts +5 -2
- package/types/internal/lib/styles/gp-default.d.ts +9 -6
- package/types/internal/lib/styles/payment-methods/common.d.ts +2 -2
- package/types/internal/lib/styles/payment-methods/open-banking.d.ts +2 -2
- package/types/internal/lib/styles/simple.d.ts +3 -0
- package/types/internal/lib/styles/themes/brand-themes/base/base-theme.d.ts +5 -2
- package/types/internal/lib/styles/themes/helpers.d.ts +1 -0
- package/types/internal/lib/translations/et.d.ts +108 -0
- package/types/internal/lib/translations/ga.d.ts +108 -0
- package/types/internal/lib/translations/lv.d.ts +108 -0
- package/types/lib/version.d.ts +1 -1
- package/types/tools/configure.d.ts +1 -0
- package/types/ui/form/index.d.ts +48 -31
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ This plugin allows you to use online payments (eCommerce) features of a variety
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
26
|
```html
|
|
27
|
-
<script src="https://js.globalpay.com/4.1.
|
|
27
|
+
<script src="https://js.globalpay.com/4.1.8/globalpayments.js"></script>
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
> Note: Installing via NPM will only provide TypeScript types for type-checking.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@globalpayments/js",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.8",
|
|
4
4
|
"author": "Heartland Developer Portal <developers@heartland.us>",
|
|
5
5
|
"license": "GPL-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -17,10 +17,15 @@
|
|
|
17
17
|
"clean": "rimraf dist",
|
|
18
18
|
"cypress:open": "cypress open",
|
|
19
19
|
"format": "prettier --write config/**/* src/**/* !src/assets/**/* !test/run.sh !test/run.ps1 test/fixtures/**/*.html",
|
|
20
|
+
|
|
20
21
|
"postbuild": "xcopy src\\assets dist\\ /e/y/h && node bin/replace-gp-ref.js",
|
|
22
|
+
|
|
21
23
|
"prebuild": "yarn test:lint && node bin/update-version.js",
|
|
22
24
|
"prepublish": "yarn build",
|
|
25
|
+
|
|
23
26
|
"test": "cross-os test-cross",
|
|
27
|
+
|
|
28
|
+
|
|
24
29
|
"test:integration": "cypress run",
|
|
25
30
|
"test:lint": "tslint --project tsconfig.json",
|
|
26
31
|
"test:serve": "serve -p 7777"
|
|
@@ -5,4 +5,5 @@ export declare const resetValidationRoundCounter: () => void;
|
|
|
5
5
|
export declare const getValidationRoundCounter: () => number;
|
|
6
6
|
export declare const increaseValidationRoundCounter: () => void;
|
|
7
7
|
export declare const removeValidationRoundCounter: () => void;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const isOpenBankingAvailable: (countryCode: string | undefined, aquirer: string | undefined) => boolean;
|
|
9
|
+
export declare const isBlikAvailable: (countryCode: string | undefined, currencyCode: string | undefined, options: IApmConfiguration | undefined) => boolean;
|
|
@@ -2,11 +2,13 @@ export interface IBankData {
|
|
|
2
2
|
countryCode: string;
|
|
3
3
|
currencyCode: string;
|
|
4
4
|
availableBanks: IAvailableBankData[];
|
|
5
|
+
allowedAquirers?: string[];
|
|
5
6
|
}
|
|
6
7
|
export interface IAvailableBankData {
|
|
7
8
|
name: string;
|
|
8
9
|
displayName: string;
|
|
9
10
|
imageName: string;
|
|
11
|
+
acquirer: string[];
|
|
10
12
|
}
|
|
11
13
|
export declare enum BankDisplayNames {
|
|
12
14
|
Pkobankpolskisa = "PKO BP",
|
|
@@ -38,7 +40,13 @@ export declare enum BankDisplayNames {
|
|
|
38
40
|
AirBank = "AirBank",
|
|
39
41
|
Tatra = "Tatra banka",
|
|
40
42
|
VÚB = "V\u00DAB banka",
|
|
41
|
-
UniCredit = "UniCredit Bank"
|
|
43
|
+
UniCredit = "UniCredit Bank",
|
|
44
|
+
postacz = "\u010Cesk\u00E1 Po\u0161ta",
|
|
45
|
+
unicredit = "UniCredit",
|
|
46
|
+
creditasbanka = "Banka Creditas",
|
|
47
|
+
jtbanka = "J&T Banka",
|
|
48
|
+
bank365 = "365.bank",
|
|
49
|
+
viamo = "Viamo"
|
|
42
50
|
}
|
|
43
51
|
export declare enum CountryCurrencies {
|
|
44
52
|
Poland = "PLN",
|
|
@@ -48,7 +56,14 @@ export declare enum CountryCurrencies {
|
|
|
48
56
|
export declare enum BankCountries {
|
|
49
57
|
Poland = "PL",
|
|
50
58
|
CzechRepublic = "CZ",
|
|
51
|
-
Slovakia = "SK"
|
|
59
|
+
Slovakia = "SK",
|
|
60
|
+
UK = "GB"
|
|
61
|
+
}
|
|
62
|
+
export declare enum BankAquirers {
|
|
63
|
+
Eservice = "eservice",
|
|
64
|
+
Erstecz = "erstecz",
|
|
65
|
+
Eservicecba = "eservicecba",
|
|
66
|
+
Erste = "erste"
|
|
52
67
|
}
|
|
53
68
|
export interface IBankSelectionProps {
|
|
54
69
|
countryCode: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IAvailableBankData } from "./contracts";
|
|
2
2
|
export declare const isBankSelectionAvailable: (countryCode: string, currencyCode: string) => boolean;
|
|
3
3
|
export declare const getAvailableBanksByCountry: (countryCode: string | undefined) => IAvailableBankData[];
|
|
4
|
+
export declare const getAllAvailableBanks: (countryCode: string | undefined, aquirer: string | undefined) => IAvailableBankData[];
|
|
4
5
|
export declare const getImageUrl: (assetBaseUrl: string, provider: string, countryCode?: string | undefined) => string;
|
|
5
6
|
export declare const getCountryForQRPlatbaBank: (countryCode: string) => boolean;
|
|
@@ -158,6 +158,9 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
|
158
158
|
"background-size": string;
|
|
159
159
|
"background-position-y": string;
|
|
160
160
|
};
|
|
161
|
+
"img.card-number-icon.card-type-carnet": {
|
|
162
|
+
"background-image": string;
|
|
163
|
+
};
|
|
161
164
|
".card-number::-ms-clear": {
|
|
162
165
|
display: string;
|
|
163
166
|
};
|
|
@@ -385,6 +388,7 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
385
388
|
right: string;
|
|
386
389
|
};
|
|
387
390
|
".secure-payment-form .open-banking-button": {
|
|
391
|
+
background: string;
|
|
388
392
|
position: string;
|
|
389
393
|
color: string;
|
|
390
394
|
height: string;
|
|
@@ -403,8 +407,8 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
403
407
|
"outline-offset": string;
|
|
404
408
|
};
|
|
405
409
|
".secure-payment-form .blik-button": {
|
|
406
|
-
position: string;
|
|
407
410
|
background: string;
|
|
411
|
+
position: string;
|
|
408
412
|
color: string;
|
|
409
413
|
height: string;
|
|
410
414
|
width: string;
|
|
@@ -422,7 +426,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
422
426
|
"outline-offset": string;
|
|
423
427
|
};
|
|
424
428
|
".secure-payment-form .blik-button::before": {
|
|
425
|
-
content: string;
|
|
426
429
|
width: string;
|
|
427
430
|
height: string;
|
|
428
431
|
position: string;
|
|
@@ -127,6 +127,9 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
|
127
127
|
"img.card-number-icon.card-type-diners": {
|
|
128
128
|
"background-image": string;
|
|
129
129
|
};
|
|
130
|
+
"img.card-number-icon.card-type-carnet": {
|
|
131
|
+
"background-image": string;
|
|
132
|
+
};
|
|
130
133
|
".card-number::-ms-clear": {
|
|
131
134
|
display: string;
|
|
132
135
|
};
|
|
@@ -351,6 +354,7 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
351
354
|
right: string;
|
|
352
355
|
};
|
|
353
356
|
".secure-payment-form .open-banking-button": {
|
|
357
|
+
background: string;
|
|
354
358
|
position: string;
|
|
355
359
|
color: string;
|
|
356
360
|
height: string;
|
|
@@ -369,8 +373,8 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
369
373
|
"outline-offset": string;
|
|
370
374
|
};
|
|
371
375
|
".secure-payment-form .blik-button": {
|
|
372
|
-
position: string;
|
|
373
376
|
background: string;
|
|
377
|
+
position: string;
|
|
374
378
|
color: string;
|
|
375
379
|
height: string;
|
|
376
380
|
width: string;
|
|
@@ -388,7 +392,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
388
392
|
"outline-offset": string;
|
|
389
393
|
};
|
|
390
394
|
".secure-payment-form .blik-button::before": {
|
|
391
|
-
content: string;
|
|
392
395
|
width: string;
|
|
393
396
|
height: string;
|
|
394
397
|
position: string;
|
|
@@ -1360,6 +1363,10 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
1360
1363
|
"border-right": string;
|
|
1361
1364
|
"border-bottom": string;
|
|
1362
1365
|
};
|
|
1366
|
+
"@font-face": {
|
|
1367
|
+
"font-family": string;
|
|
1368
|
+
src: string;
|
|
1369
|
+
};
|
|
1363
1370
|
".secure-payment-form": {
|
|
1364
1371
|
display: string;
|
|
1365
1372
|
"-ms-flex-wrap": string;
|
|
@@ -1475,10 +1482,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
1475
1482
|
".secure-payment-form .hidden": {
|
|
1476
1483
|
display: string;
|
|
1477
1484
|
};
|
|
1478
|
-
"@font-face": {
|
|
1479
|
-
"font-family": string;
|
|
1480
|
-
src: string;
|
|
1481
|
-
};
|
|
1482
1485
|
"@media(min-width: 800px)": {
|
|
1483
1486
|
".secure-payment-form .credit-card-card-expiration": {
|
|
1484
1487
|
flex: string;
|
|
@@ -153,6 +153,7 @@ declare const _default: (assetBaseUrl: string) => {
|
|
|
153
153
|
right: string;
|
|
154
154
|
};
|
|
155
155
|
".secure-payment-form .open-banking-button": {
|
|
156
|
+
background: string;
|
|
156
157
|
position: string;
|
|
157
158
|
color: string;
|
|
158
159
|
height: string;
|
|
@@ -171,8 +172,8 @@ declare const _default: (assetBaseUrl: string) => {
|
|
|
171
172
|
"outline-offset": string;
|
|
172
173
|
};
|
|
173
174
|
".secure-payment-form .blik-button": {
|
|
174
|
-
position: string;
|
|
175
175
|
background: string;
|
|
176
|
+
position: string;
|
|
176
177
|
color: string;
|
|
177
178
|
height: string;
|
|
178
179
|
width: string;
|
|
@@ -190,7 +191,6 @@ declare const _default: (assetBaseUrl: string) => {
|
|
|
190
191
|
"outline-offset": string;
|
|
191
192
|
};
|
|
192
193
|
".secure-payment-form .blik-button::before": {
|
|
193
|
-
content: string;
|
|
194
194
|
width: string;
|
|
195
195
|
height: string;
|
|
196
196
|
position: string;
|
|
@@ -17,6 +17,7 @@ declare const styles: (assetBaseUrl: string) => {
|
|
|
17
17
|
right: string;
|
|
18
18
|
};
|
|
19
19
|
".secure-payment-form .open-banking-button": {
|
|
20
|
+
background: string;
|
|
20
21
|
position: string;
|
|
21
22
|
color: string;
|
|
22
23
|
height: string;
|
|
@@ -35,8 +36,8 @@ declare const styles: (assetBaseUrl: string) => {
|
|
|
35
36
|
"outline-offset": string;
|
|
36
37
|
};
|
|
37
38
|
".secure-payment-form .blik-button": {
|
|
38
|
-
position: string;
|
|
39
39
|
background: string;
|
|
40
|
+
position: string;
|
|
40
41
|
color: string;
|
|
41
42
|
height: string;
|
|
42
43
|
width: string;
|
|
@@ -54,7 +55,6 @@ declare const styles: (assetBaseUrl: string) => {
|
|
|
54
55
|
"outline-offset": string;
|
|
55
56
|
};
|
|
56
57
|
".secure-payment-form .blik-button::before": {
|
|
57
|
-
content: string;
|
|
58
58
|
width: string;
|
|
59
59
|
height: string;
|
|
60
60
|
position: string;
|
|
@@ -144,6 +144,9 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
|
144
144
|
"background-size": string;
|
|
145
145
|
"background-position": string;
|
|
146
146
|
};
|
|
147
|
+
"img.card-number-icon.card-type-carnet": {
|
|
148
|
+
"background-image": string;
|
|
149
|
+
};
|
|
147
150
|
".card-number::-ms-clear": {
|
|
148
151
|
display: string;
|
|
149
152
|
};
|
|
@@ -156,6 +156,9 @@ declare const fieldStyles: (assetBaseUrl: string, themePreset?: IThemePreset | u
|
|
|
156
156
|
"img.card-number-icon.card-type-diners": {
|
|
157
157
|
"background-image": string;
|
|
158
158
|
};
|
|
159
|
+
"img.card-number-icon.card-type-carnet": {
|
|
160
|
+
"background-image": string;
|
|
161
|
+
};
|
|
159
162
|
".card-number::-ms-clear": {
|
|
160
163
|
display: string;
|
|
161
164
|
};
|
|
@@ -499,6 +502,7 @@ declare const parentStyles: (assetBaseUrl: string, themePreset?: IThemePreset |
|
|
|
499
502
|
right: string;
|
|
500
503
|
};
|
|
501
504
|
".secure-payment-form .open-banking-button": {
|
|
505
|
+
background: string;
|
|
502
506
|
position: string;
|
|
503
507
|
color: string;
|
|
504
508
|
height: string;
|
|
@@ -517,8 +521,8 @@ declare const parentStyles: (assetBaseUrl: string, themePreset?: IThemePreset |
|
|
|
517
521
|
"outline-offset": string;
|
|
518
522
|
};
|
|
519
523
|
".secure-payment-form .blik-button": {
|
|
520
|
-
position: string;
|
|
521
524
|
background: string;
|
|
525
|
+
position: string;
|
|
522
526
|
color: string;
|
|
523
527
|
height: string;
|
|
524
528
|
width: string;
|
|
@@ -536,7 +540,6 @@ declare const parentStyles: (assetBaseUrl: string, themePreset?: IThemePreset |
|
|
|
536
540
|
"outline-offset": string;
|
|
537
541
|
};
|
|
538
542
|
".secure-payment-form .blik-button::before": {
|
|
539
|
-
content: string;
|
|
540
543
|
width: string;
|
|
541
544
|
height: string;
|
|
542
545
|
position: string;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
declare const en: {
|
|
2
|
+
labels: {
|
|
3
|
+
"card-number": string;
|
|
4
|
+
"card-expiration": string;
|
|
5
|
+
"card-cvv": string;
|
|
6
|
+
"card-holder-name": string;
|
|
7
|
+
submit: string;
|
|
8
|
+
};
|
|
9
|
+
values: {
|
|
10
|
+
"card-track": string;
|
|
11
|
+
submit: string;
|
|
12
|
+
};
|
|
13
|
+
validationMessages: {
|
|
14
|
+
CardNumber: {
|
|
15
|
+
Required: string;
|
|
16
|
+
CharactersLessThan12: string;
|
|
17
|
+
NumberIsNotValid: string;
|
|
18
|
+
NotAllowedCardType: string;
|
|
19
|
+
};
|
|
20
|
+
CardExpiration: {
|
|
21
|
+
NotCompleted: string;
|
|
22
|
+
YearNotValid: string;
|
|
23
|
+
MonthNotValid: string;
|
|
24
|
+
ExpiryDateNotValid: string;
|
|
25
|
+
};
|
|
26
|
+
CardCvv: {
|
|
27
|
+
CodeIsNotValid: string;
|
|
28
|
+
CodeIsLessThan3Digits: string;
|
|
29
|
+
CodeMustBe3Digits: string;
|
|
30
|
+
AmexCodeMustBe4Digits: string;
|
|
31
|
+
};
|
|
32
|
+
CardHolderName: {
|
|
33
|
+
NotValidCardHolderName: string;
|
|
34
|
+
CharactersMoreThan100: string;
|
|
35
|
+
};
|
|
36
|
+
CurrencyConversion: {
|
|
37
|
+
Required: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
footer: {
|
|
41
|
+
"ssl-msg-alt": string;
|
|
42
|
+
"ssl-msg": string;
|
|
43
|
+
"security-msg-alt": string;
|
|
44
|
+
"security-msg": string;
|
|
45
|
+
};
|
|
46
|
+
tooltip: {
|
|
47
|
+
title: string;
|
|
48
|
+
"aria-label": string;
|
|
49
|
+
text: string;
|
|
50
|
+
};
|
|
51
|
+
"other-cards-label": string;
|
|
52
|
+
QR: {
|
|
53
|
+
scanRqCode: string;
|
|
54
|
+
payInApp: string;
|
|
55
|
+
amount: {
|
|
56
|
+
"aria-label": string;
|
|
57
|
+
};
|
|
58
|
+
qrImage: {
|
|
59
|
+
alt: string;
|
|
60
|
+
"aria-label": string;
|
|
61
|
+
};
|
|
62
|
+
timer: {
|
|
63
|
+
text: string;
|
|
64
|
+
minutes: string;
|
|
65
|
+
seconds: string;
|
|
66
|
+
"icon-alt": string;
|
|
67
|
+
};
|
|
68
|
+
expiredScreen: {
|
|
69
|
+
title: string;
|
|
70
|
+
alt: string;
|
|
71
|
+
text: string;
|
|
72
|
+
};
|
|
73
|
+
button: {
|
|
74
|
+
text: string;
|
|
75
|
+
"aria-label": string;
|
|
76
|
+
};
|
|
77
|
+
loading: string;
|
|
78
|
+
redirectScreen: {
|
|
79
|
+
redirectingToPaymentPageMessage: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
apms: {
|
|
83
|
+
button: {
|
|
84
|
+
getAriaLabel: (paymentMethod: string) => string;
|
|
85
|
+
};
|
|
86
|
+
redirectToBank: string;
|
|
87
|
+
};
|
|
88
|
+
dcc: {
|
|
89
|
+
label: string;
|
|
90
|
+
additionalInfo: (currency: string, exchangeRate: string, payerCurrency: string, marginRatePercentage: string) => string;
|
|
91
|
+
cardCurrency: {
|
|
92
|
+
tooltip: (payerCurrency: string, exchangeRateSource: string, exchangeRateTimeCreated: string) => string;
|
|
93
|
+
"aria-label": string;
|
|
94
|
+
};
|
|
95
|
+
merchantCurrency: {
|
|
96
|
+
tooltip: (exchangeRateSource: string, exchangeRateTimeCreated: string) => string;
|
|
97
|
+
"aria-label": string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
orderInformation: {
|
|
101
|
+
amount: string;
|
|
102
|
+
orderReference: string;
|
|
103
|
+
};
|
|
104
|
+
bankSelection: {
|
|
105
|
+
pleaseSelectYourPreferredBank: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export default en;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
declare const en: {
|
|
2
|
+
labels: {
|
|
3
|
+
"card-number": string;
|
|
4
|
+
"card-expiration": string;
|
|
5
|
+
"card-cvv": string;
|
|
6
|
+
"card-holder-name": string;
|
|
7
|
+
submit: string;
|
|
8
|
+
};
|
|
9
|
+
values: {
|
|
10
|
+
"card-track": string;
|
|
11
|
+
submit: string;
|
|
12
|
+
};
|
|
13
|
+
validationMessages: {
|
|
14
|
+
CardNumber: {
|
|
15
|
+
Required: string;
|
|
16
|
+
CharactersLessThan12: string;
|
|
17
|
+
NumberIsNotValid: string;
|
|
18
|
+
NotAllowedCardType: string;
|
|
19
|
+
};
|
|
20
|
+
CardExpiration: {
|
|
21
|
+
NotCompleted: string;
|
|
22
|
+
YearNotValid: string;
|
|
23
|
+
MonthNotValid: string;
|
|
24
|
+
ExpiryDateNotValid: string;
|
|
25
|
+
};
|
|
26
|
+
CardCvv: {
|
|
27
|
+
CodeIsNotValid: string;
|
|
28
|
+
CodeIsLessThan3Digits: string;
|
|
29
|
+
CodeMustBe3Digits: string;
|
|
30
|
+
AmexCodeMustBe4Digits: string;
|
|
31
|
+
};
|
|
32
|
+
CardHolderName: {
|
|
33
|
+
NotValidCardHolderName: string;
|
|
34
|
+
CharactersMoreThan100: string;
|
|
35
|
+
};
|
|
36
|
+
CurrencyConversion: {
|
|
37
|
+
Required: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
footer: {
|
|
41
|
+
"ssl-msg-alt": string;
|
|
42
|
+
"ssl-msg": string;
|
|
43
|
+
"security-msg-alt": string;
|
|
44
|
+
"security-msg": string;
|
|
45
|
+
};
|
|
46
|
+
tooltip: {
|
|
47
|
+
title: string;
|
|
48
|
+
"aria-label": string;
|
|
49
|
+
text: string;
|
|
50
|
+
};
|
|
51
|
+
"other-cards-label": string;
|
|
52
|
+
QR: {
|
|
53
|
+
scanRqCode: string;
|
|
54
|
+
payInApp: string;
|
|
55
|
+
amount: {
|
|
56
|
+
"aria-label": string;
|
|
57
|
+
};
|
|
58
|
+
qrImage: {
|
|
59
|
+
alt: string;
|
|
60
|
+
"aria-label": string;
|
|
61
|
+
};
|
|
62
|
+
timer: {
|
|
63
|
+
text: string;
|
|
64
|
+
minutes: string;
|
|
65
|
+
seconds: string;
|
|
66
|
+
"icon-alt": string;
|
|
67
|
+
};
|
|
68
|
+
expiredScreen: {
|
|
69
|
+
title: string;
|
|
70
|
+
alt: string;
|
|
71
|
+
text: string;
|
|
72
|
+
};
|
|
73
|
+
button: {
|
|
74
|
+
text: string;
|
|
75
|
+
"aria-label": string;
|
|
76
|
+
};
|
|
77
|
+
loading: string;
|
|
78
|
+
redirectScreen: {
|
|
79
|
+
redirectingToPaymentPageMessage: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
apms: {
|
|
83
|
+
button: {
|
|
84
|
+
getAriaLabel: (paymentMethod: string) => string;
|
|
85
|
+
};
|
|
86
|
+
redirectToBank: string;
|
|
87
|
+
};
|
|
88
|
+
dcc: {
|
|
89
|
+
label: string;
|
|
90
|
+
additionalInfo: (currency: string, exchangeRate: string, payerCurrency: string, marginRatePercentage: string) => string;
|
|
91
|
+
cardCurrency: {
|
|
92
|
+
tooltip: (payerCurrency: string, exchangeRateSource: string, exchangeRateTimeCreated: string) => string;
|
|
93
|
+
"aria-label": string;
|
|
94
|
+
};
|
|
95
|
+
merchantCurrency: {
|
|
96
|
+
tooltip: (exchangeRateSource: string, exchangeRateTimeCreated: string) => string;
|
|
97
|
+
"aria-label": string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
orderInformation: {
|
|
101
|
+
amount: string;
|
|
102
|
+
orderReference: string;
|
|
103
|
+
};
|
|
104
|
+
bankSelection: {
|
|
105
|
+
pleaseSelectYourPreferredBank: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export default en;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
declare const en: {
|
|
2
|
+
labels: {
|
|
3
|
+
"card-number": string;
|
|
4
|
+
"card-expiration": string;
|
|
5
|
+
"card-cvv": string;
|
|
6
|
+
"card-holder-name": string;
|
|
7
|
+
submit: string;
|
|
8
|
+
};
|
|
9
|
+
values: {
|
|
10
|
+
"card-track": string;
|
|
11
|
+
submit: string;
|
|
12
|
+
};
|
|
13
|
+
validationMessages: {
|
|
14
|
+
CardNumber: {
|
|
15
|
+
Required: string;
|
|
16
|
+
CharactersLessThan12: string;
|
|
17
|
+
NumberIsNotValid: string;
|
|
18
|
+
NotAllowedCardType: string;
|
|
19
|
+
};
|
|
20
|
+
CardExpiration: {
|
|
21
|
+
NotCompleted: string;
|
|
22
|
+
YearNotValid: string;
|
|
23
|
+
MonthNotValid: string;
|
|
24
|
+
ExpiryDateNotValid: string;
|
|
25
|
+
};
|
|
26
|
+
CardCvv: {
|
|
27
|
+
CodeIsNotValid: string;
|
|
28
|
+
CodeIsLessThan3Digits: string;
|
|
29
|
+
CodeMustBe3Digits: string;
|
|
30
|
+
AmexCodeMustBe4Digits: string;
|
|
31
|
+
};
|
|
32
|
+
CardHolderName: {
|
|
33
|
+
NotValidCardHolderName: string;
|
|
34
|
+
CharactersMoreThan100: string;
|
|
35
|
+
};
|
|
36
|
+
CurrencyConversion: {
|
|
37
|
+
Required: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
footer: {
|
|
41
|
+
"ssl-msg-alt": string;
|
|
42
|
+
"ssl-msg": string;
|
|
43
|
+
"security-msg-alt": string;
|
|
44
|
+
"security-msg": string;
|
|
45
|
+
};
|
|
46
|
+
tooltip: {
|
|
47
|
+
title: string;
|
|
48
|
+
"aria-label": string;
|
|
49
|
+
text: string;
|
|
50
|
+
};
|
|
51
|
+
"other-cards-label": string;
|
|
52
|
+
QR: {
|
|
53
|
+
scanRqCode: string;
|
|
54
|
+
payInApp: string;
|
|
55
|
+
amount: {
|
|
56
|
+
"aria-label": string;
|
|
57
|
+
};
|
|
58
|
+
qrImage: {
|
|
59
|
+
alt: string;
|
|
60
|
+
"aria-label": string;
|
|
61
|
+
};
|
|
62
|
+
timer: {
|
|
63
|
+
text: string;
|
|
64
|
+
minutes: string;
|
|
65
|
+
seconds: string;
|
|
66
|
+
"icon-alt": string;
|
|
67
|
+
};
|
|
68
|
+
expiredScreen: {
|
|
69
|
+
title: string;
|
|
70
|
+
alt: string;
|
|
71
|
+
text: string;
|
|
72
|
+
};
|
|
73
|
+
button: {
|
|
74
|
+
text: string;
|
|
75
|
+
"aria-label": string;
|
|
76
|
+
};
|
|
77
|
+
loading: string;
|
|
78
|
+
redirectScreen: {
|
|
79
|
+
redirectingToPaymentPageMessage: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
apms: {
|
|
83
|
+
button: {
|
|
84
|
+
getAriaLabel: (paymentMethod: string) => string;
|
|
85
|
+
};
|
|
86
|
+
redirectToBank: string;
|
|
87
|
+
};
|
|
88
|
+
dcc: {
|
|
89
|
+
label: string;
|
|
90
|
+
additionalInfo: (currency: string, exchangeRate: string, payerCurrency: string, marginRatePercentage: string) => string;
|
|
91
|
+
cardCurrency: {
|
|
92
|
+
tooltip: (payerCurrency: string, exchangeRateSource: string, exchangeRateTimeCreated: string) => string;
|
|
93
|
+
"aria-label": string;
|
|
94
|
+
};
|
|
95
|
+
merchantCurrency: {
|
|
96
|
+
tooltip: (exchangeRateSource: string, exchangeRateTimeCreated: string) => string;
|
|
97
|
+
"aria-label": string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
orderInformation: {
|
|
101
|
+
amount: string;
|
|
102
|
+
orderReference: string;
|
|
103
|
+
};
|
|
104
|
+
bankSelection: {
|
|
105
|
+
pleaseSelectYourPreferredBank: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export default en;
|
package/types/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.1.
|
|
1
|
+
declare const _default: "4.1.8";
|
|
2
2
|
export default _default;
|
package/types/ui/form/index.d.ts
CHANGED
|
@@ -164,6 +164,9 @@ export declare const fieldStyles: () => {
|
|
|
164
164
|
"background-size": string;
|
|
165
165
|
"background-position-y": string;
|
|
166
166
|
};
|
|
167
|
+
"img.card-number-icon.card-type-carnet": {
|
|
168
|
+
"background-image": string;
|
|
169
|
+
};
|
|
167
170
|
".card-number::-ms-clear": {
|
|
168
171
|
display: string;
|
|
169
172
|
};
|
|
@@ -300,6 +303,9 @@ export declare const fieldStyles: () => {
|
|
|
300
303
|
"img.card-number-icon.card-type-diners": {
|
|
301
304
|
"background-image": string;
|
|
302
305
|
};
|
|
306
|
+
"img.card-number-icon.card-type-carnet": {
|
|
307
|
+
"background-image": string;
|
|
308
|
+
};
|
|
303
309
|
".card-number::-ms-clear": {
|
|
304
310
|
display: string;
|
|
305
311
|
};
|
|
@@ -436,6 +442,16 @@ export declare const fieldStyles: () => {
|
|
|
436
442
|
right: string;
|
|
437
443
|
};
|
|
438
444
|
"img.card-number-icon.valid.card-type-jcb": {
|
|
445
|
+
/**
|
|
446
|
+
* Sets an event listener for an event type
|
|
447
|
+
*
|
|
448
|
+
* @param fieldTypeOrEventName The field type on which the listener should
|
|
449
|
+
* be applied, or the type of event that should trigger the listener
|
|
450
|
+
* @param eventNameOrListener The type of event that should trigger the
|
|
451
|
+
* listener, or the listener function
|
|
452
|
+
* @param listener The listener function when both field type and event type
|
|
453
|
+
* are provided
|
|
454
|
+
*/
|
|
439
455
|
background: string;
|
|
440
456
|
"background-size": string;
|
|
441
457
|
"background-position-y": string;
|
|
@@ -450,6 +466,9 @@ export declare const fieldStyles: () => {
|
|
|
450
466
|
"background-size": string;
|
|
451
467
|
"background-position": string;
|
|
452
468
|
};
|
|
469
|
+
"img.card-number-icon.card-type-carnet": {
|
|
470
|
+
"background-image": string;
|
|
471
|
+
};
|
|
453
472
|
".card-number::-ms-clear": {
|
|
454
473
|
display: string;
|
|
455
474
|
};
|
|
@@ -680,6 +699,7 @@ export declare const parentStyles: () => {
|
|
|
680
699
|
right: string;
|
|
681
700
|
};
|
|
682
701
|
".secure-payment-form .open-banking-button": {
|
|
702
|
+
background: string;
|
|
683
703
|
position: string;
|
|
684
704
|
color: string;
|
|
685
705
|
height: string;
|
|
@@ -698,8 +718,8 @@ export declare const parentStyles: () => {
|
|
|
698
718
|
"outline-offset": string;
|
|
699
719
|
};
|
|
700
720
|
".secure-payment-form .blik-button": {
|
|
701
|
-
position: string;
|
|
702
721
|
background: string;
|
|
722
|
+
position: string;
|
|
703
723
|
color: string;
|
|
704
724
|
height: string;
|
|
705
725
|
width: string;
|
|
@@ -717,7 +737,6 @@ export declare const parentStyles: () => {
|
|
|
717
737
|
"outline-offset": string;
|
|
718
738
|
};
|
|
719
739
|
".secure-payment-form .blik-button::before": {
|
|
720
|
-
content: string;
|
|
721
740
|
width: string;
|
|
722
741
|
height: string;
|
|
723
742
|
position: string;
|
|
@@ -963,7 +982,9 @@ export declare const parentStyles: () => {
|
|
|
963
982
|
"justify-content": string;
|
|
964
983
|
};
|
|
965
984
|
".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
|
|
966
|
-
margin: string;
|
|
985
|
+
margin: string; /**
|
|
986
|
+
* Deletes all hosted fields within the form
|
|
987
|
+
*/
|
|
967
988
|
};
|
|
968
989
|
".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
|
|
969
990
|
width: string;
|
|
@@ -1113,9 +1134,6 @@ export declare const parentStyles: () => {
|
|
|
1113
1134
|
background: string;
|
|
1114
1135
|
width: string;
|
|
1115
1136
|
left: string;
|
|
1116
|
-
/**
|
|
1117
|
-
* Represents logic surrounding a group of hosted fields.
|
|
1118
|
-
*/
|
|
1119
1137
|
"margin-left": string;
|
|
1120
1138
|
border: string;
|
|
1121
1139
|
"border-width": string;
|
|
@@ -1396,7 +1414,9 @@ export declare const parentStyles: () => {
|
|
|
1396
1414
|
"font-size": string;
|
|
1397
1415
|
"font-weight": string;
|
|
1398
1416
|
"font-family": string;
|
|
1399
|
-
color: string;
|
|
1417
|
+
color: string; /**
|
|
1418
|
+
* Deletes all hosted fields within the form
|
|
1419
|
+
*/
|
|
1400
1420
|
"line-height": string;
|
|
1401
1421
|
display: string;
|
|
1402
1422
|
"vertical-align": string;
|
|
@@ -1696,6 +1716,7 @@ export declare const parentStyles: () => {
|
|
|
1696
1716
|
right: string;
|
|
1697
1717
|
};
|
|
1698
1718
|
".secure-payment-form .open-banking-button": {
|
|
1719
|
+
background: string;
|
|
1699
1720
|
position: string;
|
|
1700
1721
|
color: string;
|
|
1701
1722
|
height: string;
|
|
@@ -1714,8 +1735,8 @@ export declare const parentStyles: () => {
|
|
|
1714
1735
|
"outline-offset": string;
|
|
1715
1736
|
};
|
|
1716
1737
|
".secure-payment-form .blik-button": {
|
|
1717
|
-
position: string;
|
|
1718
1738
|
background: string;
|
|
1739
|
+
position: string;
|
|
1719
1740
|
color: string;
|
|
1720
1741
|
height: string;
|
|
1721
1742
|
width: string;
|
|
@@ -1733,7 +1754,6 @@ export declare const parentStyles: () => {
|
|
|
1733
1754
|
"outline-offset": string;
|
|
1734
1755
|
};
|
|
1735
1756
|
".secure-payment-form .blik-button::before": {
|
|
1736
|
-
content: string;
|
|
1737
1757
|
width: string;
|
|
1738
1758
|
height: string;
|
|
1739
1759
|
position: string;
|
|
@@ -1960,7 +1980,9 @@ export declare const parentStyles: () => {
|
|
|
1960
1980
|
"justify-content": string;
|
|
1961
1981
|
};
|
|
1962
1982
|
".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
|
|
1963
|
-
margin: string;
|
|
1983
|
+
margin: string; /**
|
|
1984
|
+
* Deletes all hosted fields within the form
|
|
1985
|
+
*/
|
|
1964
1986
|
};
|
|
1965
1987
|
".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
|
|
1966
1988
|
width: string;
|
|
@@ -2135,9 +2157,6 @@ export declare const parentStyles: () => {
|
|
|
2135
2157
|
background: string;
|
|
2136
2158
|
width: string;
|
|
2137
2159
|
left: string;
|
|
2138
|
-
/**
|
|
2139
|
-
* Represents logic surrounding a group of hosted fields.
|
|
2140
|
-
*/
|
|
2141
2160
|
"margin-left": string;
|
|
2142
2161
|
border: string;
|
|
2143
2162
|
"border-width": string;
|
|
@@ -2435,7 +2454,8 @@ export declare const parentStyles: () => {
|
|
|
2435
2454
|
};
|
|
2436
2455
|
".secure-payment-form .installment-field-value-item": {
|
|
2437
2456
|
color: string;
|
|
2438
|
-
"font-style": string;
|
|
2457
|
+
"font-style": string;
|
|
2458
|
+
/**
|
|
2439
2459
|
* Sets an event listener for an event type
|
|
2440
2460
|
*
|
|
2441
2461
|
* @param fieldTypeOrEventName The field type on which the listener should
|
|
@@ -2717,6 +2737,10 @@ export declare const parentStyles: () => {
|
|
|
2717
2737
|
"border-right": string;
|
|
2718
2738
|
"border-bottom": string;
|
|
2719
2739
|
};
|
|
2740
|
+
"@font-face": {
|
|
2741
|
+
"font-family": string;
|
|
2742
|
+
src: string;
|
|
2743
|
+
};
|
|
2720
2744
|
".secure-payment-form": {
|
|
2721
2745
|
display: string;
|
|
2722
2746
|
"-ms-flex-wrap": string;
|
|
@@ -2782,11 +2806,6 @@ export declare const parentStyles: () => {
|
|
|
2782
2806
|
display: string;
|
|
2783
2807
|
"justify-content": string;
|
|
2784
2808
|
};
|
|
2785
|
-
/**
|
|
2786
|
-
* Appends additional CSS rules to the group of hosted fields
|
|
2787
|
-
*
|
|
2788
|
-
* @param json New CSS rules
|
|
2789
|
-
*/
|
|
2790
2809
|
".secure-payment-form div[class$='-logo'] .security-msg": {
|
|
2791
2810
|
color: string;
|
|
2792
2811
|
"font-size": string;
|
|
@@ -2797,7 +2816,12 @@ export declare const parentStyles: () => {
|
|
|
2797
2816
|
};
|
|
2798
2817
|
".secure-payment-form div[class$='-logo'] .security-msg strong": {
|
|
2799
2818
|
"white-space": string;
|
|
2800
|
-
"font-weight": string;
|
|
2819
|
+
"font-weight": string; /**
|
|
2820
|
+
* Sets a special-case event listener that fires when all hosted
|
|
2821
|
+
* fields in a form have registered / loaded
|
|
2822
|
+
*
|
|
2823
|
+
* @param fn The listener function
|
|
2824
|
+
*/
|
|
2801
2825
|
display: string;
|
|
2802
2826
|
};
|
|
2803
2827
|
".secure-payment-form div[class$='-logo'] img": {
|
|
@@ -2830,19 +2854,13 @@ export declare const parentStyles: () => {
|
|
|
2830
2854
|
"-o-transform": string;
|
|
2831
2855
|
transform: string;
|
|
2832
2856
|
margin: string;
|
|
2833
|
-
"font-family": string;
|
|
2834
|
-
* Deletes all hosted fields within the form
|
|
2835
|
-
*/
|
|
2857
|
+
"font-family": string;
|
|
2836
2858
|
"font-size": string;
|
|
2837
2859
|
"white-space": string;
|
|
2838
2860
|
};
|
|
2839
2861
|
".secure-payment-form .hidden": {
|
|
2840
2862
|
display: string;
|
|
2841
2863
|
};
|
|
2842
|
-
"@font-face": {
|
|
2843
|
-
"font-family": string;
|
|
2844
|
-
src: string;
|
|
2845
|
-
};
|
|
2846
2864
|
"@media(min-width: 800px)": {
|
|
2847
2865
|
".secure-payment-form .credit-card-card-expiration": {
|
|
2848
2866
|
flex: string;
|
|
@@ -3104,7 +3122,9 @@ export declare const parentStyles: () => {
|
|
|
3104
3122
|
"justify-content": string;
|
|
3105
3123
|
};
|
|
3106
3124
|
".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
|
|
3107
|
-
margin: string;
|
|
3125
|
+
margin: string; /**
|
|
3126
|
+
* Deletes all hosted fields within the form
|
|
3127
|
+
*/
|
|
3108
3128
|
};
|
|
3109
3129
|
".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
|
|
3110
3130
|
width: string;
|
|
@@ -3380,9 +3400,6 @@ export declare const parentStyles: () => {
|
|
|
3380
3400
|
background: string;
|
|
3381
3401
|
width: string;
|
|
3382
3402
|
left: string;
|
|
3383
|
-
/**
|
|
3384
|
-
* Represents logic surrounding a group of hosted fields.
|
|
3385
|
-
*/
|
|
3386
3403
|
"margin-left": string;
|
|
3387
3404
|
border: string;
|
|
3388
3405
|
"border-width": string;
|