@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.
- package/dist/cjs/{Analytics-BhduX1FR.js → Analytics-C1Wd9OW4.js} +2 -2
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-Bd2yxoh4.js → check-pkg-version-DMXmPDqZ.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +74 -36
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +3 -3
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +3 -3
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -4
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
- package/dist/cjs/{package-CjFkmEML.js → package-CRaVpb0w.js} +1 -1
- package/dist/collection/api/Analytics.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +3 -1
- package/dist/collection/components/checkout/justifi-checkout.js +2 -3
- package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +34 -14
- package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +4 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +27 -14
- package/dist/collection/components/modular-checkout/sub-components/justifi-saved-payment-methods.js +7 -5
- package/dist/docs.json +1 -1
- package/dist/esm/{Analytics-4PEV3c9V.js → Analytics-qafLCOEU.js} +2 -2
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-BmgaID9z.js → check-pkg-version-BJtCbzf9.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-apple-pay_11.entry.js +75 -37
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +3 -3
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-business-details.entry.js +3 -3
- package/dist/esm/justifi-business-form.entry.js +3 -3
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +5 -6
- package/dist/esm/justifi-checkouts-list.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +3 -3
- package/dist/esm/justifi-dispute-notification_3.entry.js +3 -3
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-order-terminals.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -4
- package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +3 -3
- package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-refund-payment.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +3 -3
- package/dist/esm/{package-CXKOe1m5.js → package-BCgsLInF.js} +1 -1
- package/dist/module/Analytics.js +1 -1
- package/dist/module/justifi-apple-pay2.js +34 -14
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-google-pay2.js +4 -1
- package/dist/module/justifi-payment-provisioning.js +3 -1
- package/dist/module/justifi-plaid-payment-method2.js +27 -14
- package/dist/module/justifi-saved-payment-methods2.js +7 -5
- package/dist/module/package.js +1 -1
- package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +1 -1
- package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +3 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-plaid-payment-method.d.ts +2 -2
- package/dist/webcomponents/{p-017edf85.entry.js → p-06ecd4cb.entry.js} +1 -1
- package/dist/webcomponents/{p-b6d59ff4.entry.js → p-164f95ec.entry.js} +1 -1
- package/dist/webcomponents/p-174eb877.entry.js +1 -0
- package/dist/webcomponents/{p-9870fff0.entry.js → p-1e0be7b0.entry.js} +1 -1
- package/dist/webcomponents/p-39cc6928.entry.js +1 -0
- package/dist/webcomponents/p-4226eb4a.entry.js +1 -0
- package/dist/webcomponents/{p-b8c59954.entry.js → p-474ee3f8.entry.js} +1 -1
- package/dist/webcomponents/p-485b77ba.entry.js +1 -0
- package/dist/webcomponents/{p-0e9cb724.entry.js → p-581808f0.entry.js} +1 -1
- package/dist/webcomponents/{p-259ea5e0.entry.js → p-79713014.entry.js} +1 -1
- package/dist/webcomponents/{p-608a41d2.entry.js → p-798f4708.entry.js} +1 -1
- package/dist/webcomponents/{p-4f57368a.entry.js → p-7f0f72c6.entry.js} +1 -1
- package/dist/webcomponents/{p-1e080e95.entry.js → p-7f814609.entry.js} +1 -1
- package/dist/webcomponents/{p-61ebdd8b.entry.js → p-870fac9e.entry.js} +1 -1
- package/dist/webcomponents/{p-cd267d76.entry.js → p-956eca2e.entry.js} +1 -1
- package/dist/webcomponents/p-BCgsLInF.js +1 -0
- package/dist/webcomponents/{p-GP5gWjhc.js → p-BJ7GFTiW.js} +1 -1
- package/dist/webcomponents/{p-cXPhRFs-.js → p-BnaR7f2G.js} +1 -1
- package/dist/webcomponents/{p-b76b743e.entry.js → p-a80d958d.entry.js} +1 -1
- package/dist/webcomponents/{p-f4b390bc.entry.js → p-b2447726.entry.js} +1 -1
- package/dist/webcomponents/{p-f481695c.entry.js → p-c73631f0.entry.js} +1 -1
- package/dist/webcomponents/{p-d3829e18.entry.js → p-c8f7ebf6.entry.js} +1 -1
- package/dist/webcomponents/{p-1e66d430.entry.js → p-d7633e10.entry.js} +1 -1
- package/dist/webcomponents/{p-87a4b33f.entry.js → p-da882bd1.entry.js} +1 -1
- package/dist/webcomponents/{p-647668b6.entry.js → p-dd1cfb9e.entry.js} +1 -1
- package/dist/webcomponents/{p-06e88d51.entry.js → p-de836ec9.entry.js} +1 -1
- package/dist/webcomponents/{p-2b25c768.entry.js → p-f24563ab.entry.js} +1 -1
- package/dist/webcomponents/p-f4aeda71.entry.js +1 -0
- package/dist/webcomponents/{p-ed580b3c.entry.js → p-faa090a5.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-11faee45.entry.js +0 -1
- package/dist/webcomponents/p-238163d8.entry.js +0 -1
- package/dist/webcomponents/p-CXKOe1m5.js +0 -1
- package/dist/webcomponents/p-cf31ccdd.entry.js +0 -1
- package/dist/webcomponents/p-d58a330d.entry.js +0 -1
- 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-
|
|
13
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
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-
|
|
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-
|
|
14
|
+
var Analytics = require('./Analytics-C1Wd9OW4.js');
|
|
15
15
|
var payoutsStatus = require('./payouts-status-CwgOMz-S.js');
|
|
16
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
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-
|
|
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-
|
|
11
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
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-
|
|
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-
|
|
6
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
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-
|
|
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-
|
|
17
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
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-
|
|
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-
|
|
11
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
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-
|
|
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-
|
|
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-
|
|
17
|
-
require('./package-
|
|
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-
|
|
6
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
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-
|
|
22
|
+
require('./package-CRaVpb0w.js');
|
|
23
23
|
require('./Api-Bukk55YZ.js');
|
|
24
24
|
require('./index-W-zoNiyM.js');
|
|
25
25
|
require('./spinner-C6ZGOB2P.js');
|
|
@@ -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
|
-
|
|
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: '
|
|
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: '
|
|
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
|
-
|
|
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,
|
|
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",
|
package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js
CHANGED
|
@@ -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
|
-
|
|
384
|
-
|
|
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
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
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("
|
|
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"; }
|
package/dist/collection/components/modular-checkout/sub-components/justifi-saved-payment-methods.js
CHANGED
|
@@ -24,11 +24,13 @@ export class JustifiSavedPaymentMethods {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
componentWillLoad() {
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
9
|
+
import './package-BCgsLInF.js';
|
|
10
10
|
|
|
11
11
|
const CardFormSkeleton = (props) => {
|
|
12
12
|
const { isReady } = props;
|
|
@@ -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-
|
|
6
|
+
import { p as packageJson } from './package-BCgsLInF.js';
|
|
7
7
|
|
|
8
8
|
const iframeInputStylesStore = createStore({
|
|
9
9
|
focused: {
|