@globalpayments/js 1.9.3 → 1.9.8
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/apm/index.d.ts +11 -0
- package/types/index.d.ts +4 -0
- package/types/internal/lib/eums.d.ts +11 -0
- package/types/internal/lib/styles/default.d.ts +285 -0
- package/types/internal/lib/styles/gp-default.d.ts +24 -18
- package/types/internal/lib/styles/simple.d.ts +285 -0
- package/types/lib/version.d.ts +1 -1
- package/types/tools/configure.d.ts +12 -7
- package/types/ui/form/index.d.ts +733 -170
- package/types/ui/iframe-field/action-add-click-to-pay.d.ts +2 -2
- package/types/ui/iframe-field/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import UIForm, { IUIFormOptions } from "../ui/form";
|
|
2
|
+
export declare const defaultOptions: IUIFormOptions;
|
|
3
|
+
/**
|
|
4
|
+
* Allows integrators to create a standard drop-in form for
|
|
5
|
+
* accepting eCheck / ACH data.
|
|
6
|
+
*
|
|
7
|
+
* @param target Target element to contain the drop-in form
|
|
8
|
+
* @param formOptions Options for the drop-in form
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function form(target: string | HTMLElement, formOptions?: IUIFormOptions): UIForm;
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IEventListener } from "globalpayments-lib";
|
|
2
2
|
import "globalpayments-lib/polyfills";
|
|
3
3
|
import * as creditCard from "./credit-card";
|
|
4
|
+
import * as apm from "./apm";
|
|
4
5
|
import * as eCheck from "./echeck";
|
|
5
6
|
import * as giftAndLoyalty from "./gift-and-loyalty";
|
|
6
7
|
import * as internal from "./internal";
|
|
@@ -8,10 +9,13 @@ import Events from "./internal/lib/events";
|
|
|
8
9
|
import * as paymentRequest from "./payment-request";
|
|
9
10
|
import * as configure from "./tools/configure";
|
|
10
11
|
import * as ui from "./ui";
|
|
12
|
+
import * as enums from "./internal/lib/eums";
|
|
11
13
|
declare const _default: {
|
|
12
14
|
configure: (options: configure.IConfiguration) => void;
|
|
13
15
|
creditCard: typeof creditCard;
|
|
16
|
+
apm: typeof apm;
|
|
14
17
|
eCheck: typeof eCheck;
|
|
18
|
+
enums: typeof enums;
|
|
15
19
|
events: typeof Events;
|
|
16
20
|
giftAndLoyalty: typeof giftAndLoyalty;
|
|
17
21
|
internal: typeof internal;
|
|
@@ -162,4 +162,289 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
162
162
|
".secure-payment-form .tooltip, .secure-payment-form .tooltip-content": {
|
|
163
163
|
display: string;
|
|
164
164
|
};
|
|
165
|
+
".secure-payment-form .other-cards-label": {
|
|
166
|
+
"border-bottom": string;
|
|
167
|
+
"text-align": string;
|
|
168
|
+
margin: string;
|
|
169
|
+
position: string;
|
|
170
|
+
};
|
|
171
|
+
".secure-payment-form .other-cards-label span": {
|
|
172
|
+
"text-align": string;
|
|
173
|
+
padding: string;
|
|
174
|
+
background: string;
|
|
175
|
+
position: string;
|
|
176
|
+
color: string;
|
|
177
|
+
width: string;
|
|
178
|
+
left: string;
|
|
179
|
+
"-webkit-transform": string;
|
|
180
|
+
"-moz-transform": string;
|
|
181
|
+
"-ms-transform": string;
|
|
182
|
+
"-o-transform": string;
|
|
183
|
+
transform: string;
|
|
184
|
+
margin: string;
|
|
185
|
+
"font-family": string;
|
|
186
|
+
"font-size": string;
|
|
187
|
+
"white-space": string;
|
|
188
|
+
};
|
|
189
|
+
".secure-payment-form .hidden": {
|
|
190
|
+
display: string;
|
|
191
|
+
};
|
|
192
|
+
".secure-payment-form .ctp-panel": {
|
|
193
|
+
border: string;
|
|
194
|
+
"box-shadow": string;
|
|
195
|
+
"border-radius": string;
|
|
196
|
+
"margin-bottom": string;
|
|
197
|
+
};
|
|
198
|
+
".secure-payment-form div[class^='credit-card'].apm-active ~ div:not([class$='shield']):not([class$='logo'])": {
|
|
199
|
+
display: string;
|
|
200
|
+
};
|
|
201
|
+
".secure-payment-form .ctp-panel .ctp-button": {
|
|
202
|
+
display: string;
|
|
203
|
+
background: string;
|
|
204
|
+
"flex-direction": string;
|
|
205
|
+
"align-items": string;
|
|
206
|
+
padding: string;
|
|
207
|
+
flex: string;
|
|
208
|
+
order: string;
|
|
209
|
+
"flex-grow": string;
|
|
210
|
+
position: string;
|
|
211
|
+
"font-size": string;
|
|
212
|
+
"line-height": string;
|
|
213
|
+
cursor: string;
|
|
214
|
+
"font-family": string;
|
|
215
|
+
};
|
|
216
|
+
".secure-payment-form .apm-active .ctp-panel .ctp-button": {
|
|
217
|
+
cursor: string;
|
|
218
|
+
};
|
|
219
|
+
".secure-payment-form .ctp-panel .ctp-button:after": {
|
|
220
|
+
content: string;
|
|
221
|
+
position: string;
|
|
222
|
+
width: string;
|
|
223
|
+
height: string;
|
|
224
|
+
border: string;
|
|
225
|
+
"border-width": string;
|
|
226
|
+
display: string;
|
|
227
|
+
padding: string;
|
|
228
|
+
transform: string;
|
|
229
|
+
"-webkit-transform": string;
|
|
230
|
+
};
|
|
231
|
+
".secure-payment-form .ctp-panel .right-arrow": {
|
|
232
|
+
position: string;
|
|
233
|
+
background: string;
|
|
234
|
+
right: string;
|
|
235
|
+
border: string;
|
|
236
|
+
"border-width": string;
|
|
237
|
+
display: string;
|
|
238
|
+
padding: string;
|
|
239
|
+
transform: string;
|
|
240
|
+
"-webkit-transform": string;
|
|
241
|
+
"z-index": string;
|
|
242
|
+
top: string;
|
|
243
|
+
"margin-top": string;
|
|
244
|
+
};
|
|
245
|
+
".secure-payment-form .apm-active .right-arrow": {
|
|
246
|
+
display: string;
|
|
247
|
+
};
|
|
248
|
+
".secure-payment-form .ctp-info-tooltip": {
|
|
249
|
+
width: string;
|
|
250
|
+
height: string;
|
|
251
|
+
display: string;
|
|
252
|
+
"vertical-align": string;
|
|
253
|
+
overflow: string;
|
|
254
|
+
background: string;
|
|
255
|
+
margin: string;
|
|
256
|
+
};
|
|
257
|
+
".secure-payment-form .ctp-info-tooltip-content": {
|
|
258
|
+
visibility: string;
|
|
259
|
+
width: string;
|
|
260
|
+
"background-color": string;
|
|
261
|
+
color: string;
|
|
262
|
+
"text-align": string;
|
|
263
|
+
"border-radius": string;
|
|
264
|
+
border: string;
|
|
265
|
+
padding: string;
|
|
266
|
+
position: string;
|
|
267
|
+
"z-index": string;
|
|
268
|
+
"margin-left": string;
|
|
269
|
+
"margin-top": string;
|
|
270
|
+
opacity: string;
|
|
271
|
+
transition: string;
|
|
272
|
+
"font-size": string;
|
|
273
|
+
"font-weight": string;
|
|
274
|
+
"box-shadow": string;
|
|
275
|
+
};
|
|
276
|
+
".secure-payment-form .ctp-info-tooltip .ctp-heading": {
|
|
277
|
+
"max-width": string;
|
|
278
|
+
margin: string;
|
|
279
|
+
};
|
|
280
|
+
".secure-payment-form .ctp-info-tooltip-content ul": {
|
|
281
|
+
padding: string;
|
|
282
|
+
};
|
|
283
|
+
".secure-payment-form .ctp-info-tooltip-content li": {
|
|
284
|
+
padding: string;
|
|
285
|
+
"font-size": string;
|
|
286
|
+
"line-height": string;
|
|
287
|
+
"list-style": string;
|
|
288
|
+
};
|
|
289
|
+
".secure-payment-form .ctp-info-tooltip-content li.smart-checkout": {
|
|
290
|
+
background: string;
|
|
291
|
+
};
|
|
292
|
+
".secure-payment-form .ctp-info-tooltip-content li.faster-checkout": {
|
|
293
|
+
background: string;
|
|
294
|
+
};
|
|
295
|
+
".secure-payment-form .ctp-info-tooltip-content li.industry-standards": {
|
|
296
|
+
background: string;
|
|
297
|
+
};
|
|
298
|
+
".secure-payment-form .ctp-info-tooltip .top-arrow": {
|
|
299
|
+
position: string;
|
|
300
|
+
"margin-top": string;
|
|
301
|
+
background: string;
|
|
302
|
+
width: string;
|
|
303
|
+
left: string;
|
|
304
|
+
"margin-left": string;
|
|
305
|
+
border: string;
|
|
306
|
+
"border-width": string;
|
|
307
|
+
display: string;
|
|
308
|
+
padding: string;
|
|
309
|
+
transform: string;
|
|
310
|
+
"-webkit-transform": string;
|
|
311
|
+
"z-index": string;
|
|
312
|
+
};
|
|
313
|
+
".secure-payment-form .ctp-info-tooltip-content li .ctp-icon": {
|
|
314
|
+
"background-size": string;
|
|
315
|
+
width: string;
|
|
316
|
+
height: string;
|
|
317
|
+
margin: string;
|
|
318
|
+
};
|
|
319
|
+
".secure-payment-form .ctp-info-tooltip-content strong": {
|
|
320
|
+
"font-size": string;
|
|
321
|
+
"vertical-align": string;
|
|
322
|
+
};
|
|
323
|
+
".secure-payment-form .ctp-info-tooltip:hover .ctp-info-tooltip-content": {
|
|
324
|
+
visibility: string;
|
|
325
|
+
opacity: string;
|
|
326
|
+
};
|
|
327
|
+
".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
|
|
328
|
+
background: string;
|
|
329
|
+
display: string;
|
|
330
|
+
"vertical-align": string;
|
|
331
|
+
width: string;
|
|
332
|
+
height: string;
|
|
333
|
+
margin: string;
|
|
334
|
+
};
|
|
335
|
+
".secure-payment-form div[class^='ctp'] .card-brands": {
|
|
336
|
+
background: string;
|
|
337
|
+
display: string;
|
|
338
|
+
"vertical-align": string;
|
|
339
|
+
"padding-right": string;
|
|
340
|
+
"min-height": string;
|
|
341
|
+
color: string;
|
|
342
|
+
"white-space": string;
|
|
343
|
+
};
|
|
344
|
+
".secure-payment-form #ctp-wrapper #header": {
|
|
345
|
+
display: string;
|
|
346
|
+
};
|
|
347
|
+
".secure-payment-form #ctp-wrapper #footer": {
|
|
348
|
+
display: string;
|
|
349
|
+
};
|
|
350
|
+
".secure-payment-form #ctp-wrapper label.footerLabel": {
|
|
351
|
+
margin: string;
|
|
352
|
+
"font-size": string;
|
|
353
|
+
"line-height": string;
|
|
354
|
+
"font-weight": string;
|
|
355
|
+
};
|
|
356
|
+
".secure-payment-form #ctp-wrapper .footerLinewindow": {
|
|
357
|
+
padding: string;
|
|
358
|
+
};
|
|
359
|
+
".secure-payment-form #ctp-wrapper .TransitionLabel": {
|
|
360
|
+
"font-size": string;
|
|
361
|
+
"line-height": string;
|
|
362
|
+
"text-align": string;
|
|
363
|
+
float: string;
|
|
364
|
+
margin: string;
|
|
365
|
+
};
|
|
366
|
+
".secure-payment-form #ctp-wrapper #mtransitiontext.transctcardlabel": {
|
|
367
|
+
"font-size": string;
|
|
368
|
+
"line-height": string;
|
|
369
|
+
"text-align": string;
|
|
370
|
+
float: string;
|
|
371
|
+
margin: string;
|
|
372
|
+
};
|
|
373
|
+
".secure-payment-form #ctp-wrapper .transctcardlabel": {
|
|
374
|
+
"font-size": string;
|
|
375
|
+
"line-height": string;
|
|
376
|
+
"text-align": string;
|
|
377
|
+
float: string;
|
|
378
|
+
};
|
|
379
|
+
".secure-payment-form #ctp-wrapper .quitbanner": {
|
|
380
|
+
"margin-left": string;
|
|
381
|
+
"margin-top": string;
|
|
382
|
+
};
|
|
383
|
+
".secure-payment-form #ctp-wrapper .quitbanner > svg": {
|
|
384
|
+
display: string;
|
|
385
|
+
};
|
|
386
|
+
".secure-payment-form #ctp-wrapper .quitbanner .quitPage": {
|
|
387
|
+
margin: string;
|
|
388
|
+
};
|
|
389
|
+
".secure-payment-form #ctp-wrapper .VerificationLabel": {
|
|
390
|
+
"font-size": string;
|
|
391
|
+
"line-height": string;
|
|
392
|
+
"font-weight": string;
|
|
393
|
+
margin: string;
|
|
394
|
+
};
|
|
395
|
+
".secure-payment-form #ctp-wrapper label": {
|
|
396
|
+
"font-size": string;
|
|
397
|
+
"line-height": string;
|
|
398
|
+
"font-weight": string;
|
|
399
|
+
margin: string;
|
|
400
|
+
};
|
|
401
|
+
".secure-payment-form #ctp-wrapper label.change": {
|
|
402
|
+
"font-size": string;
|
|
403
|
+
"line-height": string;
|
|
404
|
+
"font-weight": string;
|
|
405
|
+
margin: string;
|
|
406
|
+
};
|
|
407
|
+
".secure-payment-form #ctp-wrapper .blue-button": {
|
|
408
|
+
height: string;
|
|
409
|
+
"font-size": string;
|
|
410
|
+
"line-height": string;
|
|
411
|
+
padding: string;
|
|
412
|
+
};
|
|
413
|
+
".secure-payment-form #ctp-wrapper .blue-button label": {
|
|
414
|
+
margin: string;
|
|
415
|
+
};
|
|
416
|
+
".secure-payment-form #ctp-wrapper .lblemailDisplay": {
|
|
417
|
+
"font-size": string;
|
|
418
|
+
"line-height": string;
|
|
419
|
+
"margin-top": string;
|
|
420
|
+
};
|
|
421
|
+
".secure-payment-form #ctp-wrapper .rsdcode": {
|
|
422
|
+
"font-size": string;
|
|
423
|
+
"line-height": string;
|
|
424
|
+
"font-weight": string;
|
|
425
|
+
"margin-bottom": string;
|
|
426
|
+
};
|
|
427
|
+
".secure-payment-form #ctp-wrapper .svgalignDiv": {
|
|
428
|
+
padding: string;
|
|
429
|
+
};
|
|
430
|
+
".secure-payment-form #ctp-wrapper .signinlayout": {
|
|
431
|
+
"min-height": string;
|
|
432
|
+
"max-width": string;
|
|
433
|
+
};
|
|
434
|
+
".secure-payment-form #ctp-wrapper .logindiv": {
|
|
435
|
+
"min-height": string;
|
|
436
|
+
padding: string;
|
|
437
|
+
};
|
|
438
|
+
".secure-payment-form #ctp-wrapper #cancel-link": {
|
|
439
|
+
"margin-bottom": string;
|
|
440
|
+
};
|
|
441
|
+
".secure-payment-form #ctp-wrapper .logindiv .tooltip": {
|
|
442
|
+
display: string;
|
|
443
|
+
};
|
|
444
|
+
".secure-payment-form #ctp-wrapper .logindiv .lblemailInput": {
|
|
445
|
+
display: string;
|
|
446
|
+
};
|
|
447
|
+
".secure-payment-form #ctp-wrapper .VerificationLabel label": {
|
|
448
|
+
display: string;
|
|
449
|
+
};
|
|
165
450
|
};
|
|
@@ -251,7 +251,7 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
251
251
|
".secure-payment-form .apm-active .right-arrow": {
|
|
252
252
|
display: string;
|
|
253
253
|
};
|
|
254
|
-
".secure-payment-form .ctp-
|
|
254
|
+
".secure-payment-form .ctp-info-tooltip": {
|
|
255
255
|
width: string;
|
|
256
256
|
height: string;
|
|
257
257
|
display: string;
|
|
@@ -260,7 +260,7 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
260
260
|
background: string;
|
|
261
261
|
margin: string;
|
|
262
262
|
};
|
|
263
|
-
".secure-payment-form .ctp-
|
|
263
|
+
".secure-payment-form .ctp-info-tooltip-content": {
|
|
264
264
|
visibility: string;
|
|
265
265
|
width: string;
|
|
266
266
|
"background-color": string;
|
|
@@ -279,21 +279,29 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
279
279
|
"font-weight": string;
|
|
280
280
|
"box-shadow": string;
|
|
281
281
|
};
|
|
282
|
-
".secure-payment-form .ctp-
|
|
282
|
+
".secure-payment-form .ctp-info-tooltip .ctp-heading": {
|
|
283
|
+
"max-width": string;
|
|
284
|
+
margin: string;
|
|
285
|
+
};
|
|
286
|
+
".secure-payment-form .ctp-info-tooltip-content ul": {
|
|
287
|
+
padding: string;
|
|
288
|
+
};
|
|
289
|
+
".secure-payment-form .ctp-info-tooltip-content li": {
|
|
283
290
|
padding: string;
|
|
284
291
|
"font-size": string;
|
|
285
292
|
"line-height": string;
|
|
293
|
+
"list-style": string;
|
|
286
294
|
};
|
|
287
|
-
".secure-payment-form .ctp-
|
|
295
|
+
".secure-payment-form .ctp-info-tooltip-content li.smart-checkout": {
|
|
288
296
|
background: string;
|
|
289
297
|
};
|
|
290
|
-
".secure-payment-form .ctp-
|
|
298
|
+
".secure-payment-form .ctp-info-tooltip-content li.faster-checkout": {
|
|
291
299
|
background: string;
|
|
292
300
|
};
|
|
293
|
-
".secure-payment-form .ctp-
|
|
301
|
+
".secure-payment-form .ctp-info-tooltip-content li.industry-standards": {
|
|
294
302
|
background: string;
|
|
295
303
|
};
|
|
296
|
-
".secure-payment-form .ctp-
|
|
304
|
+
".secure-payment-form .ctp-info-tooltip .top-arrow": {
|
|
297
305
|
position: string;
|
|
298
306
|
"margin-top": string;
|
|
299
307
|
background: string;
|
|
@@ -308,17 +316,17 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
308
316
|
"-webkit-transform": string;
|
|
309
317
|
"z-index": string;
|
|
310
318
|
};
|
|
311
|
-
".secure-payment-form .ctp-
|
|
319
|
+
".secure-payment-form .ctp-info-tooltip-content li .ctp-icon": {
|
|
312
320
|
"background-size": string;
|
|
313
321
|
width: string;
|
|
314
322
|
height: string;
|
|
315
323
|
margin: string;
|
|
316
324
|
};
|
|
317
|
-
".secure-payment-form .ctp-
|
|
325
|
+
".secure-payment-form .ctp-info-tooltip-content strong": {
|
|
318
326
|
"font-size": string;
|
|
319
327
|
"vertical-align": string;
|
|
320
328
|
};
|
|
321
|
-
".secure-payment-form .ctp-
|
|
329
|
+
".secure-payment-form .ctp-info-tooltip:hover .ctp-info-tooltip-content": {
|
|
322
330
|
visibility: string;
|
|
323
331
|
opacity: string;
|
|
324
332
|
};
|
|
@@ -330,7 +338,7 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
330
338
|
height: string;
|
|
331
339
|
margin: string;
|
|
332
340
|
};
|
|
333
|
-
".secure-payment-form
|
|
341
|
+
".secure-payment-form div[class^='ctp'] .card-brands": {
|
|
334
342
|
background: string;
|
|
335
343
|
display: string;
|
|
336
344
|
"vertical-align": string;
|
|
@@ -390,13 +398,7 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
390
398
|
"font-weight": string;
|
|
391
399
|
margin: string;
|
|
392
400
|
};
|
|
393
|
-
".secure-payment-form #ctp-wrapper label
|
|
394
|
-
"font-size": string;
|
|
395
|
-
"line-height": string;
|
|
396
|
-
"font-weight": string;
|
|
397
|
-
margin: string;
|
|
398
|
-
};
|
|
399
|
-
".secure-payment-form #ctp-wrapper label#userMobile": {
|
|
401
|
+
".secure-payment-form #ctp-wrapper label": {
|
|
400
402
|
"font-size": string;
|
|
401
403
|
"line-height": string;
|
|
402
404
|
"font-weight": string;
|
|
@@ -433,11 +435,15 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
433
435
|
};
|
|
434
436
|
".secure-payment-form #ctp-wrapper .signinlayout": {
|
|
435
437
|
"min-height": string;
|
|
438
|
+
"max-width": string;
|
|
436
439
|
};
|
|
437
440
|
".secure-payment-form #ctp-wrapper .logindiv": {
|
|
438
441
|
"min-height": string;
|
|
439
442
|
padding: string;
|
|
440
443
|
};
|
|
444
|
+
".secure-payment-form #ctp-wrapper #cancel-link": {
|
|
445
|
+
"margin-bottom": string;
|
|
446
|
+
};
|
|
441
447
|
".secure-payment-form #ctp-wrapper .logindiv .tooltip": {
|
|
442
448
|
display: string;
|
|
443
449
|
};
|