@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.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/types/internal/lib/detectLanguage.d.ts +1 -0
  4. package/types/internal/lib/enums.d.ts +8 -0
  5. package/types/internal/lib/set-headers.d.ts +7 -0
  6. package/types/internal/lib/styles/default.d.ts +24 -1
  7. package/types/internal/lib/styles/gp-default.d.ts +24 -1
  8. package/types/internal/lib/styles/payment-methods/common.d.ts +23 -0
  9. package/types/internal/lib/styles/payment-methods/paypal.d.ts +26 -0
  10. package/types/internal/lib/styles/simple.d.ts +0 -1
  11. package/types/internal/lib/translations/cs.d.ts +58 -0
  12. package/types/internal/lib/translations/de.d.ts +58 -0
  13. package/types/internal/lib/translations/el.d.ts +58 -0
  14. package/types/internal/lib/translations/en.d.ts +1 -1
  15. package/types/internal/lib/translations/es.d.ts +58 -0
  16. package/types/internal/lib/translations/fr.d.ts +4 -31
  17. package/types/internal/lib/translations/hr.d.ts +58 -0
  18. package/types/internal/lib/translations/hu.d.ts +58 -0
  19. package/types/internal/lib/translations/it.d.ts +58 -0
  20. package/types/internal/lib/translations/ja.d.ts +58 -0
  21. package/types/internal/lib/translations/mt.d.ts +58 -0
  22. package/types/internal/lib/translations/nl.d.ts +58 -0
  23. package/types/internal/lib/translations/pl.d.ts +58 -0
  24. package/types/internal/lib/translations/pt.d.ts +58 -0
  25. package/types/internal/lib/translations/ro.d.ts +58 -0
  26. package/types/internal/lib/translations/ru.d.ts +58 -0
  27. package/types/internal/lib/translations/sk.d.ts +58 -0
  28. package/types/internal/lib/translations/sl.d.ts +58 -0
  29. package/types/internal/lib/translations/sv.d.ts +58 -0
  30. package/types/internal/lib/translations/tr.d.ts +58 -0
  31. package/types/internal/lib/translations/uk.d.ts +58 -0
  32. package/types/internal/lib/translations/vi.d.ts +58 -0
  33. package/types/internal/lib/translations/zh.d.ts +8 -0
  34. package/types/lib/version.d.ts +1 -1
  35. package/types/ui/form/index.d.ts +56 -32
  36. package/types/ui/iframe-field/payment-methods/action-add.d.ts +3 -0
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.0.9/globalpayments.js"></script>
27
+ <script src="https://js.globalpay.com/4.0.13/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.0.9",
3
+ "version": "4.0.13",
4
4
  "author": "Heartland Developer Portal <developers@heartland.us>",
5
5
  "license": "GPL-2.0",
6
6
  "repository": {
@@ -2,3 +2,4 @@ import { Language } from "./enums";
2
2
  export declare function setCurrentLanguage(lang?: Language): string;
3
3
  export declare function getCurrentLanguage(): string;
4
4
  export declare function getTranslationSet(language: string, featureSet: string): any;
5
+ export declare function getTranslationLanguageSet(language: string): any;
@@ -1,8 +1,12 @@
1
+ export declare enum ApiVersion {
2
+ default = "2021-03-22"
3
+ }
1
4
  export declare enum Apm {
2
5
  ApplePay = "apple-pay",
3
6
  ClickToPay = "click-to-pay",
4
7
  GooglePay = "google-pay",
5
8
  OpenBankingPayment = "open-banking",
9
+ PayPal = "paypal",
6
10
  QRCodePayments = "qr-code-payments"
7
11
  }
8
12
  export declare enum ApmEvents {
@@ -34,10 +38,14 @@ export declare enum QRCodePaymentsProviderBrands {
34
38
  export declare enum OpenBanking {
35
39
  title = "Bank Payment"
36
40
  }
41
+ export declare enum PayPal {
42
+ title = "PayPal Payment"
43
+ }
37
44
  export declare enum ApmProviders {
38
45
  Alipay = "Alipay",
39
46
  AlipayHK = "AlipayHK",
40
47
  OpenBanking = "OPEN_BANKING",
48
+ PayPal = "PayPal",
41
49
  WeChat = "WeChat"
42
50
  }
43
51
  export declare enum QRCodePaymentsWeChatProviderBrands {
@@ -0,0 +1,7 @@
1
+ export declare function setGpApiHeaders(): {
2
+ Accept: string;
3
+ Authorization: string;
4
+ "Content-Type": string;
5
+ "X-GP-Version": string;
6
+ "X-GP-Library": string;
7
+ } | Headers;
@@ -283,6 +283,29 @@ export declare const parentStyles: (assetBaseUrl: string) => {
283
283
  "font-size": string;
284
284
  "line-height": string;
285
285
  };
286
+ ".secure-payment-form .paypal-button-wrapper": {
287
+ display: string;
288
+ "flex-direction": string;
289
+ "align-items": string;
290
+ };
291
+ ".secure-payment-form .paypal-button": {
292
+ position: string;
293
+ background: string;
294
+ height: string;
295
+ border: string;
296
+ width: string;
297
+ "border-radius": string;
298
+ margin: string;
299
+ cursor: string;
300
+ };
301
+ ".secure-payment-form .paypal-button:hover": {
302
+ "background-color": string;
303
+ };
304
+ ".secure-payment-form .paypal-button:focus": {
305
+ "background-color": string;
306
+ outline: string;
307
+ "outline-offset": string;
308
+ };
286
309
  ".secure-payment-form .open-banking-button-wrapper": {
287
310
  display: string;
288
311
  "flex-direction": string;
@@ -941,13 +964,13 @@ export declare const parentStyles: (assetBaseUrl: string) => {
941
964
  ".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
942
965
  border: string;
943
966
  "border-radius": string;
944
- width: string;
945
967
  height: string;
946
968
  "text-align": string;
947
969
  margin: string;
948
970
  display: string;
949
971
  "justify-content": string;
950
972
  "align-items": string;
973
+ width: string;
951
974
  };
952
975
  ".secure-payment-form div[class$='-shield'] .ssl-logo_ico": {
953
976
  width: string;
@@ -245,6 +245,29 @@ export declare const parentStyles: (assetBaseUrl: string) => {
245
245
  "font-size": string;
246
246
  "line-height": string;
247
247
  };
248
+ ".secure-payment-form .paypal-button-wrapper": {
249
+ display: string;
250
+ "flex-direction": string;
251
+ "align-items": string;
252
+ };
253
+ ".secure-payment-form .paypal-button": {
254
+ position: string;
255
+ background: string;
256
+ height: string;
257
+ border: string;
258
+ width: string;
259
+ "border-radius": string;
260
+ margin: string;
261
+ cursor: string;
262
+ };
263
+ ".secure-payment-form .paypal-button:hover": {
264
+ "background-color": string;
265
+ };
266
+ ".secure-payment-form .paypal-button:focus": {
267
+ "background-color": string;
268
+ outline: string;
269
+ "outline-offset": string;
270
+ };
248
271
  ".secure-payment-form .open-banking-button-wrapper": {
249
272
  display: string;
250
273
  "flex-direction": string;
@@ -1245,13 +1268,13 @@ export declare const parentStyles: (assetBaseUrl: string) => {
1245
1268
  ".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
1246
1269
  border: string;
1247
1270
  "border-radius": string;
1248
- width: string;
1249
1271
  height: string;
1250
1272
  "text-align": string;
1251
1273
  margin: string;
1252
1274
  display: string;
1253
1275
  "justify-content": string;
1254
1276
  "align-items": string;
1277
+ width: string;
1255
1278
  };
1256
1279
  ".secure-payment-form div[class$='-shield'] .ssl-logo_ico": {
1257
1280
  width: string;
@@ -112,6 +112,29 @@ declare const _default: (assetBaseUrl: string) => {
112
112
  "font-size": string;
113
113
  "line-height": string;
114
114
  };
115
+ ".secure-payment-form .paypal-button-wrapper": {
116
+ display: string;
117
+ "flex-direction": string;
118
+ "align-items": string;
119
+ };
120
+ ".secure-payment-form .paypal-button": {
121
+ position: string;
122
+ background: string;
123
+ height: string;
124
+ border: string;
125
+ width: string;
126
+ "border-radius": string;
127
+ margin: string;
128
+ cursor: string;
129
+ };
130
+ ".secure-payment-form .paypal-button:hover": {
131
+ "background-color": string;
132
+ };
133
+ ".secure-payment-form .paypal-button:focus": {
134
+ "background-color": string;
135
+ outline: string;
136
+ "outline-offset": string;
137
+ };
115
138
  ".secure-payment-form .open-banking-button-wrapper": {
116
139
  display: string;
117
140
  "flex-direction": string;
@@ -0,0 +1,26 @@
1
+ declare const styles: (assetBaseUrl: string) => {
2
+ ".secure-payment-form .paypal-button-wrapper": {
3
+ display: string;
4
+ "flex-direction": string;
5
+ "align-items": string;
6
+ };
7
+ ".secure-payment-form .paypal-button": {
8
+ position: string;
9
+ background: string;
10
+ height: string;
11
+ border: string;
12
+ width: string;
13
+ "border-radius": string;
14
+ margin: string;
15
+ cursor: string;
16
+ };
17
+ ".secure-payment-form .paypal-button:hover": {
18
+ "background-color": string;
19
+ };
20
+ ".secure-payment-form .paypal-button:focus": {
21
+ "background-color": string;
22
+ outline: string;
23
+ "outline-offset": string;
24
+ };
25
+ };
26
+ export default styles;
@@ -853,7 +853,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
853
853
  ".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
854
854
  border: string;
855
855
  "border-radius": string;
856
- width: string;
857
856
  height: string;
858
857
  "text-align": string;
859
858
  margin: string;
@@ -0,0 +1,58 @@
1
+ declare const cs: {
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 cs;
@@ -0,0 +1,58 @@
1
+ declare const de: {
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 de;
@@ -0,0 +1,58 @@
1
+ declare const el: {
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 el;
@@ -81,7 +81,7 @@ declare const en: {
81
81
  };
82
82
  apms: {
83
83
  button: {
84
- "aria-label": string;
84
+ getAriaLabel: (paymentMethod: string) => string;
85
85
  };
86
86
  };
87
87
  dcc: {
@@ -0,0 +1,58 @@
1
+ declare const es: {
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 es;
@@ -33,6 +33,9 @@ declare const fr: {
33
33
  NotValidCardHolderName: string;
34
34
  CharactersMoreThan100: string;
35
35
  };
36
+ CurrencyConversion: {
37
+ Required: string;
38
+ };
36
39
  };
37
40
  footer: {
38
41
  "ssl-msg-alt": string;
@@ -46,39 +49,9 @@ declare const fr: {
46
49
  text: string;
47
50
  };
48
51
  "other-cards-label": string;
49
- QR: {
50
- scanRqCode: string;
51
- payInApp: string;
52
- amount: {
53
- "aria-label": string;
54
- };
55
- qrImage: {
56
- alt: string;
57
- "aria-label": string;
58
- };
59
- timer: {
60
- text: string;
61
- minutes: string;
62
- seconds: string;
63
- "icon-alt": string;
64
- };
65
- expiredScreen: {
66
- title: string;
67
- alt: string;
68
- text: string;
69
- };
70
- button: {
71
- text: string;
72
- "aria-label": string;
73
- };
74
- loading: string;
75
- redirectScreen: {
76
- redirectingToPaymentPageMessage: string;
77
- };
78
- };
79
52
  apms: {
80
53
  button: {
81
- "aria-label": string;
54
+ getAriaLabel: (paymentMethod: string) => string;
82
55
  };
83
56
  };
84
57
  };
@@ -0,0 +1,58 @@
1
+ declare const hr: {
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 hr;
@@ -0,0 +1,58 @@
1
+ declare const hu: {
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 hu;
@@ -0,0 +1,58 @@
1
+ declare const it: {
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 it;