@justifi/webcomponents 6.0.0-rc.15 → 6.0.0-rc.16
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/bank-account-document-form-inputs_4.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-CVOffMTi.js → check-pkg-version-DfzaKEDg.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +36 -369
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +7 -7
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +7 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-MU7zz6nI.js → package-CHNXn8wx.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +2 -1
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +37 -46
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +2 -2
- package/dist/esm/{check-pkg-version-BLDmtrcB.js → check-pkg-version-Cz8T6Ux8.js} +1 -1
- package/dist/esm/{checkout.store-DNDbZO3M.js → checkout.store-OD-OX5On.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +2 -2
- package/dist/esm/form-control-number-masked_2.entry.js +2 -2
- package/dist/esm/form-control-number.entry.js +2 -2
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +2 -2
- package/dist/esm/hidden-input_2.entry.js +5 -5
- package/dist/esm/justifi-apple-pay.entry.js +37 -370
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +8 -8
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +8 -7
- package/dist/esm/justifi-checkout.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BFz8vLec.js → package-BiTF1__F.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +8 -8
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/payments-list-core.entry.js +1 -1
- package/dist/esm/payout-details-core.entry.js +3 -3
- package/dist/esm/payouts-list-core.entry.js +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/terminals-list-core.entry.js +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/justifi-apple-pay.js +34 -372
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/modular-checkout.js +2 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/tokenize-payment-method.js +1 -1
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +0 -4
- package/dist/webcomponents/p-054193e4.entry.js +1 -0
- package/dist/webcomponents/p-07c3c25e.entry.js +1 -0
- package/dist/webcomponents/p-0913a57b.entry.js +1 -0
- package/dist/webcomponents/p-099e96ba.entry.js +1 -0
- package/dist/webcomponents/{p-50f6a37b.entry.js → p-0bba0dd0.entry.js} +1 -1
- package/dist/webcomponents/p-0e80830f.entry.js +1 -0
- package/dist/webcomponents/{p-a6748a1d.entry.js → p-13c21c47.entry.js} +1 -1
- package/dist/webcomponents/{p-5961ab23.entry.js → p-225da0b5.entry.js} +1 -1
- package/dist/webcomponents/{p-2d14f144.entry.js → p-225ed545.entry.js} +1 -1
- package/dist/webcomponents/{p-71f9c48a.entry.js → p-2550e845.entry.js} +1 -1
- package/dist/webcomponents/p-2ae3613e.entry.js +1 -0
- package/dist/webcomponents/{p-286221ee.entry.js → p-2b47ddd8.entry.js} +1 -1
- package/dist/webcomponents/{p-12136157.entry.js → p-3a34e4f9.entry.js} +1 -1
- package/dist/webcomponents/p-3caee9d2.entry.js +1 -0
- package/dist/webcomponents/p-3d94c845.entry.js +1 -0
- package/dist/webcomponents/{p-9c997d0b.entry.js → p-45e8185c.entry.js} +1 -1
- package/dist/webcomponents/{p-65c958b1.entry.js → p-4abf0877.entry.js} +1 -1
- package/dist/webcomponents/{p-33311d41.entry.js → p-559be51b.entry.js} +1 -1
- package/dist/webcomponents/p-5a3fc339.entry.js +1 -0
- package/dist/webcomponents/p-654d85ca.entry.js +1 -0
- package/dist/webcomponents/{p-1c157c8e.entry.js → p-69bf5e32.entry.js} +1 -1
- package/dist/webcomponents/{p-81c2edfb.entry.js → p-73dd0306.entry.js} +1 -1
- package/dist/webcomponents/p-7c463a59.entry.js +1 -0
- package/dist/webcomponents/p-7fcbccc7.entry.js +1 -0
- package/dist/webcomponents/p-87acb5ec.entry.js +1 -0
- package/dist/webcomponents/{p-9fc567d8.entry.js → p-8c95827f.entry.js} +1 -1
- package/dist/webcomponents/{p-8d743490.entry.js → p-93ed5490.entry.js} +1 -1
- package/dist/webcomponents/{p-949cecf8.entry.js → p-995c2cbf.entry.js} +1 -1
- package/dist/webcomponents/p-9c621697.entry.js +1 -0
- package/dist/webcomponents/{p-DjB0cvKF.js → p-BcAsEqa5.js} +1 -1
- package/dist/webcomponents/p-BiTF1__F.js +1 -0
- package/dist/webcomponents/{p-Cb3h46bV.js → p-CItulios.js} +1 -1
- package/dist/webcomponents/{p-0ff04742.entry.js → p-a5114207.entry.js} +1 -1
- package/dist/webcomponents/{p-c340830a.entry.js → p-a53710c4.entry.js} +1 -1
- package/dist/webcomponents/p-a65d751d.entry.js +1 -0
- package/dist/webcomponents/p-a7712cea.entry.js +1 -0
- package/dist/webcomponents/{p-98ef7e25.entry.js → p-b9ab3803.entry.js} +1 -1
- package/dist/webcomponents/{p-522e7b24.entry.js → p-bf2df971.entry.js} +1 -1
- package/dist/webcomponents/{p-cbd65ba9.entry.js → p-c3cfcd4b.entry.js} +1 -1
- package/dist/webcomponents/{p-f887ae7c.entry.js → p-ce272d8a.entry.js} +1 -1
- package/dist/webcomponents/p-cff8ae71.entry.js +1 -0
- package/dist/webcomponents/{p-ed901f9d.entry.js → p-d031ad31.entry.js} +1 -1
- package/dist/webcomponents/p-d5d271d3.entry.js +1 -0
- package/dist/webcomponents/{p-52cbd667.entry.js → p-dba55699.entry.js} +1 -1
- package/dist/webcomponents/p-e5282f6c.entry.js +1 -0
- package/dist/webcomponents/{p-2dec38c9.entry.js → p-e7921c1f.entry.js} +1 -1
- package/dist/webcomponents/{p-7f422774.entry.js → p-eabaeaf6.entry.js} +1 -1
- package/dist/webcomponents/{p-0e2010f1.entry.js → p-f6e3f1ca.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-1f7a796e.entry.js +0 -1
- package/dist/webcomponents/p-2abcad8b.entry.js +0 -1
- package/dist/webcomponents/p-2b39ab97.entry.js +0 -1
- package/dist/webcomponents/p-402caa84.entry.js +0 -1
- package/dist/webcomponents/p-42d4ea58.entry.js +0 -1
- package/dist/webcomponents/p-50ef7446.entry.js +0 -1
- package/dist/webcomponents/p-537aa971.entry.js +0 -1
- package/dist/webcomponents/p-7186f4a7.entry.js +0 -1
- package/dist/webcomponents/p-75fff382.entry.js +0 -1
- package/dist/webcomponents/p-77948b46.entry.js +0 -1
- package/dist/webcomponents/p-852febb1.entry.js +0 -1
- package/dist/webcomponents/p-8b2eff55.entry.js +0 -1
- package/dist/webcomponents/p-BFz8vLec.js +0 -1
- package/dist/webcomponents/p-aa6194ef.entry.js +0 -1
- package/dist/webcomponents/p-bc45aa92.entry.js +0 -1
- package/dist/webcomponents/p-e45bd6ec.entry.js +0 -1
- package/dist/webcomponents/p-e6d1ed81.entry.js +0 -1
- package/dist/webcomponents/p-e7fc542c.entry.js +0 -1
- package/dist/webcomponents/p-f849a34e.entry.js +0 -1
- package/dist/webcomponents/p-fa1884b4.entry.js +0 -1
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C9hBD-32.js');
|
|
4
|
-
var Api = require('./Api-DyimBzKT.js');
|
|
5
4
|
var styledHost = require('./styled-host-BfVJlAsJ.js');
|
|
6
5
|
require('./event-types-YOY5TKUN.js');
|
|
7
6
|
var skeleton = require('./skeleton-C7DQRD6r.js');
|
|
8
7
|
var checkout_store = require('./checkout.store-DJEc-So8.js');
|
|
9
|
-
require('./
|
|
8
|
+
require('./parts-9jMf1erK.js');
|
|
10
9
|
require('./index-B32W0A3m.js');
|
|
11
|
-
require('./
|
|
10
|
+
require('./config-state-BBOZIS8x.js');
|
|
12
11
|
require('./dinero-BwNN_k7x.js');
|
|
13
|
-
require('./parts-9jMf1erK.js');
|
|
14
12
|
require('./ComponentError-D4OLnOkg.js');
|
|
15
13
|
require('./Refund-BefKONu4.js');
|
|
14
|
+
require('./utils-ChCUZgUy.js');
|
|
16
15
|
require('./Dispute-CruQTF6_.js');
|
|
17
16
|
require('./Pagination-Dediz133.js');
|
|
18
17
|
require('./Business-DCRzZf0w.js');
|
|
@@ -48,45 +47,6 @@ var ApplePayMerchantCapability;
|
|
|
48
47
|
ApplePayMerchantCapability["SUPPORTS_CREDIT"] = "supportsCredit";
|
|
49
48
|
ApplePayMerchantCapability["SUPPORTS_DEBIT"] = "supportsDebit";
|
|
50
49
|
})(ApplePayMerchantCapability || (ApplePayMerchantCapability = {}));
|
|
51
|
-
class ApplePayConfig {
|
|
52
|
-
constructor(data) {
|
|
53
|
-
this.merchantIdentifier = data.merchantIdentifier;
|
|
54
|
-
this.displayName = data.displayName;
|
|
55
|
-
this.initiative = data.initiative;
|
|
56
|
-
this.initiativeContext = data.initiativeContext;
|
|
57
|
-
this.buttonType = data.buttonType || ApplePayButtonType.PLAIN;
|
|
58
|
-
this.buttonStyle = data.buttonStyle || ApplePayButtonStyle.BLACK;
|
|
59
|
-
this.buttonLocale = data.buttonLocale || 'en-US';
|
|
60
|
-
}
|
|
61
|
-
get isValid() {
|
|
62
|
-
return !!(this.merchantIdentifier &&
|
|
63
|
-
this.displayName &&
|
|
64
|
-
this.initiative &&
|
|
65
|
-
this.initiativeContext);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
class ApplePayPaymentRequest {
|
|
69
|
-
constructor(data) {
|
|
70
|
-
this.countryCode = data.countryCode;
|
|
71
|
-
this.currencyCode = data.currencyCode;
|
|
72
|
-
this.merchantCapabilities = data.merchantCapabilities;
|
|
73
|
-
this.supportedNetworks = data.supportedNetworks;
|
|
74
|
-
this.total = data.total;
|
|
75
|
-
this.lineItems = data.lineItems;
|
|
76
|
-
this.shippingMethods = data.shippingMethods;
|
|
77
|
-
this.applicationData = data.applicationData;
|
|
78
|
-
this.supportedCountries = data.supportedCountries;
|
|
79
|
-
}
|
|
80
|
-
get isValid() {
|
|
81
|
-
var _a, _b, _c, _d;
|
|
82
|
-
return !!(this.countryCode &&
|
|
83
|
-
this.currencyCode &&
|
|
84
|
-
((_a = this.merchantCapabilities) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
85
|
-
((_b = this.supportedNetworks) === null || _b === void 0 ? void 0 : _b.length) &&
|
|
86
|
-
((_c = this.total) === null || _c === void 0 ? void 0 : _c.label) &&
|
|
87
|
-
((_d = this.total) === null || _d === void 0 ? void 0 : _d.amount));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
50
|
class ApplePayHelpers {
|
|
91
51
|
static isApplePaySupported() {
|
|
92
52
|
var _a;
|
|
@@ -140,298 +100,6 @@ class ApplePayHelpers {
|
|
|
140
100
|
}
|
|
141
101
|
}
|
|
142
102
|
|
|
143
|
-
class ApplePayService {
|
|
144
|
-
constructor() {
|
|
145
|
-
this.api = Api.Api();
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Initialize Apple Pay configuration
|
|
149
|
-
*/
|
|
150
|
-
initialize(applePayConfig) {
|
|
151
|
-
this.applePayConfig = new ApplePayConfig(applePayConfig);
|
|
152
|
-
if (!this.applePayConfig.isValid) {
|
|
153
|
-
throw new Error('Invalid Apple Pay configuration provided');
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Validate merchant with Apple Pay servers via API
|
|
158
|
-
*/
|
|
159
|
-
async validateMerchant(authToken, accountId) {
|
|
160
|
-
const endpoint = 'apple_pay/merchant_session';
|
|
161
|
-
try {
|
|
162
|
-
const response = await this.api.post({
|
|
163
|
-
endpoint,
|
|
164
|
-
authToken,
|
|
165
|
-
headers: {
|
|
166
|
-
'Sub-Account': accountId,
|
|
167
|
-
},
|
|
168
|
-
});
|
|
169
|
-
return response;
|
|
170
|
-
}
|
|
171
|
-
catch (error) {
|
|
172
|
-
console.error('Backend validation failed:', error);
|
|
173
|
-
throw new Error('Merchant validation failed');
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Process Apple Pay payment via API (fixed to match original logic)
|
|
178
|
-
*/
|
|
179
|
-
async processPayment(authToken, accountId, payload) {
|
|
180
|
-
const endpoint = 'apple_pay/process_token';
|
|
181
|
-
const result = await this.api.post({
|
|
182
|
-
endpoint,
|
|
183
|
-
authToken,
|
|
184
|
-
body: payload,
|
|
185
|
-
headers: {
|
|
186
|
-
'Sub-Account': accountId,
|
|
187
|
-
},
|
|
188
|
-
});
|
|
189
|
-
return {
|
|
190
|
-
success: result.id && !!result.data.token,
|
|
191
|
-
data: result,
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Check if Apple Pay is available on this device/browser
|
|
196
|
-
*/
|
|
197
|
-
isAvailable() {
|
|
198
|
-
return (ApplePayHelpers.isApplePaySupported() && ApplePayHelpers.canMakePayments());
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Check if the user has an active card for the merchant
|
|
202
|
-
*/
|
|
203
|
-
async canMakePaymentsWithActiveCard() {
|
|
204
|
-
if (!this.applePayConfig) {
|
|
205
|
-
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
206
|
-
}
|
|
207
|
-
return await ApplePayHelpers.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier);
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Start Apple Pay session
|
|
211
|
-
*/
|
|
212
|
-
async startPaymentSession(paymentRequest, authToken, accountId) {
|
|
213
|
-
if (!this.applePayConfig) {
|
|
214
|
-
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
215
|
-
}
|
|
216
|
-
// if (!this.isAvailable()) {
|
|
217
|
-
// throw new Error('Apple Pay is not available on this device/browser');
|
|
218
|
-
// }
|
|
219
|
-
const request = new ApplePayPaymentRequest(paymentRequest);
|
|
220
|
-
if (!request.isValid) {
|
|
221
|
-
throw new Error('Invalid payment request provided');
|
|
222
|
-
}
|
|
223
|
-
this.currentPaymentRequest = request;
|
|
224
|
-
return new Promise((resolve, reject) => {
|
|
225
|
-
try {
|
|
226
|
-
this.currentSession = new window.ApplePaySession(3, request);
|
|
227
|
-
this.setupSessionEventHandlers(resolve, reject, authToken, accountId);
|
|
228
|
-
this.currentSession.begin();
|
|
229
|
-
}
|
|
230
|
-
catch (error) {
|
|
231
|
-
reject({
|
|
232
|
-
success: false,
|
|
233
|
-
error: {
|
|
234
|
-
code: 'SESSION_ERROR',
|
|
235
|
-
message: error instanceof Error
|
|
236
|
-
? error.message
|
|
237
|
-
: 'Failed to start Apple Pay session',
|
|
238
|
-
},
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Abort current Apple Pay session
|
|
245
|
-
*/
|
|
246
|
-
abortPaymentSession() {
|
|
247
|
-
if (this.currentSession) {
|
|
248
|
-
this.currentSession.abort();
|
|
249
|
-
this.currentSession = undefined;
|
|
250
|
-
this.currentPaymentRequest = undefined;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Setup Apple Pay session event handlers
|
|
255
|
-
*/
|
|
256
|
-
setupSessionEventHandlers(resolve, reject, authToken, accountId) {
|
|
257
|
-
if (!this.currentSession ||
|
|
258
|
-
!this.applePayConfig ||
|
|
259
|
-
!this.currentPaymentRequest) {
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
this.currentSession.onvalidatemerchant = async () => {
|
|
263
|
-
try {
|
|
264
|
-
if (!authToken) {
|
|
265
|
-
throw new Error('Authentication token not provided.');
|
|
266
|
-
}
|
|
267
|
-
const merchantSession = await this.validateMerchant(authToken, accountId);
|
|
268
|
-
try {
|
|
269
|
-
this.currentSession.completeMerchantValidation(merchantSession);
|
|
270
|
-
}
|
|
271
|
-
catch (completionError) {
|
|
272
|
-
console.error('Error calling completeMerchantValidation:', completionError);
|
|
273
|
-
throw completionError;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
catch (error) {
|
|
277
|
-
console.error('=== MERCHANT VALIDATION ERROR ===');
|
|
278
|
-
console.error('Error during merchant validation:', error);
|
|
279
|
-
console.error('Error stack:', error.stack);
|
|
280
|
-
this.currentSession.abort();
|
|
281
|
-
reject({
|
|
282
|
-
success: false,
|
|
283
|
-
error: {
|
|
284
|
-
code: 'MERCHANT_VALIDATION_ERROR',
|
|
285
|
-
message: error instanceof Error
|
|
286
|
-
? error.message
|
|
287
|
-
: 'Merchant validation failed',
|
|
288
|
-
},
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
this.currentSession.onpaymentauthorized = async (event) => {
|
|
293
|
-
try {
|
|
294
|
-
const payment = event.payment;
|
|
295
|
-
const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
|
|
296
|
-
name: this.currentPaymentRequest.total.label,
|
|
297
|
-
price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
|
|
298
|
-
description: this.currentPaymentRequest.total.label,
|
|
299
|
-
} });
|
|
300
|
-
const paymentResult = await this.processPayment(authToken, accountId, paymentPayload);
|
|
301
|
-
if (paymentResult.success) {
|
|
302
|
-
this.currentSession.completePayment({
|
|
303
|
-
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
304
|
-
});
|
|
305
|
-
resolve({
|
|
306
|
-
success: true,
|
|
307
|
-
token: payment.token,
|
|
308
|
-
paymentMethodId: paymentResult.data.id,
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
else {
|
|
312
|
-
console.error('PSP reported payment failure:', paymentResult.data);
|
|
313
|
-
this.currentSession.completePayment({
|
|
314
|
-
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
315
|
-
});
|
|
316
|
-
reject({
|
|
317
|
-
success: false,
|
|
318
|
-
error: {
|
|
319
|
-
code: 'PAYMENT_PROCESSING_ERROR',
|
|
320
|
-
message: 'Payment processing failed',
|
|
321
|
-
},
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
catch (error) {
|
|
326
|
-
console.error('=== PAYMENT PROCESSING ERROR ===');
|
|
327
|
-
console.error('Error processing payment:', error);
|
|
328
|
-
console.error('Error stack:', error.stack);
|
|
329
|
-
this.currentSession.completePayment({
|
|
330
|
-
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
331
|
-
});
|
|
332
|
-
reject({
|
|
333
|
-
success: false,
|
|
334
|
-
error: {
|
|
335
|
-
code: 'PAYMENT_PROCESSING_ERROR',
|
|
336
|
-
message: error instanceof Error
|
|
337
|
-
? error.message
|
|
338
|
-
: 'Payment processing failed',
|
|
339
|
-
},
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
finally {
|
|
343
|
-
this.currentSession = undefined;
|
|
344
|
-
this.currentPaymentRequest = undefined;
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
this.currentSession.onpaymentmethodselected = () => {
|
|
348
|
-
const paymentUpdate = {
|
|
349
|
-
newTotal: this.currentPaymentRequest.total,
|
|
350
|
-
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
351
|
-
};
|
|
352
|
-
try {
|
|
353
|
-
this.currentSession.completePaymentMethodSelection(paymentUpdate);
|
|
354
|
-
}
|
|
355
|
-
catch (error) {
|
|
356
|
-
console.error('Error completing payment method selection:', error);
|
|
357
|
-
this.currentSession.abort();
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
this.currentSession.onshippingmethodselected = () => {
|
|
361
|
-
this.currentSession.completeShippingMethodSelection({
|
|
362
|
-
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
363
|
-
newTotal: this.currentPaymentRequest.total,
|
|
364
|
-
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
365
|
-
});
|
|
366
|
-
};
|
|
367
|
-
this.currentSession.oncancel = (event) => {
|
|
368
|
-
if (event.sessionError) {
|
|
369
|
-
console.error(event.sessionError);
|
|
370
|
-
switch (event.sessionError.code) {
|
|
371
|
-
case 'unknown':
|
|
372
|
-
console.error('Unknown error - likely merchant validation issue');
|
|
373
|
-
console.error('This usually means:');
|
|
374
|
-
console.error('1. Merchant certificate is invalid or expired');
|
|
375
|
-
console.error('2. Merchant identifier mismatch');
|
|
376
|
-
console.error('3. Backend validation endpoint issues');
|
|
377
|
-
break;
|
|
378
|
-
case 'invalidMerchantSession':
|
|
379
|
-
console.error('Invalid merchant session provided');
|
|
380
|
-
console.error('Check that the merchant session from backend is valid');
|
|
381
|
-
break;
|
|
382
|
-
case 'userCancel':
|
|
383
|
-
console.error('User cancelled the payment');
|
|
384
|
-
break;
|
|
385
|
-
default:
|
|
386
|
-
console.error('Other error code:', event.sessionError.code);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
this.currentSession = undefined;
|
|
390
|
-
this.currentPaymentRequest = undefined;
|
|
391
|
-
reject({
|
|
392
|
-
success: false,
|
|
393
|
-
error: {
|
|
394
|
-
code: 'USER_CANCELLED',
|
|
395
|
-
message: 'User cancelled the Apple Pay session',
|
|
396
|
-
},
|
|
397
|
-
});
|
|
398
|
-
};
|
|
399
|
-
if ('onerror' in this.currentSession) {
|
|
400
|
-
this.currentSession.onerror = (error) => {
|
|
401
|
-
console.error('=== APPLE PAY SESSION ERROR ===');
|
|
402
|
-
console.error('Session error:', error);
|
|
403
|
-
this.currentSession = undefined;
|
|
404
|
-
this.currentPaymentRequest = undefined;
|
|
405
|
-
reject({
|
|
406
|
-
success: false,
|
|
407
|
-
error: {
|
|
408
|
-
code: 'SESSION_ERROR',
|
|
409
|
-
message: 'Apple Pay session error occurred',
|
|
410
|
-
},
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
/**
|
|
416
|
-
* Create a basic payment request
|
|
417
|
-
*/
|
|
418
|
-
static createPaymentRequest(amount, label, countryCode = 'US', currencyCode = 'USD') {
|
|
419
|
-
return {
|
|
420
|
-
countryCode,
|
|
421
|
-
currencyCode,
|
|
422
|
-
merchantCapabilities: ApplePayHelpers.getDefaultMerchantCapabilities(),
|
|
423
|
-
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
424
|
-
total: ApplePayHelpers.createLineItem(label, amount),
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
/**
|
|
428
|
-
* Get current configuration
|
|
429
|
-
*/
|
|
430
|
-
getApplePayConfig() {
|
|
431
|
-
return this.applePayConfig;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
|
|
435
103
|
const ApplePaySkeleton = (props) => {
|
|
436
104
|
const { isReady } = props;
|
|
437
105
|
if (isReady) {
|
|
@@ -662,25 +330,29 @@ const ApplePay = class {
|
|
|
662
330
|
}
|
|
663
331
|
};
|
|
664
332
|
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
}
|
|
675
|
-
disconnectedCallback() {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
333
|
+
// private unsubscribeCheckoutLoaded?: () => void;
|
|
334
|
+
// componentWillLoad() {
|
|
335
|
+
// this.unsubscribeCheckoutLoaded = onChange("checkoutLoaded", (loaded) => {
|
|
336
|
+
// this.applePayService = new ApplePayService();
|
|
337
|
+
// console.log("checkoutLoaded", loaded);
|
|
338
|
+
// if (loaded) {
|
|
339
|
+
// this.initializeApplePay();
|
|
340
|
+
// }
|
|
341
|
+
// });
|
|
342
|
+
// }
|
|
343
|
+
// disconnectedCallback() {
|
|
344
|
+
// this.unsubscribeCheckoutLoaded?.();
|
|
345
|
+
// this.unsubscribeCheckoutLoaded = undefined;
|
|
346
|
+
// }
|
|
347
|
+
// @Watch("merchantIdentifier")
|
|
348
|
+
// @Watch("buttonType")
|
|
349
|
+
// @Watch("buttonStyle")
|
|
350
|
+
// @Watch("disabled")
|
|
351
|
+
// watchPropsChange() {
|
|
352
|
+
// this.initializeApplePay();
|
|
353
|
+
// }
|
|
683
354
|
async initializeApplePay() {
|
|
355
|
+
console.log("initializeApplePay", checkout_store.checkoutStore.checkoutLoaded);
|
|
684
356
|
try {
|
|
685
357
|
this.isLoading = true;
|
|
686
358
|
this.error = null;
|
|
@@ -689,9 +361,9 @@ const ApplePay = class {
|
|
|
689
361
|
Boolean(checkout_store.checkoutStore.paymentCurrency) &&
|
|
690
362
|
Boolean(checkout_store.checkoutStore.authToken);
|
|
691
363
|
if (!hasRequiredConfig) {
|
|
692
|
-
this.error = "Missing required Apple Pay configuration";
|
|
364
|
+
this.error = "Missing required Apple Pay configuration blabla blabla 2";
|
|
693
365
|
this.isConfigValid = false;
|
|
694
|
-
console.error("Apple Pay config error: missing required values", {
|
|
366
|
+
console.error("Apple Pay config error: missing required values blabla blabla 2", {
|
|
695
367
|
paymentAmount: checkout_store.checkoutStore.paymentAmount,
|
|
696
368
|
paymentCurrency: checkout_store.checkoutStore.paymentCurrency,
|
|
697
369
|
hasAuthToken: Boolean(checkout_store.checkoutStore.authToken),
|
|
@@ -757,29 +429,24 @@ const ApplePay = class {
|
|
|
757
429
|
this.applePayCancelled.emit();
|
|
758
430
|
}
|
|
759
431
|
render() {
|
|
760
|
-
const shouldHide =
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
432
|
+
// const shouldHide =
|
|
433
|
+
// !this.isLoading &&
|
|
434
|
+
// (!this.isConfigValid || !this.isAvailable || !this.canMakePayments || !checkoutStore.checkoutLoaded);
|
|
435
|
+
// if (shouldHide) {
|
|
436
|
+
// return null;
|
|
437
|
+
// }
|
|
765
438
|
const isReady = !this.isLoading &&
|
|
766
439
|
this.isAvailable &&
|
|
767
440
|
this.canMakePayments &&
|
|
768
441
|
this.isConfigValid;
|
|
769
|
-
return (index.h(styledHost.StyledHost,
|
|
770
|
-
|
|
771
|
-
|
|
442
|
+
return (index.h(styledHost.StyledHost, { key: 'ea33bc759d2849cf013cb6f98367c8d78c799acb' }, checkout_store.checkoutStore.checkoutLoaded && (index.h("script", { key: '9ed6140223a8788ca194a8978a9ca8e1e30eb10e', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
|
|
443
|
+
this.initializeApplePay();
|
|
444
|
+
} })), index.h("div", { key: '6501d8cb4c4119eadf9112db4fca876437138bcc', class: 'apple-pay-container' }, index.h(ApplePaySkeleton, { key: '1aee83e3deac0d0f68d2788f65401a1d7c48047f', isReady: isReady }), isReady && (index.h(ApplePayButton, { key: 'eb05dde5789f5f1bb83e75127c222996a38c8fef', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), index.h("style", { key: '8060bf6771c12f47d482f0a774e4fd6547e50a2e' }, `
|
|
772
445
|
.apple-pay-container {
|
|
773
446
|
width: 100%;
|
|
774
447
|
}
|
|
775
448
|
`)));
|
|
776
449
|
}
|
|
777
|
-
static get watchers() { return {
|
|
778
|
-
"merchantIdentifier": ["watchPropsChange"],
|
|
779
|
-
"buttonType": ["watchPropsChange"],
|
|
780
|
-
"buttonStyle": ["watchPropsChange"],
|
|
781
|
-
"disabled": ["watchPropsChange"]
|
|
782
|
-
}; }
|
|
783
450
|
};
|
|
784
451
|
|
|
785
452
|
exports.justifi_apple_pay = ApplePay;
|
|
@@ -7,7 +7,7 @@ var parts = require('./parts-9jMf1erK.js');
|
|
|
7
7
|
var styledHost = require('./styled-host-BfVJlAsJ.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
9
|
var skeleton = require('./skeleton-C7DQRD6r.js');
|
|
10
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
10
|
+
var checkPkgVersion = require('./check-pkg-version-DfzaKEDg.js');
|
|
11
11
|
var configState = require('./config-state-BBOZIS8x.js');
|
|
12
12
|
var header3 = require('./header-3-sOdOpfx3.js');
|
|
13
13
|
var utils = require('./utils-DAyWinG2.js');
|
|
@@ -18,7 +18,7 @@ require('./_commonjsHelpers-BJu3ubxk.js');
|
|
|
18
18
|
require('./business-form-options-CMII7nIK.js');
|
|
19
19
|
require('./Business-DCRzZf0w.js');
|
|
20
20
|
require('./helpers-B5OCqlIM.js');
|
|
21
|
-
require('./package-
|
|
21
|
+
require('./package-CHNXn8wx.js');
|
|
22
22
|
require('./Api-DyimBzKT.js');
|
|
23
23
|
require('./utils-ChCUZgUy.js');
|
|
24
24
|
require('./dinero-BwNN_k7x.js');
|
|
@@ -156,10 +156,10 @@ const BankAccountForm = class {
|
|
|
156
156
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
157
157
|
}
|
|
158
158
|
render() {
|
|
159
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
159
|
+
return (index.h(styledHost.StyledHost, { key: '99ccb5aa2afbf79e5bf40d59ca15eb217180349a' }, index.h(BankAccountFormSkeleton, { key: 'a26a6f4391a5e5b7923f36b05bdfe57491b31d8a', isReady: this.isReady }), index.h("hidden-input", { key: '7555fe1bbf38a1525e7c11fe7182e264752435c9' }), index.h("div", { key: 'd1d7141ee75a644d4ae67d23b353dc6293306371', class: "container-fluid p-0", style: {
|
|
160
160
|
opacity: this.isReady ? '1' : '0',
|
|
161
161
|
height: this.isReady ? 'auto' : '0',
|
|
162
|
-
} }, index.h("div", { key: '
|
|
162
|
+
} }, index.h("div", { key: 'db0d578ccb3647e049b5ef958bef0273a8945448', class: "row mb-3" }, index.h("iframe-input", { key: '58311d94a8f5f023f05de260afbaf6bc707a0d57', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), index.h("div", { key: '92e4b77f012a414ac88b8faf721b5a10f2c5a3a4', class: "row" }, index.h("iframe-input", { key: '5163f7e8cff8fb82bb009f615ef7ab2e231deb52', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
|
|
@@ -240,7 +240,7 @@ const JustifiButton = class {
|
|
|
240
240
|
this.type = 'button';
|
|
241
241
|
}
|
|
242
242
|
render() {
|
|
243
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
243
|
+
return (index.h(styledHost.StyledHost, { key: '48098276e0808052803f0d16df68ba23d529c4ab' }, index.h(button.Button, { key: 'c62e8d2d9208dc180180b4283edea991c5a93c57', variant: this.variant, isLoading: this.isLoading, clickHandler: this.clickHandler, class: this.class, type: this.type, disabled: this.disabled, style: this.customStyle }, this.text)));
|
|
244
244
|
}
|
|
245
245
|
};
|
|
246
246
|
|
|
@@ -339,10 +339,10 @@ const JustifiCardForm = class {
|
|
|
339
339
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
340
340
|
}
|
|
341
341
|
render() {
|
|
342
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
342
|
+
return (index.h(styledHost.StyledHost, { key: '46991f66161e4118fdf135bf18eb757435e26457' }, index.h(CardFormSkeleton, { key: 'aacb7f467a10debc809997a67172fe4f23a2ca76', isReady: this.isReady }), index.h("hidden-input", { key: '3e9bd9b7ff0aba356d9f8fd07428cbaedcb223b1' }), index.h("div", { key: '8fcf6d92703491fe6a0be076a5965c09c800f262', class: "container-fluid p-0", style: {
|
|
343
343
|
opacity: this.isReady ? '1' : '0',
|
|
344
344
|
height: this.isReady ? 'auto' : '0',
|
|
345
|
-
} }, index.h("div", { key: '
|
|
345
|
+
} }, index.h("div", { key: '8dea63dc69d7c7cfbcded0a07bfbcf9c7d7a41fa', class: "mb-3" }, index.h("iframe-input", { key: 'ffd4de932414b206ea5936c21349c522b762f8a4', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), index.h("div", { key: '3e56350822761119dbb7ff49e3cc56bec7f361ca', class: "row" }, index.h("div", { key: 'ab13b6b20573fbec961164a415ccaf21b663eb4b', class: "col-4 align-content-end" }, index.h("iframe-input", { key: 'e12d56f2c1dd12ae5eff7619204d9f746e1b6a43', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), index.h("div", { key: '62e4808ee208aec7cf3e1d7a99fd65f3d9a5e615', class: "col-4 align-content-end" }, index.h("iframe-input", { key: 'c8e3945b466e61e8b21fbb13f71c0631740ca1a3', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), index.h("div", { key: '979929e29abb54f8837f71b1cdb7261df97a58df', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '2c25868c5fd7e6c2d34722b39f22c2062248cdf6', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
348
|
|
|
@@ -5,7 +5,7 @@ var utils = require('./utils-Bzyj4qWe.js');
|
|
|
5
5
|
var business_service = require('./business.service-BB6zl4Gc.js');
|
|
6
6
|
var getBusiness = require('./get-business-o5jPq_ME.js');
|
|
7
7
|
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
8
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
8
|
+
var checkPkgVersion = require('./check-pkg-version-DfzaKEDg.js');
|
|
9
9
|
require('./parts-9jMf1erK.js');
|
|
10
10
|
require('./Api-DyimBzKT.js');
|
|
11
11
|
require('./config-state-BBOZIS8x.js');
|
|
@@ -19,7 +19,7 @@ require('./Business-DCRzZf0w.js');
|
|
|
19
19
|
require('./helpers-B5OCqlIM.js');
|
|
20
20
|
require('./state-options-CIT9xdTz.js');
|
|
21
21
|
require('./utils-DvUQQLmR.js');
|
|
22
|
-
require('./package-
|
|
22
|
+
require('./package-CHNXn8wx.js');
|
|
23
23
|
|
|
24
24
|
const BusinessDetails = class {
|
|
25
25
|
constructor(hostRef) {
|
|
@@ -11,7 +11,7 @@ require('./Refund-BefKONu4.js');
|
|
|
11
11
|
require('./Pagination-Dediz133.js');
|
|
12
12
|
var Business = require('./Business-DCRzZf0w.js');
|
|
13
13
|
require('./Dispute-CruQTF6_.js');
|
|
14
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
var checkPkgVersion = require('./check-pkg-version-DfzaKEDg.js');
|
|
15
15
|
var button = require('./button-DsHDMHaa.js');
|
|
16
16
|
var styledHost = require('./styled-host-BfVJlAsJ.js');
|
|
17
17
|
var header1 = require('./header-1-DRA3f4Jh.js');
|
|
@@ -27,7 +27,7 @@ require('./business-form-options-CMII7nIK.js');
|
|
|
27
27
|
require('./index-B32W0A3m.js');
|
|
28
28
|
require('./utils-ChCUZgUy.js');
|
|
29
29
|
require('./helpers-B5OCqlIM.js');
|
|
30
|
-
require('./package-
|
|
30
|
+
require('./package-CHNXn8wx.js');
|
|
31
31
|
require('./Api-DyimBzKT.js');
|
|
32
32
|
require('./parts-9jMf1erK.js');
|
|
33
33
|
require('./utils-DvUQQLmR.js');
|
|
@@ -9,7 +9,7 @@ require('./event-types-YOY5TKUN.js');
|
|
|
9
9
|
var header1 = require('./header-1-DRA3f4Jh.js');
|
|
10
10
|
var insuranceState = require('./insurance-state-d2thhXUX.js');
|
|
11
11
|
var header3 = require('./header-3-sOdOpfx3.js');
|
|
12
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
12
|
+
var checkPkgVersion = require('./check-pkg-version-DfzaKEDg.js');
|
|
13
13
|
require('./config-state-BBOZIS8x.js');
|
|
14
14
|
require('./dinero-BwNN_k7x.js');
|
|
15
15
|
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
@@ -23,7 +23,7 @@ var Api = require('./Api-DyimBzKT.js');
|
|
|
23
23
|
var index$1 = require('./index-D-dD-aC2.js');
|
|
24
24
|
var paymentMethodOptionUtils = require('./payment-method-option-utils-WYHIHy-l.js');
|
|
25
25
|
require('./index-B32W0A3m.js');
|
|
26
|
-
require('./package-
|
|
26
|
+
require('./package-CHNXn8wx.js');
|
|
27
27
|
require('./helpers-B5OCqlIM.js');
|
|
28
28
|
require('./state-options-CIT9xdTz.js');
|
|
29
29
|
|
|
@@ -32,7 +32,7 @@ const Summary = class {
|
|
|
32
32
|
index.registerInstance(this, hostRef);
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
35
|
+
return (index.h(styledHost.StyledHost, { key: '3161e6f6a196c79d684574cafbc90bcf741b2150' }, index.h("section", { key: '594b4485ed4fd9d7c1ee7f4556f071139f92ef0c' }, index.h("div", { key: '5c2d14677dda6fc7ddcb074d4887b839385dca3a' }, index.h("div", { key: 'fb850cd7e9c11741349710696dd4e6241c98e805', part: parts.text }, checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.paymentDescription), index.h("div", { key: '959014d7fa2a9c97bae0c986313a604930c1e0f3' }, index.h("span", { key: '14ab0932a083568419b1c36c95f9072c73962b11', part: parts.text }, "Total"), "\u00A0", index.h("span", { key: '08a9e00332253070ae984b77eb2a9bab88eb3472', part: parts.text }, utils.formatCurrency(+(checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.totalAmount))))))));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
|
|
@@ -48,7 +48,7 @@ const Header = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
const HeaderComponent = this.levels[this.level];
|
|
51
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
51
|
+
return (index.h(styledHost.StyledHost, { key: 'eb3651b698897193d34a6c6456cd57dd0bd0bc43' }, index.h(HeaderComponent, { key: '39caee687f93d3d4d90e62d9fbcae318eaa8022e', text: this.text, class: this.class })));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -165,6 +165,7 @@ const ModularCheckout = class {
|
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
connectedCallback() {
|
|
168
|
+
console.log("connectedCallback", checkout_store.checkoutStore.checkoutLoaded);
|
|
168
169
|
this.observer = new MutationObserver(() => {
|
|
169
170
|
this.queryFormRefs();
|
|
170
171
|
this.setupApplePayListeners(); // set up again listeners when DOM changes
|
|
@@ -468,7 +469,7 @@ const ModularCheckout = class {
|
|
|
468
469
|
});
|
|
469
470
|
}
|
|
470
471
|
render() {
|
|
471
|
-
return index.h(index.Host, { key: '
|
|
472
|
+
return index.h(index.Host, { key: '7ee5bc2bb0a8c1ed497440c7b1f90d1a2fb3c8bb' });
|
|
472
473
|
}
|
|
473
474
|
get hostEl() { return index.getElement(this); }
|
|
474
475
|
};
|
|
@@ -1404,7 +1405,7 @@ const TokenizePaymentMethod = class {
|
|
|
1404
1405
|
return paymentMethodId === Refund.PaymentMethodTypes.card ? (index.h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (index.h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
|
|
1405
1406
|
}
|
|
1406
1407
|
render() {
|
|
1407
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
1408
|
+
return (index.h(styledHost.StyledHost, { key: '27acb4552c8e2431792108448608c039baa705c6' }, index.h("form", { key: '914d43a641bbc484da9399d9d7b938215666862b' }, index.h("fieldset", { key: '4df90b4279eaa9c02268074c1d4c630c75e54f26' }, index.h("div", { key: 'b4b8895c7e5b9a3e615d357e2a6fdba5c245decb', class: "row gy-3" }, index.h("div", { key: '10ecdd6afffef324179fabcab340e4290c22f594', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), index.h("div", { key: '3327294952c67643c9c77178f801bbbba09fd511', class: "col-12" }, index.h("justifi-button", { key: '6de96d2c0065f676e696433f8ef6438527830437', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
1408
1409
|
}
|
|
1409
1410
|
get host() { return index.getElement(this); }
|
|
1410
1411
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C9hBD-32.js');
|
|
4
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
4
|
+
var checkPkgVersion = require('./check-pkg-version-DfzaKEDg.js');
|
|
5
5
|
require('./config-state-BBOZIS8x.js');
|
|
6
6
|
require('./dinero-BwNN_k7x.js');
|
|
7
7
|
require('./ComponentError-D4OLnOkg.js');
|
|
@@ -14,7 +14,7 @@ var parts = require('./parts-9jMf1erK.js');
|
|
|
14
14
|
var styledHost = require('./styled-host-BfVJlAsJ.js');
|
|
15
15
|
require('./event-types-YOY5TKUN.js');
|
|
16
16
|
var index$1 = require('./index-D-dD-aC2.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-CHNXn8wx.js');
|
|
18
18
|
require('./Api-DyimBzKT.js');
|
|
19
19
|
require('./utils-ChCUZgUy.js');
|
|
20
20
|
require('./index-B32W0A3m.js');
|