@globalpayments/js 1.9.9 → 1.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalpayments/js",
3
- "version": "1.9.9",
3
+ "version": "1.9.11",
4
4
  "author": "Heartland Developer Portal <developers@heartland.us>",
5
5
  "license": "GPL-2.0",
6
6
  "repository": {
@@ -3,8 +3,8 @@ import getEnv from "./get-env";
3
3
  export declare const supports: {
4
4
  apm: {
5
5
  applePay: boolean;
6
- googlePay: boolean;
7
6
  clickToPay: boolean;
7
+ googlePay: boolean;
8
8
  };
9
9
  binCheck: {
10
10
  hsaFsa: boolean;
@@ -1,2 +1,2 @@
1
- declare const _default: "1.9.9";
1
+ declare const _default: "1.9.11";
2
2
  export default _default;
@@ -33,6 +33,19 @@ export interface IConfiguration extends IDictionary {
33
33
  wrapper?: boolean;
34
34
  buttonless: boolean;
35
35
  };
36
+ googlePay?: {
37
+ allowedAuthMethods?: string[];
38
+ allowedCardNetworks?: string[];
39
+ buttonColor?: string;
40
+ buttonLocale?: string;
41
+ buttonSizeMode?: string;
42
+ buttonType?: string;
43
+ countryCode?: string;
44
+ currencyCode?: string;
45
+ globalPaymentsClientID?: string;
46
+ merchantId?: string;
47
+ merchantName?: string;
48
+ };
36
49
  };
37
50
  webApiKey?: string;
38
51
  deviceId?: string;
@@ -121,6 +121,12 @@ export declare const fieldStyles: () => {
121
121
  ".card-number.valid.card-type-mastercard": {
122
122
  background: string;
123
123
  "background-position-y": string;
124
+ /**
125
+ * Sets a special-case event listener that fires when all hosted
126
+ * fields in a form have registered / loaded
127
+ *
128
+ * @param fn The listener function
129
+ */
124
130
  "background-size": string;
125
131
  };
126
132
  ".card-number.valid.card-type-visa": {
@@ -282,6 +288,12 @@ export declare const fieldStyles: () => {
282
288
  background: string;
283
289
  "background-size": string;
284
290
  };
291
+ /**
292
+ * Instantiates a new UIForm object for a group of hosted fields
293
+ *
294
+ * @param fields Hosted field configuration
295
+ * @param styles Custom CSS configuration
296
+ */
285
297
  ".card-number.invalid.card-type-amex": {
286
298
  background: string;
287
299
  "background-position-x": string;
@@ -1056,7 +1068,12 @@ export declare const parentStyles: () => {
1056
1068
  ".secure-payment-form": {
1057
1069
  "font-family": string;
1058
1070
  width: string;
1059
- };
1071
+ }; /**
1072
+ * Sets a special-case event listener that fires when all hosted
1073
+ * fields in a form have registered / loaded
1074
+ *
1075
+ * @param fn The listener function
1076
+ */
1060
1077
  ".secure-payment-form label": {
1061
1078
  color: string;
1062
1079
  "font-size": string;
@@ -1081,9 +1098,6 @@ export declare const parentStyles: () => {
1081
1098
  };
1082
1099
  ".secure-payment-form .form-wrapper": {
1083
1100
  display: string;
1084
- /**
1085
- * Deletes all hosted fields within the form
1086
- */
1087
1101
  margin: string;
1088
1102
  };
1089
1103
  ".secure-payment-form input": {
@@ -0,0 +1,2 @@
1
+ import { IframeField, IUIFormField } from "../iframe-field";
2
+ export default function addGooglePay(iframeField: IframeField | undefined, field: IUIFormField): void;