@justifi/webcomponents 6.0.4 → 6.0.6-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Api-DHhR05W5.js → Api-CjtvTD2_.js} +2 -2
- package/dist/cjs/{Refund-CFOz9QoU.js → Refund-BnhHNKLz.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +14 -13
- package/dist/cjs/{badge-C1lVkjn6.js → badge-CE3ss_OU.js} +2 -2
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +12 -12
- package/dist/cjs/bank-account-form.cjs.entry.js +8 -8
- package/dist/cjs/business-details-core.cjs.entry.js +5 -5
- package/dist/cjs/{business.service-Dx2FS4K-.js → business.service-Cj_NUZsr.js} +2 -2
- package/dist/cjs/{button-C8gOSOdZ.js → button-gPNZ9XRn.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +8 -8
- package/dist/cjs/{check-pkg-version-DBsrbl8J.js → check-pkg-version-BqQyunnf.js} +3 -3
- package/dist/cjs/{checkout.service-DRV9oDxT.js → checkout.service-Bc8L9ixO.js} +2 -2
- package/dist/cjs/{checkout.store-WVXAN_mi.js → checkout.store-Bswr7kNY.js} +5 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +12 -12
- package/dist/cjs/{checkouts-list-params-state-B3dEHKgs.js → checkouts-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{checkouts-table-A2cMCczU.js → checkouts-table-C5AHeIr0.js} +4 -4
- package/dist/cjs/{config-state-B5-AuTAI.js → config-state-C7babhLh.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +4 -4
- package/dist/cjs/{dispute.service-DaPbzqUr.js → dispute.service-DhO_tuDc.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +6 -6
- 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-Bm5PuYuo.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-DH-ddiz4.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 +6 -6
- package/dist/cjs/form-control-monetary.cjs.entry.js +7 -7
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +6 -6
- 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_2.cjs.entry.js +7 -7
- package/dist/cjs/{get-payment-details-DbxyqeB1.js → get-payment-details-BinT-ZEP.js} +2 -2
- package/dist/cjs/{get-subaccounts-B8O_HimP.js → get-subaccounts-BoTVdl7v.js} +3 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -6
- package/dist/cjs/{header-1-8mY0uvLp.js → header-1-D3r87SC6.js} +2 -2
- package/dist/cjs/{header-3-BkMrxDLW.js → header-3-BFQJJgBb.js} +2 -2
- package/dist/cjs/hidden-input_2.cjs.entry.js +9 -9
- package/dist/cjs/{index-CoKhq0yT.js → index-Bhtk1qkX.js} +1 -1
- package/dist/cjs/{index-B8q7TYrk.js → index-CWM5ions.js} +1 -1
- package/dist/cjs/{insurance-state-CN0jLsMn.js → insurance-state-JbqYvJN3.js} +3 -3
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +8 -8
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +18 -18
- 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} +892 -24
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +23 -23
- package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-business-form.cjs.entry.js +14 -14
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +13 -13
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -9
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +15 -15
- 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 +10 -10
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +16 -16
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +10 -10
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +14 -14
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payment-details.cjs.entry.js +20 -13
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payments-list.cjs.entry.js +15 -15
- package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -12
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +16 -16
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +14 -14
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -13
- package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +9 -9
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -15
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-Cuc8l3LN.js → package-CeJ5geYu.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 +19 -19
- package/dist/cjs/payment-method-option.cjs.entry.js +4 -4
- package/dist/cjs/{payment.service-CYAqnKsH.js → payment.service-C9thkR4g.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +13 -13
- package/dist/cjs/{payments-list-params-state-B3dEHKgs.js → payments-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{payments-status-Cwp_sPLb.js → payments-status-CnNXcRLO.js} +2 -2
- package/dist/cjs/{payments-table-D9ZL7KEZ.js → payments-table-BGuCOPTJ.js} +4 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +25 -12
- package/dist/cjs/{payout.service-B5WqvvSO.js → payout.service-CGZxpQMq.js} +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +13 -13
- package/dist/cjs/{payouts-list-params-state-B3dEHKgs.js → payouts-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{payouts-status-gUEqx_45.js → payouts-status-2na6MMgV.js} +2 -2
- package/dist/cjs/{payouts-table-CxUxBIEg.js → payouts-table-DXekpbYc.js} +4 -4
- package/dist/cjs/{skeleton-WNwMpTOZ.js → skeleton-BvdAh448.js} +2 -2
- package/dist/cjs/{spinner-DP-6z8gb.js → spinner-Rt52JMa2.js} +2 -2
- package/dist/cjs/{styled-host-BeBLN_42.js → styled-host-BSooSIhA.js} +1 -1
- package/dist/cjs/{table-POSNlW0c.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 +12 -12
- package/dist/cjs/{terminal-orders-list-params-state-B3dEHKgs.js → terminal-orders-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{terminal-orders-table-OBx67Idp.js → terminal-orders-table-7ew1vCKk.js} +6 -6
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +3 -3
- package/dist/cjs/{terminal.service-DxxgZygg.js → terminal.service-BkKxH-k4.js} +2 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +12 -12
- package/dist/cjs/terminals-list-params-state-BYpq-c6X.js +22 -0
- package/dist/cjs/{terminals-table-ByPkFcIa.js → terminals-table-ByYs-pH7.js} +4 -4
- package/dist/cjs/{utils-ChCUZgUy.js → utils-Bab-tddY.js} +4 -0
- package/dist/cjs/{utils-BE2CEPRZ.js → utils-CUcA4G_O.js} +5 -5
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- 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 +7 -6
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +7 -6
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +7 -6
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -6
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/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 +9 -9
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +7 -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 +8 -8
- 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/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 +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -4
- package/dist/collection/store/checkout.store.js +4 -0
- package/dist/collection/styles/parts.js +1 -1
- 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/utils.js +4 -0
- package/dist/docs.json +136 -100
- package/dist/esm/{Api-GDDXjRV1.js → Api-DhiA2e_P.js} +2 -2
- package/dist/esm/{Refund-C3Rj8ucO.js → Refund-B-iOTRxz.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +14 -13
- package/dist/esm/{badge-DrV8suYS.js → badge-CtdO-tEY.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -12
- package/dist/esm/bank-account-form.entry.js +8 -8
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business.service-BZPNzxOH.js → business.service-D55OVyco.js} +2 -2
- package/dist/esm/{button-Dz7L1sRR.js → button-DtTaQHMK.js} +2 -2
- package/dist/esm/card-form.entry.js +8 -8
- package/dist/esm/{check-pkg-version-Dzqkjq08.js → check-pkg-version-DW45blqY.js} +3 -3
- package/dist/esm/{checkout.service-_dbCJ4H4.js → checkout.service-fwbqSq8g.js} +2 -2
- package/dist/esm/{checkout.store-CpBg1CFX.js → checkout.store-4nUf2OuT.js} +5 -1
- package/dist/esm/checkouts-list-core.entry.js +12 -12
- package/dist/esm/{checkouts-list-params-state-DKBoAgAJ.js → checkouts-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{checkouts-table-BIuJBjFX.js → checkouts-table-B6gGDtOr.js} +4 -4
- package/dist/esm/{config-state-BJ800oYx.js → config-state-DiHV-4QK.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +4 -4
- package/dist/esm/{dispute.service-DX3dxl7L.js → dispute.service-Cdq3_yRo.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +6 -6
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-BybKqTXI.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-zXEGK2O9.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 +6 -6
- package/dist/esm/form-control-monetary.entry.js +7 -7
- package/dist/esm/form-control-number-masked_2.entry.js +6 -6
- package/dist/esm/form-control-number.entry.js +6 -6
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/form-control-select_2.entry.js +7 -7
- package/dist/esm/{get-payment-details-KXwiFeJs.js → get-payment-details-sGoWyAat.js} +2 -2
- package/dist/esm/{get-subaccounts-DGclXJlZ.js → get-subaccounts-BsJSlShO.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +6 -6
- package/dist/esm/{header-1-oPO-WOI8.js → header-1-C1Hnxki8.js} +2 -2
- package/dist/esm/{header-3-DWKhJ_Et.js → header-3-Bq8fpjm-.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +9 -9
- package/dist/esm/{index-Cuq3wBDS.js → index-DJ9G-4S-.js} +1 -1
- package/dist/esm/{index-DyGx8Avl.js → index-DOjVAAtq.js} +1 -1
- package/dist/esm/{insurance-state-DVxPVMxW.js → insurance-state-CVme82j7.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -8
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +18 -18
- 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} +892 -25
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +23 -23
- package/dist/esm/justifi-business-details.entry.js +11 -11
- package/dist/esm/justifi-business-form.entry.js +14 -14
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +13 -13
- package/dist/esm/justifi-checkouts-list-filters.entry.js +9 -9
- package/dist/esm/justifi-checkouts-list.entry.js +15 -15
- 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 +10 -10
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
- package/dist/esm/justifi-gross-payment-chart.entry.js +10 -10
- package/dist/esm/justifi-order-terminals.entry.js +14 -14
- package/dist/esm/justifi-owner-form_3.entry.js +12 -12
- package/dist/esm/justifi-payment-details.entry.js +20 -13
- package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +10 -10
- package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +15 -15
- package/dist/esm/justifi-payout-details.entry.js +13 -12
- package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payouts-list.entry.js +16 -16
- package/dist/esm/justifi-refund-payment.entry.js +14 -14
- package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +13 -13
- package/dist/esm/justifi-skeleton.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -10
- package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
- package/dist/esm/justifi-terminals-list-filters.entry.js +9 -9
- package/dist/esm/justifi-terminals-list.entry.js +15 -15
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-CyVecSBV.js → package-BXUY63ga.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +5 -5
- package/dist/esm/{parts-RvUQ__Pq.js → parts-xDbRW9xn.js} +2 -1
- package/dist/esm/payment-details-core.entry.js +19 -19
- package/dist/esm/payment-method-option.entry.js +4 -4
- package/dist/esm/{payment.service-oJkZDCjF.js → payment.service-BoQ1MW1k.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +13 -13
- package/dist/esm/{payments-list-params-state-DKBoAgAJ.js → payments-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{payments-status-BMCeFxof.js → payments-status-cvtVmtY5.js} +2 -2
- package/dist/esm/{payments-table-2pRUlnGQ.js → payments-table-D_BlyU1F.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +25 -12
- package/dist/esm/{payout.service-DY-EKu-S.js → payout.service-xcBdom3q.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +13 -13
- package/dist/esm/{payouts-list-params-state-DKBoAgAJ.js → payouts-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{payouts-status-DBkurhQF.js → payouts-status-D-vjrqBb.js} +2 -2
- package/dist/esm/{payouts-table-DXyLrcja.js → payouts-table-Clj8YGLV.js} +4 -4
- package/dist/esm/{skeleton-BagMauL8.js → skeleton-B8EUwt4b.js} +2 -2
- package/dist/esm/{spinner-DOyR5em0.js → spinner-CYXkn1fh.js} +2 -2
- package/dist/esm/{styled-host-BQjsup-P.js → styled-host-OalOsPBp.js} +1 -1
- package/dist/esm/{table-D-zEX8E8.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 +12 -12
- package/dist/esm/{terminal-orders-list-params-state-DKBoAgAJ.js → terminal-orders-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{terminal-orders-table-COcJMPaL.js → terminal-orders-table-DzBpIW8i.js} +6 -6
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-fDtEdpf-.js → terminal.service-l6zTIPZ3.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +12 -12
- package/dist/esm/terminals-list-params-state-C_fug9R3.js +16 -0
- package/dist/esm/{terminals-table-CyL85b_g.js → terminals-table-BMS5tazC.js} +4 -4
- package/dist/esm/{utils-BscIVFn8.js → utils-BOijEGPV.js} +4 -1
- package/dist/esm/{utils-i_eMGns9.js → utils-DRwofES0.js} +5 -5
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/additional-questions-details2.js +1 -1
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/additional-statement.js +2 -2
- package/dist/{esm/justifi-apple-pay.entry.js → module/apple-pay.js} +60 -23
- 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 +1 -1
- package/dist/module/bank-account-form.js +3 -3
- package/dist/module/bank-account.js +2 -2
- package/dist/module/billing-form-full.js +1 -1
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-bank-account-form-step.js +1 -1
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-documents-on-file2.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-representative.js +2 -2
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +2 -2
- 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 +2 -2
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-core.js +2 -2
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +2 -2
- package/dist/module/electronic-evidence.js +2 -2
- 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/gross-payment-chart-core2.js +2 -2
- package/dist/module/header-3.js +1 -1
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/justifi-apple-pay.js +1 -904
- 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 +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-details.js +8 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +2 -2
- 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 +3 -1
- package/dist/module/justifi-payout-transactions-list.js +2 -2
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-radio-list-item2.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +2 -2
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/modular-checkout.js +7 -6
- package/dist/module/owner-details2.js +8 -7
- package/dist/module/owner-form-core2.js +2 -2
- package/dist/module/owner-form-inputs2.js +2 -2
- package/dist/module/owner-form.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +4 -4
- package/dist/module/parts.js +2 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-core.js +1 -1
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +1 -1
- package/dist/module/payments-list-core2.js +2 -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 +2 -2
- package/dist/module/refund-policy.js +2 -2
- package/dist/module/representative-details2.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/shipping-details.js +2 -2
- package/dist/module/spinner.js +1 -1
- 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 +2 -2
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminals-list-core2.js +3 -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/Checkout.d.ts +2 -0
- package/dist/types/api/ComponentEvents.d.ts +4 -0
- package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
- package/dist/types/components/payment-details/payment-details.d.ts +3 -1
- 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 +30 -12
- package/dist/types/stencil-public-runtime.d.ts +19 -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/utils.d.ts +1 -0
- package/dist/webcomponents/{p-13f08bdc.entry.js → p-0217783c.entry.js} +4 -4
- package/dist/webcomponents/p-02fdd7f5.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-28725bf6.entry.js → p-0cf71cbd.entry.js} +1 -1
- package/dist/webcomponents/p-0d3904cb.entry.js +1 -0
- package/dist/webcomponents/p-0eb69f41.entry.js +1 -0
- package/dist/webcomponents/p-0fgTPVV0.js +1 -0
- package/dist/webcomponents/p-1f82f0cc.entry.js +1 -0
- package/dist/webcomponents/p-220d8503.entry.js +1 -0
- package/dist/webcomponents/p-268a6e14.entry.js +1 -0
- package/dist/webcomponents/{p-8cb3af20.entry.js → p-28625e07.entry.js} +1 -1
- package/dist/webcomponents/p-2d300faa.entry.js +1 -0
- package/dist/webcomponents/{p-7b5bfe7c.entry.js → p-2f40f708.entry.js} +1 -1
- package/dist/webcomponents/p-328117e4.entry.js +1 -0
- package/dist/webcomponents/p-32978110.entry.js +1 -0
- package/dist/webcomponents/{p-07b3bfd0.entry.js → p-37a93597.entry.js} +1 -1
- package/dist/webcomponents/p-447b55c0.entry.js +1 -0
- package/dist/webcomponents/p-47997bc2.entry.js +1 -0
- package/dist/webcomponents/p-4b57765c.entry.js +1 -0
- package/dist/webcomponents/p-50701f16.entry.js +1 -0
- package/dist/webcomponents/p-526b7442.entry.js +1 -0
- package/dist/webcomponents/p-55903cde.entry.js +1 -0
- package/dist/webcomponents/p-569c7dcc.entry.js +1 -0
- package/dist/webcomponents/p-58f7c4bd.entry.js +1 -0
- package/dist/webcomponents/p-5aae36f3.entry.js +1 -0
- package/dist/webcomponents/p-5bd3d86e.entry.js +1 -0
- package/dist/webcomponents/{p-24665376.entry.js → p-5cb22cfb.entry.js} +1 -1
- package/dist/webcomponents/{p-4f6732e7.entry.js → p-63ad8ebd.entry.js} +1 -1
- package/dist/webcomponents/p-6472b6db.entry.js +1 -0
- package/dist/webcomponents/p-67788df5.entry.js +1 -0
- package/dist/webcomponents/{p-8e59fd48.entry.js → p-705dba52.entry.js} +1 -1
- package/dist/webcomponents/{p-e77cc776.entry.js → p-78cb62a8.entry.js} +1 -1
- package/dist/webcomponents/p-80a4fba7.entry.js +1 -0
- package/dist/webcomponents/p-80b2cdec.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-9773e1e9.entry.js +1 -0
- package/dist/webcomponents/p-9ad7d724.entry.js +1 -0
- package/dist/webcomponents/{p-0674f9e2.entry.js → p-9c8fb92f.entry.js} +1 -1
- package/dist/webcomponents/{p-1db698bb.entry.js → p-9d611395.entry.js} +1 -1
- package/dist/webcomponents/{p-7ee67a7b.entry.js → p-9ed7b13f.entry.js} +1 -1
- package/dist/webcomponents/{p-DijYoVj9.js → p-B6IWa9Ph.js} +1 -1
- package/dist/webcomponents/{p-CoHTj6Zv.js → p-BBx_EQqR.js} +1 -1
- package/dist/webcomponents/p-BXUY63ga.js +1 -0
- package/dist/webcomponents/{p-BHf9IqGw.js → p-Bgnhf5c9.js} +1 -1
- package/dist/webcomponents/{p-BzUsLFRB.js → p-BhCH9S0e.js} +1 -1
- package/dist/webcomponents/{p-B2zYNTMd.js → p-BjNuRWXK.js} +1 -1
- package/dist/webcomponents/p-BoQ6_4Ks.js +1 -0
- package/dist/webcomponents/{p-YFacIs1k.js → p-C0wTyoTh.js} +1 -1
- package/dist/webcomponents/p-C2JJBtMc.js +1 -0
- package/dist/webcomponents/p-C8k7a6D-.js +1 -0
- package/dist/webcomponents/{p-BrUSZwNP.js → p-C98BC5W5.js} +1 -1
- package/dist/webcomponents/{p-wyo7gH76.js → p-C9EQ459H.js} +1 -1
- package/dist/webcomponents/{p-DEPTsxWg.js → p-CCLgieAN.js} +1 -1
- package/dist/webcomponents/{p-lmpjoGKk.js → p-CCmDcLao.js} +1 -1
- package/dist/webcomponents/p-CEk3bv0x.js +1 -0
- package/dist/webcomponents/p-CH8Y3GSr.js +1 -0
- package/dist/webcomponents/{p-BXSa6F0A.js → p-ClvhB3WW.js} +1 -1
- package/dist/webcomponents/{p-Dlgl52fA.js → p-CmBCj61h.js} +1 -1
- package/dist/webcomponents/{p-Bao2wCms.js → p-CoBppUkq.js} +1 -1
- package/dist/webcomponents/p-D0Peuz-m.js +1 -0
- package/dist/webcomponents/p-D6BImiVi.js +1 -0
- package/dist/webcomponents/p-DGsXKF67.js +1 -0
- package/dist/webcomponents/{p-DqKxycem.js → p-DQZ5VHTZ.js} +1 -1
- package/dist/webcomponents/p-DWn9BiNn.js +1 -0
- package/dist/webcomponents/{p-CTqY6NgS.js → p-DdMxswn1.js} +1 -1
- package/dist/webcomponents/{p-B63vgBnY.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-NAjz1Xfo.js +1 -0
- package/dist/webcomponents/p-NwmOm8Pg.js +1 -0
- package/dist/webcomponents/p-RQzxYnz_.js +1 -0
- package/dist/webcomponents/p-T2yENPvU.js +1 -0
- package/dist/webcomponents/p-a09695c4.entry.js +1 -0
- package/dist/webcomponents/{p-fb4c5873.entry.js → p-a4846316.entry.js} +1 -1
- package/dist/webcomponents/{p-DMEQUc2C.js → p-a6tcNl_T.js} +1 -1
- package/dist/webcomponents/p-a8446044.entry.js +1 -0
- package/dist/webcomponents/{p-d8a01f34.entry.js → p-ae8ae5bb.entry.js} +1 -1
- package/dist/webcomponents/p-aeb22aa2.entry.js +1 -0
- package/dist/webcomponents/{p-Cs66SeCx.js → p-au49QgoI.js} +1 -1
- package/dist/webcomponents/{p-bcc66eb6.entry.js → p-b608add9.entry.js} +1 -1
- package/dist/webcomponents/p-bb53e2e9.entry.js +1 -0
- package/dist/webcomponents/p-bc099dd0.entry.js +1 -0
- package/dist/webcomponents/p-c12d0453.entry.js +1 -0
- package/dist/webcomponents/{p-59c13f19.entry.js → p-c44fcff6.entry.js} +1 -1
- package/dist/webcomponents/p-c644a9f1.entry.js +1 -0
- package/dist/webcomponents/p-d0a2035f.entry.js +1 -0
- package/dist/webcomponents/p-d1bceac6.entry.js +1 -0
- package/dist/webcomponents/{p-1315f0c6.entry.js → p-d403bdc0.entry.js} +1 -1
- package/dist/webcomponents/{p-4337111b.entry.js → p-d4476052.entry.js} +1 -1
- package/dist/webcomponents/{p-5c025a41.entry.js → p-de95bf57.entry.js} +1 -1
- package/dist/webcomponents/p-dfb2e55b.entry.js +1 -0
- package/dist/webcomponents/p-e6be4e19.entry.js +1 -0
- package/dist/webcomponents/p-e9865d1d.entry.js +1 -0
- package/dist/webcomponents/p-e9b2591b.entry.js +1 -0
- package/dist/webcomponents/p-ea2cbf37.entry.js +1 -0
- package/dist/webcomponents/p-ec9514f8.entry.js +1 -0
- package/dist/webcomponents/p-edfeb034.entry.js +1 -0
- package/dist/webcomponents/p-ee90bbd1.entry.js +1 -0
- package/dist/webcomponents/{p-42934a93.entry.js → p-f705fc49.entry.js} +1 -1
- package/dist/webcomponents/{p-ea7fc5b2.entry.js → p-fbc5fc6d.entry.js} +1 -1
- package/dist/webcomponents/p-ffefa09c.entry.js +1 -0
- package/dist/webcomponents/p-h5pyZngT.js +1 -0
- package/dist/webcomponents/{p-BgUmsFt9.js → p-hbWSMN3O.js} +1 -1
- package/dist/webcomponents/p-lKnUT24T.js +1 -0
- package/dist/webcomponents/p-wQgEEOq_.js +1 -0
- package/dist/webcomponents/p-xDbRW9xn.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +13 -13
- package/LICENSE +0 -21
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +0 -876
- package/dist/cjs/terminals-list-params-state-B3dEHKgs.js +0 -22
- package/dist/esm/terminals-list-params-state-DKBoAgAJ.js +0 -16
- package/dist/webcomponents/p-093b4cb3.entry.js +0 -1
- package/dist/webcomponents/p-0c1afe6a.entry.js +0 -1
- package/dist/webcomponents/p-0d0ecbec.entry.js +0 -1
- package/dist/webcomponents/p-0e598a4f.entry.js +0 -1
- package/dist/webcomponents/p-10dc6677.entry.js +0 -1
- package/dist/webcomponents/p-12e0f6d0.entry.js +0 -1
- package/dist/webcomponents/p-16332dad.entry.js +0 -1
- package/dist/webcomponents/p-175af33d.entry.js +0 -1
- package/dist/webcomponents/p-19549cf9.entry.js +0 -1
- package/dist/webcomponents/p-1cd888c2.entry.js +0 -1
- package/dist/webcomponents/p-1f241a23.entry.js +0 -1
- package/dist/webcomponents/p-2451aa52.entry.js +0 -1
- package/dist/webcomponents/p-24b38502.entry.js +0 -1
- package/dist/webcomponents/p-2aec0fec.entry.js +0 -1
- package/dist/webcomponents/p-2d3edc42.entry.js +0 -1
- package/dist/webcomponents/p-2e144d57.entry.js +0 -1
- package/dist/webcomponents/p-30241721.entry.js +0 -1
- package/dist/webcomponents/p-32770b86.entry.js +0 -1
- package/dist/webcomponents/p-3b42f47c.entry.js +0 -1
- package/dist/webcomponents/p-3b6ff2c7.entry.js +0 -1
- package/dist/webcomponents/p-3d626ed6.entry.js +0 -1
- package/dist/webcomponents/p-478388a5.entry.js +0 -1
- package/dist/webcomponents/p-4c151c69.entry.js +0 -1
- package/dist/webcomponents/p-5d49c795.entry.js +0 -1
- package/dist/webcomponents/p-66b642d8.entry.js +0 -1
- package/dist/webcomponents/p-68ff0209.entry.js +0 -1
- package/dist/webcomponents/p-6EvNOn3-.js +0 -1
- package/dist/webcomponents/p-6db4bf6d.entry.js +0 -1
- package/dist/webcomponents/p-6e7eda7b.entry.js +0 -1
- package/dist/webcomponents/p-731e895a.entry.js +0 -1
- package/dist/webcomponents/p-754fc289.entry.js +0 -1
- package/dist/webcomponents/p-838bc453.entry.js +0 -1
- package/dist/webcomponents/p-839b3217.entry.js +0 -1
- package/dist/webcomponents/p-89b69a99.entry.js +0 -1
- package/dist/webcomponents/p-8f1c9ea0.entry.js +0 -1
- package/dist/webcomponents/p-9aa60b89.entry.js +0 -1
- package/dist/webcomponents/p-9d656297.entry.js +0 -1
- package/dist/webcomponents/p-B7MgZiYt.js +0 -1
- package/dist/webcomponents/p-BAP2_n0C.js +0 -1
- package/dist/webcomponents/p-CFJORLxe.js +0 -1
- package/dist/webcomponents/p-CaCRHEeS.js +0 -1
- package/dist/webcomponents/p-CiGtDYf9.js +0 -1
- package/dist/webcomponents/p-CjiooCZL.js +0 -1
- package/dist/webcomponents/p-CpicmCYr.js +0 -1
- package/dist/webcomponents/p-CyVecSBV.js +0 -1
- package/dist/webcomponents/p-D5GwdE1-.js +0 -1
- package/dist/webcomponents/p-DMlQVSDm.js +0 -1
- package/dist/webcomponents/p-DO3DK7hp.js +0 -1
- package/dist/webcomponents/p-DPWdvb1b.js +0 -1
- package/dist/webcomponents/p-DVFJ02AX.js +0 -1
- package/dist/webcomponents/p-DgsBfaBV.js +0 -1
- package/dist/webcomponents/p-DmwN1pQC.js +0 -1
- package/dist/webcomponents/p-DqEiwSTX.js +0 -1
- package/dist/webcomponents/p-FS-_U_DC.js +0 -1
- package/dist/webcomponents/p-RvUQ__Pq.js +0 -1
- package/dist/webcomponents/p-TLJ8o8BU.js +0 -1
- package/dist/webcomponents/p-ba77f02e.entry.js +0 -1
- package/dist/webcomponents/p-bf73c13c.entry.js +0 -1
- package/dist/webcomponents/p-c3e3c368.entry.js +0 -1
- package/dist/webcomponents/p-c4b0da5d.entry.js +0 -1
- package/dist/webcomponents/p-c6636ce3.entry.js +0 -1
- package/dist/webcomponents/p-d182e0a4.entry.js +0 -1
- package/dist/webcomponents/p-e7686f74.entry.js +0 -1
- package/dist/webcomponents/p-e9527758.entry.js +0 -1
- package/dist/webcomponents/p-ef03a84f.entry.js +0 -1
- package/dist/webcomponents/p-f58866c6.entry.js +0 -1
- package/dist/webcomponents/p-f6be0e61.entry.js +0 -1
- package/dist/webcomponents/p-gpZ4wrS9.js +0 -1
- package/dist/webcomponents/p-xgpMjz3-.js +0 -1
- /package/dist/webcomponents/{p-DyGx8Avl.js → p-DOjVAAtq.js} +0 -0
|
@@ -1,907 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as Api } from './Api.js';
|
|
3
|
-
import { S as StyledHost } from './styled-host.js';
|
|
4
|
-
import './details.js';
|
|
5
|
-
import './event-types.js';
|
|
6
|
-
import './justifi-radio-list-item2.js';
|
|
7
|
-
import { S as Skeleton } from './skeleton.js';
|
|
8
|
-
import { c as checkoutStore } from './checkout.store.js';
|
|
9
|
-
|
|
10
|
-
var ApplePaySessionStatus;
|
|
11
|
-
(function (ApplePaySessionStatus) {
|
|
12
|
-
ApplePaySessionStatus["STATUS_SUCCESS"] = "STATUS_SUCCESS";
|
|
13
|
-
ApplePaySessionStatus["STATUS_FAILURE"] = "STATUS_FAILURE";
|
|
14
|
-
})(ApplePaySessionStatus || (ApplePaySessionStatus = {}));
|
|
15
|
-
var ApplePayButtonType;
|
|
16
|
-
(function (ApplePayButtonType) {
|
|
17
|
-
ApplePayButtonType["PLAIN"] = "plain";
|
|
18
|
-
ApplePayButtonType["BUY"] = "buy";
|
|
19
|
-
ApplePayButtonType["SET_UP"] = "set-up";
|
|
20
|
-
ApplePayButtonType["DONATE"] = "donate";
|
|
21
|
-
ApplePayButtonType["CHECK_OUT"] = "check-out";
|
|
22
|
-
ApplePayButtonType["BOOK"] = "book";
|
|
23
|
-
ApplePayButtonType["SUBSCRIBE"] = "subscribe";
|
|
24
|
-
})(ApplePayButtonType || (ApplePayButtonType = {}));
|
|
25
|
-
var ApplePayButtonStyle;
|
|
26
|
-
(function (ApplePayButtonStyle) {
|
|
27
|
-
ApplePayButtonStyle["BLACK"] = "black";
|
|
28
|
-
ApplePayButtonStyle["WHITE"] = "white";
|
|
29
|
-
ApplePayButtonStyle["WHITE_OUTLINE"] = "white-outline";
|
|
30
|
-
})(ApplePayButtonStyle || (ApplePayButtonStyle = {}));
|
|
31
|
-
var ApplePayMerchantCapability;
|
|
32
|
-
(function (ApplePayMerchantCapability) {
|
|
33
|
-
ApplePayMerchantCapability["SUPPORTS_3DS"] = "supports3DS";
|
|
34
|
-
ApplePayMerchantCapability["SUPPORTS_EMV"] = "supportsEMV";
|
|
35
|
-
ApplePayMerchantCapability["SUPPORTS_CREDIT"] = "supportsCredit";
|
|
36
|
-
ApplePayMerchantCapability["SUPPORTS_DEBIT"] = "supportsDebit";
|
|
37
|
-
})(ApplePayMerchantCapability || (ApplePayMerchantCapability = {}));
|
|
38
|
-
class ApplePayConfig {
|
|
39
|
-
constructor(data) {
|
|
40
|
-
this.merchantIdentifier = data.merchantIdentifier;
|
|
41
|
-
this.displayName = data.displayName;
|
|
42
|
-
this.initiative = data.initiative;
|
|
43
|
-
this.initiativeContext = data.initiativeContext;
|
|
44
|
-
this.buttonType = data.buttonType || ApplePayButtonType.PLAIN;
|
|
45
|
-
this.buttonStyle = data.buttonStyle || ApplePayButtonStyle.BLACK;
|
|
46
|
-
this.buttonLocale = data.buttonLocale || 'en-US';
|
|
47
|
-
}
|
|
48
|
-
get isValid() {
|
|
49
|
-
return !!(this.merchantIdentifier &&
|
|
50
|
-
this.displayName &&
|
|
51
|
-
this.initiative &&
|
|
52
|
-
this.initiativeContext);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
class ApplePayPaymentRequest {
|
|
56
|
-
constructor(data) {
|
|
57
|
-
this.countryCode = data.countryCode;
|
|
58
|
-
this.currencyCode = data.currencyCode;
|
|
59
|
-
this.merchantCapabilities = data.merchantCapabilities;
|
|
60
|
-
this.supportedNetworks = data.supportedNetworks;
|
|
61
|
-
this.total = data.total;
|
|
62
|
-
this.lineItems = data.lineItems;
|
|
63
|
-
this.shippingMethods = data.shippingMethods;
|
|
64
|
-
this.applicationData = data.applicationData;
|
|
65
|
-
this.supportedCountries = data.supportedCountries;
|
|
66
|
-
}
|
|
67
|
-
get isValid() {
|
|
68
|
-
var _a, _b, _c, _d;
|
|
69
|
-
return !!(this.countryCode &&
|
|
70
|
-
this.currencyCode &&
|
|
71
|
-
((_a = this.merchantCapabilities) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
72
|
-
((_b = this.supportedNetworks) === null || _b === void 0 ? void 0 : _b.length) &&
|
|
73
|
-
((_c = this.total) === null || _c === void 0 ? void 0 : _c.label) &&
|
|
74
|
-
((_d = this.total) === null || _d === void 0 ? void 0 : _d.amount));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
class ApplePayHelpers {
|
|
78
|
-
static isApplePaySupported() {
|
|
79
|
-
var _a;
|
|
80
|
-
return (typeof window !== 'undefined' &&
|
|
81
|
-
'ApplePaySession' in window &&
|
|
82
|
-
((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.supportsVersion(3)));
|
|
83
|
-
}
|
|
84
|
-
static canMakePayments() {
|
|
85
|
-
var _a;
|
|
86
|
-
if (!this.isApplePaySupported()) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
return ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePayments()) || false;
|
|
90
|
-
}
|
|
91
|
-
static async canMakePaymentsWithActiveCard(merchantIdentifier) {
|
|
92
|
-
var _a;
|
|
93
|
-
if (!this.isApplePaySupported()) {
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
try {
|
|
97
|
-
return ((await ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePaymentsWithActiveCard(merchantIdentifier))) || false);
|
|
98
|
-
}
|
|
99
|
-
catch (error) {
|
|
100
|
-
console.error('Error checking Apple Pay active card:', error);
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
static formatAmount(amount) {
|
|
105
|
-
return (amount / 100).toFixed(2);
|
|
106
|
-
}
|
|
107
|
-
static parseAmount(amount) {
|
|
108
|
-
return Math.round(parseFloat(amount) * 100);
|
|
109
|
-
}
|
|
110
|
-
static createLineItem(label, amount, type = 'final') {
|
|
111
|
-
return {
|
|
112
|
-
label,
|
|
113
|
-
amount: this.formatAmount(amount),
|
|
114
|
-
type,
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
static getDefaultSupportedNetworks() {
|
|
118
|
-
return ['amex', 'discover', 'masterCard', 'visa'];
|
|
119
|
-
}
|
|
120
|
-
static getDefaultMerchantCapabilities() {
|
|
121
|
-
return [
|
|
122
|
-
ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
123
|
-
ApplePayMerchantCapability.SUPPORTS_EMV,
|
|
124
|
-
ApplePayMerchantCapability.SUPPORTS_CREDIT,
|
|
125
|
-
ApplePayMerchantCapability.SUPPORTS_DEBIT,
|
|
126
|
-
];
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Centralized error codes for Apple Pay service
|
|
131
|
-
var ApplePayServiceErrorCode;
|
|
132
|
-
(function (ApplePayServiceErrorCode) {
|
|
133
|
-
ApplePayServiceErrorCode["UNAVAILABLE"] = "UNAVAILABLE";
|
|
134
|
-
ApplePayServiceErrorCode["SESSION_ERROR"] = "SESSION_ERROR";
|
|
135
|
-
ApplePayServiceErrorCode["MERCHANT_VALIDATION_ERROR"] = "MERCHANT_VALIDATION_ERROR";
|
|
136
|
-
ApplePayServiceErrorCode["PAYMENT_PROCESSING_ERROR"] = "PAYMENT_PROCESSING_ERROR";
|
|
137
|
-
ApplePayServiceErrorCode["USER_CANCELLED"] = "USER_CANCELLED";
|
|
138
|
-
})(ApplePayServiceErrorCode || (ApplePayServiceErrorCode = {}));
|
|
139
|
-
class ApplePayService {
|
|
140
|
-
constructor() {
|
|
141
|
-
this.api = Api();
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Initialize Apple Pay configuration
|
|
145
|
-
*/
|
|
146
|
-
initialize(applePayConfig) {
|
|
147
|
-
this.applePayConfig = new ApplePayConfig(applePayConfig);
|
|
148
|
-
if (!this.applePayConfig.isValid) {
|
|
149
|
-
throw new Error('Invalid Apple Pay configuration provided');
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Validate merchant with Apple Pay servers via API
|
|
154
|
-
*/
|
|
155
|
-
async validateMerchant(authToken, accountId) {
|
|
156
|
-
const endpoint = 'apple_pay/merchant_session';
|
|
157
|
-
try {
|
|
158
|
-
const response = await this.api.post({
|
|
159
|
-
endpoint,
|
|
160
|
-
authToken,
|
|
161
|
-
headers: {
|
|
162
|
-
'Sub-Account': accountId,
|
|
163
|
-
},
|
|
164
|
-
});
|
|
165
|
-
return response;
|
|
166
|
-
}
|
|
167
|
-
catch (error) {
|
|
168
|
-
console.error('Backend validation failed:', error);
|
|
169
|
-
throw new Error('Merchant validation failed');
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Process Apple Pay payment via API (fixed to match original logic)
|
|
174
|
-
*/
|
|
175
|
-
async processPayment(authToken, accountId, payload) {
|
|
176
|
-
const endpoint = 'apple_pay/process_token';
|
|
177
|
-
const result = await this.api.post({
|
|
178
|
-
endpoint,
|
|
179
|
-
authToken,
|
|
180
|
-
body: payload,
|
|
181
|
-
headers: {
|
|
182
|
-
'Sub-Account': accountId,
|
|
183
|
-
},
|
|
184
|
-
});
|
|
185
|
-
return {
|
|
186
|
-
success: result.id && !!result.data.token,
|
|
187
|
-
data: result,
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Check if Apple Pay is available on this device/browser
|
|
192
|
-
*/
|
|
193
|
-
isAvailable() {
|
|
194
|
-
return (ApplePayHelpers.isApplePaySupported() && ApplePayHelpers.canMakePayments());
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Check if the user has an active card for the merchant
|
|
198
|
-
*/
|
|
199
|
-
async canMakePaymentsWithActiveCard() {
|
|
200
|
-
if (!this.applePayConfig) {
|
|
201
|
-
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
202
|
-
}
|
|
203
|
-
return await ApplePayHelpers.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier);
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Start Apple Pay session
|
|
207
|
-
*/
|
|
208
|
-
async startPaymentSession(paymentRequest, authToken, accountId) {
|
|
209
|
-
// Begin verbose diagnostics for easier debugging in the field
|
|
210
|
-
console.groupCollapsed('[ApplePayService] startPaymentSession called');
|
|
211
|
-
console.log('[ApplePayService] raw paymentRequest:', JSON.stringify(paymentRequest, null, 2));
|
|
212
|
-
console.log('[ApplePayService] has authToken:', Boolean(authToken));
|
|
213
|
-
console.log('[ApplePayService] accountId:', accountId);
|
|
214
|
-
console.log('[ApplePayService] has config:', Boolean(this.applePayConfig));
|
|
215
|
-
if (!this.applePayConfig) {
|
|
216
|
-
console.error('[ApplePayService] Missing applePayConfig. Did you call initialize()?');
|
|
217
|
-
console.groupEnd();
|
|
218
|
-
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
219
|
-
}
|
|
220
|
-
// if (!this.isAvailable()) {
|
|
221
|
-
// throw new Error('Apple Pay is not available on this device/browser');
|
|
222
|
-
// }
|
|
223
|
-
const request = new ApplePayPaymentRequest(paymentRequest);
|
|
224
|
-
console.log('[ApplePayService] created ApplePayPaymentRequest:', request);
|
|
225
|
-
if (!request.isValid) {
|
|
226
|
-
const missingFields = [];
|
|
227
|
-
if (!request.countryCode)
|
|
228
|
-
missingFields.push('countryCode');
|
|
229
|
-
if (!request.currencyCode)
|
|
230
|
-
missingFields.push('currencyCode');
|
|
231
|
-
if (!request.merchantCapabilities ||
|
|
232
|
-
request.merchantCapabilities.length === 0)
|
|
233
|
-
missingFields.push('merchantCapabilities');
|
|
234
|
-
if (!request.supportedNetworks || request.supportedNetworks.length === 0)
|
|
235
|
-
missingFields.push('supportedNetworks');
|
|
236
|
-
if (!request.total || !request.total.label || !request.total.amount)
|
|
237
|
-
missingFields.push('total');
|
|
238
|
-
console.error('[ApplePayService] Payment request is invalid. Missing/invalid:', missingFields);
|
|
239
|
-
console.groupEnd();
|
|
240
|
-
throw new Error('Invalid payment request provided');
|
|
241
|
-
}
|
|
242
|
-
this.currentPaymentRequest = request;
|
|
243
|
-
return new Promise((resolve, reject) => {
|
|
244
|
-
try {
|
|
245
|
-
console.log('[ApplePayService] About to instantiate ApplePaySession');
|
|
246
|
-
// Defensive checks for Apple Pay environment
|
|
247
|
-
if (typeof window === 'undefined' || !('ApplePaySession' in window)) {
|
|
248
|
-
console.error('[ApplePayService] ApplePaySession not available on window');
|
|
249
|
-
console.groupEnd();
|
|
250
|
-
return reject({
|
|
251
|
-
success: false,
|
|
252
|
-
error: {
|
|
253
|
-
code: ApplePayServiceErrorCode.UNAVAILABLE,
|
|
254
|
-
message: 'ApplePaySession API is not available in this environment',
|
|
255
|
-
},
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
this.currentSession = new window.ApplePaySession(3, request);
|
|
259
|
-
console.log('[ApplePayService] ApplePaySession instantiated:', this.currentSession);
|
|
260
|
-
this.setupSessionEventHandlers(resolve, reject, authToken, accountId);
|
|
261
|
-
console.log('[ApplePayService] Event handlers set. Beginning session...');
|
|
262
|
-
this.currentSession.begin();
|
|
263
|
-
console.log('[ApplePayService] Session.begin() called');
|
|
264
|
-
console.groupEnd();
|
|
265
|
-
}
|
|
266
|
-
catch (error) {
|
|
267
|
-
console.error('[ApplePayService] Exception while starting session:', error);
|
|
268
|
-
console.groupEnd();
|
|
269
|
-
reject({
|
|
270
|
-
success: false,
|
|
271
|
-
error: {
|
|
272
|
-
code: ApplePayServiceErrorCode.SESSION_ERROR,
|
|
273
|
-
message: error instanceof Error
|
|
274
|
-
? error.message
|
|
275
|
-
: 'Failed to start Apple Pay session',
|
|
276
|
-
},
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Abort current Apple Pay session
|
|
283
|
-
*/
|
|
284
|
-
abortPaymentSession() {
|
|
285
|
-
if (this.currentSession) {
|
|
286
|
-
this.currentSession.abort();
|
|
287
|
-
this.currentSession = undefined;
|
|
288
|
-
this.currentPaymentRequest = undefined;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* Setup Apple Pay session event handlers
|
|
293
|
-
*/
|
|
294
|
-
setupSessionEventHandlers(resolve, reject, authToken, accountId) {
|
|
295
|
-
if (!this.currentSession ||
|
|
296
|
-
!this.applePayConfig ||
|
|
297
|
-
!this.currentPaymentRequest) {
|
|
298
|
-
console.error('[ApplePayService] setupSessionEventHandlers called without required state', {
|
|
299
|
-
hasSession: Boolean(this.currentSession),
|
|
300
|
-
hasConfig: Boolean(this.applePayConfig),
|
|
301
|
-
hasPaymentRequest: Boolean(this.currentPaymentRequest),
|
|
302
|
-
});
|
|
303
|
-
return;
|
|
304
|
-
}
|
|
305
|
-
this.currentSession.onvalidatemerchant = async () => {
|
|
306
|
-
console.groupCollapsed('[ApplePayService] onvalidatemerchant');
|
|
307
|
-
try {
|
|
308
|
-
console.log('[ApplePayService] accountId:', accountId);
|
|
309
|
-
if (!authToken) {
|
|
310
|
-
console.error('[ApplePayService] Missing authToken for merchant validation');
|
|
311
|
-
throw new Error('Authentication token not provided.');
|
|
312
|
-
}
|
|
313
|
-
const merchantSession = await this.validateMerchant(authToken, accountId);
|
|
314
|
-
console.log('[ApplePayService] merchantSession received');
|
|
315
|
-
try {
|
|
316
|
-
this.currentSession.completeMerchantValidation(merchantSession);
|
|
317
|
-
console.log('[ApplePayService] completeMerchantValidation called');
|
|
318
|
-
}
|
|
319
|
-
catch (completionError) {
|
|
320
|
-
console.error('Error calling completeMerchantValidation:', completionError);
|
|
321
|
-
throw completionError;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
catch (error) {
|
|
325
|
-
console.error('=== MERCHANT VALIDATION ERROR ===');
|
|
326
|
-
console.error('Error during merchant validation:', error);
|
|
327
|
-
if (error && error.stack) {
|
|
328
|
-
console.error('Error stack:', error.stack);
|
|
329
|
-
}
|
|
330
|
-
this.currentSession.abort();
|
|
331
|
-
reject({
|
|
332
|
-
success: false,
|
|
333
|
-
error: {
|
|
334
|
-
code: ApplePayServiceErrorCode.MERCHANT_VALIDATION_ERROR,
|
|
335
|
-
message: error instanceof Error
|
|
336
|
-
? error.message
|
|
337
|
-
: 'Merchant validation failed',
|
|
338
|
-
},
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
console.groupEnd();
|
|
342
|
-
};
|
|
343
|
-
this.currentSession.onpaymentauthorized = async (event) => {
|
|
344
|
-
var _a;
|
|
345
|
-
console.groupCollapsed('[ApplePayService] onpaymentauthorized');
|
|
346
|
-
try {
|
|
347
|
-
const payment = event.payment;
|
|
348
|
-
console.log('[ApplePayService] payment payload snapshot:', {
|
|
349
|
-
hasToken: Boolean(payment === null || payment === void 0 ? void 0 : payment.token),
|
|
350
|
-
tokenType: ((_a = payment === null || payment === void 0 ? void 0 : payment.token) === null || _a === void 0 ? void 0 : _a.paymentData) ? 'paymentData' : 'raw',
|
|
351
|
-
});
|
|
352
|
-
const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
|
|
353
|
-
name: this.currentPaymentRequest.total.label,
|
|
354
|
-
price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
|
|
355
|
-
description: this.currentPaymentRequest.total.label,
|
|
356
|
-
} });
|
|
357
|
-
console.log('[ApplePayService] paymentPayload prepared');
|
|
358
|
-
const paymentResult = await this.processPayment(authToken, accountId, paymentPayload);
|
|
359
|
-
console.log('[ApplePayService] processPayment result:', paymentResult);
|
|
360
|
-
if (paymentResult.success) {
|
|
361
|
-
this.currentSession.completePayment({
|
|
362
|
-
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
363
|
-
});
|
|
364
|
-
console.log('[ApplePayService] Payment success; resolving');
|
|
365
|
-
resolve({
|
|
366
|
-
success: true,
|
|
367
|
-
token: payment.token,
|
|
368
|
-
paymentMethodId: paymentResult.data.id,
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
else {
|
|
372
|
-
console.error('PSP reported payment failure:', paymentResult.data);
|
|
373
|
-
this.currentSession.completePayment({
|
|
374
|
-
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
375
|
-
});
|
|
376
|
-
reject({
|
|
377
|
-
success: false,
|
|
378
|
-
error: {
|
|
379
|
-
code: ApplePayServiceErrorCode.PAYMENT_PROCESSING_ERROR,
|
|
380
|
-
message: 'Payment processing failed',
|
|
381
|
-
},
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
catch (error) {
|
|
386
|
-
console.error('=== PAYMENT PROCESSING ERROR ===');
|
|
387
|
-
console.error('Error processing payment:', error);
|
|
388
|
-
if (error && error.stack) {
|
|
389
|
-
console.error('Error stack:', error.stack);
|
|
390
|
-
}
|
|
391
|
-
this.currentSession.completePayment({
|
|
392
|
-
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
393
|
-
});
|
|
394
|
-
reject({
|
|
395
|
-
success: false,
|
|
396
|
-
error: {
|
|
397
|
-
code: ApplePayServiceErrorCode.PAYMENT_PROCESSING_ERROR,
|
|
398
|
-
message: error instanceof Error
|
|
399
|
-
? error.message
|
|
400
|
-
: 'Payment processing failed',
|
|
401
|
-
},
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
finally {
|
|
405
|
-
console.log('[ApplePayService] Cleaning up session state');
|
|
406
|
-
this.currentSession = undefined;
|
|
407
|
-
this.currentPaymentRequest = undefined;
|
|
408
|
-
}
|
|
409
|
-
console.groupEnd();
|
|
410
|
-
};
|
|
411
|
-
this.currentSession.onpaymentmethodselected = () => {
|
|
412
|
-
console.groupCollapsed('[ApplePayService] onpaymentmethodselected');
|
|
413
|
-
const paymentUpdate = {
|
|
414
|
-
newTotal: this.currentPaymentRequest.total,
|
|
415
|
-
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
416
|
-
};
|
|
417
|
-
try {
|
|
418
|
-
this.currentSession.completePaymentMethodSelection(paymentUpdate);
|
|
419
|
-
console.log('[ApplePayService] completePaymentMethodSelection called');
|
|
420
|
-
}
|
|
421
|
-
catch (error) {
|
|
422
|
-
console.error('Error completing payment method selection:', error);
|
|
423
|
-
this.currentSession.abort();
|
|
424
|
-
}
|
|
425
|
-
console.groupEnd();
|
|
426
|
-
};
|
|
427
|
-
this.currentSession.onshippingmethodselected = () => {
|
|
428
|
-
console.groupCollapsed('[ApplePayService] onshippingmethodselected');
|
|
429
|
-
this.currentSession.completeShippingMethodSelection({
|
|
430
|
-
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
431
|
-
newTotal: this.currentPaymentRequest.total,
|
|
432
|
-
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
433
|
-
});
|
|
434
|
-
console.log('[ApplePayService] completeShippingMethodSelection called');
|
|
435
|
-
console.groupEnd();
|
|
436
|
-
};
|
|
437
|
-
this.currentSession.oncancel = (event) => {
|
|
438
|
-
console.groupCollapsed('[ApplePayService] oncancel');
|
|
439
|
-
if (event.sessionError) {
|
|
440
|
-
console.error(event.sessionError);
|
|
441
|
-
switch (event.sessionError.code) {
|
|
442
|
-
case 'unknown':
|
|
443
|
-
console.error('Unknown error - likely merchant validation issue');
|
|
444
|
-
console.error('This usually means:');
|
|
445
|
-
console.error('1. Merchant certificate is invalid or expired');
|
|
446
|
-
console.error('2. Merchant identifier mismatch');
|
|
447
|
-
console.error('3. Backend validation endpoint issues');
|
|
448
|
-
break;
|
|
449
|
-
case 'invalidMerchantSession':
|
|
450
|
-
console.error('Invalid merchant session provided');
|
|
451
|
-
console.error('Check that the merchant session from backend is valid');
|
|
452
|
-
break;
|
|
453
|
-
case 'userCancel':
|
|
454
|
-
console.error('User cancelled the payment');
|
|
455
|
-
break;
|
|
456
|
-
default:
|
|
457
|
-
console.error('Other error code:', event.sessionError.code);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
this.currentSession = undefined;
|
|
461
|
-
this.currentPaymentRequest = undefined;
|
|
462
|
-
reject({
|
|
463
|
-
success: false,
|
|
464
|
-
error: {
|
|
465
|
-
code: ApplePayServiceErrorCode.USER_CANCELLED,
|
|
466
|
-
message: 'User cancelled the Apple Pay session',
|
|
467
|
-
},
|
|
468
|
-
});
|
|
469
|
-
console.groupEnd();
|
|
470
|
-
};
|
|
471
|
-
if ('onerror' in this.currentSession) {
|
|
472
|
-
this.currentSession.onerror = (error) => {
|
|
473
|
-
console.groupCollapsed('[ApplePayService] onerror');
|
|
474
|
-
console.error('=== APPLE PAY SESSION ERROR ===');
|
|
475
|
-
console.error('Session error:', error);
|
|
476
|
-
this.currentSession = undefined;
|
|
477
|
-
this.currentPaymentRequest = undefined;
|
|
478
|
-
reject({
|
|
479
|
-
success: false,
|
|
480
|
-
error: {
|
|
481
|
-
code: ApplePayServiceErrorCode.SESSION_ERROR,
|
|
482
|
-
message: 'Apple Pay session error occurred',
|
|
483
|
-
},
|
|
484
|
-
});
|
|
485
|
-
console.groupEnd();
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* Create a basic payment request
|
|
491
|
-
*/
|
|
492
|
-
static createPaymentRequest(amount, label, countryCode = 'US', currencyCode = 'USD') {
|
|
493
|
-
return {
|
|
494
|
-
countryCode,
|
|
495
|
-
currencyCode,
|
|
496
|
-
merchantCapabilities: ApplePayHelpers.getDefaultMerchantCapabilities(),
|
|
497
|
-
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
498
|
-
total: ApplePayHelpers.createLineItem(label, amount),
|
|
499
|
-
};
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Get current configuration
|
|
503
|
-
*/
|
|
504
|
-
getApplePayConfig() {
|
|
505
|
-
return this.applePayConfig;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
const ApplePaySkeleton = (props) => {
|
|
510
|
-
const { isLoading } = props;
|
|
511
|
-
if (!isLoading) {
|
|
512
|
-
return null;
|
|
513
|
-
}
|
|
514
|
-
return (h("div", { class: 'container-fluid p-0' }, h("div", { class: 'row mb-3' }, h("div", { class: 'col-12 align-content-center' }, h(Skeleton, { height: '44px', width: '100%', styles: { borderRadius: "8px" } })))));
|
|
515
|
-
};
|
|
516
|
-
|
|
517
|
-
const ProcessingSpinner = () => (h("div", { class: 'processing-overlay' }, h("div", { class: 'spinner' }), h("span", null, "Processing...")));
|
|
518
|
-
const ApplePayButton = (props) => {
|
|
519
|
-
const getApplePayButtonClass = () => {
|
|
520
|
-
let classes = "apple-pay-button";
|
|
521
|
-
switch (props.buttonStyle) {
|
|
522
|
-
case ApplePayButtonStyle.WHITE:
|
|
523
|
-
classes += " apple-pay-button-white";
|
|
524
|
-
break;
|
|
525
|
-
case ApplePayButtonStyle.WHITE_OUTLINE:
|
|
526
|
-
classes += " apple-pay-button-white-outline";
|
|
527
|
-
break;
|
|
528
|
-
case ApplePayButtonStyle.BLACK:
|
|
529
|
-
default:
|
|
530
|
-
classes += " apple-pay-button-black";
|
|
531
|
-
break;
|
|
532
|
-
}
|
|
533
|
-
switch (props.buttonType) {
|
|
534
|
-
case ApplePayButtonType.BUY:
|
|
535
|
-
classes += " apple-pay-button-type-buy";
|
|
536
|
-
break;
|
|
537
|
-
case ApplePayButtonType.DONATE:
|
|
538
|
-
classes += " apple-pay-button-type-donate";
|
|
539
|
-
break;
|
|
540
|
-
case ApplePayButtonType.PLAIN:
|
|
541
|
-
default:
|
|
542
|
-
classes += " apple-pay-button-type-plain";
|
|
543
|
-
break;
|
|
544
|
-
}
|
|
545
|
-
if (props.disabled || props.isProcessing || !props.isAvailable) {
|
|
546
|
-
classes += " disabled";
|
|
547
|
-
}
|
|
548
|
-
return classes;
|
|
549
|
-
};
|
|
550
|
-
const getButtonStyles = () => {
|
|
551
|
-
return {
|
|
552
|
-
width: props.width || "200px",
|
|
553
|
-
height: props.height || "48px",
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
const handleClick = () => {
|
|
557
|
-
if (!props.disabled &&
|
|
558
|
-
!props.isProcessing &&
|
|
559
|
-
props.isAvailable &&
|
|
560
|
-
props.clickHandler) {
|
|
561
|
-
props.clickHandler();
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
|
-
return (h("div", { class: 'apple-pay-button-container' }, h("button", Object.assign({ class: getApplePayButtonClass(), style: getButtonStyles(), onClick: handleClick, disabled: props.disabled || props.isProcessing || !props.isAvailable, "aria-label": 'Pay with Apple Pay', type: 'button' }, props), props.isProcessing && ProcessingSpinner()), h("style", null, `
|
|
565
|
-
.apple-pay-button-container {
|
|
566
|
-
display: inline-block;
|
|
567
|
-
position: relative;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
/* Apple Pay CSS classes - these are the official Apple Pay button styles */
|
|
571
|
-
.apple-pay-button {
|
|
572
|
-
display: inline-block;
|
|
573
|
-
-webkit-appearance: -apple-pay-button;
|
|
574
|
-
-apple-pay-button-type: plain; /* default */
|
|
575
|
-
-apple-pay-button-style: black; /* default */
|
|
576
|
-
border-radius: 8px;
|
|
577
|
-
cursor: pointer;
|
|
578
|
-
border: none;
|
|
579
|
-
outline: none;
|
|
580
|
-
transition: opacity 0.2s ease;
|
|
581
|
-
position: relative;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
/* Button styles */
|
|
585
|
-
.apple-pay-button.apple-pay-button-black {
|
|
586
|
-
-apple-pay-button-style: black;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.apple-pay-button.apple-pay-button-white {
|
|
590
|
-
-apple-pay-button-style: white;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
.apple-pay-button.apple-pay-button-white-outline {
|
|
594
|
-
-apple-pay-button-style: white-outline;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
/* Button types */
|
|
598
|
-
.apple-pay-button.apple-pay-button-type-plain {
|
|
599
|
-
-apple-pay-button-type: plain;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
.apple-pay-button.apple-pay-button-type-buy {
|
|
603
|
-
-apple-pay-button-type: buy;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.apple-pay-button.apple-pay-button-type-donate {
|
|
607
|
-
-apple-pay-button-type: donate;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
/* Hover and disabled states */
|
|
611
|
-
.apple-pay-button:hover:not(.disabled) {
|
|
612
|
-
opacity: 0.9;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
.apple-pay-button.disabled {
|
|
616
|
-
opacity: 0.5;
|
|
617
|
-
cursor: not-allowed;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
/* Processing overlay */
|
|
621
|
-
.processing-overlay {
|
|
622
|
-
position: absolute;
|
|
623
|
-
top: 0;
|
|
624
|
-
left: 0;
|
|
625
|
-
right: 0;
|
|
626
|
-
bottom: 0;
|
|
627
|
-
display: flex;
|
|
628
|
-
align-items: center;
|
|
629
|
-
justify-content: center;
|
|
630
|
-
gap: 8px;
|
|
631
|
-
background: rgba(0, 0, 0, 0.8);
|
|
632
|
-
color: white;
|
|
633
|
-
border-radius: 8px;
|
|
634
|
-
font-size: 14px;
|
|
635
|
-
font-weight: 500;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
.spinner {
|
|
639
|
-
width: 16px;
|
|
640
|
-
height: 16px;
|
|
641
|
-
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
642
|
-
border-top: 2px solid #fff;
|
|
643
|
-
border-radius: 50%;
|
|
644
|
-
animation: spin 1s linear infinite;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
@keyframes spin {
|
|
648
|
-
0% { transform: rotate(0deg); }
|
|
649
|
-
100% { transform: rotate(360deg); }
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
/* Responsive design */
|
|
653
|
-
@media (max-width: 480px) {
|
|
654
|
-
.apple-pay-button {
|
|
655
|
-
width: 100% !important;
|
|
656
|
-
min-width: 200px;
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
`)));
|
|
660
|
-
};
|
|
661
|
-
|
|
662
|
-
const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLElement {
|
|
663
|
-
constructor(registerHost) {
|
|
664
|
-
super();
|
|
665
|
-
if (registerHost !== false) {
|
|
666
|
-
this.__registerHost();
|
|
667
|
-
}
|
|
668
|
-
this.__attachShadow();
|
|
669
|
-
this.applePayStarted = createEvent(this, "applePayStarted", 7);
|
|
670
|
-
this.applePayCompleted = createEvent(this, "applePayCompleted", 7);
|
|
671
|
-
this.applePayCancelled = createEvent(this, "applePayCancelled", 7);
|
|
672
|
-
this.applePayError = createEvent(this, "applePayError", 7);
|
|
673
|
-
this.countryCode = "US";
|
|
674
|
-
this.merchantIdentifier = "merchant.com.staging-justifi.checkout-dev";
|
|
675
|
-
this.merchantDisplayName = "JustiFi Checkout";
|
|
676
|
-
this.initiativeContext = "dev-checkout.justifi-staging.com";
|
|
677
|
-
this.buttonType = ApplePayButtonType.PLAIN;
|
|
678
|
-
this.buttonStyle = ApplePayButtonStyle.BLACK;
|
|
679
|
-
this.disabled = false;
|
|
680
|
-
this.showSkeleton = true;
|
|
681
|
-
this.isLoading = true;
|
|
682
|
-
this.isProcessing = false;
|
|
683
|
-
this.isAvailable = false;
|
|
684
|
-
this.canMakePayments = false;
|
|
685
|
-
this.isConfigValid = true;
|
|
686
|
-
this.error = null;
|
|
687
|
-
this.handleApplePayClick = async () => {
|
|
688
|
-
var _a, _b;
|
|
689
|
-
if (this.isProcessing || this.disabled || !this.isAvailable) {
|
|
690
|
-
return;
|
|
691
|
-
}
|
|
692
|
-
try {
|
|
693
|
-
this.isProcessing = true;
|
|
694
|
-
this.error = null;
|
|
695
|
-
this.applePayStarted.emit();
|
|
696
|
-
console.groupCollapsed('[ApplePay Component] handleApplePayClick');
|
|
697
|
-
console.log('[ApplePay Component] click context:', {
|
|
698
|
-
isProcessing: this.isProcessing,
|
|
699
|
-
disabled: this.disabled,
|
|
700
|
-
isAvailable: this.isAvailable,
|
|
701
|
-
canMakePayments: this.canMakePayments,
|
|
702
|
-
hasService: Boolean(this.applePayService),
|
|
703
|
-
});
|
|
704
|
-
const paymentRequest = {
|
|
705
|
-
countryCode: this.countryCode,
|
|
706
|
-
currencyCode: checkoutStore.paymentCurrency,
|
|
707
|
-
merchantCapabilities: [
|
|
708
|
-
ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
709
|
-
ApplePayMerchantCapability.SUPPORTS_CREDIT,
|
|
710
|
-
ApplePayMerchantCapability.SUPPORTS_DEBIT,
|
|
711
|
-
],
|
|
712
|
-
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
713
|
-
total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
|
|
714
|
-
};
|
|
715
|
-
console.log("[ApplePay Component] paymentRequest", paymentRequest);
|
|
716
|
-
console.log('[ApplePay Component] identifiers snapshot:', {
|
|
717
|
-
authTokenLength: checkoutStore.authToken ? String(checkoutStore.authToken).length : 0,
|
|
718
|
-
accountId: checkoutStore.accountId,
|
|
719
|
-
});
|
|
720
|
-
const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
|
|
721
|
-
console.log("[ApplePay Component] startPaymentSession result", result);
|
|
722
|
-
if (result.success) {
|
|
723
|
-
this.applePayCompleted.emit({
|
|
724
|
-
success: true,
|
|
725
|
-
token: result.token,
|
|
726
|
-
paymentMethodId: result.paymentMethodId,
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
else {
|
|
730
|
-
this.applePayCompleted.emit({
|
|
731
|
-
success: false,
|
|
732
|
-
error: result.error,
|
|
733
|
-
});
|
|
734
|
-
this.applePayError.emit({
|
|
735
|
-
error: ((_a = result.error) === null || _a === void 0 ? void 0 : _a.message) || "Payment failed",
|
|
736
|
-
code: ((_b = result.error) === null || _b === void 0 ? void 0 : _b.code) || ApplePay.ErrorCode.PAYMENT_FAILED,
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
catch (error) {
|
|
741
|
-
const errorMessage = error instanceof Error ? error.message : "Payment failed";
|
|
742
|
-
this.error = errorMessage;
|
|
743
|
-
this.applePayError.emit({ error: errorMessage, code: ApplePay.ErrorCode.PAYMENT_FAILED });
|
|
744
|
-
this.applePayCompleted.emit({
|
|
745
|
-
success: false,
|
|
746
|
-
error: errorMessage,
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
finally {
|
|
750
|
-
this.isProcessing = false;
|
|
751
|
-
console.groupEnd();
|
|
752
|
-
}
|
|
753
|
-
};
|
|
754
|
-
}
|
|
755
|
-
async initializeApplePay() {
|
|
756
|
-
try {
|
|
757
|
-
this.isLoading = true;
|
|
758
|
-
this.error = null;
|
|
759
|
-
this.isConfigValid = true;
|
|
760
|
-
console.groupCollapsed('[ApplePay Component] initializeApplePay');
|
|
761
|
-
console.log('[ApplePay Component] checkout state snapshot:', {
|
|
762
|
-
paymentAmount: checkoutStore.paymentAmount,
|
|
763
|
-
paymentCurrency: checkoutStore.paymentCurrency,
|
|
764
|
-
hasAuthToken: Boolean(checkoutStore.authToken),
|
|
765
|
-
accountId: checkoutStore.accountId,
|
|
766
|
-
});
|
|
767
|
-
const hasRequiredConfig = Boolean(checkoutStore.paymentAmount) &&
|
|
768
|
-
Boolean(checkoutStore.paymentCurrency) &&
|
|
769
|
-
Boolean(checkoutStore.authToken);
|
|
770
|
-
if (!hasRequiredConfig) {
|
|
771
|
-
this.error = "Missing required Apple Pay configuration";
|
|
772
|
-
this.isConfigValid = false;
|
|
773
|
-
console.error("Apple Pay config error: missing required values", {
|
|
774
|
-
paymentAmount: checkoutStore.paymentAmount,
|
|
775
|
-
paymentCurrency: checkoutStore.paymentCurrency,
|
|
776
|
-
hasAuthToken: Boolean(checkoutStore.authToken),
|
|
777
|
-
accountId: checkoutStore.accountId,
|
|
778
|
-
});
|
|
779
|
-
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.CONFIG_ERROR });
|
|
780
|
-
this.isLoading = false;
|
|
781
|
-
console.groupEnd();
|
|
782
|
-
return;
|
|
783
|
-
}
|
|
784
|
-
this.isAvailable = ApplePayHelpers.isApplePaySupported();
|
|
785
|
-
this.canMakePayments = ApplePayHelpers.canMakePayments();
|
|
786
|
-
console.log('[ApplePay Component] support check:', {
|
|
787
|
-
isAvailable: this.isAvailable,
|
|
788
|
-
canMakePayments: this.canMakePayments,
|
|
789
|
-
hasApplePaySessionOnWindow: typeof window !== 'undefined' && 'ApplePaySession' in window,
|
|
790
|
-
});
|
|
791
|
-
if (!this.isAvailable) {
|
|
792
|
-
this.error = "Apple Pay is not supported on this device";
|
|
793
|
-
console.error(this.error);
|
|
794
|
-
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_SUPPORTED });
|
|
795
|
-
this.isLoading = false;
|
|
796
|
-
console.groupEnd();
|
|
797
|
-
return;
|
|
798
|
-
}
|
|
799
|
-
if (!this.canMakePayments) {
|
|
800
|
-
this.error = "Apple Pay is not available";
|
|
801
|
-
console.error(this.error);
|
|
802
|
-
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_AVAILABLE });
|
|
803
|
-
this.isLoading = false;
|
|
804
|
-
console.groupEnd();
|
|
805
|
-
return;
|
|
806
|
-
}
|
|
807
|
-
const applePayConfig = {
|
|
808
|
-
merchantIdentifier: this.merchantIdentifier,
|
|
809
|
-
displayName: this.merchantDisplayName,
|
|
810
|
-
initiative: "web",
|
|
811
|
-
initiativeContext: this.initiativeContext,
|
|
812
|
-
buttonType: this.buttonType,
|
|
813
|
-
buttonStyle: this.buttonStyle,
|
|
814
|
-
};
|
|
815
|
-
console.log('[ApplePay Component] initializing service with config:', applePayConfig);
|
|
816
|
-
this.applePayService = new ApplePayService();
|
|
817
|
-
this.applePayService.initialize(applePayConfig);
|
|
818
|
-
const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
|
|
819
|
-
if (!hasActiveCard) {
|
|
820
|
-
console.warn("No Apple Pay cards available, but continuing...");
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
catch (error) {
|
|
824
|
-
console.error("Apple Pay initialization error:", error);
|
|
825
|
-
this.error =
|
|
826
|
-
error instanceof Error
|
|
827
|
-
? error.message
|
|
828
|
-
: "Failed to initialize Apple Pay";
|
|
829
|
-
this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.INITIALIZATION_ERROR });
|
|
830
|
-
}
|
|
831
|
-
finally {
|
|
832
|
-
this.isLoading = false;
|
|
833
|
-
console.groupEnd();
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
async isSupported() {
|
|
837
|
-
return this.isAvailable && this.canMakePayments;
|
|
838
|
-
}
|
|
839
|
-
async getPaymentMethods() {
|
|
840
|
-
if (!this.isAvailable) {
|
|
841
|
-
return [];
|
|
842
|
-
}
|
|
843
|
-
return ApplePayHelpers.getDefaultSupportedNetworks();
|
|
844
|
-
}
|
|
845
|
-
async abort() {
|
|
846
|
-
this.applePayService.abortPaymentSession();
|
|
847
|
-
this.isProcessing = false;
|
|
848
|
-
this.applePayCancelled.emit();
|
|
849
|
-
}
|
|
850
|
-
render() {
|
|
851
|
-
const isReady = !this.isLoading &&
|
|
852
|
-
this.isAvailable &&
|
|
853
|
-
this.canMakePayments &&
|
|
854
|
-
this.isConfigValid;
|
|
855
|
-
return (h(StyledHost, { key: '6ffd1642666316916be6c263d6e79c44fb2d26cf' }, checkoutStore.checkoutLoaded && (h("script", { key: 'd3cea0c2fea2b9e51fd926f581dce118a7b0cc00', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
|
|
856
|
-
console.log('[ApplePay Component] Apple Pay SDK script loaded');
|
|
857
|
-
this.initializeApplePay();
|
|
858
|
-
} })), h("div", { key: '4a2ee3cb9a98746be1a10c3836833bb408d0896b', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: 'e804a3d42e4632d224a780c2313da4fd40a35281', isLoading: this.isLoading }), isReady && (h(ApplePayButton, { key: '82c8caa32e8857797dc3071a7404d9418fcd2274', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '022d4942b34097987ca8fe956bb6e02174a488b9' }, `
|
|
859
|
-
.apple-pay-container {
|
|
860
|
-
width: 100%;
|
|
861
|
-
}
|
|
862
|
-
`)));
|
|
863
|
-
}
|
|
864
|
-
}, [257, "justifi-apple-pay", {
|
|
865
|
-
"countryCode": [1, "country-code"],
|
|
866
|
-
"merchantIdentifier": [1, "merchant-identifier"],
|
|
867
|
-
"merchantDisplayName": [1, "merchant-display-name"],
|
|
868
|
-
"initiativeContext": [1, "initiative-context"],
|
|
869
|
-
"buttonType": [1, "button-type"],
|
|
870
|
-
"buttonStyle": [1, "button-style"],
|
|
871
|
-
"disabled": [4],
|
|
872
|
-
"showSkeleton": [4, "show-skeleton"],
|
|
873
|
-
"isLoading": [32],
|
|
874
|
-
"isProcessing": [32],
|
|
875
|
-
"isAvailable": [32],
|
|
876
|
-
"canMakePayments": [32],
|
|
877
|
-
"isConfigValid": [32],
|
|
878
|
-
"error": [32],
|
|
879
|
-
"isSupported": [64],
|
|
880
|
-
"getPaymentMethods": [64],
|
|
881
|
-
"abort": [64]
|
|
882
|
-
}]);
|
|
883
|
-
// Centralized error codes for the Apple Pay component layer
|
|
884
|
-
ApplePay.ErrorCode = {
|
|
885
|
-
CONFIG_ERROR: 'CONFIG_ERROR',
|
|
886
|
-
NOT_SUPPORTED: 'NOT_SUPPORTED',
|
|
887
|
-
NOT_AVAILABLE: 'NOT_AVAILABLE',
|
|
888
|
-
INITIALIZATION_ERROR: 'INITIALIZATION_ERROR',
|
|
889
|
-
PAYMENT_FAILED: 'PAYMENT_FAILED',
|
|
890
|
-
};
|
|
891
|
-
function defineCustomElement$1() {
|
|
892
|
-
if (typeof customElements === "undefined") {
|
|
893
|
-
return;
|
|
894
|
-
}
|
|
895
|
-
const components = ["justifi-apple-pay"];
|
|
896
|
-
components.forEach(tagName => { switch (tagName) {
|
|
897
|
-
case "justifi-apple-pay":
|
|
898
|
-
if (!customElements.get(tagName)) {
|
|
899
|
-
customElements.define(tagName, ApplePay);
|
|
900
|
-
}
|
|
901
|
-
break;
|
|
902
|
-
} });
|
|
903
|
-
}
|
|
904
|
-
defineCustomElement$1();
|
|
1
|
+
import { A as ApplePay, d as defineCustomElement$1 } from './apple-pay.js';
|
|
905
2
|
|
|
906
3
|
const JustifiApplePay = ApplePay;
|
|
907
4
|
const defineCustomElement = defineCustomElement$1;
|