@globalpayments/js 1.9.9 → 1.9.12
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 +1 -1
- package/types/internal/gateways/gp-api/index.d.ts +1 -1
- package/types/internal/lib/styles/apple-pay/default.d.ts +12 -0
- package/types/internal/lib/styles/apple-pay/gp-default.d.ts +12 -0
- package/types/internal/lib/styles/apple-pay/simple.d.ts +12 -0
- package/types/internal/lib/styles/default.d.ts +13 -0
- package/types/internal/lib/styles/google-pay/default.d.ts +7 -0
- package/types/internal/lib/styles/google-pay/gp-default.d.ts +7 -0
- package/types/internal/lib/styles/google-pay/simple.d.ts +7 -0
- package/types/internal/lib/styles/gp-default.d.ts +13 -0
- package/types/internal/lib/styles/simple.d.ts +13 -0
- package/types/lib/version.d.ts +1 -1
- package/types/tools/configure.d.ts +27 -0
- package/types/ui/form/index.d.ts +59 -6
- package/types/ui/iframe-field/action-add-apple-pay.d.ts +2 -0
- package/types/ui/iframe-field/action-add-google-pay.d.ts +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const styles: (assetBaseUrl: string) => {
|
|
2
|
+
"apple-pay-button": {
|
|
3
|
+
"--apple-pay-button-width": string;
|
|
4
|
+
"--apple-pay-button-height": string;
|
|
5
|
+
"--apple-pay-button-border-radius": string;
|
|
6
|
+
"--apple-pay-button-padding": string;
|
|
7
|
+
"--apple-pay-button-box-sizing": string;
|
|
8
|
+
display: string;
|
|
9
|
+
margin: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default styles;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const styles: (assetBaseUrl: string) => {
|
|
2
|
+
"apple-pay-button": {
|
|
3
|
+
"--apple-pay-button-width": string;
|
|
4
|
+
"--apple-pay-button-height": string;
|
|
5
|
+
"--apple-pay-button-border-radius": string;
|
|
6
|
+
"--apple-pay-button-padding": string;
|
|
7
|
+
"--apple-pay-button-box-sizing": string;
|
|
8
|
+
display: string;
|
|
9
|
+
margin: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default styles;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const styles: (assetBaseUrl: string) => {
|
|
2
|
+
"apple-pay-button": {
|
|
3
|
+
"--apple-pay-button-width": string;
|
|
4
|
+
"--apple-pay-button-height": string;
|
|
5
|
+
"--apple-pay-button-border-radius": string;
|
|
6
|
+
"--apple-pay-button-padding": string;
|
|
7
|
+
"--apple-pay-button-box-sizing": string;
|
|
8
|
+
display: string;
|
|
9
|
+
margin: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default styles;
|
|
@@ -129,6 +129,19 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
131
|
export declare const parentStyles: (assetBaseUrl: string) => {
|
|
132
|
+
"#googlePay": {
|
|
133
|
+
height: string;
|
|
134
|
+
margin: string;
|
|
135
|
+
};
|
|
136
|
+
"apple-pay-button": {
|
|
137
|
+
"--apple-pay-button-width": string;
|
|
138
|
+
"--apple-pay-button-height": string;
|
|
139
|
+
"--apple-pay-button-border-radius": string;
|
|
140
|
+
"--apple-pay-button-padding": string;
|
|
141
|
+
"--apple-pay-button-box-sizing": string;
|
|
142
|
+
display: string;
|
|
143
|
+
margin: string;
|
|
144
|
+
};
|
|
132
145
|
".secure-payment-form": {
|
|
133
146
|
"font-family": string;
|
|
134
147
|
};
|
|
@@ -90,6 +90,19 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
export declare const parentStyles: (assetBaseUrl: string) => {
|
|
93
|
+
"#googlePay": {
|
|
94
|
+
height: string;
|
|
95
|
+
margin: string;
|
|
96
|
+
};
|
|
97
|
+
"apple-pay-button": {
|
|
98
|
+
"--apple-pay-button-width": string;
|
|
99
|
+
"--apple-pay-button-height": string;
|
|
100
|
+
"--apple-pay-button-border-radius": string;
|
|
101
|
+
"--apple-pay-button-padding": string;
|
|
102
|
+
"--apple-pay-button-box-sizing": string;
|
|
103
|
+
display: string;
|
|
104
|
+
margin: string;
|
|
105
|
+
};
|
|
93
106
|
".secure-payment-form": {
|
|
94
107
|
display: string;
|
|
95
108
|
"-ms-flex-wrap": string;
|
|
@@ -113,6 +113,19 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
115
|
export declare const parentStyles: (assetBaseUrl: string) => {
|
|
116
|
+
"#googlePay": {
|
|
117
|
+
height: string;
|
|
118
|
+
margin: string;
|
|
119
|
+
};
|
|
120
|
+
"apple-pay-button": {
|
|
121
|
+
"--apple-pay-button-width": string;
|
|
122
|
+
"--apple-pay-button-height": string;
|
|
123
|
+
"--apple-pay-button-border-radius": string;
|
|
124
|
+
"--apple-pay-button-padding": string;
|
|
125
|
+
"--apple-pay-button-box-sizing": string;
|
|
126
|
+
display: string;
|
|
127
|
+
margin: string;
|
|
128
|
+
};
|
|
116
129
|
".secure-payment-form": {
|
|
117
130
|
"font-family": string;
|
|
118
131
|
width: string;
|
package/types/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.9.
|
|
1
|
+
declare const _default: "1.9.12";
|
|
2
2
|
export default _default;
|
|
@@ -24,6 +24,20 @@ export interface IConfiguration extends IDictionary {
|
|
|
24
24
|
apms?: {
|
|
25
25
|
allowedCardNetworks?: string[];
|
|
26
26
|
currencyCode?: string;
|
|
27
|
+
applePay?: {
|
|
28
|
+
allowedAuthMethods?: string[];
|
|
29
|
+
allowedCardNetworks?: string[];
|
|
30
|
+
applePayVersionNumber?: number;
|
|
31
|
+
buttonLocale?: string;
|
|
32
|
+
buttonStyle?: string;
|
|
33
|
+
buttonType?: string;
|
|
34
|
+
countryCode?: string;
|
|
35
|
+
currencyCode?: string;
|
|
36
|
+
globalPaymentsClientID?: string;
|
|
37
|
+
merchantCapabilities?: string[];
|
|
38
|
+
merchantIdentifier?: string;
|
|
39
|
+
merchantName?: string;
|
|
40
|
+
};
|
|
27
41
|
clickToPay?: {
|
|
28
42
|
allowedCardNetworks?: string[];
|
|
29
43
|
canadianDebit?: boolean;
|
|
@@ -33,6 +47,19 @@ export interface IConfiguration extends IDictionary {
|
|
|
33
47
|
wrapper?: boolean;
|
|
34
48
|
buttonless: boolean;
|
|
35
49
|
};
|
|
50
|
+
googlePay?: {
|
|
51
|
+
allowedAuthMethods?: string[];
|
|
52
|
+
allowedCardNetworks?: string[];
|
|
53
|
+
buttonColor?: string;
|
|
54
|
+
buttonLocale?: string;
|
|
55
|
+
buttonSizeMode?: string;
|
|
56
|
+
buttonType?: string;
|
|
57
|
+
countryCode?: string;
|
|
58
|
+
currencyCode?: string;
|
|
59
|
+
globalPaymentsClientID?: string;
|
|
60
|
+
merchantId?: string;
|
|
61
|
+
merchantName?: string;
|
|
62
|
+
};
|
|
36
63
|
};
|
|
37
64
|
webApiKey?: string;
|
|
38
65
|
deviceId?: string;
|
package/types/ui/form/index.d.ts
CHANGED
|
@@ -70,7 +70,16 @@ export declare const fieldStyles: () => {
|
|
|
70
70
|
".card-cvv": {
|
|
71
71
|
background: string;
|
|
72
72
|
"background-size": string;
|
|
73
|
-
};
|
|
73
|
+
}; /**
|
|
74
|
+
* Sets an event listener for an event type
|
|
75
|
+
*
|
|
76
|
+
* @param fieldTypeOrEventName The field type on which the listener should
|
|
77
|
+
* be applied, or the type of event that should trigger the listener
|
|
78
|
+
* @param eventNameOrListener The type of event that should trigger the
|
|
79
|
+
* listener, or the listener function
|
|
80
|
+
* @param listener The listener function when both field type and event type
|
|
81
|
+
* are provided
|
|
82
|
+
*/
|
|
74
83
|
".card-cvv.card-type-amex": {
|
|
75
84
|
background: string;
|
|
76
85
|
"background-size": string;
|
|
@@ -106,7 +115,11 @@ export declare const fieldStyles: () => {
|
|
|
106
115
|
};
|
|
107
116
|
".card-number.valid.card-type-amex": {
|
|
108
117
|
background: string;
|
|
109
|
-
"background-size": string;
|
|
118
|
+
"background-size": string; /**
|
|
119
|
+
* Appends additional CSS rules to the group of hosted fields
|
|
120
|
+
*
|
|
121
|
+
* @param json New CSS rules
|
|
122
|
+
*/
|
|
110
123
|
};
|
|
111
124
|
".card-number.valid.card-type-discover": {
|
|
112
125
|
background: string;
|
|
@@ -343,6 +356,19 @@ export declare const fieldStyles: () => {
|
|
|
343
356
|
export declare const parentStyles: () => {
|
|
344
357
|
blank: {};
|
|
345
358
|
default: {
|
|
359
|
+
"#googlePay": {
|
|
360
|
+
height: string;
|
|
361
|
+
margin: string;
|
|
362
|
+
};
|
|
363
|
+
"apple-pay-button": {
|
|
364
|
+
"--apple-pay-button-width": string;
|
|
365
|
+
"--apple-pay-button-height": string;
|
|
366
|
+
"--apple-pay-button-border-radius": string;
|
|
367
|
+
"--apple-pay-button-padding": string;
|
|
368
|
+
"--apple-pay-button-box-sizing": string;
|
|
369
|
+
display: string;
|
|
370
|
+
margin: string;
|
|
371
|
+
};
|
|
346
372
|
".secure-payment-form": {
|
|
347
373
|
"font-family": string;
|
|
348
374
|
};
|
|
@@ -663,6 +689,19 @@ export declare const parentStyles: () => {
|
|
|
663
689
|
};
|
|
664
690
|
};
|
|
665
691
|
"gp-default": {
|
|
692
|
+
"#googlePay": {
|
|
693
|
+
height: string;
|
|
694
|
+
margin: string;
|
|
695
|
+
};
|
|
696
|
+
"apple-pay-button": {
|
|
697
|
+
"--apple-pay-button-width": string;
|
|
698
|
+
"--apple-pay-button-height": string;
|
|
699
|
+
"--apple-pay-button-border-radius": string;
|
|
700
|
+
"--apple-pay-button-padding": string;
|
|
701
|
+
"--apple-pay-button-box-sizing": string;
|
|
702
|
+
display: string;
|
|
703
|
+
margin: string;
|
|
704
|
+
};
|
|
666
705
|
".secure-payment-form": {
|
|
667
706
|
display: string;
|
|
668
707
|
"-ms-flex-wrap": string;
|
|
@@ -698,7 +737,11 @@ export declare const parentStyles: () => {
|
|
|
698
737
|
background: string;
|
|
699
738
|
width: string;
|
|
700
739
|
height: string;
|
|
701
|
-
};
|
|
740
|
+
}; /**
|
|
741
|
+
* Appends additional CSS rules to the group of hosted fields
|
|
742
|
+
*
|
|
743
|
+
* @param json New CSS rules
|
|
744
|
+
*/
|
|
702
745
|
".secure-payment-form .credit-card-submit": {
|
|
703
746
|
margin: string;
|
|
704
747
|
};
|
|
@@ -1053,6 +1096,19 @@ export declare const parentStyles: () => {
|
|
|
1053
1096
|
};
|
|
1054
1097
|
};
|
|
1055
1098
|
simple: {
|
|
1099
|
+
"#googlePay": {
|
|
1100
|
+
height: string;
|
|
1101
|
+
margin: string;
|
|
1102
|
+
};
|
|
1103
|
+
"apple-pay-button": {
|
|
1104
|
+
"--apple-pay-button-width": string;
|
|
1105
|
+
"--apple-pay-button-height": string;
|
|
1106
|
+
"--apple-pay-button-border-radius": string;
|
|
1107
|
+
"--apple-pay-button-padding": string;
|
|
1108
|
+
"--apple-pay-button-box-sizing": string;
|
|
1109
|
+
display: string;
|
|
1110
|
+
margin: string;
|
|
1111
|
+
};
|
|
1056
1112
|
".secure-payment-form": {
|
|
1057
1113
|
"font-family": string;
|
|
1058
1114
|
width: string;
|
|
@@ -1081,9 +1137,6 @@ export declare const parentStyles: () => {
|
|
|
1081
1137
|
};
|
|
1082
1138
|
".secure-payment-form .form-wrapper": {
|
|
1083
1139
|
display: string;
|
|
1084
|
-
/**
|
|
1085
|
-
* Deletes all hosted fields within the form
|
|
1086
|
-
*/
|
|
1087
1140
|
margin: string;
|
|
1088
1141
|
};
|
|
1089
1142
|
".secure-payment-form input": {
|