@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
|
@@ -11,7 +11,7 @@ var utils = require('./utils-Bab-tddY.js');
|
|
|
11
11
|
var header1 = require('./header-1-D3r87SC6.js');
|
|
12
12
|
var insuranceState = require('./insurance-state-JbqYvJN3.js');
|
|
13
13
|
var header3 = require('./header-3-BFQJJgBb.js');
|
|
14
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
var checkPkgVersion = require('./check-pkg-version-iW3HGQFY.js');
|
|
15
15
|
require('./config-state-C7babhLh.js');
|
|
16
16
|
require('./dinero-BwNN_k7x.js');
|
|
17
17
|
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
@@ -24,7 +24,7 @@ var checkout_service = require('./checkout.service-Bc8L9ixO.js');
|
|
|
24
24
|
var index$1 = require('./index-C2ITzalN.js');
|
|
25
25
|
var paymentMethodOptionUtils = require('./payment-method-option-utils-WYHIHy-l.js');
|
|
26
26
|
require('./index-CWM5ions.js');
|
|
27
|
-
require('./package-
|
|
27
|
+
require('./package-CwcyK2nz.js');
|
|
28
28
|
require('./helpers-B5OCqlIM.js');
|
|
29
29
|
require('./state-options-CIT9xdTz.js');
|
|
30
30
|
|
|
@@ -183,7 +183,8 @@ class ApplePayService {
|
|
|
183
183
|
'Sub-Account': accountId,
|
|
184
184
|
},
|
|
185
185
|
body: {
|
|
186
|
-
domain: window.location.host
|
|
186
|
+
domain: window.location.host,
|
|
187
|
+
display_name: this.applePayConfig.displayName
|
|
187
188
|
}
|
|
188
189
|
});
|
|
189
190
|
return response;
|
|
@@ -230,22 +231,15 @@ class ApplePayService {
|
|
|
230
231
|
* Start Apple Pay session
|
|
231
232
|
*/
|
|
232
233
|
async startPaymentSession(paymentRequest, authToken, accountId) {
|
|
233
|
-
// Begin
|
|
234
|
-
console.groupCollapsed('[ApplePayService] startPaymentSession called');
|
|
235
|
-
console.log('[ApplePayService] raw paymentRequest:', JSON.stringify(paymentRequest, null, 2));
|
|
236
|
-
console.log('[ApplePayService] has authToken:', Boolean(authToken));
|
|
237
|
-
console.log('[ApplePayService] accountId:', accountId);
|
|
238
|
-
console.log('[ApplePayService] has config:', Boolean(this.applePayConfig));
|
|
234
|
+
// Begin session
|
|
239
235
|
if (!this.applePayConfig) {
|
|
240
236
|
console.error('[ApplePayService] Missing applePayConfig. Did you call initialize()?');
|
|
241
|
-
console.groupEnd();
|
|
242
237
|
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
243
238
|
}
|
|
244
239
|
// if (!this.isAvailable()) {
|
|
245
240
|
// throw new Error('Apple Pay is not available on this device/browser');
|
|
246
241
|
// }
|
|
247
242
|
const request = new ApplePayPaymentRequest(paymentRequest);
|
|
248
|
-
console.log('[ApplePayService] created ApplePayPaymentRequest:', request);
|
|
249
243
|
if (!request.isValid) {
|
|
250
244
|
const missingFields = [];
|
|
251
245
|
if (!request.countryCode)
|
|
@@ -260,17 +254,14 @@ class ApplePayService {
|
|
|
260
254
|
if (!request.total || !request.total.label || !request.total.amount)
|
|
261
255
|
missingFields.push('total');
|
|
262
256
|
console.error('[ApplePayService] Payment request is invalid. Missing/invalid:', missingFields);
|
|
263
|
-
console.groupEnd();
|
|
264
257
|
throw new Error('Invalid payment request provided');
|
|
265
258
|
}
|
|
266
259
|
this.currentPaymentRequest = request;
|
|
267
260
|
return new Promise((resolve, reject) => {
|
|
268
261
|
try {
|
|
269
|
-
console.log('[ApplePayService] About to instantiate ApplePaySession');
|
|
270
262
|
// Defensive checks for Apple Pay environment
|
|
271
263
|
if (typeof window === 'undefined' || !('ApplePaySession' in window)) {
|
|
272
264
|
console.error('[ApplePayService] ApplePaySession not available on window');
|
|
273
|
-
console.groupEnd();
|
|
274
265
|
return reject({
|
|
275
266
|
success: false,
|
|
276
267
|
error: {
|
|
@@ -280,16 +271,11 @@ class ApplePayService {
|
|
|
280
271
|
});
|
|
281
272
|
}
|
|
282
273
|
this.currentSession = new window.ApplePaySession(3, request);
|
|
283
|
-
console.log('[ApplePayService] ApplePaySession instantiated:', this.currentSession);
|
|
284
274
|
this.setupSessionEventHandlers(resolve, reject, authToken, accountId);
|
|
285
|
-
console.log('[ApplePayService] Event handlers set. Beginning session...');
|
|
286
275
|
this.currentSession.begin();
|
|
287
|
-
console.log('[ApplePayService] Session.begin() called');
|
|
288
|
-
console.groupEnd();
|
|
289
276
|
}
|
|
290
277
|
catch (error) {
|
|
291
278
|
console.error('[ApplePayService] Exception while starting session:', error);
|
|
292
|
-
console.groupEnd();
|
|
293
279
|
reject({
|
|
294
280
|
success: false,
|
|
295
281
|
error: {
|
|
@@ -327,18 +313,14 @@ class ApplePayService {
|
|
|
327
313
|
return;
|
|
328
314
|
}
|
|
329
315
|
this.currentSession.onvalidatemerchant = async () => {
|
|
330
|
-
console.groupCollapsed('[ApplePayService] onvalidatemerchant');
|
|
331
316
|
try {
|
|
332
|
-
console.log('[ApplePayService] accountId:', accountId);
|
|
333
317
|
if (!authToken) {
|
|
334
318
|
console.error('[ApplePayService] Missing authToken for merchant validation');
|
|
335
319
|
throw new Error('Authentication token not provided.');
|
|
336
320
|
}
|
|
337
321
|
const merchantSession = await this.validateMerchant(authToken, accountId);
|
|
338
|
-
console.log('[ApplePayService] merchantSession received');
|
|
339
322
|
try {
|
|
340
323
|
this.currentSession.completeMerchantValidation(merchantSession);
|
|
341
|
-
console.log('[ApplePayService] completeMerchantValidation called');
|
|
342
324
|
}
|
|
343
325
|
catch (completionError) {
|
|
344
326
|
console.error('Error calling completeMerchantValidation:', completionError);
|
|
@@ -362,30 +344,20 @@ class ApplePayService {
|
|
|
362
344
|
},
|
|
363
345
|
});
|
|
364
346
|
}
|
|
365
|
-
console.groupEnd();
|
|
366
347
|
};
|
|
367
348
|
this.currentSession.onpaymentauthorized = async (event) => {
|
|
368
|
-
var _a;
|
|
369
|
-
console.groupCollapsed('[ApplePayService] onpaymentauthorized');
|
|
370
349
|
try {
|
|
371
350
|
const payment = event.payment;
|
|
372
|
-
console.log('[ApplePayService] payment payload snapshot:', {
|
|
373
|
-
hasToken: Boolean(payment === null || payment === void 0 ? void 0 : payment.token),
|
|
374
|
-
tokenType: ((_a = payment === null || payment === void 0 ? void 0 : payment.token) === null || _a === void 0 ? void 0 : _a.paymentData) ? 'paymentData' : 'raw',
|
|
375
|
-
});
|
|
376
351
|
const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
|
|
377
352
|
name: this.currentPaymentRequest.total.label,
|
|
378
353
|
price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
|
|
379
354
|
description: this.currentPaymentRequest.total.label,
|
|
380
355
|
} });
|
|
381
|
-
console.log('[ApplePayService] paymentPayload prepared');
|
|
382
356
|
const paymentResult = await this.processPayment(authToken, accountId, paymentPayload);
|
|
383
|
-
console.log('[ApplePayService] processPayment result:', paymentResult);
|
|
384
357
|
if (paymentResult.success) {
|
|
385
358
|
this.currentSession.completePayment({
|
|
386
359
|
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
387
360
|
});
|
|
388
|
-
console.log('[ApplePayService] Payment success; resolving');
|
|
389
361
|
resolve({
|
|
390
362
|
success: true,
|
|
391
363
|
token: payment.token,
|
|
@@ -426,40 +398,31 @@ class ApplePayService {
|
|
|
426
398
|
});
|
|
427
399
|
}
|
|
428
400
|
finally {
|
|
429
|
-
console.log('[ApplePayService] Cleaning up session state');
|
|
430
401
|
this.currentSession = undefined;
|
|
431
402
|
this.currentPaymentRequest = undefined;
|
|
432
403
|
}
|
|
433
|
-
console.groupEnd();
|
|
434
404
|
};
|
|
435
405
|
this.currentSession.onpaymentmethodselected = () => {
|
|
436
|
-
console.groupCollapsed('[ApplePayService] onpaymentmethodselected');
|
|
437
406
|
const paymentUpdate = {
|
|
438
407
|
newTotal: this.currentPaymentRequest.total,
|
|
439
408
|
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
440
409
|
};
|
|
441
410
|
try {
|
|
442
411
|
this.currentSession.completePaymentMethodSelection(paymentUpdate);
|
|
443
|
-
console.log('[ApplePayService] completePaymentMethodSelection called');
|
|
444
412
|
}
|
|
445
413
|
catch (error) {
|
|
446
414
|
console.error('Error completing payment method selection:', error);
|
|
447
415
|
this.currentSession.abort();
|
|
448
416
|
}
|
|
449
|
-
console.groupEnd();
|
|
450
417
|
};
|
|
451
418
|
this.currentSession.onshippingmethodselected = () => {
|
|
452
|
-
console.groupCollapsed('[ApplePayService] onshippingmethodselected');
|
|
453
419
|
this.currentSession.completeShippingMethodSelection({
|
|
454
420
|
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
455
421
|
newTotal: this.currentPaymentRequest.total,
|
|
456
422
|
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
457
423
|
});
|
|
458
|
-
console.log('[ApplePayService] completeShippingMethodSelection called');
|
|
459
|
-
console.groupEnd();
|
|
460
424
|
};
|
|
461
425
|
this.currentSession.oncancel = (event) => {
|
|
462
|
-
console.groupCollapsed('[ApplePayService] oncancel');
|
|
463
426
|
if (event.sessionError) {
|
|
464
427
|
console.error(event.sessionError);
|
|
465
428
|
switch (event.sessionError.code) {
|
|
@@ -490,11 +453,9 @@ class ApplePayService {
|
|
|
490
453
|
message: 'User cancelled the Apple Pay session',
|
|
491
454
|
},
|
|
492
455
|
});
|
|
493
|
-
console.groupEnd();
|
|
494
456
|
};
|
|
495
457
|
if ('onerror' in this.currentSession) {
|
|
496
458
|
this.currentSession.onerror = (error) => {
|
|
497
|
-
console.groupCollapsed('[ApplePayService] onerror');
|
|
498
459
|
console.error('=== APPLE PAY SESSION ERROR ===');
|
|
499
460
|
console.error('Session error:', error);
|
|
500
461
|
this.currentSession = undefined;
|
|
@@ -506,7 +467,6 @@ class ApplePayService {
|
|
|
506
467
|
message: 'Apple Pay session error occurred',
|
|
507
468
|
},
|
|
508
469
|
});
|
|
509
|
-
console.groupEnd();
|
|
510
470
|
};
|
|
511
471
|
}
|
|
512
472
|
}
|
|
@@ -713,14 +673,6 @@ const ApplePay = class {
|
|
|
713
673
|
this.isProcessing = true;
|
|
714
674
|
this.error = null;
|
|
715
675
|
this.applePayStarted.emit();
|
|
716
|
-
console.groupCollapsed('[ApplePay Component] handleApplePayClick');
|
|
717
|
-
console.log('[ApplePay Component] click context:', {
|
|
718
|
-
isProcessing: this.isProcessing,
|
|
719
|
-
disabled: this.disabled,
|
|
720
|
-
isAvailable: this.isAvailable,
|
|
721
|
-
canMakePayments: this.canMakePayments,
|
|
722
|
-
hasService: Boolean(this.applePayService),
|
|
723
|
-
});
|
|
724
676
|
const paymentRequest = {
|
|
725
677
|
countryCode: this.countryCode,
|
|
726
678
|
currencyCode: checkout_store.checkoutStore.paymentCurrency,
|
|
@@ -732,13 +684,7 @@ const ApplePay = class {
|
|
|
732
684
|
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
733
685
|
total: ApplePayHelpers.createLineItem(checkout_store.checkoutStore.paymentDescription, checkout_store.checkoutStore.paymentAmount),
|
|
734
686
|
};
|
|
735
|
-
console.log("[ApplePay Component] paymentRequest", paymentRequest);
|
|
736
|
-
console.log('[ApplePay Component] identifiers snapshot:', {
|
|
737
|
-
authTokenLength: checkout_store.checkoutStore.authToken ? String(checkout_store.checkoutStore.authToken).length : 0,
|
|
738
|
-
accountId: checkout_store.checkoutStore.accountId,
|
|
739
|
-
});
|
|
740
687
|
const result = await this.applePayService.startPaymentSession(paymentRequest, checkout_store.checkoutStore.authToken, checkout_store.checkoutStore.accountId);
|
|
741
|
-
console.log("[ApplePay Component] startPaymentSession result", result);
|
|
742
688
|
if (result.success) {
|
|
743
689
|
this.applePayCompleted.emit({
|
|
744
690
|
success: true,
|
|
@@ -768,7 +714,6 @@ const ApplePay = class {
|
|
|
768
714
|
}
|
|
769
715
|
finally {
|
|
770
716
|
this.isProcessing = false;
|
|
771
|
-
console.groupEnd();
|
|
772
717
|
}
|
|
773
718
|
};
|
|
774
719
|
}
|
|
@@ -777,13 +722,6 @@ const ApplePay = class {
|
|
|
777
722
|
this.isLoading = true;
|
|
778
723
|
this.error = null;
|
|
779
724
|
this.isConfigValid = true;
|
|
780
|
-
console.groupCollapsed('[ApplePay Component] initializeApplePay');
|
|
781
|
-
console.log('[ApplePay Component] checkout state snapshot:', {
|
|
782
|
-
paymentAmount: checkout_store.checkoutStore.paymentAmount,
|
|
783
|
-
paymentCurrency: checkout_store.checkoutStore.paymentCurrency,
|
|
784
|
-
hasAuthToken: Boolean(checkout_store.checkoutStore.authToken),
|
|
785
|
-
accountId: checkout_store.checkoutStore.accountId,
|
|
786
|
-
});
|
|
787
725
|
const hasRequiredConfig = Boolean(checkout_store.checkoutStore.paymentAmount) &&
|
|
788
726
|
Boolean(checkout_store.checkoutStore.paymentCurrency) &&
|
|
789
727
|
Boolean(checkout_store.checkoutStore.authToken);
|
|
@@ -798,22 +736,15 @@ const ApplePay = class {
|
|
|
798
736
|
});
|
|
799
737
|
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.CONFIG_ERROR });
|
|
800
738
|
this.isLoading = false;
|
|
801
|
-
console.groupEnd();
|
|
802
739
|
return;
|
|
803
740
|
}
|
|
804
741
|
this.isAvailable = ApplePayHelpers.isApplePaySupported();
|
|
805
742
|
this.canMakePayments = ApplePayHelpers.canMakePayments();
|
|
806
|
-
console.log('[ApplePay Component] support check:', {
|
|
807
|
-
isAvailable: this.isAvailable,
|
|
808
|
-
canMakePayments: this.canMakePayments,
|
|
809
|
-
hasApplePaySessionOnWindow: typeof window !== 'undefined' && 'ApplePaySession' in window,
|
|
810
|
-
});
|
|
811
743
|
if (!this.isAvailable) {
|
|
812
744
|
this.error = "Apple Pay is not supported on this device";
|
|
813
745
|
console.error(this.error);
|
|
814
746
|
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_SUPPORTED });
|
|
815
747
|
this.isLoading = false;
|
|
816
|
-
console.groupEnd();
|
|
817
748
|
return;
|
|
818
749
|
}
|
|
819
750
|
if (!this.canMakePayments) {
|
|
@@ -821,7 +752,6 @@ const ApplePay = class {
|
|
|
821
752
|
console.error(this.error);
|
|
822
753
|
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_AVAILABLE });
|
|
823
754
|
this.isLoading = false;
|
|
824
|
-
console.groupEnd();
|
|
825
755
|
return;
|
|
826
756
|
}
|
|
827
757
|
const applePayConfig = {
|
|
@@ -832,7 +762,6 @@ const ApplePay = class {
|
|
|
832
762
|
buttonType: this.buttonType,
|
|
833
763
|
buttonStyle: this.buttonStyle,
|
|
834
764
|
};
|
|
835
|
-
console.log('[ApplePay Component] initializing service with config:', applePayConfig);
|
|
836
765
|
this.applePayService = new ApplePayService();
|
|
837
766
|
this.applePayService.initialize(applePayConfig);
|
|
838
767
|
const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
|
|
@@ -850,7 +779,6 @@ const ApplePay = class {
|
|
|
850
779
|
}
|
|
851
780
|
finally {
|
|
852
781
|
this.isLoading = false;
|
|
853
|
-
console.groupEnd();
|
|
854
782
|
}
|
|
855
783
|
}
|
|
856
784
|
async isSupported() {
|
|
@@ -870,7 +798,6 @@ const ApplePay = class {
|
|
|
870
798
|
render() {
|
|
871
799
|
if (!checkout_store.checkoutStore.applePayEnabled) {
|
|
872
800
|
// Render nothing when Apple Pay is disabled at the checkout settings level
|
|
873
|
-
console.log('[ApplePay Component] Apple Pay disabled in checkout settings; not rendering');
|
|
874
801
|
return null;
|
|
875
802
|
}
|
|
876
803
|
const isReady = !this.isLoading &&
|
|
@@ -878,7 +805,6 @@ const ApplePay = class {
|
|
|
878
805
|
this.canMakePayments &&
|
|
879
806
|
this.isConfigValid;
|
|
880
807
|
return (index.h(styledHost.StyledHost, null, checkout_store.checkoutStore.checkoutLoaded && (index.h("script", { async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
|
|
881
|
-
console.log('[ApplePay Component] Apple Pay SDK script loaded');
|
|
882
808
|
this.initializeApplePay();
|
|
883
809
|
} })), index.h("div", { class: 'apple-pay-container' }, index.h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (index.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 }))), index.h("style", null, `
|
|
884
810
|
.apple-pay-container {
|
|
@@ -7,7 +7,7 @@ var parts = require('./parts-Pb06tUMp.js');
|
|
|
7
7
|
var styledHost = require('./styled-host-BSooSIhA.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
9
|
var skeleton = require('./skeleton-BvdAh448.js');
|
|
10
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
10
|
+
var checkPkgVersion = require('./check-pkg-version-iW3HGQFY.js');
|
|
11
11
|
var configState = require('./config-state-C7babhLh.js');
|
|
12
12
|
var index$1 = require('./index-C2ITzalN.js');
|
|
13
13
|
var header3 = require('./header-3-BFQJJgBb.js');
|
|
@@ -19,7 +19,7 @@ require('./_commonjsHelpers-BJu3ubxk.js');
|
|
|
19
19
|
require('./business-form-options-CMII7nIK.js');
|
|
20
20
|
require('./Business-DCRzZf0w.js');
|
|
21
21
|
require('./helpers-B5OCqlIM.js');
|
|
22
|
-
require('./package-
|
|
22
|
+
require('./package-CwcyK2nz.js');
|
|
23
23
|
require('./Api-CjtvTD2_.js');
|
|
24
24
|
require('./utils-Bab-tddY.js');
|
|
25
25
|
require('./dinero-BwNN_k7x.js');
|
|
@@ -40,7 +40,7 @@ const JustifiRadioListItem = class {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
43
|
+
return (index.h(styledHost.StyledHost, { key: 'b0501b66bcfdd697d88c01835b8f97fb2c0861ab' }, index.h("div", { key: 'ada4dda7868086b1ea4cadd6c8824f87d3cb2301', class: `radio-list-item p-3 ${this.class || ''}`, part: parts.radioListItem, onClick: this.handleClick, hidden: this.hidden }, index.h("form-control-radio", { key: '72c6d07dd2a664ca6bd2be9b446584d7344bc2b0', name: this.name, value: this.value, checked: this.checked, label: this.label, inputHandler: () => null }))));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -99,7 +99,7 @@ const BankAccountBillingFormSimple = class {
|
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
101
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
102
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
102
|
+
return (index.h(styledHost.StyledHost, { key: '2429d26c0338ec1732337718ca4e7693f30a0f8a' }, index.h("div", { key: '774911ce7d594bc1f44c15060136356acc349cbb', part: parts.billingForm, class: "mt-4" }, index.h("form", { key: '5c93f5a6af372fdf24a20870ef6ae69f554efec4' }, index.h("fieldset", { key: '38ac8adb2592b7799825d63c4a8e9bde61510cd0' }, this.legend && (index.h("legend", { key: 'abbce27bb8ae2ef564b8aeef755050fc096cb81f' }, this.legend)), index.h("div", { key: '5a0350fe7f635600d746f1f3979757a045cc09f0', class: "row gy-3" }, index.h("div", { key: '71aac995514b7fea7254204df825eb8b381e21c7', class: "col-12" }, index.h("form-control-text", { key: 'f33d26eddfc9f3d307e05a48afec9472213b2822', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler }))))))));
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
|
|
@@ -266,7 +266,7 @@ const CardBillingFormSimple = class {
|
|
|
266
266
|
}
|
|
267
267
|
render() {
|
|
268
268
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
269
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
269
|
+
return (index.h(styledHost.StyledHost, { key: '2523873a34180694357ab780bd4b9768f9ea267d' }, index.h("div", { key: '30204a976bba8a843830a905cec86d5aaf486f30', part: parts.billingForm }, index.h("form", { key: '479e65b39fbecc80ba6281648bd390c4cd2a688e' }, index.h("fieldset", { key: '93613aa83561aaba46efff4e6d64e240e1ddbc84' }, this.legend && (index.h("legend", { key: '4d6da7c78c5b1a84bc4b37dfca80d9c7f0be462f' }, this.legend)), index.h("div", { key: '11259470415c62c15c0ef9217f91f4d6b5c8651b', class: "row gy-3" }, index.h("div", { key: '2b85b5b820991faee8d8b14c121a69ab4974da98', class: "col-12" }, index.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: utils.numberOnlyHandler }))))))));
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
|
|
@@ -339,7 +339,7 @@ const SaveNewPaymentMethod = class {
|
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
341
|
render() {
|
|
342
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
342
|
+
return (index.h(styledHost.StyledHost, { key: '9aa9ce812c0cb2fdc809c47060ed150903ad7cd5' }, index.h("form-control-checkbox", { key: '596bc9a145e363c751c8610f4b9f23ad31dab299', label: this.label || 'Save New Payment Method', name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange })));
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
|
|
@@ -5,7 +5,7 @@ var utils = require('./utils-CUcA4G_O.js');
|
|
|
5
5
|
var business_service = require('./business.service-Cj_NUZsr.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-iW3HGQFY.js');
|
|
9
9
|
require('./parts-Pb06tUMp.js');
|
|
10
10
|
require('./Api-CjtvTD2_.js');
|
|
11
11
|
require('./config-state-C7babhLh.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-CwcyK2nz.js');
|
|
23
23
|
|
|
24
24
|
const BusinessDetails = class {
|
|
25
25
|
constructor(hostRef) {
|
|
@@ -11,7 +11,7 @@ require('./Refund-BnhHNKLz.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-iW3HGQFY.js');
|
|
15
15
|
var button = require('./button-gPNZ9XRn.js');
|
|
16
16
|
var styledHost = require('./styled-host-BSooSIhA.js');
|
|
17
17
|
var header1 = require('./header-1-D3r87SC6.js');
|
|
@@ -27,7 +27,7 @@ require('./business-form-options-CMII7nIK.js');
|
|
|
27
27
|
require('./index-CWM5ions.js');
|
|
28
28
|
require('./utils-Bab-tddY.js');
|
|
29
29
|
require('./helpers-B5OCqlIM.js');
|
|
30
|
-
require('./package-
|
|
30
|
+
require('./package-CwcyK2nz.js');
|
|
31
31
|
require('./Api-CjtvTD2_.js');
|
|
32
32
|
require('./parts-Pb06tUMp.js');
|
|
33
33
|
require('./utils-DvUQQLmR.js');
|
|
@@ -19,7 +19,7 @@ const RepresentativeFormInputs = class {
|
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
22
|
-
return (index.h("form", { key: '
|
|
22
|
+
return (index.h("form", { key: 'a2c558b8a6b66d7257fa86ef5f9c1d56a7a273db' }, index.h("fieldset", { key: '23cb7f2debd4692c39cfe2311ce0d2549ca94ebc' }, index.h("div", { key: '0c6e94b6a9da6924673f5ebeed93f237ff22a013', class: "d-flex align-items-center gap-2" }, index.h("legend", { key: 'a165d7dc17dddde2d6ce35af9d836a989f02ffaf', class: "mb-0", part: parts.heading2 }, "Representative"), index.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." })), index.h("hr", { key: 'bc481e820461c6ec2088f2879cb9a5837ed02884', class: "mt-2" }), index.h("div", { key: 'ff4b0731213ddc42ebabb79d49984b83d376f742', class: "row gy-3" }, index.h("div", { key: '99cac91d3657bce68ce97028342d49cb8a2bb314', class: "col-12 col-md-8" }, index.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 })), index.h("div", { key: '6070fdff99a868b50deb59c9d006d3c4775a50bd', class: "col-12 col-md-4" }, index.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." })), index.h("div", { key: '14d953417a1ec0292d75251b37b580361def0fb3', class: "col-12 col-md-6" }, index.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 })), index.h("div", { key: 'cb7f6173a31fac67edf74844f0807ea94446c59b', class: "col-12 col-md-6" }, index.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: formInputMasks.PHONE_MASKS.US })), index.h("div", { key: 'a9468f20a7d832ae44d771c3b8913c32cf0ef2ab', class: "col-12 col-md-4" }, index.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) => inputHandlers.updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), index.h("div", { key: 'e2ecd87320422e1712138115291016f8c1c61ac2', class: "col-12 col-md-8" }, index.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: formInputMasks.SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), index.h("div", { key: 'ef502c55424287c5c81ca88593f5836d21a2f945', class: "col-12" }, index.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 }))))));
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Bhtk1qkX.js');
|
|
4
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
4
|
+
var checkPkgVersion = require('./check-pkg-version-iW3HGQFY.js');
|
|
5
5
|
var checkout_store = require('./checkout.store-Bswr7kNY.js');
|
|
6
6
|
var parts = require('./parts-Pb06tUMp.js');
|
|
7
7
|
var styledHost = require('./styled-host-BSooSIhA.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
9
|
var index$1 = require('./index-C2ITzalN.js');
|
|
10
|
-
require('./package-
|
|
10
|
+
require('./package-CwcyK2nz.js');
|
|
11
11
|
require('./Api-CjtvTD2_.js');
|
|
12
12
|
require('./config-state-C7babhLh.js');
|
|
13
13
|
require('./index-CWM5ions.js');
|
|
@@ -95,9 +95,9 @@ const Checkout = class {
|
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
97
|
var _a, _b;
|
|
98
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
98
|
+
return (index.h(styledHost.StyledHost, { key: '468b97261a110d5779ac742de45248aadfbeeb6c' }, index.h("justifi-modular-checkout", { key: '7ce8d2e147f0b91ad93996f7e044a3fe2a9bd604', ref: (el) => {
|
|
99
99
|
this.modularCheckoutRef = el;
|
|
100
|
-
}, authToken: this.authToken, checkoutId: this.checkoutId }, index.h("div", { key: '
|
|
100
|
+
}, authToken: this.authToken, checkoutId: this.checkoutId }, index.h("div", { key: '7ace65df988d338d0cc810a532f8914a046e7268', class: "row gy-3 jfi-checkout-core" }, index.h("div", { key: '3c6223ef06c7a2b42bef97dd67f5f09f21bb248b', class: "col-12", part: parts.checkoutSummary }, index.h("justifi-header", { key: '622b2ef667ab222a3152134573e7191bf2fa6117', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), index.h("section", { key: '036b447e7e92b1c6bfe33aff5d07a35bc2d9a915' }, index.h("justifi-checkout-summary", { key: '292c0b09960046e78b902652e5b0902129715ef5' }))), index.h("div", { key: '5d27c5a5d3f026ad9f9da37833f8ecf808a89de9', class: "col-12 mt-4" }, index.h("slot", { key: '1a583d890039b1c3a4493a0687ac5a9caa21d2b3', name: "insurance" })), index.h("div", { key: '0d7427acc37518888fceef97431f594fb4ea2359', class: "col-12 mt-4" }, index.h("justifi-header", { key: '5543bc55d4be2de9064b4c4924ecd7d2f32da7d9', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (index.h("justifi-header", { key: '80a17876009d3c6e39017432053e3ab18b6d406e', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), index.h("div", { key: 'eac0e3466d8cf74df53acd1252d11d0461d0a263', class: "d-flex flex-column" }, index.h("section", { key: '1e27c56d333a44760d552549a716b39b1bcc538f' }, index.h("div", { key: '65680e1ed1a3eccc84ec67797f468edafcb65a80' }, index.h("justifi-saved-payment-methods", { key: '800e1e6312f8a38856341b5bc78c93a9fc18434e' }), this.availablePaymentMethods.includes(index$1.PAYMENT_METHODS.APPLE_PAY) && (index.h("div", { key: '0e5d9164a0066b88e7b9467bbb25167262614087', class: "mb-3" }, index.h("justifi-apple-pay", { key: '81717e6193aa402eef18cf006b74798d02811a8d' }))), this.availablePaymentMethods.includes(index$1.PAYMENT_METHODS.SEZZLE) && (index.h("justifi-radio-list-item", { key: '6405f56f8ee450d410801056c362580a6457325f', name: "paymentMethodType", value: index$1.PAYMENT_METHODS.SEZZLE, checked: ((_a = checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === index$1.PAYMENT_METHODS.SEZZLE, label: index.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(index$1.PAYMENT_METHODS.PLAID) && !this.disableBnpl && (index.h("justifi-radio-list-item", { key: 'd2b920050db52162f5f1fee2ee46884f50f511e8', name: "paymentMethodType", value: index$1.PAYMENT_METHODS.PLAID, checked: ((_b = checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === index$1.PAYMENT_METHODS.PLAID, label: index.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(); } })), index.h("justifi-tokenize-payment-method", { key: 'c160cd5403029ce3e1cac142cf1e782c104e97f2', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkout_store.checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkout_store.checkoutStore.paymentMethodGroupId }))))), index.h("div", { key: '6e03db84ccbfab811c72e4df5ffaf23c8822539b', class: "mt-4" }, index.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" } }))))));
|
|
101
101
|
}
|
|
102
102
|
static get watchers() { return {
|
|
103
103
|
"authToken": ["propChanged"],
|
|
@@ -53,7 +53,7 @@ const CheckoutsListFilters = class {
|
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
55
|
const filterMenuParams = Object.assign({}, checkoutsListParamsState.filterParams);
|
|
56
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
56
|
+
return (index.h(styledHost.StyledHost, { key: 'e68f5bd4687eaad5aae4890d81baec603f72b6de' }, index.h("table-filters-menu", { key: 'c09285765839dbfad618bc13f39883e3f11ae991', params: filterMenuParams, clearParams: checkoutsListParamsState.clearParams, part: parts.checkoutsListFilterMenu }, index.h("div", { key: '96e32ecba5c64ccda108ceb583a82b1554b347a8', class: "grid-cols-2 gap-3 p-1" }, index.h("div", { key: '7ce51a9f065004c169b577bcdd33af8ad7b01ac2', class: "p-2" }, index.h("form-control-select", { key: 'b6dfda04a58f51b989b1dc655df00500071fea98', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || checkoutsListParamsState.filterParams.status || '', disabled: !!this.checkoutStatus, part: parts.statusCheckoutsListFilterParam })), index.h("div", { key: '4feb8c837611e6d0ec9cad6cb7a9f032db8cbbf5', class: "p-2" }, index.h("form-control-select", { key: '5a2a6c0e21cb62ee792bce703ccdfc9e08a46cc0', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || checkoutsListParamsState.filterParams.payment_mode || '', disabled: !!this.paymentMode, part: parts.paymentModeCheckoutsListFilterParam }))))));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
|
|
@@ -9,7 +9,7 @@ require('./Pagination-Dediz133.js');
|
|
|
9
9
|
require('./Business-DCRzZf0w.js');
|
|
10
10
|
require('./Dispute-CruQTF6_.js');
|
|
11
11
|
var utils = require('./utils-DvUQQLmR.js');
|
|
12
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
12
|
+
var checkPkgVersion = require('./check-pkg-version-iW3HGQFY.js');
|
|
13
13
|
var checkout_service = require('./checkout.service-Bc8L9ixO.js');
|
|
14
14
|
var getSubaccounts = require('./get-subaccounts-BoTVdl7v.js');
|
|
15
15
|
var styledHost = require('./styled-host-BSooSIhA.js');
|
|
@@ -19,7 +19,7 @@ require('./index-CWM5ions.js');
|
|
|
19
19
|
require('./utils-Bab-tddY.js');
|
|
20
20
|
require('./helpers-B5OCqlIM.js');
|
|
21
21
|
require('./state-options-CIT9xdTz.js');
|
|
22
|
-
require('./package-
|
|
22
|
+
require('./package-CwcyK2nz.js');
|
|
23
23
|
require('./Api-CjtvTD2_.js');
|
|
24
24
|
require('./badge-CE3ss_OU.js');
|
|
25
25
|
require('./parts-Pb06tUMp.js');
|
|
@@ -108,7 +108,7 @@ const CheckoutsList = class {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
111
|
+
return (index.h(styledHost.StyledHost, { key: 'b7e794982435af9a755c272767c017c57fa16b24' }, index.h("checkouts-list-core", { key: 'a8de52b59cbccd7cd97369663c074011b49b9499', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
112
112
|
}
|
|
113
113
|
static get watchers() { return {
|
|
114
114
|
"accountId": ["propChanged"],
|
|
@@ -9,7 +9,7 @@ const Details = class {
|
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (index.h("div", { key: '
|
|
12
|
+
return (index.h("div", { key: '026afe404e83a58245d2c0d68b188a5b227933b4' }, this.errorMessage ?
|
|
13
13
|
utils.ErrorState(this.errorMessage)
|
|
14
14
|
:
|
|
15
15
|
index.h("main", { class: "p-2" }, index.h("slot", { name: "head-info" }), index.h("slot", { name: 'detail-sections' }))));
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Bhtk1qkX.js');
|
|
4
4
|
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
5
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
5
|
+
var checkPkgVersion = require('./check-pkg-version-iW3HGQFY.js');
|
|
6
6
|
var Dispute = require('./Dispute-CruQTF6_.js');
|
|
7
7
|
var utils = require('./utils-DvUQQLmR.js');
|
|
8
8
|
var dispute_service = require('./dispute.service-DhO_tuDc.js');
|
|
9
|
-
require('./package-
|
|
9
|
+
require('./package-CwcyK2nz.js');
|
|
10
10
|
require('./Api-CjtvTD2_.js');
|
|
11
11
|
require('./config-state-C7babhLh.js');
|
|
12
12
|
require('./index-CWM5ions.js');
|
|
@@ -11,7 +11,7 @@ var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
|
11
11
|
var utils = require('./utils-DvUQQLmR.js');
|
|
12
12
|
var dispute_service = require('./dispute.service-DhO_tuDc.js');
|
|
13
13
|
var eventTypes = require('./event-types-BWQT2lwu.js');
|
|
14
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
var checkPkgVersion = require('./check-pkg-version-iW3HGQFY.js');
|
|
15
15
|
require('./dinero-BwNN_k7x.js');
|
|
16
16
|
require('./Api-CjtvTD2_.js');
|
|
17
17
|
require('./config-state-C7babhLh.js');
|
|
@@ -22,7 +22,7 @@ require('./Pagination-Dediz133.js');
|
|
|
22
22
|
require('./Business-DCRzZf0w.js');
|
|
23
23
|
require('./helpers-B5OCqlIM.js');
|
|
24
24
|
require('./state-options-CIT9xdTz.js');
|
|
25
|
-
require('./package-
|
|
25
|
+
require('./package-CwcyK2nz.js');
|
|
26
26
|
|
|
27
27
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
28
28
|
var _a;
|
|
@@ -9,7 +9,7 @@ require('./Business-DCRzZf0w.js');
|
|
|
9
9
|
require('./Dispute-CruQTF6_.js');
|
|
10
10
|
var utils = require('./utils-DvUQQLmR.js');
|
|
11
11
|
var utils$1 = require('./utils-CUcA4G_O.js');
|
|
12
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
12
|
+
var checkPkgVersion = require('./check-pkg-version-iW3HGQFY.js');
|
|
13
13
|
require('./config-state-C7babhLh.js');
|
|
14
14
|
require('./index-CWM5ions.js');
|
|
15
15
|
require('./utils-Bab-tddY.js');
|
|
@@ -17,7 +17,7 @@ require('./dinero-BwNN_k7x.js');
|
|
|
17
17
|
require('./helpers-B5OCqlIM.js');
|
|
18
18
|
require('./state-options-CIT9xdTz.js');
|
|
19
19
|
require('./parts-Pb06tUMp.js');
|
|
20
|
-
require('./package-
|
|
20
|
+
require('./package-CwcyK2nz.js');
|
|
21
21
|
|
|
22
22
|
const api = Api.Api();
|
|
23
23
|
class ReportsService {
|
|
@@ -4,7 +4,7 @@ var index = require('./index-Bhtk1qkX.js');
|
|
|
4
4
|
var parts = require('./parts-Pb06tUMp.js');
|
|
5
5
|
var styledHost = require('./styled-host-BSooSIhA.js');
|
|
6
6
|
require('./event-types-YOY5TKUN.js');
|
|
7
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
7
|
+
var checkPkgVersion = require('./check-pkg-version-iW3HGQFY.js');
|
|
8
8
|
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
9
9
|
var business_service = require('./business.service-Cj_NUZsr.js');
|
|
10
10
|
var Business = require('./Business-DCRzZf0w.js');
|
|
@@ -18,7 +18,7 @@ require('./Dispute-CruQTF6_.js');
|
|
|
18
18
|
var utils = require('./utils-DvUQQLmR.js');
|
|
19
19
|
var terminal_service = require('./terminal.service-BkKxH-k4.js');
|
|
20
20
|
var utils$1 = require('./utils-Bab-tddY.js');
|
|
21
|
-
require('./package-
|
|
21
|
+
require('./package-CwcyK2nz.js');
|
|
22
22
|
require('./Api-CjtvTD2_.js');
|
|
23
23
|
require('./helpers-B5OCqlIM.js');
|
|
24
24
|
require('./state-options-CIT9xdTz.js');
|