@justifi/webcomponents 6.1.0 → 6.1.1-rc.1
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/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-C7b-OLb5.js → check-pkg-version-iW3HGQFY.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +4 -4
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +9 -9
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +5 -79
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +6 -6
- 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-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-BHmdO9eK.js → package-CwcyK2nz.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +3 -3
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/services/apple-pay.service.js +3 -43
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +7 -6
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +7 -6
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +7 -6
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -6
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +2 -3
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +0 -34
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +2 -3
- package/dist/collection/ui-components/details/details.js +1 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
- package/dist/docs.json +22 -97
- package/dist/esm/bank-account-document-form-inputs_4.entry.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-xM0uWxbL.js → check-pkg-version-XGo_oqEC.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +1 -1
- package/dist/esm/form-alert_5.entry.js +4 -4
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-monetary-provisioning.entry.js +2 -2
- package/dist/esm/form-control-number-masked_2.entry.js +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
- package/dist/esm/justifi-apple-pay_8.entry.js +5 -79
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +6 -6
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +4 -4
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/justifi-owner-form_3.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-DL-q4EcN.js → package-YyotqiSL.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +3 -3
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/apple-pay.js +3 -77
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-bank-account-form-step.js +1 -1
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-representative.js +2 -2
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/details.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-monetary-provisioning2.js +2 -2
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-radio-list-item2.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/owner-form-core2.js +1 -1
- package/dist/module/owner-form-inputs2.js +2 -2
- package/dist/module/owner-form.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/payment-provisioning-core.js +1 -1
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
- package/dist/types/components.d.ts +8 -10
- package/dist/webcomponents/p-02fdd7f5.entry.js +1 -0
- package/dist/webcomponents/{p-cff5dd60.entry.js → p-13df20c1.entry.js} +1 -1
- package/dist/webcomponents/{p-c089fb5f.entry.js → p-28625e07.entry.js} +1 -1
- package/dist/webcomponents/{p-85a2eac6.entry.js → p-3dd950bf.entry.js} +1 -1
- package/dist/webcomponents/{p-baf0d3e7.entry.js → p-447b55c0.entry.js} +1 -1
- package/dist/webcomponents/{p-b612d870.entry.js → p-4bf52215.entry.js} +1 -1
- package/dist/webcomponents/{p-8f8dfd4b.entry.js → p-63ad8ebd.entry.js} +1 -1
- package/dist/webcomponents/{p-720a2324.entry.js → p-63fb5e82.entry.js} +1 -1
- package/dist/webcomponents/p-6472b6db.entry.js +1 -0
- package/dist/webcomponents/{p-8cebc84b.entry.js → p-6e9cd0dd.entry.js} +1 -1
- package/dist/webcomponents/{p-e55a161f.entry.js → p-6f27030e.entry.js} +1 -1
- package/dist/webcomponents/p-705dba52.entry.js +1 -0
- package/dist/webcomponents/{p-be05d450.entry.js → p-7680c57b.entry.js} +1 -1
- package/dist/webcomponents/{p-a5c70eee.entry.js → p-7686ef15.entry.js} +1 -1
- package/dist/webcomponents/{p-d7f91c48.entry.js → p-773d6dd3.entry.js} +1 -1
- package/dist/webcomponents/p-7b55e1c1.entry.js +1 -0
- package/dist/webcomponents/{p-89f6ad8f.entry.js → p-7b5ad3a7.entry.js} +1 -1
- package/dist/webcomponents/p-80b2cdec.entry.js +1 -0
- package/dist/webcomponents/{p-f11a74c3.entry.js → p-9ed7b13f.entry.js} +1 -1
- package/dist/webcomponents/{p-D5Jb9OcR.js → p-CdEseavG.js} +1 -1
- package/dist/webcomponents/p-YyotqiSL.js +1 -0
- package/dist/webcomponents/p-a09695c4.entry.js +1 -0
- package/dist/webcomponents/{p-66db858a.entry.js → p-adc1d0be.entry.js} +1 -1
- package/dist/webcomponents/{p-0f47f052.entry.js → p-aeb22aa2.entry.js} +1 -1
- package/dist/webcomponents/p-b149a2fc.entry.js +1 -0
- package/dist/webcomponents/p-b4aa9298.entry.js +1 -0
- package/dist/webcomponents/p-bc099dd0.entry.js +1 -0
- package/dist/webcomponents/{p-2b568e8e.entry.js → p-c12d0453.entry.js} +1 -1
- package/dist/webcomponents/p-c2569b4c.entry.js +1 -0
- package/dist/webcomponents/p-c644a9f1.entry.js +1 -0
- package/dist/webcomponents/p-cb782215.entry.js +1 -0
- package/dist/webcomponents/{p-ae7054bf.entry.js → p-d5452069.entry.js} +1 -1
- package/dist/webcomponents/{p-28a3bf32.entry.js → p-d88d7418.entry.js} +1 -1
- package/dist/webcomponents/{p-0256af65.entry.js → p-de95bf57.entry.js} +1 -1
- package/dist/webcomponents/{p-b36adce3.entry.js → p-e365b251.entry.js} +1 -1
- package/dist/webcomponents/{p-30856338.entry.js → p-e6fe9b7d.entry.js} +1 -1
- package/dist/webcomponents/{p-f930acaa.entry.js → p-e9f6a621.entry.js} +1 -1
- package/dist/webcomponents/p-edfeb034.entry.js +1 -0
- package/dist/webcomponents/{p-fe8c2243.entry.js → p-f378af59.entry.js} +1 -1
- package/dist/webcomponents/{p-aa14cc74.entry.js → p-fbc5fc6d.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +13 -13
- package/LICENSE +0 -21
- package/dist/webcomponents/p-5235230f.entry.js +0 -1
- package/dist/webcomponents/p-5b5d7a8f.entry.js +0 -1
- package/dist/webcomponents/p-7c8deca8.entry.js +0 -1
- package/dist/webcomponents/p-7dc9ef8a.entry.js +0 -1
- package/dist/webcomponents/p-84551ee4.entry.js +0 -1
- package/dist/webcomponents/p-854b3db0.entry.js +0 -1
- package/dist/webcomponents/p-8663e8bd.entry.js +0 -1
- package/dist/webcomponents/p-94237472.entry.js +0 -1
- package/dist/webcomponents/p-DL-q4EcN.js +0 -1
- package/dist/webcomponents/p-b095c781.entry.js +0 -1
- package/dist/webcomponents/p-ce652ff9.entry.js +0 -1
- package/dist/webcomponents/p-d37d752e.entry.js +0 -1
- package/dist/webcomponents/p-d84f0122.entry.js +0 -1
- package/dist/webcomponents/p-fedfe376.entry.js +0 -1
|
@@ -9,7 +9,7 @@ import { f as formatCurrency } from './utils-BOijEGPV.js';
|
|
|
9
9
|
import { H as Header1 } from './header-1-C1Hnxki8.js';
|
|
10
10
|
import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-CVme82j7.js';
|
|
11
11
|
import { H as Header3 } from './header-3-Bq8fpjm-.js';
|
|
12
|
-
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-
|
|
12
|
+
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-XGo_oqEC.js';
|
|
13
13
|
import './config-state-DiHV-4QK.js';
|
|
14
14
|
import './dinero-HXpYMWUU.js';
|
|
15
15
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
|
|
@@ -22,7 +22,7 @@ import { C as CheckoutService } from './checkout.service-fwbqSq8g.js';
|
|
|
22
22
|
import { P as PAYMENT_METHODS, a as PaymentMethod, b as PAYMENT_MODE } from './index-DCIW8z1f.js';
|
|
23
23
|
import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
|
|
24
24
|
import './index-DJ9G-4S-.js';
|
|
25
|
-
import './package-
|
|
25
|
+
import './package-YyotqiSL.js';
|
|
26
26
|
import './helpers-Mu7LQT-w.js';
|
|
27
27
|
import './state-options-BX8GieXu.js';
|
|
28
28
|
|
|
@@ -181,7 +181,8 @@ class ApplePayService {
|
|
|
181
181
|
'Sub-Account': accountId,
|
|
182
182
|
},
|
|
183
183
|
body: {
|
|
184
|
-
domain: window.location.host
|
|
184
|
+
domain: window.location.host,
|
|
185
|
+
display_name: this.applePayConfig.displayName
|
|
185
186
|
}
|
|
186
187
|
});
|
|
187
188
|
return response;
|
|
@@ -228,22 +229,15 @@ class ApplePayService {
|
|
|
228
229
|
* Start Apple Pay session
|
|
229
230
|
*/
|
|
230
231
|
async startPaymentSession(paymentRequest, authToken, accountId) {
|
|
231
|
-
// Begin
|
|
232
|
-
console.groupCollapsed('[ApplePayService] startPaymentSession called');
|
|
233
|
-
console.log('[ApplePayService] raw paymentRequest:', JSON.stringify(paymentRequest, null, 2));
|
|
234
|
-
console.log('[ApplePayService] has authToken:', Boolean(authToken));
|
|
235
|
-
console.log('[ApplePayService] accountId:', accountId);
|
|
236
|
-
console.log('[ApplePayService] has config:', Boolean(this.applePayConfig));
|
|
232
|
+
// Begin session
|
|
237
233
|
if (!this.applePayConfig) {
|
|
238
234
|
console.error('[ApplePayService] Missing applePayConfig. Did you call initialize()?');
|
|
239
|
-
console.groupEnd();
|
|
240
235
|
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
241
236
|
}
|
|
242
237
|
// if (!this.isAvailable()) {
|
|
243
238
|
// throw new Error('Apple Pay is not available on this device/browser');
|
|
244
239
|
// }
|
|
245
240
|
const request = new ApplePayPaymentRequest(paymentRequest);
|
|
246
|
-
console.log('[ApplePayService] created ApplePayPaymentRequest:', request);
|
|
247
241
|
if (!request.isValid) {
|
|
248
242
|
const missingFields = [];
|
|
249
243
|
if (!request.countryCode)
|
|
@@ -258,17 +252,14 @@ class ApplePayService {
|
|
|
258
252
|
if (!request.total || !request.total.label || !request.total.amount)
|
|
259
253
|
missingFields.push('total');
|
|
260
254
|
console.error('[ApplePayService] Payment request is invalid. Missing/invalid:', missingFields);
|
|
261
|
-
console.groupEnd();
|
|
262
255
|
throw new Error('Invalid payment request provided');
|
|
263
256
|
}
|
|
264
257
|
this.currentPaymentRequest = request;
|
|
265
258
|
return new Promise((resolve, reject) => {
|
|
266
259
|
try {
|
|
267
|
-
console.log('[ApplePayService] About to instantiate ApplePaySession');
|
|
268
260
|
// Defensive checks for Apple Pay environment
|
|
269
261
|
if (typeof window === 'undefined' || !('ApplePaySession' in window)) {
|
|
270
262
|
console.error('[ApplePayService] ApplePaySession not available on window');
|
|
271
|
-
console.groupEnd();
|
|
272
263
|
return reject({
|
|
273
264
|
success: false,
|
|
274
265
|
error: {
|
|
@@ -278,16 +269,11 @@ class ApplePayService {
|
|
|
278
269
|
});
|
|
279
270
|
}
|
|
280
271
|
this.currentSession = new window.ApplePaySession(3, request);
|
|
281
|
-
console.log('[ApplePayService] ApplePaySession instantiated:', this.currentSession);
|
|
282
272
|
this.setupSessionEventHandlers(resolve, reject, authToken, accountId);
|
|
283
|
-
console.log('[ApplePayService] Event handlers set. Beginning session...');
|
|
284
273
|
this.currentSession.begin();
|
|
285
|
-
console.log('[ApplePayService] Session.begin() called');
|
|
286
|
-
console.groupEnd();
|
|
287
274
|
}
|
|
288
275
|
catch (error) {
|
|
289
276
|
console.error('[ApplePayService] Exception while starting session:', error);
|
|
290
|
-
console.groupEnd();
|
|
291
277
|
reject({
|
|
292
278
|
success: false,
|
|
293
279
|
error: {
|
|
@@ -325,18 +311,14 @@ class ApplePayService {
|
|
|
325
311
|
return;
|
|
326
312
|
}
|
|
327
313
|
this.currentSession.onvalidatemerchant = async () => {
|
|
328
|
-
console.groupCollapsed('[ApplePayService] onvalidatemerchant');
|
|
329
314
|
try {
|
|
330
|
-
console.log('[ApplePayService] accountId:', accountId);
|
|
331
315
|
if (!authToken) {
|
|
332
316
|
console.error('[ApplePayService] Missing authToken for merchant validation');
|
|
333
317
|
throw new Error('Authentication token not provided.');
|
|
334
318
|
}
|
|
335
319
|
const merchantSession = await this.validateMerchant(authToken, accountId);
|
|
336
|
-
console.log('[ApplePayService] merchantSession received');
|
|
337
320
|
try {
|
|
338
321
|
this.currentSession.completeMerchantValidation(merchantSession);
|
|
339
|
-
console.log('[ApplePayService] completeMerchantValidation called');
|
|
340
322
|
}
|
|
341
323
|
catch (completionError) {
|
|
342
324
|
console.error('Error calling completeMerchantValidation:', completionError);
|
|
@@ -360,30 +342,20 @@ class ApplePayService {
|
|
|
360
342
|
},
|
|
361
343
|
});
|
|
362
344
|
}
|
|
363
|
-
console.groupEnd();
|
|
364
345
|
};
|
|
365
346
|
this.currentSession.onpaymentauthorized = async (event) => {
|
|
366
|
-
var _a;
|
|
367
|
-
console.groupCollapsed('[ApplePayService] onpaymentauthorized');
|
|
368
347
|
try {
|
|
369
348
|
const payment = event.payment;
|
|
370
|
-
console.log('[ApplePayService] payment payload snapshot:', {
|
|
371
|
-
hasToken: Boolean(payment === null || payment === void 0 ? void 0 : payment.token),
|
|
372
|
-
tokenType: ((_a = payment === null || payment === void 0 ? void 0 : payment.token) === null || _a === void 0 ? void 0 : _a.paymentData) ? 'paymentData' : 'raw',
|
|
373
|
-
});
|
|
374
349
|
const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
|
|
375
350
|
name: this.currentPaymentRequest.total.label,
|
|
376
351
|
price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
|
|
377
352
|
description: this.currentPaymentRequest.total.label,
|
|
378
353
|
} });
|
|
379
|
-
console.log('[ApplePayService] paymentPayload prepared');
|
|
380
354
|
const paymentResult = await this.processPayment(authToken, accountId, paymentPayload);
|
|
381
|
-
console.log('[ApplePayService] processPayment result:', paymentResult);
|
|
382
355
|
if (paymentResult.success) {
|
|
383
356
|
this.currentSession.completePayment({
|
|
384
357
|
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
385
358
|
});
|
|
386
|
-
console.log('[ApplePayService] Payment success; resolving');
|
|
387
359
|
resolve({
|
|
388
360
|
success: true,
|
|
389
361
|
token: payment.token,
|
|
@@ -424,40 +396,31 @@ class ApplePayService {
|
|
|
424
396
|
});
|
|
425
397
|
}
|
|
426
398
|
finally {
|
|
427
|
-
console.log('[ApplePayService] Cleaning up session state');
|
|
428
399
|
this.currentSession = undefined;
|
|
429
400
|
this.currentPaymentRequest = undefined;
|
|
430
401
|
}
|
|
431
|
-
console.groupEnd();
|
|
432
402
|
};
|
|
433
403
|
this.currentSession.onpaymentmethodselected = () => {
|
|
434
|
-
console.groupCollapsed('[ApplePayService] onpaymentmethodselected');
|
|
435
404
|
const paymentUpdate = {
|
|
436
405
|
newTotal: this.currentPaymentRequest.total,
|
|
437
406
|
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
438
407
|
};
|
|
439
408
|
try {
|
|
440
409
|
this.currentSession.completePaymentMethodSelection(paymentUpdate);
|
|
441
|
-
console.log('[ApplePayService] completePaymentMethodSelection called');
|
|
442
410
|
}
|
|
443
411
|
catch (error) {
|
|
444
412
|
console.error('Error completing payment method selection:', error);
|
|
445
413
|
this.currentSession.abort();
|
|
446
414
|
}
|
|
447
|
-
console.groupEnd();
|
|
448
415
|
};
|
|
449
416
|
this.currentSession.onshippingmethodselected = () => {
|
|
450
|
-
console.groupCollapsed('[ApplePayService] onshippingmethodselected');
|
|
451
417
|
this.currentSession.completeShippingMethodSelection({
|
|
452
418
|
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
453
419
|
newTotal: this.currentPaymentRequest.total,
|
|
454
420
|
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
455
421
|
});
|
|
456
|
-
console.log('[ApplePayService] completeShippingMethodSelection called');
|
|
457
|
-
console.groupEnd();
|
|
458
422
|
};
|
|
459
423
|
this.currentSession.oncancel = (event) => {
|
|
460
|
-
console.groupCollapsed('[ApplePayService] oncancel');
|
|
461
424
|
if (event.sessionError) {
|
|
462
425
|
console.error(event.sessionError);
|
|
463
426
|
switch (event.sessionError.code) {
|
|
@@ -488,11 +451,9 @@ class ApplePayService {
|
|
|
488
451
|
message: 'User cancelled the Apple Pay session',
|
|
489
452
|
},
|
|
490
453
|
});
|
|
491
|
-
console.groupEnd();
|
|
492
454
|
};
|
|
493
455
|
if ('onerror' in this.currentSession) {
|
|
494
456
|
this.currentSession.onerror = (error) => {
|
|
495
|
-
console.groupCollapsed('[ApplePayService] onerror');
|
|
496
457
|
console.error('=== APPLE PAY SESSION ERROR ===');
|
|
497
458
|
console.error('Session error:', error);
|
|
498
459
|
this.currentSession = undefined;
|
|
@@ -504,7 +465,6 @@ class ApplePayService {
|
|
|
504
465
|
message: 'Apple Pay session error occurred',
|
|
505
466
|
},
|
|
506
467
|
});
|
|
507
|
-
console.groupEnd();
|
|
508
468
|
};
|
|
509
469
|
}
|
|
510
470
|
}
|
|
@@ -711,14 +671,6 @@ const ApplePay = class {
|
|
|
711
671
|
this.isProcessing = true;
|
|
712
672
|
this.error = null;
|
|
713
673
|
this.applePayStarted.emit();
|
|
714
|
-
console.groupCollapsed('[ApplePay Component] handleApplePayClick');
|
|
715
|
-
console.log('[ApplePay Component] click context:', {
|
|
716
|
-
isProcessing: this.isProcessing,
|
|
717
|
-
disabled: this.disabled,
|
|
718
|
-
isAvailable: this.isAvailable,
|
|
719
|
-
canMakePayments: this.canMakePayments,
|
|
720
|
-
hasService: Boolean(this.applePayService),
|
|
721
|
-
});
|
|
722
674
|
const paymentRequest = {
|
|
723
675
|
countryCode: this.countryCode,
|
|
724
676
|
currencyCode: checkoutStore.paymentCurrency,
|
|
@@ -730,13 +682,7 @@ const ApplePay = class {
|
|
|
730
682
|
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
731
683
|
total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
|
|
732
684
|
};
|
|
733
|
-
console.log("[ApplePay Component] paymentRequest", paymentRequest);
|
|
734
|
-
console.log('[ApplePay Component] identifiers snapshot:', {
|
|
735
|
-
authTokenLength: checkoutStore.authToken ? String(checkoutStore.authToken).length : 0,
|
|
736
|
-
accountId: checkoutStore.accountId,
|
|
737
|
-
});
|
|
738
685
|
const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
|
|
739
|
-
console.log("[ApplePay Component] startPaymentSession result", result);
|
|
740
686
|
if (result.success) {
|
|
741
687
|
this.applePayCompleted.emit({
|
|
742
688
|
success: true,
|
|
@@ -766,7 +712,6 @@ const ApplePay = class {
|
|
|
766
712
|
}
|
|
767
713
|
finally {
|
|
768
714
|
this.isProcessing = false;
|
|
769
|
-
console.groupEnd();
|
|
770
715
|
}
|
|
771
716
|
};
|
|
772
717
|
}
|
|
@@ -775,13 +720,6 @@ const ApplePay = class {
|
|
|
775
720
|
this.isLoading = true;
|
|
776
721
|
this.error = null;
|
|
777
722
|
this.isConfigValid = true;
|
|
778
|
-
console.groupCollapsed('[ApplePay Component] initializeApplePay');
|
|
779
|
-
console.log('[ApplePay Component] checkout state snapshot:', {
|
|
780
|
-
paymentAmount: checkoutStore.paymentAmount,
|
|
781
|
-
paymentCurrency: checkoutStore.paymentCurrency,
|
|
782
|
-
hasAuthToken: Boolean(checkoutStore.authToken),
|
|
783
|
-
accountId: checkoutStore.accountId,
|
|
784
|
-
});
|
|
785
723
|
const hasRequiredConfig = Boolean(checkoutStore.paymentAmount) &&
|
|
786
724
|
Boolean(checkoutStore.paymentCurrency) &&
|
|
787
725
|
Boolean(checkoutStore.authToken);
|
|
@@ -796,22 +734,15 @@ const ApplePay = class {
|
|
|
796
734
|
});
|
|
797
735
|
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.CONFIG_ERROR });
|
|
798
736
|
this.isLoading = false;
|
|
799
|
-
console.groupEnd();
|
|
800
737
|
return;
|
|
801
738
|
}
|
|
802
739
|
this.isAvailable = ApplePayHelpers.isApplePaySupported();
|
|
803
740
|
this.canMakePayments = ApplePayHelpers.canMakePayments();
|
|
804
|
-
console.log('[ApplePay Component] support check:', {
|
|
805
|
-
isAvailable: this.isAvailable,
|
|
806
|
-
canMakePayments: this.canMakePayments,
|
|
807
|
-
hasApplePaySessionOnWindow: typeof window !== 'undefined' && 'ApplePaySession' in window,
|
|
808
|
-
});
|
|
809
741
|
if (!this.isAvailable) {
|
|
810
742
|
this.error = "Apple Pay is not supported on this device";
|
|
811
743
|
console.error(this.error);
|
|
812
744
|
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_SUPPORTED });
|
|
813
745
|
this.isLoading = false;
|
|
814
|
-
console.groupEnd();
|
|
815
746
|
return;
|
|
816
747
|
}
|
|
817
748
|
if (!this.canMakePayments) {
|
|
@@ -819,7 +750,6 @@ const ApplePay = class {
|
|
|
819
750
|
console.error(this.error);
|
|
820
751
|
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_AVAILABLE });
|
|
821
752
|
this.isLoading = false;
|
|
822
|
-
console.groupEnd();
|
|
823
753
|
return;
|
|
824
754
|
}
|
|
825
755
|
const applePayConfig = {
|
|
@@ -830,7 +760,6 @@ const ApplePay = class {
|
|
|
830
760
|
buttonType: this.buttonType,
|
|
831
761
|
buttonStyle: this.buttonStyle,
|
|
832
762
|
};
|
|
833
|
-
console.log('[ApplePay Component] initializing service with config:', applePayConfig);
|
|
834
763
|
this.applePayService = new ApplePayService();
|
|
835
764
|
this.applePayService.initialize(applePayConfig);
|
|
836
765
|
const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
|
|
@@ -848,7 +777,6 @@ const ApplePay = class {
|
|
|
848
777
|
}
|
|
849
778
|
finally {
|
|
850
779
|
this.isLoading = false;
|
|
851
|
-
console.groupEnd();
|
|
852
780
|
}
|
|
853
781
|
}
|
|
854
782
|
async isSupported() {
|
|
@@ -868,7 +796,6 @@ const ApplePay = class {
|
|
|
868
796
|
render() {
|
|
869
797
|
if (!checkoutStore.applePayEnabled) {
|
|
870
798
|
// Render nothing when Apple Pay is disabled at the checkout settings level
|
|
871
|
-
console.log('[ApplePay Component] Apple Pay disabled in checkout settings; not rendering');
|
|
872
799
|
return null;
|
|
873
800
|
}
|
|
874
801
|
const isReady = !this.isLoading &&
|
|
@@ -876,7 +803,6 @@ const ApplePay = class {
|
|
|
876
803
|
this.canMakePayments &&
|
|
877
804
|
this.isConfigValid;
|
|
878
805
|
return (h(StyledHost, null, checkoutStore.checkoutLoaded && (h("script", { async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
|
|
879
|
-
console.log('[ApplePay Component] Apple Pay SDK script loaded');
|
|
880
806
|
this.initializeApplePay();
|
|
881
807
|
} })), 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, `
|
|
882
808
|
.apple-pay-container {
|
|
@@ -5,7 +5,7 @@ import { r as radioListItem, aw as billingForm } from './parts-xDbRW9xn.js';
|
|
|
5
5
|
import { S as StyledHost } from './styled-host-OalOsPBp.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { S as Skeleton } from './skeleton-B8EUwt4b.js';
|
|
8
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
8
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-XGo_oqEC.js';
|
|
9
9
|
import { w as waitForConfig, c as configState } from './config-state-DiHV-4QK.js';
|
|
10
10
|
import { P as PAYMENT_METHODS } from './index-DCIW8z1f.js';
|
|
11
11
|
import { H as Header3 } from './header-3-Bq8fpjm-.js';
|
|
@@ -17,7 +17,7 @@ import './_commonjsHelpers-BFTU3MAI.js';
|
|
|
17
17
|
import './business-form-options-CgssATyg.js';
|
|
18
18
|
import './Business-BCoP0TAV.js';
|
|
19
19
|
import './helpers-Mu7LQT-w.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-YyotqiSL.js';
|
|
21
21
|
import './Api-DhiA2e_P.js';
|
|
22
22
|
import './utils-BOijEGPV.js';
|
|
23
23
|
import './dinero-HXpYMWUU.js';
|
|
@@ -38,7 +38,7 @@ const JustifiRadioListItem = class {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(StyledHost, { key: '
|
|
41
|
+
return (h(StyledHost, { key: 'b0501b66bcfdd697d88c01835b8f97fb2c0861ab' }, h("div", { key: 'ada4dda7868086b1ea4cadd6c8824f87d3cb2301', class: `radio-list-item p-3 ${this.class || ''}`, part: radioListItem, onClick: this.handleClick, hidden: this.hidden }, h("form-control-radio", { key: '72c6d07dd2a664ca6bd2be9b446584d7344bc2b0', name: this.name, value: this.value, checked: this.checked, label: this.label, inputHandler: () => null }))));
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -97,7 +97,7 @@ const BankAccountBillingFormSimple = class {
|
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
99
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
100
|
-
return (h(StyledHost, { key: '
|
|
100
|
+
return (h(StyledHost, { key: '2429d26c0338ec1732337718ca4e7693f30a0f8a' }, h("div", { key: '774911ce7d594bc1f44c15060136356acc349cbb', part: billingForm, class: "mt-4" }, h("form", { key: '5c93f5a6af372fdf24a20870ef6ae69f554efec4' }, h("fieldset", { key: '38ac8adb2592b7799825d63c4a8e9bde61510cd0' }, this.legend && (h("legend", { key: 'abbce27bb8ae2ef564b8aeef755050fc096cb81f' }, this.legend)), h("div", { key: '5a0350fe7f635600d746f1f3979757a045cc09f0', class: "row gy-3" }, h("div", { key: '71aac995514b7fea7254204df825eb8b381e21c7', class: "col-12" }, h("form-control-text", { key: 'f33d26eddfc9f3d307e05a48afec9472213b2822', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler }))))))));
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
|
|
@@ -264,7 +264,7 @@ const CardBillingFormSimple = class {
|
|
|
264
264
|
}
|
|
265
265
|
render() {
|
|
266
266
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
267
|
-
return (h(StyledHost, { key: '
|
|
267
|
+
return (h(StyledHost, { key: '2523873a34180694357ab780bd4b9768f9ea267d' }, h("div", { key: '30204a976bba8a843830a905cec86d5aaf486f30', part: billingForm }, h("form", { key: '479e65b39fbecc80ba6281648bd390c4cd2a688e' }, h("fieldset", { key: '93613aa83561aaba46efff4e6d64e240e1ddbc84' }, this.legend && (h("legend", { key: '4d6da7c78c5b1a84bc4b37dfca80d9c7f0be462f' }, this.legend)), h("div", { key: '11259470415c62c15c0ef9217f91f4d6b5c8651b', class: "row gy-3" }, h("div", { key: '2b85b5b820991faee8d8b14c121a69ab4974da98', class: "col-12" }, h("form-control-text", { key: 'd7632e0d32832491bfdf911ae45e67efe0ec6555', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
|
|
@@ -337,7 +337,7 @@ const SaveNewPaymentMethod = class {
|
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
render() {
|
|
340
|
-
return (h(StyledHost, { key: '
|
|
340
|
+
return (h(StyledHost, { key: '9aa9ce812c0cb2fdc809c47060ed150903ad7cd5' }, h("form-control-checkbox", { key: '596bc9a145e363c751c8610f4b9f23ad31dab299', label: this.label || 'Save New Payment Method', name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange })));
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
343
|
|
|
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-DRwofES0.js';
|
|
|
3
3
|
import { B as BusinessService } from './business.service-D55OVyco.js';
|
|
4
4
|
import { m as makeGetBusiness } from './get-business-Crb6P-iI.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-XGo_oqEC.js';
|
|
7
7
|
import './parts-xDbRW9xn.js';
|
|
8
8
|
import './Api-DhiA2e_P.js';
|
|
9
9
|
import './config-state-DiHV-4QK.js';
|
|
@@ -17,7 +17,7 @@ import './Business-BCoP0TAV.js';
|
|
|
17
17
|
import './helpers-Mu7LQT-w.js';
|
|
18
18
|
import './state-options-BX8GieXu.js';
|
|
19
19
|
import './utils-BeQLScSm.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-YyotqiSL.js';
|
|
21
21
|
|
|
22
22
|
const BusinessDetails = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -9,7 +9,7 @@ import './Refund-B-iOTRxz.js';
|
|
|
9
9
|
import './Pagination-CLHwhyvu.js';
|
|
10
10
|
import { B as Business, b as BusinessFormServerErrors } from './Business-BCoP0TAV.js';
|
|
11
11
|
import './Dispute-BH0Xfn-F.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-XGo_oqEC.js';
|
|
13
13
|
import { B as Button } from './button-DtTaQHMK.js';
|
|
14
14
|
import { S as StyledHost } from './styled-host-OalOsPBp.js';
|
|
15
15
|
import { H as Header1 } from './header-1-C1Hnxki8.js';
|
|
@@ -25,7 +25,7 @@ import './business-form-options-CgssATyg.js';
|
|
|
25
25
|
import './index-DJ9G-4S-.js';
|
|
26
26
|
import './utils-BOijEGPV.js';
|
|
27
27
|
import './helpers-Mu7LQT-w.js';
|
|
28
|
-
import './package-
|
|
28
|
+
import './package-YyotqiSL.js';
|
|
29
29
|
import './Api-DhiA2e_P.js';
|
|
30
30
|
import './parts-xDbRW9xn.js';
|
|
31
31
|
import './utils-BeQLScSm.js';
|
|
@@ -17,7 +17,7 @@ const RepresentativeFormInputs = class {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
20
|
-
return (h("form", { key: '
|
|
20
|
+
return (h("form", { key: 'a2c558b8a6b66d7257fa86ef5f9c1d56a7a273db' }, h("fieldset", { key: '23cb7f2debd4692c39cfe2311ce0d2549ca94ebc' }, h("div", { key: '0c6e94b6a9da6924673f5ebeed93f237ff22a013', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'a165d7dc17dddde2d6ce35af9d836a989f02ffaf', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: '5c2c29ae9ea82acc6c923c870f4ece5db5e7afb9', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: 'bc481e820461c6ec2088f2879cb9a5837ed02884', class: "mt-2" }), h("div", { key: 'ff4b0731213ddc42ebabb79d49984b83d376f742', class: "row gy-3" }, h("div", { key: '99cac91d3657bce68ce97028342d49cb8a2bb314', class: "col-12 col-md-8" }, h("form-control-text", { key: '534e81b075f732ae3953d8f904199d61a43de4bb', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '6070fdff99a868b50deb59c9d006d3c4775a50bd', class: "col-12 col-md-4" }, h("form-control-text", { key: 'c92477cc30c5a9c7d99842dff2855edce67185f9', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '14d953417a1ec0292d75251b37b580361def0fb3', class: "col-12 col-md-6" }, h("form-control-text", { key: '42562735066b104619b8aa4da966aaec462f177b', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'cb7f6173a31fac67edf74844f0807ea94446c59b', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '42b0833d545243c11f515d320aac5408bb744e89', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'a9468f20a7d832ae44d771c3b8913c32cf0ef2ab', class: "col-12 col-md-4" }, h("form-control-date", { key: '1f739c1d3bb814710ee159740e459bde72a0e790', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'e2ecd87320422e1712138115291016f8c1c61ac2', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: 'dd91ffa7877d84cfe315849d18c7cec5bf79b1de', name: "identification_number", label: "SSN", defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: 'ef502c55424287c5c81ca88593f5836d21a2f945', class: "col-12" }, h("justifi-identity-address-form", { key: '26295cbccf0ca23415b4d7c12dc42eb2dbb0d229', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-DOjVAAtq.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-XGo_oqEC.js';
|
|
3
3
|
import { c as checkoutStore } from './checkout.store-4nUf2OuT.js';
|
|
4
4
|
import { d as checkoutSummary } from './parts-xDbRW9xn.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-OalOsPBp.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { P as PAYMENT_METHODS } from './index-DCIW8z1f.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-YyotqiSL.js';
|
|
9
9
|
import './Api-DhiA2e_P.js';
|
|
10
10
|
import './config-state-DiHV-4QK.js';
|
|
11
11
|
import './index-DJ9G-4S-.js';
|
|
@@ -93,9 +93,9 @@ const Checkout = class {
|
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
95
|
var _a, _b;
|
|
96
|
-
return (h(StyledHost, { key: '
|
|
96
|
+
return (h(StyledHost, { key: '468b97261a110d5779ac742de45248aadfbeeb6c' }, h("justifi-modular-checkout", { key: '7ce8d2e147f0b91ad93996f7e044a3fe2a9bd604', ref: (el) => {
|
|
97
97
|
this.modularCheckoutRef = el;
|
|
98
|
-
}, authToken: this.authToken, checkoutId: this.checkoutId }, h("div", { key: '
|
|
98
|
+
}, authToken: this.authToken, checkoutId: this.checkoutId }, h("div", { key: '7ace65df988d338d0cc810a532f8914a046e7268', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '3c6223ef06c7a2b42bef97dd67f5f09f21bb248b', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: '622b2ef667ab222a3152134573e7191bf2fa6117', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '036b447e7e92b1c6bfe33aff5d07a35bc2d9a915' }, h("justifi-checkout-summary", { key: '292c0b09960046e78b902652e5b0902129715ef5' }))), h("div", { key: '5d27c5a5d3f026ad9f9da37833f8ecf808a89de9', class: "col-12 mt-4" }, h("slot", { key: '1a583d890039b1c3a4493a0687ac5a9caa21d2b3', name: "insurance" })), h("div", { key: '0d7427acc37518888fceef97431f594fb4ea2359', class: "col-12 mt-4" }, h("justifi-header", { key: '5543bc55d4be2de9064b4c4924ecd7d2f32da7d9', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '80a17876009d3c6e39017432053e3ab18b6d406e', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: 'eac0e3466d8cf74df53acd1252d11d0461d0a263', class: "d-flex flex-column" }, h("section", { key: '1e27c56d333a44760d552549a716b39b1bcc538f' }, h("div", { key: '65680e1ed1a3eccc84ec67797f468edafcb65a80' }, h("justifi-saved-payment-methods", { key: '800e1e6312f8a38856341b5bc78c93a9fc18434e' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: '0e5d9164a0066b88e7b9467bbb25167262614087', class: "mb-3" }, h("justifi-apple-pay", { key: '81717e6193aa402eef18cf006b74798d02811a8d' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && (h("justifi-radio-list-item", { key: '6405f56f8ee450d410801056c362580a6457325f', 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: 'd2b920050db52162f5f1fee2ee46884f50f511e8', 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: 'c160cd5403029ce3e1cac142cf1e782c104e97f2', 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: '6e03db84ccbfab811c72e4df5ffaf23c8822539b', class: "mt-4" }, h("justifi-button", { key: '93bb084fdcce73aebed63ad887ced32c4d47ef7f', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: this.isSubmitting, isLoading: this.isSubmitting, customStyle: { width: '100%', textAlign: "center" } }))))));
|
|
99
99
|
}
|
|
100
100
|
static get watchers() { return {
|
|
101
101
|
"authToken": ["propChanged"],
|
|
@@ -51,7 +51,7 @@ const CheckoutsListFilters = class {
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
54
|
-
return (h(StyledHost, { key: '
|
|
54
|
+
return (h(StyledHost, { key: 'e68f5bd4687eaad5aae4890d81baec603f72b6de' }, h("table-filters-menu", { key: 'c09285765839dbfad618bc13f39883e3f11ae991', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: '96e32ecba5c64ccda108ceb583a82b1554b347a8', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '7ce51a9f065004c169b577bcdd33af8ad7b01ac2', class: "p-2" }, h("form-control-select", { key: 'b6dfda04a58f51b989b1dc655df00500071fea98', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status || '', disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '4feb8c837611e6d0ec9cad6cb7a9f032db8cbbf5', class: "p-2" }, h("form-control-select", { key: '5a2a6c0e21cb62ee792bce703ccdfc9e08a46cc0', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode || '', disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -7,7 +7,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
7
7
|
import './Business-BCoP0TAV.js';
|
|
8
8
|
import './Dispute-BH0Xfn-F.js';
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-XGo_oqEC.js';
|
|
11
11
|
import { C as CheckoutService } from './checkout.service-fwbqSq8g.js';
|
|
12
12
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-BsJSlShO.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host-OalOsPBp.js';
|
|
@@ -17,7 +17,7 @@ import './index-DJ9G-4S-.js';
|
|
|
17
17
|
import './utils-BOijEGPV.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-YyotqiSL.js';
|
|
21
21
|
import './Api-DhiA2e_P.js';
|
|
22
22
|
import './badge-CtdO-tEY.js';
|
|
23
23
|
import './parts-xDbRW9xn.js';
|
|
@@ -106,7 +106,7 @@ const CheckoutsList = class {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
|
-
return (h(StyledHost, { key: '
|
|
109
|
+
return (h(StyledHost, { key: 'b7e794982435af9a755c272767c017c57fa16b24' }, h("checkouts-list-core", { key: 'a8de52b59cbccd7cd97369663c074011b49b9499', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
110
110
|
}
|
|
111
111
|
static get watchers() { return {
|
|
112
112
|
"accountId": ["propChanged"],
|
|
@@ -7,7 +7,7 @@ const Details = class {
|
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h("div", { key: '
|
|
10
|
+
return (h("div", { key: '026afe404e83a58245d2c0d68b188a5b227933b4' }, this.errorMessage ?
|
|
11
11
|
ErrorState(this.errorMessage)
|
|
12
12
|
:
|
|
13
13
|
h("main", { class: "p-2" }, h("slot", { name: "head-info" }), h("slot", { name: 'detail-sections' }))));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-DOjVAAtq.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-XGo_oqEC.js';
|
|
4
4
|
import { D as Dispute } from './Dispute-BH0Xfn-F.js';
|
|
5
5
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
6
6
|
import { D as DisputeService } from './dispute.service-Cdq3_yRo.js';
|
|
7
|
-
import './package-
|
|
7
|
+
import './package-YyotqiSL.js';
|
|
8
8
|
import './Api-DhiA2e_P.js';
|
|
9
9
|
import './config-state-DiHV-4QK.js';
|
|
10
10
|
import './index-DJ9G-4S-.js';
|
|
@@ -9,7 +9,7 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
|
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
10
|
import { D as DisputeService } from './dispute.service-Cdq3_yRo.js';
|
|
11
11
|
import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-XGo_oqEC.js';
|
|
13
13
|
import './dinero-HXpYMWUU.js';
|
|
14
14
|
import './Api-DhiA2e_P.js';
|
|
15
15
|
import './config-state-DiHV-4QK.js';
|
|
@@ -20,7 +20,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
20
20
|
import './Business-BCoP0TAV.js';
|
|
21
21
|
import './helpers-Mu7LQT-w.js';
|
|
22
22
|
import './state-options-BX8GieXu.js';
|
|
23
|
-
import './package-
|
|
23
|
+
import './package-YyotqiSL.js';
|
|
24
24
|
|
|
25
25
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
26
26
|
var _a;
|
|
@@ -7,7 +7,7 @@ import './Business-BCoP0TAV.js';
|
|
|
7
7
|
import './Dispute-BH0Xfn-F.js';
|
|
8
8
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
9
9
|
import { E as ErrorState } from './utils-DRwofES0.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-XGo_oqEC.js';
|
|
11
11
|
import './config-state-DiHV-4QK.js';
|
|
12
12
|
import './index-DJ9G-4S-.js';
|
|
13
13
|
import './utils-BOijEGPV.js';
|
|
@@ -15,7 +15,7 @@ import './dinero-HXpYMWUU.js';
|
|
|
15
15
|
import './helpers-Mu7LQT-w.js';
|
|
16
16
|
import './state-options-BX8GieXu.js';
|
|
17
17
|
import './parts-xDbRW9xn.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-YyotqiSL.js';
|
|
19
19
|
|
|
20
20
|
const api = Api();
|
|
21
21
|
class ReportsService {
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-DOjVAAtq.js'
|
|
|
2
2
|
import { am as heading5, aj as heading4, af as buttonPrimary, D as text } from './parts-xDbRW9xn.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-OalOsPBp.js';
|
|
4
4
|
import './event-types-CZfYo5-1.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-XGo_oqEC.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
7
7
|
import { B as BusinessService } from './business.service-D55OVyco.js';
|
|
8
8
|
import { B as Business } from './Business-BCoP0TAV.js';
|
|
@@ -16,7 +16,7 @@ import './Dispute-BH0Xfn-F.js';
|
|
|
16
16
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
17
17
|
import { T as TerminalService } from './terminal.service-l6zTIPZ3.js';
|
|
18
18
|
import { l as formatPhoneNumber } from './utils-BOijEGPV.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-YyotqiSL.js';
|
|
20
20
|
import './Api-DhiA2e_P.js';
|
|
21
21
|
import './helpers-Mu7LQT-w.js';
|
|
22
22
|
import './state-options-BX8GieXu.js';
|