@justifi/webcomponents 6.0.0-rc.14 → 6.0.0-rc.16
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/bank-account-document-form-inputs_4.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-CaT5ZNrJ.js → check-pkg-version-DfzaKEDg.js} +1 -1
- package/dist/cjs/custom-popper_2.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-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.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 +2 -2
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +36 -364
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +7 -7
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +7 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-B6_SanWZ.js → package-CHNXn8wx.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +2 -1
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +37 -41
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.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-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/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 +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +2 -2
- package/dist/esm/{check-pkg-version-zpvFkun_.js → check-pkg-version-Cz8T6Ux8.js} +1 -1
- package/dist/esm/{checkout.store-DNDbZO3M.js → checkout.store-OD-OX5On.js} +1 -1
- package/dist/esm/custom-popper_2.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-monetary.entry.js +2 -2
- package/dist/esm/form-control-number-masked_2.entry.js +2 -2
- package/dist/esm/form-control-number.entry.js +2 -2
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +2 -2
- package/dist/esm/hidden-input_2.entry.js +5 -5
- package/dist/esm/justifi-apple-pay.entry.js +37 -365
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +8 -8
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +8 -7
- package/dist/esm/justifi-checkout.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-B0SIpQBY.js → package-BiTF1__F.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +8 -8
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/payments-list-core.entry.js +1 -1
- package/dist/esm/payout-details-core.entry.js +3 -3
- package/dist/esm/payouts-list-core.entry.js +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/terminals-list-core.entry.js +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/custom-popper2.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-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/justifi-apple-pay.js +34 -367
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- 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-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-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/modular-checkout.js +2 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/tokenize-payment-method.js +1 -1
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +0 -3
- package/dist/webcomponents/p-054193e4.entry.js +1 -0
- package/dist/webcomponents/p-07c3c25e.entry.js +1 -0
- package/dist/webcomponents/p-0913a57b.entry.js +1 -0
- package/dist/webcomponents/p-099e96ba.entry.js +1 -0
- package/dist/webcomponents/{p-02053ddb.entry.js → p-0bba0dd0.entry.js} +1 -1
- package/dist/webcomponents/p-0e80830f.entry.js +1 -0
- package/dist/webcomponents/{p-a6748a1d.entry.js → p-13c21c47.entry.js} +1 -1
- package/dist/webcomponents/{p-51fcdb56.entry.js → p-225da0b5.entry.js} +1 -1
- package/dist/webcomponents/{p-2d14f144.entry.js → p-225ed545.entry.js} +1 -1
- package/dist/webcomponents/{p-71f9c48a.entry.js → p-2550e845.entry.js} +1 -1
- package/dist/webcomponents/p-2ae3613e.entry.js +1 -0
- package/dist/webcomponents/{p-d94c880f.entry.js → p-2b47ddd8.entry.js} +1 -1
- package/dist/webcomponents/{p-71c7823f.entry.js → p-3a34e4f9.entry.js} +1 -1
- package/dist/webcomponents/p-3caee9d2.entry.js +1 -0
- package/dist/webcomponents/p-3d94c845.entry.js +1 -0
- package/dist/webcomponents/{p-9c997d0b.entry.js → p-45e8185c.entry.js} +1 -1
- package/dist/webcomponents/{p-a3db7a86.entry.js → p-4abf0877.entry.js} +1 -1
- package/dist/webcomponents/{p-33311d41.entry.js → p-559be51b.entry.js} +1 -1
- package/dist/webcomponents/p-5a3fc339.entry.js +1 -0
- package/dist/webcomponents/p-654d85ca.entry.js +1 -0
- package/dist/webcomponents/{p-31549453.entry.js → p-69bf5e32.entry.js} +1 -1
- package/dist/webcomponents/{p-74379ff8.entry.js → p-73dd0306.entry.js} +1 -1
- package/dist/webcomponents/p-7c463a59.entry.js +1 -0
- package/dist/webcomponents/p-7fcbccc7.entry.js +1 -0
- package/dist/webcomponents/p-87acb5ec.entry.js +1 -0
- package/dist/webcomponents/{p-9fc567d8.entry.js → p-8c95827f.entry.js} +1 -1
- package/dist/webcomponents/{p-8d743490.entry.js → p-93ed5490.entry.js} +1 -1
- package/dist/webcomponents/p-995c2cbf.entry.js +1 -0
- package/dist/webcomponents/p-9c621697.entry.js +1 -0
- package/dist/webcomponents/{p-BLpLn2YY.js → p-BcAsEqa5.js} +1 -1
- package/dist/webcomponents/p-BiTF1__F.js +1 -0
- package/dist/webcomponents/{p-Cb3h46bV.js → p-CItulios.js} +1 -1
- package/dist/webcomponents/{p-0ff04742.entry.js → p-a5114207.entry.js} +1 -1
- package/dist/webcomponents/{p-95d64d05.entry.js → p-a53710c4.entry.js} +1 -1
- package/dist/webcomponents/p-a65d751d.entry.js +1 -0
- package/dist/webcomponents/p-a7712cea.entry.js +1 -0
- package/dist/webcomponents/{p-55cf20c9.entry.js → p-b9ab3803.entry.js} +1 -1
- package/dist/webcomponents/{p-522e7b24.entry.js → p-bf2df971.entry.js} +1 -1
- package/dist/webcomponents/{p-1bad571f.entry.js → p-c3cfcd4b.entry.js} +1 -1
- package/dist/webcomponents/{p-1512820f.entry.js → p-ce272d8a.entry.js} +1 -1
- package/dist/webcomponents/p-cff8ae71.entry.js +1 -0
- package/dist/webcomponents/{p-ed901f9d.entry.js → p-d031ad31.entry.js} +1 -1
- package/dist/webcomponents/p-d5d271d3.entry.js +1 -0
- package/dist/webcomponents/{p-52cbd667.entry.js → p-dba55699.entry.js} +1 -1
- package/dist/webcomponents/p-e5282f6c.entry.js +1 -0
- package/dist/webcomponents/{p-1723d9f3.entry.js → p-e7921c1f.entry.js} +1 -1
- package/dist/webcomponents/{p-e9a9886d.entry.js → p-eabaeaf6.entry.js} +1 -1
- package/dist/webcomponents/p-f6e3f1ca.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-0b1107ff.entry.js +0 -1
- package/dist/webcomponents/p-29ad8473.entry.js +0 -1
- package/dist/webcomponents/p-2b39ab97.entry.js +0 -1
- package/dist/webcomponents/p-2c1c3ee5.entry.js +0 -1
- package/dist/webcomponents/p-402caa84.entry.js +0 -1
- package/dist/webcomponents/p-42d4ea58.entry.js +0 -1
- package/dist/webcomponents/p-537aa971.entry.js +0 -1
- package/dist/webcomponents/p-55e433db.entry.js +0 -1
- package/dist/webcomponents/p-7186f4a7.entry.js +0 -1
- package/dist/webcomponents/p-74f2f354.entry.js +0 -1
- package/dist/webcomponents/p-77948b46.entry.js +0 -1
- package/dist/webcomponents/p-90867349.entry.js +0 -1
- package/dist/webcomponents/p-940ad7c0.entry.js +0 -1
- package/dist/webcomponents/p-B0SIpQBY.js +0 -1
- package/dist/webcomponents/p-aa6194ef.entry.js +0 -1
- package/dist/webcomponents/p-ae831dd3.entry.js +0 -1
- package/dist/webcomponents/p-b7f097c5.entry.js +0 -1
- package/dist/webcomponents/p-bc45aa92.entry.js +0 -1
- package/dist/webcomponents/p-caa1c728.entry.js +0 -1
- package/dist/webcomponents/p-e6d1ed81.entry.js +0 -1
- package/dist/webcomponents/p-f849a34e.entry.js +0 -1
- package/dist/webcomponents/p-fa1884b4.entry.js +0 -1
|
@@ -68,10 +68,10 @@ const NumberInputMasked = class {
|
|
|
68
68
|
return input;
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: 'cd0a23e4a4b1d7b39448e0770c5681aa319fe376' }, h("div", { key: 'fdaeea5b68035edc6885d7e3e5106d6c4962325f', class: "form-group d-flex flex-column" }, h("div", { key: '46379bb141130c88d0b09c1382a9f34758808b8c', class: "d-flex align-items-start gap-2" }, h("label", { key: '5a191a9c22d82d58354fa297d78f51c4cd0ec36b', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '9a8c580ee3b69902a30bca5aa79309be15d0c51d', helpText: this.helpText })), h("input", { key: '03bec84295380c4c86cc4c1b9ff6609ddf15c7b8', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
|
|
72
72
|
this.isFocused = false;
|
|
73
73
|
this.formControlBlur.emit();
|
|
74
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
74
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '55e523b3be538bccd3a438edf109acbb7de3fce9', errorText: this.errorText, name: this.name }))));
|
|
75
75
|
}
|
|
76
76
|
static get watchers() { return {
|
|
77
77
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -42,10 +42,10 @@ const NumberInput = class {
|
|
|
42
42
|
return input;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '7d3590c5616114610038d95cf45e3aa1f6fca08f' }, h("div", { key: '231c16a61a76aa7501df035639a7c2de474a2578', class: 'form-group d-flex flex-column' }, h("label", { key: 'c6736b7830e68c4ebfad4e954510fa7e6f839772', part: label, class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '739a6c3f50a684da033e5a2669bb661cd50836a9', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
46
46
|
this.isFocused = false;
|
|
47
47
|
this.formControlBlur.emit();
|
|
48
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '
|
|
48
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '456c71cb54cf15bf17b2bcf95140d47db9002bce', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '55aa4e9d84f0236e9a1b0e27b174f385de2b9537', errorText: this.errorText, name: this.name }))));
|
|
49
49
|
}
|
|
50
50
|
get el() { return getElement(this); }
|
|
51
51
|
static get watchers() { return {
|
|
@@ -30,10 +30,10 @@ const RadioInput = class {
|
|
|
30
30
|
return inputRadio;
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '15657fdcd58d4971b8a25d32b458ff652203af29', class: 'form-group d-flex flex-column' }, h("div", { key: 'f50498d959e589a759fdf34a88ffdd2d423a3c7b', class: "form-check" }, h("input", { key: 'ac09f7a9de18b042302373d755565524170578aa', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
34
34
|
this.isFocused = false;
|
|
35
35
|
this.formControlBlur.emit();
|
|
36
|
-
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '
|
|
36
|
+
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: 'a9a890749f5106772e6e849d3ffde7cad8c7b744', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: 'b85b9fa72868f1b70d7e2cf37e5b831762c2c448', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'c2658161f4564fac4ec33acf48a23fd4cc656615', errorText: this.errorText, name: this.name })));
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -88,10 +88,10 @@ const TextInput = class {
|
|
|
88
88
|
return input;
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
|
-
return (h(Host, { key: '
|
|
91
|
+
return (h(Host, { key: '71473077484c65dce4e3311db05a194f642a37c8' }, h("div", { key: 'fbceee0b9fae4f05e1310a97c009fa5a97866ea4', class: "form-group d-flex flex-column" }, h("div", { key: 'c5b6cc944e8a1a7aafe136e67e5f37772f364cd6', class: "d-flex align-items-start gap-2" }, h("label", { key: '029a560a612b7e00f4d67c7adc2b5bdffa85cb53', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '3d8b3a41a599dc2f59171befb532c0cd219adba5', helpText: this.helpText })), h("input", { key: '2510c95b50bb26d00fb2975e38fde9efb7a6986e', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
92
92
|
this.isFocused = false;
|
|
93
93
|
this.formControlBlur.emit();
|
|
94
|
-
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
94
|
+
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: 'feff4a3d104ea6f74a8d7049f79b8c2850b308a9', errorText: this.errorText, name: this.name }))));
|
|
95
95
|
}
|
|
96
96
|
get el() { return getElement(this); }
|
|
97
97
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@ import { c as createStore } from './index-B_KxSZIF.js';
|
|
|
3
3
|
import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, l as label } from './parts-RvUQ__Pq.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
5
5
|
import { F as FormControlErrorText } from './form-control-error-text-R7U07nTg.js';
|
|
6
|
-
import { p as packageJson } from './package-
|
|
6
|
+
import { p as packageJson } from './package-BiTF1__F.js';
|
|
7
7
|
|
|
8
8
|
const iframeInputStylesStore = createStore({
|
|
9
9
|
focused: {
|
|
@@ -98,7 +98,7 @@ const HiddenInput = class {
|
|
|
98
98
|
return input;
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: 'bf8fcd89cdc8fcd1bfd8b9af5a7211c877e482ba' }, h("input", { key: 'f202d9252b60195b193a8203f750730fcf2e271b', ref: el => this.hiddenInput = el, type: "text", class: this.errorText ? "form-control is-invalid" : "form-control", onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false, part: this.part, tabindex: "-1", style: { height: '0', opacity: '0', pointerEvents: 'none', animation: 'none' } })));
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
|
|
@@ -1713,10 +1713,10 @@ const IframeInput = class {
|
|
|
1713
1713
|
return params;
|
|
1714
1714
|
}
|
|
1715
1715
|
render() {
|
|
1716
|
-
return (h(Host, { key: '
|
|
1716
|
+
return (h(Host, { key: 'c8a36a456afdfd883ae2ad8e05de98d307615b4c', class: "form-group d-flex flex-column" }, h("div", { key: '580cdd90dd76289f78b688fcdb1486ecb7fe6c5a', style: {
|
|
1717
1717
|
visibility: this.iframeLoaded ? 'visible' : 'hidden',
|
|
1718
1718
|
height: this.iframeLoaded ? 'auto' : '0',
|
|
1719
|
-
} }, h("label", { key: '
|
|
1719
|
+
} }, h("label", { key: '7df8c29c720b5edf85553e5667c14eeb0ad6e2b6', class: "form-label", htmlFor: "", part: label }, this.label || ''), h("div", { key: '3caeb47ddf3940e1b1a7fe08d8bd50b8123eb2c5', class: `p-0 d-flex form-control ${this.isValid ? '' : 'is-invalid'}`, part: this.part, style: Object.assign(Object.assign({}, this.style), { overflow: 'hidden' }) }, h("iframe", { key: '2fdff0682753d32292431a8d62d30a1647fa62ef', id: this.inputId, name: this.inputId, src: `${this.iframeOrigin}?${this.urlParams}`, ref: el => {
|
|
1720
1720
|
this.iframeElement = el;
|
|
1721
1721
|
this.initializeFrameCommunicationService();
|
|
1722
1722
|
}, width: "100%", onLoad: () => {
|
|
@@ -1726,7 +1726,7 @@ const IframeInput = class {
|
|
|
1726
1726
|
this.iframeLoaded.emit();
|
|
1727
1727
|
}
|
|
1728
1728
|
}, this.iframeElement);
|
|
1729
|
-
} })), h(FormControlErrorText, { key: '
|
|
1729
|
+
} })), h(FormControlErrorText, { key: '075ca2ca25623703280fda84ff119e4820f9a5cb', errorText: this.errorText, name: this.inputId }))));
|
|
1730
1730
|
}
|
|
1731
1731
|
get el() { return getElement(this); }
|
|
1732
1732
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent } from './index-Bn7inNWG.js';
|
|
2
|
-
import { A as Api } from './Api-DAWuvzbl.js';
|
|
3
2
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
4
3
|
import './event-types-CZfYo5-1.js';
|
|
5
4
|
import { S as Skeleton } from './skeleton-qMb0_Cjy.js';
|
|
6
|
-
import { c as checkoutStore
|
|
7
|
-
import './
|
|
5
|
+
import { c as checkoutStore } from './checkout.store-OD-OX5On.js';
|
|
6
|
+
import './parts-RvUQ__Pq.js';
|
|
8
7
|
import './index-B_KxSZIF.js';
|
|
9
|
-
import './
|
|
8
|
+
import './config-state-DZeVYerv.js';
|
|
10
9
|
import './dinero-HXpYMWUU.js';
|
|
11
|
-
import './parts-RvUQ__Pq.js';
|
|
12
10
|
import './ComponentError-Cjcsf8ku.js';
|
|
13
11
|
import './Refund-CVh70dXA.js';
|
|
12
|
+
import './utils-BscIVFn8.js';
|
|
14
13
|
import './Dispute-BH0Xfn-F.js';
|
|
15
14
|
import './Pagination-CLHwhyvu.js';
|
|
16
15
|
import './Business-BCoP0TAV.js';
|
|
@@ -46,45 +45,6 @@ var ApplePayMerchantCapability;
|
|
|
46
45
|
ApplePayMerchantCapability["SUPPORTS_CREDIT"] = "supportsCredit";
|
|
47
46
|
ApplePayMerchantCapability["SUPPORTS_DEBIT"] = "supportsDebit";
|
|
48
47
|
})(ApplePayMerchantCapability || (ApplePayMerchantCapability = {}));
|
|
49
|
-
class ApplePayConfig {
|
|
50
|
-
constructor(data) {
|
|
51
|
-
this.merchantIdentifier = data.merchantIdentifier;
|
|
52
|
-
this.displayName = data.displayName;
|
|
53
|
-
this.initiative = data.initiative;
|
|
54
|
-
this.initiativeContext = data.initiativeContext;
|
|
55
|
-
this.buttonType = data.buttonType || ApplePayButtonType.PLAIN;
|
|
56
|
-
this.buttonStyle = data.buttonStyle || ApplePayButtonStyle.BLACK;
|
|
57
|
-
this.buttonLocale = data.buttonLocale || 'en-US';
|
|
58
|
-
}
|
|
59
|
-
get isValid() {
|
|
60
|
-
return !!(this.merchantIdentifier &&
|
|
61
|
-
this.displayName &&
|
|
62
|
-
this.initiative &&
|
|
63
|
-
this.initiativeContext);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
class ApplePayPaymentRequest {
|
|
67
|
-
constructor(data) {
|
|
68
|
-
this.countryCode = data.countryCode;
|
|
69
|
-
this.currencyCode = data.currencyCode;
|
|
70
|
-
this.merchantCapabilities = data.merchantCapabilities;
|
|
71
|
-
this.supportedNetworks = data.supportedNetworks;
|
|
72
|
-
this.total = data.total;
|
|
73
|
-
this.lineItems = data.lineItems;
|
|
74
|
-
this.shippingMethods = data.shippingMethods;
|
|
75
|
-
this.applicationData = data.applicationData;
|
|
76
|
-
this.supportedCountries = data.supportedCountries;
|
|
77
|
-
}
|
|
78
|
-
get isValid() {
|
|
79
|
-
var _a, _b, _c, _d;
|
|
80
|
-
return !!(this.countryCode &&
|
|
81
|
-
this.currencyCode &&
|
|
82
|
-
((_a = this.merchantCapabilities) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
83
|
-
((_b = this.supportedNetworks) === null || _b === void 0 ? void 0 : _b.length) &&
|
|
84
|
-
((_c = this.total) === null || _c === void 0 ? void 0 : _c.label) &&
|
|
85
|
-
((_d = this.total) === null || _d === void 0 ? void 0 : _d.amount));
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
48
|
class ApplePayHelpers {
|
|
89
49
|
static isApplePaySupported() {
|
|
90
50
|
var _a;
|
|
@@ -138,298 +98,6 @@ class ApplePayHelpers {
|
|
|
138
98
|
}
|
|
139
99
|
}
|
|
140
100
|
|
|
141
|
-
class ApplePayService {
|
|
142
|
-
constructor() {
|
|
143
|
-
this.api = Api();
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Initialize Apple Pay configuration
|
|
147
|
-
*/
|
|
148
|
-
initialize(applePayConfig) {
|
|
149
|
-
this.applePayConfig = new ApplePayConfig(applePayConfig);
|
|
150
|
-
if (!this.applePayConfig.isValid) {
|
|
151
|
-
throw new Error('Invalid Apple Pay configuration provided');
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Validate merchant with Apple Pay servers via API
|
|
156
|
-
*/
|
|
157
|
-
async validateMerchant(authToken, accountId) {
|
|
158
|
-
const endpoint = 'apple_pay/merchant_session';
|
|
159
|
-
try {
|
|
160
|
-
const response = await this.api.post({
|
|
161
|
-
endpoint,
|
|
162
|
-
authToken,
|
|
163
|
-
headers: {
|
|
164
|
-
'Sub-Account': accountId,
|
|
165
|
-
},
|
|
166
|
-
});
|
|
167
|
-
return response;
|
|
168
|
-
}
|
|
169
|
-
catch (error) {
|
|
170
|
-
console.error('Backend validation failed:', error);
|
|
171
|
-
throw new Error('Merchant validation failed');
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Process Apple Pay payment via API (fixed to match original logic)
|
|
176
|
-
*/
|
|
177
|
-
async processPayment(authToken, accountId, payload) {
|
|
178
|
-
const endpoint = 'apple_pay/process_token';
|
|
179
|
-
const result = await this.api.post({
|
|
180
|
-
endpoint,
|
|
181
|
-
authToken,
|
|
182
|
-
body: payload,
|
|
183
|
-
headers: {
|
|
184
|
-
'Sub-Account': accountId,
|
|
185
|
-
},
|
|
186
|
-
});
|
|
187
|
-
return {
|
|
188
|
-
success: result.id && !!result.data.token,
|
|
189
|
-
data: result,
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Check if Apple Pay is available on this device/browser
|
|
194
|
-
*/
|
|
195
|
-
isAvailable() {
|
|
196
|
-
return (ApplePayHelpers.isApplePaySupported() && ApplePayHelpers.canMakePayments());
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Check if the user has an active card for the merchant
|
|
200
|
-
*/
|
|
201
|
-
async canMakePaymentsWithActiveCard() {
|
|
202
|
-
if (!this.applePayConfig) {
|
|
203
|
-
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
204
|
-
}
|
|
205
|
-
return await ApplePayHelpers.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier);
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Start Apple Pay session
|
|
209
|
-
*/
|
|
210
|
-
async startPaymentSession(paymentRequest, authToken, accountId) {
|
|
211
|
-
if (!this.applePayConfig) {
|
|
212
|
-
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
213
|
-
}
|
|
214
|
-
// if (!this.isAvailable()) {
|
|
215
|
-
// throw new Error('Apple Pay is not available on this device/browser');
|
|
216
|
-
// }
|
|
217
|
-
const request = new ApplePayPaymentRequest(paymentRequest);
|
|
218
|
-
if (!request.isValid) {
|
|
219
|
-
throw new Error('Invalid payment request provided');
|
|
220
|
-
}
|
|
221
|
-
this.currentPaymentRequest = request;
|
|
222
|
-
return new Promise((resolve, reject) => {
|
|
223
|
-
try {
|
|
224
|
-
this.currentSession = new window.ApplePaySession(3, request);
|
|
225
|
-
this.setupSessionEventHandlers(resolve, reject, authToken, accountId);
|
|
226
|
-
this.currentSession.begin();
|
|
227
|
-
}
|
|
228
|
-
catch (error) {
|
|
229
|
-
reject({
|
|
230
|
-
success: false,
|
|
231
|
-
error: {
|
|
232
|
-
code: 'SESSION_ERROR',
|
|
233
|
-
message: error instanceof Error
|
|
234
|
-
? error.message
|
|
235
|
-
: 'Failed to start Apple Pay session',
|
|
236
|
-
},
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Abort current Apple Pay session
|
|
243
|
-
*/
|
|
244
|
-
abortPaymentSession() {
|
|
245
|
-
if (this.currentSession) {
|
|
246
|
-
this.currentSession.abort();
|
|
247
|
-
this.currentSession = undefined;
|
|
248
|
-
this.currentPaymentRequest = undefined;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Setup Apple Pay session event handlers
|
|
253
|
-
*/
|
|
254
|
-
setupSessionEventHandlers(resolve, reject, authToken, accountId) {
|
|
255
|
-
if (!this.currentSession ||
|
|
256
|
-
!this.applePayConfig ||
|
|
257
|
-
!this.currentPaymentRequest) {
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
this.currentSession.onvalidatemerchant = async () => {
|
|
261
|
-
try {
|
|
262
|
-
if (!authToken) {
|
|
263
|
-
throw new Error('Authentication token not provided.');
|
|
264
|
-
}
|
|
265
|
-
const merchantSession = await this.validateMerchant(authToken, accountId);
|
|
266
|
-
try {
|
|
267
|
-
this.currentSession.completeMerchantValidation(merchantSession);
|
|
268
|
-
}
|
|
269
|
-
catch (completionError) {
|
|
270
|
-
console.error('Error calling completeMerchantValidation:', completionError);
|
|
271
|
-
throw completionError;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
catch (error) {
|
|
275
|
-
console.error('=== MERCHANT VALIDATION ERROR ===');
|
|
276
|
-
console.error('Error during merchant validation:', error);
|
|
277
|
-
console.error('Error stack:', error.stack);
|
|
278
|
-
this.currentSession.abort();
|
|
279
|
-
reject({
|
|
280
|
-
success: false,
|
|
281
|
-
error: {
|
|
282
|
-
code: 'MERCHANT_VALIDATION_ERROR',
|
|
283
|
-
message: error instanceof Error
|
|
284
|
-
? error.message
|
|
285
|
-
: 'Merchant validation failed',
|
|
286
|
-
},
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
this.currentSession.onpaymentauthorized = async (event) => {
|
|
291
|
-
try {
|
|
292
|
-
const payment = event.payment;
|
|
293
|
-
const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
|
|
294
|
-
name: this.currentPaymentRequest.total.label,
|
|
295
|
-
price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
|
|
296
|
-
description: this.currentPaymentRequest.total.label,
|
|
297
|
-
} });
|
|
298
|
-
const paymentResult = await this.processPayment(authToken, accountId, paymentPayload);
|
|
299
|
-
if (paymentResult.success) {
|
|
300
|
-
this.currentSession.completePayment({
|
|
301
|
-
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
302
|
-
});
|
|
303
|
-
resolve({
|
|
304
|
-
success: true,
|
|
305
|
-
token: payment.token,
|
|
306
|
-
paymentMethodId: paymentResult.data.id,
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
console.error('PSP reported payment failure:', paymentResult.data);
|
|
311
|
-
this.currentSession.completePayment({
|
|
312
|
-
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
313
|
-
});
|
|
314
|
-
reject({
|
|
315
|
-
success: false,
|
|
316
|
-
error: {
|
|
317
|
-
code: 'PAYMENT_PROCESSING_ERROR',
|
|
318
|
-
message: 'Payment processing failed',
|
|
319
|
-
},
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
catch (error) {
|
|
324
|
-
console.error('=== PAYMENT PROCESSING ERROR ===');
|
|
325
|
-
console.error('Error processing payment:', error);
|
|
326
|
-
console.error('Error stack:', error.stack);
|
|
327
|
-
this.currentSession.completePayment({
|
|
328
|
-
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
329
|
-
});
|
|
330
|
-
reject({
|
|
331
|
-
success: false,
|
|
332
|
-
error: {
|
|
333
|
-
code: 'PAYMENT_PROCESSING_ERROR',
|
|
334
|
-
message: error instanceof Error
|
|
335
|
-
? error.message
|
|
336
|
-
: 'Payment processing failed',
|
|
337
|
-
},
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
finally {
|
|
341
|
-
this.currentSession = undefined;
|
|
342
|
-
this.currentPaymentRequest = undefined;
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
this.currentSession.onpaymentmethodselected = () => {
|
|
346
|
-
const paymentUpdate = {
|
|
347
|
-
newTotal: this.currentPaymentRequest.total,
|
|
348
|
-
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
349
|
-
};
|
|
350
|
-
try {
|
|
351
|
-
this.currentSession.completePaymentMethodSelection(paymentUpdate);
|
|
352
|
-
}
|
|
353
|
-
catch (error) {
|
|
354
|
-
console.error('Error completing payment method selection:', error);
|
|
355
|
-
this.currentSession.abort();
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
this.currentSession.onshippingmethodselected = () => {
|
|
359
|
-
this.currentSession.completeShippingMethodSelection({
|
|
360
|
-
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
361
|
-
newTotal: this.currentPaymentRequest.total,
|
|
362
|
-
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
363
|
-
});
|
|
364
|
-
};
|
|
365
|
-
this.currentSession.oncancel = (event) => {
|
|
366
|
-
if (event.sessionError) {
|
|
367
|
-
console.error(event.sessionError);
|
|
368
|
-
switch (event.sessionError.code) {
|
|
369
|
-
case 'unknown':
|
|
370
|
-
console.error('Unknown error - likely merchant validation issue');
|
|
371
|
-
console.error('This usually means:');
|
|
372
|
-
console.error('1. Merchant certificate is invalid or expired');
|
|
373
|
-
console.error('2. Merchant identifier mismatch');
|
|
374
|
-
console.error('3. Backend validation endpoint issues');
|
|
375
|
-
break;
|
|
376
|
-
case 'invalidMerchantSession':
|
|
377
|
-
console.error('Invalid merchant session provided');
|
|
378
|
-
console.error('Check that the merchant session from backend is valid');
|
|
379
|
-
break;
|
|
380
|
-
case 'userCancel':
|
|
381
|
-
console.error('User cancelled the payment');
|
|
382
|
-
break;
|
|
383
|
-
default:
|
|
384
|
-
console.error('Other error code:', event.sessionError.code);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
this.currentSession = undefined;
|
|
388
|
-
this.currentPaymentRequest = undefined;
|
|
389
|
-
reject({
|
|
390
|
-
success: false,
|
|
391
|
-
error: {
|
|
392
|
-
code: 'USER_CANCELLED',
|
|
393
|
-
message: 'User cancelled the Apple Pay session',
|
|
394
|
-
},
|
|
395
|
-
});
|
|
396
|
-
};
|
|
397
|
-
if ('onerror' in this.currentSession) {
|
|
398
|
-
this.currentSession.onerror = (error) => {
|
|
399
|
-
console.error('=== APPLE PAY SESSION ERROR ===');
|
|
400
|
-
console.error('Session error:', error);
|
|
401
|
-
this.currentSession = undefined;
|
|
402
|
-
this.currentPaymentRequest = undefined;
|
|
403
|
-
reject({
|
|
404
|
-
success: false,
|
|
405
|
-
error: {
|
|
406
|
-
code: 'SESSION_ERROR',
|
|
407
|
-
message: 'Apple Pay session error occurred',
|
|
408
|
-
},
|
|
409
|
-
});
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
/**
|
|
414
|
-
* Create a basic payment request
|
|
415
|
-
*/
|
|
416
|
-
static createPaymentRequest(amount, label, countryCode = 'US', currencyCode = 'USD') {
|
|
417
|
-
return {
|
|
418
|
-
countryCode,
|
|
419
|
-
currencyCode,
|
|
420
|
-
merchantCapabilities: ApplePayHelpers.getDefaultMerchantCapabilities(),
|
|
421
|
-
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
422
|
-
total: ApplePayHelpers.createLineItem(label, amount),
|
|
423
|
-
};
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* Get current configuration
|
|
427
|
-
*/
|
|
428
|
-
getApplePayConfig() {
|
|
429
|
-
return this.applePayConfig;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
|
|
433
101
|
const ApplePaySkeleton = (props) => {
|
|
434
102
|
const { isReady } = props;
|
|
435
103
|
if (isReady) {
|
|
@@ -660,20 +328,29 @@ const ApplePay = class {
|
|
|
660
328
|
}
|
|
661
329
|
};
|
|
662
330
|
}
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
331
|
+
// private unsubscribeCheckoutLoaded?: () => void;
|
|
332
|
+
// componentWillLoad() {
|
|
333
|
+
// this.unsubscribeCheckoutLoaded = onChange("checkoutLoaded", (loaded) => {
|
|
334
|
+
// this.applePayService = new ApplePayService();
|
|
335
|
+
// console.log("checkoutLoaded", loaded);
|
|
336
|
+
// if (loaded) {
|
|
337
|
+
// this.initializeApplePay();
|
|
338
|
+
// }
|
|
339
|
+
// });
|
|
340
|
+
// }
|
|
341
|
+
// disconnectedCallback() {
|
|
342
|
+
// this.unsubscribeCheckoutLoaded?.();
|
|
343
|
+
// this.unsubscribeCheckoutLoaded = undefined;
|
|
344
|
+
// }
|
|
345
|
+
// @Watch("merchantIdentifier")
|
|
346
|
+
// @Watch("buttonType")
|
|
347
|
+
// @Watch("buttonStyle")
|
|
348
|
+
// @Watch("disabled")
|
|
349
|
+
// watchPropsChange() {
|
|
350
|
+
// this.initializeApplePay();
|
|
351
|
+
// }
|
|
676
352
|
async initializeApplePay() {
|
|
353
|
+
console.log("initializeApplePay", checkoutStore.checkoutLoaded);
|
|
677
354
|
try {
|
|
678
355
|
this.isLoading = true;
|
|
679
356
|
this.error = null;
|
|
@@ -682,9 +359,9 @@ const ApplePay = class {
|
|
|
682
359
|
Boolean(checkoutStore.paymentCurrency) &&
|
|
683
360
|
Boolean(checkoutStore.authToken);
|
|
684
361
|
if (!hasRequiredConfig) {
|
|
685
|
-
this.error = "Missing required Apple Pay configuration";
|
|
362
|
+
this.error = "Missing required Apple Pay configuration blabla blabla 2";
|
|
686
363
|
this.isConfigValid = false;
|
|
687
|
-
console.error("Apple Pay config error: missing required values", {
|
|
364
|
+
console.error("Apple Pay config error: missing required values blabla blabla 2", {
|
|
688
365
|
paymentAmount: checkoutStore.paymentAmount,
|
|
689
366
|
paymentCurrency: checkoutStore.paymentCurrency,
|
|
690
367
|
hasAuthToken: Boolean(checkoutStore.authToken),
|
|
@@ -750,29 +427,24 @@ const ApplePay = class {
|
|
|
750
427
|
this.applePayCancelled.emit();
|
|
751
428
|
}
|
|
752
429
|
render() {
|
|
753
|
-
const shouldHide =
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
430
|
+
// const shouldHide =
|
|
431
|
+
// !this.isLoading &&
|
|
432
|
+
// (!this.isConfigValid || !this.isAvailable || !this.canMakePayments || !checkoutStore.checkoutLoaded);
|
|
433
|
+
// if (shouldHide) {
|
|
434
|
+
// return null;
|
|
435
|
+
// }
|
|
758
436
|
const isReady = !this.isLoading &&
|
|
759
437
|
this.isAvailable &&
|
|
760
438
|
this.canMakePayments &&
|
|
761
439
|
this.isConfigValid;
|
|
762
|
-
return (h(StyledHost,
|
|
763
|
-
|
|
764
|
-
|
|
440
|
+
return (h(StyledHost, { key: 'ea33bc759d2849cf013cb6f98367c8d78c799acb' }, checkoutStore.checkoutLoaded && (h("script", { key: '9ed6140223a8788ca194a8978a9ca8e1e30eb10e', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
|
|
441
|
+
this.initializeApplePay();
|
|
442
|
+
} })), h("div", { key: '6501d8cb4c4119eadf9112db4fca876437138bcc', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '1aee83e3deac0d0f68d2788f65401a1d7c48047f', isReady: isReady }), isReady && (h(ApplePayButton, { key: 'eb05dde5789f5f1bb83e75127c222996a38c8fef', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '8060bf6771c12f47d482f0a774e4fd6547e50a2e' }, `
|
|
765
443
|
.apple-pay-container {
|
|
766
444
|
width: 100%;
|
|
767
445
|
}
|
|
768
446
|
`)));
|
|
769
447
|
}
|
|
770
|
-
static get watchers() { return {
|
|
771
|
-
"merchantIdentifier": ["watchPropsChange"],
|
|
772
|
-
"buttonType": ["watchPropsChange"],
|
|
773
|
-
"buttonStyle": ["watchPropsChange"],
|
|
774
|
-
"disabled": ["watchPropsChange"]
|
|
775
|
-
}; }
|
|
776
448
|
};
|
|
777
449
|
|
|
778
450
|
export { ApplePay as justifi_apple_pay };
|
|
@@ -5,18 +5,18 @@ import { r as radioListItem, av as billingForm } from './parts-RvUQ__Pq.js';
|
|
|
5
5
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { S as Skeleton } from './skeleton-qMb0_Cjy.js';
|
|
8
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
8
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-Cz8T6Ux8.js';
|
|
9
9
|
import { w as waitForConfig, c as configState } from './config-state-DZeVYerv.js';
|
|
10
10
|
import { H as Header3 } from './header-3-CWa41YWq.js';
|
|
11
11
|
import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
|
|
12
12
|
import { S as StateOptions } from './state-options-BX8GieXu.js';
|
|
13
13
|
import { B as Button } from './button-CpllL0At.js';
|
|
14
|
-
import { c as checkoutStore } from './checkout.store-
|
|
14
|
+
import { c as checkoutStore } from './checkout.store-OD-OX5On.js';
|
|
15
15
|
import './_commonjsHelpers-BFTU3MAI.js';
|
|
16
16
|
import './business-form-options-CgssATyg.js';
|
|
17
17
|
import './Business-BCoP0TAV.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-BiTF1__F.js';
|
|
20
20
|
import './Api-DAWuvzbl.js';
|
|
21
21
|
import './utils-BscIVFn8.js';
|
|
22
22
|
import './dinero-HXpYMWUU.js';
|
|
@@ -154,10 +154,10 @@ const BankAccountForm = class {
|
|
|
154
154
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
155
155
|
}
|
|
156
156
|
render() {
|
|
157
|
-
return (h(StyledHost, { key: '
|
|
157
|
+
return (h(StyledHost, { key: '99ccb5aa2afbf79e5bf40d59ca15eb217180349a' }, h(BankAccountFormSkeleton, { key: 'a26a6f4391a5e5b7923f36b05bdfe57491b31d8a', isReady: this.isReady }), h("hidden-input", { key: '7555fe1bbf38a1525e7c11fe7182e264752435c9' }), h("div", { key: 'd1d7141ee75a644d4ae67d23b353dc6293306371', class: "container-fluid p-0", style: {
|
|
158
158
|
opacity: this.isReady ? '1' : '0',
|
|
159
159
|
height: this.isReady ? 'auto' : '0',
|
|
160
|
-
} }, h("div", { key: '
|
|
160
|
+
} }, h("div", { key: 'db0d578ccb3647e049b5ef958bef0273a8945448', class: "row mb-3" }, h("iframe-input", { key: '58311d94a8f5f023f05de260afbaf6bc707a0d57', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '92e4b77f012a414ac88b8faf721b5a10f2c5a3a4', class: "row" }, h("iframe-input", { key: '5163f7e8cff8fb82bb009f615ef7ab2e231deb52', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
163
|
|
|
@@ -238,7 +238,7 @@ const JustifiButton = class {
|
|
|
238
238
|
this.type = 'button';
|
|
239
239
|
}
|
|
240
240
|
render() {
|
|
241
|
-
return (h(StyledHost, { key: '
|
|
241
|
+
return (h(StyledHost, { key: '48098276e0808052803f0d16df68ba23d529c4ab' }, h(Button, { key: 'c62e8d2d9208dc180180b4283edea991c5a93c57', variant: this.variant, isLoading: this.isLoading, clickHandler: this.clickHandler, class: this.class, type: this.type, disabled: this.disabled, style: this.customStyle }, this.text)));
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
244
|
|
|
@@ -337,10 +337,10 @@ const JustifiCardForm = class {
|
|
|
337
337
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
338
338
|
}
|
|
339
339
|
render() {
|
|
340
|
-
return (h(StyledHost, { key: '
|
|
340
|
+
return (h(StyledHost, { key: '46991f66161e4118fdf135bf18eb757435e26457' }, h(CardFormSkeleton, { key: 'aacb7f467a10debc809997a67172fe4f23a2ca76', isReady: this.isReady }), h("hidden-input", { key: '3e9bd9b7ff0aba356d9f8fd07428cbaedcb223b1' }), h("div", { key: '8fcf6d92703491fe6a0be076a5965c09c800f262', class: "container-fluid p-0", style: {
|
|
341
341
|
opacity: this.isReady ? '1' : '0',
|
|
342
342
|
height: this.isReady ? 'auto' : '0',
|
|
343
|
-
} }, h("div", { key: '
|
|
343
|
+
} }, h("div", { key: '8dea63dc69d7c7cfbcded0a07bfbcf9c7d7a41fa', class: "mb-3" }, h("iframe-input", { key: 'ffd4de932414b206ea5936c21349c522b762f8a4', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: '3e56350822761119dbb7ff49e3cc56bec7f361ca', class: "row" }, h("div", { key: 'ab13b6b20573fbec961164a415ccaf21b663eb4b', class: "col-4 align-content-end" }, h("iframe-input", { key: 'e12d56f2c1dd12ae5eff7619204d9f746e1b6a43', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '62e4808ee208aec7cf3e1d7a99fd65f3d9a5e615', class: "col-4 align-content-end" }, h("iframe-input", { key: 'c8e3945b466e61e8b21fbb13f71c0631740ca1a3', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: '979929e29abb54f8837f71b1cdb7261df97a58df', class: "col-4 align-content-end" }, h("iframe-input", { key: '2c25868c5fd7e6c2d34722b39f22c2062248cdf6', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
|
|
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-Dg6gMUTv.js';
|
|
|
3
3
|
import { B as BusinessService } from './business.service-cQrH5BqF.js';
|
|
4
4
|
import { m as makeGetBusiness } from './get-business-Crb6P-iI.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-Cz8T6Ux8.js';
|
|
7
7
|
import './parts-RvUQ__Pq.js';
|
|
8
8
|
import './Api-DAWuvzbl.js';
|
|
9
9
|
import './config-state-DZeVYerv.js';
|
|
@@ -17,7 +17,7 @@ import './Business-BCoP0TAV.js';
|
|
|
17
17
|
import './helpers-Mu7LQT-w.js';
|
|
18
18
|
import './state-options-BX8GieXu.js';
|
|
19
19
|
import './utils-BeQLScSm.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-BiTF1__F.js';
|
|
21
21
|
|
|
22
22
|
const BusinessDetails = class {
|
|
23
23
|
constructor(hostRef) {
|