@justifi/webcomponents 6.6.0 → 6.7.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/dist/cjs/{Refund-BX0mjsAQ.js → GooglePay-BwiJ_80p.js} +415 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-_nY1l5Rq.js → badge-Cc87HAsf.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_8.cjs.entry.js +9 -8
- package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{business.service-Dffp64u6.js → business.service-q93NsTG_.js} +1 -1
- package/dist/cjs/{button-CARQPDm-.js → button-fUPGXjU_.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +4 -4
- package/dist/cjs/{check-pkg-version-DZC7jOGP.js → check-pkg-version-nSgWWvdw.js} +2 -2
- package/dist/cjs/{checkout.service-C1HcsrjQ.js → checkout.service-CwelwhrT.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -7
- package/dist/cjs/{checkouts-table-Bgqkaez4.js → checkouts-table-BBtqxG2F.js} +2 -2
- package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-CJsWYMYk.js → dispute.service-q5ha39uN.js} +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-mhOq2Edp.js → form-control-error-text-Dg_65HGK.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-BoRpAoX6.js → form-control-help-text-tB5u1-5M.js} +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +6 -6
- package/dist/cjs/{get-payment-details-BblcGN2B.js → get-payment-details-DidIAK2i.js} +2 -2
- package/dist/cjs/{get-subaccounts-z4dNQDjx.js → get-subaccounts-BE_wcfM7.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-CBO8uDuZ.js → header-1-Bqejh9no.js} +1 -1
- package/dist/cjs/{header-3-CPWtI1t0.js → header-3-DQ649Me2.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +7 -7
- package/dist/cjs/{index-C2ITzalN.js → index-CajjbB9t.js} +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{insurance-state-BMHITXoD.js → insurance-state-DsGnIHMM.js} +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +25 -26
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -11
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/{justifi-apple-pay_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js} +904 -258
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
- package/dist/cjs/justifi-checkout.cjs.entry.js +15 -16
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +26 -12
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -10
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -5
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -11
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -10
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -11
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -12
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -11
- package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +13 -12
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +9 -8
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -10
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/owner-form-core_2.cjs.entry.js +2 -2
- package/dist/cjs/{package-CkO7M9IQ.js → package-B8gOzTFM.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-Pb06tUMp.js → parts-BVbaniVM.js} +6 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +16 -15
- package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-BZatGHKc.js → payment.service-CyHFdJ7n.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +9 -8
- package/dist/cjs/{payments-status-t4fVj8f9.js → payments-status-BP4u31jU.js} +1 -1
- package/dist/cjs/{payments-table-CaJt-yMH.js → payments-table-CWXVhECV.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +9 -9
- package/dist/cjs/{payout.service-DbgLWhwh.js → payout.service-Half-hdB.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +9 -8
- package/dist/cjs/{payouts-status-pIO9qZG6.js → payouts-status-CM5Zy-0J.js} +1 -1
- package/dist/cjs/{payouts-table-DZv0WnTS.js → payouts-table-ZLTcfkUm.js} +2 -2
- package/dist/cjs/{skeleton-BF3HGL9X.js → skeleton-B8dzxFFr.js} +1 -1
- package/dist/cjs/{spinner-BBdv3Iq1.js → spinner-jHyLNCGO.js} +1 -1
- package/dist/cjs/{table-CfBpaApw.js → table-CrtpRwGN.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +8 -7
- package/dist/cjs/{terminal-orders-table-F-ZFUBwH.js → terminal-orders-table-DT53anT3.js} +5 -5
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-KC8wBTJJ.js → terminal.service-CFt55QNO.js} +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +8 -7
- package/dist/cjs/{terminals-table-D7sf_DBN.js → terminals-table-DahpSz98.js} +2 -2
- package/dist/cjs/{utils-Cjq3ZCad.js → utils-CMiA4X7s.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/GooglePay.js +181 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/google-pay.service.js +240 -0
- package/dist/collection/collection-manifest.json +1 -0
- 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 +72 -2
- 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 +2 -2
- 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/ModularCheckout.js +1 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +44 -6
- 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/google-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/google-pay.js +609 -0
- 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-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/store/checkout.store.js +4 -0
- package/dist/collection/styles/parts.js +3 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/google-pay-button.js +251 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +727 -102
- package/dist/esm/{Refund-DDWRtCuX.js → GooglePay-NNHE-OLJ.js} +405 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-BWd10d-w.js → badge-DtrH25ss.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_8.entry.js +8 -7
- package/dist/esm/bank-account-form.entry.js +4 -4
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business.service-CmSijtcP.js → business.service-BrUSam2T.js} +1 -1
- package/dist/esm/{button-BDwVDLs-.js → button-Bpf3VX8Q.js} +1 -1
- package/dist/esm/card-form.entry.js +4 -4
- package/dist/esm/{check-pkg-version-B83yUQEx.js → check-pkg-version-CmkUoEAo.js} +2 -2
- package/dist/esm/{checkout.service-E60GnrZv.js → checkout.service-Bxt1qPaY.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +8 -7
- package/dist/esm/{checkouts-table-BVWL1wN9.js → checkouts-table-CB4GdlcZ.js} +2 -2
- package/dist/esm/custom-popper_2.entry.js +3 -3
- package/dist/esm/{dispute.service-CAZJigrO.js → dispute.service-DYRYxxaT.js} +1 -1
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-BYooqu0N.js → form-control-error-text-BZYykCDp.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-CF1UA5Sl.js → form-control-help-text-D-p66Yxr.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_3.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_2.entry.js +6 -6
- package/dist/esm/{get-payment-details-Dg5WRkOM.js → get-payment-details-BJ1PLhJZ.js} +1 -1
- package/dist/esm/{get-subaccounts-CbxzednA.js → get-subaccounts-CzGHjlUF.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +4 -4
- package/dist/esm/{header-1-CzkA4zNY.js → header-1-WwkF5F9y.js} +1 -1
- package/dist/esm/{header-3-eIE1RpMN.js → header-3-C5jS39cE.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{index-DCIW8z1f.js → index-DkoufM1t.js} +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/{insurance-state-By2QaBZo.js → insurance-state-C11WKZU6.js} +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +14 -15
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +6 -5
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/{justifi-apple-pay_7.entry.js → justifi-apple-pay_8.entry.js} +787 -142
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +7 -6
- package/dist/esm/justifi-business-form.entry.js +9 -8
- package/dist/esm/justifi-checkout.entry.js +8 -9
- package/dist/esm/justifi-checkouts-list-filters.entry.js +19 -5
- package/dist/esm/justifi-checkouts-list.entry.js +10 -9
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +6 -5
- package/dist/esm/justifi-dispute-notification_3.entry.js +12 -11
- package/dist/esm/justifi-gross-payment-chart.entry.js +6 -5
- package/dist/esm/justifi-order-terminals.entry.js +9 -8
- package/dist/esm/justifi-payment-details.entry.js +8 -7
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -4
- package/dist/esm/justifi-payment-transactions-list.entry.js +9 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +10 -9
- package/dist/esm/justifi-payout-details.entry.js +7 -6
- package/dist/esm/justifi-payout-transactions-list.entry.js +9 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +11 -10
- package/dist/esm/justifi-refund-payment.entry.js +9 -8
- package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -8
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -4
- package/dist/esm/justifi-terminal-orders-list.entry.js +8 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +4 -3
- package/dist/esm/justifi-terminals-list.entry.js +10 -9
- package/dist/esm/justifi-tokenize-payment-method.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/owner-form-core_2.entry.js +2 -2
- package/dist/esm/{package-CdVle3mx.js → package-CsRppqXL.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-QmGrQis7.js → parts-sA8HBfkI.js} +4 -1
- package/dist/esm/payment-details-core.entry.js +15 -14
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment.service-CWc5BPv-.js → payment.service-BoGemgMw.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +9 -8
- package/dist/esm/{payments-status-BdCVusHE.js → payments-status-CADg1cD0.js} +1 -1
- package/dist/esm/{payments-table-9rC3BvV0.js → payments-table-C6zHWwGO.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +9 -9
- package/dist/esm/{payout.service-iBVqRzf_.js → payout.service-BSG50wqN.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +9 -8
- package/dist/esm/{payouts-status-DhowllYh.js → payouts-status-4VDQvaYV.js} +1 -1
- package/dist/esm/{payouts-table-Ci_J6mmU.js → payouts-table-BU5XbzB9.js} +2 -2
- package/dist/esm/{skeleton-BX70wCwq.js → skeleton-Dtt56Fl3.js} +1 -1
- package/dist/esm/{spinner-CcDNFgNu.js → spinner-DikooWuI.js} +1 -1
- package/dist/esm/{table-KZoMaoUh.js → table-1hqe6s5m.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +8 -7
- package/dist/esm/{terminal-orders-table-BGiWS5cM.js → terminal-orders-table-BsVBelxB.js} +3 -3
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-CxSKhtwB.js → terminal.service-YKfi6Mr9.js} +1 -1
- package/dist/esm/terminals-list-core.entry.js +8 -7
- package/dist/esm/{terminals-table-DROFEdyn.js → terminals-table-CXJTn-0I.js} +2 -2
- package/dist/esm/{utils-C1PX_3uA.js → utils-CgFsPVsv.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +2 -0
- package/dist/module/ApplePay.js +121 -0
- package/dist/module/GooglePay.js +184 -0
- package/dist/module/ModularCheckout.js +1 -0
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/apple-pay.js +1 -120
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +2 -0
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account.js +2 -2
- package/dist/module/business-bank-account-form-step.js +2 -0
- package/dist/module/business-terms-conditions-form-step.js +2 -0
- package/dist/module/business.service.js +2 -0
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.service.js +2 -0
- package/dist/module/checkout.store.js +4 -0
- package/dist/module/checkouts-list-core2.js +4 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-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-actions.js +2 -0
- 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-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/get-payment-details.js +2 -0
- package/dist/module/get-subaccounts.js +2 -0
- package/dist/module/google-pay.js +781 -0
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-tokenize-payment-method2.js +3 -1
- package/dist/module/justifi-business-form.js +2 -0
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +46 -40
- package/dist/module/justifi-checkouts-list-filters.js +37 -8
- package/dist/module/justifi-checkouts-list.js +3 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-google-pay.d.ts +11 -0
- package/dist/module/justifi-google-pay.js +6 -0
- package/dist/module/justifi-gross-payment-chart.js +2 -0
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -1
- package/dist/module/justifi-payment-provisioning.js +2 -0
- package/dist/module/justifi-payment-transactions-list.js +5 -3
- package/dist/module/justifi-payments-list-filters.js +4 -4
- package/dist/module/justifi-payments-list.js +3 -1
- package/dist/module/justifi-payout-details.js +2 -0
- package/dist/module/justifi-payout-transactions-list.js +5 -3
- package/dist/module/justifi-payouts-list-filters.js +4 -4
- package/dist/module/justifi-payouts-list.js +3 -1
- package/dist/module/justifi-refund-payment.js +2 -0
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +2 -0
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +6 -4
- package/dist/module/justifi-terminal-orders-list.js +3 -1
- package/dist/module/justifi-terminals-list-filters.js +4 -2
- package/dist/module/justifi-terminals-list.js +3 -1
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/modular-checkout.js +46 -6
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +4 -1
- package/dist/module/payment-details-core2.js +10 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment.service.js +2 -0
- package/dist/module/payments-list-core2.js +5 -3
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +2 -0
- package/dist/module/payouts-list-core2.js +5 -3
- package/dist/module/plaid.service.js +2 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/shipping-details.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 +5 -3
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +2 -0
- package/dist/module/terminals-list-core2.js +4 -2
- package/dist/module/utils2.js +1 -1
- package/dist/types/api/Checkout.d.ts +5 -0
- package/dist/types/api/GooglePay.d.ts +271 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/google-pay.service.d.ts +60 -0
- package/dist/types/components/checkout/checkout.d.ts +1 -0
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +5 -0
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +2 -1
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +5 -0
- package/dist/types/components/modular-checkout/sub-components/google-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/google-pay.d.ts +59 -0
- package/dist/types/components.d.ts +146 -0
- package/dist/types/store/checkout.store.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +3 -0
- package/dist/types/ui-components/google-pay-button.d.ts +18 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/p-016b3e4c.entry.js +1 -0
- package/dist/webcomponents/p-04ec17bb.entry.js +1 -0
- package/dist/webcomponents/p-06cae9e2.entry.js +1 -0
- package/dist/webcomponents/p-06f81525.entry.js +1 -0
- package/dist/webcomponents/p-095cedc5.entry.js +1 -0
- package/dist/webcomponents/{p-3482ab40.entry.js → p-0b7c4ed5.entry.js} +1 -1
- package/dist/webcomponents/{p-9c7c60f3.entry.js → p-0bb616fc.entry.js} +1 -1
- package/dist/webcomponents/p-0e981c28.entry.js +1 -0
- package/dist/webcomponents/p-1575ca68.entry.js +1 -0
- package/dist/webcomponents/p-15ceeea7.entry.js +1 -0
- package/dist/webcomponents/{p-8740871d.entry.js → p-1a327b0e.entry.js} +1 -1
- package/dist/webcomponents/p-1e761d96.entry.js +1 -0
- package/dist/webcomponents/{p-0eb7abed.entry.js → p-20e85114.entry.js} +1 -1
- package/dist/webcomponents/{p-5490e39c.entry.js → p-368b37ad.entry.js} +1 -1
- package/dist/webcomponents/{p-d41ad7a8.entry.js → p-36a0af30.entry.js} +1 -1
- package/dist/webcomponents/p-3a3935a3.entry.js +1 -0
- package/dist/webcomponents/p-4d2589b2.entry.js +1 -0
- package/dist/webcomponents/{p-fdcb24aa.entry.js → p-50400c5e.entry.js} +1 -1
- package/dist/webcomponents/{p-99c1059c.entry.js → p-511e80a4.entry.js} +1 -1
- package/dist/webcomponents/p-5996879d.entry.js +1 -0
- package/dist/webcomponents/p-5a748e49.entry.js +1 -0
- package/dist/webcomponents/p-6454626a.entry.js +1 -0
- package/dist/webcomponents/p-66713269.entry.js +1 -0
- package/dist/webcomponents/p-679b36b5.entry.js +1 -0
- package/dist/webcomponents/{p-c9920e22.entry.js → p-725319f3.entry.js} +1 -1
- package/dist/webcomponents/p-74fea39c.entry.js +1 -0
- package/dist/webcomponents/p-77754a65.entry.js +1 -0
- package/dist/webcomponents/p-87988b4d.entry.js +1 -0
- package/dist/webcomponents/p-88a8741b.entry.js +1 -0
- package/dist/webcomponents/{p-c3a625ec.entry.js → p-897b794b.entry.js} +4 -4
- package/dist/webcomponents/p-899b981b.entry.js +1 -0
- package/dist/webcomponents/p-8c4b502d.entry.js +1 -0
- package/dist/webcomponents/p-8df30672.entry.js +1 -0
- package/dist/webcomponents/p-911b3d63.entry.js +1 -0
- package/dist/webcomponents/p-97b8bf5c.entry.js +1 -0
- package/dist/webcomponents/p-9b74a642.entry.js +1 -0
- package/dist/webcomponents/p-9b8aee30.entry.js +1 -0
- package/dist/webcomponents/p-9c1aa22d.entry.js +1 -0
- package/dist/webcomponents/p-9e94c9ef.entry.js +1 -0
- package/dist/webcomponents/{p-B69TWr1K.js → p-B4xdk4mG.js} +1 -1
- package/dist/webcomponents/{p-gcRtE71H.js → p-BMJe4lzg.js} +1 -1
- package/dist/webcomponents/p-BhqSAzpT.js +1 -0
- package/dist/webcomponents/p-BrRsgB8S.js +1 -0
- package/dist/webcomponents/{p-DUQxAYW4.js → p-C2Senazf.js} +1 -1
- package/dist/webcomponents/p-C9VmfRis.js +1 -0
- package/dist/webcomponents/{p-BDRSfgZJ.js → p-CBbwdoSa.js} +1 -1
- package/dist/webcomponents/{p-C0FpWzgU.js → p-CCxsFwC4.js} +1 -1
- package/dist/webcomponents/p-CK_XkZku.js +1 -0
- package/dist/webcomponents/p-CQGIjIgZ.js +1 -0
- package/dist/webcomponents/{p-Qmo430x1.js → p-CV8xqdt6.js} +1 -1
- package/dist/webcomponents/p-CZ3F1ZAT.js +1 -0
- package/dist/webcomponents/p-CgiDds_u.js +1 -0
- package/dist/webcomponents/p-CsRppqXL.js +1 -0
- package/dist/webcomponents/p-CsgUIrv8.js +1 -0
- package/dist/webcomponents/{p-BIzMmHpn.js → p-D6bKoyRc.js} +1 -1
- package/dist/webcomponents/{p-E8uzhk39.js → p-DATDsXcA.js} +1 -1
- package/dist/webcomponents/{p-H_emngUs.js → p-DGGjRqDa.js} +1 -1
- package/dist/webcomponents/{p-MFnmyvti.js → p-DISrhs4v.js} +1 -1
- package/dist/webcomponents/{p-CJ4viNrp.js → p-DUmUUj9r.js} +1 -1
- package/dist/webcomponents/p-DY_3dcgR.js +1 -0
- package/dist/webcomponents/{p-DircQtPA.js → p-Dit3fZpU.js} +1 -1
- package/dist/webcomponents/p-DkoufM1t.js +1 -0
- package/dist/webcomponents/{p-DcHTywGe.js → p-Dlrq1iZf.js} +1 -1
- package/dist/webcomponents/p-DmdEjScI.js +1 -0
- package/dist/webcomponents/p-RTAZ4tdd.js +1 -0
- package/dist/webcomponents/p-Ty7R7tsw.js +1 -0
- package/dist/webcomponents/{p-CYz0Hubu.js → p-U3nU15el.js} +1 -1
- package/dist/webcomponents/{p-CjfgyxBN.js → p-VRubcA-q.js} +1 -1
- package/dist/webcomponents/{p-KS3Bf_2D.js → p-W9WWoLzT.js} +1 -1
- package/dist/webcomponents/p-a0b4c42b.entry.js +1 -0
- package/dist/webcomponents/p-aa145996.entry.js +1 -0
- package/dist/webcomponents/p-b0f0d53c.entry.js +1 -0
- package/dist/webcomponents/p-b2a0cbad.entry.js +1 -0
- package/dist/webcomponents/p-b5b49e86.entry.js +1 -0
- package/dist/webcomponents/p-c0bd4e9a.entry.js +1 -0
- package/dist/webcomponents/p-c4585b68.entry.js +1 -0
- package/dist/webcomponents/p-c920dc54.entry.js +1 -0
- package/dist/webcomponents/{p-b31bf32a.entry.js → p-cdf1e61c.entry.js} +1 -1
- package/dist/webcomponents/{p-d79f9a54.entry.js → p-d0c4b0ea.entry.js} +1 -1
- package/dist/webcomponents/p-d2981754.entry.js +1 -0
- package/dist/webcomponents/p-d9cdd873.entry.js +1 -0
- package/dist/webcomponents/{p-dd0c456f.entry.js → p-e4335938.entry.js} +1 -1
- package/dist/webcomponents/{p-c8bd7e0d.entry.js → p-e805b011.entry.js} +1 -1
- package/dist/webcomponents/p-eada0422.entry.js +1 -0
- package/dist/webcomponents/p-ef04f334.entry.js +1 -0
- package/dist/webcomponents/p-f23428da.entry.js +1 -0
- package/dist/webcomponents/p-f30c939f.entry.js +1 -0
- package/dist/webcomponents/p-f5dd3fa4.entry.js +1 -0
- package/dist/webcomponents/{p-50308873.entry.js → p-f99403d8.entry.js} +1 -1
- package/dist/webcomponents/p-fb644da6.entry.js +1 -0
- package/dist/webcomponents/p-fc4b27ec.entry.js +1 -0
- package/dist/webcomponents/p-fc8f55d7.entry.js +1 -0
- package/dist/webcomponents/p-fe43449c.entry.js +1 -0
- package/dist/webcomponents/p-fe73b09b.entry.js +1 -0
- package/dist/webcomponents/p-ff5981fb.entry.js +1 -0
- package/dist/webcomponents/p-sA8HBfkI.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/checkout.store-BA6h-dp2.js +0 -107
- package/dist/esm/checkout.store-CaS_htQd.js +0 -101
- package/dist/webcomponents/p-0867547d.entry.js +0 -1
- package/dist/webcomponents/p-091d6a7e.entry.js +0 -1
- package/dist/webcomponents/p-0d4bea62.entry.js +0 -1
- package/dist/webcomponents/p-1634262a.entry.js +0 -1
- package/dist/webcomponents/p-1a4d0ad6.entry.js +0 -1
- package/dist/webcomponents/p-25e3cb85.entry.js +0 -1
- package/dist/webcomponents/p-278988e8.entry.js +0 -1
- package/dist/webcomponents/p-3b5a9e94.entry.js +0 -1
- package/dist/webcomponents/p-44efe4ca.entry.js +0 -1
- package/dist/webcomponents/p-49a0ef9d.entry.js +0 -1
- package/dist/webcomponents/p-4bff1285.entry.js +0 -1
- package/dist/webcomponents/p-4d87be74.entry.js +0 -1
- package/dist/webcomponents/p-51107c8f.entry.js +0 -1
- package/dist/webcomponents/p-51d7b9f7.entry.js +0 -1
- package/dist/webcomponents/p-5c60ba00.entry.js +0 -1
- package/dist/webcomponents/p-5d56a293.entry.js +0 -1
- package/dist/webcomponents/p-654d91d7.entry.js +0 -1
- package/dist/webcomponents/p-68c2ce90.entry.js +0 -1
- package/dist/webcomponents/p-69b0be17.entry.js +0 -1
- package/dist/webcomponents/p-6e99cd4c.entry.js +0 -1
- package/dist/webcomponents/p-7e4bfba1.entry.js +0 -1
- package/dist/webcomponents/p-87d23cf8.entry.js +0 -1
- package/dist/webcomponents/p-9065f077.entry.js +0 -1
- package/dist/webcomponents/p-908f6b79.entry.js +0 -1
- package/dist/webcomponents/p-93d98b07.entry.js +0 -1
- package/dist/webcomponents/p-94b2d6a1.entry.js +0 -1
- package/dist/webcomponents/p-980db13b.entry.js +0 -1
- package/dist/webcomponents/p-B10U2_Sw.js +0 -1
- package/dist/webcomponents/p-BqXh8qSb.js +0 -1
- package/dist/webcomponents/p-CA9okQxT.js +0 -1
- package/dist/webcomponents/p-CMTxbXEr.js +0 -1
- package/dist/webcomponents/p-CdVle3mx.js +0 -1
- package/dist/webcomponents/p-CiMKKjGV.js +0 -1
- package/dist/webcomponents/p-CjxyejYl.js +0 -1
- package/dist/webcomponents/p-CpP3EZBK.js +0 -1
- package/dist/webcomponents/p-DCIW8z1f.js +0 -1
- package/dist/webcomponents/p-DQKNMVh7.js +0 -1
- package/dist/webcomponents/p-DU8dqq9U.js +0 -1
- package/dist/webcomponents/p-Dp2W4Eq3.js +0 -1
- package/dist/webcomponents/p-GenVH2BR.js +0 -1
- package/dist/webcomponents/p-InCWAej0.js +0 -1
- package/dist/webcomponents/p-QmGrQis7.js +0 -1
- package/dist/webcomponents/p-VodztElu.js +0 -1
- package/dist/webcomponents/p-a4a647bd.entry.js +0 -1
- package/dist/webcomponents/p-abcbfb22.entry.js +0 -1
- package/dist/webcomponents/p-af29e819.entry.js +0 -1
- package/dist/webcomponents/p-b6286d7b.entry.js +0 -1
- package/dist/webcomponents/p-b8c816fe.entry.js +0 -1
- package/dist/webcomponents/p-bcec4201.entry.js +0 -1
- package/dist/webcomponents/p-c6ee5aa7.entry.js +0 -1
- package/dist/webcomponents/p-c900ccca.entry.js +0 -1
- package/dist/webcomponents/p-ca3733e5.entry.js +0 -1
- package/dist/webcomponents/p-cb61af93.entry.js +0 -1
- package/dist/webcomponents/p-d29ce58e.entry.js +0 -1
- package/dist/webcomponents/p-d34f5a20.entry.js +0 -1
- package/dist/webcomponents/p-d8ec7cfc.entry.js +0 -1
- package/dist/webcomponents/p-dda50611.entry.js +0 -1
- package/dist/webcomponents/p-df7e2530.entry.js +0 -1
- package/dist/webcomponents/p-e4a43e31.entry.js +0 -1
- package/dist/webcomponents/p-ea75759b.entry.js +0 -1
- package/dist/webcomponents/p-edcb6de1.entry.js +0 -1
- package/dist/webcomponents/p-faaba66d.entry.js +0 -1
- package/dist/webcomponents/p-fc680b08.entry.js +0 -1
- package/dist/webcomponents/p-fcaaed23.entry.js +0 -1
- package/dist/webcomponents/p-fefc4dea.entry.js +0 -1
- package/dist/webcomponents/p-ff1bc3de.entry.js +0 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { c as checkoutStore } from './checkout.store.js';
|
|
2
|
+
|
|
3
|
+
var GooglePayButtonType;
|
|
4
|
+
(function (GooglePayButtonType) {
|
|
5
|
+
GooglePayButtonType["PLAIN"] = "plain";
|
|
6
|
+
GooglePayButtonType["BUY"] = "buy";
|
|
7
|
+
GooglePayButtonType["BOOK"] = "book";
|
|
8
|
+
GooglePayButtonType["CHECKOUT"] = "checkout";
|
|
9
|
+
GooglePayButtonType["DONATE"] = "donate";
|
|
10
|
+
GooglePayButtonType["ORDER"] = "order";
|
|
11
|
+
GooglePayButtonType["PAY"] = "pay";
|
|
12
|
+
GooglePayButtonType["SUBSCRIBE"] = "subscribe";
|
|
13
|
+
})(GooglePayButtonType || (GooglePayButtonType = {}));
|
|
14
|
+
var GooglePayButtonStyle;
|
|
15
|
+
(function (GooglePayButtonStyle) {
|
|
16
|
+
GooglePayButtonStyle["BLACK"] = "black";
|
|
17
|
+
GooglePayButtonStyle["WHITE"] = "white";
|
|
18
|
+
})(GooglePayButtonStyle || (GooglePayButtonStyle = {}));
|
|
19
|
+
var GooglePayButtonSizeMode;
|
|
20
|
+
(function (GooglePayButtonSizeMode) {
|
|
21
|
+
GooglePayButtonSizeMode["STATIC"] = "static";
|
|
22
|
+
GooglePayButtonSizeMode["FILL"] = "fill";
|
|
23
|
+
})(GooglePayButtonSizeMode || (GooglePayButtonSizeMode = {}));
|
|
24
|
+
var GooglePayEnvironment;
|
|
25
|
+
(function (GooglePayEnvironment) {
|
|
26
|
+
GooglePayEnvironment["PRODUCTION"] = "PRODUCTION";
|
|
27
|
+
GooglePayEnvironment["TEST"] = "TEST";
|
|
28
|
+
})(GooglePayEnvironment || (GooglePayEnvironment = {}));
|
|
29
|
+
class GooglePayConfig {
|
|
30
|
+
constructor(data) {
|
|
31
|
+
this.environment = data.environment;
|
|
32
|
+
this.merchantId = data.merchantId;
|
|
33
|
+
this.merchantName = data.merchantName;
|
|
34
|
+
this.buttonType = data.buttonType || GooglePayButtonType.PLAIN;
|
|
35
|
+
this.buttonStyle = data.buttonStyle || GooglePayButtonStyle.BLACK;
|
|
36
|
+
this.buttonSizeMode = data.buttonSizeMode || GooglePayButtonSizeMode.STATIC;
|
|
37
|
+
this.buttonLocale = data.buttonLocale || 'en';
|
|
38
|
+
}
|
|
39
|
+
get isValid() {
|
|
40
|
+
return !!(this.environment && this.merchantName);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
class GooglePayPaymentDataRequest {
|
|
44
|
+
constructor(data) {
|
|
45
|
+
this.apiVersion = data.apiVersion;
|
|
46
|
+
this.apiVersionMinor = data.apiVersionMinor;
|
|
47
|
+
this.allowedPaymentMethods = data.allowedPaymentMethods;
|
|
48
|
+
this.transactionInfo = data.transactionInfo;
|
|
49
|
+
this.merchantInfo = data.merchantInfo;
|
|
50
|
+
this.callbackIntents = data.callbackIntents;
|
|
51
|
+
this.shippingAddressRequired = data.shippingAddressRequired;
|
|
52
|
+
this.shippingAddressParameters = data.shippingAddressParameters;
|
|
53
|
+
this.emailRequired = data.emailRequired;
|
|
54
|
+
}
|
|
55
|
+
get isValid() {
|
|
56
|
+
var _a, _b, _c, _d;
|
|
57
|
+
const hasApiVersion = typeof this.apiVersion === 'number' && this.apiVersion > 0;
|
|
58
|
+
const hasApiVersionMinor = typeof this.apiVersionMinor === 'number' && this.apiVersionMinor >= 0;
|
|
59
|
+
const hasAllowedMethods = Array.isArray(this.allowedPaymentMethods) &&
|
|
60
|
+
this.allowedPaymentMethods.length > 0;
|
|
61
|
+
const hasTxnCountry = Boolean((_a = this.transactionInfo) === null || _a === void 0 ? void 0 : _a.countryCode);
|
|
62
|
+
const hasTxnCurrency = Boolean((_b = this.transactionInfo) === null || _b === void 0 ? void 0 : _b.currencyCode);
|
|
63
|
+
const hasTxnTotal = Boolean((_c = this.transactionInfo) === null || _c === void 0 ? void 0 : _c.totalPrice);
|
|
64
|
+
const hasMerchantName = Boolean((_d = this.merchantInfo) === null || _d === void 0 ? void 0 : _d.merchantName);
|
|
65
|
+
return (hasApiVersion &&
|
|
66
|
+
hasApiVersionMinor &&
|
|
67
|
+
hasAllowedMethods &&
|
|
68
|
+
hasTxnCountry &&
|
|
69
|
+
hasTxnCurrency &&
|
|
70
|
+
hasTxnTotal &&
|
|
71
|
+
hasMerchantName);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
class GooglePayHelpers {
|
|
75
|
+
/**
|
|
76
|
+
* Check if Google Pay is supported in the current environment
|
|
77
|
+
*/
|
|
78
|
+
static isGooglePaySupported() {
|
|
79
|
+
return (typeof window !== 'undefined' &&
|
|
80
|
+
'google' in window &&
|
|
81
|
+
'payments' in window.google &&
|
|
82
|
+
'api' in window.google.payments);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Create a Google Pay client instance
|
|
86
|
+
*/
|
|
87
|
+
static createGooglePayClient(environment) {
|
|
88
|
+
if (!this.isGooglePaySupported()) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
try {
|
|
92
|
+
return new window.google.payments.api.PaymentsClient({
|
|
93
|
+
environment: environment === GooglePayEnvironment.PRODUCTION
|
|
94
|
+
? 'PRODUCTION'
|
|
95
|
+
: 'TEST',
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
catch (_error) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Format amount for Google Pay (expects string in full currency units)
|
|
104
|
+
*/
|
|
105
|
+
static formatAmount(amount) {
|
|
106
|
+
return (amount / 100).toFixed(2);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Parse amount from Google Pay format to cents
|
|
110
|
+
*/
|
|
111
|
+
static parseAmount(amount) {
|
|
112
|
+
return Math.round(parseFloat(amount) * 100);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Create a line item for Google Pay
|
|
116
|
+
*/
|
|
117
|
+
static createLineItem(label, amount, type = 'LINE_ITEM') {
|
|
118
|
+
return {
|
|
119
|
+
label,
|
|
120
|
+
price: this.formatAmount(amount),
|
|
121
|
+
type,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Get default supported card networks
|
|
126
|
+
*/
|
|
127
|
+
static getDefaultSupportedNetworks() {
|
|
128
|
+
return ['VISA', 'MASTERCARD', 'AMEX', 'DISCOVER'];
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Get default allowed authentication methods
|
|
132
|
+
*/
|
|
133
|
+
static getDefaultAuthMethods() {
|
|
134
|
+
return ['CRYPTOGRAM_3DS', 'PAN_ONLY'];
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Create default card parameters
|
|
138
|
+
*/
|
|
139
|
+
static createDefaultCardParameters() {
|
|
140
|
+
return {
|
|
141
|
+
allowedAuthMethods: this.getDefaultAuthMethods(),
|
|
142
|
+
allowedCardNetworks: this.getDefaultSupportedNetworks(),
|
|
143
|
+
billingAddressRequired: false,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Create default tokenization specification
|
|
148
|
+
*/
|
|
149
|
+
static createTokenizationSpecification() {
|
|
150
|
+
return {
|
|
151
|
+
type: 'PAYMENT_GATEWAY',
|
|
152
|
+
parameters: {
|
|
153
|
+
gateway: 'justifi',
|
|
154
|
+
gatewayMerchantId: checkoutStore.accountId,
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Create default payment method data
|
|
160
|
+
*/
|
|
161
|
+
static createPaymentMethodData() {
|
|
162
|
+
return {
|
|
163
|
+
type: 'CARD',
|
|
164
|
+
parameters: this.createDefaultCardParameters(),
|
|
165
|
+
tokenizationSpecification: this.createTokenizationSpecification(),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Create base payment data request check
|
|
170
|
+
*/
|
|
171
|
+
static createBasePaymentDataRequest() {
|
|
172
|
+
const base = {
|
|
173
|
+
apiVersion: 2,
|
|
174
|
+
apiVersionMinor: 0,
|
|
175
|
+
allowedPaymentMethods: [this.createPaymentMethodData()],
|
|
176
|
+
};
|
|
177
|
+
// For development and broader availability of the button, do not require an existing card
|
|
178
|
+
// This allows isReadyToPay to return true on supported browsers even without a saved payment method
|
|
179
|
+
base.existingPaymentMethodRequired = false;
|
|
180
|
+
return base;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export { GooglePayConfig as G, GooglePayHelpers as a, GooglePayPaymentDataRequest as b, GooglePayButtonSizeMode as c, GooglePayButtonStyle as d, GooglePayButtonType as e, GooglePayEnvironment as f };
|
|
@@ -3,6 +3,7 @@ var PAYMENT_MODE;
|
|
|
3
3
|
PAYMENT_MODE["ECOM"] = "ecom";
|
|
4
4
|
PAYMENT_MODE["BNPL"] = "bnpl";
|
|
5
5
|
PAYMENT_MODE["APPLE_PAY"] = "apple_pay";
|
|
6
|
+
PAYMENT_MODE["GOOGLE_PAY"] = "google_pay";
|
|
6
7
|
})(PAYMENT_MODE || (PAYMENT_MODE = {}));
|
|
7
8
|
// Maps the backend payment method types to the frontend payment method types
|
|
8
9
|
var PAYMENT_METHOD_TYPES;
|
|
@@ -41,7 +41,7 @@ const AdditionalStatement = /*@__PURE__*/ proxyCustomElement(class AdditionalSta
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
var _a, _b;
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: 'd943c5a732c4ece78a9d3894b1395bfe9fde13eb' }, h("div", { key: '918d1e3ef1259396d177e41d10998cbd9d69c060', class: "row gy-3" }, h("div", { key: 'bfab1580c07005da4046884acd07858478ed9e29', class: "col-12" }, h("h2", { key: '9d82008f712ce05f35a42bc169f581ec5e38d9ea', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '28b192ee15fc788ef9923e366b46e0d1458f5061', class: "col-12" }, h("form-control-textarea", { key: '799b740724230fc5fd7ed7e19d8f7069416eed10', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: '0e1f293bd196f45faaa495f310be6c72ce101e0e', class: "col-12" }, h("form-control-file-v2", { key: '02ae90e06226350272bb49d1cb0d753f641c6801', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
|
|
45
45
|
}
|
|
46
46
|
}, [256, "justifi-additional-statement", {
|
|
47
47
|
"disputeResponse": [8, "dispute-response"],
|
package/dist/module/apple-pay.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
2
|
import { A as Api } from './Api.js';
|
|
3
|
+
import { A as ApplePayConfig, a as ApplePayHelpers, b as ApplePayPaymentRequest, c as ApplePaySessionStatus, d as ApplePayButtonStyle, e as ApplePayButtonType, f as ApplePayMerchantCapability } from './ApplePay.js';
|
|
3
4
|
import { S as StyledHost } from './styled-host.js';
|
|
4
5
|
import './details.js';
|
|
5
6
|
import './event-types.js';
|
|
@@ -7,126 +8,6 @@ import './justifi-radio-list-item2.js';
|
|
|
7
8
|
import { S as Skeleton } from './skeleton.js';
|
|
8
9
|
import { c as checkoutStore } from './checkout.store.js';
|
|
9
10
|
|
|
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
11
|
// Centralized error codes for Apple Pay service
|
|
131
12
|
var ApplePayServiceErrorCode;
|
|
132
13
|
(function (ApplePayServiceErrorCode) {
|
|
@@ -44,7 +44,7 @@ const BankAccountBillingFormSimple = /*@__PURE__*/ proxyCustomElement(class Bank
|
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
47
|
-
return (h(StyledHost, { key: '
|
|
47
|
+
return (h(StyledHost, { key: '1ae1df080e0cfac0795b758708fd8cfcd091ca10' }, h("div", { key: 'c13939d9ef3f56ae00e79fcf4c2c5e4e3775874a', part: billingForm, class: "mt-4" }, h("form", { key: '37affeab4ec3904a1095f868da1a767227f11e6d' }, h("fieldset", { key: 'f12df105d8a3196bcbc89bf78f253b6abb0b3cba' }, this.legend && (h("legend", { key: '876c0303cf1e2c1475b7f076a184da6b43a9dbff' }, this.legend)), h("div", { key: 'a0362a2eaea2c6cc263fced7fa44c89440b45aad', class: "row gy-3" }, h("div", { key: 'b79686ee1276d27199d7c6d6419a89eb0a9345ee', class: "col-12" }, h("form-control-text", { key: 'cbebd20b9418db67ea3e7ea08eec5e405df9d524', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler }))))))));
|
|
48
48
|
}
|
|
49
49
|
}, [257, "justifi-bank-account-billing-form-simple", {
|
|
50
50
|
"legend": [1025],
|
|
@@ -4,6 +4,8 @@ import './dinero.js';
|
|
|
4
4
|
import { E as EntityDocumentType } from './Refund.js';
|
|
5
5
|
import './Pagination.js';
|
|
6
6
|
import './Business.js';
|
|
7
|
+
import './ApplePay.js';
|
|
8
|
+
import './GooglePay.js';
|
|
7
9
|
import { d as defineCustomElement$3 } from './custom-popper2.js';
|
|
8
10
|
import { d as defineCustomElement$2 } from './form-control-file2.js';
|
|
9
11
|
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
@@ -47,10 +47,10 @@ const BankAccountForm$1 = /*@__PURE__*/ proxyCustomElement(class BankAccountForm
|
|
|
47
47
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '32cfa049dff176af26d2a4bcb86c440a99bc8668' }, h(BankAccountFormSkeleton, { key: '8382fc8ff7726e245245db06b01fdc253d43328e', isReady: this.isReady }), h("div", { key: '83f16d13bb8c338dd859a60a7bd63edbb8f703b6', class: "container-fluid p-0", style: {
|
|
51
51
|
opacity: this.isReady ? '1' : '0',
|
|
52
52
|
height: this.isReady ? 'auto' : '0',
|
|
53
|
-
} }, h("div", { key: '
|
|
53
|
+
} }, h("div", { key: 'ff5a4020f51e917874583036ef3b50d9496a393e', class: "row mb-3" }, h("iframe-input", { key: '334cd1bbdb23cb1d4ae5df1f89737913209fd1c1', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: '65a00ea0fe1202240a2641b40d5f0455483746ff', class: "row" }, h("iframe-input", { key: 'c8dda20444c7f6494fad1377cc556676e1d7dc54', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
54
54
|
}
|
|
55
55
|
}, [256, "bank-account-form", {
|
|
56
56
|
"isReady": [32],
|
|
@@ -58,10 +58,10 @@ const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm e
|
|
|
58
58
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h(StyledHost, { key: '
|
|
61
|
+
return (h(StyledHost, { key: '0daa12da1ca699a05ca499425c4a37e4d913b2dd' }, h(BankAccountFormSkeleton, { key: '9d4ee0af94759d71d52130781401d322fcb5e397', isReady: this.isReady }), h("hidden-input", { key: 'dc4ee0054cbc7acb214a1c410f8fd387677f92dc' }), h("div", { key: 'b489311f205e0ffdaa4680621b706322bd3fc4ca', class: "container-fluid p-0", style: {
|
|
62
62
|
opacity: this.isReady ? '1' : '0',
|
|
63
63
|
height: this.isReady ? 'auto' : '0',
|
|
64
|
-
} }, h("div", { key: '
|
|
64
|
+
} }, h("div", { key: '2d1b00b9705d1a94364f691d4ad705c339abbbce', class: "row mb-3" }, h("iframe-input", { key: '21a66eb7d87b77c1ff1a1171a4cb84a4759853dd', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '1ff36d49f7304e203cdefea46010100ed750ed68', class: "row" }, h("iframe-input", { key: '2211a638c875e504e7e25e0704788d7a437b5806', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
65
65
|
}
|
|
66
66
|
}, [257, "justifi-bank-account-form", {
|
|
67
67
|
"iframeOrigin": [32],
|
|
@@ -4,6 +4,8 @@ import './dinero.js';
|
|
|
4
4
|
import { E as EntityDocumentType, h as EntityDocumentStorage, i as EntityDocument, a as ComponentErrorSeverity, C as ComponentErrorCodes } from './Refund.js';
|
|
5
5
|
import './Pagination.js';
|
|
6
6
|
import { a as CountryCode } from './Business.js';
|
|
7
|
+
import './ApplePay.js';
|
|
8
|
+
import './GooglePay.js';
|
|
7
9
|
import { m as makeGetBusiness, e as makePostBankAccount, f as makePostDocumentRecord } from './payment-provisioning-actions.js';
|
|
8
10
|
import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService } from './business.service.js';
|
|
9
11
|
import { c as create$3, a as create$6, d as create$8, F as FormController } from './form.js';
|
|
@@ -4,6 +4,8 @@ import { A as Api } from './Api.js';
|
|
|
4
4
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './Refund.js';
|
|
5
5
|
import './Pagination.js';
|
|
6
6
|
import './Business.js';
|
|
7
|
+
import './ApplePay.js';
|
|
8
|
+
import './GooglePay.js';
|
|
7
9
|
import { h as heading2 } from './parts.js';
|
|
8
10
|
import { B as BusinessFormStep } from './event-types2.js';
|
|
9
11
|
import { d as defineCustomElement$1 } from './form-control-checkbox2.js';
|
|
@@ -41,7 +41,7 @@ const CancellationPolicy = /*@__PURE__*/ proxyCustomElement(class CancellationPo
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
var _a, _b, _c;
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '24d9db9409e2bc6147e73b70b103c86d9c65580d' }, h("div", { key: 'a724a9f96b0cc7f6a38fab82b572962b72ffbf9b', class: "row gy-3" }, h("div", { key: 'ba734334efd7a7fbc7adcc2c8bcb73f80278a413', class: "col-12" }, h("h2", { key: 'f57de791ca5b8f6752ce06460ba813f89f8145f5', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '86946aa4b4b2615864c3e6053e661564f4eb5658', class: "col-12" }, h("form-control-textarea", { key: '0f996bfd0a1b64effef21418a7813a12f1ad5fcd', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: 'd46ca79368e4bc1f13e406d0fece0be4b8e33950', class: "col-12" }, h("form-control-textarea", { key: '0d7991cf878e645b80b8aa8b03533dc758d267a9', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: 'aa89c58ba7263fe7419908fd4964874645b26c3e', class: "col-12" }, h("form-control-file-v2", { key: '7e6020a57b0d804c20e0b2c092bf512912679eb9', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
|
|
45
45
|
}
|
|
46
46
|
}, [256, "justifi-cancellation-policy", {
|
|
47
47
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -44,7 +44,7 @@ const CardBillingFormSimple = /*@__PURE__*/ proxyCustomElement(class CardBilling
|
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
47
|
-
return (h(StyledHost, { key: '
|
|
47
|
+
return (h(StyledHost, { key: '1191dac498a26eaa1e553d041185d73a6c83976d' }, h("div", { key: 'bb767072391ecb9f8de3d7312e146892ae75196a', part: billingForm }, h("form", { key: '34994f535186cab1d75a3eec57f0ff449d726507' }, h("fieldset", { key: '5425df6533360185d0e8428bfcf4b9896c32f7c9' }, this.legend && (h("legend", { key: 'db130af085d0e4dfc04ac35b8425111faf67a5b9' }, this.legend)), h("div", { key: 'deef3521156e148936d3c502e5b7de49efa55e7b', class: "row gy-3" }, h("div", { key: 'a520ae53525cc81dfa0c9cd26d3d983fa870f722', class: "col-12" }, h("form-control-text", { key: '27613ef0fe2a2647bf24598da29871cde0af7e55', name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 7 }))))))));
|
|
48
48
|
}
|
|
49
49
|
}, [257, "justifi-card-billing-form-simple", {
|
|
50
50
|
"legend": [1025],
|
package/dist/module/card-form.js
CHANGED
|
@@ -51,10 +51,10 @@ const CardForm$1 = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLE
|
|
|
51
51
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '171cb8db5cce1778ef5f590c6b4d72f327c37bad' }, h(CardFormSkeleton, { key: '084ed0d409f1e747a95578060626d1704fefb783', isReady: this.isReady }), h("div", { key: 'ccf225f0f420a22cc1cffb1d7f9dc51fe92612ee', class: "container-fluid p-0", style: {
|
|
55
55
|
opacity: this.isReady ? '1' : '0',
|
|
56
56
|
height: this.isReady ? 'auto' : '0',
|
|
57
|
-
} }, h("div", { key: '
|
|
57
|
+
} }, h("div", { key: '7e7599c24e95a364f1011ed8f8ba2e387f4bc184', class: "mb-3" }, h("iframe-input", { key: '5ec2f426a232a8c1387e7e54f7321672e16a230c', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: 'bbf1284e4bd2213cf48eb64b88c5ecd5492c51e5', class: "d-flex align-items-start" }, h("div", { key: '70bf0e98c9c99913773ebcd5b6b9e88679779d6f', class: "flex-fill me-3" }, h("iframe-input", { key: 'b0ed2bbe9a63b83810fa170350cc28e777bc0509', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: '4d6592dc2f6dea2d2d4ddb8667681576817e6c98', class: "flex-fill me-3" }, h("iframe-input", { key: '34dabee2355d51ca1175af9a084188a6d44714df', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: 'c3afab4dea5e93edca3a0372d397afd8ef937de1', class: "flex-fill" }, h("iframe-input", { key: '0777691de3a8e12338a9c9b967ce3f20f675c6b3', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
58
58
|
}
|
|
59
59
|
}, [256, "card-form", {
|
|
60
60
|
"isReady": [32],
|
|
@@ -62,10 +62,10 @@ const JustifiCardForm = /*@__PURE__*/ proxyCustomElement(class JustifiCardForm e
|
|
|
62
62
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (h(StyledHost, { key: '
|
|
65
|
+
return (h(StyledHost, { key: 'b0b07a928be767102b59ec93ab0df6296b8418af' }, h(CardFormSkeleton, { key: '03d37e42253a905ece1e6a9b1d654e84665470d6', isReady: this.isReady }), h("hidden-input", { key: '62f657a6c0a4d5b7a7bbf809abeb42eba0d22345' }), h("div", { key: '874cac5eac376c8c4e12d99f760cd3cd487a6521', class: "container-fluid p-0", style: {
|
|
66
66
|
opacity: this.isReady ? '1' : '0',
|
|
67
67
|
height: this.isReady ? 'auto' : '0',
|
|
68
|
-
} }, h("div", { key: '
|
|
68
|
+
} }, h("div", { key: 'dcada2d72eebe506fe4cab8ad6eb959c551e9e2d', class: "mb-3" }, h("iframe-input", { key: '7e784726f8dd0c8b35832646bc99e0d2131c08f9', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: '2384099f3aa18b7d6bbc346f47ba9ff06e5b7e86', class: "row" }, h("div", { key: '5fb523cd3f398894e5c7ee3e8a58d34581492410', class: "col-4 align-content-end" }, h("iframe-input", { key: 'a3b4aa06a5c85162d24e25a5261a9a2cc64a6b82', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '3ccd6a19fce1c393a8c58534113239c518d51a4f', class: "col-4 align-content-end" }, h("iframe-input", { key: '6d064b868c73b4431b476194602843b0f28729e0', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: '26cd762bec43890e96ab5c6903943b0f4cfa9672', class: "col-4 align-content-end" }, h("iframe-input", { key: '826dfe08347461bc5a94296b181826b70a7d1f6f', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
69
69
|
}
|
|
70
70
|
}, [257, "justifi-card-form", {
|
|
71
71
|
"isReady": [32],
|
|
@@ -9,6 +9,7 @@ const initialState = {
|
|
|
9
9
|
},
|
|
10
10
|
bnplEnabled: false,
|
|
11
11
|
applePayEnabled: false,
|
|
12
|
+
googlePayEnabled: false,
|
|
12
13
|
insuranceEnabled: false,
|
|
13
14
|
bnplProviderApiVersion: '',
|
|
14
15
|
bnplProviderCheckoutUrl: '',
|
|
@@ -66,6 +67,9 @@ function getAvailablePaymentMethodTypes() {
|
|
|
66
67
|
if (checkoutStore.applePayEnabled) {
|
|
67
68
|
methods.push(PAYMENT_METHODS.APPLE_PAY);
|
|
68
69
|
}
|
|
70
|
+
if (checkoutStore.googlePayEnabled) {
|
|
71
|
+
methods.push(PAYMENT_METHODS.GOOGLE_PAY);
|
|
72
|
+
}
|
|
69
73
|
if (checkoutStore.bankAccountVerification === true &&
|
|
70
74
|
!checkoutStore.disableBankAccount) {
|
|
71
75
|
methods.push(PAYMENT_METHODS.PLAID);
|
|
@@ -4,13 +4,15 @@ import './dinero.js';
|
|
|
4
4
|
import './Refund.js';
|
|
5
5
|
import { p as pagingDefaults } from './Pagination.js';
|
|
6
6
|
import './Business.js';
|
|
7
|
+
import './ApplePay.js';
|
|
8
|
+
import './GooglePay.js';
|
|
7
9
|
import './details.js';
|
|
8
10
|
import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table.js';
|
|
9
11
|
import { T as TableClickActions } from './event-types.js';
|
|
10
12
|
import './justifi-radio-list-item2.js';
|
|
11
13
|
import { a as formatDate, b as formatTime } from './utils2.js';
|
|
12
14
|
import { B as Badge, a as BadgeVariant } from './badge.js';
|
|
13
|
-
import { w as tableHeadCell,
|
|
15
|
+
import { w as tableHeadCell, ac as getAlternateTableCellPart } from './parts.js';
|
|
14
16
|
import { o as onQueryParamsChange, g as getRequestParams } from './checkouts-list-params-state.js';
|
|
15
17
|
import { d as defineCustomElement$1 } from './pagination-menu2.js';
|
|
16
18
|
|
|
@@ -178,7 +180,7 @@ const CheckoutsListCore = /*@__PURE__*/ proxyCustomElement(class CheckoutsListCo
|
|
|
178
180
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
179
181
|
}
|
|
180
182
|
render() {
|
|
181
|
-
return (h(TableWrapper, { key: '
|
|
183
|
+
return (h(TableWrapper, { key: '408d4e9eab54491ce0cb775815c3e00eeb4854a3' }, h(TableComponent, { key: '52d68b140748feb5b20b01e9056a4f013dc6a4f2' }, h(TableHead, { key: '74d2ed3ab8629f60e5d789d160495dbdfa1d0109' }, h(TableHeadRow, { key: '216c56f85e307b622b682810973ec8fe05156173' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: 'c94508c4337cd1381a9caf8ade4f677ef2d62fe3' }, h(TableLoadingState, { key: '2d62155279ca151f77f33321c27c0d68822b1c15', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '4c4d9c73989dabd4213cfc994e74ce0873741de8', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '423a58df4dfa9e6b52fc41dd8d6f06c8d7cca16c', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'd1fbfca88fc702a4c0fae40586c946e3f75220af' }, h(TableFootRow, { key: '9d9c7862bc4d27d70a030d27cb735cb3654ea373' }, h(TableFootCell, { key: '53538be1d8eaf7b66b98476771f1f6d9552ab72d', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '2336a06ecf1eb14719881306ee878105d4b43926', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
182
184
|
}
|
|
183
185
|
static get watchers() { return {
|
|
184
186
|
"pagingParams": ["updateOnPropChange"],
|
|
@@ -1875,7 +1875,7 @@ const CustomPopper = /*@__PURE__*/ proxyCustomElement(class CustomPopper extends
|
|
|
1875
1875
|
this.hideEvent.emit();
|
|
1876
1876
|
}
|
|
1877
1877
|
render() {
|
|
1878
|
-
return (h("div", { key: '
|
|
1878
|
+
return (h("div", { key: 'c3ff01a53b15d4678dcbd58e97606885a510a880' }, h("style", { key: 'f239956643a0f5463303992aa2466e37988a124d' }, `
|
|
1879
1879
|
.popper-content {
|
|
1880
1880
|
display: none;
|
|
1881
1881
|
}
|
|
@@ -1883,7 +1883,7 @@ const CustomPopper = /*@__PURE__*/ proxyCustomElement(class CustomPopper extends
|
|
|
1883
1883
|
display: block;
|
|
1884
1884
|
z-index: 1030;
|
|
1885
1885
|
}
|
|
1886
|
-
`), h("div", { key: '
|
|
1886
|
+
`), h("div", { key: '7b710736c1ffe73559ef53d9f1525c22785cde2e', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '116be40554b590b382ea7002f5c442d010059b48' }))));
|
|
1887
1887
|
}
|
|
1888
1888
|
}, [260, "custom-popper", {
|
|
1889
1889
|
"placement": [1],
|
|
@@ -43,7 +43,7 @@ const CustomerDetails = /*@__PURE__*/ proxyCustomElement(class CustomerDetails e
|
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
45
|
var _a, _b, _c, _d, _e;
|
|
46
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: 'b348b17f0b320a540b0496f04572ba1360f4fd15' }, h("div", { key: '376750fbcd6da41a602d6ad5b4a2130dbcce17dc', class: "row gy-3" }, h("div", { key: '2f6134bbd055fdb8afa495e29370a3528b5d8701', class: "col-12" }, h("h2", { key: '7e29aa97b070479bc6df91fe2bd4416a3a2210dd', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '7f44155fab6f6387fa768af1225c10a63fc3587b', class: "col-12" }, h("form-control-text", { key: '6c38a71cdcf231729d9db144a3936130dc0e0b4d', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: '06c883df8dfa58535c32bcb43e6649537ff0b91c', class: "col-12" }, h("form-control-text", { key: 'eb424a6d80d90d19e7be31323de3ad41ede47c09', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: 'a7ba05dfc72dabeeb690daff6e9f692488172d15', class: "col-12" }, h("form-control-textarea", { key: '9b47c924dfdd8065d6e456210a2cdaac30376f9b', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: '37ba310fdd33ffb1fc41a168fb31c4f21a49b568', class: "col-12" }, h("form-control-file-v2", { key: 'e54b14ab429073482f68f8ba259e797be4c41a0f', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: '9084a731a58784355bc543759d6bf50bd6001c52', class: "col-12" }, h("form-control-file-v2", { key: 'bfb40202ff50523583ad8bcc7dc96740495de312', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
|
|
47
47
|
}
|
|
48
48
|
}, [256, "justifi-customer-details", {
|
|
49
49
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -70,7 +70,7 @@ const DisputeManagementCore = /*@__PURE__*/ proxyCustomElement(class DisputeMana
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (h("div", { key: '
|
|
73
|
+
return (h("div", { key: '6374c478bc8907019b48e1a53b0ecb2e171ab2e4' }, this.showDisputeResponseForm ? (h("justifi-dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (h("justifi-dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading }))));
|
|
74
74
|
}
|
|
75
75
|
static get watchers() { return {
|
|
76
76
|
"getDispute": ["updateOnPropChange"]
|