@globalpayments/js 4.1.9 → 4.1.11

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 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.9/globalpayments.js"></script>
27
+ <script src="https://js.globalpay.com/4.1.11/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.9",
3
+ "version": "4.1.11",
4
4
  "author": "Heartland Developer Portal <developers@heartland.us>",
5
5
  "license": "GPL-2.0",
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- declare const en: {
1
+ declare const et: {
2
2
  labels: {
3
3
  "card-number": string;
4
4
  "card-expiration": string;
@@ -105,4 +105,4 @@ declare const en: {
105
105
  pleaseSelectYourPreferredBank: string;
106
106
  };
107
107
  };
108
- export default en;
108
+ export default et;
@@ -0,0 +1,108 @@
1
+ declare const lt: {
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 lt;
@@ -1,4 +1,4 @@
1
- declare const en: {
1
+ declare const lv: {
2
2
  labels: {
3
3
  "card-number": string;
4
4
  "card-expiration": string;
@@ -105,4 +105,4 @@ declare const en: {
105
105
  pleaseSelectYourPreferredBank: string;
106
106
  };
107
107
  };
108
- export default en;
108
+ export default lv;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.1.9";
1
+ declare const _default: "4.1.11";
2
2
  export default _default;
@@ -442,7 +442,9 @@ export declare const fieldStyles: () => {
442
442
  right: string;
443
443
  };
444
444
  "img.card-number-icon.valid.card-type-jcb": {
445
- /**
445
+ background: string;
446
+ "background-size": string;
447
+ "background-position-y": string; /**
446
448
  * Sets an event listener for an event type
447
449
  *
448
450
  * @param fieldTypeOrEventName The field type on which the listener should
@@ -452,9 +454,6 @@ export declare const fieldStyles: () => {
452
454
  * @param listener The listener function when both field type and event type
453
455
  * are provided
454
456
  */
455
- background: string;
456
- "background-size": string;
457
- "background-position-y": string;
458
457
  };
459
458
  "img.card-number-icon.valid.card-type-mastercard": {
460
459
  background: string;
@@ -980,9 +979,7 @@ export declare const parentStyles: () => {
980
979
  "justify-content": string;
981
980
  };
982
981
  ".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
983
- margin: string; /**
984
- * Deletes all hosted fields within the form
985
- */
982
+ margin: string;
986
983
  };
987
984
  ".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
988
985
  width: string;
@@ -1152,7 +1149,16 @@ export declare const parentStyles: () => {
1152
1149
  "vertical-align": string;
1153
1150
  };
1154
1151
  ".secure-payment-form .ctp-info-tooltip:hover .ctp-info-tooltip-content": {
1155
- visibility: string;
1152
+ visibility: string; /**
1153
+ * Sets an event listener for an event type
1154
+ *
1155
+ * @param fieldTypeOrEventName The field type on which the listener should
1156
+ * be applied, or the type of event that should trigger the listener
1157
+ * @param eventNameOrListener The type of event that should trigger the
1158
+ * listener, or the listener function
1159
+ * @param listener The listener function when both field type and event type
1160
+ * are provided
1161
+ */
1156
1162
  opacity: string;
1157
1163
  };
1158
1164
  "@container (min-width: 408px)": {
@@ -1412,9 +1418,7 @@ export declare const parentStyles: () => {
1412
1418
  "font-size": string;
1413
1419
  "font-weight": string;
1414
1420
  "font-family": string;
1415
- color: string; /**
1416
- * Deletes all hosted fields within the form
1417
- */
1421
+ color: string;
1418
1422
  "line-height": string;
1419
1423
  display: string;
1420
1424
  "vertical-align": string;
@@ -1976,9 +1980,7 @@ export declare const parentStyles: () => {
1976
1980
  "justify-content": string;
1977
1981
  };
1978
1982
  ".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
1979
- margin: string; /**
1980
- * Deletes all hosted fields within the form
1981
- */
1983
+ margin: string;
1982
1984
  };
1983
1985
  ".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
1984
1986
  width: string;
@@ -2173,7 +2175,16 @@ export declare const parentStyles: () => {
2173
2175
  "vertical-align": string;
2174
2176
  };
2175
2177
  ".secure-payment-form .ctp-info-tooltip:hover .ctp-info-tooltip-content": {
2176
- visibility: string;
2178
+ visibility: string; /**
2179
+ * Sets an event listener for an event type
2180
+ *
2181
+ * @param fieldTypeOrEventName The field type on which the listener should
2182
+ * be applied, or the type of event that should trigger the listener
2183
+ * @param eventNameOrListener The type of event that should trigger the
2184
+ * listener, or the listener function
2185
+ * @param listener The listener function when both field type and event type
2186
+ * are provided
2187
+ */
2177
2188
  opacity: string;
2178
2189
  };
2179
2190
  "@container (min-width: 408px)": {
@@ -2451,21 +2462,21 @@ export declare const parentStyles: () => {
2451
2462
  ".secure-payment-form .installment-field-value-item": {
2452
2463
  color: string;
2453
2464
  "font-style": string;
2454
- /**
2455
- * Sets an event listener for an event type
2456
- *
2457
- * @param fieldTypeOrEventName The field type on which the listener should
2458
- * be applied, or the type of event that should trigger the listener
2459
- * @param eventNameOrListener The type of event that should trigger the
2460
- * listener, or the listener function
2461
- * @param listener The listener function when both field type and event type
2462
- * are provided
2463
- */
2464
2465
  "font-weight": string;
2465
2466
  "line-height": string;
2466
2467
  "font-size": string;
2467
2468
  margin: string;
2468
2469
  };
2470
+ /**
2471
+ * Sets an event listener for an event type
2472
+ *
2473
+ * @param fieldTypeOrEventName The field type on which the listener should
2474
+ * be applied, or the type of event that should trigger the listener
2475
+ * @param eventNameOrListener The type of event that should trigger the
2476
+ * listener, or the listener function
2477
+ * @param listener The listener function when both field type and event type
2478
+ * are provided
2479
+ */
2469
2480
  ".secure-payment-form .installment-field-value-item, .installment-options-header": {
2470
2481
  display: string;
2471
2482
  "flex-direction": string;
@@ -2539,6 +2550,9 @@ export declare const parentStyles: () => {
2539
2550
  background: string;
2540
2551
  color: string;
2541
2552
  "font-weight": string;
2553
+ /**
2554
+ * Deletes all hosted fields within the form
2555
+ */
2542
2556
  "font-size": string;
2543
2557
  "line-height": string;
2544
2558
  margin: string;
@@ -2812,12 +2826,7 @@ export declare const parentStyles: () => {
2812
2826
  };
2813
2827
  ".secure-payment-form div[class$='-logo'] .security-msg strong": {
2814
2828
  "white-space": string;
2815
- "font-weight": string; /**
2816
- * Sets a special-case event listener that fires when all hosted
2817
- * fields in a form have registered / loaded
2818
- *
2819
- * @param fn The listener function
2820
- */
2829
+ "font-weight": string;
2821
2830
  display: string;
2822
2831
  };
2823
2832
  ".secure-payment-form div[class$='-logo'] img": {
@@ -3116,9 +3125,7 @@ export declare const parentStyles: () => {
3116
3125
  "justify-content": string;
3117
3126
  };
3118
3127
  ".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
3119
- margin: string; /**
3120
- * Deletes all hosted fields within the form
3121
- */
3128
+ margin: string;
3122
3129
  };
3123
3130
  ".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
3124
3131
  width: string;
@@ -3414,7 +3421,16 @@ export declare const parentStyles: () => {
3414
3421
  "vertical-align": string;
3415
3422
  };
3416
3423
  ".secure-payment-form .ctp-info-tooltip:hover .ctp-info-tooltip-content": {
3417
- visibility: string;
3424
+ visibility: string; /**
3425
+ * Sets an event listener for an event type
3426
+ *
3427
+ * @param fieldTypeOrEventName The field type on which the listener should
3428
+ * be applied, or the type of event that should trigger the listener
3429
+ * @param eventNameOrListener The type of event that should trigger the
3430
+ * listener, or the listener function
3431
+ * @param listener The listener function when both field type and event type
3432
+ * are provided
3433
+ */
3418
3434
  opacity: string;
3419
3435
  };
3420
3436
  "@container (min-width: 408px)": {
@@ -3790,6 +3806,7 @@ export interface IUIFormOptions {
3790
3806
  values?: IDictionary;
3791
3807
  amount?: number;
3792
3808
  apms?: IDictionary;
3809
+ fields?: IDictionary;
3793
3810
  }
3794
3811
  export declare const frameFieldTypes: string[];
3795
3812
  export interface IUIFormFields {
@@ -3802,6 +3819,7 @@ export default class UIForm {
3802
3819
  frames: IFrameCollection;
3803
3820
  fields: IUIFormFields;
3804
3821
  styles: object;
3822
+ formOptionFields: IUIFormOptions | undefined;
3805
3823
  private totalNumberOfFields;
3806
3824
  /**
3807
3825
  * Instantiates a new UIForm object for a group of hosted fields
@@ -3809,7 +3827,7 @@ export default class UIForm {
3809
3827
  * @param fields Hosted field configuration
3810
3828
  * @param styles Custom CSS configuration
3811
3829
  */
3812
- constructor(fields: IUIFormFields, styles: object);
3830
+ constructor(fields: IUIFormFields, styles: object, formOptions?: IUIFormOptions);
3813
3831
  /**
3814
3832
  * Sets an event listener for an event type
3815
3833
  *
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from "globalpayments-lib";
2
2
  import { IDictionary } from "../../internal/lib/util";
3
+ import { IUIFormOptions } from "../form";
3
4
  export interface IFrameCollection {
4
5
  [key: string]: IframeField | undefined;
5
6
  }
@@ -77,7 +78,7 @@ export declare class IframeField extends EventEmitter {
77
78
  * @param type Field type of the hosted field
78
79
  * @param targetOrigin Parent window's origin
79
80
  */
80
- static addMessageListener(id: string, type: string, targetOrigin: string): void;
81
+ static addMessageListener(id: string, type: string, targetOrigin: string, fieldOptions?: any): void;
81
82
  /**
82
83
  * Triggers a resize of the hosted field's iframe element
83
84
  * within the parent window.
@@ -91,6 +92,7 @@ export declare class IframeField extends EventEmitter {
91
92
  targetNode: any;
92
93
  type: "button" | "input";
93
94
  url: string;
95
+ formOptionFields: IUIFormOptions | undefined;
94
96
  /**
95
97
  * Instantiates a new IframeField object for a hosted field
96
98
  *
@@ -98,7 +100,7 @@ export declare class IframeField extends EventEmitter {
98
100
  * @param opts Options for creating the iframe / hosted field
99
101
  * @param src URL for the hosted field's iframe
100
102
  */
101
- constructor(type: string, opts: IUIFormField, src: string);
103
+ constructor(type: string, opts: IUIFormField, src: string, formOptionFields?: IUIFormOptions);
102
104
  /**
103
105
  * Appends additional CSS rules to the hosted field
104
106
  *