@globalpayments/js 2.1.3 → 3.0.3
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 +1 -1
- package/package.json +1 -1
- package/types/apm/enums.d.ts +10 -0
- package/types/apm/non-card-payments/components/common.d.ts +5 -0
- package/types/apm/non-card-payments/components/constants.d.ts +1 -0
- package/types/apm/non-card-payments/components/redirect-action-handler.d.ts +1 -0
- package/types/apm/non-card-payments/contracts.d.ts +8 -0
- package/types/apm/qr-code-payments/components/common.d.ts +0 -1
- package/types/apm/qr-code-payments/contracts.d.ts +3 -7
- package/types/apm/qr-code-payments/enums.d.ts +1 -2
- package/types/common/html-element.d.ts +1 -0
- package/types/internal/gateways/gp-api/get-apm-payment-methods.d.ts +3 -0
- package/types/internal/lib/enums.d.ts +18 -9
- package/types/internal/lib/eums.d.ts +11 -0
- package/types/internal/lib/styles/apple-pay/common.d.ts +12 -0
- package/types/internal/lib/styles/default.d.ts +73 -24
- package/types/internal/lib/styles/google-pay/common.d.ts +11 -0
- package/types/internal/lib/styles/gp-default.d.ts +73 -24
- package/types/internal/lib/styles/payment-methods/common.d.ts +191 -0
- package/types/internal/lib/styles/payment-methods/open-banking.d.ts +40 -0
- package/types/internal/lib/styles/payment-methods/qr-code-payments.d.ts +121 -0
- package/types/internal/lib/styles/qr-code-payments/common.d.ts +0 -8
- package/types/internal/lib/styles/simple.d.ts +8 -34
- package/types/internal/lib/translations/en.d.ts +5 -0
- package/types/internal/lib/translations/fr.d.ts +60 -0
- package/types/lib/version.d.ts +1 -1
- package/types/tools/configure.d.ts +3 -0
- package/types/ui/form/index.d.ts +180 -128
- package/types/ui/iframe-field/action-add-open-banking.d.ts +2 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
2
|
+
"@font-face": {
|
|
3
|
+
"font-family": string;
|
|
4
|
+
src: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare const styles: (assetBaseUrl: string) => {
|
|
8
|
+
".secure-payment-form .credit-card-qr-code-payments": {
|
|
9
|
+
"font-family": string;
|
|
10
|
+
};
|
|
11
|
+
".secure-payment-form .credit-card-qr-code-payments-target, .qr-code-payment-content, .qr-code-payment-countdown-timer": {
|
|
12
|
+
display: string;
|
|
13
|
+
"flex-direction": string;
|
|
14
|
+
"align-items": string;
|
|
15
|
+
};
|
|
16
|
+
".secure-payment-form .qr-code-payment-methods-wrapper": {
|
|
17
|
+
width: string;
|
|
18
|
+
};
|
|
19
|
+
".secure-payment-form .qr-code-payment-method-button": {
|
|
20
|
+
color: string;
|
|
21
|
+
height: string;
|
|
22
|
+
width: string;
|
|
23
|
+
"border-radius": string;
|
|
24
|
+
border: string;
|
|
25
|
+
margin: string;
|
|
26
|
+
cursor: string;
|
|
27
|
+
};
|
|
28
|
+
".secure-payment-form .qr-code-payment-method-button:focus": {
|
|
29
|
+
outline: string;
|
|
30
|
+
"outline-offset": string;
|
|
31
|
+
};
|
|
32
|
+
".secure-payment-form .qr-code-payment-method-alipayhk": {
|
|
33
|
+
"background-color": string;
|
|
34
|
+
border: string;
|
|
35
|
+
};
|
|
36
|
+
".secure-payment-form .qr-code-payment-method-alipayhk:hover": {
|
|
37
|
+
"background-color": string;
|
|
38
|
+
border: string;
|
|
39
|
+
};
|
|
40
|
+
".secure-payment-form .qr-code-payment-method-alipay": {
|
|
41
|
+
"background-color": string;
|
|
42
|
+
border: string;
|
|
43
|
+
};
|
|
44
|
+
".secure-payment-form .qr-code-payment-method-alipay:hover": {
|
|
45
|
+
"background-color": string;
|
|
46
|
+
border: string;
|
|
47
|
+
};
|
|
48
|
+
".secure-payment-form .qr-code-payment-method-wechat": {
|
|
49
|
+
"background-color": string;
|
|
50
|
+
border: string;
|
|
51
|
+
};
|
|
52
|
+
".secure-payment-form .qr-code-payment-method-wechat:hover": {
|
|
53
|
+
"background-color": string;
|
|
54
|
+
border: string;
|
|
55
|
+
};
|
|
56
|
+
".secure-payment-form .qr-code-payment-iframe-wrapper": {
|
|
57
|
+
display: string;
|
|
58
|
+
"flex-direction": string;
|
|
59
|
+
"align-items": string;
|
|
60
|
+
};
|
|
61
|
+
".secure-payment-form .qr-code-payment-iframe": {
|
|
62
|
+
border: string;
|
|
63
|
+
width: string;
|
|
64
|
+
height: string;
|
|
65
|
+
};
|
|
66
|
+
".secure-payment-form .qr-code-payment-content": {
|
|
67
|
+
"font-size": string;
|
|
68
|
+
"line-height": string;
|
|
69
|
+
width: string;
|
|
70
|
+
};
|
|
71
|
+
".secure-payment-form .qr-code-payment-countdown-timer-message": {
|
|
72
|
+
color: string;
|
|
73
|
+
"font-size": string;
|
|
74
|
+
"line-height": string;
|
|
75
|
+
};
|
|
76
|
+
".secure-payment-form .qr-code-payment-countdown-timer-clock img": {
|
|
77
|
+
"margin-right": string;
|
|
78
|
+
};
|
|
79
|
+
".secure-payment-form .qr-code-payment-countdown-timer-clock": {
|
|
80
|
+
display: string;
|
|
81
|
+
"align-items": string;
|
|
82
|
+
color: string;
|
|
83
|
+
"font-size": string;
|
|
84
|
+
"line-height": string;
|
|
85
|
+
"font-weight": string;
|
|
86
|
+
"justify-content": string;
|
|
87
|
+
};
|
|
88
|
+
".secure-payment-form .payment-amount": {
|
|
89
|
+
color: string;
|
|
90
|
+
"font-style": string;
|
|
91
|
+
"font-weight": string;
|
|
92
|
+
"line-height": string;
|
|
93
|
+
"font-size": string;
|
|
94
|
+
};
|
|
95
|
+
".secure-payment-form .qr-code-expired-alert": {
|
|
96
|
+
display: string;
|
|
97
|
+
border: string;
|
|
98
|
+
height: string;
|
|
99
|
+
"margin-top": string;
|
|
100
|
+
};
|
|
101
|
+
".secure-payment-form .qr-code-expired-alert-icon": {
|
|
102
|
+
background: string;
|
|
103
|
+
display: string;
|
|
104
|
+
"align-items": string;
|
|
105
|
+
"justify-content": string;
|
|
106
|
+
width: string;
|
|
107
|
+
};
|
|
108
|
+
".secure-payment-form .qr-code-expired-alert-message": {
|
|
109
|
+
display: string;
|
|
110
|
+
"flex-direction": string;
|
|
111
|
+
"justify-content": string;
|
|
112
|
+
padding: string;
|
|
113
|
+
"font-size": string;
|
|
114
|
+
"line-height": string;
|
|
115
|
+
};
|
|
116
|
+
".secure-payment-form .qr-code-expired-alert-message-title": {
|
|
117
|
+
color: string;
|
|
118
|
+
"font-size": string;
|
|
119
|
+
"line-height": string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -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;
|
|
@@ -168,6 +168,10 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
168
168
|
margin: string;
|
|
169
169
|
cursor: string;
|
|
170
170
|
};
|
|
171
|
+
".secure-payment-form .qr-code-payment-method-button:focus"?: {
|
|
172
|
+
outline: string;
|
|
173
|
+
"outline-offset": string;
|
|
174
|
+
};
|
|
171
175
|
".secure-payment-form .qr-code-payment-method-alipayhk"?: {
|
|
172
176
|
"background-color": string;
|
|
173
177
|
border: string;
|
|
@@ -207,28 +211,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
207
211
|
"line-height": string;
|
|
208
212
|
width: string;
|
|
209
213
|
};
|
|
210
|
-
".secure-payment-form .link-button"?: {
|
|
211
|
-
background: string;
|
|
212
|
-
border: string;
|
|
213
|
-
color: string;
|
|
214
|
-
"font-style": string;
|
|
215
|
-
"font-weight": string;
|
|
216
|
-
"line-height": string;
|
|
217
|
-
"font-size": string;
|
|
218
|
-
padding: string;
|
|
219
|
-
cursor: string;
|
|
220
|
-
margin: string;
|
|
221
|
-
};
|
|
222
|
-
".secure-payment-form .link-button:hover"?: {
|
|
223
|
-
color: string;
|
|
224
|
-
};
|
|
225
|
-
".secure-payment-form .link-button:active"?: {
|
|
226
|
-
color: string;
|
|
227
|
-
};
|
|
228
|
-
".secure-payment-form .link-button:focus"?: {
|
|
229
|
-
color: string;
|
|
230
|
-
border: string;
|
|
231
|
-
};
|
|
232
214
|
".secure-payment-form .qr-code-payment-countdown-timer-message"?: {
|
|
233
215
|
color: string;
|
|
234
216
|
"font-size": string;
|
|
@@ -279,22 +261,14 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
279
261
|
"font-size": string;
|
|
280
262
|
"line-height": string;
|
|
281
263
|
};
|
|
282
|
-
".secure-payment-form .qr-code-redirecting-to-page"?: {
|
|
283
|
-
"justify-content": string;
|
|
284
|
-
height: string;
|
|
285
|
-
display: string;
|
|
286
|
-
"flex-direction": string;
|
|
287
|
-
"align-items": string;
|
|
288
|
-
};
|
|
289
|
-
".secure-payment-form .qr-code-redirecting-to-page-message"?: {
|
|
290
|
-
color: string;
|
|
291
|
-
"font-size": string;
|
|
292
|
-
"line-height": string;
|
|
293
|
-
};
|
|
294
264
|
"#googlePay": {
|
|
295
265
|
height: string;
|
|
296
266
|
margin: string;
|
|
297
267
|
};
|
|
268
|
+
"#googlePay button:focus": {
|
|
269
|
+
outline: string;
|
|
270
|
+
"outline-offset": string;
|
|
271
|
+
};
|
|
298
272
|
".secure-payment-form .ctp-panel": {
|
|
299
273
|
border: string;
|
|
300
274
|
"box-shadow": string;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const fr: {
|
|
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
|
+
};
|
|
37
|
+
footer: {
|
|
38
|
+
"ssl-msg-alt": string;
|
|
39
|
+
"ssl-msg": string;
|
|
40
|
+
"security-msg-alt": string;
|
|
41
|
+
"security-msg": string;
|
|
42
|
+
};
|
|
43
|
+
tooltip: {
|
|
44
|
+
title: string;
|
|
45
|
+
"aria-label": string;
|
|
46
|
+
text: string;
|
|
47
|
+
};
|
|
48
|
+
"other-cards-label": string;
|
|
49
|
+
QR: {
|
|
50
|
+
button: {
|
|
51
|
+
text: string;
|
|
52
|
+
"aria-label": string;
|
|
53
|
+
};
|
|
54
|
+
loading: string;
|
|
55
|
+
redirectScreen: {
|
|
56
|
+
redirectingToPaymentPageMessage: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export default fr;
|
package/types/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "
|
|
1
|
+
declare const _default: "3.0.3";
|
|
2
2
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IQRCodePaymentsConfiguration } from "../apm/qr-code-payments/contracts";
|
|
2
2
|
import { IDictionary } from "../internal/lib/util";
|
|
3
|
+
import { IApmConfiguration } from "../apm/non-card-payments/contracts";
|
|
3
4
|
/**
|
|
4
5
|
* Defines expected configuration properties for using the
|
|
5
6
|
* library with the supported gateway implementations.
|
|
@@ -25,6 +26,8 @@ export interface IConfiguration extends IDictionary {
|
|
|
25
26
|
allowedCardTypes?: string[];
|
|
26
27
|
apms?: {
|
|
27
28
|
allowedCardNetworks?: string[];
|
|
29
|
+
nonCardPayments?: IApmConfiguration;
|
|
30
|
+
countryCode?: string;
|
|
28
31
|
currencyCode?: string;
|
|
29
32
|
applePay?: {
|
|
30
33
|
allowedAuthMethods?: string[];
|