@zonos/elements 1.3.138 → 1.3.140
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/{cart-efd80d55.js → cart-e1b59d03.js} +280 -41
- package/dist/cjs/index.cjs.js +12 -13
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-50e03778.js → paypal-86cc51e4.js} +13 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +10 -10
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card.cjs.entry.js +4 -4
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +94 -26
- package/dist/cjs/zonos-checkout.cjs.entry.js +5 -3
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +9 -9
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-notification_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +19 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +24 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +4 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +23 -11
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +11 -4
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/paypal.js +14 -1
- package/dist/collection/components/store/checkout/stripe.js +9 -0
- package/dist/collection/components/store/hello/localization.js +3 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +11 -2
- package/dist/collection/components/store/translationStore/strings.base.js +11 -2
- package/dist/collection/components/store/translationStore/strings.chinese.js +11 -2
- package/dist/collection/components/store/translationStore/strings.danish.js +11 -2
- package/dist/collection/components/store/translationStore/strings.dutch.js +11 -2
- package/dist/collection/components/store/translationStore/strings.french.js +11 -2
- package/dist/collection/components/store/translationStore/strings.german.js +11 -2
- package/dist/collection/components/store/translationStore/strings.hebrew.js +11 -2
- package/dist/collection/components/store/translationStore/strings.indonesian.js +11 -2
- package/dist/collection/components/store/translationStore/strings.italian.js +11 -2
- package/dist/collection/components/store/translationStore/strings.japanese.js +11 -2
- package/dist/collection/components/store/translationStore/strings.korean.js +11 -2
- package/dist/collection/components/store/translationStore/strings.norwegian.js +11 -2
- package/dist/collection/components/store/translationStore/strings.polish.js +11 -2
- package/dist/collection/components/store/translationStore/strings.portuguese.js +11 -2
- package/dist/collection/components/store/translationStore/strings.russian.js +11 -2
- package/dist/collection/components/store/translationStore/strings.spanish.js +11 -2
- package/dist/collection/components/store/translationStore/strings.swedish.js +11 -2
- package/dist/collection/components/store/translationStore/strings.turkish.js +11 -2
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +11 -2
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/getCheckoutSession.js +14 -0
- package/dist/collection/components/utils/resetToSelectedTab.js +17 -0
- package/dist/collection/components/utils/validateCheckoutSession.js +39 -0
- package/dist/collection/scripts/_zonosBase.js +5 -6
- package/dist/esm/{cart-f0bf7202.js → cart-709f053f.js} +281 -43
- package/dist/esm/index.js +12 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-65d40ba3.js → paypal-77a60c44.js} +13 -1
- package/dist/esm/zonos-address_7.entry.js +10 -10
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card.entry.js +4 -4
- package/dist/esm/zonos-cart-items_13.entry.js +94 -26
- package/dist/esm/zonos-checkout.entry.js +5 -3
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +9 -9
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +2 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-notification_3.entry.js +4 -4
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/cart-709f053f.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/paypal-77a60c44.js +17 -0
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +6 -0
- package/dist/types/components/store/checkout/stripe.d.ts +4 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.base.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.danish.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.french.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.german.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.italian.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.korean.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.polish.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.russian.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +10 -1
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/api/getCheckoutSession.d.ts +9 -0
- package/dist/types/components/utils/resetToSelectedTab.d.ts +12 -0
- package/dist/types/components/utils/validateCheckoutSession.d.ts +9 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +5 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +112 -0
- package/dist/types/types/generated/graphql.internal.types.ts +102 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-bbd5119f.entry.js → p-00d4bff1.entry.js} +1 -1
- package/dist/zonos-elements/p-010f5797.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7b34be6e.system.entry.js → p-01ad5be8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-856bf7a4.entry.js → p-04a6a167.entry.js} +1 -1
- package/dist/zonos-elements/{p-b500f0d1.system.entry.js → p-0aee2e4c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0c027d2e.entry.js +1 -0
- package/dist/zonos-elements/{p-59d0f69b.system.entry.js → p-1c4ff7b2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1af0a800.system.entry.js → p-22d69480.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2a77699.system.entry.js → p-25c7e4fa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-26b24d0b.system.js +1 -0
- package/dist/zonos-elements/{p-ba26fc96.system.entry.js → p-289ded20.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9c4e557.entry.js → p-35b8dcde.entry.js} +1 -1
- package/dist/zonos-elements/{p-acae88db.entry.js → p-3a26cae5.entry.js} +1 -1
- package/dist/zonos-elements/{p-1360c4b5.system.entry.js → p-3dd503fd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-24488838.system.entry.js → p-4319600a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1393d259.system.entry.js → p-461624ce.system.entry.js} +1 -1
- package/dist/zonos-elements/p-49e4ca08.system.entry.js +1 -0
- package/dist/zonos-elements/{p-e44ab8b8.entry.js → p-5c32689e.entry.js} +1 -1
- package/dist/zonos-elements/{p-47efac28.system.entry.js → p-64a04391.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6b0aa1bb.system.js +17 -0
- package/dist/zonos-elements/{p-22d099fb.system.entry.js → p-7a60deef.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-84df573a.entry.js → p-7acf6802.entry.js} +1 -1
- package/dist/zonos-elements/{p-f9f48476.entry.js → p-7ef573f0.entry.js} +1 -1
- package/dist/zonos-elements/{p-37a127fc.entry.js → p-8368a79e.entry.js} +1 -1
- package/dist/zonos-elements/{p-5775cd68.system.entry.js → p-87ed2e17.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ac0f941.system.entry.js → p-896ab1ed.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c48e735d.system.entry.js → p-896d62a4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8f9affb3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-234b3f74.entry.js → p-9589bd08.entry.js} +1 -1
- package/dist/zonos-elements/{p-22e2f162.entry.js → p-9b59704a.entry.js} +1 -1
- package/dist/zonos-elements/p-a58731ec.system.js +1 -0
- package/dist/zonos-elements/{p-bad5200e.entry.js → p-ad1d6ea2.entry.js} +1 -1
- package/dist/zonos-elements/{p-b9e4e410.entry.js → p-ad4bc6a2.entry.js} +1 -1
- package/dist/zonos-elements/p-afffdfc2.js +1 -0
- package/dist/zonos-elements/{p-4ab4ba81.entry.js → p-b832ec52.entry.js} +1 -1
- package/dist/zonos-elements/{p-f0ce4d90.entry.js → p-b9efc660.entry.js} +1 -1
- package/dist/zonos-elements/p-be2feba6.entry.js +1 -0
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-a0cc4dd2.entry.js → p-cd1fd09e.entry.js} +1 -1
- package/dist/zonos-elements/{p-52a5bd4c.system.entry.js → p-cf72603f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d35376d3.js +17 -0
- package/dist/zonos-elements/{p-95f26bc3.entry.js → p-d633ced9.entry.js} +1 -1
- package/dist/zonos-elements/p-e6c31531.entry.js +1 -0
- package/dist/zonos-elements/{p-de020c11.system.entry.js → p-ee1e1d94.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-be468605.system.entry.js → p-f07c01c5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8880d648.entry.js → p-f2867195.entry.js} +1 -1
- package/dist/zonos-elements/{p-b088f65a.entry.js → p-f8ca3e71.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0719959.system.entry.js → p-ffe4a999.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +2 -1
- package/dist/esm-es5/cart-f0bf7202.js +0 -1
- package/dist/esm-es5/paypal-65d40ba3.js +0 -17
- package/dist/zonos-elements/p-09636917.js +0 -1
- package/dist/zonos-elements/p-128b1b70.system.entry.js +0 -1
- package/dist/zonos-elements/p-31a776aa.system.entry.js +0 -1
- package/dist/zonos-elements/p-4628832d.system.js +0 -1
- package/dist/zonos-elements/p-58983c97.entry.js +0 -1
- package/dist/zonos-elements/p-6e24b0cf.system.js +0 -17
- package/dist/zonos-elements/p-845ad2b8.js +0 -17
- package/dist/zonos-elements/p-8e25910c.entry.js +0 -1
- package/dist/zonos-elements/p-b6005449.system.entry.js +0 -1
- package/dist/zonos-elements/p-c5bff157.entry.js +0 -1
- package/dist/zonos-elements/p-e309e4a3.system.js +0 -1
|
@@ -206,7 +206,7 @@ export class ZonosController {
|
|
|
206
206
|
zonosStore.organizationName = organizationName;
|
|
207
207
|
}
|
|
208
208
|
render() {
|
|
209
|
-
return h(Host, { key: '
|
|
209
|
+
return h(Host, { key: '7cdde4733b47d96c6539a6bd9c78f150de8a6eb4', class: "zonos--elements" });
|
|
210
210
|
}
|
|
211
211
|
static get is() { return "zonos-controller"; }
|
|
212
212
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,7 +41,7 @@ export class ZonosPaypalPayment {
|
|
|
41
41
|
void this.loadPaypal();
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '00f9e39b2a69f5da6799301b76571fe31ad2b3db', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: '4977e93ec49ab8deca29c69072ea5fa0fc1c145b', class: "zonos--payment-paypal-container" })));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "zonos-paypal-payment"; }
|
|
47
47
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { loadScript, } from "@paypal/paypal-js";
|
|
2
2
|
import { createStore } from "@stencil/store";
|
|
3
3
|
import { cartStore, cartStoreClearCheckoutInterval, cartStoreNextStep, } from "./cart";
|
|
4
|
-
import { stripeStoreHandleInventoryCheck } from "./stripe";
|
|
4
|
+
import { stripeStore, stripeStoreHandleInventoryCheck, } from "./stripe";
|
|
5
5
|
import { translate } from "../translationStore";
|
|
6
6
|
import { zonosStore } from "../zonosStore";
|
|
7
7
|
import { paypalCaptureOrder } from "../../utils/api/paypalCaptureOrder";
|
|
@@ -11,6 +11,7 @@ import { jsonParse } from "../../utils/jsonParse";
|
|
|
11
11
|
import { log } from "../../utils/logging/log";
|
|
12
12
|
import { logError } from "../../utils/logging/logError";
|
|
13
13
|
import { submitGtag } from "../../utils/submitGtag";
|
|
14
|
+
import { validateCheckoutSession } from "../../utils/validateCheckoutSession";
|
|
14
15
|
const { reset: paypalStoreReset, state: paypalStore } = createStore(() => ({
|
|
15
16
|
orderIdCreated: null,
|
|
16
17
|
paypalButtons: [],
|
|
@@ -73,6 +74,15 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
|
|
|
73
74
|
});
|
|
74
75
|
return {
|
|
75
76
|
createOrder: async () => {
|
|
77
|
+
const checkoutSessionStatus = await validateCheckoutSession();
|
|
78
|
+
if (!checkoutSessionStatus.valid) {
|
|
79
|
+
paypalStore.paypalErrorMessage = checkoutSessionStatus.errorMessage;
|
|
80
|
+
// reset stripe error message
|
|
81
|
+
stripeStore.hasPaymentError = false;
|
|
82
|
+
stripeStore.customErrorMessage = null;
|
|
83
|
+
onPaypalFail === null || onPaypalFail === void 0 ? void 0 : onPaypalFail();
|
|
84
|
+
return '';
|
|
85
|
+
}
|
|
76
86
|
try {
|
|
77
87
|
// reset paypal error banner
|
|
78
88
|
paypalStore.paypalErrorMessage = null;
|
|
@@ -99,6 +109,9 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
|
|
|
99
109
|
catch (err) {
|
|
100
110
|
logError('Failed to create paypal order', err);
|
|
101
111
|
paypalStore.paypalErrorMessage = translate('Failed to create PayPal order. Please try again, or consider using an alternative method.');
|
|
112
|
+
// reset stripe error message
|
|
113
|
+
stripeStore.hasPaymentError = false;
|
|
114
|
+
stripeStore.customErrorMessage = null;
|
|
102
115
|
// trigger fail event
|
|
103
116
|
onPaypalFail === null || onPaypalFail === void 0 ? void 0 : onPaypalFail();
|
|
104
117
|
return '';
|
|
@@ -13,10 +13,12 @@ import { jsonParse } from "../../utils/jsonParse";
|
|
|
13
13
|
import { log } from "../../utils/logging/log";
|
|
14
14
|
import { logError } from "../../utils/logging/logError";
|
|
15
15
|
import { sendErrorLog } from "../../utils/logging/sendErrorLog";
|
|
16
|
+
import { validateCheckoutSession } from "../../utils/validateCheckoutSession";
|
|
16
17
|
import { addressRuleStyle } from "../../../styles/stripe/addressRuleStyle";
|
|
17
18
|
import { defaultVariable } from "../../../styles/stripe/defaultVariable";
|
|
18
19
|
const { onChange, reset, state: stripeStore, } = createStore(() => ({
|
|
19
20
|
clientSecret: sessionStorage.getItem('zonos--client-secret') || null,
|
|
21
|
+
customErrorMessage: null,
|
|
20
22
|
fetchingLandedCostAbortController: null,
|
|
21
23
|
hasPaymentError: false,
|
|
22
24
|
isFetchingLandedCost: false,
|
|
@@ -464,9 +466,16 @@ const stripeStoreConfirmPayment = async () => {
|
|
|
464
466
|
const stripeElements = stripeStore.stripeElements;
|
|
465
467
|
const stripe = stripeStore.stripe;
|
|
466
468
|
const stripeClientSecret = stripeStore.clientSecret;
|
|
469
|
+
stripeStore.customErrorMessage = null;
|
|
467
470
|
if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id)) {
|
|
468
471
|
throw new Error('Attempted to confirm the payment when no landed cost is found in store');
|
|
469
472
|
}
|
|
473
|
+
// Check if the checkout session is valid before proceeding
|
|
474
|
+
const checkoutSessionStatus = await validateCheckoutSession();
|
|
475
|
+
if (!checkoutSessionStatus.valid) {
|
|
476
|
+
stripeStore.customErrorMessage = checkoutSessionStatus.errorMessage;
|
|
477
|
+
throw new Error(checkoutSessionStatus.errorMessage);
|
|
478
|
+
}
|
|
470
479
|
if (stripe &&
|
|
471
480
|
stripeElements &&
|
|
472
481
|
stripePaymentReady &&
|
|
@@ -95,6 +95,7 @@ const getNewLocalization = async () => {
|
|
|
95
95
|
startExchangeRateTimeout({ isGuaranteed, maxAge });
|
|
96
96
|
};
|
|
97
97
|
const getCustomMessages = async () => {
|
|
98
|
+
log(`Getting custom messages for ${localizationStore.selectedCountryCode}`);
|
|
98
99
|
if (!localizationStore.selectedCountryCode || !zonosStore.storeId) {
|
|
99
100
|
return;
|
|
100
101
|
}
|
|
@@ -154,7 +155,6 @@ const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
|
|
|
154
155
|
}
|
|
155
156
|
localizationStore.targetCurrency = currencyCode;
|
|
156
157
|
void getNewLocalization();
|
|
157
|
-
void getCustomMessages();
|
|
158
158
|
// Save the country code to session storage for later use
|
|
159
159
|
window.sessionStorage.setItem('zonos--country', selectedCountryCode);
|
|
160
160
|
// Update the URL query param with the new country code
|
|
@@ -215,6 +215,7 @@ const localizationStoreUpdateSelectedLocale = (newSelectedLocale) => {
|
|
|
215
215
|
localizationStore.selectedLocale = newSelectedLocale;
|
|
216
216
|
translationStoreUpdateLanguage(newSelectedLocale);
|
|
217
217
|
void updateCheckoutSessionLanguage();
|
|
218
|
+
void getCustomMessages();
|
|
218
219
|
};
|
|
219
220
|
const initLocalizationStore = async () => {
|
|
220
221
|
// all countries from countries.json, shipping zone and localization
|
|
@@ -230,6 +231,7 @@ const initLocalizationStore = async () => {
|
|
|
230
231
|
initHelloCountryList(allCountries || {});
|
|
231
232
|
const { country, locale } = localization;
|
|
232
233
|
log(`Country code from localization: ${country}`);
|
|
234
|
+
log(`Locale from localization: ${locale}`);
|
|
233
235
|
// update selected country code in store
|
|
234
236
|
localizationStoreUpdateSelectedCountryCode(country);
|
|
235
237
|
// use locale from params if it exists, otherwise use locale from localization
|
|
@@ -113,8 +113,8 @@ export const stringsArabic = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'خطأ في تحديث جلسة الخروج',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'مقدر',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'مقدر [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'التوصيل المتوقع',
|
|
@@ -170,6 +170,9 @@ export const stringsArabic = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'لم يتم العثور على دول',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'لم يتم اختيار تقييم الشحنة. يرجى العودة إلى خطوة "الشحن" واختيار تقييم الشحنة للمتابعة.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'لم يتم تحديد طريقة الشحن',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsArabic = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'نجاح',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'الضرائب والرسوم',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'سيتم تطبيق الضرائب على جميع الطلبات.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsArabic = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'تعذر التحقق من المخزون. حاول مرة أخرى.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'غير قادر على استرداد جلسة الدفع في الوقت الحالي. يرجى المحاولة مرة أخرى أو الاتصال بفريق الدعم لدينا.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'تحديث العنوان',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsBase = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Error updating Checkout',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Estimated',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Estimated [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Expected delivery',
|
|
@@ -170,6 +170,9 @@ export const stringsBase = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'No countries found',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'No shipping method selected',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsBase = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Success',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Taxes and fees',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Taxes will apply to all orders.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsBase = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Unable to check inventory. Please try again.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Update address',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsChinese = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: '更新结账时出错',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: '
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: '预计 [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: '预计送达',
|
|
@@ -170,6 +170,9 @@ export const stringsChinese = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: '未找到国家',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: '未选择运费评级。请返回到"运输"步骤并选择运费评级以继续。',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: '未选择运输方式',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsChinese = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: '成功',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: '税费',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: '所有订单将适用税款。',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsChinese = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: '无法检查库存。请再试一次。',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: '目前无法检索结账会话。请重试或联系我们的支持团队。',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: '更新地址',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsDanish = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Fejl ved opdatering af betalingssession',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Anslået',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Anslået [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Forventet levering',
|
|
@@ -170,6 +170,9 @@ export const stringsDanish = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Ingen lande fundet',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Ingen forsendelsesvurdering valgt. Gå venligst tilbage til "Forsendelse"-trinnet og vælg en forsendelsesvurdering for at fortsætte.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Ingen leveringsmetode valgt',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsDanish = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Succes',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Skatter og gebyrer',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Skatter vil gælde for alle ordrer.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsDanish = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Kunne ikke tjekke lagerbeholdningen. Prøv venligst igen.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Kan ikke hente betalingssessionen i øjeblikket. Prøv venligst igen eller kontakt vores supportteam.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Opdater adresse',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsDutch = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Fout bij het bijwerken van afrekening',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Geschat',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Geschat [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Verwachte levering',
|
|
@@ -170,6 +170,9 @@ export const stringsDutch = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Geen landen gevonden',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Geen verzendbeoordeling geselecteerd. Ga alstublieft terug naar de stap "Verzending" en selecteer een verzendbeoordeling om door te gaan.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Geen verzendmethode geselecteerd',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsDutch = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Succes',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Belastingen en kosten',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Belastingen zullen van toepassing zijn op alle bestellingen.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsDutch = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Kon de voorraad niet controleren. Probeer het opnieuw.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Kan de betaal sessie momenteel niet ophalen. Probeer het opnieuw of neem contact op met ons ondersteuningsteam.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Adres bijwerken',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsFrench = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Erreur lors de la mise à jour du paiement',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Estimé',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Estimé [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Livraison prévue',
|
|
@@ -170,6 +170,9 @@ export const stringsFrench = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Aucun pays trouvé',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: `Aucune évaluation d'expédition sélectionnée. Veuillez revenir à l'étape "Expédition" et sélectionner une évaluation d'expédition pour continuer.`,
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Aucune méthode de livraison sélectionnée',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsFrench = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Succès',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Taxes et frais',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: "Des taxes s'appliqueront à toutes les commandes.",
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsFrench = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: "Impossible de vérifier l'inventaire. Veuillez réessayer.",
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: "Impossible de récupérer la session de paiement pour le moment. Veuillez réessayer ou contacter notre équipe d'assistance.",
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: "Mettre à jour l'adresse",
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsGerman = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Fehler bei der Aktualisierung des Checkouts',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Geschätzt',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Geschätzt [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Voraussichtliche Lieferung',
|
|
@@ -170,6 +170,9 @@ export const stringsGerman = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Keine Länder gefunden',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Keine Versandbewertung ausgewählt. Bitte gehen Sie zurück zum Schritt "Versand" und wählen Sie eine Versandbewertung aus, um fortzufahren.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Keine Versandart ausgewählt',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsGerman = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Erfolg',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Steuern und Gebühren',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Steuern werden auf alle Bestellungen angewendet.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsGerman = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Inventar konnte nicht überprüft werden. Bitte versuchen Sie es erneut.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Die Checkout-Sitzung kann momentan nicht abgerufen werden. Bitte versuchen Sie es erneut oder kontaktieren Sie unser Support-Team.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Adresse aktualisieren',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsHebrew = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'שגיאה בעדכון ההזמנה',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'משוער',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'משוער [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'אספקה צפויה',
|
|
@@ -170,6 +170,9 @@ export const stringsHebrew = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'לא נמצאו מדינות',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'לא נבחר דירוג משלוח. אנא חזור לשלב "משלוח" ובחר דירוג משלוח כדי להמשיך.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'לא נבחרה שיטת משלוח',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsHebrew = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'הצלחה',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'מיסים ודמי שירות',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'מסים יחולו על כל ההזמנות.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsHebrew = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'לא ניתן היה לבדוק את המלאי. אנא נסה שוב.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'לא ניתן לאחזר את מושב התשלום כרגע. אנא נסה שוב או צור קשר עם צוות התמיכה שלנו.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'עדכון כתובת',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsIndonesian = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Kesalahan saat memperbarui Checkout',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: '
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Perkiraan [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Perkiraan pengiriman',
|
|
@@ -170,6 +170,9 @@ export const stringsIndonesian = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Tidak ada negara yang ditemukan',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Tidak ada penilaian pengiriman yang dipilih. Silakan kembali ke langkah "Pengiriman" dan pilih penilaian pengiriman untuk melanjutkan.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Tidak ada metode pengiriman yang dipilih',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsIndonesian = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Sukses',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Pajak dan biaya',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Pajak akan berlaku untuk semua pesanan.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsIndonesian = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Tidak dapat memeriksa inventaris. Silakan coba lagi.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Tidak dapat mengambil sesi checkout saat ini. Silakan coba lagi atau hubungi tim dukungan kami.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Perbarui alamat',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsItalian = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: "Errore durante l'aggiornamento del pagamento",
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Stimato',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Stimato [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Consegna prevista',
|
|
@@ -170,6 +170,9 @@ export const stringsItalian = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Nessun paese trovato',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Nessuna valutazione di spedizione selezionata. Si prega di tornare al passaggio "Spedizione" e selezionare una valutazione di spedizione per procedere.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Nessun metodo di spedizione selezionato',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsItalian = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Successo',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Tasse e commissioni',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Le tasse si applicheranno a tutti gli ordini.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsItalian = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: "Impossibile verificare l'inventario. Si prega di riprovare.",
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Impossibile recuperare la sessione di pagamento al momento. Si prega di riprovare o contattare il nostro team di supporto.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Aggiorna indirizzo',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsJapanese = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'チェックアウトの更新中にエラーが発生しました',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: '推定',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: '推定 [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: '配送予定日',
|
|
@@ -170,6 +170,9 @@ export const stringsJapanese = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: '国が見つかりません',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: '配送評価が選択されていません。「配送」ステップに戻り、配送評価を選択して続行してください。',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: '配送方法が選択されていません',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsJapanese = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: '成功',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: '税金と手数料',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'すべての注文に税金が適用されます。',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsJapanese = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: '在庫を確認できません。再試行してください。',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: '現在、チェックアウトセッションを取得できません。もう一度お試しいただくか、サポートチームにお問い合わせください。',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: '住所を更新',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsKorean = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: '결제 업데이트 중 오류 발생',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: '
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: '예상 [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: '예상 배송일',
|
|
@@ -170,6 +170,9 @@ export const stringsKorean = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: '국가를 찾을 수 없습니다',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: '배송 등급이 선택되지 않았습니다. "배송" 단계로 돌아가서 배송 등급을 선택하여 진행하세요.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: '선택된 배송 방법이 없습니다',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsKorean = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: '성공',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: '세금 및 수수료',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: '모든 주문에 세금이 적용됩니다.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsKorean = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: '재고를 확인할 수 없습니다. 다시 시도해 주세요.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: '현재 결제 세션을 가져올 수 없습니다. 다시 시도하거나 지원 팀에 문의하십시오.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: '주소 업데이트',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsNorwegian = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Feil ved oppdatering av utsjekking',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: '
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Estimert [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Forventet levering',
|
|
@@ -170,6 +170,9 @@ export const stringsNorwegian = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Ingen land funnet',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Ingen forsendelsesvurdering valgt. Vennligst gå tilbake til "Frakt"-trinnet og velg en forsendelsesvurdering for å fortsette.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Ingen fraktmetode valgt',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsNorwegian = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Suksess',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Skatter og avgifter',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Skatter vil gjelde for alle bestillinger.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsNorwegian = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Kunne ikke sjekke lagerbeholdningen. Vennligst prøv igjen.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Kan ikke hente utsjekkingsøkten for øyeblikket. Vennligst prøv igjen eller kontakt vårt supportteam.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Oppdater adresse',
|
|
367
376
|
},
|