@justifi/webcomponents 6.1.0-rc.3 → 6.1.0
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/LICENSE +21 -0
- package/dist/cjs/{Api-DqzbA2qk.js → Api-CjtvTD2_.js} +2 -2
- package/dist/cjs/{Business-DWHy_-z9.js → Business-DCRzZf0w.js} +9 -299
- package/dist/cjs/{Refund-BPSBtjQC.js → Refund-BnhHNKLz.js} +4 -3
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +14 -13
- package/dist/cjs/{badge-BJVdpSU-.js → badge-CE3ss_OU.js} +2 -2
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +112 -0
- package/dist/cjs/bank-account-form.cjs.entry.js +8 -8
- package/dist/cjs/{business-additional-questions-schema-CetDMUp7.js → business-additional-questions-schema-b8P-0T0O.js} +4 -26
- package/dist/cjs/business-details-core.cjs.entry.js +5 -5
- package/dist/cjs/{business-form-options-e9UFw4P-.js → business-form-options-CMII7nIK.js} +1 -1
- package/dist/cjs/business-identity-schema-aFUle0C9.js +51 -0
- package/dist/cjs/{business.service-Bv9o99Ll.js → business.service-Cj_NUZsr.js} +3 -3
- package/dist/cjs/{button-_YJuE8cy.js → button-gPNZ9XRn.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +8 -8
- package/dist/cjs/{check-pkg-version-CadxBsjl.js → check-pkg-version-C7b-OLb5.js} +4 -4
- package/dist/cjs/{checkout.service-dLB93w3Z.js → checkout.service-Bc8L9ixO.js} +3 -3
- package/dist/cjs/{checkout.store-DC4yVxDj.js → checkout.store-Bswr7kNY.js} +5 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +15 -13
- package/dist/cjs/{terminal-orders-list-params-state-ARjo40Y9.js → checkouts-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{checkouts-table-C102WCfy.js → checkouts-table-C5AHeIr0.js} +4 -4
- package/dist/cjs/{config-state-BeZM7X7J.js → config-state-C7babhLh.js} +1 -1
- package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_2.cjs.entry.js} +23 -3
- package/dist/cjs/{dispute.service-BmAAnNky.js → dispute.service-DhO_tuDc.js} +3 -3
- package/dist/cjs/form-alert_5.cjs.entry.js +17 -27
- package/dist/cjs/form-control-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/form-control-date.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-error-text-DJzNQrEz.js → form-control-error-text-BnMWn8U_.js} +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +6 -6
- package/dist/cjs/{form-control-help-text-DII6UDeq.js → form-control-help-text-DEi5vSjN.js} +2 -2
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +7 -7
- package/dist/cjs/form-control-monetary.cjs.entry.js +7 -7
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +107 -0
- package/dist/cjs/form-control-number.cjs.entry.js +6 -6
- package/dist/cjs/form-control-radio.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-select_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +7 -26
- package/dist/cjs/{form-input-masks-BnNFJ3IJ.js → form-input-masks-DgXd0f4V.js} +4 -9
- package/dist/cjs/{get-business-D9ZHyPem.js → get-business-o5jPq_ME.js} +1 -1
- package/dist/cjs/{get-payment-details-BHPHzSkH.js → get-payment-details-BinT-ZEP.js} +3 -3
- package/dist/cjs/{get-subaccounts-Bw76aYu0.js → get-subaccounts-BoTVdl7v.js} +4 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +26 -17
- package/dist/cjs/{header-1-Da7oKhXY.js → header-1-D3r87SC6.js} +2 -2
- package/dist/cjs/{header-3-uBM_CzcP.js → header-3-BFQJJgBb.js} +2 -2
- package/dist/cjs/helpers-B5OCqlIM.js +35 -0
- package/dist/cjs/hidden-input_2.cjs.entry.js +9 -9
- package/dist/cjs/{index-CaAefsWD.js → index-Bhtk1qkX.js} +5 -2
- package/dist/cjs/{index-D-CfIyoF.js → index-CWM5ions.js} +1 -1
- package/dist/cjs/{input-handlers-D6QMwPTB.js → input-handlers-DYl_0IwC.js} +2 -2
- package/dist/cjs/{insurance-state-KJzYGtVr.js → insurance-state-JbqYvJN3.js} +3 -3
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +72 -129
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +26 -25
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
- package/dist/cjs/{justifi-checkout-summary_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js} +898 -25
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +32 -31
- package/dist/cjs/justifi-business-details.cjs.entry.js +15 -13
- package/dist/cjs/justifi-business-form.cjs.entry.js +23 -27
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +8 -16
- package/dist/cjs/justifi-checkout.cjs.entry.js +16 -14
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +12 -10
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +18 -16
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -11
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +19 -17
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +13 -11
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +18 -16
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +21 -30
- package/dist/cjs/justifi-payment-details.cjs.entry.js +23 -14
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +25 -40
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +13 -11
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +17 -15
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payments-list.cjs.entry.js +18 -16
- package/dist/cjs/justifi-payout-details.cjs.entry.js +16 -13
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +17 -15
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -17
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -15
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +16 -14
- package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +13 -11
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +16 -14
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +14 -11
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +18 -16
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-CVxkAS_m.js → package-BHmdO9eK.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +5 -5
- package/dist/cjs/{parts-9jMf1erK.js → parts-Pb06tUMp.js} +2 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +34 -16
- package/dist/cjs/payment-method-option.cjs.entry.js +4 -4
- package/dist/cjs/{payment.service-DODmonNs.js → payment.service-C9thkR4g.js} +3 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +16 -14
- package/dist/cjs/{payments-list-params-state-ARjo40Y9.js → payments-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{payments-status-5IzqwLep.js → payments-status-CnNXcRLO.js} +21 -3
- package/dist/cjs/{payments-table-BcZ6U6p8.js → payments-table-BGuCOPTJ.js} +4 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +25 -12
- package/dist/cjs/{payout.service-Do8DxBxe.js → payout.service-CGZxpQMq.js} +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +16 -14
- package/dist/cjs/{checkouts-list-params-state-ARjo40Y9.js → payouts-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{payouts-status-D38A6UrI.js → payouts-status-2na6MMgV.js} +2 -2
- package/dist/cjs/{payouts-table-Cn_cCCOY.js → payouts-table-DXekpbYc.js} +4 -4
- package/dist/cjs/{schema-validations-0mjPveQ0.js → schema-validations-Bj7eYNO8.js} +6 -45
- package/dist/cjs/{skeleton-DlPP4i_w.js → skeleton-BvdAh448.js} +2 -2
- package/dist/cjs/{spinner-BNWG01hP.js → spinner-Rt52JMa2.js} +2 -2
- package/dist/cjs/state-options-CIT9xdTz.js +246 -0
- package/dist/cjs/{styled-host-DSpt9LtB.js → styled-host-BSooSIhA.js} +1 -1
- package/dist/cjs/{table-CAWBqvW5.js → table-Ccg4k90C.js} +3 -3
- package/dist/cjs/table-filters-menu.cjs.entry.js +4 -4
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +15 -13
- package/dist/cjs/{payouts-list-params-state-ARjo40Y9.js → terminal-orders-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{terminal-orders-table-BUA4LcEc.js → terminal-orders-table-7ew1vCKk.js} +7 -7
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +3 -3
- package/dist/cjs/{terminal.service-bxQnc1JY.js → terminal.service-BkKxH-k4.js} +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +15 -13
- package/dist/cjs/terminals-list-params-state-BYpq-c6X.js +22 -0
- package/dist/cjs/{terminals-table-C2_M7SWl.js → terminals-table-ByYs-pH7.js} +9 -4
- package/dist/cjs/{utils-ChCUZgUy.js → utils-Bab-tddY.js} +4 -0
- package/dist/cjs/{utils-C6mfHWv-.js → utils-CUcA4G_O.js} +5 -5
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/api/BankAccount.js +0 -4
- package/dist/collection/api/Business.js +1 -16
- package/dist/collection/api/Terminal.js +1 -0
- package/dist/collection/api/services/apple-pay.service.js +3 -0
- package/dist/collection/collection-manifest.json +3 -6
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
- package/dist/collection/components/business-details/owner-details/owner-details.js +9 -8
- package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +6 -7
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +4 -36
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -6
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +9 -46
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +10 -32
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +6 -26
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +3 -29
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +6 -48
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -26
- 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 -2
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +5 -36
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +7 -47
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -43
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +4 -33
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -26
- 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-core.js +10 -35
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +20 -39
- 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 +6 -34
- 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/business-forms/schemas/business-address-schema.js +19 -41
- package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +39 -74
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +4 -27
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +4 -7
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +24 -53
- package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -41
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +3 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/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/modular-checkout/modular-checkout.js +10 -8
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +49 -2
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +19 -9
- package/dist/collection/components/payment-details/payment-details.js +28 -1
- 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/payments-list/payments-status.js +19 -1
- package/dist/collection/components/payout-details/payout-details-core.js +57 -4
- package/dist/collection/components/payout-details/payout-details.js +22 -1
- 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 +4 -3
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-status.js +5 -0
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +4 -3
- package/dist/collection/store/checkout.store.js +4 -0
- package/dist/collection/styles/parts.js +1 -1
- package/dist/collection/ui-components/apple-pay-button.js +6 -8
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/details.js +1 -1
- package/dist/collection/ui-components/details/utils.js +4 -4
- 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/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/collection/utils/form-input-masks.js +0 -8
- package/dist/collection/utils/utils.js +4 -0
- package/dist/docs.json +330 -1140
- package/dist/esm/{Api-DLf3ihCB.js → Api-DhiA2e_P.js} +2 -2
- package/dist/esm/{Business-B5rtFhtR.js → Business-BCoP0TAV.js} +3 -290
- package/dist/esm/{Refund-BeI1WGfx.js → Refund-B-iOTRxz.js} +3 -2
- package/dist/esm/additional-questions-details_5.entry.js +14 -13
- package/dist/esm/{badge-CkfrkCoy.js → badge-CtdO-tEY.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +107 -0
- package/dist/esm/bank-account-form.entry.js +8 -8
- package/dist/esm/{business-additional-questions-schema-DSvdNuI1.js → business-additional-questions-schema-9FAJSx_D.js} +5 -26
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business-form-options-D6s5H4RI.js → business-form-options-CgssATyg.js} +2 -2
- package/dist/esm/business-identity-schema-CDJzknbg.js +48 -0
- package/dist/esm/{business.service-BIALik8Z.js → business.service-D55OVyco.js} +3 -3
- package/dist/esm/{button-CuZAKl_x.js → button-DtTaQHMK.js} +2 -2
- package/dist/esm/card-form.entry.js +8 -8
- package/dist/esm/{check-pkg-version-Bk5bgulF.js → check-pkg-version-xM0uWxbL.js} +4 -4
- package/dist/esm/{checkout.service-DZDZBIGQ.js → checkout.service-fwbqSq8g.js} +3 -3
- package/dist/esm/{checkout.store-DwJGKabu.js → checkout.store-4nUf2OuT.js} +5 -1
- package/dist/esm/checkouts-list-core.entry.js +15 -13
- package/dist/esm/{checkouts-list-params-state-BY5996_y.js → checkouts-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{checkouts-table-59DpP7zM.js → checkouts-table-B6gGDtOr.js} +4 -4
- package/dist/esm/{config-state-C83RkI9h.js → config-state-DiHV-4QK.js} +1 -1
- package/dist/esm/{custom-popper.entry.js → custom-popper_2.entry.js} +23 -4
- package/dist/esm/{dispute.service-ByJy64X7.js → dispute.service-Cdq3_yRo.js} +3 -3
- package/dist/esm/form-alert_5.entry.js +16 -26
- 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-CjrxZorl.js → form-control-error-text-bprS-t9d.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +6 -6
- package/dist/esm/{form-control-help-text-CMUgRhUf.js → form-control-help-text-Bvnp-IAG.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
- package/dist/esm/form-control-monetary.entry.js +7 -7
- package/dist/esm/form-control-number-masked_2.entry.js +104 -0
- 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 → form-control-select_2.entry.js} +8 -26
- package/dist/esm/{form-input-masks-CVaOFfrI.js → form-input-masks-B-iV5cYd.js} +3 -9
- package/dist/esm/{get-business-Xt7B5dSo.js → get-business-Crb6P-iI.js} +1 -1
- package/dist/esm/{get-payment-details-B00HoaFm.js → get-payment-details-sGoWyAat.js} +3 -3
- package/dist/esm/{get-subaccounts-C_yzcZq_.js → get-subaccounts-BsJSlShO.js} +4 -4
- package/dist/esm/gross-payment-chart-core.entry.js +26 -17
- package/dist/esm/{header-1-BukynbFR.js → header-1-C1Hnxki8.js} +2 -2
- package/dist/esm/{header-3-D87MAyMK.js → header-3-Bq8fpjm-.js} +2 -2
- package/dist/esm/helpers-Mu7LQT-w.js +29 -0
- package/dist/esm/hidden-input_2.entry.js +9 -9
- package/dist/esm/{index-NOsb-hYl.js → index-DJ9G-4S-.js} +1 -1
- package/dist/esm/{index-_b8l4IX7.js → index-DOjVAAtq.js} +5 -2
- package/dist/esm/{input-handlers-D3y0TzH9.js → input-handlers-CX6mSvOM.js} +1 -1
- package/dist/esm/{insurance-state-BjY1QRXI.js → insurance-state-CVme82j7.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +73 -130
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +26 -25
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- package/dist/esm/{justifi-checkout-summary_7.entry.js → justifi-apple-pay_8.entry.js} +898 -26
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +31 -30
- package/dist/esm/justifi-business-details.entry.js +15 -13
- package/dist/esm/justifi-business-form.entry.js +23 -27
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +8 -16
- package/dist/esm/justifi-checkout.entry.js +16 -14
- package/dist/esm/justifi-checkouts-list-filters.entry.js +12 -10
- package/dist/esm/justifi-checkouts-list.entry.js +18 -16
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +4 -4
- package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +13 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +19 -17
- package/dist/esm/justifi-gross-payment-chart.entry.js +13 -11
- package/dist/esm/justifi-order-terminals.entry.js +18 -16
- package/dist/esm/justifi-owner-form_3.entry.js +21 -30
- package/dist/esm/justifi-payment-details.entry.js +23 -14
- package/dist/esm/justifi-payment-provisioning-core.entry.js +25 -40
- package/dist/esm/justifi-payment-provisioning.entry.js +13 -11
- package/dist/esm/justifi-payment-transactions-list.entry.js +17 -15
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +18 -16
- package/dist/esm/justifi-payout-details.entry.js +16 -13
- package/dist/esm/justifi-payout-transactions-list.entry.js +17 -15
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payouts-list.entry.js +19 -17
- package/dist/esm/justifi-refund-payment.entry.js +17 -15
- package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +16 -14
- package/dist/esm/justifi-skeleton.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +13 -11
- package/dist/esm/justifi-terminal-orders-list.entry.js +16 -14
- package/dist/esm/justifi-terminals-list-filters.entry.js +14 -11
- package/dist/esm/justifi-terminals-list.entry.js +18 -16
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-BRhnhmpB.js → package-DL-q4EcN.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +5 -5
- package/dist/esm/{parts-CA_TyBed.js → parts-xDbRW9xn.js} +2 -1
- package/dist/esm/payment-details-core.entry.js +34 -16
- package/dist/esm/payment-method-option.entry.js +4 -4
- package/dist/esm/{payment.service-B_NytmNz.js → payment.service-BoQ1MW1k.js} +3 -3
- package/dist/esm/payments-list-core.entry.js +16 -14
- package/dist/esm/{payments-list-params-state-BY5996_y.js → payments-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{payments-status-BWv1l1-e.js → payments-status-cvtVmtY5.js} +22 -4
- package/dist/esm/{payments-table-BSk36N1O.js → payments-table-D_BlyU1F.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +25 -12
- package/dist/esm/{payout.service-BJQVlc_Z.js → payout.service-xcBdom3q.js} +3 -3
- package/dist/esm/payouts-list-core.entry.js +16 -14
- package/dist/esm/{payouts-list-params-state-BY5996_y.js → payouts-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{payouts-status-BujJlH_r.js → payouts-status-D-vjrqBb.js} +2 -2
- package/dist/esm/{payouts-table-5N7OylTW.js → payouts-table-Clj8YGLV.js} +4 -4
- package/dist/esm/{schema-validations-BFoU1cR8.js → schema-validations-B9dmY7ME.js} +6 -41
- package/dist/esm/{skeleton-C161KeYG.js → skeleton-B8EUwt4b.js} +2 -2
- package/dist/esm/{spinner-UiInIFXW.js → spinner-CYXkn1fh.js} +2 -2
- package/dist/esm/state-options-BX8GieXu.js +244 -0
- package/dist/esm/{styled-host-hSGxxyFZ.js → styled-host-OalOsPBp.js} +1 -1
- package/dist/esm/{table-9ewYPAZH.js → table-Bj20uWfu.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +15 -13
- package/dist/esm/{terminal-orders-list-params-state-BY5996_y.js → terminal-orders-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{terminal-orders-table-BcziGGSF.js → terminal-orders-table-DzBpIW8i.js} +7 -7
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-B9MOFa2c.js → terminal.service-l6zTIPZ3.js} +3 -3
- package/dist/esm/terminals-list-core.entry.js +15 -13
- package/dist/esm/terminals-list-params-state-C_fug9R3.js +16 -0
- package/dist/esm/{terminals-table-BoFlvdHS.js → terminals-table-BMS5tazC.js} +9 -4
- package/dist/esm/{utils-DeZftIgK.js → utils-BOijEGPV.js} +4 -1
- package/dist/esm/{utils-fntGABrK.js → utils-DRwofES0.js} +5 -5
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/Business.js +3 -290
- package/dist/module/Refund.js +2 -1
- package/dist/module/additional-questions-details2.js +1 -1
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/additional-statement.js +1 -1
- package/dist/{esm/justifi-apple-pay.entry.js → module/apple-pay.js} +73 -31
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-billing-form-simple.js +2 -2
- package/dist/module/bank-account-document-inputs.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +2 -9
- package/dist/module/bank-account-form.js +3 -3
- package/dist/module/bank-account.js +2 -2
- package/dist/module/billing-form-full.js +2 -2
- package/dist/module/billing-form.js +3 -2
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-address-schema.js +20 -40
- package/dist/module/business-bank-account-form-step-core.js +49 -102
- package/dist/module/business-bank-account-form-step.js +5 -18
- package/dist/module/business-core-info-form-step-core.js +7 -22
- package/dist/module/business-core-info-form-step.js +1 -2
- package/dist/module/business-core-info-schema.js +5 -26
- package/dist/module/business-core-info.js +4 -12
- package/dist/module/business-documents-on-file2.js +1 -1
- package/dist/module/business-identity-schema.js +25 -52
- package/dist/module/business-owners-form-step-core.js +13 -20
- package/dist/module/business-owners-form-step.js +15 -22
- package/dist/module/business-representative-form-inputs.js +17 -34
- package/dist/module/business-representative-form-step-core.js +18 -29
- package/dist/module/business-representative-form-step.js +17 -24
- package/dist/module/business-representative.js +19 -37
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-billing-form-simple.js +2 -2
- package/dist/module/card-form.js +3 -3
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +4 -0
- package/dist/module/checkouts-list-core2.js +2 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox2.js +3 -3
- package/dist/module/form-control-date2.js +3 -3
- package/dist/module/form-control-error-text.js +1 -1
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +3 -3
- package/dist/module/form-control-monetary-provisioning2.js +3 -3
- package/dist/module/form-control-monetary2.js +3 -3
- package/dist/module/form-control-number-masked2.js +3 -3
- package/dist/module/form-control-number.js +3 -3
- package/dist/module/form-control-radio2.js +3 -3
- package/dist/module/form-control-select2.js +3 -3
- package/dist/module/form-control-text2.js +3 -3
- package/dist/module/form-control-textarea2.js +3 -3
- package/dist/module/form-control-tooltip2.js +1 -1
- package/dist/module/form-input-masks.js +3 -9
- package/dist/module/get-business.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +22 -13
- package/dist/module/header-3.js +1 -1
- package/dist/module/helpers.js +29 -0
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/identity-address-form.js +14 -16
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/input-handlers.js +1 -1
- package/dist/module/justifi-apple-pay.js +1 -904
- package/dist/module/justifi-business-form.js +29 -41
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +27 -21
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +5 -5
- package/dist/module/justifi-payment-details.js +8 -1
- package/dist/module/justifi-payment-provisioning.js +49 -67
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-details.js +4 -2
- package/dist/module/justifi-payout-transactions-list.js +3 -3
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-radio-list-item2.js +1 -1
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +2 -2
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +5 -4
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/legal-address-form-step-core.js +19 -26
- package/dist/module/legal-address-form-step.js +9 -16
- package/dist/module/legal-address-form.js +15 -18
- package/dist/module/modular-checkout.js +7 -6
- package/dist/module/owner-details2.js +8 -7
- package/dist/module/owner-form-core2.js +16 -24
- package/dist/module/owner-form-inputs2.js +15 -34
- package/dist/module/owner-form.js +13 -20
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +4 -4
- package/dist/module/parts.js +2 -1
- package/dist/module/payment-details-core2.js +22 -9
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-core.js +69 -104
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +54 -75
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payments-status.js +20 -2
- package/dist/module/payout-details-core2.js +18 -4
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/representative-details2.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/schema-validations.js +6 -41
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/spinner.js +1 -1
- package/dist/module/state-options.js +244 -0
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +3 -3
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminals-list-core2.js +8 -3
- package/dist/module/tokenize-payment-method.js +1 -1
- package/dist/module/utils.js +4 -4
- package/dist/module/utils2.js +4 -1
- package/dist/types/api/BankAccount.d.ts +0 -6
- package/dist/types/api/Business.d.ts +0 -9
- package/dist/types/api/Checkout.d.ts +2 -0
- package/dist/types/api/ComponentEvents.d.ts +4 -0
- package/dist/types/api/Terminal.d.ts +2 -1
- package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +0 -3
- package/dist/types/components/business-forms/business-form/business-form.d.ts +0 -2
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -4
- package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +0 -2
- package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +0 -2
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +0 -2
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +0 -3
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +0 -5
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +0 -3
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +0 -3
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -4
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -2
- package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +2 -54
- package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +16 -14
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +3 -67
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +7 -165
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +2 -122
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -5
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +2 -0
- package/dist/types/components/payment-details/payment-details-core.d.ts +3 -1
- package/dist/types/components/payment-details/payment-details.d.ts +3 -1
- package/dist/types/components/payments-list/payments-status.d.ts +12 -0
- package/dist/types/components/payout-details/payout-details-core.d.ts +5 -1
- package/dist/types/components/payout-details/payout-details.d.ts +1 -0
- package/dist/types/components.d.ts +48 -121
- package/dist/types/stencil-public-runtime.d.ts +20 -10
- package/dist/types/store/checkout.store.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +1 -1
- package/dist/types/ui-components/details/utils.d.ts +3 -2
- package/dist/types/utils/form-input-masks.d.ts +0 -1
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/p-0217783c.entry.js +20 -0
- package/dist/webcomponents/p-0256af65.entry.js +1 -0
- package/dist/webcomponents/p-0af5269e.entry.js +1 -0
- package/dist/webcomponents/p-0cac8468.entry.js +1 -0
- package/dist/webcomponents/{p-b59221a9.entry.js → p-0cf71cbd.entry.js} +1 -1
- package/dist/webcomponents/p-0eb69f41.entry.js +1 -0
- package/dist/webcomponents/p-0f47f052.entry.js +1 -0
- package/dist/webcomponents/p-0fgTPVV0.js +1 -0
- package/dist/webcomponents/{p-C77ElQ41.js → p-1ydcg9ti.js} +1 -1
- package/dist/webcomponents/p-28a3bf32.entry.js +1 -0
- package/dist/webcomponents/p-2b568e8e.entry.js +1 -0
- package/dist/webcomponents/p-2d300faa.entry.js +1 -0
- package/dist/webcomponents/{p-6ea75d39.entry.js → p-2f40f708.entry.js} +1 -1
- package/dist/webcomponents/p-30856338.entry.js +1 -0
- package/dist/webcomponents/p-328117e4.entry.js +1 -0
- package/dist/webcomponents/p-32978110.entry.js +1 -0
- package/dist/webcomponents/{p-c7390115.entry.js → p-37a93597.entry.js} +1 -1
- package/dist/webcomponents/p-47997bc2.entry.js +1 -0
- package/dist/webcomponents/p-50701f16.entry.js +1 -0
- package/dist/webcomponents/p-5235230f.entry.js +1 -0
- package/dist/webcomponents/p-526b7442.entry.js +1 -0
- package/dist/webcomponents/p-5aae36f3.entry.js +1 -0
- package/dist/webcomponents/p-5b5d7a8f.entry.js +1 -0
- package/dist/webcomponents/p-5bd3d86e.entry.js +1 -0
- package/dist/webcomponents/p-66db858a.entry.js +1 -0
- package/dist/webcomponents/p-720a2324.entry.js +1 -0
- package/dist/webcomponents/p-78cb62a8.entry.js +1 -0
- package/dist/webcomponents/p-7c8deca8.entry.js +1 -0
- package/dist/webcomponents/p-7dc9ef8a.entry.js +1 -0
- package/dist/webcomponents/p-84551ee4.entry.js +1 -0
- package/dist/webcomponents/p-854b3db0.entry.js +1 -0
- package/dist/webcomponents/p-85a2eac6.entry.js +1 -0
- package/dist/webcomponents/p-8663e8bd.entry.js +1 -0
- package/dist/webcomponents/p-89f6ad8f.entry.js +1 -0
- package/dist/webcomponents/p-8S_ROmnq.js +1 -0
- package/dist/webcomponents/p-8ca21fab.entry.js +1 -0
- package/dist/webcomponents/p-8cebc84b.entry.js +1 -0
- package/dist/webcomponents/p-8f8dfd4b.entry.js +1 -0
- package/dist/webcomponents/p-94237472.entry.js +1 -0
- package/dist/webcomponents/p-9ad7d724.entry.js +1 -0
- package/dist/webcomponents/p-B-iV5cYd.js +1 -0
- package/dist/webcomponents/p-B6IWa9Ph.js +1 -0
- package/dist/webcomponents/{p-BdREtifE.js → p-BBx_EQqR.js} +1 -1
- package/dist/webcomponents/p-BX8GieXu.js +1 -0
- package/dist/webcomponents/{p-xWrhxNNk.js → p-Bgnhf5c9.js} +1 -1
- package/dist/webcomponents/{p-DTwFW2k_.js → p-BhCH9S0e.js} +1 -1
- package/dist/webcomponents/p-BjNuRWXK.js +1 -0
- package/dist/webcomponents/p-BlJnA265.js +1 -0
- package/dist/webcomponents/p-BoQ6_4Ks.js +1 -0
- package/dist/webcomponents/{p-DWGKeoot.js → p-C0wTyoTh.js} +1 -1
- package/dist/webcomponents/p-C2JJBtMc.js +1 -0
- package/dist/webcomponents/{p-g2ubqhtv.js → p-C8k7a6D-.js} +1 -1
- package/dist/webcomponents/{p-BPDMo6us.js → p-C98BC5W5.js} +1 -1
- package/dist/webcomponents/p-C9EQ459H.js +1 -0
- package/dist/webcomponents/p-C9iide2W.js +1 -0
- package/dist/webcomponents/p-CCLgieAN.js +1 -0
- package/dist/webcomponents/p-CCmDcLao.js +1 -0
- package/dist/webcomponents/{p-qUCDGWNE.js → p-CEk3bv0x.js} +1 -1
- package/dist/webcomponents/p-CH8Y3GSr.js +1 -0
- package/dist/webcomponents/{p-D2hzOOMf.js → p-ClvhB3WW.js} +1 -1
- package/dist/webcomponents/{p-JSXyHheQ.js → p-CmBCj61h.js} +1 -1
- package/dist/webcomponents/p-D0Peuz-m.js +1 -0
- package/dist/webcomponents/{p-BaM0JBLn.js → p-D5Jb9OcR.js} +1 -1
- package/dist/webcomponents/p-D6BImiVi.js +1 -0
- package/dist/webcomponents/p-DGsXKF67.js +1 -0
- package/dist/webcomponents/p-DH8F0bsw.js +1 -0
- package/dist/webcomponents/p-DL-q4EcN.js +1 -0
- package/dist/webcomponents/{p-_b8l4IX7.js → p-DOjVAAtq.js} +2 -2
- package/dist/webcomponents/p-DQZ5VHTZ.js +1 -0
- package/dist/webcomponents/p-DWn9BiNn.js +1 -0
- package/dist/webcomponents/{p-hj8k0lRi.js → p-DdMxswn1.js} +1 -1
- package/dist/webcomponents/{p-M5r2kSbf.js → p-DdZLLkQ5.js} +1 -1
- package/dist/webcomponents/p-DfV3dFDB.js +1 -0
- package/dist/webcomponents/p-Dieke6TH.js +1 -0
- package/dist/webcomponents/p-Dt-vy9Le.js +1 -0
- package/dist/webcomponents/p-NAjz1Xfo.js +1 -0
- package/dist/webcomponents/p-NwmOm8Pg.js +1 -0
- package/dist/webcomponents/p-PSJOKMWp.js +1 -0
- package/dist/webcomponents/p-RQzxYnz_.js +1 -0
- package/dist/webcomponents/p-T2yENPvU.js +1 -0
- package/dist/webcomponents/{p-b46fe458.entry.js → p-a4846316.entry.js} +1 -1
- package/dist/webcomponents/p-a5c70eee.entry.js +1 -0
- package/dist/webcomponents/p-a6tcNl_T.js +1 -0
- package/dist/webcomponents/p-aa14cc74.entry.js +1 -0
- package/dist/webcomponents/p-ae7054bf.entry.js +1 -0
- package/dist/webcomponents/p-ae8ae5bb.entry.js +1 -0
- package/dist/webcomponents/{p-fVyCeQNq.js → p-au49QgoI.js} +1 -1
- package/dist/webcomponents/p-b095c781.entry.js +1 -0
- package/dist/webcomponents/p-b36adce3.entry.js +1 -0
- package/dist/webcomponents/{p-b17cb15d.entry.js → p-b608add9.entry.js} +1 -1
- package/dist/webcomponents/p-b612d870.entry.js +1 -0
- package/dist/webcomponents/p-baf0d3e7.entry.js +1 -0
- package/dist/webcomponents/p-bb53e2e9.entry.js +1 -0
- package/dist/webcomponents/p-be05d450.entry.js +1 -0
- package/dist/webcomponents/p-c089fb5f.entry.js +1 -0
- package/dist/webcomponents/p-ce652ff9.entry.js +1 -0
- package/dist/webcomponents/{p-c1f10a84.entry.js → p-cff5dd60.entry.js} +1 -1
- package/dist/webcomponents/p-d0a2035f.entry.js +1 -0
- package/dist/webcomponents/p-d1bceac6.entry.js +1 -0
- package/dist/webcomponents/p-d37d752e.entry.js +1 -0
- package/dist/webcomponents/p-d4476052.entry.js +1 -0
- package/dist/webcomponents/p-d7f91c48.entry.js +1 -0
- package/dist/webcomponents/p-d84f0122.entry.js +1 -0
- package/dist/webcomponents/p-e55a161f.entry.js +1 -0
- package/dist/webcomponents/p-e6be4e19.entry.js +1 -0
- package/dist/webcomponents/p-ec9514f8.entry.js +1 -0
- package/dist/webcomponents/p-f11a74c3.entry.js +1 -0
- package/dist/webcomponents/p-f705fc49.entry.js +1 -0
- package/dist/webcomponents/p-f930acaa.entry.js +1 -0
- package/dist/webcomponents/p-fe8c2243.entry.js +1 -0
- package/dist/webcomponents/p-fedfe376.entry.js +1 -0
- package/dist/webcomponents/p-ffefa09c.entry.js +1 -0
- package/dist/webcomponents/p-h5pyZngT.js +1 -0
- package/dist/webcomponents/p-hbWSMN3O.js +1 -0
- package/dist/webcomponents/p-lKnUT24T.js +1 -0
- package/dist/webcomponents/p-tYuXMkCd.js +1 -0
- package/dist/webcomponents/p-wQgEEOq_.js +1 -0
- package/dist/webcomponents/p-xDbRW9xn.js +1 -0
- package/dist/webcomponents/{p-CPpUGsw5.js → p-yH3TC3ZQ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +13 -13
- package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +0 -132
- package/dist/cjs/business-identity-schema-Cd0tvfJr.js +0 -101
- package/dist/cjs/country-config-MCOhn8o3.js +0 -68
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +0 -119
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +0 -876
- package/dist/cjs/terminals-list-params-state-ARjo40Y9.js +0 -22
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +0 -88
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +0 -50
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +0 -101
- package/dist/collection/components/business-forms/payment-provisioning/test/mockBusiness.js +0 -52
- package/dist/collection/components/business-forms/utils/country-config.js +0 -47
- package/dist/collection/utils/country-codes.js +0 -5
- package/dist/collection/utils/province-options.js +0 -20
- package/dist/esm/bank-account-document-form-inputs_6.entry.js +0 -125
- package/dist/esm/business-identity-schema-mN4VhA1v.js +0 -94
- package/dist/esm/country-config-BQ4D46Lb.js +0 -64
- package/dist/esm/form-control-number-masked_3.entry.js +0 -115
- package/dist/esm/terminals-list-params-state-BY5996_y.js +0 -16
- package/dist/module/bank-account-form-inputs-canada.d.ts +0 -11
- package/dist/module/bank-account-form-inputs-canada.js +0 -6
- package/dist/module/bank-account-form-inputs-canada2.js +0 -68
- package/dist/module/bank-account-read-only-value.d.ts +0 -11
- package/dist/module/bank-account-read-only-value.js +0 -6
- package/dist/module/bank-account-read-only-value2.js +0 -33
- package/dist/module/country-config.js +0 -64
- package/dist/module/form-address-fields.js +0 -65
- package/dist/module/justifi-form-address-fields.d.ts +0 -11
- package/dist/module/justifi-form-address-fields.js +0 -6
- package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.d.ts +0 -7
- package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.d.ts +0 -5
- package/dist/types/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.d.ts +0 -8
- package/dist/types/components/business-forms/payment-provisioning/test/mockBusiness.d.ts +0 -12
- package/dist/types/utils/country-codes.d.ts +0 -4
- package/dist/types/utils/province-options.d.ts +0 -5
- package/dist/webcomponents/p-0254c06c.entry.js +0 -1
- package/dist/webcomponents/p-047fe97f.entry.js +0 -1
- package/dist/webcomponents/p-04ca6ff0.entry.js +0 -1
- package/dist/webcomponents/p-09d53b03.entry.js +0 -1
- package/dist/webcomponents/p-0c5e2fed.entry.js +0 -1
- package/dist/webcomponents/p-0ea48603.entry.js +0 -1
- package/dist/webcomponents/p-17e9d5c0.entry.js +0 -1
- package/dist/webcomponents/p-1ab4d6aa.entry.js +0 -1
- package/dist/webcomponents/p-1cf42bc9.entry.js +0 -1
- package/dist/webcomponents/p-1e7f4b4f.entry.js +0 -1
- package/dist/webcomponents/p-22defde6.entry.js +0 -20
- package/dist/webcomponents/p-242208d9.entry.js +0 -1
- package/dist/webcomponents/p-31ac0c3d.entry.js +0 -1
- package/dist/webcomponents/p-36e21b78.entry.js +0 -1
- package/dist/webcomponents/p-3a77a97c.entry.js +0 -1
- package/dist/webcomponents/p-40938820.entry.js +0 -1
- package/dist/webcomponents/p-40dc0c3c.entry.js +0 -1
- package/dist/webcomponents/p-42763479.entry.js +0 -1
- package/dist/webcomponents/p-430203b0.entry.js +0 -1
- package/dist/webcomponents/p-46d2d042.entry.js +0 -1
- package/dist/webcomponents/p-485516a1.entry.js +0 -1
- package/dist/webcomponents/p-4fb58ee6.entry.js +0 -1
- package/dist/webcomponents/p-54995a3d.entry.js +0 -1
- package/dist/webcomponents/p-56617fdd.entry.js +0 -1
- package/dist/webcomponents/p-592a45f6.entry.js +0 -1
- package/dist/webcomponents/p-5a044ca5.entry.js +0 -1
- package/dist/webcomponents/p-5ec18584.entry.js +0 -1
- package/dist/webcomponents/p-6122dc79.entry.js +0 -1
- package/dist/webcomponents/p-62858ba5.entry.js +0 -1
- package/dist/webcomponents/p-62b5e6cf.entry.js +0 -1
- package/dist/webcomponents/p-67dab4d9.entry.js +0 -1
- package/dist/webcomponents/p-6b791b1d.entry.js +0 -1
- package/dist/webcomponents/p-6ebf8f11.entry.js +0 -1
- package/dist/webcomponents/p-6fdac295.entry.js +0 -1
- package/dist/webcomponents/p-724cf90f.entry.js +0 -1
- package/dist/webcomponents/p-7ecca5fe.entry.js +0 -1
- package/dist/webcomponents/p-7ecf9bd0.entry.js +0 -1
- package/dist/webcomponents/p-850dd606.entry.js +0 -1
- package/dist/webcomponents/p-85af9d78.entry.js +0 -1
- package/dist/webcomponents/p-931003fc.entry.js +0 -1
- package/dist/webcomponents/p-9367e7e6.entry.js +0 -1
- package/dist/webcomponents/p-9c114674.entry.js +0 -1
- package/dist/webcomponents/p-9c267692.entry.js +0 -1
- package/dist/webcomponents/p-B5rtFhtR.js +0 -1
- package/dist/webcomponents/p-BRhnhmpB.js +0 -1
- package/dist/webcomponents/p-BgFM_jvF.js +0 -1
- package/dist/webcomponents/p-BqbXuOZP.js +0 -1
- package/dist/webcomponents/p-BwpdCtUc.js +0 -1
- package/dist/webcomponents/p-C6g4MbnB.js +0 -1
- package/dist/webcomponents/p-CA_TyBed.js +0 -1
- package/dist/webcomponents/p-CE-MNrID.js +0 -1
- package/dist/webcomponents/p-CMpATPXy.js +0 -1
- package/dist/webcomponents/p-CQUZeo9r.js +0 -1
- package/dist/webcomponents/p-CSeo7WDO.js +0 -1
- package/dist/webcomponents/p-CTJ3moi4.js +0 -1
- package/dist/webcomponents/p-CVaOFfrI.js +0 -1
- package/dist/webcomponents/p-CYNcSTQA.js +0 -1
- package/dist/webcomponents/p-CevVA9qy.js +0 -1
- package/dist/webcomponents/p-CkiX8OGy.js +0 -1
- package/dist/webcomponents/p-CtWnJFtW.js +0 -1
- package/dist/webcomponents/p-CycBoHSW.js +0 -1
- package/dist/webcomponents/p-D-RVXHwG.js +0 -1
- package/dist/webcomponents/p-D1Na2I0C.js +0 -1
- package/dist/webcomponents/p-D5lmImiz.js +0 -1
- package/dist/webcomponents/p-DMf85Fkr.js +0 -1
- package/dist/webcomponents/p-DNPS-Ypi.js +0 -1
- package/dist/webcomponents/p-DQ5V5-Jy.js +0 -1
- package/dist/webcomponents/p-DapORSs4.js +0 -1
- package/dist/webcomponents/p-DcPNd9_D.js +0 -1
- package/dist/webcomponents/p-DfKxeSrC.js +0 -1
- package/dist/webcomponents/p-Dkujm7_O.js +0 -1
- package/dist/webcomponents/p-Dv1Fyrn3.js +0 -1
- package/dist/webcomponents/p-DxVCqvBt.js +0 -1
- package/dist/webcomponents/p-DzWLLt4t.js +0 -1
- package/dist/webcomponents/p-LO0pl3n2.js +0 -1
- package/dist/webcomponents/p-PdQT2QcR.js +0 -1
- package/dist/webcomponents/p-a2817869.entry.js +0 -1
- package/dist/webcomponents/p-a291a90c.entry.js +0 -1
- package/dist/webcomponents/p-b0bc03e6.entry.js +0 -1
- package/dist/webcomponents/p-c2cb70c8.entry.js +0 -1
- package/dist/webcomponents/p-c540fe9d.entry.js +0 -1
- package/dist/webcomponents/p-c6093716.entry.js +0 -1
- package/dist/webcomponents/p-c6e43493.entry.js +0 -1
- package/dist/webcomponents/p-c780cc91.entry.js +0 -1
- package/dist/webcomponents/p-c9598246.entry.js +0 -1
- package/dist/webcomponents/p-c972a599.entry.js +0 -1
- package/dist/webcomponents/p-cc1d8649.entry.js +0 -1
- package/dist/webcomponents/p-ce4895ca.entry.js +0 -1
- package/dist/webcomponents/p-ce67282b.entry.js +0 -1
- package/dist/webcomponents/p-cef5c6e9.entry.js +0 -1
- package/dist/webcomponents/p-d21fa0c9.entry.js +0 -1
- package/dist/webcomponents/p-d236f152.entry.js +0 -1
- package/dist/webcomponents/p-d6ac11fc.entry.js +0 -1
- package/dist/webcomponents/p-e55ce6ad.entry.js +0 -1
- package/dist/webcomponents/p-f02bd076.entry.js +0 -1
- package/dist/webcomponents/p-lPeK9y_X.js +0 -1
- package/dist/webcomponents/p-sCHf--Vc.js +0 -1
package/dist/cjs/{justifi-checkout-summary_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js}
RENAMED
|
@@ -1,36 +1,907 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var checkout_store = require('./checkout.store-DC4yVxDj.js');
|
|
7
|
-
var styledHost = require('./styled-host-DSpt9LtB.js');
|
|
3
|
+
var index = require('./index-Bhtk1qkX.js');
|
|
4
|
+
var Api = require('./Api-CjtvTD2_.js');
|
|
5
|
+
var styledHost = require('./styled-host-BSooSIhA.js');
|
|
8
6
|
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
require('./
|
|
7
|
+
var skeleton = require('./skeleton-BvdAh448.js');
|
|
8
|
+
var checkout_store = require('./checkout.store-Bswr7kNY.js');
|
|
9
|
+
var parts = require('./parts-Pb06tUMp.js');
|
|
10
|
+
var utils = require('./utils-Bab-tddY.js');
|
|
11
|
+
var header1 = require('./header-1-D3r87SC6.js');
|
|
12
|
+
var insuranceState = require('./insurance-state-JbqYvJN3.js');
|
|
13
|
+
var header3 = require('./header-3-BFQJJgBb.js');
|
|
14
|
+
var checkPkgVersion = require('./check-pkg-version-C7b-OLb5.js');
|
|
15
|
+
require('./config-state-C7babhLh.js');
|
|
14
16
|
require('./dinero-BwNN_k7x.js');
|
|
15
17
|
var ComponentError = require('./ComponentError-D4OLnOkg.js');
|
|
16
|
-
var Refund = require('./Refund-
|
|
18
|
+
var Refund = require('./Refund-BnhHNKLz.js');
|
|
17
19
|
require('./Pagination-Dediz133.js');
|
|
18
|
-
require('./Business-
|
|
20
|
+
require('./Business-DCRzZf0w.js');
|
|
19
21
|
require('./Dispute-CruQTF6_.js');
|
|
20
22
|
var utils$1 = require('./utils-DvUQQLmR.js');
|
|
21
|
-
var checkout_service = require('./checkout.service-
|
|
22
|
-
var Api = require('./Api-DqzbA2qk.js');
|
|
23
|
+
var checkout_service = require('./checkout.service-Bc8L9ixO.js');
|
|
23
24
|
var index$1 = require('./index-C2ITzalN.js');
|
|
24
25
|
var paymentMethodOptionUtils = require('./payment-method-option-utils-WYHIHy-l.js');
|
|
25
|
-
require('./index-
|
|
26
|
-
require('./package-
|
|
26
|
+
require('./index-CWM5ions.js');
|
|
27
|
+
require('./package-BHmdO9eK.js');
|
|
28
|
+
require('./helpers-B5OCqlIM.js');
|
|
29
|
+
require('./state-options-CIT9xdTz.js');
|
|
30
|
+
|
|
31
|
+
var ApplePaySessionStatus;
|
|
32
|
+
(function (ApplePaySessionStatus) {
|
|
33
|
+
ApplePaySessionStatus["STATUS_SUCCESS"] = "STATUS_SUCCESS";
|
|
34
|
+
ApplePaySessionStatus["STATUS_FAILURE"] = "STATUS_FAILURE";
|
|
35
|
+
})(ApplePaySessionStatus || (ApplePaySessionStatus = {}));
|
|
36
|
+
var ApplePayButtonType;
|
|
37
|
+
(function (ApplePayButtonType) {
|
|
38
|
+
ApplePayButtonType["PLAIN"] = "plain";
|
|
39
|
+
ApplePayButtonType["BUY"] = "buy";
|
|
40
|
+
ApplePayButtonType["SET_UP"] = "set-up";
|
|
41
|
+
ApplePayButtonType["DONATE"] = "donate";
|
|
42
|
+
ApplePayButtonType["CHECK_OUT"] = "check-out";
|
|
43
|
+
ApplePayButtonType["BOOK"] = "book";
|
|
44
|
+
ApplePayButtonType["SUBSCRIBE"] = "subscribe";
|
|
45
|
+
})(ApplePayButtonType || (ApplePayButtonType = {}));
|
|
46
|
+
var ApplePayButtonStyle;
|
|
47
|
+
(function (ApplePayButtonStyle) {
|
|
48
|
+
ApplePayButtonStyle["BLACK"] = "black";
|
|
49
|
+
ApplePayButtonStyle["WHITE"] = "white";
|
|
50
|
+
ApplePayButtonStyle["WHITE_OUTLINE"] = "white-outline";
|
|
51
|
+
})(ApplePayButtonStyle || (ApplePayButtonStyle = {}));
|
|
52
|
+
var ApplePayMerchantCapability;
|
|
53
|
+
(function (ApplePayMerchantCapability) {
|
|
54
|
+
ApplePayMerchantCapability["SUPPORTS_3DS"] = "supports3DS";
|
|
55
|
+
ApplePayMerchantCapability["SUPPORTS_EMV"] = "supportsEMV";
|
|
56
|
+
ApplePayMerchantCapability["SUPPORTS_CREDIT"] = "supportsCredit";
|
|
57
|
+
ApplePayMerchantCapability["SUPPORTS_DEBIT"] = "supportsDebit";
|
|
58
|
+
})(ApplePayMerchantCapability || (ApplePayMerchantCapability = {}));
|
|
59
|
+
class ApplePayConfig {
|
|
60
|
+
constructor(data) {
|
|
61
|
+
this.merchantIdentifier = data.merchantIdentifier;
|
|
62
|
+
this.displayName = data.displayName;
|
|
63
|
+
this.initiative = data.initiative;
|
|
64
|
+
this.initiativeContext = data.initiativeContext;
|
|
65
|
+
this.buttonType = data.buttonType || ApplePayButtonType.PLAIN;
|
|
66
|
+
this.buttonStyle = data.buttonStyle || ApplePayButtonStyle.BLACK;
|
|
67
|
+
this.buttonLocale = data.buttonLocale || 'en-US';
|
|
68
|
+
}
|
|
69
|
+
get isValid() {
|
|
70
|
+
return !!(this.merchantIdentifier &&
|
|
71
|
+
this.displayName &&
|
|
72
|
+
this.initiative &&
|
|
73
|
+
this.initiativeContext);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
class ApplePayPaymentRequest {
|
|
77
|
+
constructor(data) {
|
|
78
|
+
this.countryCode = data.countryCode;
|
|
79
|
+
this.currencyCode = data.currencyCode;
|
|
80
|
+
this.merchantCapabilities = data.merchantCapabilities;
|
|
81
|
+
this.supportedNetworks = data.supportedNetworks;
|
|
82
|
+
this.total = data.total;
|
|
83
|
+
this.lineItems = data.lineItems;
|
|
84
|
+
this.shippingMethods = data.shippingMethods;
|
|
85
|
+
this.applicationData = data.applicationData;
|
|
86
|
+
this.supportedCountries = data.supportedCountries;
|
|
87
|
+
}
|
|
88
|
+
get isValid() {
|
|
89
|
+
var _a, _b, _c, _d;
|
|
90
|
+
return !!(this.countryCode &&
|
|
91
|
+
this.currencyCode &&
|
|
92
|
+
((_a = this.merchantCapabilities) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
93
|
+
((_b = this.supportedNetworks) === null || _b === void 0 ? void 0 : _b.length) &&
|
|
94
|
+
((_c = this.total) === null || _c === void 0 ? void 0 : _c.label) &&
|
|
95
|
+
((_d = this.total) === null || _d === void 0 ? void 0 : _d.amount));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
class ApplePayHelpers {
|
|
99
|
+
static isApplePaySupported() {
|
|
100
|
+
var _a;
|
|
101
|
+
return (typeof window !== 'undefined' &&
|
|
102
|
+
'ApplePaySession' in window &&
|
|
103
|
+
((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.supportsVersion(3)));
|
|
104
|
+
}
|
|
105
|
+
static canMakePayments() {
|
|
106
|
+
var _a;
|
|
107
|
+
if (!this.isApplePaySupported()) {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
return ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePayments()) || false;
|
|
111
|
+
}
|
|
112
|
+
static async canMakePaymentsWithActiveCard(merchantIdentifier) {
|
|
113
|
+
var _a;
|
|
114
|
+
if (!this.isApplePaySupported()) {
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
try {
|
|
118
|
+
return ((await ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePaymentsWithActiveCard(merchantIdentifier))) || false);
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
console.error('Error checking Apple Pay active card:', error);
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
static formatAmount(amount) {
|
|
126
|
+
return (amount / 100).toFixed(2);
|
|
127
|
+
}
|
|
128
|
+
static parseAmount(amount) {
|
|
129
|
+
return Math.round(parseFloat(amount) * 100);
|
|
130
|
+
}
|
|
131
|
+
static createLineItem(label, amount, type = 'final') {
|
|
132
|
+
return {
|
|
133
|
+
label,
|
|
134
|
+
amount: this.formatAmount(amount),
|
|
135
|
+
type,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
static getDefaultSupportedNetworks() {
|
|
139
|
+
return ['amex', 'discover', 'masterCard', 'visa'];
|
|
140
|
+
}
|
|
141
|
+
static getDefaultMerchantCapabilities() {
|
|
142
|
+
return [
|
|
143
|
+
ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
144
|
+
ApplePayMerchantCapability.SUPPORTS_EMV,
|
|
145
|
+
ApplePayMerchantCapability.SUPPORTS_CREDIT,
|
|
146
|
+
ApplePayMerchantCapability.SUPPORTS_DEBIT,
|
|
147
|
+
];
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Centralized error codes for Apple Pay service
|
|
152
|
+
var ApplePayServiceErrorCode;
|
|
153
|
+
(function (ApplePayServiceErrorCode) {
|
|
154
|
+
ApplePayServiceErrorCode["UNAVAILABLE"] = "UNAVAILABLE";
|
|
155
|
+
ApplePayServiceErrorCode["SESSION_ERROR"] = "SESSION_ERROR";
|
|
156
|
+
ApplePayServiceErrorCode["MERCHANT_VALIDATION_ERROR"] = "MERCHANT_VALIDATION_ERROR";
|
|
157
|
+
ApplePayServiceErrorCode["PAYMENT_PROCESSING_ERROR"] = "PAYMENT_PROCESSING_ERROR";
|
|
158
|
+
ApplePayServiceErrorCode["USER_CANCELLED"] = "USER_CANCELLED";
|
|
159
|
+
})(ApplePayServiceErrorCode || (ApplePayServiceErrorCode = {}));
|
|
160
|
+
class ApplePayService {
|
|
161
|
+
constructor() {
|
|
162
|
+
this.api = Api.Api();
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Initialize Apple Pay configuration
|
|
166
|
+
*/
|
|
167
|
+
initialize(applePayConfig) {
|
|
168
|
+
this.applePayConfig = new ApplePayConfig(applePayConfig);
|
|
169
|
+
if (!this.applePayConfig.isValid) {
|
|
170
|
+
throw new Error('Invalid Apple Pay configuration provided');
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Validate merchant with Apple Pay servers via API
|
|
175
|
+
*/
|
|
176
|
+
async validateMerchant(authToken, accountId) {
|
|
177
|
+
const endpoint = 'apple_pay/merchant_session';
|
|
178
|
+
try {
|
|
179
|
+
const response = await this.api.post({
|
|
180
|
+
endpoint,
|
|
181
|
+
authToken,
|
|
182
|
+
headers: {
|
|
183
|
+
'Sub-Account': accountId,
|
|
184
|
+
},
|
|
185
|
+
body: {
|
|
186
|
+
domain: window.location.host
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
return response;
|
|
190
|
+
}
|
|
191
|
+
catch (error) {
|
|
192
|
+
console.error('Backend validation failed:', error);
|
|
193
|
+
throw new Error('Merchant validation failed');
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Process Apple Pay payment via API (fixed to match original logic)
|
|
198
|
+
*/
|
|
199
|
+
async processPayment(authToken, accountId, payload) {
|
|
200
|
+
const endpoint = 'apple_pay/process_token';
|
|
201
|
+
const result = await this.api.post({
|
|
202
|
+
endpoint,
|
|
203
|
+
authToken,
|
|
204
|
+
body: payload,
|
|
205
|
+
headers: {
|
|
206
|
+
'Sub-Account': accountId,
|
|
207
|
+
},
|
|
208
|
+
});
|
|
209
|
+
return {
|
|
210
|
+
success: result.id && !!result.data.token,
|
|
211
|
+
data: result,
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Check if Apple Pay is available on this device/browser
|
|
216
|
+
*/
|
|
217
|
+
isAvailable() {
|
|
218
|
+
return (ApplePayHelpers.isApplePaySupported() && ApplePayHelpers.canMakePayments());
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Check if the user has an active card for the merchant
|
|
222
|
+
*/
|
|
223
|
+
async canMakePaymentsWithActiveCard() {
|
|
224
|
+
if (!this.applePayConfig) {
|
|
225
|
+
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
226
|
+
}
|
|
227
|
+
return await ApplePayHelpers.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Start Apple Pay session
|
|
231
|
+
*/
|
|
232
|
+
async startPaymentSession(paymentRequest, authToken, accountId) {
|
|
233
|
+
// Begin verbose diagnostics for easier debugging in the field
|
|
234
|
+
console.groupCollapsed('[ApplePayService] startPaymentSession called');
|
|
235
|
+
console.log('[ApplePayService] raw paymentRequest:', JSON.stringify(paymentRequest, null, 2));
|
|
236
|
+
console.log('[ApplePayService] has authToken:', Boolean(authToken));
|
|
237
|
+
console.log('[ApplePayService] accountId:', accountId);
|
|
238
|
+
console.log('[ApplePayService] has config:', Boolean(this.applePayConfig));
|
|
239
|
+
if (!this.applePayConfig) {
|
|
240
|
+
console.error('[ApplePayService] Missing applePayConfig. Did you call initialize()?');
|
|
241
|
+
console.groupEnd();
|
|
242
|
+
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
243
|
+
}
|
|
244
|
+
// if (!this.isAvailable()) {
|
|
245
|
+
// throw new Error('Apple Pay is not available on this device/browser');
|
|
246
|
+
// }
|
|
247
|
+
const request = new ApplePayPaymentRequest(paymentRequest);
|
|
248
|
+
console.log('[ApplePayService] created ApplePayPaymentRequest:', request);
|
|
249
|
+
if (!request.isValid) {
|
|
250
|
+
const missingFields = [];
|
|
251
|
+
if (!request.countryCode)
|
|
252
|
+
missingFields.push('countryCode');
|
|
253
|
+
if (!request.currencyCode)
|
|
254
|
+
missingFields.push('currencyCode');
|
|
255
|
+
if (!request.merchantCapabilities ||
|
|
256
|
+
request.merchantCapabilities.length === 0)
|
|
257
|
+
missingFields.push('merchantCapabilities');
|
|
258
|
+
if (!request.supportedNetworks || request.supportedNetworks.length === 0)
|
|
259
|
+
missingFields.push('supportedNetworks');
|
|
260
|
+
if (!request.total || !request.total.label || !request.total.amount)
|
|
261
|
+
missingFields.push('total');
|
|
262
|
+
console.error('[ApplePayService] Payment request is invalid. Missing/invalid:', missingFields);
|
|
263
|
+
console.groupEnd();
|
|
264
|
+
throw new Error('Invalid payment request provided');
|
|
265
|
+
}
|
|
266
|
+
this.currentPaymentRequest = request;
|
|
267
|
+
return new Promise((resolve, reject) => {
|
|
268
|
+
try {
|
|
269
|
+
console.log('[ApplePayService] About to instantiate ApplePaySession');
|
|
270
|
+
// Defensive checks for Apple Pay environment
|
|
271
|
+
if (typeof window === 'undefined' || !('ApplePaySession' in window)) {
|
|
272
|
+
console.error('[ApplePayService] ApplePaySession not available on window');
|
|
273
|
+
console.groupEnd();
|
|
274
|
+
return reject({
|
|
275
|
+
success: false,
|
|
276
|
+
error: {
|
|
277
|
+
code: ApplePayServiceErrorCode.UNAVAILABLE,
|
|
278
|
+
message: 'ApplePaySession API is not available in this environment',
|
|
279
|
+
},
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
this.currentSession = new window.ApplePaySession(3, request);
|
|
283
|
+
console.log('[ApplePayService] ApplePaySession instantiated:', this.currentSession);
|
|
284
|
+
this.setupSessionEventHandlers(resolve, reject, authToken, accountId);
|
|
285
|
+
console.log('[ApplePayService] Event handlers set. Beginning session...');
|
|
286
|
+
this.currentSession.begin();
|
|
287
|
+
console.log('[ApplePayService] Session.begin() called');
|
|
288
|
+
console.groupEnd();
|
|
289
|
+
}
|
|
290
|
+
catch (error) {
|
|
291
|
+
console.error('[ApplePayService] Exception while starting session:', error);
|
|
292
|
+
console.groupEnd();
|
|
293
|
+
reject({
|
|
294
|
+
success: false,
|
|
295
|
+
error: {
|
|
296
|
+
code: ApplePayServiceErrorCode.SESSION_ERROR,
|
|
297
|
+
message: error instanceof Error
|
|
298
|
+
? error.message
|
|
299
|
+
: 'Failed to start Apple Pay session',
|
|
300
|
+
},
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Abort current Apple Pay session
|
|
307
|
+
*/
|
|
308
|
+
abortPaymentSession() {
|
|
309
|
+
if (this.currentSession) {
|
|
310
|
+
this.currentSession.abort();
|
|
311
|
+
this.currentSession = undefined;
|
|
312
|
+
this.currentPaymentRequest = undefined;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Setup Apple Pay session event handlers
|
|
317
|
+
*/
|
|
318
|
+
setupSessionEventHandlers(resolve, reject, authToken, accountId) {
|
|
319
|
+
if (!this.currentSession ||
|
|
320
|
+
!this.applePayConfig ||
|
|
321
|
+
!this.currentPaymentRequest) {
|
|
322
|
+
console.error('[ApplePayService] setupSessionEventHandlers called without required state', {
|
|
323
|
+
hasSession: Boolean(this.currentSession),
|
|
324
|
+
hasConfig: Boolean(this.applePayConfig),
|
|
325
|
+
hasPaymentRequest: Boolean(this.currentPaymentRequest),
|
|
326
|
+
});
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
this.currentSession.onvalidatemerchant = async () => {
|
|
330
|
+
console.groupCollapsed('[ApplePayService] onvalidatemerchant');
|
|
331
|
+
try {
|
|
332
|
+
console.log('[ApplePayService] accountId:', accountId);
|
|
333
|
+
if (!authToken) {
|
|
334
|
+
console.error('[ApplePayService] Missing authToken for merchant validation');
|
|
335
|
+
throw new Error('Authentication token not provided.');
|
|
336
|
+
}
|
|
337
|
+
const merchantSession = await this.validateMerchant(authToken, accountId);
|
|
338
|
+
console.log('[ApplePayService] merchantSession received');
|
|
339
|
+
try {
|
|
340
|
+
this.currentSession.completeMerchantValidation(merchantSession);
|
|
341
|
+
console.log('[ApplePayService] completeMerchantValidation called');
|
|
342
|
+
}
|
|
343
|
+
catch (completionError) {
|
|
344
|
+
console.error('Error calling completeMerchantValidation:', completionError);
|
|
345
|
+
throw completionError;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
catch (error) {
|
|
349
|
+
console.error('=== MERCHANT VALIDATION ERROR ===');
|
|
350
|
+
console.error('Error during merchant validation:', error);
|
|
351
|
+
if (error && error.stack) {
|
|
352
|
+
console.error('Error stack:', error.stack);
|
|
353
|
+
}
|
|
354
|
+
this.currentSession.abort();
|
|
355
|
+
reject({
|
|
356
|
+
success: false,
|
|
357
|
+
error: {
|
|
358
|
+
code: ApplePayServiceErrorCode.MERCHANT_VALIDATION_ERROR,
|
|
359
|
+
message: error instanceof Error
|
|
360
|
+
? error.message
|
|
361
|
+
: 'Merchant validation failed',
|
|
362
|
+
},
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
console.groupEnd();
|
|
366
|
+
};
|
|
367
|
+
this.currentSession.onpaymentauthorized = async (event) => {
|
|
368
|
+
var _a;
|
|
369
|
+
console.groupCollapsed('[ApplePayService] onpaymentauthorized');
|
|
370
|
+
try {
|
|
371
|
+
const payment = event.payment;
|
|
372
|
+
console.log('[ApplePayService] payment payload snapshot:', {
|
|
373
|
+
hasToken: Boolean(payment === null || payment === void 0 ? void 0 : payment.token),
|
|
374
|
+
tokenType: ((_a = payment === null || payment === void 0 ? void 0 : payment.token) === null || _a === void 0 ? void 0 : _a.paymentData) ? 'paymentData' : 'raw',
|
|
375
|
+
});
|
|
376
|
+
const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
|
|
377
|
+
name: this.currentPaymentRequest.total.label,
|
|
378
|
+
price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
|
|
379
|
+
description: this.currentPaymentRequest.total.label,
|
|
380
|
+
} });
|
|
381
|
+
console.log('[ApplePayService] paymentPayload prepared');
|
|
382
|
+
const paymentResult = await this.processPayment(authToken, accountId, paymentPayload);
|
|
383
|
+
console.log('[ApplePayService] processPayment result:', paymentResult);
|
|
384
|
+
if (paymentResult.success) {
|
|
385
|
+
this.currentSession.completePayment({
|
|
386
|
+
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
387
|
+
});
|
|
388
|
+
console.log('[ApplePayService] Payment success; resolving');
|
|
389
|
+
resolve({
|
|
390
|
+
success: true,
|
|
391
|
+
token: payment.token,
|
|
392
|
+
paymentMethodId: paymentResult.data.id,
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
console.error('PSP reported payment failure:', paymentResult.data);
|
|
397
|
+
this.currentSession.completePayment({
|
|
398
|
+
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
399
|
+
});
|
|
400
|
+
reject({
|
|
401
|
+
success: false,
|
|
402
|
+
error: {
|
|
403
|
+
code: ApplePayServiceErrorCode.PAYMENT_PROCESSING_ERROR,
|
|
404
|
+
message: 'Payment processing failed',
|
|
405
|
+
},
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
catch (error) {
|
|
410
|
+
console.error('=== PAYMENT PROCESSING ERROR ===');
|
|
411
|
+
console.error('Error processing payment:', error);
|
|
412
|
+
if (error && error.stack) {
|
|
413
|
+
console.error('Error stack:', error.stack);
|
|
414
|
+
}
|
|
415
|
+
this.currentSession.completePayment({
|
|
416
|
+
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
417
|
+
});
|
|
418
|
+
reject({
|
|
419
|
+
success: false,
|
|
420
|
+
error: {
|
|
421
|
+
code: ApplePayServiceErrorCode.PAYMENT_PROCESSING_ERROR,
|
|
422
|
+
message: error instanceof Error
|
|
423
|
+
? error.message
|
|
424
|
+
: 'Payment processing failed',
|
|
425
|
+
},
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
finally {
|
|
429
|
+
console.log('[ApplePayService] Cleaning up session state');
|
|
430
|
+
this.currentSession = undefined;
|
|
431
|
+
this.currentPaymentRequest = undefined;
|
|
432
|
+
}
|
|
433
|
+
console.groupEnd();
|
|
434
|
+
};
|
|
435
|
+
this.currentSession.onpaymentmethodselected = () => {
|
|
436
|
+
console.groupCollapsed('[ApplePayService] onpaymentmethodselected');
|
|
437
|
+
const paymentUpdate = {
|
|
438
|
+
newTotal: this.currentPaymentRequest.total,
|
|
439
|
+
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
440
|
+
};
|
|
441
|
+
try {
|
|
442
|
+
this.currentSession.completePaymentMethodSelection(paymentUpdate);
|
|
443
|
+
console.log('[ApplePayService] completePaymentMethodSelection called');
|
|
444
|
+
}
|
|
445
|
+
catch (error) {
|
|
446
|
+
console.error('Error completing payment method selection:', error);
|
|
447
|
+
this.currentSession.abort();
|
|
448
|
+
}
|
|
449
|
+
console.groupEnd();
|
|
450
|
+
};
|
|
451
|
+
this.currentSession.onshippingmethodselected = () => {
|
|
452
|
+
console.groupCollapsed('[ApplePayService] onshippingmethodselected');
|
|
453
|
+
this.currentSession.completeShippingMethodSelection({
|
|
454
|
+
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
455
|
+
newTotal: this.currentPaymentRequest.total,
|
|
456
|
+
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
457
|
+
});
|
|
458
|
+
console.log('[ApplePayService] completeShippingMethodSelection called');
|
|
459
|
+
console.groupEnd();
|
|
460
|
+
};
|
|
461
|
+
this.currentSession.oncancel = (event) => {
|
|
462
|
+
console.groupCollapsed('[ApplePayService] oncancel');
|
|
463
|
+
if (event.sessionError) {
|
|
464
|
+
console.error(event.sessionError);
|
|
465
|
+
switch (event.sessionError.code) {
|
|
466
|
+
case 'unknown':
|
|
467
|
+
console.error('Unknown error - likely merchant validation issue');
|
|
468
|
+
console.error('This usually means:');
|
|
469
|
+
console.error('1. Merchant certificate is invalid or expired');
|
|
470
|
+
console.error('2. Merchant identifier mismatch');
|
|
471
|
+
console.error('3. Backend validation endpoint issues');
|
|
472
|
+
break;
|
|
473
|
+
case 'invalidMerchantSession':
|
|
474
|
+
console.error('Invalid merchant session provided');
|
|
475
|
+
console.error('Check that the merchant session from backend is valid');
|
|
476
|
+
break;
|
|
477
|
+
case 'userCancel':
|
|
478
|
+
console.error('User cancelled the payment');
|
|
479
|
+
break;
|
|
480
|
+
default:
|
|
481
|
+
console.error('Other error code:', event.sessionError.code);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
this.currentSession = undefined;
|
|
485
|
+
this.currentPaymentRequest = undefined;
|
|
486
|
+
reject({
|
|
487
|
+
success: false,
|
|
488
|
+
error: {
|
|
489
|
+
code: ApplePayServiceErrorCode.USER_CANCELLED,
|
|
490
|
+
message: 'User cancelled the Apple Pay session',
|
|
491
|
+
},
|
|
492
|
+
});
|
|
493
|
+
console.groupEnd();
|
|
494
|
+
};
|
|
495
|
+
if ('onerror' in this.currentSession) {
|
|
496
|
+
this.currentSession.onerror = (error) => {
|
|
497
|
+
console.groupCollapsed('[ApplePayService] onerror');
|
|
498
|
+
console.error('=== APPLE PAY SESSION ERROR ===');
|
|
499
|
+
console.error('Session error:', error);
|
|
500
|
+
this.currentSession = undefined;
|
|
501
|
+
this.currentPaymentRequest = undefined;
|
|
502
|
+
reject({
|
|
503
|
+
success: false,
|
|
504
|
+
error: {
|
|
505
|
+
code: ApplePayServiceErrorCode.SESSION_ERROR,
|
|
506
|
+
message: 'Apple Pay session error occurred',
|
|
507
|
+
},
|
|
508
|
+
});
|
|
509
|
+
console.groupEnd();
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Create a basic payment request
|
|
515
|
+
*/
|
|
516
|
+
static createPaymentRequest(amount, label, countryCode = 'US', currencyCode = 'USD') {
|
|
517
|
+
return {
|
|
518
|
+
countryCode,
|
|
519
|
+
currencyCode,
|
|
520
|
+
merchantCapabilities: ApplePayHelpers.getDefaultMerchantCapabilities(),
|
|
521
|
+
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
522
|
+
total: ApplePayHelpers.createLineItem(label, amount),
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Get current configuration
|
|
527
|
+
*/
|
|
528
|
+
getApplePayConfig() {
|
|
529
|
+
return this.applePayConfig;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
const ApplePaySkeleton = (props) => {
|
|
534
|
+
const { isLoading } = props;
|
|
535
|
+
if (!isLoading) {
|
|
536
|
+
return null;
|
|
537
|
+
}
|
|
538
|
+
return (index.h("div", { class: 'container-fluid p-0' }, index.h("div", { class: 'row mb-3' }, index.h("div", { class: 'col-12 align-content-center' }, index.h(skeleton.Skeleton, { height: '44px', width: '100%', styles: { borderRadius: "8px" } })))));
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
const ProcessingSpinner = () => (index.h("div", { class: 'processing-overlay' }, index.h("div", { class: 'spinner' }), index.h("span", null, "Processing...")));
|
|
542
|
+
const ApplePayButton = (props) => {
|
|
543
|
+
const getApplePayButtonClass = () => {
|
|
544
|
+
let classes = "apple-pay-button";
|
|
545
|
+
switch (props.buttonStyle) {
|
|
546
|
+
case ApplePayButtonStyle.WHITE:
|
|
547
|
+
classes += " apple-pay-button-white";
|
|
548
|
+
break;
|
|
549
|
+
case ApplePayButtonStyle.WHITE_OUTLINE:
|
|
550
|
+
classes += " apple-pay-button-white-outline";
|
|
551
|
+
break;
|
|
552
|
+
case ApplePayButtonStyle.BLACK:
|
|
553
|
+
default:
|
|
554
|
+
classes += " apple-pay-button-black";
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
557
|
+
switch (props.buttonType) {
|
|
558
|
+
case ApplePayButtonType.BUY:
|
|
559
|
+
classes += " apple-pay-button-type-buy";
|
|
560
|
+
break;
|
|
561
|
+
case ApplePayButtonType.DONATE:
|
|
562
|
+
classes += " apple-pay-button-type-donate";
|
|
563
|
+
break;
|
|
564
|
+
case ApplePayButtonType.PLAIN:
|
|
565
|
+
default:
|
|
566
|
+
classes += " apple-pay-button-type-plain";
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
if (props.disabled || props.isProcessing || !props.isAvailable) {
|
|
570
|
+
classes += " disabled";
|
|
571
|
+
}
|
|
572
|
+
return classes;
|
|
573
|
+
};
|
|
574
|
+
const handleClick = () => {
|
|
575
|
+
if (!props.disabled &&
|
|
576
|
+
!props.isProcessing &&
|
|
577
|
+
props.isAvailable &&
|
|
578
|
+
props.clickHandler) {
|
|
579
|
+
props.clickHandler();
|
|
580
|
+
}
|
|
581
|
+
};
|
|
582
|
+
return (index.h("div", { class: 'apple-pay-button-container' }, index.h("button", Object.assign({ class: getApplePayButtonClass(), style: {
|
|
583
|
+
width: props.width,
|
|
584
|
+
height: props.height,
|
|
585
|
+
}, onClick: handleClick, disabled: props.disabled || props.isProcessing || !props.isAvailable, "aria-label": 'Pay with Apple Pay', type: 'button' }, props), props.isProcessing && ProcessingSpinner()), index.h("style", null, `
|
|
586
|
+
.apple-pay-button-container {
|
|
587
|
+
display: block;
|
|
588
|
+
position: relative;
|
|
589
|
+
width: 100%;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/* Apple Pay CSS classes - these are the official Apple Pay button styles */
|
|
593
|
+
.apple-pay-button {
|
|
594
|
+
display: inline-block;
|
|
595
|
+
-webkit-appearance: -apple-pay-button;
|
|
596
|
+
-apple-pay-button-type: plain; /* default */
|
|
597
|
+
-apple-pay-button-style: black; /* default */
|
|
598
|
+
border-radius: 8px;
|
|
599
|
+
cursor: pointer;
|
|
600
|
+
border: none;
|
|
601
|
+
outline: none;
|
|
602
|
+
transition: opacity 0.2s ease;
|
|
603
|
+
position: relative;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/* Button styles */
|
|
607
|
+
.apple-pay-button.apple-pay-button-black {
|
|
608
|
+
-apple-pay-button-style: black;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.apple-pay-button.apple-pay-button-white {
|
|
612
|
+
-apple-pay-button-style: white;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.apple-pay-button.apple-pay-button-white-outline {
|
|
616
|
+
-apple-pay-button-style: white-outline;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/* Button types */
|
|
620
|
+
.apple-pay-button.apple-pay-button-type-plain {
|
|
621
|
+
-apple-pay-button-type: plain;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.apple-pay-button.apple-pay-button-type-buy {
|
|
625
|
+
-apple-pay-button-type: buy;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.apple-pay-button.apple-pay-button-type-donate {
|
|
629
|
+
-apple-pay-button-type: donate;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/* Hover and disabled states */
|
|
633
|
+
.apple-pay-button:hover:not(.disabled) {
|
|
634
|
+
opacity: 0.9;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.apple-pay-button.disabled {
|
|
638
|
+
opacity: 0.5;
|
|
639
|
+
cursor: not-allowed;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/* Processing overlay */
|
|
643
|
+
.processing-overlay {
|
|
644
|
+
position: absolute;
|
|
645
|
+
top: 0;
|
|
646
|
+
left: 0;
|
|
647
|
+
right: 0;
|
|
648
|
+
bottom: 0;
|
|
649
|
+
display: flex;
|
|
650
|
+
align-items: center;
|
|
651
|
+
justify-content: center;
|
|
652
|
+
gap: 8px;
|
|
653
|
+
background: rgba(0, 0, 0, 0.8);
|
|
654
|
+
color: white;
|
|
655
|
+
border-radius: 8px;
|
|
656
|
+
font-size: 14px;
|
|
657
|
+
font-weight: 500;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.spinner {
|
|
661
|
+
width: 16px;
|
|
662
|
+
height: 16px;
|
|
663
|
+
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
664
|
+
border-top: 2px solid #fff;
|
|
665
|
+
border-radius: 50%;
|
|
666
|
+
animation: spin 1s linear infinite;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
@keyframes spin {
|
|
670
|
+
0% { transform: rotate(0deg); }
|
|
671
|
+
100% { transform: rotate(360deg); }
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/* Responsive design */
|
|
675
|
+
@media (max-width: 480px) {
|
|
676
|
+
.apple-pay-button {
|
|
677
|
+
width: 100% !important;
|
|
678
|
+
min-width: 200px;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
`)));
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
const ApplePay = class {
|
|
685
|
+
constructor(hostRef) {
|
|
686
|
+
index.registerInstance(this, hostRef);
|
|
687
|
+
this.applePayStarted = index.createEvent(this, "applePayStarted");
|
|
688
|
+
this.applePayCompleted = index.createEvent(this, "applePayCompleted");
|
|
689
|
+
this.applePayCancelled = index.createEvent(this, "applePayCancelled");
|
|
690
|
+
this.applePayError = index.createEvent(this, "applePayError");
|
|
691
|
+
this.countryCode = "US";
|
|
692
|
+
this.merchantIdentifier = "merchant.com.staging-justifi.checkout-dev";
|
|
693
|
+
this.merchantDisplayName = "JustiFi Checkout";
|
|
694
|
+
this.initiativeContext = "dev-checkout.justifi-staging.com";
|
|
695
|
+
this.buttonType = ApplePayButtonType.PLAIN;
|
|
696
|
+
this.buttonStyle = ApplePayButtonStyle.BLACK;
|
|
697
|
+
this.disabled = false;
|
|
698
|
+
this.showSkeleton = true;
|
|
699
|
+
this.width = "100%";
|
|
700
|
+
this.height = "48px";
|
|
701
|
+
this.isLoading = true;
|
|
702
|
+
this.isProcessing = false;
|
|
703
|
+
this.isAvailable = false;
|
|
704
|
+
this.canMakePayments = false;
|
|
705
|
+
this.isConfigValid = true;
|
|
706
|
+
this.error = null;
|
|
707
|
+
this.handleApplePayClick = async () => {
|
|
708
|
+
var _a, _b;
|
|
709
|
+
if (this.isProcessing || this.disabled || !this.isAvailable) {
|
|
710
|
+
return;
|
|
711
|
+
}
|
|
712
|
+
try {
|
|
713
|
+
this.isProcessing = true;
|
|
714
|
+
this.error = null;
|
|
715
|
+
this.applePayStarted.emit();
|
|
716
|
+
console.groupCollapsed('[ApplePay Component] handleApplePayClick');
|
|
717
|
+
console.log('[ApplePay Component] click context:', {
|
|
718
|
+
isProcessing: this.isProcessing,
|
|
719
|
+
disabled: this.disabled,
|
|
720
|
+
isAvailable: this.isAvailable,
|
|
721
|
+
canMakePayments: this.canMakePayments,
|
|
722
|
+
hasService: Boolean(this.applePayService),
|
|
723
|
+
});
|
|
724
|
+
const paymentRequest = {
|
|
725
|
+
countryCode: this.countryCode,
|
|
726
|
+
currencyCode: checkout_store.checkoutStore.paymentCurrency,
|
|
727
|
+
merchantCapabilities: [
|
|
728
|
+
ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
729
|
+
ApplePayMerchantCapability.SUPPORTS_CREDIT,
|
|
730
|
+
ApplePayMerchantCapability.SUPPORTS_DEBIT,
|
|
731
|
+
],
|
|
732
|
+
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
733
|
+
total: ApplePayHelpers.createLineItem(checkout_store.checkoutStore.paymentDescription, checkout_store.checkoutStore.paymentAmount),
|
|
734
|
+
};
|
|
735
|
+
console.log("[ApplePay Component] paymentRequest", paymentRequest);
|
|
736
|
+
console.log('[ApplePay Component] identifiers snapshot:', {
|
|
737
|
+
authTokenLength: checkout_store.checkoutStore.authToken ? String(checkout_store.checkoutStore.authToken).length : 0,
|
|
738
|
+
accountId: checkout_store.checkoutStore.accountId,
|
|
739
|
+
});
|
|
740
|
+
const result = await this.applePayService.startPaymentSession(paymentRequest, checkout_store.checkoutStore.authToken, checkout_store.checkoutStore.accountId);
|
|
741
|
+
console.log("[ApplePay Component] startPaymentSession result", result);
|
|
742
|
+
if (result.success) {
|
|
743
|
+
this.applePayCompleted.emit({
|
|
744
|
+
success: true,
|
|
745
|
+
token: result.token,
|
|
746
|
+
paymentMethodId: result.paymentMethodId,
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
else {
|
|
750
|
+
this.applePayCompleted.emit({
|
|
751
|
+
success: false,
|
|
752
|
+
error: result.error,
|
|
753
|
+
});
|
|
754
|
+
this.applePayError.emit({
|
|
755
|
+
error: ((_a = result.error) === null || _a === void 0 ? void 0 : _a.message) || "Payment failed",
|
|
756
|
+
code: ((_b = result.error) === null || _b === void 0 ? void 0 : _b.code) || ApplePay.ErrorCode.PAYMENT_FAILED,
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
catch (error) {
|
|
761
|
+
const errorMessage = error instanceof Error ? error.message : "Payment failed";
|
|
762
|
+
this.error = errorMessage;
|
|
763
|
+
this.applePayError.emit({ error: errorMessage, code: ApplePay.ErrorCode.PAYMENT_FAILED });
|
|
764
|
+
this.applePayCompleted.emit({
|
|
765
|
+
success: false,
|
|
766
|
+
error: errorMessage,
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
finally {
|
|
770
|
+
this.isProcessing = false;
|
|
771
|
+
console.groupEnd();
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
async initializeApplePay() {
|
|
776
|
+
try {
|
|
777
|
+
this.isLoading = true;
|
|
778
|
+
this.error = null;
|
|
779
|
+
this.isConfigValid = true;
|
|
780
|
+
console.groupCollapsed('[ApplePay Component] initializeApplePay');
|
|
781
|
+
console.log('[ApplePay Component] checkout state snapshot:', {
|
|
782
|
+
paymentAmount: checkout_store.checkoutStore.paymentAmount,
|
|
783
|
+
paymentCurrency: checkout_store.checkoutStore.paymentCurrency,
|
|
784
|
+
hasAuthToken: Boolean(checkout_store.checkoutStore.authToken),
|
|
785
|
+
accountId: checkout_store.checkoutStore.accountId,
|
|
786
|
+
});
|
|
787
|
+
const hasRequiredConfig = Boolean(checkout_store.checkoutStore.paymentAmount) &&
|
|
788
|
+
Boolean(checkout_store.checkoutStore.paymentCurrency) &&
|
|
789
|
+
Boolean(checkout_store.checkoutStore.authToken);
|
|
790
|
+
if (!hasRequiredConfig) {
|
|
791
|
+
this.error = "Missing required Apple Pay configuration";
|
|
792
|
+
this.isConfigValid = false;
|
|
793
|
+
console.error("Apple Pay config error: missing required values", {
|
|
794
|
+
paymentAmount: checkout_store.checkoutStore.paymentAmount,
|
|
795
|
+
paymentCurrency: checkout_store.checkoutStore.paymentCurrency,
|
|
796
|
+
hasAuthToken: Boolean(checkout_store.checkoutStore.authToken),
|
|
797
|
+
accountId: checkout_store.checkoutStore.accountId,
|
|
798
|
+
});
|
|
799
|
+
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.CONFIG_ERROR });
|
|
800
|
+
this.isLoading = false;
|
|
801
|
+
console.groupEnd();
|
|
802
|
+
return;
|
|
803
|
+
}
|
|
804
|
+
this.isAvailable = ApplePayHelpers.isApplePaySupported();
|
|
805
|
+
this.canMakePayments = ApplePayHelpers.canMakePayments();
|
|
806
|
+
console.log('[ApplePay Component] support check:', {
|
|
807
|
+
isAvailable: this.isAvailable,
|
|
808
|
+
canMakePayments: this.canMakePayments,
|
|
809
|
+
hasApplePaySessionOnWindow: typeof window !== 'undefined' && 'ApplePaySession' in window,
|
|
810
|
+
});
|
|
811
|
+
if (!this.isAvailable) {
|
|
812
|
+
this.error = "Apple Pay is not supported on this device";
|
|
813
|
+
console.error(this.error);
|
|
814
|
+
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_SUPPORTED });
|
|
815
|
+
this.isLoading = false;
|
|
816
|
+
console.groupEnd();
|
|
817
|
+
return;
|
|
818
|
+
}
|
|
819
|
+
if (!this.canMakePayments) {
|
|
820
|
+
this.error = "Apple Pay is not available";
|
|
821
|
+
console.error(this.error);
|
|
822
|
+
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_AVAILABLE });
|
|
823
|
+
this.isLoading = false;
|
|
824
|
+
console.groupEnd();
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
const applePayConfig = {
|
|
828
|
+
merchantIdentifier: this.merchantIdentifier,
|
|
829
|
+
displayName: this.merchantDisplayName,
|
|
830
|
+
initiative: "web",
|
|
831
|
+
initiativeContext: this.initiativeContext,
|
|
832
|
+
buttonType: this.buttonType,
|
|
833
|
+
buttonStyle: this.buttonStyle,
|
|
834
|
+
};
|
|
835
|
+
console.log('[ApplePay Component] initializing service with config:', applePayConfig);
|
|
836
|
+
this.applePayService = new ApplePayService();
|
|
837
|
+
this.applePayService.initialize(applePayConfig);
|
|
838
|
+
const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
|
|
839
|
+
if (!hasActiveCard) {
|
|
840
|
+
console.warn("No Apple Pay cards available, but continuing...");
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
catch (error) {
|
|
844
|
+
console.error("Apple Pay initialization error:", error);
|
|
845
|
+
this.error =
|
|
846
|
+
error instanceof Error
|
|
847
|
+
? error.message
|
|
848
|
+
: "Failed to initialize Apple Pay";
|
|
849
|
+
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.INITIALIZATION_ERROR });
|
|
850
|
+
}
|
|
851
|
+
finally {
|
|
852
|
+
this.isLoading = false;
|
|
853
|
+
console.groupEnd();
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
async isSupported() {
|
|
857
|
+
return this.isAvailable && this.canMakePayments;
|
|
858
|
+
}
|
|
859
|
+
async getPaymentMethods() {
|
|
860
|
+
if (!this.isAvailable) {
|
|
861
|
+
return [];
|
|
862
|
+
}
|
|
863
|
+
return ApplePayHelpers.getDefaultSupportedNetworks();
|
|
864
|
+
}
|
|
865
|
+
async abort() {
|
|
866
|
+
this.applePayService.abortPaymentSession();
|
|
867
|
+
this.isProcessing = false;
|
|
868
|
+
this.applePayCancelled.emit();
|
|
869
|
+
}
|
|
870
|
+
render() {
|
|
871
|
+
if (!checkout_store.checkoutStore.applePayEnabled) {
|
|
872
|
+
// Render nothing when Apple Pay is disabled at the checkout settings level
|
|
873
|
+
console.log('[ApplePay Component] Apple Pay disabled in checkout settings; not rendering');
|
|
874
|
+
return null;
|
|
875
|
+
}
|
|
876
|
+
const isReady = !this.isLoading &&
|
|
877
|
+
this.isAvailable &&
|
|
878
|
+
this.canMakePayments &&
|
|
879
|
+
this.isConfigValid;
|
|
880
|
+
return (index.h(styledHost.StyledHost, null, checkout_store.checkoutStore.checkoutLoaded && (index.h("script", { async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
|
|
881
|
+
console.log('[ApplePay Component] Apple Pay SDK script loaded');
|
|
882
|
+
this.initializeApplePay();
|
|
883
|
+
} })), index.h("div", { class: 'apple-pay-container' }, index.h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (index.h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick, width: this.width, height: this.height }))), index.h("style", null, `
|
|
884
|
+
.apple-pay-container {
|
|
885
|
+
width: 100%;
|
|
886
|
+
}
|
|
887
|
+
`)));
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
// Centralized error codes for the Apple Pay component layer
|
|
891
|
+
ApplePay.ErrorCode = {
|
|
892
|
+
CONFIG_ERROR: 'CONFIG_ERROR',
|
|
893
|
+
NOT_SUPPORTED: 'NOT_SUPPORTED',
|
|
894
|
+
NOT_AVAILABLE: 'NOT_AVAILABLE',
|
|
895
|
+
INITIALIZATION_ERROR: 'INITIALIZATION_ERROR',
|
|
896
|
+
PAYMENT_FAILED: 'PAYMENT_FAILED',
|
|
897
|
+
};
|
|
27
898
|
|
|
28
899
|
const Summary = class {
|
|
29
900
|
constructor(hostRef) {
|
|
30
901
|
index.registerInstance(this, hostRef);
|
|
31
902
|
}
|
|
32
903
|
render() {
|
|
33
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
904
|
+
return (index.h(styledHost.StyledHost, { key: 'abd92b499208321582b08a490c78c9167be2ebd4' }, index.h("section", { key: '38e15cef5a19a43249d7ecf3d4eb4ea8e032f248' }, index.h("div", { key: '747f811012ed9707265369e59dbde8cd7ad3bca6' }, index.h("div", { key: '8575f50759664d5c64d235025699c81f055267ca', part: parts.text }, checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.paymentDescription), index.h("div", { key: 'af77776bbe21bce77586447bbf445e4c5d8c1165' }, index.h("span", { key: '5cdaaec454118197b3e37a942d83907e72444342', part: parts.text }, "Total"), "\u00A0", index.h("span", { key: 'ccc35217ac9740d5a00b7abbcec4133848afcc28', part: parts.text }, utils.formatCurrency(+(checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.totalAmount))))))));
|
|
34
905
|
}
|
|
35
906
|
};
|
|
36
907
|
|
|
@@ -46,7 +917,7 @@ const Header = class {
|
|
|
46
917
|
}
|
|
47
918
|
render() {
|
|
48
919
|
const HeaderComponent = this.levels[this.level];
|
|
49
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
920
|
+
return (index.h(styledHost.StyledHost, { key: 'e1d39365c2ff2c291a42b53d6bcbe1d97d602778' }, index.h(HeaderComponent, { key: '0b8c8c3a42ff2151e3b293cafeeaeda72e94d767', text: this.text, class: this.class })));
|
|
50
921
|
}
|
|
51
922
|
};
|
|
52
923
|
|
|
@@ -248,7 +1119,7 @@ const ModularCheckout = class {
|
|
|
248
1119
|
}
|
|
249
1120
|
}
|
|
250
1121
|
updateStore(checkout) {
|
|
251
|
-
var _a, _b, _c, _d, _e;
|
|
1122
|
+
var _a, _b, _c, _d, _e, _f;
|
|
252
1123
|
checkout_store.checkoutStore.accountId = checkout.account_id;
|
|
253
1124
|
checkout_store.checkoutStore.checkoutLoaded = true;
|
|
254
1125
|
checkout_store.checkoutStore.paymentMethods = checkout.payment_methods.map((paymentMethod) => new index$1.PaymentMethod(paymentMethod));
|
|
@@ -259,11 +1130,12 @@ const ModularCheckout = class {
|
|
|
259
1130
|
checkout_store.checkoutStore.bnplEnabled = checkout.payment_settings.bnpl_payments;
|
|
260
1131
|
checkout_store.checkoutStore.insuranceEnabled = checkout.payment_settings.insurance_payments;
|
|
261
1132
|
checkout_store.checkoutStore.bankAccountVerification = (_a = checkout.payment_settings) === null || _a === void 0 ? void 0 : _a.bank_account_verification;
|
|
262
|
-
checkout_store.checkoutStore.
|
|
263
|
-
checkout_store.checkoutStore.
|
|
264
|
-
checkout_store.checkoutStore.
|
|
1133
|
+
checkout_store.checkoutStore.applePayEnabled = (_b = checkout.payment_settings) === null || _b === void 0 ? void 0 : _b.apple_payments;
|
|
1134
|
+
checkout_store.checkoutStore.bnplProviderClientId = (_c = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _c === void 0 ? void 0 : _c.provider_client_id;
|
|
1135
|
+
checkout_store.checkoutStore.bnplProviderMode = (_d = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _d === void 0 ? void 0 : _d.provider_mode;
|
|
1136
|
+
checkout_store.checkoutStore.bnplProviderApiVersion = (_e = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _e === void 0 ? void 0 : _e.provider_api_version;
|
|
265
1137
|
checkout_store.checkoutStore.bnplProviderCheckoutUrl =
|
|
266
|
-
(
|
|
1138
|
+
(_f = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _f === void 0 ? void 0 : _f.provider_checkout_url;
|
|
267
1139
|
}
|
|
268
1140
|
emitCheckoutChanged() {
|
|
269
1141
|
const detail = {
|
|
@@ -474,7 +1346,7 @@ const ModularCheckout = class {
|
|
|
474
1346
|
});
|
|
475
1347
|
}
|
|
476
1348
|
render() {
|
|
477
|
-
return index.h(index.Host, { key: '
|
|
1349
|
+
return index.h(index.Host, { key: 'a3619798ffe1de168262d61d7855209b46b01ab5' });
|
|
478
1350
|
}
|
|
479
1351
|
get hostEl() { return index.getElement(this); }
|
|
480
1352
|
};
|
|
@@ -1415,7 +2287,7 @@ const TokenizePaymentMethod = class {
|
|
|
1415
2287
|
return paymentMethodType === index$1.PAYMENT_METHODS.NEW_CARD ? (index.h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (index.h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
|
|
1416
2288
|
}
|
|
1417
2289
|
render() {
|
|
1418
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
2290
|
+
return (index.h(styledHost.StyledHost, { key: 'bf221d17739bf70c3f581f3b9791a725e76c3f35' }, index.h("form", { key: 'df117d42d4160f31df1fca5d6903967cc48ad573' }, index.h("fieldset", { key: '550e670feffb405c669d44c44eb9073f535c6cb6' }, index.h("div", { key: '8eff7d3ab19618da54161220b92641bf19bfa82d', class: "row gy-3" }, index.h("div", { key: 'bf9d19e92be74abf48ce65c97efb3f9df52d4c3c', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), index.h("div", { key: 'eef1f4e1e03c2263efb51ae94085c5a3d73a9166', class: "col-12" }, index.h("justifi-button", { key: 'f0e5697e658236610da45c34e64a8cbb3f0f9d95', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
1419
2291
|
}
|
|
1420
2292
|
get host() { return index.getElement(this); }
|
|
1421
2293
|
static get watchers() { return {
|
|
@@ -1424,6 +2296,7 @@ const TokenizePaymentMethod = class {
|
|
|
1424
2296
|
}; }
|
|
1425
2297
|
};
|
|
1426
2298
|
|
|
2299
|
+
exports.justifi_apple_pay = ApplePay;
|
|
1427
2300
|
exports.justifi_checkout_summary = Summary;
|
|
1428
2301
|
exports.justifi_header = Header;
|
|
1429
2302
|
exports.justifi_modular_checkout = ModularCheckout;
|