@globalpayments/js 3.0.3 → 3.0.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/README.md CHANGED
@@ -24,7 +24,7 @@ This plugin allows you to use online payments (eCommerce) features of a variety
24
24
  ## Usage
25
25
 
26
26
  ```html
27
- <script src="https://js.globalpay.com/3.0.3/globalpayments.js"></script>
27
+ <script src="https://js.globalpay.com/3.0.7/globalpayments.js"></script>
28
28
  ```
29
29
 
30
30
  > Note: Installing via NPM will only provide TypeScript types for type-checking.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalpayments/js",
3
- "version": "3.0.3",
3
+ "version": "3.0.7",
4
4
  "author": "Heartland Developer Portal <developers@heartland.us>",
5
5
  "license": "GPL-2.0",
6
6
  "repository": {
@@ -18,7 +18,7 @@
18
18
  "cypress:open": "cypress open",
19
19
  "format": "prettier --write config/**/* src/**/* !src/assets/**/* !test/run.sh !test/run.ps1 test/fixtures/**/*.html",
20
20
 
21
- "postbuild": "cross-os postbuild-cross",
21
+ "postbuild": "xcopy src\\assets dist\\ /e/y/h && node bin/replace-gp-ref.js",
22
22
 
23
23
  "prebuild": "yarn test:lint && node bin/update-version.js",
24
24
  "prepublish": "yarn build",
@@ -5,5 +5,6 @@ export declare const enum QRCodePaymentsInternalEvents {
5
5
  }
6
6
  export declare const enum QRCodePaymentsActions {
7
7
  RedirectAction = "REDIRECT",
8
- RedirectInFrameAction = "REDIRECT_IN_FRAME"
8
+ RedirectInFrameAction = "REDIRECT_IN_FRAME",
9
+ PresentQRCodeAction = "PRESENT_QR_CODE"
9
10
  }
@@ -15,5 +15,6 @@ export declare enum HostedFieldValidationEvents {
15
15
  Validate = "hosted-field-validate",
16
16
  ValidatePassData = "hosted-field-validate-pass-data",
17
17
  ValidateForm = "hosted-field-validate-form",
18
- ValidateFormValid = "hosted-field-validate-form-valid"
18
+ ValidateFormValid = "hosted-field-validate-form-valid",
19
+ ValidateFormInvalid = "hosted-field-validate-form-invalid"
19
20
  }
@@ -0,0 +1 @@
1
+ export declare const BUILT_IN_VALIDATIONS_VALIDATION_ROUND_COUNTER_KEY: string;
@@ -1,2 +1,6 @@
1
1
  export declare const showHostedFieldValidation: (fieldId: string | null, validationMessage: string, target?: string | undefined) => void;
2
2
  export declare const hideHostedFieldValidation: (fieldId: string | null, target?: string | undefined) => void;
3
+ export declare const resetValidationRoundCounter: () => void;
4
+ export declare const getValidationRoundCounter: () => number;
5
+ export declare const increaseValidationRoundCounter: () => void;
6
+ export declare const removeValidationRoundCounter: () => void;
@@ -16,7 +16,7 @@ export default class Card {
16
16
  *
17
17
  * @param e
18
18
  */
19
- static formatNumber(e: KeyboardEvent): void;
19
+ static formatNumber(e: KeyboardEvent | Event): void;
20
20
  /**
21
21
  * formatExpiration
22
22
  *
@@ -23,6 +23,9 @@ export declare enum Language {
23
23
  en = "en",
24
24
  zh = "zh"
25
25
  }
26
+ export declare enum CardFormEvents {
27
+ ValidityState = "card-form-validity"
28
+ }
26
29
  export declare enum QRCodePaymentsProviderBrands {
27
30
  Alipay = "Alipay",
28
31
  AlipayHK = "AlipayHK",
@@ -41,6 +41,14 @@ 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
+ };
44
52
  ".secure-payment-form .qr-code-payment-iframe-wrapper": {
45
53
  display: string;
46
54
  "flex-direction": string;
@@ -47,6 +47,26 @@ declare const fr: {
47
47
  };
48
48
  "other-cards-label": string;
49
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
+ };
50
70
  button: {
51
71
  text: string;
52
72
  "aria-label": string;
@@ -56,5 +76,10 @@ declare const fr: {
56
76
  redirectingToPaymentPageMessage: string;
57
77
  };
58
78
  };
79
+ apms: {
80
+ button: {
81
+ "aria-label": string;
82
+ };
83
+ };
59
84
  };
60
85
  export default fr;
@@ -1,2 +1,2 @@
1
- declare const _default: "3.0.3";
1
+ declare const _default: "3.0.7";
2
2
  export default _default;
@@ -806,7 +806,11 @@ export declare const parentStyles: () => {
806
806
  ".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
807
807
  width: string;
808
808
  height: string;
809
- "background-size": string;
809
+ "background-size": string; /**
810
+ * Appends additional CSS rules to the group of hosted fields
811
+ *
812
+ * @param json New CSS rules
813
+ */
810
814
  };
811
815
  };
812
816
  ".secure-payment-form .apm-active .ctp-panel .ctp-button": {
@@ -823,16 +827,16 @@ export declare const parentStyles: () => {
823
827
  border: string;
824
828
  "border-width": string;
825
829
  display: string;
826
- /**
827
- * Sets a special-case event listener that fires when all hosted
828
- * fields in a form have registered / loaded
829
- *
830
- * @param fn The listener function
831
- */
832
830
  padding: string;
833
831
  transform: string;
834
832
  "-webkit-transform": string;
835
833
  };
834
+ /**
835
+ * Sets a special-case event listener that fires when all hosted
836
+ * fields in a form have registered / loaded
837
+ *
838
+ * @param fn The listener function
839
+ */
836
840
  ".secure-payment-form .ctp-panel .right-arrow": {
837
841
  position: string;
838
842
  background: string;
@@ -1437,7 +1441,11 @@ export declare const parentStyles: () => {
1437
1441
  ".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
1438
1442
  width: string;
1439
1443
  height: string;
1440
- "background-size": string;
1444
+ "background-size": string; /**
1445
+ * Appends additional CSS rules to the group of hosted fields
1446
+ *
1447
+ * @param json New CSS rules
1448
+ */
1441
1449
  };
1442
1450
  };
1443
1451
  ".secure-payment-form .apm-active .ctp-panel .ctp-button": {
@@ -1454,16 +1462,16 @@ export declare const parentStyles: () => {
1454
1462
  border: string;
1455
1463
  "border-width": string;
1456
1464
  display: string;
1457
- /**
1458
- * Sets a special-case event listener that fires when all hosted
1459
- * fields in a form have registered / loaded
1460
- *
1461
- * @param fn The listener function
1462
- */
1463
1465
  padding: string;
1464
1466
  transform: string;
1465
1467
  "-webkit-transform": string;
1466
1468
  };
1469
+ /**
1470
+ * Sets a special-case event listener that fires when all hosted
1471
+ * fields in a form have registered / loaded
1472
+ *
1473
+ * @param fn The listener function
1474
+ */
1467
1475
  ".secure-payment-form .ctp-panel .right-arrow": {
1468
1476
  position: string;
1469
1477
  background: string;
@@ -1671,7 +1679,12 @@ export declare const parentStyles: () => {
1671
1679
  background: string;
1672
1680
  margin: string;
1673
1681
  padding: string;
1674
- "border-radius": string;
1682
+ "border-radius": string; /**
1683
+ * Instantiates a new UIForm object for a group of hosted fields
1684
+ *
1685
+ * @param fields Hosted field configuration
1686
+ * @param styles Custom CSS configuration
1687
+ */
1675
1688
  };
1676
1689
  ".secure-payment-form .installment-plan-options-title": {
1677
1690
  color: string;
@@ -2368,7 +2381,11 @@ export declare const parentStyles: () => {
2368
2381
  ".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
2369
2382
  width: string;
2370
2383
  height: string;
2371
- "background-size": string;
2384
+ "background-size": string; /**
2385
+ * Appends additional CSS rules to the group of hosted fields
2386
+ *
2387
+ * @param json New CSS rules
2388
+ */
2372
2389
  };
2373
2390
  };
2374
2391
  ".secure-payment-form .apm-active .ctp-panel .ctp-button": {
@@ -2385,16 +2402,16 @@ export declare const parentStyles: () => {
2385
2402
  border: string;
2386
2403
  "border-width": string;
2387
2404
  display: string;
2388
- /**
2389
- * Sets a special-case event listener that fires when all hosted
2390
- * fields in a form have registered / loaded
2391
- *
2392
- * @param fn The listener function
2393
- */
2394
2405
  padding: string;
2395
2406
  transform: string;
2396
2407
  "-webkit-transform": string;
2397
2408
  };
2409
+ /**
2410
+ * Sets a special-case event listener that fires when all hosted
2411
+ * fields in a form have registered / loaded
2412
+ *
2413
+ * @param fn The listener function
2414
+ */
2398
2415
  ".secure-payment-form .ctp-panel .right-arrow": {
2399
2416
  position: string;
2400
2417
  background: string;
@@ -1,11 +0,0 @@
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
- }