@globalpayments/js 4.0.15 → 4.0.17

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 (58) hide show
  1. package/README.md +39 -1
  2. package/package.json +2 -2
  3. package/types/apm/apm-payment-methods/index.d.ts +3 -0
  4. package/types/apm/apm-payment-methods/open-banking/contracts.d.ts +7 -0
  5. package/types/apm/apm-payment-methods/qr-code-payments/components/common.d.ts +1 -0
  6. package/types/apm/apm-payment-methods/qr-code-payments/components/redirect-action-handler.d.ts +1 -0
  7. package/types/apm/apm-payment-methods/qr-code-payments/components/redirect-in-frame-action-handler.d.ts +1 -0
  8. package/types/apm/apm-payment-methods/qr-code-payments/constants.d.ts +1 -0
  9. package/types/apm/apm-payment-methods/qr-code-payments/contracts.d.ts +17 -0
  10. package/types/apm/apm-payment-methods/qr-code-payments/enums.d.ts +9 -0
  11. package/types/apm/apm-payment-methods/qr-code-payments/helpers.d.ts +2 -0
  12. package/types/apm/apm-payment-methods/qr-code-payments/requests/get-qr-code-payment-methods.d.ts +3 -0
  13. package/types/apm/open-banking/contracts.d.ts +7 -0
  14. package/types/apm/payment-methods/components/common.d.ts +5 -0
  15. package/types/apm/payment-methods/components/constants.d.ts +1 -0
  16. package/types/apm/payment-methods/components/redirect-action-handler.d.ts +1 -0
  17. package/types/apm/payment-methods/contracts.d.ts +8 -0
  18. package/types/apm/payment-methods/enums.d.ts +10 -0
  19. package/types/apm/qr-code-payments/enums.d.ts +1 -2
  20. package/types/common/local-storage.d.ts +6 -0
  21. package/types/internal/gateways/gp-api/get-currency-conversion-rates.d.ts +3 -0
  22. package/types/internal/lib/currency-conversion/components/dom-manipulation.d.ts +1 -0
  23. package/types/internal/lib/currency-conversion/components/radio-group.d.ts +2 -0
  24. package/types/internal/lib/dynamic-currency-conversion/contracts/constants.d.ts +1 -0
  25. package/types/internal/lib/styles/common/tooltip.d.ts +490 -0
  26. package/types/internal/lib/styles/open-banking/common.d.ts +43 -0
  27. package/types/internal/lib/styles/qr-code-payments/common.d.ts +0 -8
  28. package/types/internal/validators/currency-conversion.d.ts +4 -0
  29. package/types/lib/version.d.ts +1 -1
  30. package/types/tools/configure.d.ts +1 -0
  31. package/types/ui/iframe-field/action-accumulate-currency-conversion-data.d.ts +3 -0
  32. package/types/ui/iframe-field/action-add-currency-conversion.d.ts +2 -0
  33. package/types/ui/iframe-field/action-add-dynamic-currency-conversion.d.ts +2 -0
  34. package/types/ui/iframe-field/action-card-request-currency-conversion.d.ts +6 -0
  35. package/types/ui/iframe-field/action-get-value.d.ts +5 -0
  36. package/types/ui/iframe-field/action-request-currency-conversion-data.d.ts +3 -0
  37. package/types/ui/iframe-field/action-request-currency-conversion.d.ts +6 -0
  38. package/types/ui/iframe-field/action-set-custom-validation-message.d.ts +3 -0
  39. package/types/ui/iframe-field/action-set-validation-message.d.ts +2 -0
  40. package/types/ui/iframe-field/apple-pay/action-add-apple-pay.d.ts +2 -0
  41. package/types/ui/iframe-field/click-to-pay/action-add-click-to-pay.d.ts +2 -0
  42. package/types/ui/iframe-field/currency-conversion/action-accumulate-currency-conversion-data.d.ts +3 -0
  43. package/types/ui/iframe-field/currency-conversion/action-add-currency-conversion.d.ts +2 -0
  44. package/types/ui/iframe-field/currency-conversion/action-get-status.d.ts +8 -0
  45. package/types/ui/iframe-field/currency-conversion/action-request-completed.d.ts +6 -0
  46. package/types/ui/iframe-field/currency-conversion/action-request-currency-conversion-data.d.ts +3 -0
  47. package/types/ui/iframe-field/currency-conversion/action-request-currency-conversion.d.ts +6 -0
  48. package/types/ui/iframe-field/currency-conversion/action-request-pass-data.d.ts +3 -0
  49. package/types/ui/iframe-field/currency-conversion/action-set-value.d.ts +3 -0
  50. package/types/ui/iframe-field/google-pay/action-add-google-pay.d.ts +2 -0
  51. package/types/ui/iframe-field/installments/action-accumulate-installment-data.d.ts +3 -0
  52. package/types/ui/iframe-field/installments/action-add-installments.d.ts +3 -0
  53. package/types/ui/iframe-field/installments/action-card-request-installments.d.ts +6 -0
  54. package/types/ui/iframe-field/installments/action-request-installment-data.d.ts +3 -0
  55. package/types/ui/iframe-field/open-banking/action-add-open-banking.d.ts +2 -0
  56. package/types/ui/iframe-field/paypal/action-add.d.ts +2 -0
  57. package/types/ui/iframe-field/qr-code-payment-methods/action-add-qr-code-payment-methods.d.ts +3 -0
  58. package/types/ui/iframe-field/qr-code-payment-methods/action-qr-code-payment-methods-request-start.d.ts +6 -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.15/globalpayments.js"></script>
27
+ <script src="https://js.globalpay.com/4.0.17/globalpayments.js"></script>
28
28
  ```
29
29
 
30
30
  > Note: Installing via NPM will only provide TypeScript types for type-checking.
@@ -495,6 +495,44 @@ const cardForm = GlobalPayments.ui.form({
495
495
  });
496
496
  ```
497
497
 
498
+ #### Adding Multiple Custom Fonts
499
+ To add multiple custom fonts, you can use the following configurations:
500
+
501
+ ```
502
+ const cardForm = GlobalPayments.ui.form({
503
+ fields: { ... },
504
+ styles: {
505
+ "@font-face": [
506
+ {
507
+ "font-family": "'Font 1'",
508
+ "src": "url('url/font1.woff2') format('woff2')"
509
+ },
510
+ {
511
+ "font-family": "'Font 2'",
512
+ "src": "url('url/font2.woff2') format('woff2')"
513
+ }]
514
+
515
+ // Your styles
516
+ }
517
+ });
518
+ ```
519
+ or
520
+ ```
521
+ cardForm.addStylesheet({
522
+ "@font-face": [
523
+ {
524
+ "font-family": "'Font 1'",
525
+ "src": "url('url/font1.woff2') format('woff2')"
526
+ },
527
+ {
528
+ "font-family": "'Font 2'",
529
+ "src": "url('url/font2.woff2') format('woff2')"
530
+ }]
531
+ });
532
+ ```
533
+
534
+
535
+ #### Validation Messages
498
536
  The list of validation messages is accessible at [/packages/globalpayments-js/src/internal/lib/translations/en.ts](https://github.globalpay.com/Developer-Experience/globalpayments-js/blob/94540f9ca68bc627f4d3e038b2cec36c6bd317b0/packages/globalpayments-js/src/internal/lib/translations/en.ts#L13)
499
537
 
500
538
  ![Example: Raw credit card form](docs/images/example-raw-credit-card.png)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalpayments/js",
3
- "version": "4.0.15",
3
+ "version": "4.0.17",
4
4
  "author": "Heartland Developer Portal <developers@heartland.us>",
5
5
  "license": "GPL-2.0",
6
6
  "repository": {
@@ -18,7 +18,7 @@
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",
21
+ "postbuild": "cross-os postbuild-cross",
22
22
 
23
23
  "prebuild": "yarn test:lint && node bin/update-version.js",
24
24
  "prepublish": "yarn build",
@@ -0,0 +1,3 @@
1
+ import { ApmPaymentProviders } from "../../internal/lib/enums";
2
+ import { IApmConfiguration } from "../open-banking/contracts";
3
+ export declare function isApmProviderConfigured(configuration: IApmConfiguration, desiredProvider: ApmPaymentProviders): boolean;
@@ -0,0 +1,7 @@
1
+ export interface IApmPaymentMethodConfiguration {
2
+ allowedPaymentMethods: IApmAllowedPaymentMethod[];
3
+ }
4
+ export interface IApmAllowedPaymentMethod {
5
+ provider: string;
6
+ category?: string;
7
+ }
@@ -0,0 +1 @@
1
+ export declare const getSelectAnotherPaymentMethodButton: (id: string, onClickCallback: any) => HTMLDivElement;
@@ -0,0 +1 @@
1
+ export default function handleRedirectAction(content: HTMLDivElement, props: any): void;
@@ -0,0 +1 @@
1
+ export default function handleRedirectInFrameAction(content: HTMLDivElement, props: any): void;
@@ -0,0 +1 @@
1
+ export declare const REDIRECT_ACTION_DELAY_IN_SECONDS = 2000;
@@ -0,0 +1,17 @@
1
+ export interface IQRCodePaymentsConfiguration {
2
+ enabled?: boolean;
3
+ allowedPaymentMethods?: IQRCodePaymentsAllowedPaymentMethod[];
4
+ }
5
+ export interface IQRCodePaymentsAllowedPaymentMethod {
6
+ provider: string;
7
+ image: string;
8
+ }
9
+ export interface IPaymentMethodConfiguration {
10
+ provider: {
11
+ brand: string;
12
+ };
13
+ image: string;
14
+ }
15
+ export interface IPaymentMethodConfigurationNormalized extends Omit<IPaymentMethodConfiguration, 'provider'> {
16
+ provider: string;
17
+ }
@@ -0,0 +1,9 @@
1
+ export declare const enum ApmInternalEvents {
2
+ PaymentMethodsRequestStart = "qr-code-payment-methods-request-start",
3
+ PaymentMethodsRequestCompleted = "qr-code-payment-methods-request-completed",
4
+ NavigatesBackBySelectAnotherPaymentMethod = "qr-code-payment-navigates-back-select-another-payment-method"
5
+ }
6
+ export declare const enum QRCodePaymentsActions {
7
+ RedirectAction = "REDIRECT",
8
+ RedirectInFrameAction = "REDIRECT_IN_FRAME"
9
+ }
@@ -0,0 +1,2 @@
1
+ import { IPaymentMethodConfiguration, IPaymentMethodConfigurationNormalized } from "./contracts";
2
+ export declare const normalizePaymentMethodConfigurations: (paymentMethodConfigurations: IPaymentMethodConfiguration) => IPaymentMethodConfigurationNormalized;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../../../internal/lib/util";
2
+ declare const _default: (data: IDictionary) => Promise<unknown>;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export interface IApmConfiguration {
2
+ allowedPaymentMethods: IApmAllowedPaymentMethod[];
3
+ }
4
+ export interface IApmAllowedPaymentMethod {
5
+ provider: string;
6
+ category?: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { ApmProviders } from "../../../internal/lib/enums";
2
+ import { IApmConfiguration } from "../../open-banking/contracts";
3
+ export declare function isApmProviderConfigured(configuration: IApmConfiguration, desiredProvider: ApmProviders): boolean;
4
+ export declare const getSelectAnotherPaymentMethodButton: (id: string, onClickCallback: any) => HTMLDivElement;
5
+ export declare function isUrlValid(url: string): boolean;
@@ -0,0 +1 @@
1
+ export declare const REDIRECT_ACTION_DELAY_IN_SECONDS = 2000;
@@ -0,0 +1 @@
1
+ export default function handleRedirectAction(content: HTMLDivElement, props: any): void;
@@ -0,0 +1,8 @@
1
+ export interface IApmConfiguration {
2
+ allowedPaymentMethods?: PaymentMethod[];
3
+ }
4
+ export interface PaymentMethod {
5
+ provider: string;
6
+ category?: string;
7
+ image?: string;
8
+ }
@@ -0,0 +1,10 @@
1
+ export declare const enum ApmInternalEvents {
2
+ PaymentMethodsRequestStart = "qr-code-payment-methods-request-start",
3
+ PaymentMethodsRequestCompleted = "qr-code-payment-methods-request-completed",
4
+ NavigatesBackBySelectAnotherPaymentMethod = "qr-code-payment-navigates-back-select-another-payment-method"
5
+ }
6
+ export declare const enum QRCodePaymentsActions {
7
+ RedirectAction = "REDIRECT",
8
+ RedirectInFrameAction = "REDIRECT_IN_FRAME",
9
+ PresentQRCodeAction = "PRESENT_QR_CODE"
10
+ }
@@ -5,6 +5,5 @@ export declare const enum QRCodePaymentsInternalEvents {
5
5
  }
6
6
  export declare const enum QRCodePaymentsActions {
7
7
  RedirectAction = "REDIRECT",
8
- RedirectInFrameAction = "REDIRECT_IN_FRAME",
9
- PresentQRCodeAction = "PRESENT_QR_CODE"
8
+ RedirectInFrameAction = "REDIRECT_IN_FRAME"
10
9
  }
@@ -0,0 +1,6 @@
1
+ export declare const LocalStorageWrapper: {
2
+ getItem: (key: string, encodedValue?: boolean | undefined) => string | null;
3
+ setItem: (key: string, value: string, encodeValue?: boolean | undefined) => void;
4
+ removeItem: (key: string) => void;
5
+ cleanUp: () => void;
6
+ };
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../lib/util";
2
+ declare const _default: (url: string, _env: string, data: IDictionary) => Promise<any>;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const removeConversionCurrency: () => void;
@@ -0,0 +1,2 @@
1
+ import { IframeField } from "../../../../ui";
2
+ export declare const createRadioGroupHtmlElement: (iframeField: IframeField, data: any) => void;
@@ -0,0 +1 @@
1
+ export declare const DCC_KEY = "dcc";
@@ -0,0 +1,490 @@
1
+ declare const styles: (rootSelector: string, assetBaseUrl: string) => {
2
+ [x: string]: {
3
+ position: string;
4
+ width: string;
5
+ height: string;
6
+ border: string;
7
+ "border-left": string;
8
+ float: string;
9
+ "background-size": string;
10
+ background: string;
11
+ "font-family": string;
12
+ outline?: undefined;
13
+ visibility?: undefined;
14
+ "background-color"?: undefined;
15
+ color?: undefined;
16
+ "text-align"?: undefined;
17
+ "border-radius"?: undefined;
18
+ padding?: undefined;
19
+ "z-index"?: undefined;
20
+ right?: undefined;
21
+ opacity?: undefined;
22
+ transition?: undefined;
23
+ "font-size"?: undefined;
24
+ "font-weight"?: undefined;
25
+ "box-shadow"?: undefined;
26
+ "margin-top"?: undefined;
27
+ "margin-right"?: undefined;
28
+ margin?: undefined;
29
+ content?: undefined;
30
+ top?: undefined;
31
+ "border-right"?: undefined;
32
+ "border-bottom"?: undefined;
33
+ bottom?: undefined;
34
+ "margin-bottom"?: undefined;
35
+ left?: undefined;
36
+ transform?: undefined;
37
+ "border-width"?: undefined;
38
+ "border-style"?: undefined;
39
+ "border-color"?: undefined;
40
+ } | {
41
+ border: string;
42
+ outline: string;
43
+ "border-left": string;
44
+ position?: undefined;
45
+ width?: undefined;
46
+ height?: undefined;
47
+ float?: undefined;
48
+ "background-size"?: undefined;
49
+ background?: undefined;
50
+ "font-family"?: undefined;
51
+ visibility?: undefined;
52
+ "background-color"?: undefined;
53
+ color?: undefined;
54
+ "text-align"?: undefined;
55
+ "border-radius"?: undefined;
56
+ padding?: undefined;
57
+ "z-index"?: undefined;
58
+ right?: undefined;
59
+ opacity?: undefined;
60
+ transition?: undefined;
61
+ "font-size"?: undefined;
62
+ "font-weight"?: undefined;
63
+ "box-shadow"?: undefined;
64
+ "margin-top"?: undefined;
65
+ "margin-right"?: undefined;
66
+ margin?: undefined;
67
+ content?: undefined;
68
+ top?: undefined;
69
+ "border-right"?: undefined;
70
+ "border-bottom"?: undefined;
71
+ bottom?: undefined;
72
+ "margin-bottom"?: undefined;
73
+ left?: undefined;
74
+ transform?: undefined;
75
+ "border-width"?: undefined;
76
+ "border-style"?: undefined;
77
+ "border-color"?: undefined;
78
+ } | {
79
+ visibility: string;
80
+ width: string;
81
+ "background-color": string;
82
+ color: string;
83
+ "text-align": string;
84
+ "border-radius": string;
85
+ border: string;
86
+ padding: string;
87
+ position: string;
88
+ "z-index": string;
89
+ right: string;
90
+ opacity: string;
91
+ transition: string;
92
+ "font-size": string;
93
+ "font-weight": string;
94
+ "box-shadow": string;
95
+ "margin-top": string;
96
+ "margin-right": string;
97
+ height?: undefined;
98
+ "border-left"?: undefined;
99
+ float?: undefined;
100
+ "background-size"?: undefined;
101
+ background?: undefined;
102
+ "font-family"?: undefined;
103
+ outline?: undefined;
104
+ margin?: undefined;
105
+ content?: undefined;
106
+ top?: undefined;
107
+ "border-right"?: undefined;
108
+ "border-bottom"?: undefined;
109
+ bottom?: undefined;
110
+ "margin-bottom"?: undefined;
111
+ left?: undefined;
112
+ transform?: undefined;
113
+ "border-width"?: undefined;
114
+ "border-style"?: undefined;
115
+ "border-color"?: undefined;
116
+ } | {
117
+ margin: string;
118
+ position?: undefined;
119
+ width?: undefined;
120
+ height?: undefined;
121
+ border?: undefined;
122
+ "border-left"?: undefined;
123
+ float?: undefined;
124
+ "background-size"?: undefined;
125
+ background?: undefined;
126
+ "font-family"?: undefined;
127
+ outline?: undefined;
128
+ visibility?: undefined;
129
+ "background-color"?: undefined;
130
+ color?: undefined;
131
+ "text-align"?: undefined;
132
+ "border-radius"?: undefined;
133
+ padding?: undefined;
134
+ "z-index"?: undefined;
135
+ right?: undefined;
136
+ opacity?: undefined;
137
+ transition?: undefined;
138
+ "font-size"?: undefined;
139
+ "font-weight"?: undefined;
140
+ "box-shadow"?: undefined;
141
+ "margin-top"?: undefined;
142
+ "margin-right"?: undefined;
143
+ content?: undefined;
144
+ top?: undefined;
145
+ "border-right"?: undefined;
146
+ "border-bottom"?: undefined;
147
+ bottom?: undefined;
148
+ "margin-bottom"?: undefined;
149
+ left?: undefined;
150
+ transform?: undefined;
151
+ "border-width"?: undefined;
152
+ "border-style"?: undefined;
153
+ "border-color"?: undefined;
154
+ } | {
155
+ visibility: string;
156
+ opacity: string;
157
+ position?: undefined;
158
+ width?: undefined;
159
+ height?: undefined;
160
+ border?: undefined;
161
+ "border-left"?: undefined;
162
+ float?: undefined;
163
+ "background-size"?: undefined;
164
+ background?: undefined;
165
+ "font-family"?: undefined;
166
+ outline?: undefined;
167
+ "background-color"?: undefined;
168
+ color?: undefined;
169
+ "text-align"?: undefined;
170
+ "border-radius"?: undefined;
171
+ padding?: undefined;
172
+ "z-index"?: undefined;
173
+ right?: undefined;
174
+ transition?: undefined;
175
+ "font-size"?: undefined;
176
+ "font-weight"?: undefined;
177
+ "box-shadow"?: undefined;
178
+ "margin-top"?: undefined;
179
+ "margin-right"?: undefined;
180
+ margin?: undefined;
181
+ content?: undefined;
182
+ top?: undefined;
183
+ "border-right"?: undefined;
184
+ "border-bottom"?: undefined;
185
+ bottom?: undefined;
186
+ "margin-bottom"?: undefined;
187
+ left?: undefined;
188
+ transform?: undefined;
189
+ "border-width"?: undefined;
190
+ "border-style"?: undefined;
191
+ "border-color"?: undefined;
192
+ } | {
193
+ position: string;
194
+ content: string;
195
+ right: string;
196
+ top: string;
197
+ "border-left": string;
198
+ "border-right": string;
199
+ "border-bottom": string;
200
+ width?: undefined;
201
+ height?: undefined;
202
+ border?: undefined;
203
+ float?: undefined;
204
+ "background-size"?: undefined;
205
+ background?: undefined;
206
+ "font-family"?: undefined;
207
+ outline?: undefined;
208
+ visibility?: undefined;
209
+ "background-color"?: undefined;
210
+ color?: undefined;
211
+ "text-align"?: undefined;
212
+ "border-radius"?: undefined;
213
+ padding?: undefined;
214
+ "z-index"?: undefined;
215
+ opacity?: undefined;
216
+ transition?: undefined;
217
+ "font-size"?: undefined;
218
+ "font-weight"?: undefined;
219
+ "box-shadow"?: undefined;
220
+ "margin-top"?: undefined;
221
+ "margin-right"?: undefined;
222
+ margin?: undefined;
223
+ bottom?: undefined;
224
+ "margin-bottom"?: undefined;
225
+ left?: undefined;
226
+ transform?: undefined;
227
+ "border-width"?: undefined;
228
+ "border-style"?: undefined;
229
+ "border-color"?: undefined;
230
+ } | {
231
+ "border-bottom": string;
232
+ "text-align": string;
233
+ margin: string;
234
+ position: string;
235
+ width?: undefined;
236
+ height?: undefined;
237
+ border?: undefined;
238
+ "border-left"?: undefined;
239
+ float?: undefined;
240
+ "background-size"?: undefined;
241
+ background?: undefined;
242
+ "font-family"?: undefined;
243
+ outline?: undefined;
244
+ visibility?: undefined;
245
+ "background-color"?: undefined;
246
+ color?: undefined;
247
+ "border-radius"?: undefined;
248
+ padding?: undefined;
249
+ "z-index"?: undefined;
250
+ right?: undefined;
251
+ opacity?: undefined;
252
+ transition?: undefined;
253
+ "font-size"?: undefined;
254
+ "font-weight"?: undefined;
255
+ "box-shadow"?: undefined;
256
+ "margin-top"?: undefined;
257
+ "margin-right"?: undefined;
258
+ content?: undefined;
259
+ top?: undefined;
260
+ "border-right"?: undefined;
261
+ bottom?: undefined;
262
+ "margin-bottom"?: undefined;
263
+ left?: undefined;
264
+ transform?: undefined;
265
+ "border-width"?: undefined;
266
+ "border-style"?: undefined;
267
+ "border-color"?: undefined;
268
+ } | {
269
+ width: string;
270
+ height: string;
271
+ "border-left": string;
272
+ position?: undefined;
273
+ border?: undefined;
274
+ float?: undefined;
275
+ "background-size"?: undefined;
276
+ background?: undefined;
277
+ "font-family"?: undefined;
278
+ outline?: undefined;
279
+ visibility?: undefined;
280
+ "background-color"?: undefined;
281
+ color?: undefined;
282
+ "text-align"?: undefined;
283
+ "border-radius"?: undefined;
284
+ padding?: undefined;
285
+ "z-index"?: undefined;
286
+ right?: undefined;
287
+ opacity?: undefined;
288
+ transition?: undefined;
289
+ "font-size"?: undefined;
290
+ "font-weight"?: undefined;
291
+ "box-shadow"?: undefined;
292
+ "margin-top"?: undefined;
293
+ "margin-right"?: undefined;
294
+ margin?: undefined;
295
+ content?: undefined;
296
+ top?: undefined;
297
+ "border-right"?: undefined;
298
+ "border-bottom"?: undefined;
299
+ bottom?: undefined;
300
+ "margin-bottom"?: undefined;
301
+ left?: undefined;
302
+ transform?: undefined;
303
+ "border-width"?: undefined;
304
+ "border-style"?: undefined;
305
+ "border-color"?: undefined;
306
+ } | {
307
+ "border-left": string;
308
+ position?: undefined;
309
+ width?: undefined;
310
+ height?: undefined;
311
+ border?: undefined;
312
+ float?: undefined;
313
+ "background-size"?: undefined;
314
+ background?: undefined;
315
+ "font-family"?: undefined;
316
+ outline?: undefined;
317
+ visibility?: undefined;
318
+ "background-color"?: undefined;
319
+ color?: undefined;
320
+ "text-align"?: undefined;
321
+ "border-radius"?: undefined;
322
+ padding?: undefined;
323
+ "z-index"?: undefined;
324
+ right?: undefined;
325
+ opacity?: undefined;
326
+ transition?: undefined;
327
+ "font-size"?: undefined;
328
+ "font-weight"?: undefined;
329
+ "box-shadow"?: undefined;
330
+ "margin-top"?: undefined;
331
+ "margin-right"?: undefined;
332
+ margin?: undefined;
333
+ content?: undefined;
334
+ top?: undefined;
335
+ "border-right"?: undefined;
336
+ "border-bottom"?: undefined;
337
+ bottom?: undefined;
338
+ "margin-bottom"?: undefined;
339
+ left?: undefined;
340
+ transform?: undefined;
341
+ "border-width"?: undefined;
342
+ "border-style"?: undefined;
343
+ "border-color"?: undefined;
344
+ } | {
345
+ bottom: string;
346
+ right: string;
347
+ position?: undefined;
348
+ width?: undefined;
349
+ height?: undefined;
350
+ border?: undefined;
351
+ "border-left"?: undefined;
352
+ float?: undefined;
353
+ "background-size"?: undefined;
354
+ background?: undefined;
355
+ "font-family"?: undefined;
356
+ outline?: undefined;
357
+ visibility?: undefined;
358
+ "background-color"?: undefined;
359
+ color?: undefined;
360
+ "text-align"?: undefined;
361
+ "border-radius"?: undefined;
362
+ padding?: undefined;
363
+ "z-index"?: undefined;
364
+ opacity?: undefined;
365
+ transition?: undefined;
366
+ "font-size"?: undefined;
367
+ "font-weight"?: undefined;
368
+ "box-shadow"?: undefined;
369
+ "margin-top"?: undefined;
370
+ "margin-right"?: undefined;
371
+ margin?: undefined;
372
+ content?: undefined;
373
+ top?: undefined;
374
+ "border-right"?: undefined;
375
+ "border-bottom"?: undefined;
376
+ "margin-bottom"?: undefined;
377
+ left?: undefined;
378
+ transform?: undefined;
379
+ "border-width"?: undefined;
380
+ "border-style"?: undefined;
381
+ "border-color"?: undefined;
382
+ } | {
383
+ "margin-bottom": string;
384
+ position?: undefined;
385
+ width?: undefined;
386
+ height?: undefined;
387
+ border?: undefined;
388
+ "border-left"?: undefined;
389
+ float?: undefined;
390
+ "background-size"?: undefined;
391
+ background?: undefined;
392
+ "font-family"?: undefined;
393
+ outline?: undefined;
394
+ visibility?: undefined;
395
+ "background-color"?: undefined;
396
+ color?: undefined;
397
+ "text-align"?: undefined;
398
+ "border-radius"?: undefined;
399
+ padding?: undefined;
400
+ "z-index"?: undefined;
401
+ right?: undefined;
402
+ opacity?: undefined;
403
+ transition?: undefined;
404
+ "font-size"?: undefined;
405
+ "font-weight"?: undefined;
406
+ "box-shadow"?: undefined;
407
+ "margin-top"?: undefined;
408
+ "margin-right"?: undefined;
409
+ margin?: undefined;
410
+ content?: undefined;
411
+ top?: undefined;
412
+ "border-right"?: undefined;
413
+ "border-bottom"?: undefined;
414
+ bottom?: undefined;
415
+ left?: undefined;
416
+ transform?: undefined;
417
+ "border-width"?: undefined;
418
+ "border-style"?: undefined;
419
+ "border-color"?: undefined;
420
+ } | {
421
+ left: string;
422
+ top: string;
423
+ right: string;
424
+ transform: string;
425
+ "border-width": string;
426
+ "border-style": string;
427
+ "border-color": string;
428
+ position?: undefined;
429
+ width?: undefined;
430
+ height?: undefined;
431
+ border?: undefined;
432
+ "border-left"?: undefined;
433
+ float?: undefined;
434
+ "background-size"?: undefined;
435
+ background?: undefined;
436
+ "font-family"?: undefined;
437
+ outline?: undefined;
438
+ visibility?: undefined;
439
+ "background-color"?: undefined;
440
+ color?: undefined;
441
+ "text-align"?: undefined;
442
+ "border-radius"?: undefined;
443
+ padding?: undefined;
444
+ "z-index"?: undefined;
445
+ opacity?: undefined;
446
+ transition?: undefined;
447
+ "font-size"?: undefined;
448
+ "font-weight"?: undefined;
449
+ "box-shadow"?: undefined;
450
+ "margin-top"?: undefined;
451
+ "margin-right"?: undefined;
452
+ margin?: undefined;
453
+ content?: undefined;
454
+ "border-right"?: undefined;
455
+ "border-bottom"?: undefined;
456
+ bottom?: undefined;
457
+ "margin-bottom"?: undefined;
458
+ };
459
+ "[class$='-currency-content'] .tooltip": {
460
+ width: string;
461
+ height: string;
462
+ "border-left": string;
463
+ };
464
+ "[class$='-currency-content'] .tooltip:hover": {
465
+ "border-left": string;
466
+ };
467
+ "[class$='-currency-content'] .tooltip:focus": {
468
+ "border-left": string;
469
+ };
470
+ "[class$='-currency-content'] .tooltip-content": {
471
+ bottom: string;
472
+ right: string;
473
+ };
474
+ "[class$='-currency-content'] .tooltip-content p": {
475
+ margin: string;
476
+ };
477
+ "[class$='-currency-content'] .tooltip-content p:last-child": {
478
+ "margin-bottom": string;
479
+ };
480
+ "[class$='-currency-content'] .tooltip-content::before": {
481
+ left: string;
482
+ top: string;
483
+ right: string;
484
+ transform: string;
485
+ "border-width": string;
486
+ "border-style": string;
487
+ "border-color": string;
488
+ };
489
+ };
490
+ export default styles;
@@ -0,0 +1,43 @@
1
+ declare const styles: (assetBaseUrl: string) => {
2
+ ".secure-payment-form .open-banking-button-wrapper": {
3
+ display: string;
4
+ "flex-direction": string;
5
+ "align-items": string;
6
+ };
7
+ ".secure-payment-form .open-banking-button::before": {
8
+ content: string;
9
+ width: string;
10
+ height: string;
11
+ position: string;
12
+ top: string;
13
+ right: string;
14
+ };
15
+ ".secure-payment-form .open-banking-button": {
16
+ position: string;
17
+ background: string;
18
+ color: string;
19
+ height: string;
20
+ width: string;
21
+ "border-radius": string;
22
+ border: string;
23
+ margin: string;
24
+ cursor: string;
25
+ "-webkit-box-shadow": string;
26
+ "-moz-box-shadow": string;
27
+ "box-shadow": string;
28
+ };
29
+ ".secure-payment-form .open-banking-button:hover": {
30
+ "border-color": string;
31
+ "-webkit-box-shadow": string;
32
+ "-moz-box-shadow": string;
33
+ "box-shadow": string;
34
+ };
35
+ ".secure-payment-form .apms-redirecting-to-page": {
36
+ "justify-content": string;
37
+ height: string;
38
+ display: string;
39
+ "flex-direction": string;
40
+ "align-items": string;
41
+ };
42
+ };
43
+ export default styles;
@@ -41,14 +41,6 @@ export declare const styles: (assetBaseUrl: string) => {
41
41
  "background-color": string;
42
42
  border: string;
43
43
  };
44
- ".secure-payment-form .qr-code-payment-method-wechat": {
45
- "background-color": string;
46
- border: string;
47
- };
48
- ".secure-payment-form .qr-code-payment-method-wechat:hover": {
49
- "background-color": string;
50
- border: string;
51
- };
52
44
  ".secure-payment-form .qr-code-payment-iframe-wrapper": {
53
45
  display: string;
54
46
  "flex-direction": string;
@@ -0,0 +1,4 @@
1
+ import IValidator from "./validator";
2
+ export default class CurrencyConversion implements IValidator {
3
+ validate(currencyConversion: string): boolean;
4
+ }
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.15";
1
+ declare const _default: "4.0.17";
2
2
  export default _default;
@@ -23,6 +23,7 @@ export interface IConfiguration extends IDictionary {
23
23
  customerReference?: string;
24
24
  validateOnly?: boolean;
25
25
  env?: string;
26
+ serviceURL?: string;
26
27
  allowedCardTypes?: string[];
27
28
  apms?: {
28
29
  allowedCardNetworks?: string[];
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../internal/lib/util";
2
+ declare const _default: (id: string, _type: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { IframeField } from ".";
2
+ export default function addCurrencyConversion(iframeField: IframeField | undefined, data: any): void;
@@ -0,0 +1,2 @@
1
+ import { IframeField } from ".";
2
+ export default function addDCC(iframeField: IframeField | undefined): void;
@@ -0,0 +1,6 @@
1
+ import { IDictionary } from "../../internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Requests the installment plans data for a valid credit card number
5
+ */
6
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const _default: () => string | undefined;
2
+ /**
3
+ * Get the value of a hosted field
4
+ */
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../internal/lib/util";
2
+ declare const _default: (id: string, type: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { IDictionary } from "../../internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Requests the currency conversion data for a valid credit card number
5
+ */
6
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../internal/lib/util";
2
+ declare const _default: (id: string, type: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (type: string, msg: object) => object | undefined;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { IframeField, IUIFormField } from "../index";
2
+ export default function addApplePay(iframeField: IframeField | undefined, field: IUIFormField): void;
@@ -0,0 +1,2 @@
1
+ import { IframeField, IUIFormField } from "../index";
2
+ export default function addClickToPay(iframeField: IframeField | undefined, field: IUIFormField): void;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, _type: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { IframeField } from "../index";
2
+ export default function addCurrencyConversion(iframeField: IframeField | undefined, data: any): void;
@@ -0,0 +1,8 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Initiates a currency conversion request and posts the response data to the parent window.
5
+ * @param id The ID of the message.
6
+ * @param data An object containing the data required for the currency conversion request.
7
+ */
8
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Requests the currency conversion data for a valid credit card number
5
+ */
6
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, type: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Requests the currency conversion data for a valid credit card number
5
+ */
6
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, type: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { IframeField, IUIFormField } from "../index";
2
+ export default function addGooglePay(iframeField: IframeField | undefined, field: IUIFormField): void;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, _type: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { IframeField } from "../index";
2
+ import { InstallmentPaymentData } from "../../../internal/lib/installments/installments-handler";
3
+ export default function addInstallments(iframeField: IframeField | undefined, installmentPlans: any, tokenizationCallback: (installment: InstallmentPaymentData) => void): void;
@@ -0,0 +1,6 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Requests the installment plans data for a valid credit card number
5
+ */
6
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, type: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { IframeField } from "../index";
2
+ export default function addOpenBankingPaymentMethod(iframeField: IframeField | undefined): void;
@@ -0,0 +1,2 @@
1
+ import { IframeField } from "../index";
2
+ export default function addPaypalMethod(iframeField: IframeField | undefined): void;
@@ -0,0 +1,3 @@
1
+ import { IframeField } from "../index";
2
+ import { IPaymentMethodConfigurationNormalized } from "../../../apm/qr-code-payments/contracts";
3
+ export default function addQRCodePaymentMethods(iframeField: IframeField | undefined, paymentMethodConfigurations: IPaymentMethodConfigurationNormalized[], amount: string | number): void;
@@ -0,0 +1,6 @@
1
+ import { IDictionary } from "@globalpayments/js/types/internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Requests the QR Code Payment methods
5
+ */
6
+ export default _default;