@globalpayments/js 4.0.9 → 4.0.13
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 +1 -1
- package/types/internal/lib/detectLanguage.d.ts +1 -0
- package/types/internal/lib/enums.d.ts +8 -0
- package/types/internal/lib/set-headers.d.ts +7 -0
- package/types/internal/lib/styles/default.d.ts +24 -1
- package/types/internal/lib/styles/gp-default.d.ts +24 -1
- package/types/internal/lib/styles/payment-methods/common.d.ts +23 -0
- package/types/internal/lib/styles/payment-methods/paypal.d.ts +26 -0
- package/types/internal/lib/styles/simple.d.ts +0 -1
- package/types/internal/lib/translations/cs.d.ts +58 -0
- package/types/internal/lib/translations/de.d.ts +58 -0
- package/types/internal/lib/translations/el.d.ts +58 -0
- package/types/internal/lib/translations/en.d.ts +1 -1
- package/types/internal/lib/translations/es.d.ts +58 -0
- package/types/internal/lib/translations/fr.d.ts +4 -31
- package/types/internal/lib/translations/hr.d.ts +58 -0
- package/types/internal/lib/translations/hu.d.ts +58 -0
- package/types/internal/lib/translations/it.d.ts +58 -0
- package/types/internal/lib/translations/ja.d.ts +58 -0
- package/types/internal/lib/translations/mt.d.ts +58 -0
- package/types/internal/lib/translations/nl.d.ts +58 -0
- package/types/internal/lib/translations/pl.d.ts +58 -0
- package/types/internal/lib/translations/pt.d.ts +58 -0
- package/types/internal/lib/translations/ro.d.ts +58 -0
- package/types/internal/lib/translations/ru.d.ts +58 -0
- package/types/internal/lib/translations/sk.d.ts +58 -0
- package/types/internal/lib/translations/sl.d.ts +58 -0
- package/types/internal/lib/translations/sv.d.ts +58 -0
- package/types/internal/lib/translations/tr.d.ts +58 -0
- package/types/internal/lib/translations/uk.d.ts +58 -0
- package/types/internal/lib/translations/vi.d.ts +58 -0
- package/types/internal/lib/translations/zh.d.ts +8 -0
- package/types/lib/version.d.ts +1 -1
- package/types/ui/form/index.d.ts +56 -32
- package/types/ui/iframe-field/payment-methods/action-add.d.ts +3 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const vi: {
|
|
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
|
+
apms: {
|
|
53
|
+
button: {
|
|
54
|
+
getAriaLabel: (paymentMethod: string) => string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export default vi;
|
|
@@ -32,6 +32,9 @@ declare const zh: {
|
|
|
32
32
|
NotValidCardHolderName: string;
|
|
33
33
|
CharactersMoreThan100: string;
|
|
34
34
|
};
|
|
35
|
+
CurrencyConversion: {
|
|
36
|
+
Required: string;
|
|
37
|
+
};
|
|
35
38
|
};
|
|
36
39
|
footer: {
|
|
37
40
|
"ssl-msg-alt": string;
|
|
@@ -75,5 +78,10 @@ declare const zh: {
|
|
|
75
78
|
text: string;
|
|
76
79
|
};
|
|
77
80
|
};
|
|
81
|
+
apms: {
|
|
82
|
+
button: {
|
|
83
|
+
getAriaLabel: (paymentMethod: string) => string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
78
86
|
};
|
|
79
87
|
export default zh;
|
package/types/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.
|
|
1
|
+
declare const _default: "4.0.13";
|
|
2
2
|
export default _default;
|
package/types/ui/form/index.d.ts
CHANGED
|
@@ -424,16 +424,14 @@ export declare const fieldStyles: () => {
|
|
|
424
424
|
"img.card-number-icon.invalid.card-type-mastercard": {
|
|
425
425
|
background: string;
|
|
426
426
|
"background-size": string;
|
|
427
|
+
/**
|
|
428
|
+
* Represents logic surrounding a group of hosted fields.
|
|
429
|
+
*/
|
|
427
430
|
"background-position": string;
|
|
428
431
|
};
|
|
429
432
|
"img.card-number-icon.invalid.card-type-visa": {
|
|
430
433
|
background: string;
|
|
431
|
-
"background-size": string;
|
|
432
|
-
* Instantiates a new UIForm object for a group of hosted fields
|
|
433
|
-
*
|
|
434
|
-
* @param fields Hosted field configuration
|
|
435
|
-
* @param styles Custom CSS configuration
|
|
436
|
-
*/
|
|
434
|
+
"background-size": string;
|
|
437
435
|
"background-position": string;
|
|
438
436
|
};
|
|
439
437
|
"img.card-number-icon.valid.card-type-amex": {
|
|
@@ -587,6 +585,29 @@ export declare const parentStyles: () => {
|
|
|
587
585
|
"font-size": string;
|
|
588
586
|
"line-height": string;
|
|
589
587
|
};
|
|
588
|
+
".secure-payment-form .paypal-button-wrapper": {
|
|
589
|
+
display: string;
|
|
590
|
+
"flex-direction": string;
|
|
591
|
+
"align-items": string;
|
|
592
|
+
};
|
|
593
|
+
".secure-payment-form .paypal-button": {
|
|
594
|
+
position: string;
|
|
595
|
+
background: string;
|
|
596
|
+
height: string;
|
|
597
|
+
border: string;
|
|
598
|
+
width: string;
|
|
599
|
+
"border-radius": string;
|
|
600
|
+
margin: string;
|
|
601
|
+
cursor: string;
|
|
602
|
+
};
|
|
603
|
+
".secure-payment-form .paypal-button:hover": {
|
|
604
|
+
"background-color": string;
|
|
605
|
+
};
|
|
606
|
+
".secure-payment-form .paypal-button:focus": {
|
|
607
|
+
"background-color": string;
|
|
608
|
+
outline: string;
|
|
609
|
+
"outline-offset": string;
|
|
610
|
+
};
|
|
590
611
|
".secure-payment-form .open-banking-button-wrapper": {
|
|
591
612
|
display: string;
|
|
592
613
|
"flex-direction": string;
|
|
@@ -1245,13 +1266,13 @@ export declare const parentStyles: () => {
|
|
|
1245
1266
|
".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
|
|
1246
1267
|
border: string;
|
|
1247
1268
|
"border-radius": string;
|
|
1248
|
-
width: string;
|
|
1249
1269
|
height: string;
|
|
1250
1270
|
"text-align": string;
|
|
1251
1271
|
margin: string;
|
|
1252
1272
|
display: string;
|
|
1253
1273
|
"justify-content": string;
|
|
1254
1274
|
"align-items": string;
|
|
1275
|
+
width: string;
|
|
1255
1276
|
};
|
|
1256
1277
|
".secure-payment-form div[class$='-shield'] .ssl-logo_ico": {
|
|
1257
1278
|
width: string;
|
|
@@ -1260,9 +1281,7 @@ export declare const parentStyles: () => {
|
|
|
1260
1281
|
"vertical-align": string;
|
|
1261
1282
|
};
|
|
1262
1283
|
".secure-payment-form div[class$='-shield'] .ssl-msg": {
|
|
1263
|
-
"font-size": string;
|
|
1264
|
-
* Deletes all hosted fields within the form
|
|
1265
|
-
*/
|
|
1284
|
+
"font-size": string;
|
|
1266
1285
|
"font-weight": string;
|
|
1267
1286
|
"font-family": string;
|
|
1268
1287
|
color: string;
|
|
@@ -1459,6 +1478,29 @@ export declare const parentStyles: () => {
|
|
|
1459
1478
|
"font-size": string;
|
|
1460
1479
|
"line-height": string;
|
|
1461
1480
|
};
|
|
1481
|
+
".secure-payment-form .paypal-button-wrapper": {
|
|
1482
|
+
display: string;
|
|
1483
|
+
"flex-direction": string;
|
|
1484
|
+
"align-items": string;
|
|
1485
|
+
};
|
|
1486
|
+
".secure-payment-form .paypal-button": {
|
|
1487
|
+
position: string;
|
|
1488
|
+
background: string;
|
|
1489
|
+
height: string;
|
|
1490
|
+
border: string;
|
|
1491
|
+
width: string;
|
|
1492
|
+
"border-radius": string;
|
|
1493
|
+
margin: string;
|
|
1494
|
+
cursor: string;
|
|
1495
|
+
};
|
|
1496
|
+
".secure-payment-form .paypal-button:hover": {
|
|
1497
|
+
"background-color": string;
|
|
1498
|
+
};
|
|
1499
|
+
".secure-payment-form .paypal-button:focus": {
|
|
1500
|
+
"background-color": string;
|
|
1501
|
+
outline: string;
|
|
1502
|
+
"outline-offset": string;
|
|
1503
|
+
};
|
|
1462
1504
|
".secure-payment-form .open-banking-button-wrapper": {
|
|
1463
1505
|
display: string;
|
|
1464
1506
|
"flex-direction": string;
|
|
@@ -2197,11 +2239,7 @@ export declare const parentStyles: () => {
|
|
|
2197
2239
|
".secure-payment-form .installment-link:focus": {
|
|
2198
2240
|
color: string;
|
|
2199
2241
|
border: string;
|
|
2200
|
-
};
|
|
2201
|
-
* Appends additional CSS rules to the group of hosted fields
|
|
2202
|
-
*
|
|
2203
|
-
* @param json New CSS rules
|
|
2204
|
-
*/
|
|
2242
|
+
};
|
|
2205
2243
|
".secure-payment-form .installment-step-container": {
|
|
2206
2244
|
display: string;
|
|
2207
2245
|
"justify-content": string;
|
|
@@ -2237,9 +2275,6 @@ export declare const parentStyles: () => {
|
|
|
2237
2275
|
".secure-payment-form .installment-button-explore-plans:hover": {
|
|
2238
2276
|
background: string;
|
|
2239
2277
|
};
|
|
2240
|
-
/**
|
|
2241
|
-
* Deletes all hosted fields within the form
|
|
2242
|
-
*/
|
|
2243
2278
|
".secure-payment-form .installment-button-explore-plans:active": {
|
|
2244
2279
|
background: string;
|
|
2245
2280
|
};
|
|
@@ -2466,13 +2501,13 @@ export declare const parentStyles: () => {
|
|
|
2466
2501
|
".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
|
|
2467
2502
|
border: string;
|
|
2468
2503
|
"border-radius": string;
|
|
2469
|
-
width: string;
|
|
2470
2504
|
height: string;
|
|
2471
2505
|
"text-align": string;
|
|
2472
2506
|
margin: string;
|
|
2473
2507
|
display: string;
|
|
2474
2508
|
"justify-content": string;
|
|
2475
2509
|
"align-items": string;
|
|
2510
|
+
width: string;
|
|
2476
2511
|
};
|
|
2477
2512
|
".secure-payment-form div[class$='-shield'] .ssl-logo_ico": {
|
|
2478
2513
|
width: string;
|
|
@@ -2544,9 +2579,7 @@ export declare const parentStyles: () => {
|
|
|
2544
2579
|
"-ms-transform": string;
|
|
2545
2580
|
"-o-transform": string;
|
|
2546
2581
|
transform: string;
|
|
2547
|
-
margin: string;
|
|
2548
|
-
* Deletes all hosted fields within the form
|
|
2549
|
-
*/
|
|
2582
|
+
margin: string;
|
|
2550
2583
|
"font-family": string;
|
|
2551
2584
|
"font-size": string;
|
|
2552
2585
|
"white-space": string;
|
|
@@ -3267,15 +3300,9 @@ export declare const parentStyles: () => {
|
|
|
3267
3300
|
".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
|
|
3268
3301
|
border: string;
|
|
3269
3302
|
"border-radius": string;
|
|
3270
|
-
width: string;
|
|
3271
3303
|
height: string;
|
|
3272
3304
|
"text-align": string;
|
|
3273
|
-
margin: string;
|
|
3274
|
-
* Sets a special-case event listener that fires when all hosted
|
|
3275
|
-
* fields in a form have registered / loaded
|
|
3276
|
-
*
|
|
3277
|
-
* @param fn The listener function
|
|
3278
|
-
*/
|
|
3305
|
+
margin: string;
|
|
3279
3306
|
display: string;
|
|
3280
3307
|
"justify-content": string;
|
|
3281
3308
|
"align-items": string;
|
|
@@ -3303,9 +3330,6 @@ export declare const parentStyles: () => {
|
|
|
3303
3330
|
flex: string;
|
|
3304
3331
|
"margin-left": string;
|
|
3305
3332
|
width: string;
|
|
3306
|
-
/**
|
|
3307
|
-
* Deletes all hosted fields within the form
|
|
3308
|
-
*/
|
|
3309
3333
|
height: string;
|
|
3310
3334
|
"text-align": string;
|
|
3311
3335
|
float: string;
|