@globalpayments/js 4.1.6 → 4.1.7
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/styles/default.d.ts +2 -2
- package/types/internal/lib/styles/gp-default.d.ts +6 -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/themes/brand-themes/base/base-theme.d.ts +2 -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 +36 -29
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.7/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.7",
|
|
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;
|
|
@@ -385,6 +385,7 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
385
385
|
right: string;
|
|
386
386
|
};
|
|
387
387
|
".secure-payment-form .open-banking-button": {
|
|
388
|
+
background: string;
|
|
388
389
|
position: string;
|
|
389
390
|
color: string;
|
|
390
391
|
height: string;
|
|
@@ -403,8 +404,8 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
403
404
|
"outline-offset": string;
|
|
404
405
|
};
|
|
405
406
|
".secure-payment-form .blik-button": {
|
|
406
|
-
position: string;
|
|
407
407
|
background: string;
|
|
408
|
+
position: string;
|
|
408
409
|
color: string;
|
|
409
410
|
height: string;
|
|
410
411
|
width: string;
|
|
@@ -422,7 +423,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
422
423
|
"outline-offset": string;
|
|
423
424
|
};
|
|
424
425
|
".secure-payment-form .blik-button::before": {
|
|
425
|
-
content: string;
|
|
426
426
|
width: string;
|
|
427
427
|
height: string;
|
|
428
428
|
position: string;
|
|
@@ -351,6 +351,7 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
351
351
|
right: string;
|
|
352
352
|
};
|
|
353
353
|
".secure-payment-form .open-banking-button": {
|
|
354
|
+
background: string;
|
|
354
355
|
position: string;
|
|
355
356
|
color: string;
|
|
356
357
|
height: string;
|
|
@@ -369,8 +370,8 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
369
370
|
"outline-offset": string;
|
|
370
371
|
};
|
|
371
372
|
".secure-payment-form .blik-button": {
|
|
372
|
-
position: string;
|
|
373
373
|
background: string;
|
|
374
|
+
position: string;
|
|
374
375
|
color: string;
|
|
375
376
|
height: string;
|
|
376
377
|
width: string;
|
|
@@ -388,7 +389,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
388
389
|
"outline-offset": string;
|
|
389
390
|
};
|
|
390
391
|
".secure-payment-form .blik-button::before": {
|
|
391
|
-
content: string;
|
|
392
392
|
width: string;
|
|
393
393
|
height: string;
|
|
394
394
|
position: string;
|
|
@@ -1360,6 +1360,10 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
1360
1360
|
"border-right": string;
|
|
1361
1361
|
"border-bottom": string;
|
|
1362
1362
|
};
|
|
1363
|
+
"@font-face": {
|
|
1364
|
+
"font-family": string;
|
|
1365
|
+
src: string;
|
|
1366
|
+
};
|
|
1363
1367
|
".secure-payment-form": {
|
|
1364
1368
|
display: string;
|
|
1365
1369
|
"-ms-flex-wrap": string;
|
|
@@ -1475,10 +1479,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
1475
1479
|
".secure-payment-form .hidden": {
|
|
1476
1480
|
display: string;
|
|
1477
1481
|
};
|
|
1478
|
-
"@font-face": {
|
|
1479
|
-
"font-family": string;
|
|
1480
|
-
src: string;
|
|
1481
|
-
};
|
|
1482
1482
|
"@media(min-width: 800px)": {
|
|
1483
1483
|
".secure-payment-form .credit-card-card-expiration": {
|
|
1484
1484
|
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;
|
|
@@ -499,6 +499,7 @@ declare const parentStyles: (assetBaseUrl: string, themePreset?: IThemePreset |
|
|
|
499
499
|
right: string;
|
|
500
500
|
};
|
|
501
501
|
".secure-payment-form .open-banking-button": {
|
|
502
|
+
background: string;
|
|
502
503
|
position: string;
|
|
503
504
|
color: string;
|
|
504
505
|
height: string;
|
|
@@ -517,8 +518,8 @@ declare const parentStyles: (assetBaseUrl: string, themePreset?: IThemePreset |
|
|
|
517
518
|
"outline-offset": string;
|
|
518
519
|
};
|
|
519
520
|
".secure-payment-form .blik-button": {
|
|
520
|
-
position: string;
|
|
521
521
|
background: string;
|
|
522
|
+
position: string;
|
|
522
523
|
color: string;
|
|
523
524
|
height: string;
|
|
524
525
|
width: string;
|
|
@@ -536,7 +537,6 @@ declare const parentStyles: (assetBaseUrl: string, themePreset?: IThemePreset |
|
|
|
536
537
|
"outline-offset": string;
|
|
537
538
|
};
|
|
538
539
|
".secure-payment-form .blik-button::before": {
|
|
539
|
-
content: string;
|
|
540
540
|
width: string;
|
|
541
541
|
height: string;
|
|
542
542
|
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.7";
|
|
2
2
|
export default _default;
|
package/types/ui/form/index.d.ts
CHANGED
|
@@ -436,6 +436,16 @@ export declare const fieldStyles: () => {
|
|
|
436
436
|
right: string;
|
|
437
437
|
};
|
|
438
438
|
"img.card-number-icon.valid.card-type-jcb": {
|
|
439
|
+
/**
|
|
440
|
+
* Sets an event listener for an event type
|
|
441
|
+
*
|
|
442
|
+
* @param fieldTypeOrEventName The field type on which the listener should
|
|
443
|
+
* be applied, or the type of event that should trigger the listener
|
|
444
|
+
* @param eventNameOrListener The type of event that should trigger the
|
|
445
|
+
* listener, or the listener function
|
|
446
|
+
* @param listener The listener function when both field type and event type
|
|
447
|
+
* are provided
|
|
448
|
+
*/
|
|
439
449
|
background: string;
|
|
440
450
|
"background-size": string;
|
|
441
451
|
"background-position-y": string;
|
|
@@ -680,6 +690,7 @@ export declare const parentStyles: () => {
|
|
|
680
690
|
right: string;
|
|
681
691
|
};
|
|
682
692
|
".secure-payment-form .open-banking-button": {
|
|
693
|
+
background: string;
|
|
683
694
|
position: string;
|
|
684
695
|
color: string;
|
|
685
696
|
height: string;
|
|
@@ -698,8 +709,8 @@ export declare const parentStyles: () => {
|
|
|
698
709
|
"outline-offset": string;
|
|
699
710
|
};
|
|
700
711
|
".secure-payment-form .blik-button": {
|
|
701
|
-
position: string;
|
|
702
712
|
background: string;
|
|
713
|
+
position: string;
|
|
703
714
|
color: string;
|
|
704
715
|
height: string;
|
|
705
716
|
width: string;
|
|
@@ -717,7 +728,6 @@ export declare const parentStyles: () => {
|
|
|
717
728
|
"outline-offset": string;
|
|
718
729
|
};
|
|
719
730
|
".secure-payment-form .blik-button::before": {
|
|
720
|
-
content: string;
|
|
721
731
|
width: string;
|
|
722
732
|
height: string;
|
|
723
733
|
position: string;
|
|
@@ -963,7 +973,9 @@ export declare const parentStyles: () => {
|
|
|
963
973
|
"justify-content": string;
|
|
964
974
|
};
|
|
965
975
|
".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
|
|
966
|
-
margin: string;
|
|
976
|
+
margin: string; /**
|
|
977
|
+
* Deletes all hosted fields within the form
|
|
978
|
+
*/
|
|
967
979
|
};
|
|
968
980
|
".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
|
|
969
981
|
width: string;
|
|
@@ -1113,9 +1125,6 @@ export declare const parentStyles: () => {
|
|
|
1113
1125
|
background: string;
|
|
1114
1126
|
width: string;
|
|
1115
1127
|
left: string;
|
|
1116
|
-
/**
|
|
1117
|
-
* Represents logic surrounding a group of hosted fields.
|
|
1118
|
-
*/
|
|
1119
1128
|
"margin-left": string;
|
|
1120
1129
|
border: string;
|
|
1121
1130
|
"border-width": string;
|
|
@@ -1375,6 +1384,12 @@ export declare const parentStyles: () => {
|
|
|
1375
1384
|
"margin-right": string;
|
|
1376
1385
|
float: string;
|
|
1377
1386
|
};
|
|
1387
|
+
/**
|
|
1388
|
+
* Sets a special-case event listener that fires when all hosted
|
|
1389
|
+
* fields in a form have registered / loaded
|
|
1390
|
+
*
|
|
1391
|
+
* @param fn The listener function
|
|
1392
|
+
*/
|
|
1378
1393
|
".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
|
|
1379
1394
|
border: string;
|
|
1380
1395
|
"border-radius": string;
|
|
@@ -1696,6 +1711,7 @@ export declare const parentStyles: () => {
|
|
|
1696
1711
|
right: string;
|
|
1697
1712
|
};
|
|
1698
1713
|
".secure-payment-form .open-banking-button": {
|
|
1714
|
+
background: string;
|
|
1699
1715
|
position: string;
|
|
1700
1716
|
color: string;
|
|
1701
1717
|
height: string;
|
|
@@ -1714,8 +1730,8 @@ export declare const parentStyles: () => {
|
|
|
1714
1730
|
"outline-offset": string;
|
|
1715
1731
|
};
|
|
1716
1732
|
".secure-payment-form .blik-button": {
|
|
1717
|
-
position: string;
|
|
1718
1733
|
background: string;
|
|
1734
|
+
position: string;
|
|
1719
1735
|
color: string;
|
|
1720
1736
|
height: string;
|
|
1721
1737
|
width: string;
|
|
@@ -1733,7 +1749,6 @@ export declare const parentStyles: () => {
|
|
|
1733
1749
|
"outline-offset": string;
|
|
1734
1750
|
};
|
|
1735
1751
|
".secure-payment-form .blik-button::before": {
|
|
1736
|
-
content: string;
|
|
1737
1752
|
width: string;
|
|
1738
1753
|
height: string;
|
|
1739
1754
|
position: string;
|
|
@@ -1960,7 +1975,9 @@ export declare const parentStyles: () => {
|
|
|
1960
1975
|
"justify-content": string;
|
|
1961
1976
|
};
|
|
1962
1977
|
".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
|
|
1963
|
-
margin: string;
|
|
1978
|
+
margin: string; /**
|
|
1979
|
+
* Deletes all hosted fields within the form
|
|
1980
|
+
*/
|
|
1964
1981
|
};
|
|
1965
1982
|
".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
|
|
1966
1983
|
width: string;
|
|
@@ -2135,9 +2152,6 @@ export declare const parentStyles: () => {
|
|
|
2135
2152
|
background: string;
|
|
2136
2153
|
width: string;
|
|
2137
2154
|
left: string;
|
|
2138
|
-
/**
|
|
2139
|
-
* Represents logic surrounding a group of hosted fields.
|
|
2140
|
-
*/
|
|
2141
2155
|
"margin-left": string;
|
|
2142
2156
|
border: string;
|
|
2143
2157
|
"border-width": string;
|
|
@@ -2435,7 +2449,8 @@ export declare const parentStyles: () => {
|
|
|
2435
2449
|
};
|
|
2436
2450
|
".secure-payment-form .installment-field-value-item": {
|
|
2437
2451
|
color: string;
|
|
2438
|
-
"font-style": string;
|
|
2452
|
+
"font-style": string;
|
|
2453
|
+
/**
|
|
2439
2454
|
* Sets an event listener for an event type
|
|
2440
2455
|
*
|
|
2441
2456
|
* @param fieldTypeOrEventName The field type on which the listener should
|
|
@@ -2717,6 +2732,10 @@ export declare const parentStyles: () => {
|
|
|
2717
2732
|
"border-right": string;
|
|
2718
2733
|
"border-bottom": string;
|
|
2719
2734
|
};
|
|
2735
|
+
"@font-face": {
|
|
2736
|
+
"font-family": string;
|
|
2737
|
+
src: string;
|
|
2738
|
+
};
|
|
2720
2739
|
".secure-payment-form": {
|
|
2721
2740
|
display: string;
|
|
2722
2741
|
"-ms-flex-wrap": string;
|
|
@@ -2782,11 +2801,6 @@ export declare const parentStyles: () => {
|
|
|
2782
2801
|
display: string;
|
|
2783
2802
|
"justify-content": string;
|
|
2784
2803
|
};
|
|
2785
|
-
/**
|
|
2786
|
-
* Appends additional CSS rules to the group of hosted fields
|
|
2787
|
-
*
|
|
2788
|
-
* @param json New CSS rules
|
|
2789
|
-
*/
|
|
2790
2804
|
".secure-payment-form div[class$='-logo'] .security-msg": {
|
|
2791
2805
|
color: string;
|
|
2792
2806
|
"font-size": string;
|
|
@@ -2830,19 +2844,13 @@ export declare const parentStyles: () => {
|
|
|
2830
2844
|
"-o-transform": string;
|
|
2831
2845
|
transform: string;
|
|
2832
2846
|
margin: string;
|
|
2833
|
-
"font-family": string;
|
|
2834
|
-
* Deletes all hosted fields within the form
|
|
2835
|
-
*/
|
|
2847
|
+
"font-family": string;
|
|
2836
2848
|
"font-size": string;
|
|
2837
2849
|
"white-space": string;
|
|
2838
2850
|
};
|
|
2839
2851
|
".secure-payment-form .hidden": {
|
|
2840
2852
|
display: string;
|
|
2841
2853
|
};
|
|
2842
|
-
"@font-face": {
|
|
2843
|
-
"font-family": string;
|
|
2844
|
-
src: string;
|
|
2845
|
-
};
|
|
2846
2854
|
"@media(min-width: 800px)": {
|
|
2847
2855
|
".secure-payment-form .credit-card-card-expiration": {
|
|
2848
2856
|
flex: string;
|
|
@@ -3104,7 +3112,9 @@ export declare const parentStyles: () => {
|
|
|
3104
3112
|
"justify-content": string;
|
|
3105
3113
|
};
|
|
3106
3114
|
".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
|
|
3107
|
-
margin: string;
|
|
3115
|
+
margin: string; /**
|
|
3116
|
+
* Deletes all hosted fields within the form
|
|
3117
|
+
*/
|
|
3108
3118
|
};
|
|
3109
3119
|
".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
|
|
3110
3120
|
width: string;
|
|
@@ -3380,9 +3390,6 @@ export declare const parentStyles: () => {
|
|
|
3380
3390
|
background: string;
|
|
3381
3391
|
width: string;
|
|
3382
3392
|
left: string;
|
|
3383
|
-
/**
|
|
3384
|
-
* Represents logic surrounding a group of hosted fields.
|
|
3385
|
-
*/
|
|
3386
3393
|
"margin-left": string;
|
|
3387
3394
|
border: string;
|
|
3388
3395
|
"border-width": string;
|