@justifi/webcomponents 6.14.5 → 6.15.0-rc.2
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/{Analytics-BVHauOC2.js → Analytics-COhunq0p.js} +3 -3
- package/dist/cjs/{Api-BzB0rppJ.js → Api-Do6SaltY.js} +1 -1
- package/dist/cjs/{Plaid-B2o4c_Ej.js → Plaid-D85oV9FN.js} +5 -0
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +7 -7
- package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/bank-account-form.cjs.entry.js +5 -5
- package/dist/cjs/{business.service-j_VDzA2-.js → business.service-72YETCdB.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +5 -5
- package/dist/cjs/{check-pkg-version-JMiLuNXu.js → check-pkg-version-BxGoSXGD.js} +1 -1
- package/dist/cjs/{checkout-actions-VCJi-q4z.js → checkout-actions-BRQFQ6n-.js} +2 -2
- package/dist/cjs/{checkout.service-0vHtBDZY.js → checkout.service-CPsXfx0Z.js} +2 -2
- package/dist/cjs/{checkout.store-DOa1-SjA.js → checkout.store-DaV9lvEQ.js} +6 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/dispute-notification_2.cjs.entry.js +10 -10
- package/dist/cjs/{event-types-CMpeGHw8.js → event-types-UHzCC7Ga.js} +2 -2
- package/dist/cjs/form-address-fields_3.cjs.entry.js +2 -2
- package/dist/cjs/form-alert_3.cjs.entry.js +5 -5
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-file.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-business-BBDsPv-b.js → get-business-BpaRbn5S.js} +2 -2
- package/dist/cjs/{get-payment-details-BYZeUFAB.js → get-payment-details-Cmg8gWvo.js} +2 -2
- package/dist/cjs/{get-subaccounts-B7e8Eovg.js → get-subaccounts-Bp7DOmM_.js} +3 -3
- package/dist/cjs/{index-CajjbB9t.js → index-DDa1jd08.js} +4 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/{justifi-apple-pay_11.cjs.entry.js → justifi-apple-pay_12.cjs.entry.js} +314 -26
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +8 -8
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-details.cjs.entry.js +16 -16
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +8 -8
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +8 -8
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -8
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +9 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DfdMLmz7.js → package-G3Vs7Jx5.js} +1 -1
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-actions-CIsDrh8k.js → payment-provisioning-actions-DDooZhhk.js} +2 -2
- package/dist/cjs/{payment.service-Bs3HJ4Kv.js → payment.service-CVwTrHEL.js} +2 -2
- package/dist/cjs/{payout.service-DNWZxt3R.js → payout.service-CL3VR0hN.js} +2 -2
- package/dist/cjs/{payouts-status-DVU5138C.js → payouts-status-1IUtW-UQ.js} +2 -2
- package/dist/cjs/{plaid.service-B_YQGBoC.js → plaid.service-Cukg5wuY.js} +2 -2
- package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
- package/dist/cjs/save-new-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-CvFZEemr.js → terminal.service-C0KG7BqL.js} +2 -2
- package/dist/cjs/{utils-WrOn06xB.js → utils-CBriZzRC.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Checkout.js +5 -0
- package/dist/collection/api/Paypal.js +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/services/paypal.service.js +9 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
- package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/justifi-checkout.js +1 -1
- package/dist/collection/components/checkout/justifi-saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +3 -3
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +2 -2
- 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.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/dispute-management/justifi-dispute-management.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/modular-checkout/ModularCheckout.js +4 -0
- package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +75 -11
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +278 -0
- package/dist/collection/components/modular-checkout/sub-components/paypal/paypal.js +17 -0
- package/dist/collection/components/order-terminals/justifi-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/justifi-payment-details.js +8 -8
- package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
- package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
- package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +2 -2
- package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
- package/dist/collection/store/checkout.store.js +5 -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/internal-button.js +1 -1
- package/dist/collection/ui-components/radio-list-item.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +115 -3
- package/dist/esm/{Analytics-Dgz_MQ1D.js → Analytics-3WmRTICF.js} +3 -3
- package/dist/esm/{Api-DScockhO.js → Api-83B3f28Q.js} +1 -1
- package/dist/esm/{Plaid-DJ-4YL0_.js → Plaid-BP3xNxQF.js} +5 -0
- package/dist/esm/additional-questions-form-step_15.entry.js +7 -7
- package/dist/esm/additional-statement_8.entry.js +8 -8
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
- package/dist/esm/bank-account-document-form-inputs.entry.js +1 -1
- package/dist/esm/bank-account-form.entry.js +5 -5
- package/dist/esm/{business.service-DR2ldRqG.js → business.service-CTqiKKy5.js} +2 -2
- package/dist/esm/card-form.entry.js +5 -5
- package/dist/esm/{check-pkg-version-CPMg0K2m.js → check-pkg-version-CmFl6VLH.js} +1 -1
- package/dist/esm/{checkout-actions-DhL8YxrK.js → checkout-actions-0ftD0elo.js} +2 -2
- package/dist/esm/{checkout.service-CU4BnB34.js → checkout.service-wjFjBxIB.js} +2 -2
- package/dist/esm/{checkout.store-B6amfNq_.js → checkout.store-B2mtQcB5.js} +6 -1
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/dispute-notification_2.entry.js +10 -10
- package/dist/esm/{event-types-BNfdthYa.js → event-types-cqQHLwCy.js} +2 -2
- package/dist/esm/form-address-fields_3.entry.js +2 -2
- package/dist/esm/form-alert_3.entry.js +5 -5
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/form-control-file.entry.js +2 -2
- package/dist/esm/form-control-monetary.entry.js +2 -2
- package/dist/esm/form-control-number_2.entry.js +2 -2
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +4 -4
- package/dist/esm/{get-business-BSyOONF0.js → get-business-BLCT-zfN.js} +2 -2
- package/dist/esm/{get-payment-details-CoGzqJ6o.js → get-payment-details-BokzuPGl.js} +2 -2
- package/dist/esm/{get-subaccounts-BraeNX17.js → get-subaccounts-ClGG-LRZ.js} +3 -3
- package/dist/esm/{index-DkoufM1t.js → index-DEx8fQeW.js} +4 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal-button.entry.js +1 -1
- package/dist/esm/{justifi-apple-pay_11.entry.js → justifi-apple-pay_12.entry.js} +314 -27
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +6 -6
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-billing-form.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +8 -8
- package/dist/esm/justifi-business-form.entry.js +8 -8
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +6 -6
- package/dist/esm/justifi-checkout-qr-code.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +8 -8
- package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list.entry.js +10 -10
- package/dist/esm/justifi-dispute-management.entry.js +8 -8
- package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
- package/dist/esm/justifi-order-terminals.entry.js +10 -10
- package/dist/esm/justifi-payment-details.entry.js +16 -16
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
- package/dist/esm/justifi-payment-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +8 -8
- package/dist/esm/justifi-payout-details.entry.js +11 -11
- package/dist/esm/justifi-payout-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +10 -10
- package/dist/esm/justifi-qr-terminal.entry.js +8 -8
- package/dist/esm/justifi-refund-payment.entry.js +8 -8
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -8
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminal-orders-list.entry.js +8 -8
- package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CiypNylL.js → package-CAVi_ne1.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment-provisioning-actions-DJKGndr3.js → payment-provisioning-actions-VRIPjnAQ.js} +2 -2
- package/dist/esm/{payment.service-BxBf9T-D.js → payment.service-D7uv5vym.js} +2 -2
- package/dist/esm/{payout.service-DKe3_O4y.js → payout.service-BoSyqft1.js} +2 -2
- package/dist/esm/{payouts-status-C0nijel1.js → payouts-status-CaiC5qpn.js} +2 -2
- package/dist/esm/{plaid.service-DwWljJOH.js → plaid.service-DufQkxDk.js} +2 -2
- package/dist/esm/radio-list-item.entry.js +1 -1
- package/dist/esm/save-new-payment-method.entry.js +3 -3
- package/dist/esm/table-filters-menu.entry.js +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-Q4KXLOka.js → terminal.service-BM2aebB6.js} +2 -2
- package/dist/esm/{utils-D6LKoG0M.js → utils-YUOJKtjO.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/ModularCheckout.js +4 -0
- package/dist/module/Plaid.js +5 -0
- package/dist/module/additional-statement2.js +1 -1
- package/dist/module/bank-account-billing-form-simple2.js +1 -1
- package/dist/module/cancellation-policy2.js +1 -1
- package/dist/module/card-billing-form-simple2.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +5 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details2.js +1 -1
- package/dist/module/dispute-notification2.js +2 -2
- package/dist/module/dispute-response2.js +1 -1
- package/dist/module/duplicate-charge2.js +1 -1
- package/dist/module/electronic-evidence2.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-number2.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/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-button2.js +1 -1
- package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-billing-form-full.js +1 -1
- package/dist/module/justifi-billing-form.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-card-billing-form-simple.js +1 -1
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout-summary2.js +1 -1
- package/dist/module/justifi-checkout.js +53 -47
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-modular-checkout2.js +75 -11
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-details.js +8 -8
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-details.js +3 -3
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-paypal.d.ts +11 -0
- package/dist/module/justifi-paypal.js +6 -0
- package/dist/module/justifi-paypal2.js +254 -0
- package/dist/module/justifi-save-new-payment-method.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- 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 +2 -2
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/justifi-tokenize-payment-method2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/product-or-service2.js +1 -1
- package/dist/module/radio-list-item2.js +1 -1
- package/dist/module/refund-policy2.js +1 -1
- package/dist/module/save-new-payment-method2.js +1 -1
- package/dist/module/shipping-details2.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/types/api/Checkout.d.ts +13 -1
- package/dist/types/api/Paypal.d.ts +11 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/services/paypal.service.d.ts +8 -0
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +6 -2
- package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +7 -0
- package/dist/types/components/modular-checkout/sub-components/paypal/justifi-paypal.d.ts +43 -0
- package/dist/types/components/modular-checkout/sub-components/paypal/paypal.d.ts +39 -0
- package/dist/types/components.d.ts +53 -0
- package/dist/types/store/checkout.store.d.ts +2 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/{p-49e40ebe.entry.js → p-0aa96018.entry.js} +1 -1
- package/dist/webcomponents/p-0fbc806f.entry.js +1 -0
- package/dist/webcomponents/p-10787684.entry.js +1 -0
- package/dist/webcomponents/{p-bc435cae.entry.js → p-1365a46b.entry.js} +1 -1
- package/dist/webcomponents/p-1fa62eba.entry.js +1 -0
- package/dist/webcomponents/p-25f70d5f.entry.js +1 -0
- package/dist/webcomponents/{p-BlqdDtQr.js → p-27igUlku.js} +1 -1
- package/dist/webcomponents/{p-4f54d1b2.entry.js → p-28fb6b50.entry.js} +1 -1
- package/dist/webcomponents/{p-f0083ace.entry.js → p-2b5533a1.entry.js} +1 -1
- package/dist/webcomponents/{p-da21ae43.entry.js → p-36340e63.entry.js} +1 -1
- package/dist/webcomponents/p-3642e189.entry.js +1 -0
- package/dist/webcomponents/p-388082cd.entry.js +1 -0
- package/dist/webcomponents/p-3f2fb856.entry.js +1 -0
- package/dist/webcomponents/{p-041a22dd.entry.js → p-42021e67.entry.js} +1 -1
- package/dist/webcomponents/{p-0d9022e5.entry.js → p-4cad48c1.entry.js} +1 -1
- package/dist/webcomponents/{p-373586db.entry.js → p-50c2b8f0.entry.js} +1 -1
- package/dist/webcomponents/p-5842d4e8.entry.js +1 -0
- package/dist/webcomponents/{p-e7909732.entry.js → p-5c89dcdf.entry.js} +1 -1
- package/dist/webcomponents/p-5d7b3d71.entry.js +1 -0
- package/dist/webcomponents/p-5dcb1713.entry.js +1 -0
- package/dist/webcomponents/p-5f8c30b6.entry.js +1 -0
- package/dist/webcomponents/p-68e88747.entry.js +1 -0
- package/dist/webcomponents/p-6931a1f2.entry.js +1 -0
- package/dist/webcomponents/{p-f8f01bbb.entry.js → p-6c94218c.entry.js} +1 -1
- package/dist/webcomponents/{p-e954f46c.entry.js → p-6eb65d23.entry.js} +1 -1
- package/dist/webcomponents/{p-027ef7e9.entry.js → p-7002286e.entry.js} +1 -1
- package/dist/webcomponents/{p-d6122124.entry.js → p-72bb4aff.entry.js} +1 -1
- package/dist/webcomponents/p-74575a99.entry.js +1 -0
- package/dist/webcomponents/p-777470cb.entry.js +1 -0
- package/dist/webcomponents/p-7c405573.entry.js +1 -0
- package/dist/webcomponents/p-825a7ee6.entry.js +1 -0
- package/dist/webcomponents/p-8d11aa27.entry.js +1 -0
- package/dist/webcomponents/{p-3870712e.entry.js → p-909a9828.entry.js} +4 -4
- package/dist/webcomponents/p-955c06d3.entry.js +1 -0
- package/dist/webcomponents/{p-2139497d.entry.js → p-97c6593d.entry.js} +1 -1
- package/dist/webcomponents/p-9e3e2e32.entry.js +1 -0
- package/dist/webcomponents/{p-29f68bd0.entry.js → p-9e9a2546.entry.js} +1 -1
- package/dist/webcomponents/{p-cb977890.entry.js → p-9f0ef3f3.entry.js} +1 -1
- package/dist/webcomponents/{p-DD9-ceDZ.js → p-B0DHIvEj.js} +1 -1
- package/dist/webcomponents/{p-BL112JyU.js → p-BAKuMxC9.js} +1 -1
- package/dist/webcomponents/{p-DcA_wt-j.js → p-BEL8sLz6.js} +1 -1
- package/dist/webcomponents/{p-H4vl65HO.js → p-BSxXlu9H.js} +1 -1
- package/dist/webcomponents/p-CAVi_ne1.js +1 -0
- package/dist/webcomponents/{p-rIJv0FaI.js → p-CIpBEUtx.js} +1 -1
- package/dist/webcomponents/{p-CnHbIkmu.js → p-CJEetAx7.js} +1 -1
- package/dist/webcomponents/p-CLq3Og7o.js +1 -0
- package/dist/webcomponents/p-CXsRwohv.js +1 -0
- package/dist/webcomponents/p-Cy2N3vAg.js +1 -0
- package/dist/webcomponents/p-CyOXIqHo.js +1 -0
- package/dist/webcomponents/p-D6uhYbLo.js +1 -0
- package/dist/webcomponents/p-DEx8fQeW.js +1 -0
- package/dist/webcomponents/p-DN7VhlTn.js +1 -0
- package/dist/webcomponents/{p-Co3Rtlnu.js → p-DZQBPUfH.js} +1 -1
- package/dist/webcomponents/p-D_84NsmN.js +1 -0
- package/dist/webcomponents/p-Fpaf7CLD.js +1 -0
- package/dist/webcomponents/{p-CnDagPty.js → p-PdwJswAy.js} +1 -1
- package/dist/webcomponents/p-acb0b66c.entry.js +1 -0
- package/dist/webcomponents/p-b23dfa13.entry.js +1 -0
- package/dist/webcomponents/{p-b17fabdc.entry.js → p-b98ea26a.entry.js} +1 -1
- package/dist/webcomponents/{p-6884fa3d.entry.js → p-c3818a5a.entry.js} +1 -1
- package/dist/webcomponents/{p-61eae8cd.entry.js → p-c4889a06.entry.js} +1 -1
- package/dist/webcomponents/{p-b9316945.entry.js → p-c5424fda.entry.js} +1 -1
- package/dist/webcomponents/p-ca13117d.entry.js +1 -0
- package/dist/webcomponents/p-ca6c5365.entry.js +1 -0
- package/dist/webcomponents/{p-f6b900f4.entry.js → p-cb1cc88e.entry.js} +1 -1
- package/dist/webcomponents/{p-387aba3d.entry.js → p-ced6f6f1.entry.js} +1 -1
- package/dist/webcomponents/{p-c5560a87.entry.js → p-d59676ea.entry.js} +1 -1
- package/dist/webcomponents/p-d98bc829.entry.js +1 -0
- package/dist/webcomponents/{p-b9b5d046.entry.js → p-e55216fb.entry.js} +1 -1
- package/dist/webcomponents/{p-cb5d2198.entry.js → p-ead48010.entry.js} +1 -1
- package/dist/webcomponents/p-eb31024f.entry.js +1 -0
- package/dist/webcomponents/{p-543fcff2.entry.js → p-ee7fe3a8.entry.js} +1 -1
- package/dist/webcomponents/p-f0434a13.entry.js +1 -0
- package/dist/webcomponents/{p-c14dde7c.entry.js → p-f3682c72.entry.js} +1 -1
- package/dist/webcomponents/{p-537ea763.entry.js → p-f5358a80.entry.js} +1 -1
- package/dist/webcomponents/{p-b945fa49.entry.js → p-f9f0cb1f.entry.js} +1 -1
- package/dist/webcomponents/p-fda6f27d.entry.js +1 -0
- package/dist/webcomponents/p-fdd087d4.entry.js +1 -0
- package/dist/webcomponents/{p-C8g8unYJ.js → p-nbKvRcwU.js} +1 -1
- package/dist/webcomponents/{p-WnMmPpEb.js → p-vIQBTQmc.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +15 -15
- package/LICENSE +0 -21
- package/dist/webcomponents/p-04153e8c.entry.js +0 -1
- package/dist/webcomponents/p-0464be7b.entry.js +0 -1
- package/dist/webcomponents/p-0c1cc1e9.entry.js +0 -1
- package/dist/webcomponents/p-0fe976d6.entry.js +0 -1
- package/dist/webcomponents/p-15934f30.entry.js +0 -1
- package/dist/webcomponents/p-2128265d.entry.js +0 -1
- package/dist/webcomponents/p-21a5c3d8.entry.js +0 -1
- package/dist/webcomponents/p-25d24964.entry.js +0 -1
- package/dist/webcomponents/p-3086ee7a.entry.js +0 -1
- package/dist/webcomponents/p-36d7033b.entry.js +0 -1
- package/dist/webcomponents/p-3ef039ec.entry.js +0 -1
- package/dist/webcomponents/p-49f279c3.entry.js +0 -1
- package/dist/webcomponents/p-4d60d249.entry.js +0 -1
- package/dist/webcomponents/p-51714ea9.entry.js +0 -1
- package/dist/webcomponents/p-558677a7.entry.js +0 -1
- package/dist/webcomponents/p-568b81a2.entry.js +0 -1
- package/dist/webcomponents/p-6f34fa90.entry.js +0 -1
- package/dist/webcomponents/p-8fO8CrtQ.js +0 -1
- package/dist/webcomponents/p-9b758a11.entry.js +0 -1
- package/dist/webcomponents/p-9c506058.entry.js +0 -1
- package/dist/webcomponents/p-BEOJqK7T.js +0 -1
- package/dist/webcomponents/p-C0w_sG9P.js +0 -1
- package/dist/webcomponents/p-CMvr3y5s.js +0 -1
- package/dist/webcomponents/p-CaLXuYmg.js +0 -1
- package/dist/webcomponents/p-CiypNylL.js +0 -1
- package/dist/webcomponents/p-D1H6VUbM.js +0 -1
- package/dist/webcomponents/p-DNxN6bjU.js +0 -1
- package/dist/webcomponents/p-DkoufM1t.js +0 -1
- package/dist/webcomponents/p-Dl0CAW76.js +0 -1
- package/dist/webcomponents/p-a14d3d7d.entry.js +0 -1
- package/dist/webcomponents/p-a47854b9.entry.js +0 -1
- package/dist/webcomponents/p-b8d46fc5.entry.js +0 -1
- package/dist/webcomponents/p-c0bd4006.entry.js +0 -1
- package/dist/webcomponents/p-c4799285.entry.js +0 -1
- package/dist/webcomponents/p-cc5a97a0.entry.js +0 -1
- package/dist/webcomponents/p-d57ae599.entry.js +0 -1
- package/dist/webcomponents/p-de8c6cd4.entry.js +0 -1
- package/dist/webcomponents/p-f6941969.entry.js +0 -1
- package/dist/webcomponents/p-f8cff289.entry.js +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var Api = require('./Api-
|
|
5
|
-
var Plaid = require('./Plaid-
|
|
4
|
+
var Api = require('./Api-Do6SaltY.js');
|
|
5
|
+
var Plaid = require('./Plaid-D85oV9FN.js');
|
|
6
6
|
var styledHost = require('./styled-host-CW1WUnUq.js');
|
|
7
7
|
require('./event-types-YOY5TKUN.js');
|
|
8
8
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
9
|
-
var checkout_store = require('./checkout.store-
|
|
9
|
+
var checkout_store = require('./checkout.store-DaV9lvEQ.js');
|
|
10
10
|
var parts = require('./parts-BXshb_S-.js');
|
|
11
11
|
var utils = require('./utils-DB4XHlAU.js');
|
|
12
12
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
13
13
|
var header1 = require('./header-1-CsBQoo1f.js');
|
|
14
14
|
var insuranceState = require('./insurance-state-CHQD1ZGw.js');
|
|
15
15
|
var header3 = require('./header-3-DCYJhPro.js');
|
|
16
|
-
var Analytics = require('./Analytics-
|
|
17
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
16
|
+
var Analytics = require('./Analytics-COhunq0p.js');
|
|
17
|
+
var checkPkgVersion = require('./check-pkg-version-BxGoSXGD.js');
|
|
18
18
|
require('./dinero-BwNN_k7x.js');
|
|
19
19
|
require('./Pagination-Dediz133.js');
|
|
20
20
|
require('./Business-oBifyXkW.js');
|
|
21
|
-
var checkoutActions = require('./checkout-actions-
|
|
22
|
-
var checkout_service = require('./checkout.service-
|
|
23
|
-
var plaid_service = require('./plaid.service-
|
|
24
|
-
var index$1 = require('./index-
|
|
21
|
+
var checkoutActions = require('./checkout-actions-BRQFQ6n-.js');
|
|
22
|
+
var checkout_service = require('./checkout.service-CPsXfx0Z.js');
|
|
23
|
+
var plaid_service = require('./plaid.service-Cukg5wuY.js');
|
|
24
|
+
var index$1 = require('./index-DDa1jd08.js');
|
|
25
25
|
var paymentMethodOptionUtils = require('./payment-method-option-utils-WYHIHy-l.js');
|
|
26
|
-
require('./package-
|
|
26
|
+
require('./package-G3Vs7Jx5.js');
|
|
27
27
|
require('./index-DDrfAj-j.js');
|
|
28
|
-
require('./utils-
|
|
28
|
+
require('./utils-CBriZzRC.js');
|
|
29
29
|
|
|
30
30
|
const JustifiRadioListItem = class {
|
|
31
31
|
constructor(hostRef) {
|
|
@@ -745,7 +745,7 @@ const JustifiButton = class {
|
|
|
745
745
|
this.type = 'button';
|
|
746
746
|
}
|
|
747
747
|
render() {
|
|
748
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
748
|
+
return (index.h(styledHost.StyledHost, { key: '1e09a302d064e2e4a860dc4efd9eb9693d4d0055' }, index.h("internal-button", { key: '9ce7819853789c44860de43f26632c62415ebdb5', text: this.text, variant: this.variant, isLoading: this.isLoading, clickHandler: this.clickHandler, type: this.type, disabled: this.disabled, class: this.class, customStyle: this.customStyle, hidden: this.hidden })));
|
|
749
749
|
}
|
|
750
750
|
};
|
|
751
751
|
|
|
@@ -754,7 +754,7 @@ const JustifiCheckoutSummary = class {
|
|
|
754
754
|
index.registerInstance(this, hostRef);
|
|
755
755
|
}
|
|
756
756
|
render() {
|
|
757
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
757
|
+
return (index.h(styledHost.StyledHost, { key: '7d3447ff4daa9bf4f603ca381027b3f43cfcc6a1' }, index.h("section", { key: '1c8189ccde6dc986ad2d4c74da2dd10cacfc1c36' }, index.h("div", { key: '45e6d5f47d8a92e0bd4a7bfa427630a96f049b4a' }, index.h("div", { key: '9900b5fd770cd59b00803c3614216c16a803da41', part: parts.text }, checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.paymentDescription), index.h("div", { key: '16cec140ef6912533a80b1f6341fcc9cb341b478' }, index.h("span", { key: 'f8883538c99a524017bb102bfd8cfaea7062e650', part: parts.text }, "Total"), "\u00A0", index.h("span", { key: '11baa64630a60c56cedfa53548c107ec3fe3c0f5', part: parts.text }, utils.formatCurrency(+(checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.totalAmount))))))));
|
|
758
758
|
}
|
|
759
759
|
};
|
|
760
760
|
|
|
@@ -913,7 +913,7 @@ const JustifiHeader = class {
|
|
|
913
913
|
}
|
|
914
914
|
render() {
|
|
915
915
|
const HeaderComponent = this.levels[this.level];
|
|
916
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
916
|
+
return (index.h(styledHost.StyledHost, { key: '1843adabddf7d439036f8ce6f55627b7ca3e4a9f' }, index.h(HeaderComponent, { key: 'b16e5624ce7e092cc8c144a7cdfd9cb6afdf7a83', text: this.text, class: this.class })));
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
919
|
|
|
@@ -924,6 +924,43 @@ const JustifiModularCheckout = class {
|
|
|
924
924
|
this.submitEvent = index.createEvent(this, "submit-event", 7);
|
|
925
925
|
this.checkoutChangedEvent = index.createEvent(this, "checkout-changed", 7);
|
|
926
926
|
this.plaidService = new plaid_service.PlaidService();
|
|
927
|
+
this.handlePaypalStarted = () => {
|
|
928
|
+
checkout_store.checkoutStore.isWalletProcessing = true;
|
|
929
|
+
};
|
|
930
|
+
this.handlePaypalCompleted = (event) => {
|
|
931
|
+
const { success, paymentMethodId, fundingSource } = event.detail || {};
|
|
932
|
+
checkout_store.checkoutStore.isWalletProcessing = false;
|
|
933
|
+
if (success && paymentMethodId) {
|
|
934
|
+
checkout_store.checkoutStore.paymentToken = paymentMethodId;
|
|
935
|
+
checkout_store.checkoutStore.selectedPaymentMethod = {
|
|
936
|
+
type: fundingSource === "venmo"
|
|
937
|
+
? index$1.PAYMENT_METHODS.VENMO
|
|
938
|
+
: index$1.PAYMENT_METHODS.PAYPAL,
|
|
939
|
+
};
|
|
940
|
+
this.submitCheckout();
|
|
941
|
+
}
|
|
942
|
+
else {
|
|
943
|
+
this.errorEvent.emit({
|
|
944
|
+
message: "Paypal payment failed",
|
|
945
|
+
errorCode: Plaid.ComponentErrorCodes.TOKENIZE_ERROR,
|
|
946
|
+
severity: Plaid.ComponentErrorSeverity.ERROR,
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
this.handlePaypalCancelled = () => {
|
|
951
|
+
checkout_store.checkoutStore.isWalletProcessing = false;
|
|
952
|
+
checkout_store.checkoutStore.paymentToken = undefined;
|
|
953
|
+
checkout_store.checkoutStore.selectedPaymentMethod = undefined;
|
|
954
|
+
};
|
|
955
|
+
this.handlePaypalError = (event) => {
|
|
956
|
+
checkout_store.checkoutStore.isWalletProcessing = false;
|
|
957
|
+
const { error, code } = event.detail || {};
|
|
958
|
+
this.errorEvent.emit({
|
|
959
|
+
message: error || "Paypal error occurred",
|
|
960
|
+
errorCode: `PAYPAL_${code}`,
|
|
961
|
+
severity: Plaid.ComponentErrorSeverity.ERROR,
|
|
962
|
+
});
|
|
963
|
+
};
|
|
927
964
|
this.handleApplePayStarted = () => {
|
|
928
965
|
checkout_store.checkoutStore.isWalletProcessing = true;
|
|
929
966
|
};
|
|
@@ -993,6 +1030,7 @@ const JustifiModularCheckout = class {
|
|
|
993
1030
|
this.queryFormRefs();
|
|
994
1031
|
this.setupApplePayListeners(); // set up again listeners when DOM changes
|
|
995
1032
|
this.setupGooglePayListeners();
|
|
1033
|
+
this.setupPaypalListeners();
|
|
996
1034
|
});
|
|
997
1035
|
this.observer.observe(this.hostEl, {
|
|
998
1036
|
childList: true,
|
|
@@ -1028,6 +1066,7 @@ const JustifiModularCheckout = class {
|
|
|
1028
1066
|
this.queryFormRefs();
|
|
1029
1067
|
this.setupApplePayListeners();
|
|
1030
1068
|
this.setupGooglePayListeners();
|
|
1069
|
+
this.setupPaypalListeners();
|
|
1031
1070
|
}
|
|
1032
1071
|
disconnectedCallback() {
|
|
1033
1072
|
var _a, _b;
|
|
@@ -1036,6 +1075,7 @@ const JustifiModularCheckout = class {
|
|
|
1036
1075
|
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
1037
1076
|
this.removeApplePayListeners();
|
|
1038
1077
|
this.removeGooglePayListeners();
|
|
1078
|
+
this.removePaypalListeners();
|
|
1039
1079
|
}
|
|
1040
1080
|
fetchCheckout() {
|
|
1041
1081
|
if (!this.authToken || !this.checkoutId) {
|
|
@@ -1078,9 +1118,8 @@ const JustifiModularCheckout = class {
|
|
|
1078
1118
|
}
|
|
1079
1119
|
}
|
|
1080
1120
|
updateStore(checkout) {
|
|
1081
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1121
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1082
1122
|
checkout_store.checkoutStore.accountId = checkout.account_id;
|
|
1083
|
-
checkout_store.checkoutStore.checkoutLoaded = true;
|
|
1084
1123
|
const rawMode = checkout.mode != null ? String(checkout.mode).toLowerCase() : '';
|
|
1085
1124
|
checkout_store.checkoutStore.checkoutMode =
|
|
1086
1125
|
rawMode === 'test' ? 'test' : rawMode === 'live' ? 'live' : null;
|
|
@@ -1092,16 +1131,20 @@ const JustifiModularCheckout = class {
|
|
|
1092
1131
|
checkout_store.checkoutStore.totalAmount = checkout.total_amount;
|
|
1093
1132
|
checkout_store.checkoutStore.paymentAmount = checkout.payment_amount;
|
|
1094
1133
|
checkout_store.checkoutStore.bnplEnabled = checkout.payment_settings.bnpl_payments;
|
|
1095
|
-
checkout_store.checkoutStore.insuranceEnabled = checkout.payment_settings.insurance_payments;
|
|
1096
|
-
checkout_store.checkoutStore.bankAccountVerification = (
|
|
1097
|
-
checkout_store.checkoutStore.applePayEnabled = (
|
|
1098
|
-
checkout_store.checkoutStore.googlePayEnabled = (
|
|
1134
|
+
checkout_store.checkoutStore.insuranceEnabled = (_b = checkout.payment_settings.insurance_payments) !== null && _b !== void 0 ? _b : false;
|
|
1135
|
+
checkout_store.checkoutStore.bankAccountVerification = (_c = checkout.payment_settings) === null || _c === void 0 ? void 0 : _c.bank_account_verification;
|
|
1136
|
+
checkout_store.checkoutStore.applePayEnabled = (_e = (_d = checkout.payment_settings) === null || _d === void 0 ? void 0 : _d.apple_payments) !== null && _e !== void 0 ? _e : false;
|
|
1137
|
+
checkout_store.checkoutStore.googlePayEnabled = (_g = (_f = checkout.payment_settings) === null || _f === void 0 ? void 0 : _f.google_payments) !== null && _g !== void 0 ? _g : false;
|
|
1138
|
+
checkout_store.checkoutStore.paypalEnabled = (_j = (_h = checkout.payment_settings) === null || _h === void 0 ? void 0 : _h.paypal_payments) !== null && _j !== void 0 ? _j : false;
|
|
1139
|
+
checkout_store.checkoutStore.paypalProviderClientId = (_l = (_k = checkout.paypal) === null || _k === void 0 ? void 0 : _k.provider_client_id) !== null && _l !== void 0 ? _l : '';
|
|
1099
1140
|
checkout_store.checkoutStore.achPaymentsEnabled = achEnabled;
|
|
1100
|
-
checkout_store.checkoutStore.bnplProviderClientId = (
|
|
1101
|
-
checkout_store.checkoutStore.bnplProviderMode = (
|
|
1102
|
-
checkout_store.checkoutStore.bnplProviderApiVersion = (
|
|
1141
|
+
checkout_store.checkoutStore.bnplProviderClientId = (_m = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _m === void 0 ? void 0 : _m.provider_client_id;
|
|
1142
|
+
checkout_store.checkoutStore.bnplProviderMode = (_o = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _o === void 0 ? void 0 : _o.provider_mode;
|
|
1143
|
+
checkout_store.checkoutStore.bnplProviderApiVersion = (_p = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _p === void 0 ? void 0 : _p.provider_api_version;
|
|
1103
1144
|
checkout_store.checkoutStore.bnplProviderCheckoutUrl =
|
|
1104
|
-
(
|
|
1145
|
+
(_q = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _q === void 0 ? void 0 : _q.provider_checkout_url;
|
|
1146
|
+
checkout_store.checkoutStore.paymentCurrency = (checkout.payment_currency || checkout_store.checkoutStore.paymentCurrency).toUpperCase();
|
|
1147
|
+
checkout_store.checkoutStore.checkoutLoaded = true;
|
|
1105
1148
|
}
|
|
1106
1149
|
emitCheckoutChanged() {
|
|
1107
1150
|
const detail = {
|
|
@@ -1115,6 +1158,7 @@ const JustifiModularCheckout = class {
|
|
|
1115
1158
|
this.billingFormRef = this.hostEl.querySelector("justifi-billing-form, justifi-bank-account-billing-form-simple, justifi-card-billing-form-simple, justifi-billing-form-full, justifi-tokenize-payment-method");
|
|
1116
1159
|
this.applePayRef = this.hostEl.querySelector("justifi-apple-pay");
|
|
1117
1160
|
this.googlePayRef = this.hostEl.querySelector("justifi-google-pay");
|
|
1161
|
+
this.paypalRef = this.hostEl.querySelector("justifi-paypal");
|
|
1118
1162
|
this.paymentMethodFormRef =
|
|
1119
1163
|
this.hostEl.querySelector('justifi-card-form, justifi-bank-account-form, justifi-tokenize-payment-method');
|
|
1120
1164
|
if (!checkout_store.checkoutStore.selectedPaymentMethod && this.paymentMethodFormRef) {
|
|
@@ -1159,6 +1203,22 @@ const JustifiModularCheckout = class {
|
|
|
1159
1203
|
this.googlePayRef.removeEventListener("googlePayCancelled", this.handleGooglePayCancelled);
|
|
1160
1204
|
}
|
|
1161
1205
|
}
|
|
1206
|
+
setupPaypalListeners() {
|
|
1207
|
+
if (this.paypalRef) {
|
|
1208
|
+
this.paypalRef.addEventListener("paypalStarted", this.handlePaypalStarted);
|
|
1209
|
+
this.paypalRef.addEventListener("paypalCompleted", this.handlePaypalCompleted);
|
|
1210
|
+
this.paypalRef.addEventListener("paypalCancelled", this.handlePaypalCancelled);
|
|
1211
|
+
this.paypalRef.addEventListener("paypalError", this.handlePaypalError);
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
removePaypalListeners() {
|
|
1215
|
+
if (this.paypalRef) {
|
|
1216
|
+
this.paypalRef.removeEventListener("paypalStarted", this.handlePaypalStarted);
|
|
1217
|
+
this.paypalRef.removeEventListener("paypalCompleted", this.handlePaypalCompleted);
|
|
1218
|
+
this.paypalRef.removeEventListener("paypalCancelled", this.handlePaypalCancelled);
|
|
1219
|
+
this.paypalRef.removeEventListener("paypalError", this.handlePaypalError);
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1162
1222
|
async tokenizePaymentMethod(tokenizeArgs) {
|
|
1163
1223
|
var _a, _b, _c;
|
|
1164
1224
|
const billingInfoValues = (_b = (await ((_a = this.billingFormRef) === null || _a === void 0 ? void 0 : _a.getValues()))) !== null && _b !== void 0 ? _b : {};
|
|
@@ -1342,6 +1402,10 @@ const JustifiModularCheckout = class {
|
|
|
1342
1402
|
return index$1.PAYMENT_MODE.APPLE_PAY;
|
|
1343
1403
|
case index$1.PAYMENT_METHODS.GOOGLE_PAY:
|
|
1344
1404
|
return index$1.PAYMENT_MODE.GOOGLE_PAY;
|
|
1405
|
+
case index$1.PAYMENT_METHODS.PAYPAL:
|
|
1406
|
+
return index$1.PAYMENT_MODE.PAYPAL;
|
|
1407
|
+
case index$1.PAYMENT_METHODS.VENMO:
|
|
1408
|
+
return index$1.PAYMENT_MODE.VENMO;
|
|
1345
1409
|
default:
|
|
1346
1410
|
return undefined;
|
|
1347
1411
|
}
|
|
@@ -1383,11 +1447,234 @@ const JustifiModularCheckout = class {
|
|
|
1383
1447
|
});
|
|
1384
1448
|
}
|
|
1385
1449
|
render() {
|
|
1386
|
-
return index.h(index.Host, { key: '
|
|
1450
|
+
return index.h(index.Host, { key: '127bf2aea6758c7d91e33f252a3db4bc27b066ff' });
|
|
1387
1451
|
}
|
|
1388
1452
|
get hostEl() { return index.getElement(this); }
|
|
1389
1453
|
};
|
|
1390
1454
|
|
|
1455
|
+
const api = Api.Api();
|
|
1456
|
+
class PaypalService {
|
|
1457
|
+
async createPaypalOrder(authToken, checkoutId, fundingSource, signal) {
|
|
1458
|
+
const endpoint = `checkouts/${checkoutId}/paypal/orders`;
|
|
1459
|
+
const body = { funding_source: fundingSource };
|
|
1460
|
+
return api.post({ endpoint, body, authToken, signal });
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
const PAYPAL_SANDBOX_SCRIPT_URL = 'https://www.sandbox.paypal.com/web-sdk/v6/core';
|
|
1465
|
+
const PAYPAL_PRODUCTION_SCRIPT_URL = 'https://www.paypal.com/web-sdk/v6/core';
|
|
1466
|
+
const PAYPAL_SCRIPT_DATA_TEST_ID = 'paypal-script';
|
|
1467
|
+
const PAYPAL_COMPONENTS = ['paypal-payments', 'venmo-payments'];
|
|
1468
|
+
const PAYPAL_PAGE_TYPE = 'checkout';
|
|
1469
|
+
const PAYPAL_DEFAULT_CURRENCY = 'USD';
|
|
1470
|
+
const PAYPAL_PRESENTATION_MODE = 'auto';
|
|
1471
|
+
/** Venmo only settles in USD, and the checkout payload carries no country. */
|
|
1472
|
+
const VENMO_SUPPORTED_CURRENCY = 'USD';
|
|
1473
|
+
/** `test` checkouts talk to PayPal's sandbox; everything else goes to production. */
|
|
1474
|
+
const paypalScriptUrl = (mode) => mode === 'test' ? PAYPAL_SANDBOX_SCRIPT_URL : PAYPAL_PRODUCTION_SCRIPT_URL;
|
|
1475
|
+
const PaypalErrorCode = {
|
|
1476
|
+
CONFIG_ERROR: 'CONFIG_ERROR',
|
|
1477
|
+
INITIALIZATION_ERROR: 'INITIALIZATION_ERROR',
|
|
1478
|
+
ORDER_ERROR: 'ORDER_ERROR',
|
|
1479
|
+
PAYMENT_FAILED: 'PAYMENT_FAILED',
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
const SHOWN_CLASS = 'shown';
|
|
1483
|
+
const setShown = (el, shown) => {
|
|
1484
|
+
if (!el)
|
|
1485
|
+
return;
|
|
1486
|
+
if (shown)
|
|
1487
|
+
el.classList.add(SHOWN_CLASS);
|
|
1488
|
+
else
|
|
1489
|
+
el.classList.remove(SHOWN_CLASS);
|
|
1490
|
+
};
|
|
1491
|
+
const JustifiPaypal = class {
|
|
1492
|
+
constructor(hostRef) {
|
|
1493
|
+
index.registerInstance(this, hostRef);
|
|
1494
|
+
this.paypalStarted = index.createEvent(this, "paypalStarted", 7);
|
|
1495
|
+
this.paypalCompleted = index.createEvent(this, "paypalCompleted", 7);
|
|
1496
|
+
this.paypalCancelled = index.createEvent(this, "paypalCancelled", 7);
|
|
1497
|
+
this.paypalError = index.createEvent(this, "paypalError", 7);
|
|
1498
|
+
this.paypalService = new PaypalService();
|
|
1499
|
+
this.paypalEligible = false;
|
|
1500
|
+
this.venmoEligible = false;
|
|
1501
|
+
this.startSession = async (session, fundingSource) => {
|
|
1502
|
+
if (!session)
|
|
1503
|
+
return;
|
|
1504
|
+
this.pendingOrderId = undefined;
|
|
1505
|
+
this.paypalStarted.emit({ fundingSource });
|
|
1506
|
+
let orderFailed = false;
|
|
1507
|
+
const order = this.createOrder(fundingSource)
|
|
1508
|
+
.then((created) => ({ orderId: created.provider_order_id }))
|
|
1509
|
+
.catch((error) => {
|
|
1510
|
+
orderFailed = true;
|
|
1511
|
+
this.emitError((error === null || error === void 0 ? void 0 : error.message) || 'Could not create the Paypal order', PaypalErrorCode.ORDER_ERROR);
|
|
1512
|
+
throw error;
|
|
1513
|
+
});
|
|
1514
|
+
// The SDK is what normally consumes this rejection; swallow a copy so a
|
|
1515
|
+
// failed order can never surface as an unhandled rejection.
|
|
1516
|
+
order.catch(() => undefined);
|
|
1517
|
+
try {
|
|
1518
|
+
await session.start({ presentationMode: PAYPAL_PRESENTATION_MODE }, order);
|
|
1519
|
+
}
|
|
1520
|
+
catch (error) {
|
|
1521
|
+
if (orderFailed)
|
|
1522
|
+
return;
|
|
1523
|
+
this.emitError((error === null || error === void 0 ? void 0 : error.message) || 'Paypal payment failed', PaypalErrorCode.PAYMENT_FAILED);
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1526
|
+
}
|
|
1527
|
+
componentDidLoad() {
|
|
1528
|
+
if (checkout_store.checkoutStore.checkoutLoaded) {
|
|
1529
|
+
this.initializePaypal();
|
|
1530
|
+
}
|
|
1531
|
+
else {
|
|
1532
|
+
checkout_store.onChange('checkoutLoaded', (loaded) => {
|
|
1533
|
+
if (loaded)
|
|
1534
|
+
this.initializePaypal();
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
componentDidRender() {
|
|
1539
|
+
this.applyVisibility();
|
|
1540
|
+
}
|
|
1541
|
+
get currencyCode() {
|
|
1542
|
+
return (checkout_store.checkoutStore.paymentCurrency || PAYPAL_DEFAULT_CURRENCY).toUpperCase();
|
|
1543
|
+
}
|
|
1544
|
+
get showPaypal() {
|
|
1545
|
+
return !!checkout_store.checkoutStore.paypalEnabled && this.paypalEligible;
|
|
1546
|
+
}
|
|
1547
|
+
get showVenmo() {
|
|
1548
|
+
return (!!checkout_store.checkoutStore.paypalEnabled &&
|
|
1549
|
+
this.venmoEligible &&
|
|
1550
|
+
this.currencyCode === VENMO_SUPPORTED_CURRENCY);
|
|
1551
|
+
}
|
|
1552
|
+
applyVisibility() {
|
|
1553
|
+
const { showPaypal, showVenmo } = this;
|
|
1554
|
+
setShown(this.buttonsEl, showPaypal || showVenmo);
|
|
1555
|
+
setShown(this.paypalButtonEl, showPaypal);
|
|
1556
|
+
setShown(this.venmoButtonEl, showVenmo);
|
|
1557
|
+
}
|
|
1558
|
+
emitError(error, code) {
|
|
1559
|
+
this.paypalError.emit({ error, code });
|
|
1560
|
+
}
|
|
1561
|
+
// The script tag is the dedup token, so a second instance (or a remount)
|
|
1562
|
+
// reuses the in-flight load instead of appending another SDK.
|
|
1563
|
+
loadPaypalScript() {
|
|
1564
|
+
const loaded = window.paypal;
|
|
1565
|
+
if (loaded)
|
|
1566
|
+
return Promise.resolve(loaded);
|
|
1567
|
+
return new Promise((resolve, reject) => {
|
|
1568
|
+
const selector = `script[data-test-id="${PAYPAL_SCRIPT_DATA_TEST_ID}"]`;
|
|
1569
|
+
let script = document.head.querySelector(selector);
|
|
1570
|
+
if (!script) {
|
|
1571
|
+
script = document.createElement('script');
|
|
1572
|
+
script.src = paypalScriptUrl(checkout_store.checkoutStore.checkoutMode);
|
|
1573
|
+
script.async = true;
|
|
1574
|
+
script.setAttribute('data-test-id', PAYPAL_SCRIPT_DATA_TEST_ID);
|
|
1575
|
+
document.head.appendChild(script);
|
|
1576
|
+
}
|
|
1577
|
+
script.addEventListener('load', () => {
|
|
1578
|
+
const paypal = window.paypal;
|
|
1579
|
+
if (paypal) {
|
|
1580
|
+
resolve(paypal);
|
|
1581
|
+
}
|
|
1582
|
+
else {
|
|
1583
|
+
reject(new Error('Paypal script loaded but window.paypal is undefined'));
|
|
1584
|
+
}
|
|
1585
|
+
});
|
|
1586
|
+
script.addEventListener('error', () => reject(new Error('Error loading Paypal script')));
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
metadataId() {
|
|
1590
|
+
return (Math.random().toString(36).substring(2, 15) +
|
|
1591
|
+
Math.random().toString(36).substring(2, 15));
|
|
1592
|
+
}
|
|
1593
|
+
async initializePaypal() {
|
|
1594
|
+
const clientId = checkout_store.checkoutStore.paypalProviderClientId;
|
|
1595
|
+
if (!clientId) {
|
|
1596
|
+
this.paypalEligible = false;
|
|
1597
|
+
this.venmoEligible = false;
|
|
1598
|
+
this.applyVisibility();
|
|
1599
|
+
this.emitError('Missing Paypal client id', PaypalErrorCode.CONFIG_ERROR);
|
|
1600
|
+
return;
|
|
1601
|
+
}
|
|
1602
|
+
try {
|
|
1603
|
+
const paypal = await this.loadPaypalScript();
|
|
1604
|
+
this.sdkInstance = await paypal.createInstance({
|
|
1605
|
+
clientId,
|
|
1606
|
+
components: PAYPAL_COMPONENTS,
|
|
1607
|
+
pageType: PAYPAL_PAGE_TYPE,
|
|
1608
|
+
metadataId: this.metadataId(),
|
|
1609
|
+
});
|
|
1610
|
+
const eligibleMethods = await this.sdkInstance.findEligibleMethods({
|
|
1611
|
+
currencyCode: this.currencyCode,
|
|
1612
|
+
});
|
|
1613
|
+
this.paypalEligible = eligibleMethods.isEligible('paypal');
|
|
1614
|
+
this.venmoEligible = eligibleMethods.isEligible('venmo');
|
|
1615
|
+
if (this.paypalEligible) {
|
|
1616
|
+
this.paypalSession = this.sdkInstance.createPayPalOneTimePaymentSession(this.sessionOptions('paypal'));
|
|
1617
|
+
}
|
|
1618
|
+
if (this.venmoEligible) {
|
|
1619
|
+
this.venmoSession = this.sdkInstance.createVenmoOneTimePaymentSession(this.sessionOptions('venmo'));
|
|
1620
|
+
}
|
|
1621
|
+
this.applyVisibility();
|
|
1622
|
+
}
|
|
1623
|
+
catch (error) {
|
|
1624
|
+
this.paypalEligible = false;
|
|
1625
|
+
this.venmoEligible = false;
|
|
1626
|
+
this.applyVisibility();
|
|
1627
|
+
this.emitError((error === null || error === void 0 ? void 0 : error.message) || 'Error initializing Paypal', PaypalErrorCode.INITIALIZATION_ERROR);
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
sessionOptions(fundingSource) {
|
|
1631
|
+
return {
|
|
1632
|
+
onApprove: () => this.paypalCompleted.emit({
|
|
1633
|
+
success: true,
|
|
1634
|
+
paymentMethodId: this.pendingOrderId,
|
|
1635
|
+
fundingSource,
|
|
1636
|
+
}),
|
|
1637
|
+
onCancel: () => this.paypalCancelled.emit({ fundingSource }),
|
|
1638
|
+
onError: (error) => this.emitError((error === null || error === void 0 ? void 0 : error.message) || 'Paypal payment failed', PaypalErrorCode.PAYMENT_FAILED),
|
|
1639
|
+
};
|
|
1640
|
+
}
|
|
1641
|
+
async createOrder(fundingSource) {
|
|
1642
|
+
const response = await this.paypalService.createPaypalOrder(checkout_store.checkoutStore.authToken, checkout_store.checkoutStore.checkoutId, fundingSource);
|
|
1643
|
+
if (response === null || response === void 0 ? void 0 : response.error) {
|
|
1644
|
+
const message = typeof response.error === 'string'
|
|
1645
|
+
? response.error
|
|
1646
|
+
: response.error.message;
|
|
1647
|
+
throw new Error(message || 'Could not create the Paypal order');
|
|
1648
|
+
}
|
|
1649
|
+
const order = response === null || response === void 0 ? void 0 : response.data;
|
|
1650
|
+
if (!(order === null || order === void 0 ? void 0 : order.provider_order_id)) {
|
|
1651
|
+
throw new Error('Paypal order is missing a provider order id');
|
|
1652
|
+
}
|
|
1653
|
+
this.pendingOrderId = order.id;
|
|
1654
|
+
return order;
|
|
1655
|
+
}
|
|
1656
|
+
render() {
|
|
1657
|
+
return (index.h(styledHost.StyledHost, { key: '05c771ae41d3b21da7046e70c7d0e03efc296a0c' }, index.h("div", { key: '8e7a14372ce29b4da284efadb43c27d0c059607e', class: "paypal-buttons", ref: (el) => (this.buttonsEl = el) }, index.h("paypal-button", { key: 'aa7fa82c96ca4d41872f445a01e72a18f6f5920a', type: "pay", ref: (el) => (this.paypalButtonEl = el), onClick: () => this.startSession(this.paypalSession, 'paypal') }), index.h("venmo-button", { key: '2cb068aa82460068548f133607cebec096028a41', type: "pay", ref: (el) => (this.venmoButtonEl = el), onClick: () => this.startSession(this.venmoSession, 'venmo') })), index.h("style", { key: '159cc68f682ed79a9a83be7d1b4c88127f8a2623' }, `
|
|
1658
|
+
.paypal-buttons {
|
|
1659
|
+
display: none;
|
|
1660
|
+
gap: 8px;
|
|
1661
|
+
width: 100%;
|
|
1662
|
+
}
|
|
1663
|
+
.paypal-buttons.shown {
|
|
1664
|
+
display: flex;
|
|
1665
|
+
}
|
|
1666
|
+
.paypal-buttons > * {
|
|
1667
|
+
display: none;
|
|
1668
|
+
flex: 1 1 0;
|
|
1669
|
+
min-width: 0;
|
|
1670
|
+
}
|
|
1671
|
+
.paypal-buttons > .shown {
|
|
1672
|
+
display: block;
|
|
1673
|
+
}
|
|
1674
|
+
`)));
|
|
1675
|
+
}
|
|
1676
|
+
};
|
|
1677
|
+
|
|
1391
1678
|
const plaidIconSvg = 'data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=';
|
|
1392
1679
|
|
|
1393
1680
|
const JustifiPlaidPaymentMethod = class {
|
|
@@ -2320,7 +2607,7 @@ const JustifiTokenizePaymentMethod = class {
|
|
|
2320
2607
|
} }));
|
|
2321
2608
|
}
|
|
2322
2609
|
render() {
|
|
2323
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
2610
|
+
return (index.h(styledHost.StyledHost, { key: '16a5a47febb09295c95f141ddc96a849e530c477' }, index.h("form", { key: 'e1ac3ac80435b32cb0a742198d814778bffd635c' }, index.h("fieldset", { key: '68d0f984d3e66a6abc794e8b2086e27f26ecc809' }, index.h("div", { key: 'b1759ec1b9c94a976da992947b06da6d8f48f553', class: "row gy-3" }, index.h("div", { key: 'bc1ef82406d3da36c5d4d97b1a10259de87fdd09', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), index.h("div", { key: 'ed26f2908aa90daba5ab320a668369566b9dacfa', class: "col-12" }, index.h("internal-button", { key: '094cdacb592825374ad33dd80a05091747bfec4b', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
2324
2611
|
}
|
|
2325
2612
|
get host() { return index.getElement(this); }
|
|
2326
2613
|
static get watchers() { return {
|
|
@@ -2335,6 +2622,7 @@ exports.justifi_checkout_summary = JustifiCheckoutSummary;
|
|
|
2335
2622
|
exports.justifi_google_pay = JustifiGooglePay;
|
|
2336
2623
|
exports.justifi_header = JustifiHeader;
|
|
2337
2624
|
exports.justifi_modular_checkout = JustifiModularCheckout;
|
|
2625
|
+
exports.justifi_paypal = JustifiPaypal;
|
|
2338
2626
|
exports.justifi_plaid_payment_method = JustifiPlaidPaymentMethod;
|
|
2339
2627
|
exports.justifi_radio_list_item = JustifiRadioListItem;
|
|
2340
2628
|
exports.justifi_saved_payment_methods = JustifiSavedPaymentMethods;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var Analytics = require('./Analytics-
|
|
5
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
4
|
+
var Analytics = require('./Analytics-COhunq0p.js');
|
|
5
|
+
var checkPkgVersion = require('./check-pkg-version-BxGoSXGD.js');
|
|
6
6
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
7
7
|
var styledHost = require('./styled-host-CW1WUnUq.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./package-
|
|
10
|
-
require('./Api-
|
|
9
|
+
require('./package-G3Vs7Jx5.js');
|
|
10
|
+
require('./Api-Do6SaltY.js');
|
|
11
11
|
require('./utils-DB4XHlAU.js');
|
|
12
12
|
require('./dinero-BwNN_k7x.js');
|
|
13
|
-
require('./Plaid-
|
|
13
|
+
require('./Plaid-D85oV9FN.js');
|
|
14
14
|
require('./Pagination-Dediz133.js');
|
|
15
15
|
require('./Business-oBifyXkW.js');
|
|
16
16
|
require('./index-DDrfAj-j.js');
|
|
@@ -37,7 +37,7 @@ const JustifiBankAccountBillingFormSimple = class {
|
|
|
37
37
|
return (_b = (_a = this.bankAccountBillingFormSimpleRef) === null || _a === void 0 ? void 0 : _a.validate()) !== null && _b !== void 0 ? _b : { isValid: false, errors: {} };
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
40
|
+
return (index.h(styledHost.StyledHost, { key: '9848071f08342d3f5c2f7001af6e15148e713495' }, index.h("bank-account-billing-form-simple", { key: '35f2baeb2f017116199ccff431d0acac01ad498f', legend: this.legend, ref: (el) => (this.bankAccountBillingFormSimpleRef = el) })));
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
5
|
-
var Analytics = require('./Analytics-
|
|
4
|
+
var checkPkgVersion = require('./check-pkg-version-BxGoSXGD.js');
|
|
5
|
+
var Analytics = require('./Analytics-COhunq0p.js');
|
|
6
6
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
7
7
|
var styledHost = require('./styled-host-CW1WUnUq.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./package-
|
|
10
|
-
require('./Api-
|
|
9
|
+
require('./package-G3Vs7Jx5.js');
|
|
10
|
+
require('./Api-Do6SaltY.js');
|
|
11
11
|
require('./utils-DB4XHlAU.js');
|
|
12
12
|
require('./dinero-BwNN_k7x.js');
|
|
13
|
-
require('./Plaid-
|
|
13
|
+
require('./Plaid-D85oV9FN.js');
|
|
14
14
|
require('./Pagination-Dediz133.js');
|
|
15
15
|
require('./Business-oBifyXkW.js');
|
|
16
16
|
require('./index-DDrfAj-j.js');
|
|
@@ -45,7 +45,7 @@ const JustifiBankAccountForm = class {
|
|
|
45
45
|
return this.bankAccountFormElement.tokenize({ clientId, paymentMethodMetadata, account });
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
48
|
+
return (index.h(styledHost.StyledHost, { key: '1263233d6c63c0df4a2a6a17b263651156ad6bee' }, index.h("bank-account-form", { key: 'f6c6707201ef127eafc81e12535bcfa37ddf3c5d', ref: (el) => (this.bankAccountFormElement = el) })));
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -17,7 +17,7 @@ const JustifiBillingFormFull = class {
|
|
|
17
17
|
return (_b = (_a = this.billingFormFullRef) === null || _a === void 0 ? void 0 : _a.validate()) !== null && _b !== void 0 ? _b : { isValid: false, errors: {} };
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
20
|
+
return (index.h(styledHost.StyledHost, { key: '0486f3f304d4751751b54a4a698ef5d7cb742947' }, index.h("billing-form-full", { key: '4c0822f484b70a14dca9309f6d145e1c8b6261dd', legend: this.legend, ref: (el) => (this.billingFormFullRef = el) })));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -17,7 +17,7 @@ const JustifiBillingForm = class {
|
|
|
17
17
|
return (_b = (_a = this.billingFormRef) === null || _a === void 0 ? void 0 : _a.validate()) !== null && _b !== void 0 ? _b : { isValid: false, errors: {} };
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
20
|
+
return (index.h(styledHost.StyledHost, { key: '5f845819a98bb3f9c477d39447c342dbc568f541' }, index.h("billing-form", { key: '992fb4ea8df4767d7359b73250581b8b1e5c83ad', legend: this.legend, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: this.paymentMethodType, ref: (el) => (this.billingFormRef = el) })));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
4
|
var utils = require('./utils-8RGQVADu.js');
|
|
5
|
-
var business_service = require('./business.service-
|
|
6
|
-
var getBusiness = require('./get-business-
|
|
7
|
-
var Plaid = require('./Plaid-
|
|
8
|
-
var Analytics = require('./Analytics-
|
|
9
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
5
|
+
var business_service = require('./business.service-72YETCdB.js');
|
|
6
|
+
var getBusiness = require('./get-business-BpaRbn5S.js');
|
|
7
|
+
var Plaid = require('./Plaid-D85oV9FN.js');
|
|
8
|
+
var Analytics = require('./Analytics-COhunq0p.js');
|
|
9
|
+
var checkPkgVersion = require('./check-pkg-version-BxGoSXGD.js');
|
|
10
10
|
var styledHost = require('./styled-host-CW1WUnUq.js');
|
|
11
11
|
require('./event-types-YOY5TKUN.js');
|
|
12
12
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
13
13
|
require('./parts-BXshb_S-.js');
|
|
14
|
-
require('./Api-
|
|
14
|
+
require('./Api-Do6SaltY.js');
|
|
15
15
|
require('./config-state-C1YMiFpR.js');
|
|
16
16
|
require('./index-DDrfAj-j.js');
|
|
17
17
|
require('./utils-DB4XHlAU.js');
|
|
18
18
|
require('./dinero-BwNN_k7x.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-G3Vs7Jx5.js');
|
|
20
20
|
require('./Pagination-Dediz133.js');
|
|
21
21
|
require('./Business-oBifyXkW.js');
|
|
22
|
-
require('./utils-
|
|
22
|
+
require('./utils-CBriZzRC.js');
|
|
23
23
|
|
|
24
24
|
const BusinessDetailsLoading = () => {
|
|
25
25
|
const Block = () => (index.h("div", { class: "mt-5" }, index.h(skeleton.Skeleton, { width: "40%", height: "1.5rem" }), index.h("hr", null), index.h("div", { class: "row g-3" }, index.h("div", { class: "col-12 col-md-6" }, index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null)), index.h("div", { class: "col-12 col-md-6" }, index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null)))));
|
|
@@ -5,29 +5,29 @@ var index_esm = require('./index.esm-BNETBIV_.js');
|
|
|
5
5
|
var businessIdentitySchema = require('./business-identity-schema-hpDJFnB4.js');
|
|
6
6
|
require('./config-state-C1YMiFpR.js');
|
|
7
7
|
require('./dinero-BwNN_k7x.js');
|
|
8
|
-
var Plaid = require('./Plaid-
|
|
8
|
+
var Plaid = require('./Plaid-D85oV9FN.js');
|
|
9
9
|
require('./Pagination-Dediz133.js');
|
|
10
10
|
var Business = require('./Business-oBifyXkW.js');
|
|
11
|
-
var Analytics = require('./Analytics-
|
|
11
|
+
var Analytics = require('./Analytics-COhunq0p.js');
|
|
12
12
|
var button = require('./button-CR9Rl1-o.js');
|
|
13
13
|
var styledHost = require('./styled-host-CW1WUnUq.js');
|
|
14
14
|
var header1 = require('./header-1-CsBQoo1f.js');
|
|
15
15
|
require('./event-types-YOY5TKUN.js');
|
|
16
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
16
|
+
var checkPkgVersion = require('./check-pkg-version-BxGoSXGD.js');
|
|
17
17
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
18
18
|
var eventTypes = require('./event-types-DNOUef41.js');
|
|
19
|
-
var paymentProvisioningActions = require('./payment-provisioning-actions-
|
|
20
|
-
var business_service = require('./business.service-
|
|
19
|
+
var paymentProvisioningActions = require('./payment-provisioning-actions-DDooZhhk.js');
|
|
20
|
+
var business_service = require('./business.service-72YETCdB.js');
|
|
21
21
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
22
22
|
require('./schema-validations-DehT309E.js');
|
|
23
23
|
require('./country-config-C1bWmF8P.js');
|
|
24
24
|
require('./business-form-options-CnlrfbQ6.js');
|
|
25
25
|
require('./index-DDrfAj-j.js');
|
|
26
26
|
require('./utils-DB4XHlAU.js');
|
|
27
|
-
require('./package-
|
|
28
|
-
require('./Api-
|
|
27
|
+
require('./package-G3Vs7Jx5.js');
|
|
28
|
+
require('./Api-Do6SaltY.js');
|
|
29
29
|
require('./parts-BXshb_S-.js');
|
|
30
|
-
require('./utils-
|
|
30
|
+
require('./utils-CBriZzRC.js');
|
|
31
31
|
|
|
32
32
|
const businessFormSchemaUSA = index_esm.create$3(Object.assign(Object.assign({}, businessIdentitySchema.businessCoreInfoSchemaUSA().fields), { legal_address: businessIdentitySchema.addressSchemaUSA(), additional_questions: businessIdentitySchema.additionalQuestionsSchema(), representative: businessIdentitySchema.identitySchemaUSA('representative') }));
|
|
33
33
|
index_esm.create$3(Object.assign(Object.assign({}, businessIdentitySchema.businessCoreInfoSchemaCAN().fields), { legal_address: businessIdentitySchema.addressSchemaCAN(), additional_questions: businessIdentitySchema.additionalQuestionsSchema(), representative: businessIdentitySchema.identitySchemaCAN('representative') }));
|
|
@@ -17,7 +17,7 @@ const JustifiCardBillingFormSimple = class {
|
|
|
17
17
|
return (_b = (_a = this.cardBillingFormSimpleRef) === null || _a === void 0 ? void 0 : _a.validate()) !== null && _b !== void 0 ? _b : { isValid: false, errors: {} };
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
20
|
+
return (index.h(styledHost.StyledHost, { key: '252d0c30a2ce3775759aa0490592bea6608620ca' }, index.h("card-billing-form-simple", { key: '62a33d79b9b12dfefbfef68f0cf9ec8beb52d177', legend: this.legend, ref: (el) => (this.cardBillingFormSimpleRef = el) })));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
|