@justifi/webcomponents 5.7.6-rc-03 → 5.7.6-rc-05
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/{Api-eP0XeJLd.js → Api-p2pK86Zd.js} +2 -2
- package/dist/cjs/{ComponentError-CEv9ltwy.js → ComponentError-D4OLnOkg.js} +8 -0
- package/dist/cjs/Payment-2Zmn-l6G.js +151 -0
- package/dist/cjs/{Refund-08OcZkXX.js → Refund-BztCb6AK.js} +1 -148
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -5
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/{badge-DDksduwk.js → badge-CMmPvqtE.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +13 -14
- package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
- package/dist/cjs/{business-additional-questions-schema-e3GCIHk5.js → business-additional-questions-schema-DNbSH3E-.js} +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business-identity-schema-Diqj_WVQ.js → business-identity-schema-CclzWSOn.js} +2 -2
- package/dist/cjs/{business.service-CZrK48lv.js → business.service-DwZSyIlI.js} +4 -3
- package/dist/cjs/{button-0HYMPryx.js → button-CfVQSysQ.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +6 -6
- package/dist/cjs/{check-pkg-version-DBocF2eE.js → check-pkg-version-lPG_FnM4.js} +5 -4
- package/dist/cjs/{checkout.service-CllLA9W6.js → checkout.service-C_qEIb8b.js} +4 -3
- package/dist/cjs/{checkout.store--pVCO0L1.js → checkout.store-mEv437nN.js} +2 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +13 -14
- package/dist/cjs/{payments-list-params-state-DZUKBmLC.js → checkouts-list-params-state-BNbT1fuJ.js} +1 -1
- package/dist/cjs/{checkouts-table-Cp7rNkNd.js → checkouts-table-DJoMGwVG.js} +3 -3
- package/dist/cjs/{config-state-Dz9bnWHg.js → config-state-5xZf-jax.js} +1 -1
- package/dist/cjs/custom-popper.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-Chptj-DX.js → dispute.service-cQpQQMeh.js} +4 -3
- package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-CVPYL0lE.js → form-control-error-text-HM0zQerh.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-B3jRgfoa.js → form-control-help-text-5KIUw1IP.js} +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/form-control-monetary.cjs.entry.js +6 -8
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_3.cjs.entry.js +6 -6
- package/dist/cjs/{get-business-BiEc-jdH.js → get-business-o5jPq_ME.js} +2 -2
- package/dist/cjs/{get-payment-details-C3qBZVdv.js → get-payment-details-DwLcmCQs.js} +7 -6
- package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-DE_D9y08.js} +2 -2
- package/dist/cjs/{get-subaccounts-DKyvT-ZF.js → get-subaccounts-CvtcQGsb.js} +7 -6
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -7
- package/dist/cjs/{header-1-M-mc3bsa.js → header-1-DD41iNlG.js} +1 -1
- package/dist/cjs/header-3-D9Wa0IfT.js +10 -0
- package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
- package/dist/cjs/{index-BCtVWU61.js → index-Yd9aLenr.js} +22 -6
- package/dist/cjs/{index-D5bL1DOi.js → index-dm_GlYlb.js} +57 -16
- package/dist/cjs/{index.esm-CVuJLXJZ.js → index.esm-BleZSAc0.js} +869 -745
- package/dist/cjs/{insurance-state-kH0kuTD8.js → insurance-state-qT_hkvZV.js} +10 -3
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +13 -13
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +23 -23
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +836 -0
- package/dist/cjs/{justifi-bank-account-form_7.cjs.entry.js → justifi-bank-account-form_5.cjs.entry.js} +27 -69
- package/dist/cjs/justifi-billing-form.cjs.entry.js +76 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +15 -16
- package/dist/cjs/justifi-business-form.cjs.entry.js +21 -21
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/{justifi-checkout-summary_5.cjs.entry.js → justifi-button_5.cjs.entry.js} +169 -135
- package/dist/cjs/justifi-checkout.cjs.entry.js +18 -19
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +10 -11
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +17 -18
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -14
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +19 -20
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +12 -13
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +17 -18
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +20 -20
- package/dist/cjs/justifi-payment-details.cjs.entry.js +15 -16
- package/dist/cjs/justifi-payment-method-options.cjs.entry.js +75 -0
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +14 -15
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +16 -17
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payments-list.cjs.entry.js +18 -19
- package/dist/cjs/justifi-payout-details.cjs.entry.js +14 -15
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +16 -17
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -9
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -20
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -17
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +4 -5
- package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +116 -0
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +7 -10
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -14
- package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +11 -12
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +15 -16
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +17 -18
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +38 -195
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{package-BM2FCIB8.js → package-pyzAPwrl.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +15 -17
- package/dist/cjs/{payment-method-option-utils-QODgEWhU.js → payment-method-option-utils-CfLXhpsL.js} +11 -1
- package/dist/cjs/{payment-provisioning-actions-SNMCdsyF.js → payment-provisioning-actions-CZVlnRA0.js} +2 -2
- package/dist/cjs/{payment.service-C6kdaQYS.js → payment.service-CVZ55YLl.js} +4 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +14 -15
- package/dist/cjs/{payouts-list-params-state-DZUKBmLC.js → payments-list-params-state-BNbT1fuJ.js} +1 -1
- package/dist/cjs/{payments-status-DG50GuXR.js → payments-status-PB63klt3.js} +2 -2
- package/dist/cjs/{payments-table-DaW6SvdL.js → payments-table-uouQ4x2Y.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +11 -13
- package/dist/cjs/{payout.service-CLnAr59x.js → payout.service-BlbHwzd_.js} +4 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +14 -15
- package/dist/cjs/{terminal-orders-list-params-state-DZUKBmLC.js → payouts-list-params-state-BNbT1fuJ.js} +1 -1
- package/dist/cjs/{payouts-status-meuI7eBr.js → payouts-status-Bk1JFzbP.js} +2 -2
- package/dist/cjs/{payouts-table-D5hMHcaY.js → payouts-table-Bo61u5ZZ.js} +3 -3
- package/dist/cjs/{schema-validations-BSeMee-o.js → schema-validations-jek_iZ9W.js} +1 -1
- package/dist/cjs/{skeleton-CbZBGO47.js → skeleton-x-GSs3xk.js} +1 -1
- package/dist/cjs/{spinner-CIZFX7bz.js → spinner-Kb1BFvnL.js} +1 -1
- package/dist/cjs/{styled-host-DXNHOiqW.js → styled-host-CqQYxX-w.js} +1 -1
- package/dist/cjs/{table-CxvETNS1.js → table-BJVUhh3s.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +13 -14
- package/dist/cjs/{checkouts-list-params-state-DZUKBmLC.js → terminal-orders-list-params-state-BNbT1fuJ.js} +1 -1
- package/dist/cjs/{terminal-orders-table-DTZUpjkG.js → terminal-orders-table-v0Sn7jUg.js} +7 -6
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-CcBCXxNm.js → terminal.service-I07QoXPB.js} +4 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +13 -14
- package/dist/cjs/terminals-list-params-state-BNbT1fuJ.js +22 -0
- package/dist/cjs/{terminals-table-DOqVeHM1.js → terminals-table-CGG9EhiI.js} +3 -3
- package/dist/cjs/{utils-wkdkLmDI.js → utils-Df-pajL7.js} +1 -1
- package/dist/cjs/{utils-DqlrBltg.js → utils-Dka3MplB.js} +1661 -3
- package/dist/cjs/{utils-IGCnjtqc.js → utils-DvUQQLmR.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +5 -4
- package/dist/collection/actions/checkout/checkout-actions.js +2 -1
- package/dist/collection/api/ApplePay.js +124 -0
- package/dist/collection/api/ComponentError.js +8 -0
- package/dist/collection/api/services/apple-pay.service.js +344 -0
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- 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 +1 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- 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 +1 -1
- 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/billing-form/billing-form.js +37 -10
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +1 -1
- package/dist/collection/components/checkout/new-payment-method.js +378 -0
- package/dist/collection/components/checkout/payment-method-option-utils.js +1 -0
- package/dist/collection/components/checkout/payment-method-options.js +421 -0
- 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/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +118 -10
- package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +539 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +5 -36
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/postal-code-form.js +4 -5
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +89 -273
- package/dist/collection/store/checkout.store.js +1 -0
- package/dist/collection/ui-components/apple-pay-button.js +146 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/index.js +0 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +2878 -1817
- package/dist/esm/{Api-BCeKXDaf.js → Api-DQM93PRm.js} +2 -2
- package/dist/esm/{ComponentError-BhrFjjAs.js → ComponentError-Cjcsf8ku.js} +9 -1
- package/dist/esm/{Dispute-BH0Xfn-F.js → Dispute-7MWRbTXI.js} +1 -1
- package/dist/esm/Payment-Bs0-9Lnt.js +149 -0
- package/dist/esm/{Refund-DBHZkemk.js → Refund-4B3c-kLz.js} +2 -148
- package/dist/esm/additional-questions-details_5.entry.js +4 -6
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/{badge-BrapPg3R.js → badge-D-vrtiQR.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +15 -16
- package/dist/esm/bank-account-form.entry.js +7 -7
- package/dist/esm/{business-additional-questions-schema-uQlQ8fXQ.js → business-additional-questions-schema-C6NRHWEL.js} +2 -2
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business-identity-schema-BsrgqgDl.js → business-identity-schema-D8n5dyLX.js} +2 -2
- package/dist/esm/{business.service-BPBxsb8B.js → business.service-BgXdRyYa.js} +5 -4
- package/dist/esm/{button-BB-N4vit.js → button-DxM4-mlD.js} +2 -2
- package/dist/esm/card-form.entry.js +7 -7
- package/dist/esm/{check-pkg-version-Cic-MeLf.js → check-pkg-version-B7MJjFP4.js} +6 -5
- package/dist/esm/{checkout.service-C1WAmUiU.js → checkout.service-CXeKDZTF.js} +5 -4
- package/dist/esm/{checkout.store-GXtlf5-4.js → checkout.store-QrBBYQfi.js} +2 -1
- package/dist/esm/checkouts-list-core.entry.js +15 -16
- package/dist/esm/{checkouts-list-params-state-DFWVMJRJ.js → checkouts-list-params-state-SMXQIZTt.js} +1 -1
- package/dist/esm/{checkouts-table-COpCngi0.js → checkouts-table-Djb7Yj6O.js} +4 -4
- package/dist/esm/{config-state-B3mtRA6f.js → config-state-BrllxiM0.js} +1 -1
- package/dist/esm/custom-popper.entry.js +3 -3
- package/dist/esm/{dispute.service-bQh-LG0z.js → dispute.service-DWs_TX-m.js} +5 -4
- package/dist/esm/form-alert_5.entry.js +6 -6
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-Bk3yfpFX.js → form-control-error-text-Dew-m4MW.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +6 -6
- package/dist/esm/{form-control-help-text-mOLCXs00.js → form-control-help-text-CcPKT19_.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +6 -6
- package/dist/esm/form-control-monetary.entry.js +7 -9
- package/dist/esm/form-control-number-masked_2.entry.js +6 -6
- package/dist/esm/form-control-number.entry.js +6 -6
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/form-control-select_3.entry.js +7 -7
- package/dist/esm/{get-business-BSRtbTh7.js → get-business-Crb6P-iI.js} +2 -2
- package/dist/esm/{get-payment-details-B193kh7P.js → get-payment-details-j8nOngzB.js} +7 -6
- package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D-Lnooki.js} +2 -2
- package/dist/esm/{get-subaccounts-DcgISPei.js → get-subaccounts-C62B2OC_.js} +8 -7
- package/dist/esm/gross-payment-chart-core.entry.js +6 -8
- package/dist/esm/{header-1-DYuf6mkF.js → header-1-B0PFwGib.js} +2 -2
- package/dist/esm/header-3-D3gxg6YU.js +8 -0
- package/dist/esm/hidden-input_2.entry.js +9 -9
- package/dist/esm/{index-BAq5IUBW.js → index-B9me4yN2.js} +22 -6
- package/dist/esm/{index-N3w5zrz2.js → index-kpoIU4v_.js} +58 -16
- package/dist/esm/{index.esm-BCNUj0Dx.js → index.esm-cYgKOXtz.js} +869 -745
- package/dist/esm/{insurance-state-DeyYNyas.js → insurance-state-DQH40x6F.js} +8 -2
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +15 -15
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +25 -25
- package/dist/esm/justifi-additional-statement_8.entry.js +11 -11
- package/dist/esm/justifi-apple-pay.entry.js +834 -0
- package/dist/esm/{justifi-bank-account-form_7.entry.js → justifi-bank-account-form_5.entry.js} +29 -69
- package/dist/esm/justifi-billing-form.entry.js +74 -0
- package/dist/esm/justifi-business-details.entry.js +16 -17
- package/dist/esm/justifi-business-form.entry.js +23 -23
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -3
- package/dist/esm/{justifi-checkout-summary_5.entry.js → justifi-button_5.entry.js} +169 -135
- package/dist/esm/justifi-checkout.entry.js +15 -16
- package/dist/esm/justifi-checkouts-list-filters.entry.js +12 -13
- package/dist/esm/justifi-checkouts-list.entry.js +19 -20
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +14 -15
- package/dist/esm/justifi-dispute-notification_3.entry.js +20 -21
- package/dist/esm/justifi-gross-payment-chart.entry.js +14 -15
- package/dist/esm/justifi-new-payment-method.entry.js +97 -0
- package/dist/esm/justifi-order-terminals.entry.js +19 -20
- package/dist/esm/justifi-owner-form_3.entry.js +21 -21
- package/dist/esm/justifi-payment-details.entry.js +16 -17
- package/dist/esm/justifi-payment-method-options.entry.js +73 -0
- package/dist/esm/justifi-payment-provisioning-core.entry.js +6 -6
- package/dist/esm/justifi-payment-provisioning.entry.js +15 -16
- package/dist/esm/justifi-payment-transactions-list.entry.js +18 -19
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -9
- package/dist/esm/justifi-payments-list.entry.js +19 -20
- package/dist/esm/justifi-payout-details.entry.js +16 -17
- package/dist/esm/justifi-payout-transactions-list.entry.js +18 -19
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -10
- package/dist/esm/justifi-payouts-list.entry.js +21 -22
- package/dist/esm/justifi-refund-payment.entry.js +19 -19
- package/dist/esm/justifi-saved-payment-method.entry.js +5 -6
- package/dist/esm/justifi-saved-payment-methods_2.entry.js +113 -0
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +7 -10
- package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -15
- package/dist/esm/justifi-skeleton.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +13 -14
- package/dist/esm/justifi-terminal-orders-list.entry.js +17 -18
- package/dist/esm/justifi-terminals-list-filters.entry.js +12 -12
- package/dist/esm/justifi-terminals-list.entry.js +19 -20
- package/dist/esm/justifi-tokenize-payment-method.entry.js +39 -196
- package/dist/esm/loader.js +4 -3
- package/dist/esm/{package-BRJ4FIJH.js → package-BLtzn9pE.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-CKg_luIy.js → parts-D3G5aVLy.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +16 -18
- package/dist/esm/{payment-method-option-utils-zFDtQrgQ.js → payment-method-option-utils-Cm6lAaP1.js} +10 -2
- package/dist/esm/{payment-provisioning-actions-2qP7AtHj.js → payment-provisioning-actions-ONP8lDnV.js} +2 -2
- package/dist/esm/{payment.service-BTVtIbcY.js → payment.service-BnDr_9vX.js} +5 -4
- package/dist/esm/payments-list-core.entry.js +16 -17
- package/dist/esm/{payments-list-params-state-DFWVMJRJ.js → payments-list-params-state-SMXQIZTt.js} +1 -1
- package/dist/esm/{payments-status-CawBLR48.js → payments-status-DVYzDcJ4.js} +2 -2
- package/dist/esm/{payments-table-WQAD1CSz.js → payments-table-BuiNqlwv.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +12 -14
- package/dist/esm/{payout.service-j8w34GsW.js → payout.service-Ai1aEuFC.js} +5 -4
- package/dist/esm/payouts-list-core.entry.js +16 -17
- package/dist/esm/{payouts-list-params-state-DFWVMJRJ.js → payouts-list-params-state-SMXQIZTt.js} +1 -1
- package/dist/esm/{payouts-status-DB_PJap6.js → payouts-status-Bae6G8Hq.js} +2 -2
- package/dist/esm/{payouts-table-DRISll8u.js → payouts-table-cgIXP54P.js} +4 -4
- package/dist/esm/{schema-validations-DLWfpHyI.js → schema-validations-DcR1ujuX.js} +1 -1
- package/dist/esm/{skeleton-D1Z4a8af.js → skeleton-CZfDofm6.js} +2 -2
- package/dist/esm/{spinner-BlffecO5.js → spinner-D-vbFqC6.js} +2 -2
- package/dist/esm/{styled-host-DtvbNFVU.js → styled-host-B_XBaM7z.js} +1 -1
- package/dist/esm/{table-BqxKVRry.js → table-CTPfsGKi.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +15 -16
- package/dist/esm/{terminal-orders-list-params-state-DFWVMJRJ.js → terminal-orders-list-params-state-SMXQIZTt.js} +1 -1
- package/dist/esm/{terminal-orders-table-BWf9quiN.js → terminal-orders-table-CvK516_V.js} +9 -8
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-BDRGcUj-.js → terminal.service-BLeBxTv4.js} +5 -4
- package/dist/esm/terminals-list-core.entry.js +15 -16
- package/dist/esm/terminals-list-params-state-SMXQIZTt.js +16 -0
- package/dist/esm/{terminals-table-BBPQRWja.js → terminals-table-2QGQITkt.js} +4 -4
- package/dist/esm/{utils-Cu5hITuT.js → utils-B7jE0g5_.js} +1661 -4
- package/dist/esm/{utils-BZvep88z.js → utils-BeQLScSm.js} +1 -1
- package/dist/esm/{utils-sZ_6zOKQ.js → utils-CBJo9jNE.js} +2 -2
- package/dist/esm/webcomponents.js +5 -4
- package/dist/module/Analytics.js +1 -0
- package/dist/module/Payment.js +204 -0
- package/dist/module/Refund.js +9 -202
- package/dist/module/additional-questions-details2.js +1 -1
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/additional-statement.js +2 -2
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-document-inputs.js +4 -3
- package/dist/module/bank-account-form-inputs2.js +2 -2
- package/dist/module/bank-account-form.js +3 -3
- package/dist/module/bank-account.js +3 -4
- package/dist/module/billing-form.js +58 -21
- package/dist/module/billing-information-form.js +4 -11
- package/dist/module/business-additional-questions-form-step-core.js +1 -1
- package/dist/module/business-additional-questions-form-step.js +2 -2
- package/dist/module/business-bank-account-form-step-core.js +4 -3
- package/dist/module/business-bank-account-form-step.js +4 -3
- package/dist/module/business-core-info-form-step-core.js +1 -1
- package/dist/module/business-core-info-form-step.js +2 -2
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-details-core2.js +1 -2
- package/dist/module/business-documents-on-file2.js +2 -3
- package/dist/module/business-owners-form-step-core.js +1 -2
- package/dist/module/business-owners-form-step.js +2 -2
- package/dist/module/business-representative-form-inputs.js +2 -2
- package/dist/module/business-representative-form-step-core.js +1 -1
- package/dist/module/business-representative-form-step.js +2 -2
- package/dist/module/business-representative.js +2 -2
- package/dist/module/business-terms-conditions-form-step.js +3 -2
- package/dist/module/business.service.js +1 -0
- package/dist/module/cancellation-policy.js +2 -2
- package/dist/module/card-form.js +3 -3
- package/dist/module/card-form2.js +3 -4
- package/dist/module/checkout.service.js +1 -0
- package/dist/module/checkout.store.js +1 -0
- package/dist/module/checkouts-list-core2.js +5 -6
- package/dist/module/core-info-details2.js +1 -1
- package/dist/module/custom-popper2.js +3 -3
- package/dist/module/customer-details.js +2 -2
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +3 -3
- package/dist/module/dispute-notification.js +2 -3
- package/dist/module/dispute-response-actions.js +1 -0
- package/dist/module/dispute-response-core.js +2 -2
- package/dist/module/dispute-response.js +2 -3
- package/dist/module/duplicate-charge.js +2 -2
- package/dist/module/electronic-evidence.js +2 -2
- package/dist/module/form-alert2.js +2 -2
- package/dist/module/form-control-checkbox2.js +4 -5
- package/dist/module/form-control-date2.js +3 -4
- package/dist/module/form-control-file-v22.js +2 -2
- package/dist/module/form-control-file2.js +3 -4
- package/dist/module/form-control-help-text2.js +1 -1
- package/dist/module/form-control-monetary-provisioning2.js +4 -5
- package/dist/module/form-control-monetary2.js +4 -5
- package/dist/module/form-control-number-masked2.js +3 -4
- package/dist/module/form-control-number.js +4 -5
- package/dist/module/form-control-radio2.js +4 -4
- package/dist/module/form-control-select2.js +3 -4
- package/dist/module/form-control-text2.js +3 -4
- package/dist/module/form-control-textarea2.js +4 -4
- package/dist/module/form-control-tooltip2.js +1 -1
- package/dist/module/form.js +869 -745
- package/dist/module/get-payment-details.js +3 -2
- package/dist/module/get-subaccounts.js +2 -1
- package/dist/module/gross-payment-chart-core2.js +3 -3
- package/dist/module/header-3.js +8 -0
- package/dist/module/hidden-input2.js +3 -3
- package/dist/module/identity-address-form.js +2 -2
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/index2.js +21 -5
- package/dist/module/justifi-apple-pay.d.ts +11 -0
- package/dist/module/justifi-apple-pay.js +876 -0
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +3 -3
- package/dist/module/justifi-button2.js +2 -2
- package/dist/module/justifi-checkout.js +3 -4
- package/dist/module/justifi-checkouts-list-filters.js +5 -5
- package/dist/module/justifi-checkouts-list.js +5 -5
- package/dist/module/justifi-config-provider.js +1 -1
- package/dist/module/justifi-dispute-management.js +4 -3
- package/dist/module/justifi-gross-payment-chart.js +2 -1
- package/dist/module/justifi-header2.js +4 -8
- package/dist/module/justifi-modular-checkout.js +2 -2
- package/dist/module/justifi-new-payment-method.d.ts +11 -0
- package/dist/module/justifi-new-payment-method.js +219 -0
- package/dist/module/justifi-order-terminals.js +5 -6
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-method-options.d.ts +11 -0
- package/dist/module/justifi-payment-method-options.js +6 -0
- package/dist/module/justifi-payment-provisioning.js +3 -2
- package/dist/module/justifi-payment-transactions-list.js +6 -7
- package/dist/module/justifi-payments-list-filters.js +4 -5
- package/dist/module/justifi-payments-list.js +5 -5
- package/dist/module/justifi-payout-details.js +4 -3
- package/dist/module/justifi-payout-transactions-list.js +6 -7
- package/dist/module/justifi-payouts-list-filters.js +4 -5
- package/dist/module/justifi-payouts-list.js +5 -5
- package/dist/module/justifi-refund-payment.js +3 -3
- package/dist/module/justifi-saved-payment-method.js +3 -3
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/justifi-skeleton.js +2 -2
- package/dist/module/justifi-terminal-orders-list-filters.js +6 -6
- package/dist/module/justifi-terminal-orders-list.js +5 -5
- package/dist/module/justifi-terminals-list-filters.js +5 -5
- package/dist/module/justifi-terminals-list.js +5 -5
- package/dist/module/justifi-tokenize-payment-method.js +47 -285
- package/dist/module/legal-address-details2.js +1 -1
- package/dist/module/legal-address-form-step-core.js +1 -1
- package/dist/module/legal-address-form-step.js +2 -2
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/modular-checkout.js +125 -15
- package/dist/module/owner-details2.js +1 -1
- package/dist/module/owner-form-core2.js +3 -4
- package/dist/module/owner-form-inputs2.js +2 -2
- package/dist/module/owner-form.js +2 -2
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +2 -2
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +10 -11
- package/dist/module/payment-method-option-utils.js +10 -2
- package/dist/module/payment-method-option2.js +3 -4
- package/dist/module/payment-method-options.js +129 -0
- package/dist/module/payment-provisioning-core.js +2 -3
- package/dist/module/payment-provisioning-form-buttons.js +2 -3
- package/dist/module/payment-provisioning-form-steps.js +2 -2
- package/dist/module/payment-provisioning-loading.js +0 -1
- package/dist/module/payment.service.js +1 -0
- package/dist/module/payments-list-core2.js +5 -6
- package/dist/module/payout-details-core2.js +5 -6
- package/dist/module/payout.service.js +1 -0
- package/dist/module/payouts-list-core2.js +5 -6
- package/dist/module/postal-code-form.js +3 -5
- package/dist/module/product-or-service.js +2 -2
- package/dist/module/refund-policy.js +2 -2
- package/dist/module/representative-details2.js +1 -1
- package/dist/module/save-new-payment-method.js +2 -3
- package/dist/module/saved-payment-methods.js +2 -3
- package/dist/module/season-interruption-insurance-core.js +2 -3
- package/dist/module/sezzle-payment-method.js +2 -3
- package/dist/module/shipping-details.js +2 -2
- package/dist/module/spinner.js +1 -1
- package/dist/module/summary.js +2 -3
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +6 -7
- package/dist/module/terminal-quantity-selector2.js +3 -3
- package/dist/module/terminal.service.js +1 -0
- package/dist/module/terminals-list-core2.js +5 -6
- package/dist/module/utils2.js +1661 -4
- package/dist/types/api/ApplePay.d.ts +195 -0
- package/dist/types/api/ComponentError.d.ts +7 -0
- package/dist/types/api/services/apple-pay.service.d.ts +58 -0
- package/dist/types/components/checkout/billing-form/billing-form.d.ts +9 -3
- package/dist/types/components/checkout/checkout.d.ts +1 -1
- package/dist/types/components/checkout/new-payment-method.d.ts +31 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +32 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +9 -2
- package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +38 -0
- package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +0 -2
- package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +0 -1
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +14 -37
- package/dist/types/components.d.ts +232 -68
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/dist/types/store/checkout.store.d.ts +1 -0
- package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
- package/dist/types/ui-components/index.d.ts +0 -1
- package/dist/webcomponents/p-0144c42b.entry.js +1 -0
- package/dist/webcomponents/{p-a1c7c873.entry.js → p-06ff03e7.entry.js} +1 -1
- package/dist/webcomponents/{p-b860ec37.entry.js → p-0c37be96.entry.js} +1 -1
- package/dist/webcomponents/{p-bbd0aa4e.entry.js → p-0f5e61bc.entry.js} +1 -1
- package/dist/webcomponents/p-10e32b38.entry.js +1 -0
- package/dist/webcomponents/p-127406b5.entry.js +1 -0
- package/dist/webcomponents/p-2c6be750.entry.js +1 -0
- package/dist/webcomponents/p-30c432ab.entry.js +1 -0
- package/dist/webcomponents/{p-f9bddc04.entry.js → p-31793643.entry.js} +1 -1
- package/dist/webcomponents/p-35198019.entry.js +1 -0
- package/dist/webcomponents/{p-f67133f0.entry.js → p-367338c8.entry.js} +1 -1
- package/dist/webcomponents/p-39af38f6.entry.js +1 -0
- package/dist/webcomponents/p-453bcb9d.entry.js +1 -0
- package/dist/webcomponents/{p-7a8a06d6.entry.js → p-463ae23a.entry.js} +1 -1
- package/dist/webcomponents/p-49754c1d.entry.js +1 -0
- package/dist/webcomponents/p-4afa5d56.entry.js +1 -0
- package/dist/webcomponents/p-509d9191.entry.js +1 -0
- package/dist/webcomponents/p-52be4ff0.entry.js +1 -0
- package/dist/webcomponents/p-544c59ac.entry.js +1 -0
- package/dist/webcomponents/p-54cc3fc8.entry.js +1 -0
- package/dist/webcomponents/p-54ff0e4f.entry.js +1 -0
- package/dist/webcomponents/{p-BxfUcCXo.js → p-5aA7gjr5.js} +1 -1
- package/dist/webcomponents/p-5aa88189.entry.js +1 -0
- package/dist/webcomponents/p-5c82e024.entry.js +1 -0
- package/dist/webcomponents/p-5cfca5e0.entry.js +1 -0
- package/dist/webcomponents/{p-84df9f26.entry.js → p-5e10aa65.entry.js} +1 -1
- package/dist/webcomponents/p-5fbc0ea6.entry.js +1 -0
- package/dist/webcomponents/p-6567c1ce.entry.js +1 -0
- package/dist/webcomponents/p-689562b1.entry.js +1 -0
- package/dist/webcomponents/p-69910853.entry.js +1 -0
- package/dist/webcomponents/p-6d8355f0.entry.js +1 -0
- package/dist/webcomponents/p-6da19fde.entry.js +1 -0
- package/dist/webcomponents/p-6e40a80f.entry.js +1 -0
- package/dist/webcomponents/p-6f94530d.entry.js +1 -0
- package/dist/webcomponents/p-70beb132.entry.js +1 -0
- package/dist/webcomponents/p-79454e79.entry.js +1 -0
- package/dist/webcomponents/p-79684a85.entry.js +1 -0
- package/dist/webcomponents/{p-BH0Xfn-F.js → p-7MWRbTXI.js} +1 -1
- package/dist/webcomponents/p-7WIgS5RM.js +1 -0
- package/dist/webcomponents/p-7b5d48f7.entry.js +1 -0
- package/dist/webcomponents/p-7b5e899e.entry.js +1 -0
- package/dist/webcomponents/p-7d59de81.entry.js +1 -0
- package/dist/webcomponents/p-7f348de2.entry.js +1 -0
- package/dist/webcomponents/p-7f4305a2.entry.js +1 -0
- package/dist/webcomponents/{p-351ffd2a.entry.js → p-904acc70.entry.js} +1 -1
- package/dist/webcomponents/{p-a9ed792e.entry.js → p-92529be9.entry.js} +1 -1
- package/dist/webcomponents/p-9b6c1b33.entry.js +1 -0
- package/dist/webcomponents/p-9f3cf5a3.entry.js +1 -0
- package/dist/webcomponents/p-9y5MOK55.js +1 -0
- package/dist/webcomponents/{p-55iuf7iW.js → p-B2csvKrZ.js} +1 -1
- package/dist/webcomponents/p-B7jE0g5_.js +1 -0
- package/dist/webcomponents/p-B8tUOqiv.js +1 -0
- package/dist/webcomponents/p-B9GgcQ-7.js +1 -0
- package/dist/webcomponents/p-BDUTtU21.js +1 -0
- package/dist/webcomponents/{p-BfEOvp9h.js → p-BFL-wXPM.js} +1 -1
- package/dist/webcomponents/p-BLtzn9pE.js +1 -0
- package/dist/webcomponents/p-BO4xqc4w.js +1 -0
- package/dist/webcomponents/{p-DpUqxsf5.js → p-BRtwZAeZ.js} +1 -1
- package/dist/webcomponents/p-BVD7g3cE.js +1 -0
- package/dist/webcomponents/p-BYakc1Om.js +1 -0
- package/dist/webcomponents/p-Bou1Z4Bm.js +1 -0
- package/dist/webcomponents/p-Bt388eye.js +1 -0
- package/dist/webcomponents/{p-CDIPkflV.js → p-BvyiDejp.js} +1 -1
- package/dist/webcomponents/p-Bz8JT676.js +1 -0
- package/dist/webcomponents/p-C0EFqY0W.js +1 -0
- package/dist/webcomponents/{p-AbSg_vYv.js → p-C8ll3Wwp.js} +1 -1
- package/dist/webcomponents/p-CBWeXiqe.js +1 -0
- package/dist/webcomponents/{p-D0I-tRSs.js → p-CEYGUVns.js} +1 -1
- package/dist/webcomponents/p-CLjv4frq.js +1 -0
- package/dist/webcomponents/p-CR9D6mKt.js +1 -0
- package/dist/webcomponents/{p-o5iASgog.js → p-CRFzwZW6.js} +1 -1
- package/dist/webcomponents/p-CVQyw7ao.js +1 -0
- package/dist/webcomponents/{p-JOSiCHl7.js → p-CYBR4K2p.js} +1 -1
- package/dist/webcomponents/p-Cc27pPPQ.js +1 -0
- package/dist/webcomponents/p-Cjcsf8ku.js +1 -0
- package/dist/webcomponents/p-Cm_ywVHL.js +1 -0
- package/dist/webcomponents/p-D2muobcE.js +1 -0
- package/dist/webcomponents/{p-CKg_luIy.js → p-D3G5aVLy.js} +1 -1
- package/dist/webcomponents/p-D522G7Ja.js +1 -0
- package/dist/webcomponents/p-DCDU6JB3.js +1 -0
- package/dist/webcomponents/p-DH8F0bsw.js +1 -0
- package/dist/webcomponents/p-DQuL1Twl.js +1 -0
- package/dist/webcomponents/{p-d6tXI5Iw.js → p-DSP8qjHL.js} +1 -1
- package/dist/webcomponents/p-DSekXpCa.js +1 -0
- package/dist/webcomponents/p-DSfL8jLw.js +1 -0
- package/dist/webcomponents/p-DVPcHdzq.js +1 -0
- package/dist/webcomponents/{p-Ce8QXyUM.js → p-DX_mixvZ.js} +1 -1
- package/dist/webcomponents/p-DYGIC0QH.js +1 -0
- package/dist/webcomponents/p-DaDsBt65.js +1 -0
- package/dist/webcomponents/p-DiWKhLRS.js +1 -0
- package/dist/webcomponents/{p-DPnS0F0Y.js → p-Dj1uo4J3.js} +1 -1
- package/dist/webcomponents/p-DtsIovbb.js +1 -0
- package/dist/webcomponents/p-Dv7YEshZ.js +1 -0
- package/dist/webcomponents/p-FdjD8N0u.js +1 -0
- package/dist/webcomponents/p-ObR0KZw0.js +1 -0
- package/dist/webcomponents/p-PgEzcvI6.js +1 -0
- package/dist/webcomponents/p-Sz-UKsNL.js +1 -0
- package/dist/webcomponents/{p-1b7b7210.entry.js → p-a2b597ef.entry.js} +1 -1
- package/dist/webcomponents/p-a4cb4c39.entry.js +1 -0
- package/dist/webcomponents/p-a6fdf5b8.entry.js +1 -0
- package/dist/webcomponents/p-b06b1886.entry.js +1 -0
- package/dist/webcomponents/p-b0714111.entry.js +1 -0
- package/dist/webcomponents/p-b2098935.entry.js +1 -0
- package/dist/webcomponents/p-b56d75d5.entry.js +1 -0
- package/dist/webcomponents/p-b5ed41c0.entry.js +1 -0
- package/dist/webcomponents/p-baaef16c.entry.js +1 -0
- package/dist/webcomponents/{p-366dba79.entry.js → p-bec23c19.entry.js} +1 -1
- package/dist/webcomponents/{p-e2ee826e.entry.js → p-c663b439.entry.js} +1 -1
- package/dist/webcomponents/p-c9d5625c.entry.js +1 -0
- package/dist/webcomponents/p-cd6c6c2b.entry.js +1 -0
- package/dist/webcomponents/p-cf115375.entry.js +1 -0
- package/dist/webcomponents/p-d175799a.entry.js +1 -0
- package/dist/webcomponents/p-d5571d18.entry.js +1 -0
- package/dist/webcomponents/p-d5f70eb0.entry.js +1 -0
- package/dist/webcomponents/p-da5a9a72.entry.js +1 -0
- package/dist/webcomponents/p-e105f664.entry.js +1 -0
- package/dist/webcomponents/p-e5c94a1f.entry.js +1 -0
- package/dist/webcomponents/p-e86c876e.entry.js +1 -0
- package/dist/webcomponents/{p-8aefc49f.entry.js → p-ee2afa41.entry.js} +4 -4
- package/dist/webcomponents/p-ef472343.entry.js +1 -0
- package/dist/webcomponents/p-f35e96ce.entry.js +1 -0
- package/dist/webcomponents/p-f3f4bbef.entry.js +1 -0
- package/dist/webcomponents/p-f6ca1443.entry.js +1 -0
- package/dist/webcomponents/{p-c0bd6405.entry.js → p-fe001786.entry.js} +1 -1
- package/dist/webcomponents/{p-eccb77fa.entry.js → p-fffd5bc7.entry.js} +1 -1
- package/dist/webcomponents/p-kpoIU4v_.js +2 -0
- package/dist/webcomponents/p-pska2q1M.js +1 -0
- package/dist/webcomponents/p-vHbP4g3Q.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/dinero-J-SRFKIR.js +0 -1673
- package/dist/cjs/header-2-BXQLJn1q.js +0 -10
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +0 -49
- package/dist/cjs/terminals-list-params-state-DZUKBmLC.js +0 -22
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +0 -155
- package/dist/esm/dinero-DizZAUMY.js +0 -1671
- package/dist/esm/header-2-C4ZCdZwi.js +0 -8
- package/dist/esm/justifi-billing-form_2.entry.js +0 -46
- package/dist/esm/terminals-list-params-state-DFWVMJRJ.js +0 -16
- package/dist/module/dinero.js +0 -1671
- package/dist/module/justifi-radio-list-item.d.ts +0 -11
- package/dist/module/justifi-radio-list-item.js +0 -6
- package/dist/module/justifi-radio-list-item2.js +0 -55
- package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +0 -12
- package/dist/webcomponents/p-072d93c9.entry.js +0 -1
- package/dist/webcomponents/p-0dcc215b.entry.js +0 -1
- package/dist/webcomponents/p-0e6797c4.entry.js +0 -1
- package/dist/webcomponents/p-0fc026aa.entry.js +0 -1
- package/dist/webcomponents/p-18aa8190.entry.js +0 -1
- package/dist/webcomponents/p-19c07145.entry.js +0 -1
- package/dist/webcomponents/p-1Or21UzV.js +0 -1
- package/dist/webcomponents/p-1f76ae29.entry.js +0 -1
- package/dist/webcomponents/p-20eb7015.entry.js +0 -1
- package/dist/webcomponents/p-2437703b.entry.js +0 -1
- package/dist/webcomponents/p-24f30623.entry.js +0 -1
- package/dist/webcomponents/p-2a5ac7c9.entry.js +0 -1
- package/dist/webcomponents/p-2abae807.entry.js +0 -1
- package/dist/webcomponents/p-35411771.entry.js +0 -1
- package/dist/webcomponents/p-3add112c.entry.js +0 -1
- package/dist/webcomponents/p-48e406f1.entry.js +0 -1
- package/dist/webcomponents/p-4d0373a7.entry.js +0 -1
- package/dist/webcomponents/p-5cb87816.entry.js +0 -1
- package/dist/webcomponents/p-628cf20a.entry.js +0 -1
- package/dist/webcomponents/p-66422cbd.entry.js +0 -1
- package/dist/webcomponents/p-6f397c80.entry.js +0 -1
- package/dist/webcomponents/p-7929bdae.entry.js +0 -1
- package/dist/webcomponents/p-7a52bdb5.entry.js +0 -1
- package/dist/webcomponents/p-7e24a1f7.entry.js +0 -1
- package/dist/webcomponents/p-8027e13f.entry.js +0 -1
- package/dist/webcomponents/p-86b166eb.entry.js +0 -1
- package/dist/webcomponents/p-889e8be8.entry.js +0 -1
- package/dist/webcomponents/p-8a1171de.entry.js +0 -1
- package/dist/webcomponents/p-8b2f81b4.entry.js +0 -1
- package/dist/webcomponents/p-97429fb4.entry.js +0 -1
- package/dist/webcomponents/p-98b6943a.entry.js +0 -1
- package/dist/webcomponents/p-9bf095d2.entry.js +0 -1
- package/dist/webcomponents/p-9c1e3fb8.entry.js +0 -1
- package/dist/webcomponents/p-B2uBb14Y.js +0 -1
- package/dist/webcomponents/p-BF51n3KG.js +0 -1
- package/dist/webcomponents/p-BJuv5Y2i.js +0 -1
- package/dist/webcomponents/p-BQLEjYfZ.js +0 -1
- package/dist/webcomponents/p-BRJ4FIJH.js +0 -1
- package/dist/webcomponents/p-BdTK0wi9.js +0 -1
- package/dist/webcomponents/p-BeNhCG1Q.js +0 -1
- package/dist/webcomponents/p-BhrFjjAs.js +0 -1
- package/dist/webcomponents/p-BtT7kqMw.js +0 -1
- package/dist/webcomponents/p-ButA5T4e.js +0 -1
- package/dist/webcomponents/p-C3e-DgwK.js +0 -1
- package/dist/webcomponents/p-CKRDBISo.js +0 -1
- package/dist/webcomponents/p-CXLazxt0.js +0 -1
- package/dist/webcomponents/p-CfBKn_Vl.js +0 -1
- package/dist/webcomponents/p-ChzWF0s3.js +0 -1
- package/dist/webcomponents/p-CjAMuB2J.js +0 -1
- package/dist/webcomponents/p-Cjf9yu8r.js +0 -1
- package/dist/webcomponents/p-ClSZshaa.js +0 -1
- package/dist/webcomponents/p-Cwt_9Jzb.js +0 -1
- package/dist/webcomponents/p-D0Ko1H7J.js +0 -1
- package/dist/webcomponents/p-DC63XVwu.js +0 -1
- package/dist/webcomponents/p-DKClunJd.js +0 -1
- package/dist/webcomponents/p-DPfZxsq9.js +0 -1
- package/dist/webcomponents/p-DR0bMp9p.js +0 -1
- package/dist/webcomponents/p-DVnVdicA.js +0 -1
- package/dist/webcomponents/p-DZR542ci.js +0 -1
- package/dist/webcomponents/p-Dcbfnfn2.js +0 -1
- package/dist/webcomponents/p-Dn0KGDtq.js +0 -1
- package/dist/webcomponents/p-DniBAXrh.js +0 -1
- package/dist/webcomponents/p-DxEnw2tJ.js +0 -1
- package/dist/webcomponents/p-EAEmpCru.js +0 -1
- package/dist/webcomponents/p-N3w5zrz2.js +0 -2
- package/dist/webcomponents/p-NqdaxjDT.js +0 -1
- package/dist/webcomponents/p-Ph6Ebeu2.js +0 -1
- package/dist/webcomponents/p-RXUoM7A2.js +0 -1
- package/dist/webcomponents/p-a95db9a6.entry.js +0 -1
- package/dist/webcomponents/p-acf4c099.entry.js +0 -1
- package/dist/webcomponents/p-b47000f7.entry.js +0 -1
- package/dist/webcomponents/p-b893d5fa.entry.js +0 -1
- package/dist/webcomponents/p-b9d1d9dd.entry.js +0 -1
- package/dist/webcomponents/p-baa04544.entry.js +0 -1
- package/dist/webcomponents/p-bf2ba40d.entry.js +0 -1
- package/dist/webcomponents/p-c06bd8ea.entry.js +0 -1
- package/dist/webcomponents/p-c0955693.entry.js +0 -1
- package/dist/webcomponents/p-c6473b9b.entry.js +0 -1
- package/dist/webcomponents/p-c70dc6bd.entry.js +0 -1
- package/dist/webcomponents/p-ca6d05f9.entry.js +0 -1
- package/dist/webcomponents/p-d1c1c642.entry.js +0 -1
- package/dist/webcomponents/p-d3c966f4.entry.js +0 -1
- package/dist/webcomponents/p-d49b80b1.entry.js +0 -1
- package/dist/webcomponents/p-d69d09e6.entry.js +0 -1
- package/dist/webcomponents/p-dd3749ed.entry.js +0 -1
- package/dist/webcomponents/p-dfaf5b14.entry.js +0 -1
- package/dist/webcomponents/p-ede5eb9d.entry.js +0 -1
- package/dist/webcomponents/p-eefe4d71.entry.js +0 -1
- package/dist/webcomponents/p-f4f3bca9.entry.js +0 -1
- package/dist/webcomponents/p-f6ad1d58.entry.js +0 -1
- package/dist/webcomponents/p-pGzabKc7.js +0 -1
- package/dist/webcomponents/p-rPeW3G6n.js +0 -1
- package/dist/webcomponents/p-w128-0Mj.js +0 -1
- package/dist/webcomponents/p-xIyLUOJ6.js +0 -1
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { ApplePaySessionStatus, ApplePayHelpers, ApplePayConfig, ApplePayPaymentRequest, } from "../ApplePay";
|
|
2
|
+
const isValidMerchantSession = (merchantSession) => {
|
|
3
|
+
const requiredFields = [
|
|
4
|
+
'merchantSessionIdentifier',
|
|
5
|
+
'nonce',
|
|
6
|
+
'merchantIdentifier',
|
|
7
|
+
'epochTimestamp',
|
|
8
|
+
'expiresAt',
|
|
9
|
+
];
|
|
10
|
+
const missingFields = requiredFields.filter((field) => !merchantSession[field]);
|
|
11
|
+
if (missingFields.length > 0) {
|
|
12
|
+
console.error('Missing required fields in merchant session:', missingFields);
|
|
13
|
+
console.error('Available fields:', Object.keys(merchantSession));
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
const now = Date.now();
|
|
17
|
+
if (merchantSession.expiresAt && merchantSession.expiresAt < now) {
|
|
18
|
+
console.error('Merchant session is expired:', {
|
|
19
|
+
expiresAt: merchantSession.expiresAt,
|
|
20
|
+
currentTime: now,
|
|
21
|
+
expired: merchantSession.expiresAt < now,
|
|
22
|
+
});
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
return true;
|
|
26
|
+
};
|
|
27
|
+
export class ApplePayService {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.apiBaseUrl = 'https://api.justifi-staging.com';
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Set custom API base URL
|
|
33
|
+
*/
|
|
34
|
+
setApiBaseUrl(url) {
|
|
35
|
+
this.apiBaseUrl = url;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Initialize Apple Pay configuration
|
|
39
|
+
*/
|
|
40
|
+
initialize(applePayConfig) {
|
|
41
|
+
this.applePayConfig = new ApplePayConfig(applePayConfig);
|
|
42
|
+
if (!this.applePayConfig.isValid) {
|
|
43
|
+
throw new Error('Invalid Apple Pay configuration provided');
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Validate merchant with Apple Pay servers via API (fixed to match original logic)
|
|
48
|
+
*/
|
|
49
|
+
async validateMerchant(payload) {
|
|
50
|
+
const endpoint = `${this.apiBaseUrl}/apple_pay/merchant_session`;
|
|
51
|
+
const body = payload;
|
|
52
|
+
const response = await fetch(endpoint, {
|
|
53
|
+
method: 'POST',
|
|
54
|
+
headers: {
|
|
55
|
+
'Content-Type': 'application/json',
|
|
56
|
+
Accept: 'application/json',
|
|
57
|
+
},
|
|
58
|
+
body: JSON.stringify(body),
|
|
59
|
+
});
|
|
60
|
+
if (!response.ok) {
|
|
61
|
+
const errorData = await response.text();
|
|
62
|
+
console.error('Backend validation failed - Raw response:', errorData);
|
|
63
|
+
try {
|
|
64
|
+
const jsonError = JSON.parse(errorData);
|
|
65
|
+
console.error('Backend validation failed - Parsed error:', jsonError);
|
|
66
|
+
}
|
|
67
|
+
catch (parseError) {
|
|
68
|
+
console.error('Could not parse error response as JSON:', parseError);
|
|
69
|
+
}
|
|
70
|
+
throw new Error(`Merchant validation failed: ${response.status}`);
|
|
71
|
+
}
|
|
72
|
+
const merchantSession = await response.json();
|
|
73
|
+
return merchantSession;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Process Apple Pay payment via API (fixed to match original logic)
|
|
77
|
+
*/
|
|
78
|
+
async processPayment(payload) {
|
|
79
|
+
const endpoint = `${this.apiBaseUrl}/apple_pay/process_token`;
|
|
80
|
+
const body = payload;
|
|
81
|
+
const response = await fetch(endpoint, {
|
|
82
|
+
method: 'POST',
|
|
83
|
+
headers: {
|
|
84
|
+
'Content-Type': 'application/json',
|
|
85
|
+
Accept: 'application/json',
|
|
86
|
+
},
|
|
87
|
+
body: JSON.stringify(body),
|
|
88
|
+
});
|
|
89
|
+
const result = await response.json();
|
|
90
|
+
return {
|
|
91
|
+
success: response.ok && result.status === 'success',
|
|
92
|
+
data: result,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Check if Apple Pay is available on this device/browser
|
|
97
|
+
*/
|
|
98
|
+
isAvailable() {
|
|
99
|
+
return (ApplePayHelpers.isApplePaySupported() && ApplePayHelpers.canMakePayments());
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Check if the user has an active card for the merchant
|
|
103
|
+
*/
|
|
104
|
+
async canMakePaymentsWithActiveCard() {
|
|
105
|
+
if (!this.applePayConfig) {
|
|
106
|
+
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
107
|
+
}
|
|
108
|
+
return await ApplePayHelpers.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Start Apple Pay session
|
|
112
|
+
*/
|
|
113
|
+
async startPaymentSession(paymentRequest) {
|
|
114
|
+
if (!this.applePayConfig) {
|
|
115
|
+
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
116
|
+
}
|
|
117
|
+
if (!this.isAvailable()) {
|
|
118
|
+
throw new Error('Apple Pay is not available on this device/browser');
|
|
119
|
+
}
|
|
120
|
+
const request = new ApplePayPaymentRequest(paymentRequest);
|
|
121
|
+
if (!request.isValid) {
|
|
122
|
+
throw new Error('Invalid payment request provided');
|
|
123
|
+
}
|
|
124
|
+
this.currentPaymentRequest = request;
|
|
125
|
+
return new Promise((resolve, reject) => {
|
|
126
|
+
try {
|
|
127
|
+
this.currentSession = new window.ApplePaySession(3, request);
|
|
128
|
+
this.setupSessionEventHandlers(resolve, reject);
|
|
129
|
+
this.currentSession.begin();
|
|
130
|
+
}
|
|
131
|
+
catch (error) {
|
|
132
|
+
reject({
|
|
133
|
+
success: false,
|
|
134
|
+
error: {
|
|
135
|
+
code: 'SESSION_ERROR',
|
|
136
|
+
message: error instanceof Error
|
|
137
|
+
? error.message
|
|
138
|
+
: 'Failed to start Apple Pay session',
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Abort current Apple Pay session
|
|
146
|
+
*/
|
|
147
|
+
abortPaymentSession() {
|
|
148
|
+
if (this.currentSession) {
|
|
149
|
+
this.currentSession.abort();
|
|
150
|
+
this.currentSession = undefined;
|
|
151
|
+
this.currentPaymentRequest = undefined;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Setup Apple Pay session event handlers
|
|
156
|
+
*/
|
|
157
|
+
setupSessionEventHandlers(resolve, reject) {
|
|
158
|
+
if (!this.currentSession ||
|
|
159
|
+
!this.applePayConfig ||
|
|
160
|
+
!this.currentPaymentRequest) {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this.currentSession.onvalidatemerchant = async (event) => {
|
|
164
|
+
try {
|
|
165
|
+
const validationPayload = {
|
|
166
|
+
validation_url: event.validationURL,
|
|
167
|
+
};
|
|
168
|
+
const merchantSession = await this.validateMerchant(validationPayload);
|
|
169
|
+
if (merchantSession && isValidMerchantSession(merchantSession)) {
|
|
170
|
+
try {
|
|
171
|
+
this.currentSession.completeMerchantValidation(merchantSession);
|
|
172
|
+
}
|
|
173
|
+
catch (completionError) {
|
|
174
|
+
console.error('Error calling completeMerchantValidation:', completionError);
|
|
175
|
+
throw completionError;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
this.currentSession.abort();
|
|
180
|
+
reject({
|
|
181
|
+
success: false,
|
|
182
|
+
error: {
|
|
183
|
+
code: 'MERCHANT_VALIDATION_ERROR',
|
|
184
|
+
message: 'Merchant validation failed',
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
catch (error) {
|
|
190
|
+
console.error('=== MERCHANT VALIDATION ERROR ===');
|
|
191
|
+
console.error('Error during merchant validation:', error);
|
|
192
|
+
console.error('Error stack:', error.stack);
|
|
193
|
+
this.currentSession.abort();
|
|
194
|
+
reject({
|
|
195
|
+
success: false,
|
|
196
|
+
error: {
|
|
197
|
+
code: 'MERCHANT_VALIDATION_ERROR',
|
|
198
|
+
message: error instanceof Error
|
|
199
|
+
? error.message
|
|
200
|
+
: 'Merchant validation failed',
|
|
201
|
+
},
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
this.currentSession.onpaymentauthorized = async (event) => {
|
|
206
|
+
try {
|
|
207
|
+
const payment = event.payment;
|
|
208
|
+
const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
|
|
209
|
+
name: this.currentPaymentRequest.total.label,
|
|
210
|
+
price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
|
|
211
|
+
description: this.currentPaymentRequest.total.label,
|
|
212
|
+
} });
|
|
213
|
+
const paymentResult = await this.processPayment(paymentPayload);
|
|
214
|
+
if (paymentResult.success) {
|
|
215
|
+
this.currentSession.completePayment({
|
|
216
|
+
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
217
|
+
});
|
|
218
|
+
resolve({
|
|
219
|
+
success: true,
|
|
220
|
+
token: payment.token,
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
console.error('PSP reported payment failure:', paymentResult.data);
|
|
225
|
+
this.currentSession.completePayment({
|
|
226
|
+
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
227
|
+
});
|
|
228
|
+
reject({
|
|
229
|
+
success: false,
|
|
230
|
+
error: {
|
|
231
|
+
code: 'PAYMENT_PROCESSING_ERROR',
|
|
232
|
+
message: 'Payment processing failed',
|
|
233
|
+
},
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
catch (error) {
|
|
238
|
+
console.error('=== PAYMENT PROCESSING ERROR ===');
|
|
239
|
+
console.error('Error processing payment:', error);
|
|
240
|
+
console.error('Error stack:', error.stack);
|
|
241
|
+
this.currentSession.completePayment({
|
|
242
|
+
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
243
|
+
});
|
|
244
|
+
reject({
|
|
245
|
+
success: false,
|
|
246
|
+
error: {
|
|
247
|
+
code: 'PAYMENT_PROCESSING_ERROR',
|
|
248
|
+
message: error instanceof Error
|
|
249
|
+
? error.message
|
|
250
|
+
: 'Payment processing failed',
|
|
251
|
+
},
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
finally {
|
|
255
|
+
this.currentSession = undefined;
|
|
256
|
+
this.currentPaymentRequest = undefined;
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
this.currentSession.onpaymentmethodselected = () => {
|
|
260
|
+
const paymentUpdate = {
|
|
261
|
+
newTotal: this.currentPaymentRequest.total,
|
|
262
|
+
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
263
|
+
};
|
|
264
|
+
try {
|
|
265
|
+
this.currentSession.completePaymentMethodSelection(paymentUpdate);
|
|
266
|
+
}
|
|
267
|
+
catch (error) {
|
|
268
|
+
console.error('Error completing payment method selection:', error);
|
|
269
|
+
this.currentSession.abort();
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
this.currentSession.onshippingmethodselected = () => {
|
|
273
|
+
this.currentSession.completeShippingMethodSelection({
|
|
274
|
+
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
275
|
+
newTotal: this.currentPaymentRequest.total,
|
|
276
|
+
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
277
|
+
});
|
|
278
|
+
};
|
|
279
|
+
this.currentSession.oncancel = (event) => {
|
|
280
|
+
if (event.sessionError) {
|
|
281
|
+
switch (event.sessionError.code) {
|
|
282
|
+
case 'unknown':
|
|
283
|
+
console.error('Unknown error - likely merchant validation issue');
|
|
284
|
+
console.error('This usually means:');
|
|
285
|
+
console.error('1. Merchant certificate is invalid or expired');
|
|
286
|
+
console.error('2. Merchant identifier mismatch');
|
|
287
|
+
console.error('3. Backend validation endpoint issues');
|
|
288
|
+
break;
|
|
289
|
+
case 'invalidMerchantSession':
|
|
290
|
+
console.error('Invalid merchant session provided');
|
|
291
|
+
console.error('Check that the merchant session from backend is valid');
|
|
292
|
+
break;
|
|
293
|
+
case 'userCancel':
|
|
294
|
+
console.error('User cancelled the payment');
|
|
295
|
+
break;
|
|
296
|
+
default:
|
|
297
|
+
console.error('Other error code:', event.sessionError.code);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
this.currentSession = undefined;
|
|
301
|
+
this.currentPaymentRequest = undefined;
|
|
302
|
+
reject({
|
|
303
|
+
success: false,
|
|
304
|
+
error: {
|
|
305
|
+
code: 'USER_CANCELLED',
|
|
306
|
+
message: 'User cancelled the Apple Pay session',
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
if ('onerror' in this.currentSession) {
|
|
311
|
+
this.currentSession.onerror = (error) => {
|
|
312
|
+
console.error('=== APPLE PAY SESSION ERROR ===');
|
|
313
|
+
console.error('Session error:', error);
|
|
314
|
+
this.currentSession = undefined;
|
|
315
|
+
this.currentPaymentRequest = undefined;
|
|
316
|
+
reject({
|
|
317
|
+
success: false,
|
|
318
|
+
error: {
|
|
319
|
+
code: 'SESSION_ERROR',
|
|
320
|
+
message: 'Apple Pay session error occurred',
|
|
321
|
+
},
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Create a basic payment request
|
|
328
|
+
*/
|
|
329
|
+
static createPaymentRequest(amount, label, countryCode = 'US', currencyCode = 'USD') {
|
|
330
|
+
return {
|
|
331
|
+
countryCode,
|
|
332
|
+
currencyCode,
|
|
333
|
+
merchantCapabilities: ApplePayHelpers.getDefaultMerchantCapabilities(),
|
|
334
|
+
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
335
|
+
total: ApplePayHelpers.createLineItem(label, amount),
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Get current configuration
|
|
340
|
+
*/
|
|
341
|
+
getApplePayConfig() {
|
|
342
|
+
return this.applePayConfig;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"entries": [
|
|
3
3
|
"ui-components/pagination-menu/pagination-menu.js",
|
|
4
4
|
"ui-components/details/details.js",
|
|
5
|
-
"ui-components/shadow-dom-components/justifi-radio-list-item.js",
|
|
6
5
|
"components/business-details/business-details-core.js",
|
|
7
6
|
"components/business-details/business-details.js",
|
|
8
7
|
"components/business-details/additional-questions-details/additional-questions-details.js",
|
|
@@ -42,6 +41,8 @@
|
|
|
42
41
|
"components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js",
|
|
43
42
|
"components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js",
|
|
44
43
|
"components/checkout/checkout.js",
|
|
44
|
+
"components/checkout/new-payment-method.js",
|
|
45
|
+
"components/checkout/payment-method-options.js",
|
|
45
46
|
"components/checkout/save-new-payment-method.js",
|
|
46
47
|
"components/checkout/saved-payment-method.js",
|
|
47
48
|
"components/checkout/bank-account-form/bank-account-form.js",
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"components/insurance/season-interruption/season-interruption-insurance-core.js",
|
|
72
73
|
"components/insurance/season-interruption/season-interruption-insurance.js",
|
|
73
74
|
"components/modular-checkout/modular-checkout.js",
|
|
75
|
+
"components/modular-checkout/sub-components/apple-pay.js",
|
|
74
76
|
"components/modular-checkout/sub-components/bank-account.js",
|
|
75
77
|
"components/modular-checkout/sub-components/billing-information-form.js",
|
|
76
78
|
"components/modular-checkout/sub-components/card-form.js",
|
|
@@ -123,7 +125,7 @@
|
|
|
123
125
|
],
|
|
124
126
|
"compiler": {
|
|
125
127
|
"name": "@stencil/core",
|
|
126
|
-
"version": "4.
|
|
128
|
+
"version": "4.36.2",
|
|
127
129
|
"typescriptVersion": "5.5.4"
|
|
128
130
|
},
|
|
129
131
|
"collections": [],
|
|
@@ -18,7 +18,7 @@ export class AdditionalQuestions {
|
|
|
18
18
|
render() {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
20
20
|
const additionalQuestionsDefaultValue = this.formController.getInitialValues().additional_questions;
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '6e2549b906fec8928dae89a4f143916a2b50eff3' }, h("fieldset", { key: '525eab0debf75c3996c45128e9431086e49c3850' }, h("legend", { key: 'adeb6e2a32fb4f9e991d7b4843569116e336743c', part: heading2 }, "Additional Questions"), h("div", { key: '29b55613d32bc434017fc561033c6c9b8800666d', class: "row gy-3" }, h("div", { key: '80c1d6b2c5e52c5fe0f8b9c3591bb315e51f7c55', class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { key: 'e69e6c75d3a6add592e90e3709d7b7ff694ebfe0', name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.additional_questions) === null || _b === void 0 ? void 0 : _b.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'af0e66f6f647ed7248e0d861707cc378c85b0dce', class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { key: 'e1f6af9f7537bf4d4e96739ff7537be01ca9371c', name: "business_payment_volume", label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.additional_questions) === null || _d === void 0 ? void 0 : _d.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'b914a2f8abd79eab79d284f1ece9850f4a417893', class: "col-12" }, h("form-control-select", { key: '8954dfe23f7984810fbae657ac9995e40253b377', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.additional_questions) === null || _f === void 0 ? void 0 : _f.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: 'da533644fd51e8678fc80d49c7db0ce20a803019', class: "col-12" }, h("form-control-select", { key: '06c23865a5bbda38b294dd4edfee6ace942fb732', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.additional_questions) === null || _h === void 0 ? void 0 : _h.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: 'bb492db9aea205138ef76cf6fc7c3f686bb41a79', class: "col-12" }, h("form-control-text", { key: 'a3f900076730b504587619ff9c4c13ecce36f541', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.additional_questions) === null || _k === void 0 ? void 0 : _k.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: 'e2f56ae5d9654bdb1077689a1ef59c9047e97bda', class: "col-12" }, h("form-control-select", { key: '697e41186b4c82046e50288594681117bf8dd6fe', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.additional_questions) === null || _m === void 0 ? void 0 : _m.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: '2e2f5d17b70604b9425997d9e4e0dfafea933448', class: "col-12" }, h("form-control-text", { key: '27d305b06e7bc2d66084c9d04ebb785883564bbd', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_p = (_o = this.errors) === null || _o === void 0 ? void 0 : _o.additional_questions) === null || _p === void 0 ? void 0 : _p.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "justifi-additional-questions"; }
|
|
24
24
|
static get properties() {
|
|
@@ -27,7 +27,7 @@ export class BusinessCoreInfo {
|
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
29
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '71096918610aa3068cf89fbf9f3537b7f49942c6' }, h("fieldset", { key: '502e6c3e3ae05256c6e5e8d315b4aa208ce88953' }, h("legend", { key: 'ccbe69b2323e815dc77b2602a96bdc4238fcef03', part: heading2 }, "General Info"), h("div", { key: '19a70fd7a361e5de4c88e14cbff12d88f78233e3', class: "row gy-3" }, h("div", { key: '611bcc2bd35db7b6940a5b7ae53c54b55b855dd6', class: "col-12" }, h("form-control-text", { key: 'a9de594470c896aff0803c34a313c38467f7c82a', name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: 'ed742f64b1c344587127ce94ba1d17206bbdebb3', class: "col-12" }, h("form-control-text", { key: 'abb41f3aa059c180882066e21fe0239838cd9956', name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: '3659fb0dd0419fd4d6f0205bc9e32aef05f56aa1', class: "col-12 col-md-8" }, h("form-control-select", { key: '5bbbe7cd7fe0a7e8788e36855ff18390bf8df301', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: '5007e6269c59878e6388164ff8d5163090b87585', class: "col-12 col-md-4" }, h("form-control-date", { key: '4fa7c7f001ced10c746d2891fe3efd8336542907', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: 'e245a4ac6e0904c9742a0d1d220cb95c9fe63497', class: "col-12 col-md-6" }, h("form-control-text", { key: 'bc7367525a45c221c576f2b31c1a95680a95937a', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '6475831320818242eda7ac045dcdd076fbc4245c', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'd68e8046fa42f4d5976aa44a7769b14fc4cda416', name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { key: 'f59cda0241c1ad92d0d995e330b92079ba75737f', class: "col-12" }, h("form-control-text", { key: '8243464d1c75897c1e3423e5045f34b81b425a9e', name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: 'c65251b25e0996277f7d0e11d25d6340ccfc11e7', class: "col-12 col-md-6" }, h("form-control-text", { key: 'fe3a4eff53786f49fbfe24afb048f861bf7a469a', name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'b1d909e5f937dcbbac0082b293571904c0c81396', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '83238873cbd8ccc08a5c3af1bd87a7965fefb5f8', name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "justifi-business-core-info"; }
|
|
33
33
|
static get properties() {
|
|
@@ -26,7 +26,7 @@ export class BusinessRepresentative {
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
const representativeDefaultValue = this.formController.getInitialValues().representative;
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'eb9c09602a11107abc465463bf7e7cdbeb98cede' }, h("fieldset", { key: '1f2a035f9796c29269a7dcd7ca874c73ed6493bb' }, h("legend", { key: '1aeaba7f119f15e1ffa75cd58d77608fe51a60c8', part: heading2 }, "Representative"), h("div", { key: '5d09c634135046c79b4ac80b5c1cfee9fbd26ce0', class: "row gy-3" }, h("div", { key: '6f03250bf88cc79ff07a1de68fef97a41a376aec', class: "col-12 col-md-8" }, h("form-control-text", { key: 'd6696ab573a305e277db56a578eaeb3fc4adf9ff', name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'fd6ddc83d99b4f86f29566077249a23724741438', class: "col-12 col-md-4" }, h("form-control-text", { key: '632b12a09042ffdaf85d2fafecfab1736bbc8d36', name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '65842c9cb8c616806631bd1d2902342cebf5326e', class: "col-12 col-md-6" }, h("form-control-text", { key: '8e1f64cc7f97e4b337dfcda6494fca5750656130', name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'e050604c8d71e1d07f916822fbb73da4c3f5e034', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'a5bba8b362ce6070efc65e88ee80880ce855e624', name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'dcbd23ab368e630ebaea9e8bdbb6985a98d5fbeb', class: "col-12 col-md-4" }, h("form-control-date", { key: '05e0e255549ad8f0760102aab5cbfe444cae5996', name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: '764595ed842fd09221ef71d5c921a9ebe947556d', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '91761e52dd724a27e135a3db8b7c85643f7891d9', name: "identification_number", label: this.identificationNumberLabel, defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: '4be6739744d6d9fcd060ed9d894502f35396a9a9', class: "col-12" }, h("justifi-identity-address-form", { key: '7c9d98057e908a068aa0783b10b2bd0f634d7ab9', errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "justifi-business-representative"; }
|
|
32
32
|
static get properties() {
|
|
@@ -17,7 +17,7 @@ export class LegalAddressForm {
|
|
|
17
17
|
render() {
|
|
18
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
19
19
|
const legalAddressDefaultValue = this.formController.getInitialValues().legal_address;
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '129b2ec053708454db5a515fdae9a7fba5289336' }, h("fieldset", { key: '6af5c9469acc432ea01ff404af25727bd444abc7' }, h("legend", { key: '1af149db608a13d18142aaea83f9ed2e8271fdc0', part: heading2 }, "Business Legal Address"), h("div", { key: '805c6ae992ebed34937b9a2622f50a7f99c7d0e6', class: "row gy-3" }, h("div", { key: '78750dc68bcc6782bc4a71cfd14d417e980a57a6', class: "col-12" }, h("form-control-text", { key: '18a75e38a7a5fbfcbbbce56e4967ce34c5618c8e', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address) === null || _b === void 0 ? void 0 : _b.line1 })), h("div", { key: '676622c84785edfafa3413359d4985d26a734985', class: "col-12" }, h("form-control-text", { key: 'e8467f96595d240f5fc93585e472ad844cc49143', name: "line2", label: "Address Line 2", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.legal_address) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '01556012d9335d23c14e130ca72b6e75028bcb36', class: "col-12" }, h("form-control-text", { key: 'c08dcd0ef726ff714d60de26492ced763a7d32ff', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.legal_address) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: 'ad811869e742f265a5441c6f36c2a55fa0b07952', class: "col-12" }, h("form-control-select", { key: '47cc4b15578257f3c1fdee7896d28da94b5aaa16', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.legal_address) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: 'f732fd2ed3967ee7fd602f41c62efd24cf6038eb', class: "col-12" }, h("form-control-text", { key: '0431a63d11beb6682a2544d2483901f7fffa77bd', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.legal_address) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'cca67b0cd006f6cf9f9bbfe147507eb0ac6fecca', class: "col-12" }, h("form-control-select", { key: 'f561947f9443ea6f56d7ae31d44a69e2462c0751', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.legal_address) === null || _m === void 0 ? void 0 : _m.country,
|
|
21
21
|
// just for now so we skip handling country specificities
|
|
22
22
|
disabled: true }))))));
|
|
23
23
|
}
|
|
@@ -14,7 +14,7 @@ export class IdentityAddressForm {
|
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: 'ee0ad865c40fb26b4138c0b68a944f05f96fdc65' }, h("div", { key: '15e35c582daaa30f5d7523d30445546fa9d648b8', class: "row gy-3" }, h("div", { key: '066f08f377cdb74ff640787fdc54082b74952de0', class: "col-12 col-md-8" }, h("form-control-text", { key: '9b96dd42003108200b0ebb0bb5f246e48028967a', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler, helpText: "\u200B\u200BEnter your address exactly as stated on your driver's license. No PO Boxes." })), h("div", { key: 'c0f25515428343bdbb6e2ee715dc8e7996ae922b', class: "col-12 col-md-4" }, h("form-control-text", { key: 'af541412c694f912fb2d511d1b72d02274e4ef21', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: '61cdbddac8ab71b22feab3a5169f5fda57f751ee', class: "col-12" }, h("form-control-text", { key: '1861b0a9807c2f0679eaba07f313d4dfaf563fd2', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: 'cb3aab077c4e3824e6becf46396b67114ff24f16', class: "col-12 col-md-6" }, h("form-control-select", { key: '0adfc316afc87f6aa91198d01da7ad3a86b6221d', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: '36ae7e269ba4f31541ffc2d20e0931500b33732a', class: "col-12 col-md-6" }, h("form-control-text", { key: '7f8a76e23c78f505133a3fcd23575ae0e04e2c7a', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: '67d3c31c5450fffcc5d333f2a6927f805d88fc4f', class: "col-12" }, h("form-control-select", { key: 'c99faee491f35231c852e9a6096e5822c389d6cb', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
|
|
18
18
|
// just for now so we skip handling country specificities
|
|
19
19
|
disabled: true })))));
|
|
20
20
|
}
|
|
@@ -144,7 +144,7 @@ export class BusinessOwnerFormCore {
|
|
|
144
144
|
this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
return (h("form", { key: '
|
|
147
|
+
return (h("form", { key: 'cf3b084a99c3cfc77af24f09feeda0468c2e6956', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '3c78499a7df3496cd44416b96fe5fef44cc4d393' }, h("legend", { key: '5aee34b86e10d914964de3f62408b1f1e7899479', class: "fw-semibold fs-5", part: heading3 }, this.formTitle), h("br", { key: '4ca0d4c213f166f7ea10c0bfe276673ff077e1ba' }), h("div", { key: '95e485006a1111418ed409e7138c7f3098b9517c', class: "row gy-3" }, h("owner-form-inputs", { key: '1df9b40c91223253394c50312950b6b3d42906ff', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: 'f1e2adc3111366c43a9a0d3cbed9e059916320f8', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: 'ea19095c86d12cdabd48ad8618213aa06635b80f', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: 'cb60a69f0e3252bb7623945610c5282bedfffe32', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'db9fb6f130a114e82de0fb806ca1d70ac254f032' }))));
|
|
148
148
|
}
|
|
149
149
|
static get is() { return "owner-form-core"; }
|
|
150
150
|
static get properties() {
|
|
@@ -11,7 +11,7 @@ export class BusinessOwnerFormInputs {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h("div", { key: '
|
|
14
|
+
return (h("div", { key: '97911ef690cb7932c0e382cfa79fa3333536055c', class: "row gy-3" }, h("div", { key: '0f15a832bcde62a50fb791e008dcd7da68c8da6b', class: "col-12 col-md-8" }, h("form-control-text", { key: 'fdc50a224e7e17d2923d6eb1fb274103e0d55710', name: "name", label: "Full Name", defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c4be24670525f2b90fd6de5a0035241190dadd09', class: "col-12 col-md-4" }, h("form-control-text", { key: '8752eb6ea1d24189fd1a4d799145b5bbdc0413f2', name: "title", label: "Title", defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '9d19f00bbd407ca55455947d84183530920d799c', class: "col-12 col-md-6" }, h("form-control-text", { key: '10ffe5b44086f623fb9f9d27f4a72cd251589bd0', name: "email", label: "Email Address", defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '7c32fc26abbc0bc16b0a50d8bbfb47c121c7c62d', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'e6b63872de5bd5cc98d61c8e6ebeb2a3f8443fb1', name: "phone", label: "Phone Number", defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '2e7eded46b1162d9ecf8c3badc869e98a710abee', class: "col-12 col-md-4" }, h("form-control-date", { key: '2c4b8c126d7505dadb3fe06b3b5cab5e83b91c23', name: "dob_full", label: "Birth Date", defaultValue: this.ownerDefaultValue.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: 'dd96fdddddfb082fc0ce670f673decc97956c242', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '640cc2e749dc64879d8211c3340b7c273d3cb817', name: "identification_number", label: "SSN", defaultValue: this.ownerDefaultValue.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: '681b2898183d73559150b5debef39901c4679eba', class: "col-12" }, h("justifi-identity-address-form", { key: 'e2de39be536c0854592a5132a6a9ac9d761a0f9b', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))));
|
|
15
15
|
}
|
|
16
16
|
;
|
|
17
17
|
static get is() { return "owner-form-inputs"; }
|
|
@@ -34,7 +34,7 @@ export class BusinessOwnerForm {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h("owner-form-core", { key: '
|
|
37
|
+
return (h("owner-form-core", { key: '253fc2c5cf1d8c3d18cbcc43569c50a1dd4394f4', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, ref: ref => this.coreComponent = ref }));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "justifi-owner-form"; }
|
|
40
40
|
static get properties() {
|
|
@@ -34,7 +34,7 @@ export class AdditionalQuestionsFormStep {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h("justifi-additional-questions-form-step-core", { key: '
|
|
37
|
+
return (h("justifi-additional-questions-form-step-core", { key: 'cdc14a51e5655ce4b4d7c24af613b9146c80ba37', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "justifi-additional-questions-form-step"; }
|
|
40
40
|
static get properties() {
|
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { EntityDocumentType } from "../../../../api";
|
|
3
3
|
export class BankAccountDocumentFormInputs {
|
|
4
4
|
render() {
|
|
5
|
-
return (h("div", { key: '
|
|
5
|
+
return (h("div", { key: 'a3ff8b1ff23923beb847e66d6c56a39de9a86434', class: "row gy-3" }, h("div", { key: '86f9ba3a8f0f87f7fa67ba0fcf1d7c04f67e9bc5', class: "col-12" }, h("form-control-file", { key: '9cc2bc21414c8e3f4b25ac47b76340a4ce569c42', name: "voided_check", label: "Voided Check", documentType: EntityDocumentType.voidedCheck, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["voided_check"], multiple: true })), h("div", { key: 'bee72d6c63514cdbd3200910d3a53b045c60d05d', class: "col-12" }, h("form-control-file", { key: '80a79f352d078cd210768b4060cad7014b1060c5', name: "bank_statement", label: "Bank Statement", documentType: EntityDocumentType.bankStatement, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["bank_statement"], multiple: true }))));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "bank-account-document-form-inputs"; }
|
|
8
8
|
static get properties() {
|
|
@@ -3,7 +3,7 @@ import { bankAccountTypeOptions } from "../../utils";
|
|
|
3
3
|
import { numberOnlyHandler } from "../../../../ui-components/form/utils";
|
|
4
4
|
export class BankAccountFormInputs {
|
|
5
5
|
render() {
|
|
6
|
-
return (h("div", { key: '
|
|
6
|
+
return (h("div", { key: 'b18e803521d67b40e4e5af03a66dcdca0b678968', class: "row gy-3" }, h("div", { key: 'e2e6667ffbcebb6a9aa50739814e7bbebceaabfa', class: "col-12" }, h("form-control-text", { key: 'e1ad63fb7db32dbb6ed67cf18919c681d6d192ef', name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '54db821813e7eb931b8f19fad7fce976cdeb0045', class: "col-12" }, h("form-control-text", { key: '4ecf222c1918e364f319d07e0a770d68dba099d0', name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'a92c38f2abbcb3dcaee4bc5ea73df44b31adc3f9', class: "col-12" }, h("form-control-text", { key: '492ff1a4d1e9c4f2fa9d0e527a34dc5ccb09afe6', name: "account_owner_name", label: "Account Owner Name", defaultValue: this.defaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '8e14e6e3de43822d139085d3a05bfd0e7ae5b1be', class: "col-12" }, h("form-control-select", { key: 'f6648b6f7c4a475f88b849bf3a75d446bb539c69', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '68a2efc082f5b6414ebde10b6da4365677dbefca', class: "col-12" }, h("form-control-text", { key: '3ef9b3db5882063708ccf1eb282f3e90ed53ce82', name: "account_number", label: "Account Number", defaultValue: this.defaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." })), h("div", { key: 'e3270db28269bc25dd4d5a99274f042c1efd1fc6', class: "col-12" }, h("form-control-text", { key: 'a8e801f65a4cc164cdc7bf186fed67f87abc828f', name: "routing_number", label: "Routing Number", defaultValue: this.defaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." }))));
|
|
7
7
|
}
|
|
8
8
|
static get is() { return "bank-account-form-inputs"; }
|
|
9
9
|
static get properties() {
|
|
@@ -37,7 +37,7 @@ export class BusinessBankAccountFormStep {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h("justifi-business-bank-account-form-step-core", { key: '
|
|
40
|
+
return (h("justifi-business-bank-account-form-step-core", { key: '0cdd7da1ea31971df421b28f17673bd1a81bf661', businessId: this.businessId, getBusiness: this.getBusiness, postBankAccount: this.postBankAccount, postDocumentRecord: this.postDocumentRecord, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "justifi-business-bank-account-form-step"; }
|
|
43
43
|
static get properties() {
|
|
@@ -34,7 +34,7 @@ export class BusinessCoreInfoFormStep {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h("justifi-business-core-info-form-step-core", { key: '
|
|
37
|
+
return (h("justifi-business-core-info-form-step-core", { key: '21d9ea1603f0e9bf6fe842d177f0f6da0113fb73', businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "justifi-business-core-info-form-step"; }
|
|
40
40
|
static get properties() {
|