@globalpayments/js 2.0.1 → 2.1.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 +32 -1
- package/package.json +2 -2
- package/types/apm/qr-code-payments/components/common.d.ts +2 -0
- package/types/apm/qr-code-payments/components/generate-qr-code.d.ts +3 -0
- package/types/apm/qr-code-payments/components/present-qr-code-action-handler.d.ts +1 -0
- package/types/apm/qr-code-payments/components/qr-code-expired-handler.d.ts +1 -0
- package/types/apm/qr-code-payments/components/redirect-action-handler.d.ts +1 -0
- package/types/apm/qr-code-payments/components/redirect-in-frame-action-handler.d.ts +1 -0
- package/types/apm/qr-code-payments/constants.d.ts +1 -0
- package/types/apm/qr-code-payments/contracts.d.ts +17 -0
- package/types/apm/qr-code-payments/enums.d.ts +10 -0
- package/types/apm/qr-code-payments/helpers.d.ts +3 -0
- package/types/apm/qr-code-payments/requests/get-qr-code-payment-methods.d.ts +3 -0
- package/types/common/currency.d.ts +7 -0
- package/types/common/html-element.d.ts +8 -0
- package/types/internal/gateways/gp-api/get-qr-code-payment-methods.d.ts +3 -0
- package/types/internal/gateways/gp-api/index.d.ts +1 -0
- package/types/internal/gateways/index.d.ts +2 -0
- package/types/internal/lib/enums.d.ts +17 -1
- package/types/internal/lib/styles/default.d.ts +143 -0
- package/types/internal/lib/styles/gp-default.d.ts +143 -0
- package/types/internal/lib/styles/qr-code-payments/common.d.ts +151 -0
- package/types/internal/lib/styles/simple.d.ts +143 -0
- package/types/internal/lib/translations/en.d.ts +30 -0
- package/types/internal/lib/translations/zh.d.ts +30 -0
- package/types/lib/version.d.ts +1 -1
- package/types/tools/configure.d.ts +2 -0
- package/types/ui/form/index.d.ts +475 -19
- package/types/ui/iframe-field/action-add-qr-code-payment-methods.d.ts +3 -0
- package/types/ui/iframe-field/action-qr-code-payment-methods-request-start.d.ts +6 -0
|
@@ -148,6 +148,149 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
|
148
148
|
};
|
|
149
149
|
};
|
|
150
150
|
export declare const parentStyles: (assetBaseUrl: string) => {
|
|
151
|
+
".secure-payment-form .credit-card-qr-code-payments"?: {
|
|
152
|
+
"font-family": string;
|
|
153
|
+
};
|
|
154
|
+
".secure-payment-form .credit-card-qr-code-payments-target, .qr-code-payment-content, .qr-code-payment-countdown-timer"?: {
|
|
155
|
+
display: string;
|
|
156
|
+
"flex-direction": string;
|
|
157
|
+
"align-items": string;
|
|
158
|
+
};
|
|
159
|
+
".secure-payment-form .qr-code-payment-methods-wrapper"?: {
|
|
160
|
+
width: string;
|
|
161
|
+
};
|
|
162
|
+
".secure-payment-form .qr-code-payment-method-button"?: {
|
|
163
|
+
color: string;
|
|
164
|
+
height: string;
|
|
165
|
+
width: string;
|
|
166
|
+
"border-radius": string;
|
|
167
|
+
border: string;
|
|
168
|
+
margin: string;
|
|
169
|
+
cursor: string;
|
|
170
|
+
};
|
|
171
|
+
".secure-payment-form .qr-code-payment-method-alipayhk"?: {
|
|
172
|
+
"background-color": string;
|
|
173
|
+
border: string;
|
|
174
|
+
};
|
|
175
|
+
".secure-payment-form .qr-code-payment-method-alipayhk:hover"?: {
|
|
176
|
+
"background-color": string;
|
|
177
|
+
border: string;
|
|
178
|
+
};
|
|
179
|
+
".secure-payment-form .qr-code-payment-method-alipay"?: {
|
|
180
|
+
"background-color": string;
|
|
181
|
+
border: string;
|
|
182
|
+
};
|
|
183
|
+
".secure-payment-form .qr-code-payment-method-alipay:hover"?: {
|
|
184
|
+
"background-color": string;
|
|
185
|
+
border: string;
|
|
186
|
+
};
|
|
187
|
+
".secure-payment-form .qr-code-payment-method-wechat"?: {
|
|
188
|
+
"background-color": string;
|
|
189
|
+
border: string;
|
|
190
|
+
};
|
|
191
|
+
".secure-payment-form .qr-code-payment-method-wechat:hover"?: {
|
|
192
|
+
"background-color": string;
|
|
193
|
+
border: string;
|
|
194
|
+
};
|
|
195
|
+
".secure-payment-form .qr-code-payment-iframe-wrapper"?: {
|
|
196
|
+
display: string;
|
|
197
|
+
"flex-direction": string;
|
|
198
|
+
"align-items": string;
|
|
199
|
+
};
|
|
200
|
+
".secure-payment-form .qr-code-payment-iframe"?: {
|
|
201
|
+
border: string;
|
|
202
|
+
width: string;
|
|
203
|
+
height: string;
|
|
204
|
+
};
|
|
205
|
+
".secure-payment-form .qr-code-payment-content"?: {
|
|
206
|
+
"font-size": string;
|
|
207
|
+
"line-height": string;
|
|
208
|
+
width: string;
|
|
209
|
+
};
|
|
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
|
+
".secure-payment-form .qr-code-payment-countdown-timer-message"?: {
|
|
233
|
+
color: string;
|
|
234
|
+
"font-size": string;
|
|
235
|
+
"line-height": string;
|
|
236
|
+
};
|
|
237
|
+
".secure-payment-form .qr-code-payment-countdown-timer-clock img"?: {
|
|
238
|
+
"margin-right": string;
|
|
239
|
+
};
|
|
240
|
+
".secure-payment-form .qr-code-payment-countdown-timer-clock"?: {
|
|
241
|
+
display: string;
|
|
242
|
+
"align-items": string;
|
|
243
|
+
color: string;
|
|
244
|
+
"font-size": string;
|
|
245
|
+
"line-height": string;
|
|
246
|
+
"font-weight": string;
|
|
247
|
+
"justify-content": string;
|
|
248
|
+
};
|
|
249
|
+
".secure-payment-form .payment-amount"?: {
|
|
250
|
+
color: string;
|
|
251
|
+
"font-style": string;
|
|
252
|
+
"font-weight": string;
|
|
253
|
+
"line-height": string;
|
|
254
|
+
"font-size": string;
|
|
255
|
+
};
|
|
256
|
+
".secure-payment-form .qr-code-expired-alert"?: {
|
|
257
|
+
display: string;
|
|
258
|
+
border: string;
|
|
259
|
+
height: string;
|
|
260
|
+
"margin-top": string;
|
|
261
|
+
};
|
|
262
|
+
".secure-payment-form .qr-code-expired-alert-icon"?: {
|
|
263
|
+
background: string;
|
|
264
|
+
display: string;
|
|
265
|
+
"align-items": string;
|
|
266
|
+
"justify-content": string;
|
|
267
|
+
width: string;
|
|
268
|
+
};
|
|
269
|
+
".secure-payment-form .qr-code-expired-alert-message"?: {
|
|
270
|
+
display: string;
|
|
271
|
+
"flex-direction": string;
|
|
272
|
+
"justify-content": string;
|
|
273
|
+
padding: string;
|
|
274
|
+
"font-size": string;
|
|
275
|
+
"line-height": string;
|
|
276
|
+
};
|
|
277
|
+
".secure-payment-form .qr-code-expired-alert-message-title"?: {
|
|
278
|
+
color: string;
|
|
279
|
+
"font-size": string;
|
|
280
|
+
"line-height": string;
|
|
281
|
+
};
|
|
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
|
+
};
|
|
151
294
|
"#googlePay": {
|
|
152
295
|
height: string;
|
|
153
296
|
margin: string;
|
|
@@ -46,5 +46,35 @@ declare const en: {
|
|
|
46
46
|
text: string;
|
|
47
47
|
};
|
|
48
48
|
"other-cards-label": string;
|
|
49
|
+
QR: {
|
|
50
|
+
scanRqCode: string;
|
|
51
|
+
payInApp: string;
|
|
52
|
+
amount: {
|
|
53
|
+
"aria-label": string;
|
|
54
|
+
};
|
|
55
|
+
qrImage: {
|
|
56
|
+
alt: string;
|
|
57
|
+
"aria-label": string;
|
|
58
|
+
};
|
|
59
|
+
timer: {
|
|
60
|
+
text: string;
|
|
61
|
+
minutes: string;
|
|
62
|
+
seconds: string;
|
|
63
|
+
"icon-alt": string;
|
|
64
|
+
};
|
|
65
|
+
expiredScreen: {
|
|
66
|
+
title: string;
|
|
67
|
+
alt: string;
|
|
68
|
+
text: string;
|
|
69
|
+
};
|
|
70
|
+
button: {
|
|
71
|
+
text: string;
|
|
72
|
+
"aria-label": string;
|
|
73
|
+
};
|
|
74
|
+
loading: string;
|
|
75
|
+
redirectScreen: {
|
|
76
|
+
redirectingToPaymentPageMessage: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
49
79
|
};
|
|
50
80
|
export default en;
|
|
@@ -45,5 +45,35 @@ declare const zh: {
|
|
|
45
45
|
text: string;
|
|
46
46
|
};
|
|
47
47
|
"other-cards-label": string;
|
|
48
|
+
QR: {
|
|
49
|
+
button: {
|
|
50
|
+
text: string;
|
|
51
|
+
"aria-label": string;
|
|
52
|
+
};
|
|
53
|
+
loading: string;
|
|
54
|
+
redirectScreen: {
|
|
55
|
+
redirectingToPaymentPageMessage: string;
|
|
56
|
+
};
|
|
57
|
+
scanRqCode: string;
|
|
58
|
+
payInApp: string;
|
|
59
|
+
amount: {
|
|
60
|
+
"aria-label": string;
|
|
61
|
+
};
|
|
62
|
+
qrImage: {
|
|
63
|
+
alt: string;
|
|
64
|
+
"aria-label": string;
|
|
65
|
+
};
|
|
66
|
+
timer: {
|
|
67
|
+
text: string;
|
|
68
|
+
minutes: string;
|
|
69
|
+
seconds: string;
|
|
70
|
+
"icon-alt": string;
|
|
71
|
+
};
|
|
72
|
+
expiredScreen: {
|
|
73
|
+
title: string;
|
|
74
|
+
alt: string;
|
|
75
|
+
text: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
48
78
|
};
|
|
49
79
|
export default zh;
|
package/types/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.
|
|
1
|
+
declare const _default: "2.1.3";
|
|
2
2
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IQRCodePaymentsConfiguration } from "../apm/qr-code-payments/contracts";
|
|
1
2
|
import { IDictionary } from "../internal/lib/util";
|
|
2
3
|
/**
|
|
3
4
|
* Defines expected configuration properties for using the
|
|
@@ -63,6 +64,7 @@ export interface IConfiguration extends IDictionary {
|
|
|
63
64
|
merchantId?: string;
|
|
64
65
|
merchantName?: string;
|
|
65
66
|
};
|
|
67
|
+
qrCodePayments?: IQRCodePaymentsConfiguration;
|
|
66
68
|
};
|
|
67
69
|
webApiKey?: string;
|
|
68
70
|
deviceId?: string;
|