@globalpayments/js 1.9.1 → 1.9.7

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.1",
3
+ "version": "1.9.7",
4
4
  "author": "Heartland Developer Portal <developers@heartland.us>",
5
5
  "license": "GPL-2.0",
6
6
  "repository": {
@@ -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;
@@ -4,6 +4,7 @@ export declare const supports: {
4
4
  apm: {
5
5
  applePay: boolean;
6
6
  googlePay: boolean;
7
+ clickToPay: boolean;
7
8
  };
8
9
  binCheck: {
9
10
  hsaFsa: boolean;
@@ -3,6 +3,7 @@ export interface ICapabilitiesList {
3
3
  apm?: {
4
4
  applePay?: boolean;
5
5
  googlePay?: boolean;
6
+ clickToPay?: boolean;
6
7
  };
7
8
  binCheck?: {
8
9
  hsaFsa?: boolean;
@@ -40,6 +41,7 @@ export interface ISuccess {
40
41
  merchantName?: string;
41
42
  orderId?: string;
42
43
  reference?: string;
44
+ apmProvider?: string;
43
45
  };
44
46
  methodName?: string;
45
47
  payerEmail?: string;
@@ -0,0 +1,11 @@
1
+ export declare enum Apm {
2
+ ClickToPay = "click-to-pay",
3
+ GooglePay = "google-pay",
4
+ ApplePay = "apple-pay"
5
+ }
6
+ export declare enum CardNetwork {
7
+ Visa = "VISA",
8
+ Mastercard = "MASTERCARD",
9
+ Amex = "AMEX",
10
+ Discover = "DISCOVER"
11
+ }
@@ -162,4 +162,286 @@ 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 li": {
281
+ padding: string;
282
+ "font-size": string;
283
+ "line-height": string;
284
+ "list-style": string;
285
+ };
286
+ ".secure-payment-form .ctp-info-tooltip-content li.smart-checkout": {
287
+ background: string;
288
+ };
289
+ ".secure-payment-form .ctp-info-tooltip-content li.faster-checkout": {
290
+ background: string;
291
+ };
292
+ ".secure-payment-form .ctp-info-tooltip-content li.industry-standards": {
293
+ background: string;
294
+ };
295
+ ".secure-payment-form .ctp-info-tooltip .top-arrow": {
296
+ position: string;
297
+ "margin-top": string;
298
+ background: string;
299
+ width: string;
300
+ left: string;
301
+ "margin-left": string;
302
+ border: string;
303
+ "border-width": string;
304
+ display: string;
305
+ padding: string;
306
+ transform: string;
307
+ "-webkit-transform": string;
308
+ "z-index": string;
309
+ };
310
+ ".secure-payment-form .ctp-info-tooltip-content li .ctp-icon": {
311
+ "background-size": string;
312
+ width: string;
313
+ height: string;
314
+ margin: string;
315
+ };
316
+ ".secure-payment-form .ctp-info-tooltip-content strong": {
317
+ "font-size": string;
318
+ "vertical-align": string;
319
+ };
320
+ ".secure-payment-form .ctp-info-tooltip:hover .ctp-info-tooltip-content": {
321
+ visibility: string;
322
+ opacity: string;
323
+ };
324
+ ".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
325
+ background: string;
326
+ display: string;
327
+ "vertical-align": string;
328
+ width: string;
329
+ height: string;
330
+ margin: string;
331
+ };
332
+ ".secure-payment-form .ctp-info-tooltip .card-brands": {
333
+ background: string;
334
+ display: string;
335
+ "vertical-align": string;
336
+ "padding-right": string;
337
+ "min-height": string;
338
+ color: string;
339
+ "white-space": string;
340
+ };
341
+ ".secure-payment-form #ctp-wrapper #header": {
342
+ display: string;
343
+ };
344
+ ".secure-payment-form #ctp-wrapper #footer": {
345
+ display: string;
346
+ };
347
+ ".secure-payment-form #ctp-wrapper label.footerLabel": {
348
+ margin: string;
349
+ "font-size": string;
350
+ "line-height": string;
351
+ "font-weight": string;
352
+ };
353
+ ".secure-payment-form #ctp-wrapper .footerLinewindow": {
354
+ padding: string;
355
+ };
356
+ ".secure-payment-form #ctp-wrapper .TransitionLabel": {
357
+ "font-size": string;
358
+ "line-height": string;
359
+ "text-align": string;
360
+ float: string;
361
+ margin: string;
362
+ };
363
+ ".secure-payment-form #ctp-wrapper #mtransitiontext.transctcardlabel": {
364
+ "font-size": string;
365
+ "line-height": string;
366
+ "text-align": string;
367
+ float: string;
368
+ margin: string;
369
+ };
370
+ ".secure-payment-form #ctp-wrapper .transctcardlabel": {
371
+ "font-size": string;
372
+ "line-height": string;
373
+ "text-align": string;
374
+ float: string;
375
+ };
376
+ ".secure-payment-form #ctp-wrapper .quitbanner": {
377
+ "margin-left": string;
378
+ "margin-top": string;
379
+ };
380
+ ".secure-payment-form #ctp-wrapper .quitbanner > svg": {
381
+ display: string;
382
+ };
383
+ ".secure-payment-form #ctp-wrapper .quitbanner .quitPage": {
384
+ margin: string;
385
+ };
386
+ ".secure-payment-form #ctp-wrapper .VerificationLabel": {
387
+ "font-size": string;
388
+ "line-height": string;
389
+ "font-weight": string;
390
+ margin: string;
391
+ };
392
+ ".secure-payment-form #ctp-wrapper label": {
393
+ "font-size": string;
394
+ "line-height": string;
395
+ "font-weight": string;
396
+ margin: string;
397
+ };
398
+ ".secure-payment-form #ctp-wrapper label.change": {
399
+ "font-size": string;
400
+ "line-height": string;
401
+ "font-weight": string;
402
+ margin: string;
403
+ };
404
+ ".secure-payment-form #ctp-wrapper .blue-button": {
405
+ height: string;
406
+ "font-size": string;
407
+ "line-height": string;
408
+ padding: string;
409
+ };
410
+ ".secure-payment-form #ctp-wrapper .blue-button label": {
411
+ margin: string;
412
+ };
413
+ ".secure-payment-form #ctp-wrapper .lblemailDisplay": {
414
+ "font-size": string;
415
+ "line-height": string;
416
+ "margin-top": string;
417
+ };
418
+ ".secure-payment-form #ctp-wrapper .rsdcode": {
419
+ "font-size": string;
420
+ "line-height": string;
421
+ "font-weight": string;
422
+ "margin-bottom": string;
423
+ };
424
+ ".secure-payment-form #ctp-wrapper .svgalignDiv": {
425
+ padding: string;
426
+ };
427
+ ".secure-payment-form #ctp-wrapper .signinlayout": {
428
+ "min-height": string;
429
+ "max-width": string;
430
+ };
431
+ ".secure-payment-form #ctp-wrapper .logindiv": {
432
+ "min-height": string;
433
+ padding: string;
434
+ };
435
+ ".secure-payment-form #ctp-wrapper #cancel-link": {
436
+ "margin-bottom": string;
437
+ };
438
+ ".secure-payment-form #ctp-wrapper .logindiv .tooltip": {
439
+ display: string;
440
+ };
441
+ ".secure-payment-form #ctp-wrapper .logindiv .lblemailInput": {
442
+ display: string;
443
+ };
444
+ ".secure-payment-form #ctp-wrapper .VerificationLabel label": {
445
+ display: string;
446
+ };
165
447
  };
@@ -168,6 +168,288 @@ export declare const parentStyles: (assetBaseUrl: string) => {
168
168
  visibility: string;
169
169
  opacity: string;
170
170
  };
171
+ ".secure-payment-form .other-cards-label": {
172
+ "border-bottom": string;
173
+ "text-align": string;
174
+ margin: string;
175
+ position: string;
176
+ };
177
+ ".secure-payment-form .other-cards-label span": {
178
+ "text-align": string;
179
+ padding: string;
180
+ background: string;
181
+ position: string;
182
+ color: string;
183
+ width: string;
184
+ left: string;
185
+ "-webkit-transform": string;
186
+ "-moz-transform": string;
187
+ "-ms-transform": string;
188
+ "-o-transform": string;
189
+ transform: string;
190
+ margin: string;
191
+ "font-family": string;
192
+ "font-size": string;
193
+ "white-space": string;
194
+ };
195
+ ".secure-payment-form .hidden": {
196
+ display: string;
197
+ };
198
+ ".secure-payment-form .ctp-panel": {
199
+ border: string;
200
+ "box-shadow": string;
201
+ "border-radius": string;
202
+ "margin-bottom": string;
203
+ };
204
+ ".secure-payment-form div[class^='credit-card'].apm-active ~ div:not([class$='shield']):not([class$='logo'])": {
205
+ display: string;
206
+ };
207
+ ".secure-payment-form .ctp-panel .ctp-button": {
208
+ display: string;
209
+ background: string;
210
+ "flex-direction": string;
211
+ "align-items": string;
212
+ padding: string;
213
+ flex: string;
214
+ order: string;
215
+ "flex-grow": string;
216
+ position: string;
217
+ "font-size": string;
218
+ "line-height": string;
219
+ cursor: string;
220
+ "font-family": string;
221
+ };
222
+ ".secure-payment-form .apm-active .ctp-panel .ctp-button": {
223
+ cursor: string;
224
+ };
225
+ ".secure-payment-form .ctp-panel .ctp-button:after": {
226
+ content: string;
227
+ position: string;
228
+ width: string;
229
+ height: string;
230
+ border: string;
231
+ "border-width": string;
232
+ display: string;
233
+ padding: string;
234
+ transform: string;
235
+ "-webkit-transform": string;
236
+ };
237
+ ".secure-payment-form .ctp-panel .right-arrow": {
238
+ position: string;
239
+ background: string;
240
+ right: string;
241
+ border: string;
242
+ "border-width": string;
243
+ display: string;
244
+ padding: string;
245
+ transform: string;
246
+ "-webkit-transform": string;
247
+ "z-index": string;
248
+ top: string;
249
+ "margin-top": string;
250
+ };
251
+ ".secure-payment-form .apm-active .right-arrow": {
252
+ display: string;
253
+ };
254
+ ".secure-payment-form .ctp-info-tooltip": {
255
+ width: string;
256
+ height: string;
257
+ display: string;
258
+ "vertical-align": string;
259
+ overflow: string;
260
+ background: string;
261
+ margin: string;
262
+ };
263
+ ".secure-payment-form .ctp-info-tooltip-content": {
264
+ visibility: string;
265
+ width: string;
266
+ "background-color": string;
267
+ color: string;
268
+ "text-align": string;
269
+ "border-radius": string;
270
+ border: string;
271
+ padding: string;
272
+ position: string;
273
+ "z-index": string;
274
+ "margin-left": string;
275
+ "margin-top": string;
276
+ opacity: string;
277
+ transition: string;
278
+ "font-size": string;
279
+ "font-weight": string;
280
+ "box-shadow": string;
281
+ };
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 li": {
287
+ padding: string;
288
+ "font-size": string;
289
+ "line-height": string;
290
+ "list-style": string;
291
+ };
292
+ ".secure-payment-form .ctp-info-tooltip-content li.smart-checkout": {
293
+ background: string;
294
+ };
295
+ ".secure-payment-form .ctp-info-tooltip-content li.faster-checkout": {
296
+ background: string;
297
+ };
298
+ ".secure-payment-form .ctp-info-tooltip-content li.industry-standards": {
299
+ background: string;
300
+ };
301
+ ".secure-payment-form .ctp-info-tooltip .top-arrow": {
302
+ position: string;
303
+ "margin-top": string;
304
+ background: string;
305
+ width: string;
306
+ left: string;
307
+ "margin-left": string;
308
+ border: string;
309
+ "border-width": string;
310
+ display: string;
311
+ padding: string;
312
+ transform: string;
313
+ "-webkit-transform": string;
314
+ "z-index": string;
315
+ };
316
+ ".secure-payment-form .ctp-info-tooltip-content li .ctp-icon": {
317
+ "background-size": string;
318
+ width: string;
319
+ height: string;
320
+ margin: string;
321
+ };
322
+ ".secure-payment-form .ctp-info-tooltip-content strong": {
323
+ "font-size": string;
324
+ "vertical-align": string;
325
+ };
326
+ ".secure-payment-form .ctp-info-tooltip:hover .ctp-info-tooltip-content": {
327
+ visibility: string;
328
+ opacity: string;
329
+ };
330
+ ".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
331
+ background: string;
332
+ display: string;
333
+ "vertical-align": string;
334
+ width: string;
335
+ height: string;
336
+ margin: string;
337
+ };
338
+ ".secure-payment-form .ctp-info-tooltip .card-brands": {
339
+ background: string;
340
+ display: string;
341
+ "vertical-align": string;
342
+ "padding-right": string;
343
+ "min-height": string;
344
+ color: string;
345
+ "white-space": string;
346
+ };
347
+ ".secure-payment-form #ctp-wrapper #header": {
348
+ display: string;
349
+ };
350
+ ".secure-payment-form #ctp-wrapper #footer": {
351
+ display: string;
352
+ };
353
+ ".secure-payment-form #ctp-wrapper label.footerLabel": {
354
+ margin: string;
355
+ "font-size": string;
356
+ "line-height": string;
357
+ "font-weight": string;
358
+ };
359
+ ".secure-payment-form #ctp-wrapper .footerLinewindow": {
360
+ padding: string;
361
+ };
362
+ ".secure-payment-form #ctp-wrapper .TransitionLabel": {
363
+ "font-size": string;
364
+ "line-height": string;
365
+ "text-align": string;
366
+ float: string;
367
+ margin: string;
368
+ };
369
+ ".secure-payment-form #ctp-wrapper #mtransitiontext.transctcardlabel": {
370
+ "font-size": string;
371
+ "line-height": string;
372
+ "text-align": string;
373
+ float: string;
374
+ margin: string;
375
+ };
376
+ ".secure-payment-form #ctp-wrapper .transctcardlabel": {
377
+ "font-size": string;
378
+ "line-height": string;
379
+ "text-align": string;
380
+ float: string;
381
+ };
382
+ ".secure-payment-form #ctp-wrapper .quitbanner": {
383
+ "margin-left": string;
384
+ "margin-top": string;
385
+ };
386
+ ".secure-payment-form #ctp-wrapper .quitbanner > svg": {
387
+ display: string;
388
+ };
389
+ ".secure-payment-form #ctp-wrapper .quitbanner .quitPage": {
390
+ margin: string;
391
+ };
392
+ ".secure-payment-form #ctp-wrapper .VerificationLabel": {
393
+ "font-size": string;
394
+ "line-height": string;
395
+ "font-weight": string;
396
+ margin: string;
397
+ };
398
+ ".secure-payment-form #ctp-wrapper label": {
399
+ "font-size": string;
400
+ "line-height": string;
401
+ "font-weight": string;
402
+ margin: string;
403
+ };
404
+ ".secure-payment-form #ctp-wrapper label.change": {
405
+ "font-size": string;
406
+ "line-height": string;
407
+ "font-weight": string;
408
+ margin: string;
409
+ };
410
+ ".secure-payment-form #ctp-wrapper .blue-button": {
411
+ height: string;
412
+ "font-size": string;
413
+ "line-height": string;
414
+ padding: string;
415
+ };
416
+ ".secure-payment-form #ctp-wrapper .blue-button label": {
417
+ margin: string;
418
+ };
419
+ ".secure-payment-form #ctp-wrapper .lblemailDisplay": {
420
+ "font-size": string;
421
+ "line-height": string;
422
+ "margin-top": string;
423
+ };
424
+ ".secure-payment-form #ctp-wrapper .rsdcode": {
425
+ "font-size": string;
426
+ "line-height": string;
427
+ "font-weight": string;
428
+ "margin-bottom": string;
429
+ };
430
+ ".secure-payment-form #ctp-wrapper .svgalignDiv": {
431
+ padding: string;
432
+ };
433
+ ".secure-payment-form #ctp-wrapper .signinlayout": {
434
+ "min-height": string;
435
+ "max-width": string;
436
+ };
437
+ ".secure-payment-form #ctp-wrapper .logindiv": {
438
+ "min-height": string;
439
+ padding: string;
440
+ };
441
+ ".secure-payment-form #ctp-wrapper #cancel-link": {
442
+ "margin-bottom": string;
443
+ };
444
+ ".secure-payment-form #ctp-wrapper .logindiv .tooltip": {
445
+ display: string;
446
+ };
447
+ ".secure-payment-form #ctp-wrapper .logindiv .lblemailInput": {
448
+ display: string;
449
+ };
450
+ ".secure-payment-form #ctp-wrapper .VerificationLabel label": {
451
+ display: string;
452
+ };
171
453
  "@font-face": {
172
454
  "font-family": string;
173
455
  src: string;