@justifi/webcomponents 6.12.1 → 6.12.2

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.
Files changed (114) hide show
  1. package/dist/cjs/{Analytics-BhduX1FR.js → Analytics-C1Wd9OW4.js} +2 -2
  2. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  3. package/dist/cjs/card-form.cjs.entry.js +2 -2
  4. package/dist/cjs/{check-pkg-version-Bd2yxoh4.js → check-pkg-version-DMXmPDqZ.js} +1 -1
  5. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  6. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +74 -36
  7. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +3 -3
  8. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  9. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
  10. package/dist/cjs/justifi-business-form.cjs.entry.js +3 -3
  11. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  12. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -6
  13. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
  14. package/dist/cjs/justifi-dispute-management.cjs.entry.js +3 -3
  15. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +3 -3
  16. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
  17. package/dist/cjs/justifi-order-terminals.cjs.entry.js +3 -3
  18. package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -4
  20. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
  21. package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
  22. package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
  23. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
  24. package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
  25. package/dist/cjs/justifi-refund-payment.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
  27. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
  28. package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
  29. package/dist/cjs/{package-CjFkmEML.js → package-CRaVpb0w.js} +1 -1
  30. package/dist/collection/api/Analytics.js +1 -1
  31. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +3 -1
  32. package/dist/collection/components/checkout/justifi-checkout.js +2 -3
  33. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +34 -14
  34. package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +4 -1
  35. package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +27 -14
  36. package/dist/collection/components/modular-checkout/sub-components/justifi-saved-payment-methods.js +7 -5
  37. package/dist/docs.json +1 -1
  38. package/dist/esm/{Analytics-4PEV3c9V.js → Analytics-qafLCOEU.js} +2 -2
  39. package/dist/esm/bank-account-form.entry.js +2 -2
  40. package/dist/esm/card-form.entry.js +2 -2
  41. package/dist/esm/{check-pkg-version-BmgaID9z.js → check-pkg-version-BJtCbzf9.js} +1 -1
  42. package/dist/esm/hidden-input_2.entry.js +1 -1
  43. package/dist/esm/justifi-apple-pay_11.entry.js +75 -37
  44. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +3 -3
  45. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  46. package/dist/esm/justifi-business-details.entry.js +3 -3
  47. package/dist/esm/justifi-business-form.entry.js +3 -3
  48. package/dist/esm/justifi-card-form.entry.js +3 -3
  49. package/dist/esm/justifi-checkout.entry.js +5 -6
  50. package/dist/esm/justifi-checkouts-list.entry.js +3 -3
  51. package/dist/esm/justifi-dispute-management.entry.js +3 -3
  52. package/dist/esm/justifi-dispute-notification_3.entry.js +3 -3
  53. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  54. package/dist/esm/justifi-order-terminals.entry.js +3 -3
  55. package/dist/esm/justifi-payment-details.entry.js +3 -3
  56. package/dist/esm/justifi-payment-provisioning.entry.js +6 -4
  57. package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
  58. package/dist/esm/justifi-payments-list.entry.js +3 -3
  59. package/dist/esm/justifi-payout-details.entry.js +3 -3
  60. package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
  61. package/dist/esm/justifi-payouts-list.entry.js +3 -3
  62. package/dist/esm/justifi-refund-payment.entry.js +3 -3
  63. package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
  64. package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
  65. package/dist/esm/justifi-terminals-list.entry.js +3 -3
  66. package/dist/esm/{package-CXKOe1m5.js → package-BCgsLInF.js} +1 -1
  67. package/dist/module/Analytics.js +1 -1
  68. package/dist/module/justifi-apple-pay2.js +34 -14
  69. package/dist/module/justifi-checkout.js +2 -3
  70. package/dist/module/justifi-google-pay2.js +4 -1
  71. package/dist/module/justifi-payment-provisioning.js +3 -1
  72. package/dist/module/justifi-plaid-payment-method2.js +27 -14
  73. package/dist/module/justifi-saved-payment-methods2.js +7 -5
  74. package/dist/module/package.js +1 -1
  75. package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +1 -1
  76. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +3 -0
  77. package/dist/types/components/modular-checkout/sub-components/justifi-plaid-payment-method.d.ts +2 -2
  78. package/dist/webcomponents/{p-017edf85.entry.js → p-06ecd4cb.entry.js} +1 -1
  79. package/dist/webcomponents/{p-b6d59ff4.entry.js → p-164f95ec.entry.js} +1 -1
  80. package/dist/webcomponents/p-174eb877.entry.js +1 -0
  81. package/dist/webcomponents/{p-9870fff0.entry.js → p-1e0be7b0.entry.js} +1 -1
  82. package/dist/webcomponents/p-39cc6928.entry.js +1 -0
  83. package/dist/webcomponents/p-4226eb4a.entry.js +1 -0
  84. package/dist/webcomponents/{p-b8c59954.entry.js → p-474ee3f8.entry.js} +1 -1
  85. package/dist/webcomponents/p-485b77ba.entry.js +1 -0
  86. package/dist/webcomponents/{p-0e9cb724.entry.js → p-581808f0.entry.js} +1 -1
  87. package/dist/webcomponents/{p-259ea5e0.entry.js → p-79713014.entry.js} +1 -1
  88. package/dist/webcomponents/{p-608a41d2.entry.js → p-798f4708.entry.js} +1 -1
  89. package/dist/webcomponents/{p-4f57368a.entry.js → p-7f0f72c6.entry.js} +1 -1
  90. package/dist/webcomponents/{p-1e080e95.entry.js → p-7f814609.entry.js} +1 -1
  91. package/dist/webcomponents/{p-61ebdd8b.entry.js → p-870fac9e.entry.js} +1 -1
  92. package/dist/webcomponents/{p-cd267d76.entry.js → p-956eca2e.entry.js} +1 -1
  93. package/dist/webcomponents/p-BCgsLInF.js +1 -0
  94. package/dist/webcomponents/{p-GP5gWjhc.js → p-BJ7GFTiW.js} +1 -1
  95. package/dist/webcomponents/{p-cXPhRFs-.js → p-BnaR7f2G.js} +1 -1
  96. package/dist/webcomponents/{p-b76b743e.entry.js → p-a80d958d.entry.js} +1 -1
  97. package/dist/webcomponents/{p-f4b390bc.entry.js → p-b2447726.entry.js} +1 -1
  98. package/dist/webcomponents/{p-f481695c.entry.js → p-c73631f0.entry.js} +1 -1
  99. package/dist/webcomponents/{p-d3829e18.entry.js → p-c8f7ebf6.entry.js} +1 -1
  100. package/dist/webcomponents/{p-1e66d430.entry.js → p-d7633e10.entry.js} +1 -1
  101. package/dist/webcomponents/{p-87a4b33f.entry.js → p-da882bd1.entry.js} +1 -1
  102. package/dist/webcomponents/{p-647668b6.entry.js → p-dd1cfb9e.entry.js} +1 -1
  103. package/dist/webcomponents/{p-06e88d51.entry.js → p-de836ec9.entry.js} +1 -1
  104. package/dist/webcomponents/{p-2b25c768.entry.js → p-f24563ab.entry.js} +1 -1
  105. package/dist/webcomponents/p-f4aeda71.entry.js +1 -0
  106. package/dist/webcomponents/{p-ed580b3c.entry.js → p-faa090a5.entry.js} +1 -1
  107. package/dist/webcomponents/webcomponents.esm.js +1 -1
  108. package/package.json +1 -1
  109. package/dist/webcomponents/p-11faee45.entry.js +0 -1
  110. package/dist/webcomponents/p-238163d8.entry.js +0 -1
  111. package/dist/webcomponents/p-CXKOe1m5.js +0 -1
  112. package/dist/webcomponents/p-cf31ccdd.entry.js +0 -1
  113. package/dist/webcomponents/p-d58a330d.entry.js +0 -1
  114. package/dist/webcomponents/p-f91c49a2.entry.js +0 -1
@@ -9,8 +9,8 @@ var Pagination = require('./Pagination-Dediz133.js');
9
9
  require('./Business-oBifyXkW.js');
10
10
  require('./Dispute-CruQTF6_.js');
11
11
  var utils = require('./utils-DbTucCTO.js');
12
- var Analytics = require('./Analytics-BhduX1FR.js');
13
- var checkPkgVersion = require('./check-pkg-version-Bd2yxoh4.js');
12
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
13
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
14
14
  var styledHost = require('./styled-host-DAi5SuFa.js');
15
15
  var table = require('./table-DjbNv28p.js');
16
16
  var eventTypes = require('./event-types-YOY5TKUN.js');
@@ -20,7 +20,7 @@ var parts = require('./parts-BXshb_S-.js');
20
20
  var paymentsListParamsState = require('./payments-list-params-state-vGJZ6Oe2.js');
21
21
  require('./Api-Bukk55YZ.js');
22
22
  require('./index-W-zoNiyM.js');
23
- require('./package-CjFkmEML.js');
23
+ require('./package-CRaVpb0w.js');
24
24
  require('./spinner-C6ZGOB2P.js');
25
25
  require('./badge-GBNtUypt.js');
26
26
 
@@ -11,9 +11,9 @@ require('./Dispute-CruQTF6_.js');
11
11
  var utils = require('./utils-DbTucCTO.js');
12
12
  var utils$1 = require('./utils-BHi4j5rB.js');
13
13
  var utils$2 = require('./utils-8RGQVADu.js');
14
- var Analytics = require('./Analytics-BhduX1FR.js');
14
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
15
15
  var payoutsStatus = require('./payouts-status-CwgOMz-S.js');
16
- var checkPkgVersion = require('./check-pkg-version-Bd2yxoh4.js');
16
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
17
17
  var button = require('./button-CR9Rl1-o.js');
18
18
  var styledHost = require('./styled-host-DAi5SuFa.js');
19
19
  require('./event-types-YOY5TKUN.js');
@@ -22,7 +22,7 @@ var badge = require('./badge-GBNtUypt.js');
22
22
  require('./Api-Bukk55YZ.js');
23
23
  require('./index-W-zoNiyM.js');
24
24
  require('./parts-BXshb_S-.js');
25
- require('./package-CjFkmEML.js');
25
+ require('./package-CRaVpb0w.js');
26
26
 
27
27
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
28
28
  var _a;
@@ -7,8 +7,8 @@ var Plaid = require('./Plaid-BlSGeGpn.js');
7
7
  var Pagination = require('./Pagination-Dediz133.js');
8
8
  require('./Business-oBifyXkW.js');
9
9
  require('./Dispute-CruQTF6_.js');
10
- var Analytics = require('./Analytics-BhduX1FR.js');
11
- var checkPkgVersion = require('./check-pkg-version-Bd2yxoh4.js');
10
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
11
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
12
12
  var utils = require('./utils-DbTucCTO.js');
13
13
  var payout_service = require('./payout.service-BcQVsMCS.js');
14
14
  var table = require('./table-DjbNv28p.js');
@@ -17,7 +17,7 @@ var eventTypes = require('./event-types-YOY5TKUN.js');
17
17
  var utils$1 = require('./utils-BHi4j5rB.js');
18
18
  var parts = require('./parts-BXshb_S-.js');
19
19
  require('./index-W-zoNiyM.js');
20
- require('./package-CjFkmEML.js');
20
+ require('./package-CRaVpb0w.js');
21
21
  require('./Api-Bukk55YZ.js');
22
22
  require('./spinner-C6ZGOB2P.js');
23
23
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var Plaid = require('./Plaid-BlSGeGpn.js');
5
- var Analytics = require('./Analytics-BhduX1FR.js');
6
- var checkPkgVersion = require('./check-pkg-version-Bd2yxoh4.js');
5
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
6
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
7
7
  var payout_service = require('./payout.service-BcQVsMCS.js');
8
8
  require('./config-state-BIgGhhe9.js');
9
9
  require('./dinero-BwNN_k7x.js');
@@ -19,7 +19,7 @@ var eventTypes = require('./event-types-YOY5TKUN.js');
19
19
  var utils$1 = require('./utils-BHi4j5rB.js');
20
20
  var parts = require('./parts-BXshb_S-.js');
21
21
  var payoutsListParamsState = require('./payouts-list-params-state-vGJZ6Oe2.js');
22
- require('./package-CjFkmEML.js');
22
+ require('./package-CRaVpb0w.js');
23
23
  require('./Api-Bukk55YZ.js');
24
24
  require('./index-W-zoNiyM.js');
25
25
  require('./badge-GBNtUypt.js');
@@ -13,8 +13,8 @@ var styledHost = require('./styled-host-DAi5SuFa.js');
13
13
  require('./event-types-YOY5TKUN.js');
14
14
  var payment_service = require('./payment.service-sZKlg2Jq.js');
15
15
  var getPaymentDetails = require('./get-payment-details-DL5FmIyF.js');
16
- var Analytics = require('./Analytics-BhduX1FR.js');
17
- var checkPkgVersion = require('./check-pkg-version-Bd2yxoh4.js');
16
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
17
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
18
18
  var utils$1 = require('./utils-DbTucCTO.js');
19
19
  var Api = require('./Api-Bukk55YZ.js');
20
20
  var skeleton = require('./skeleton-DvRCiQlA.js');
@@ -22,7 +22,7 @@ require('./_commonjsHelpers-BJu3ubxk.js');
22
22
  require('./dinero-BwNN_k7x.js');
23
23
  require('./index-W-zoNiyM.js');
24
24
  require('./parts-BXshb_S-.js');
25
- require('./package-CjFkmEML.js');
25
+ require('./package-CRaVpb0w.js');
26
26
 
27
27
  const amountValidation = (maxAmount) => {
28
28
  const max = +maxAmount;
@@ -7,8 +7,8 @@ require('./Pagination-Dediz133.js');
7
7
  require('./Business-oBifyXkW.js');
8
8
  require('./Dispute-CruQTF6_.js');
9
9
  var utils = require('./utils-DbTucCTO.js');
10
- var Analytics = require('./Analytics-BhduX1FR.js');
11
- var checkPkgVersion = require('./check-pkg-version-Bd2yxoh4.js');
10
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
11
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
12
12
  var checkout_store = require('./checkout.store-CztwuCnG.js');
13
13
  var utils$1 = require('./utils-BHi4j5rB.js');
14
14
  var insuranceState = require('./insurance-state-Xe2auE-N.js');
@@ -18,7 +18,7 @@ require('./event-types-YOY5TKUN.js');
18
18
  var skeleton = require('./skeleton-DvRCiQlA.js');
19
19
  require('./config-state-BIgGhhe9.js');
20
20
  require('./index-W-zoNiyM.js');
21
- require('./package-CjFkmEML.js');
21
+ require('./package-CRaVpb0w.js');
22
22
  require('./index-CajjbB9t.js');
23
23
  require('./dinero-BwNN_k7x.js');
24
24
 
@@ -3,7 +3,7 @@
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var styledHost = require('./styled-host-DAi5SuFa.js');
5
5
  require('./event-types-YOY5TKUN.js');
6
- var checkPkgVersion = require('./check-pkg-version-Bd2yxoh4.js');
6
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
7
7
  var terminalOrdersTable = require('./terminal-orders-table-Cz6qvzVE.js');
8
8
  require('./config-state-BIgGhhe9.js');
9
9
  require('./dinero-BwNN_k7x.js');
@@ -13,8 +13,8 @@ require('./Business-oBifyXkW.js');
13
13
  require('./Dispute-CruQTF6_.js');
14
14
  var utils = require('./utils-DbTucCTO.js');
15
15
  var Api = require('./Api-Bukk55YZ.js');
16
- var Analytics = require('./Analytics-BhduX1FR.js');
17
- require('./package-CjFkmEML.js');
16
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
17
+ require('./package-CRaVpb0w.js');
18
18
  require('./parts-BXshb_S-.js');
19
19
  require('./utils-BHi4j5rB.js');
20
20
  require('./badge-GBNtUypt.js');
@@ -2,8 +2,8 @@
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var Plaid = require('./Plaid-BlSGeGpn.js');
5
- var Analytics = require('./Analytics-BhduX1FR.js');
6
- var checkPkgVersion = require('./check-pkg-version-Bd2yxoh4.js');
5
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
6
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
7
7
  var terminal_service = require('./terminal.service-CjMMWSh3.js');
8
8
  require('./config-state-BIgGhhe9.js');
9
9
  require('./dinero-BwNN_k7x.js');
@@ -19,7 +19,7 @@ var badge = require('./badge-GBNtUypt.js');
19
19
  var parts = require('./parts-BXshb_S-.js');
20
20
  var utils$1 = require('./utils-BHi4j5rB.js');
21
21
  var terminalsListParamsState = require('./terminals-list-params-state-vGJZ6Oe2.js');
22
- require('./package-CjFkmEML.js');
22
+ require('./package-CRaVpb0w.js');
23
23
  require('./Api-Bukk55YZ.js');
24
24
  require('./index-W-zoNiyM.js');
25
25
  require('./spinner-C6ZGOB2P.js');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "@justifi/webcomponents";
4
- const version = "6.12.1";
4
+ const version = "6.12.2";
5
5
  var packageJson = {
6
6
  name: name,
7
7
  version: version};
@@ -50,7 +50,7 @@ class JustifiAnalytics {
50
50
  if (typeof this.componentInstance.addEventListener === 'function') {
51
51
  const boundHandler = (event) => this.handleCustomEvent({
52
52
  event_type: eventName,
53
- data: Object.assign(Object.assign({}, this.basicData), { error: event.detail }),
53
+ data: Object.assign(Object.assign({}, this.basicData), (eventName === 'error-event' && { error: event.detail })),
54
54
  });
55
55
  this.eventListeners.set(eventName, boundHandler);
56
56
  this.componentInstance.addEventListener(eventName, boundHandler);
@@ -77,7 +77,9 @@ export class JustifiPaymentProvisioning {
77
77
  }
78
78
  };
79
79
  this.decrementSteps = () => {
80
- return this.currentStep--;
80
+ if (this.currentStep > 0) {
81
+ this.currentStep -= 1;
82
+ }
81
83
  };
82
84
  this.previousStepButtonOnClick = () => {
83
85
  this.clickEvent.emit({ name: BusinessFormClickActions.previousStep });
@@ -37,7 +37,6 @@ export class JustifiCheckout {
37
37
  checkoutStore.isSubmitting = false;
38
38
  }
39
39
  checkoutError(_event) {
40
- console.error('[justifi-checkout] error-event received', _event === null || _event === void 0 ? void 0 : _event.detail);
41
40
  checkoutStore.isSubmitting = false;
42
41
  }
43
42
  checkoutChanged(event) {
@@ -72,9 +71,9 @@ export class JustifiCheckout {
72
71
  }
73
72
  render() {
74
73
  var _a, _b;
75
- return (h(StyledHost, { key: '3d9d149e2fe85c02aae2ca21a1dc655eda9e4af8' }, h("justifi-modular-checkout", { key: 'f1af5a7f23e895338500cb81e0f618b1bc911a84', ref: (el) => {
74
+ return (h(StyledHost, { key: 'ffd2abaacc7edae588a9abe3a4ff96807b34fcff' }, h("justifi-modular-checkout", { key: '9196c278e24353aeb1ac02c85253d629f683522b', ref: (el) => {
76
75
  this.modularCheckoutRef = el;
77
- }, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, h("div", { key: '9ccf111654a251e0836c75ec9c696459dc20173f', class: "row gy-3 jfi-checkout-core" }, h("div", { key: 'b89f34eb2441b4ccf1b62de860440aef1aaa29e0', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: '04cb13fa1980b6b762ab920b1200173f004d84e2', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '15e13cb04cd7d402ff06a252dcee9e57ad33aa54' }, h("justifi-checkout-summary", { key: 'dd03dfa689be11328f2a9a955582bb144f765649' }))), h("div", { key: '2cbf3b6cd39027a5af4338e8dddf96d82b06e317', class: "col-12 mt-4" }, h("slot", { key: 'cc22673d5d7a6abed5dec41fb426b411bcb40bd9', name: "insurance" })), h("div", { key: '36793dae298583ecf989dcd0d875ca256899026f', class: "col-12 mt-4" }, h("justifi-header", { key: 'd343214c1b13f18d8c12a2734df74392b4eeeda6', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '4c301118984abf62e283244270d283211052ea35', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: 'd94d75d2c4966aa3a5b1971c278d549cab084373', class: "d-flex flex-column" }, h("section", { key: '034d710eeb6a034e2e5ab4a9f035097ca090d95f' }, h("div", { key: '085a5cf1f48dda17aecb94cd3571c209b26cada9' }, this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: '866d933df84c42a656a25c4efb8e8248a66c83fa', class: "mb-3" }, h("justifi-apple-pay", { key: 'b1779224cb632c0be71f1656f0741240393c9305' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.GOOGLE_PAY) && (h("div", { key: '6d0ccb9db6ae00463c619306d288234da77522bd', class: "mb-3" }, h("justifi-google-pay", { key: '10b8ef6bf5e8113be078e481ba966d554c4cb8de', ref: (el) => (this.googlePayRef = el) }))), h("justifi-saved-payment-methods", { key: '3018b688d7f59501d444c0129e492e6b04c656f8' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && (h("justifi-radio-list-item", { key: 'a61ee95ee25e5ec034c7cc4f4ab0f2f081acf6f6', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && !this.disableBnpl && (h("justifi-radio-list-item", { key: '99236535da0076054f9314ae188c7262651874cd', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: 'd72193f53af86d07313e68fcffab022749c708ee', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId }))))), h("div", { key: '2cbfec00fbd62b19aae94f8cb4d9a29dd9c3ac70', class: "mt-4" }, h("justifi-button", { key: '92120dc18d5244fe867e03e03cebe110681a1975', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, isLoading: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, customStyle: { width: '100%', textAlign: "center" } }))))));
76
+ }, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, h("div", { key: '895298286bc0aa6acbda896a4f148dd4f8d7e7d2', class: "row gy-3 jfi-checkout-core" }, h("div", { key: 'dd186ed2f0fd479cd60024423b6d55625b962e55', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: '920d4eca26846aa1cbc16693fa45a9d8054d95a7', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '560f8c3757a7cf53fd0aa898fd243b16a2f8e8d5' }, h("justifi-checkout-summary", { key: '31faa6ca984aa22985927a1f80273c86a67c7025' }))), h("div", { key: '3128ae40a739573da32598213a289d8751503fb0', class: "col-12 mt-4" }, h("slot", { key: '4a310881bbc4017734082d5c4f6b41d3d5f2a424', name: "insurance" })), h("div", { key: '8047c4da62e2fd67bd0b3f8654c6a19c0cacc255', class: "col-12 mt-4" }, h("justifi-header", { key: '631ff14201f6246906e3e1572515de21a7977773', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '7fdc560ef42a5c2e8571f332e3c4ce8ff460d235', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: '81dcb52c051044adb4dbd92ac73ee3096edc592b', class: "d-flex flex-column" }, h("section", { key: '4359903b195009a2e8fb997a1f77880cba40dea4' }, h("div", { key: '21728867e6288c3fb7d5e5a6ee3d15974568b866' }, this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: 'bdaa6b6c6d09cba294b2e46b85270241c86d2251', class: "mb-3" }, h("justifi-apple-pay", { key: '150d707bff7b79a1d19141f21a9c47e00e54418a' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.GOOGLE_PAY) && (h("div", { key: 'ce2be06b20a1e7d0159fde68a1c5c349c2d11998', class: "mb-3" }, h("justifi-google-pay", { key: '0fc867ce77467eb1f1fd198a62e88bd2795f4914', ref: (el) => (this.googlePayRef = el) }))), h("justifi-saved-payment-methods", { key: '0bb1999c093b3837bfdb879134dc54f66c90e164' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && (h("justifi-radio-list-item", { key: '1599be9bcea7569d822a204c805f08f18a4e00a4', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && !this.disableBnpl && (h("justifi-radio-list-item", { key: 'c1de230257d290efa05f7a7166c2f069451c71a3', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: '44bca4ee57857afd4eee213cef98db2d4bd42490', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId }))))), h("div", { key: 'e5b6b4ac6b0fcec20380082f1b4cc5ba73bb88aa', class: "mt-4" }, h("justifi-button", { key: '188a8f46fd37b5f4f2d9b3ba7ff179d44d4a6656', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, isLoading: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, customStyle: { width: '100%', textAlign: "center" } }))))));
78
77
  }
79
78
  static get is() { return "justifi-checkout"; }
80
79
  static get properties() {
@@ -4,9 +4,10 @@ import { ApplePayButtonType, ApplePayButtonStyle, ApplePayHelpers, ApplePayMerch
4
4
  import { StyledHost } from "../../../ui-components";
5
5
  import ApplePaySkeleton from "./apple-pay-skeleton";
6
6
  import { ApplePayButton } from "../../../ui-components/apple-pay-button";
7
- import { checkoutStore } from "../../../store/checkout.store";
7
+ import { checkoutStore, onChange } from "../../../store/checkout.store";
8
8
  export class JustifiApplePay {
9
9
  constructor() {
10
+ this.sdkLoaded = false;
10
11
  this.countryCode = "US";
11
12
  this.merchantIdentifier = "merchant.com.staging-justifi.checkout-dev";
12
13
  this.merchantDisplayName = "JustiFi Checkout";
@@ -81,6 +82,32 @@ export class JustifiApplePay {
81
82
  }
82
83
  };
83
84
  }
85
+ componentWillLoad() {
86
+ this.isAvailable = ApplePayHelpers.isApplePaySupported();
87
+ if (!this.isAvailable) {
88
+ this.isLoading = false;
89
+ return;
90
+ }
91
+ if (checkoutStore.checkoutLoaded) {
92
+ this.loadApplePaySDK();
93
+ }
94
+ else {
95
+ onChange('checkoutLoaded', (loaded) => {
96
+ if (loaded)
97
+ this.loadApplePaySDK();
98
+ });
99
+ }
100
+ }
101
+ loadApplePaySDK() {
102
+ if (this.sdkLoaded)
103
+ return;
104
+ this.sdkLoaded = true;
105
+ const script = document.createElement('script');
106
+ script.src = 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js';
107
+ script.async = true;
108
+ script.onload = () => this.initializeApplePay();
109
+ document.head.appendChild(script);
110
+ }
84
111
  async initializeApplePay() {
85
112
  try {
86
113
  this.isLoading = true;
@@ -92,12 +119,6 @@ export class JustifiApplePay {
92
119
  if (!hasRequiredConfig) {
93
120
  this.error = "Missing required Apple Pay configuration";
94
121
  this.isConfigValid = false;
95
- console.error("Apple Pay config error: missing required values", {
96
- paymentAmount: checkoutStore.paymentAmount,
97
- paymentCurrency: checkoutStore.paymentCurrency,
98
- hasAuthToken: Boolean(checkoutStore.authToken),
99
- accountId: checkoutStore.accountId,
100
- });
101
122
  this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.CONFIG_ERROR });
102
123
  this.isLoading = false;
103
124
  return;
@@ -106,14 +127,12 @@ export class JustifiApplePay {
106
127
  this.canMakePayments = ApplePayHelpers.canMakePayments();
107
128
  if (!this.isAvailable) {
108
129
  this.error = "Apple Pay is not supported on this device";
109
- console.error(this.error);
110
130
  this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.NOT_SUPPORTED });
111
131
  this.isLoading = false;
112
132
  return;
113
133
  }
114
134
  if (!this.canMakePayments) {
115
135
  this.error = "Apple Pay is not available";
116
- console.error(this.error);
117
136
  this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.NOT_AVAILABLE });
118
137
  this.isLoading = false;
119
138
  return;
@@ -134,7 +153,6 @@ export class JustifiApplePay {
134
153
  }
135
154
  }
136
155
  catch (error) {
137
- console.error("Apple Pay initialization error:", error);
138
156
  this.error =
139
157
  error instanceof Error
140
158
  ? error.message
@@ -155,7 +173,8 @@ export class JustifiApplePay {
155
173
  return ApplePayHelpers.getDefaultSupportedNetworks();
156
174
  }
157
175
  async abort() {
158
- this.applePayService.abortPaymentSession();
176
+ var _a;
177
+ (_a = this.applePayService) === null || _a === void 0 ? void 0 : _a.abortPaymentSession();
159
178
  this.isProcessing = false;
160
179
  this.applePayCancelled.emit();
161
180
  }
@@ -164,13 +183,14 @@ export class JustifiApplePay {
164
183
  // Render nothing when Apple Pay is disabled at the checkout settings level
165
184
  return null;
166
185
  }
186
+ if (!this.isAvailable) {
187
+ return null;
188
+ }
167
189
  const isReady = !this.isLoading &&
168
190
  this.isAvailable &&
169
191
  this.canMakePayments &&
170
192
  this.isConfigValid;
171
- return (h(StyledHost, null, checkoutStore.checkoutLoaded && (h("script", { async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
172
- this.initializeApplePay();
173
- } })), h("div", { class: 'apple-pay-container' }, h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick, width: this.width, height: this.height }))), h("style", null, `
193
+ return (h(StyledHost, null, h("div", { class: 'apple-pay-container' }, h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick, width: this.width, height: this.height }))), h("style", null, `
174
194
  .apple-pay-container {
175
195
  width: 100%;
176
196
  }
@@ -106,11 +106,14 @@ export class JustifiGooglePay {
106
106
  }, this.iframeOrigin);
107
107
  }
108
108
  render() {
109
+ if (!checkoutStore.checkoutLoaded) {
110
+ return null;
111
+ }
109
112
  if (!checkoutStore.googlePayEnabled) {
110
113
  console.warn("Google Pay is not enabled for this checkout");
111
114
  return null;
112
115
  }
113
- return (h(Host, null, h(GooglePaySkeleton, { isLoading: !this.isReadyToPay }), h("iframe", { ref: (el) => (this.iframeElement = el), src: `${this.iframeOrigin}/v2/googlePay`, style: {
116
+ return (h(Host, null, h(GooglePaySkeleton, { isLoading: !this.isReadyToPay }), h("iframe", { ref: (el) => (this.iframeElement = el), src: `${this.iframeOrigin}/v2/googlePay`, allow: "payment", style: {
114
117
  border: "none",
115
118
  width: "100%",
116
119
  height: "48px",
@@ -17,6 +17,7 @@ export class JustifiPlaidPaymentMethod {
17
17
  this.isSelected = false;
18
18
  this.retryCount = 0;
19
19
  this.isRetrying = false;
20
+ this.sdkLoaded = false;
20
21
  this.plaidService = new PlaidService();
21
22
  this.maxRetries = 3;
22
23
  this.retryDelay = 2000; // 2 seconds
@@ -380,15 +381,31 @@ export class JustifiPlaidPaymentMethod {
380
381
  this.openPlaidLink();
381
382
  }
382
383
  }
383
- componentDidRender() {
384
- if (!this.scriptRef)
384
+ componentWillLoad() {
385
+ var _a;
386
+ this.isSelected = ((_a = checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.PLAID;
387
+ if (checkoutStore.bankAccountVerification !== true)
385
388
  return;
386
- this.scriptRef.onload = () => {
387
- // Wait for store to be populated before initializing
388
- this.waitForStoreAndInitialize();
389
- };
390
- // Add error handler for script loading failures
391
- this.scriptRef.onerror = () => {
389
+ if (checkoutStore.checkoutLoaded) {
390
+ this.loadPlaidSDK();
391
+ }
392
+ else {
393
+ onChange('checkoutLoaded', (loaded) => {
394
+ if (loaded && checkoutStore.bankAccountVerification === true) {
395
+ this.loadPlaidSDK();
396
+ }
397
+ });
398
+ }
399
+ }
400
+ loadPlaidSDK() {
401
+ if (this.sdkLoaded)
402
+ return;
403
+ this.sdkLoaded = true;
404
+ const script = document.createElement('script');
405
+ script.src = 'https://cdn.plaid.com/link/v2/stable/link-initialize.js';
406
+ script.async = true;
407
+ script.onload = () => this.initializePlaidLink();
408
+ script.onerror = () => {
392
409
  this.handleError({
393
410
  code: PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
394
411
  message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
@@ -397,11 +414,7 @@ export class JustifiPlaidPaymentMethod {
397
414
  userAction: 'Refresh the page and try again'
398
415
  });
399
416
  };
400
- }
401
- componentWillLoad() {
402
- var _a;
403
- // Initialize selection state based on store
404
- this.isSelected = ((_a = checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.PLAID;
417
+ document.head.appendChild(script);
405
418
  }
406
419
  async resolvePaymentMethod() {
407
420
  if (!this.publicToken) {
@@ -547,7 +560,7 @@ export class JustifiPlaidPaymentMethod {
547
560
  }
548
561
  return null;
549
562
  };
550
- return (h(StyledHost, { class: "payment-method" }, h("script", { src: "https://cdn.plaid.com/link/v2/stable/link-initialize.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { title: "Pay with Plaid" }, h("div", { onClick: (event) => { event.preventDefault(); this.handleSelectionClick(); } }, "Pay with Bank Account ", plaidLogo, " "), renderErrorState(), renderStatusState())));
563
+ return (h(StyledHost, { class: "payment-method" }, h("div", { title: "Pay with Plaid" }, h("div", { onClick: (event) => { event.preventDefault(); this.handleSelectionClick(); } }, "Pay with Bank Account ", plaidLogo, " "), renderErrorState(), renderStatusState())));
551
564
  }
552
565
  static get is() { return "justifi-plaid-payment-method"; }
553
566
  static get encapsulation() { return "shadow"; }
@@ -24,11 +24,13 @@ export class JustifiSavedPaymentMethods {
24
24
  };
25
25
  }
26
26
  componentWillLoad() {
27
- if (!checkoutStore.paymentMethods.length) {
28
- console.warn('No saved payment methods available.');
29
- }
30
- if (checkoutStore.disablePaymentMethodGroup) {
31
- console.warn('Payment method group is disabled.');
27
+ if (checkoutStore.checkoutLoaded) {
28
+ if (!checkoutStore.paymentMethods.length) {
29
+ console.warn('No saved payment methods available.');
30
+ }
31
+ if (checkoutStore.disablePaymentMethodGroup) {
32
+ console.warn('Payment method group is disabled.');
33
+ }
32
34
  }
33
35
  }
34
36
  render() {
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-03-12T19:35:30",
2
+ "timestamp": "2026-03-17T19:01:05",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.38.3",
@@ -1,4 +1,4 @@
1
- import { p as packageJson } from './package-CXKOe1m5.js';
1
+ import { p as packageJson } from './package-BCgsLInF.js';
2
2
  import { A as Api } from './Api-DMd8hTI-.js';
3
3
  import './Plaid-BuKEVgbB.js';
4
4
  import './Pagination-CLHwhyvu.js';
@@ -63,7 +63,7 @@ class JustifiAnalytics {
63
63
  if (typeof this.componentInstance.addEventListener === 'function') {
64
64
  const boundHandler = (event) => this.handleCustomEvent({
65
65
  event_type: eventName,
66
- data: Object.assign(Object.assign({}, this.basicData), { error: event.detail }),
66
+ data: Object.assign(Object.assign({}, this.basicData), (eventName === 'error-event' && { error: event.detail })),
67
67
  });
68
68
  this.eventListeners.set(eventName, boundHandler);
69
69
  this.componentInstance.addEventListener(eventName, boundHandler);
@@ -2,11 +2,11 @@ import { h, r as registerInstance } from './index-CV0Pyo1O.js';
2
2
  import { S as Skeleton } from './skeleton-CXGFVqDf.js';
3
3
  import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js';
4
4
  import { e as generateTabId } from './utils-BTtxWI2r.js';
5
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
5
+ import { c as checkPkgVersion } from './check-pkg-version-BJtCbzf9.js';
6
6
  import './parts-DnrawQn3.js';
7
7
  import './index-cDVGjRkU.js';
8
8
  import './dinero-HXpYMWUU.js';
9
- import './package-CXKOe1m5.js';
9
+ import './package-BCgsLInF.js';
10
10
 
11
11
  const BankAccountFormSkeleton = (props) => {
12
12
  const { isReady } = props;
@@ -2,11 +2,11 @@ import { h, r as registerInstance } from './index-CV0Pyo1O.js';
2
2
  import { S as Skeleton } from './skeleton-CXGFVqDf.js';
3
3
  import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js';
4
4
  import { e as generateTabId } from './utils-BTtxWI2r.js';
5
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
5
+ import { c as checkPkgVersion } from './check-pkg-version-BJtCbzf9.js';
6
6
  import './parts-DnrawQn3.js';
7
7
  import './index-cDVGjRkU.js';
8
8
  import './dinero-HXpYMWUU.js';
9
- import './package-CXKOe1m5.js';
9
+ import './package-BCgsLInF.js';
10
10
 
11
11
  const CardFormSkeleton = (props) => {
12
12
  const { isReady } = props;
@@ -1,4 +1,4 @@
1
- import { p as packageJson } from './package-CXKOe1m5.js';
1
+ import { p as packageJson } from './package-BCgsLInF.js';
2
2
 
3
3
  const JUSTIFI_VERSION_KEY = '__JUSTIFI_WC_VERSION__';
4
4
  const detectDuplicateVersion = () => {
@@ -3,7 +3,7 @@ import { c as createStore } from './index-cDVGjRkU.js';
3
3
  import { a7 as inputInvalidAndFocused, q as inputInvalid, v as inputFocused, w as input, x as label } from './parts-DnrawQn3.js';
4
4
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
5
5
  import { F as FormControlErrorText } from './form-control-error-text-DVedKyhp.js';
6
- import { p as packageJson } from './package-CXKOe1m5.js';
6
+ import { p as packageJson } from './package-BCgsLInF.js';
7
7
 
8
8
  const iframeInputStylesStore = createStore({
9
9
  focused: {