@globalpayments/js 1.9.3 → 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.3",
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;
@@ -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
  };
@@ -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-panel .info-tooltip": {
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-panel .info-tooltip-content": {
263
+ ".secure-payment-form .ctp-info-tooltip-content": {
264
264
  visibility: string;
265
265
  width: string;
266
266
  "background-color": string;
@@ -279,21 +279,26 @@ export declare const parentStyles: (assetBaseUrl: string) => {
279
279
  "font-weight": string;
280
280
  "box-shadow": string;
281
281
  };
282
- ".secure-payment-form .ctp-panel .info-tooltip-content li": {
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": {
283
287
  padding: string;
284
288
  "font-size": string;
285
289
  "line-height": string;
290
+ "list-style": string;
286
291
  };
287
- ".secure-payment-form .ctp-panel .info-tooltip-content li.smart-checkout": {
292
+ ".secure-payment-form .ctp-info-tooltip-content li.smart-checkout": {
288
293
  background: string;
289
294
  };
290
- ".secure-payment-form .ctp-panel .info-tooltip-content li.faster-checkout": {
295
+ ".secure-payment-form .ctp-info-tooltip-content li.faster-checkout": {
291
296
  background: string;
292
297
  };
293
- ".secure-payment-form .ctp-panel .info-tooltip-content li.industry-standards": {
298
+ ".secure-payment-form .ctp-info-tooltip-content li.industry-standards": {
294
299
  background: string;
295
300
  };
296
- ".secure-payment-form .ctp-panel .info-tooltip .top-arrow": {
301
+ ".secure-payment-form .ctp-info-tooltip .top-arrow": {
297
302
  position: string;
298
303
  "margin-top": string;
299
304
  background: string;
@@ -308,17 +313,17 @@ export declare const parentStyles: (assetBaseUrl: string) => {
308
313
  "-webkit-transform": string;
309
314
  "z-index": string;
310
315
  };
311
- ".secure-payment-form .ctp-panel .info-tooltip-content li .ctp-icon": {
316
+ ".secure-payment-form .ctp-info-tooltip-content li .ctp-icon": {
312
317
  "background-size": string;
313
318
  width: string;
314
319
  height: string;
315
320
  margin: string;
316
321
  };
317
- ".secure-payment-form .ctp-panel .info-tooltip-content strong": {
322
+ ".secure-payment-form .ctp-info-tooltip-content strong": {
318
323
  "font-size": string;
319
324
  "vertical-align": string;
320
325
  };
321
- ".secure-payment-form .ctp-panel .info-tooltip:hover .info-tooltip-content": {
326
+ ".secure-payment-form .ctp-info-tooltip:hover .ctp-info-tooltip-content": {
322
327
  visibility: string;
323
328
  opacity: string;
324
329
  };
@@ -330,7 +335,7 @@ export declare const parentStyles: (assetBaseUrl: string) => {
330
335
  height: string;
331
336
  margin: string;
332
337
  };
333
- ".secure-payment-form .ctp-panel .ctp-button .card-brands": {
338
+ ".secure-payment-form .ctp-info-tooltip .card-brands": {
334
339
  background: string;
335
340
  display: string;
336
341
  "vertical-align": string;
@@ -390,13 +395,7 @@ export declare const parentStyles: (assetBaseUrl: string) => {
390
395
  "font-weight": string;
391
396
  margin: string;
392
397
  };
393
- ".secure-payment-form #ctp-wrapper label#userEmail": {
394
- "font-size": string;
395
- "line-height": string;
396
- "font-weight": string;
397
- margin: string;
398
- };
399
- ".secure-payment-form #ctp-wrapper label#userMobile": {
398
+ ".secure-payment-form #ctp-wrapper label": {
400
399
  "font-size": string;
401
400
  "line-height": string;
402
401
  "font-weight": string;
@@ -433,11 +432,15 @@ export declare const parentStyles: (assetBaseUrl: string) => {
433
432
  };
434
433
  ".secure-payment-form #ctp-wrapper .signinlayout": {
435
434
  "min-height": string;
435
+ "max-width": string;
436
436
  };
437
437
  ".secure-payment-form #ctp-wrapper .logindiv": {
438
438
  "min-height": string;
439
439
  padding: string;
440
440
  };
441
+ ".secure-payment-form #ctp-wrapper #cancel-link": {
442
+ "margin-bottom": string;
443
+ };
441
444
  ".secure-payment-form #ctp-wrapper .logindiv .tooltip": {
442
445
  display: string;
443
446
  };