@paykka/card-checkout-ui 0.8.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/card-checkout-ui.js +21 -14
- package/dist/card-checkout-ui.umd.cjs +21 -14
- package/dist/es/_commonjsHelpers.js +1 -0
- package/dist/es/api/http.js +19 -21
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/modules/ali-pay/index.js +19 -11
- package/dist/es/api/modules/apple-pay/index.js +10 -26
- package/dist/es/api/modules/boost/index.js +56 -0
- package/dist/es/api/modules/card/index.js +17 -11
- package/dist/es/api/modules/checkout/index.js +6 -6
- package/dist/es/api/modules/checkout/map.js +23 -6
- package/dist/es/api/modules/gcash/index.js +56 -0
- package/dist/es/api/modules/get-browser-params.js +2 -2
- package/dist/es/api/modules/google-pay/index.js +10 -26
- package/dist/es/api/modules/grab-pay/index.js +56 -0
- package/dist/es/api/modules/index.js +1 -1
- package/dist/es/api/modules/line-pay/index.js +56 -0
- package/dist/es/api/modules/may-bank-qr-pay/index.js +56 -0
- package/dist/es/api/modules/nine-pay/index.js +56 -0
- package/dist/es/api/modules/paymaya/index.js +56 -0
- package/dist/es/api/modules/risk/index.js +13 -0
- package/dist/es/api/modules/sepa/index.js +19 -11
- package/dist/es/api/modules/shopee-pay/index.js +56 -0
- package/dist/es/api/modules/threeDS/index.js +1 -0
- package/dist/es/api/modules/tng-wallet/index.js +56 -0
- package/dist/es/api/modules/wechat-pay/index.js +18 -31
- package/dist/es/components/AccordionItem/AccordionItem.js +37 -0
- package/dist/es/components/AccountNameField/index.js +1 -0
- package/dist/es/components/AddressField/index.js +1 -0
- package/dist/es/components/AliPay/index.js +28 -40
- package/dist/es/components/ApplePay/index.js +18 -39
- package/dist/es/components/Boost/index.js +324 -0
- package/dist/es/components/Card/index.js +80 -48
- package/dist/es/components/CardBrands/index.js +3 -2
- package/dist/es/components/CardExpireDateField/index.js +1 -0
- package/dist/es/components/CardHolderNameField/index.js +1 -0
- package/dist/es/components/CardIBANField/index.js +1 -0
- package/dist/es/components/CardNo/index.js +1 -0
- package/dist/es/components/CardNumberField/index.js +124 -106
- package/dist/es/components/CardSecurityCodeField/index.js +1 -0
- package/dist/es/components/CardSelector/index.js +1 -0
- package/dist/es/components/CombinedCardInfo/index.js +4 -0
- package/dist/es/components/DropIn/index.js +206 -50
- package/dist/es/components/EmailField/EmailField.js +14 -15
- package/dist/es/components/EncryptedCard/index.js +1 -0
- package/dist/es/components/GooglePay/index.js +7 -6
- package/dist/es/components/GrabPay/index.js +324 -0
- package/dist/es/components/GuideCard/index.js +44 -0
- package/dist/es/components/LinePay/index.js +324 -0
- package/dist/es/components/MayBankQRPay/index.js +324 -0
- package/dist/es/components/NinePay/index.js +324 -0
- package/dist/es/components/RecurringTip/index.js +1 -0
- package/dist/es/components/SecuredFieldsProvider/index.js +2 -1
- package/dist/es/components/SecuredIframe/index.js +57 -4
- package/dist/es/components/Sepa/index.js +7 -10
- package/dist/es/components/ShopeePay/index.js +324 -0
- package/dist/es/components/SubmitButton/index.js +7 -20
- package/dist/es/components/TNGWallet/index.js +324 -0
- package/dist/es/components/ThreeDS/index.js +1 -0
- package/dist/es/components/WechatPay/index.js +30 -49
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +42 -0
- package/dist/es/components/business/QRCodeModal/index.js +7 -0
- package/dist/es/components/business/QRCodeModal/qr-code-modal.js +1 -0
- package/dist/es/components/business/QRCodeModal/type.js +1 -0
- package/dist/es/components/business/index.js +7 -0
- package/dist/es/components/index.js +10 -0
- package/dist/es/components/internal/Accordion/Accordion.js +14 -0
- package/dist/es/components/internal/Accordion/accordion2.js +1 -0
- package/dist/es/components/internal/Accordion/accordionTransition.js +26 -0
- package/dist/es/components/internal/Accordion/index.js +8 -0
- package/dist/es/components/internal/Accordion/type.js +10 -0
- package/dist/es/components/internal/Button/Button.js +1 -0
- package/dist/es/components/internal/Button/index.js +1 -0
- package/dist/es/components/internal/CheckBox/CheckBox.js +1 -0
- package/dist/es/components/internal/CheckBox/index.js +1 -0
- package/dist/es/components/internal/Form/type.js +1 -0
- package/dist/es/components/internal/Info/Info.js +1 -0
- package/dist/es/components/internal/Info/index.js +1 -0
- package/dist/es/components/internal/Input/type.js +1 -0
- package/dist/es/components/internal/LoadingCheck/LoadingCheck.js +1 -0
- package/dist/es/components/internal/LoadingCheck/index.js +1 -0
- package/dist/es/components/internal/Modal/Modal.js +18 -3
- package/dist/es/components/internal/Modal/index.js +1 -0
- package/dist/es/components/internal/Modal/type.js +1 -0
- package/dist/es/components/internal/QRCode/QRCode.js +32 -0
- package/dist/es/components/internal/QRCode/index.js +5 -0
- package/dist/es/components/internal/QRCode/type.js +1 -0
- package/dist/es/components/internal/Select/Select.js +11 -9
- package/dist/es/components/internal/Select/SelectMenu.js +1 -0
- package/dist/es/components/internal/Select/SelectMenuItem.js +1 -0
- package/dist/es/components/internal/icons/IconBoost.js +63 -0
- package/dist/es/components/internal/icons/IconCard.js +1 -40
- package/dist/es/components/internal/icons/IconCard2.js +60 -0
- package/dist/es/components/internal/icons/IconGCash.js +196 -0
- package/dist/es/components/internal/icons/IconGcashComplete.js +184 -0
- package/dist/es/components/internal/icons/IconGrabPay.js +59 -0
- package/dist/es/components/internal/icons/IconLinePay.js +99 -0
- package/dist/es/components/internal/icons/IconMayBankQRPay.js +69 -0
- package/dist/es/components/internal/icons/IconNinePay.js +255 -0
- package/dist/es/components/internal/icons/IconPaymaya.js +114 -0
- package/dist/es/components/internal/icons/IconRedirect.js +58 -0
- package/dist/es/components/internal/icons/IconScan.js +102 -0
- package/dist/es/components/internal/icons/IconShopeePay.js +108 -0
- package/dist/es/components/internal/icons/IconTNGWallet.js +119 -0
- package/dist/es/components/internal/icons/IconUnionPay.js +65 -0
- package/dist/es/components/wallets/GCash/GCash.js +368 -0
- package/dist/es/components/wallets/GCash/g-cash.js +1 -0
- package/dist/es/components/wallets/GCash/index.js +1 -0
- package/dist/es/components/wallets/GCash/type.js +1 -0
- package/dist/es/components/wallets/Paymaya/Paymaya.js +325 -0
- package/dist/es/components/wallets/Paymaya/index.js +1 -0
- package/dist/es/components/wallets/Paymaya/paymaya2.js +1 -0
- package/dist/es/components/wallets/Paymaya/type.js +1 -0
- package/dist/es/config.js +12 -12
- package/dist/es/constant.js +84 -4
- package/dist/es/core/PayKKaCheckout.js +35 -5
- package/dist/es/core/Session.js +24 -23
- package/dist/es/core/error.js +7 -0
- package/dist/es/core/index.js +1 -0
- package/dist/es/core/query.js +3 -3
- package/dist/es/core.js +2082 -70
- package/dist/es/hooks/index.js +1 -0
- package/dist/es/hooks/useI18n.js +1 -0
- package/dist/es/hooks/usePayState.js +7 -5
- package/dist/es/i18n/I18n.js +8 -2
- package/dist/es/i18n/locales/de-DE.js +16 -1
- package/dist/es/i18n/locales/en-GB.js +16 -1
- package/dist/es/i18n/locales/es-ES.js +16 -1
- package/dist/es/i18n/locales/fr-FR.js +16 -1
- package/dist/es/i18n/locales/index.js +2 -1
- package/dist/es/i18n/locales/ja-JP.js +16 -1
- package/dist/es/i18n/locales/ko-KR.js +16 -1
- package/dist/es/i18n/locales/nl-NL.js +88 -0
- package/dist/es/i18n/locales/pt-PT.js +16 -1
- package/dist/es/i18n/locales/ru-RU.js +16 -1
- package/dist/es/i18n/locales/zh-CN.js +16 -1
- package/dist/es/i18n/locales/zh-HK.js +16 -1
- package/dist/es/i18n/locales/zh-TW.js +16 -1
- package/dist/es/i18n/util.js +12 -3
- package/dist/es/index.js +22 -0
- package/dist/es/out/fraud-detection.js +39 -13
- package/dist/es/out/worldpay-ddc.js +143 -0
- package/dist/es/style.css +1 -1192
- package/dist/es/types/event.js +15 -0
- package/dist/es/types/fraud-detection.js +1 -0
- package/dist/es/types/index.js +1 -0
- package/dist/es/types/message.js +3 -0
- package/dist/es/utils/array.js +9 -0
- package/dist/es/utils/card-brand/brands.js +11 -1
- package/dist/es/utils/card-brand/index.js +4 -3
- package/dist/es/utils/card-brand/luhn.js +25 -0
- package/dist/es/utils/date.js +25 -0
- package/dist/es/utils/detect.js +6 -0
- package/dist/es/utils/format.js +28 -12
- package/dist/es/utils/iframe.js +1 -1
- package/dist/es/utils/index.js +9 -1
- package/dist/es/utils/location.js +37 -0
- package/dist/es/utils/object.js +14 -0
- package/dist/es/utils/redirect.js +32 -0
- package/dist/es/utils/reg-exp.js +4 -0
- package/dist/es/utils/system-info/get-browser-info.js +4 -4
- package/dist/es/utils/system-info/get-system-info.js +11 -7
- package/dist/es/utils/system-info/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/api/http.d.ts +4 -10
- package/dist/types/api/modules/ali-pay/index.d.ts +2 -1
- package/dist/types/api/modules/apple-pay/index.d.ts +2 -1
- package/dist/types/api/modules/boost/index.d.ts +24 -0
- package/dist/types/api/modules/card/index.d.ts +1 -1
- package/dist/types/api/modules/checkout/index.d.ts +2 -2
- package/dist/types/api/modules/checkout/type.d.ts +9 -0
- package/dist/types/api/modules/gcash/index.d.ts +24 -0
- package/dist/types/api/modules/get-browser-params.d.ts +2 -2
- package/dist/types/api/modules/google-pay/index.d.ts +2 -1
- package/dist/types/api/modules/grab-pay/index.d.ts +24 -0
- package/dist/types/api/modules/index.d.ts +11 -0
- package/dist/types/api/modules/line-pay/index.d.ts +24 -0
- package/dist/types/api/modules/may-bank-qr-pay/index.d.ts +24 -0
- package/dist/types/api/modules/nine-pay/index.d.ts +24 -0
- package/dist/types/api/modules/paymaya/index.d.ts +24 -0
- package/dist/types/api/modules/risk/index.d.ts +8 -0
- package/dist/types/api/modules/sepa/index.d.ts +2 -1
- package/dist/types/api/modules/shopee-pay/index.d.ts +24 -0
- package/dist/types/api/modules/threeDS/index.d.ts +3 -0
- package/dist/types/api/modules/tng-wallet/index.d.ts +24 -0
- package/dist/types/api/modules/wechat-pay/index.d.ts +2 -1
- package/dist/types/components/Boost/Boost.d.ts +7 -0
- package/dist/types/components/Boost/index.d.ts +2 -0
- package/dist/types/components/Boost/type.d.ts +61 -0
- package/dist/types/components/CardNumberField/type.d.ts +7 -1
- package/dist/types/components/CombinedCardInfo/type.d.ts +1 -0
- package/dist/types/components/DropIn/components/PaymentTabs/type.d.ts +1 -1
- package/dist/types/components/DropIn/config.d.ts +7 -0
- package/dist/types/components/DropIn/type.d.ts +11 -3
- package/dist/types/components/GrabPay/GrabPay.d.ts +7 -0
- package/dist/types/components/GrabPay/index.d.ts +2 -0
- package/dist/types/components/GrabPay/type.d.ts +61 -0
- package/dist/types/components/GuideCard/GuideCard.d.ts +3 -0
- package/dist/types/components/GuideCard/index.d.ts +2 -0
- package/dist/types/components/GuideCard/type.d.ts +4 -0
- package/dist/types/components/LinePay/LinePay.d.ts +7 -0
- package/dist/types/components/LinePay/index.d.ts +2 -0
- package/dist/types/components/LinePay/type.d.ts +61 -0
- package/dist/types/components/MayBankQRPay/MayBankQRPay.d.ts +6 -0
- package/dist/types/components/MayBankQRPay/index.d.ts +2 -0
- package/dist/types/components/MayBankQRPay/type.d.ts +61 -0
- package/dist/types/components/NinePay/NinePay.d.ts +6 -0
- package/dist/types/components/NinePay/index.d.ts +2 -0
- package/dist/types/components/NinePay/type.d.ts +61 -0
- package/dist/types/components/SecuredFieldsProvider/type.d.ts +1 -1
- package/dist/types/components/SecuredIframe/useSecuredInput.d.ts +1 -1
- package/dist/types/components/ShopeePay/ShopeePay.d.ts +7 -0
- package/dist/types/components/ShopeePay/index.d.ts +2 -0
- package/dist/types/components/ShopeePay/type.d.ts +61 -0
- package/dist/types/components/SubmitButton/SubmitButton.d.ts +1 -1
- package/dist/types/components/TNGWallet/TNGWallet.d.ts +7 -0
- package/dist/types/components/TNGWallet/index.d.ts +2 -0
- package/dist/types/components/TNGWallet/type.d.ts +61 -0
- package/dist/types/components/ThreeDS/components/ThreeDSIframe/ThreeDSIframe.d.ts +1 -0
- package/dist/types/components/ThreeDS/components/ThreeDSIframe/output.d.ts +1 -1
- package/dist/types/components/ThreeDS/components/ThreeDSIframe/type.d.ts +13 -3
- package/dist/types/components/business/QRCodeModal/QRCodeModal.d.ts +3 -0
- package/dist/types/components/business/QRCodeModal/index.d.ts +2 -0
- package/dist/types/components/business/QRCodeModal/type.d.ts +18 -0
- package/dist/types/components/business/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +9 -0
- package/dist/types/components/internal/Accordion/Accordion.d.ts +3 -0
- package/dist/types/components/internal/Accordion/accordionTransition.d.ts +8 -0
- package/dist/types/components/internal/Accordion/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/dist/types/components/internal/Accordion/components/AccordionItem/index.d.ts +2 -0
- package/dist/types/components/internal/Accordion/components/AccordionItem/type.d.ts +18 -0
- package/dist/types/components/internal/Accordion/index.d.ts +3 -0
- package/dist/types/components/internal/Accordion/type.d.ts +18 -0
- package/dist/types/components/internal/Modal/type.d.ts +2 -0
- package/dist/types/components/internal/QRCode/QRCode.d.ts +2 -0
- package/dist/types/components/internal/QRCode/index.d.ts +2 -0
- package/dist/types/components/internal/QRCode/type.d.ts +9 -0
- package/dist/types/components/internal/Select/Select.d.ts +1 -17
- package/dist/types/components/internal/Select/type.d.ts +26 -1
- package/dist/types/components/internal/icons/IconBoost.d.ts +2 -0
- package/dist/types/components/internal/icons/IconCard2.d.ts +2 -0
- package/dist/types/components/internal/icons/IconGCash.d.ts +2 -0
- package/dist/types/components/internal/icons/IconGcashComplete.d.ts +2 -0
- package/dist/types/components/internal/icons/IconGrabPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconLinePay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconMayBankQRPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconNinePay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPaymaya.d.ts +2 -0
- package/dist/types/components/internal/icons/IconRedirect.d.ts +2 -0
- package/dist/types/components/internal/icons/IconScan.d.ts +2 -0
- package/dist/types/components/internal/icons/IconShopeePay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconTNGWallet.d.ts +2 -0
- package/dist/types/components/internal/icons/IconUnionPay.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +13 -0
- package/dist/types/components/wallets/GCash/GCash.d.ts +6 -0
- package/dist/types/components/wallets/GCash/index.d.ts +2 -0
- package/dist/types/components/wallets/GCash/type.d.ts +71 -0
- package/dist/types/components/wallets/Paymaya/Paymaya.d.ts +6 -0
- package/dist/types/components/wallets/Paymaya/index.d.ts +2 -0
- package/dist/types/components/wallets/Paymaya/type.d.ts +61 -0
- package/dist/types/config.d.ts +9 -9
- package/dist/types/constant.d.ts +28 -3
- package/dist/types/core/PayKKaCheckout.d.ts +10 -0
- package/dist/types/core/Session.d.ts +2 -0
- package/dist/types/core/error.d.ts +15 -2
- package/dist/types/core/query.d.ts +2 -2
- package/dist/types/hooks/usePayState.d.ts +5 -5
- package/dist/types/i18n/I18n.d.ts +1 -1
- package/dist/types/i18n/locales/de-DE.d.ts +13 -0
- package/dist/types/i18n/locales/en-GB.d.ts +13 -0
- package/dist/types/i18n/locales/es-ES.d.ts +13 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +13 -0
- package/dist/types/i18n/locales/index.d.ts +2 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +13 -0
- package/dist/types/i18n/locales/ko-KR.d.ts +13 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +71 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +13 -0
- package/dist/types/i18n/locales/ru-RU.d.ts +13 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +13 -0
- package/dist/types/i18n/locales/zh-HK.d.ts +13 -0
- package/dist/types/i18n/locales/zh-TW.d.ts +13 -0
- package/dist/types/i18n/util.d.ts +5 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/out/fraud-detection.d.ts +5 -1
- package/dist/types/out/types.d.ts +4 -0
- package/dist/types/out/worldpay-ddc-iframe.d.ts +1 -0
- package/dist/types/out/worldpay-ddc.d.ts +37 -0
- package/dist/types/types/event.d.ts +26 -0
- package/dist/types/types/fraud-detection.d.ts +3 -1
- package/dist/types/types/index.d.ts +23 -4
- package/dist/types/types/message.d.ts +22 -2
- package/dist/types/utils/array.d.ts +1 -0
- package/dist/types/utils/card-brand/brands.d.ts +4 -3
- package/dist/types/utils/card-brand/index.d.ts +9 -6
- package/dist/types/utils/card-brand/luhn.d.ts +9 -0
- package/dist/types/utils/date.d.ts +9 -0
- package/dist/types/utils/detect.d.ts +1 -0
- package/dist/types/utils/format.d.ts +7 -1
- package/dist/types/utils/iframe.d.ts +1 -1
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/types/utils/location.d.ts +7 -0
- package/dist/types/utils/object.d.ts +1 -0
- package/dist/types/utils/redirect.d.ts +5 -0
- package/dist/types/utils/reg-exp.d.ts +1 -0
- package/dist/types/utils/system-info/get-browser-info.d.ts +1 -1
- package/dist/types/utils/system-info/get-system-info.d.ts +3 -2
- package/dist/types/utils/system-info/index.d.ts +3 -3
- package/package.json +6 -2
package/dist/es/hooks/index.js
CHANGED
package/dist/es/hooks/useI18n.js
CHANGED
|
@@ -2,6 +2,7 @@ import { x, h } from "../core.js";
|
|
|
2
2
|
import { CoreContext } from "../core/context.js";
|
|
3
3
|
import "../utils/card-brand/brands.js";
|
|
4
4
|
import "../utils/system-info/get-browser-info.js";
|
|
5
|
+
import "../api/http.js";
|
|
5
6
|
import { I18n } from "../i18n/I18n.js";
|
|
6
7
|
function useI18n(locale) {
|
|
7
8
|
const coreContext = x(CoreContext);
|
|
@@ -5,9 +5,8 @@ import { customLocale, fraudDetectionEnv } from "../config.js";
|
|
|
5
5
|
import "../utils/card-brand/brands.js";
|
|
6
6
|
import { getBrowserInfo } from "../utils/system-info/get-browser-info.js";
|
|
7
7
|
import { getRealLocale } from "../i18n/util.js";
|
|
8
|
-
function usePayState(session) {
|
|
8
|
+
function usePayState(session, core) {
|
|
9
9
|
const [validated, setValidated] = h(false);
|
|
10
|
-
const [submitButtonStatus, setSubmitButtonStatus] = h("unSubmit");
|
|
11
10
|
const [errorMsg, setErrorMsg] = h("");
|
|
12
11
|
const [sessionReady, setSessionReady] = h(false);
|
|
13
12
|
const [fraudDetection, setFraudDetection] = h(null);
|
|
@@ -20,7 +19,12 @@ function usePayState(session) {
|
|
|
20
19
|
customLocale || ((_a = session.checkout) == null ? void 0 : _a.locale) || getBrowserInfo().language
|
|
21
20
|
);
|
|
22
21
|
i18n.load(locale);
|
|
23
|
-
const fraudDetection2 = getFraudDetectionInstance(fraudDetectionEnv
|
|
22
|
+
const fraudDetection2 = getFraudDetectionInstance(fraudDetectionEnv, void 0, {
|
|
23
|
+
onEvent: (type) => {
|
|
24
|
+
var _a2, _b;
|
|
25
|
+
(_b = core == null ? void 0 : (_a2 = core.config).onEvent) == null ? void 0 : _b.call(_a2, type);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
24
28
|
setFraudDetection(fraudDetection2);
|
|
25
29
|
fraudDetection2 == null ? void 0 : fraudDetection2.createFraudDetection();
|
|
26
30
|
});
|
|
@@ -28,8 +32,6 @@ function usePayState(session) {
|
|
|
28
32
|
return {
|
|
29
33
|
validated,
|
|
30
34
|
setValidated,
|
|
31
|
-
submitButtonStatus,
|
|
32
|
-
setSubmitButtonStatus,
|
|
33
35
|
errorMsg,
|
|
34
36
|
setErrorMsg,
|
|
35
37
|
i18n,
|
package/dist/es/i18n/I18n.js
CHANGED
|
@@ -23,9 +23,15 @@ const _I18n = class _I18n {
|
|
|
23
23
|
}
|
|
24
24
|
return _I18n.instance;
|
|
25
25
|
}
|
|
26
|
-
get(key) {
|
|
26
|
+
get(key, params) {
|
|
27
27
|
var _a;
|
|
28
|
-
|
|
28
|
+
let text = ((_a = this.translation) == null ? void 0 : _a[key]) ?? "";
|
|
29
|
+
if (params && typeof text === "string") {
|
|
30
|
+
Object.keys(params).forEach((paramKey) => {
|
|
31
|
+
text = text.replace(new RegExp(`{${paramKey}}`, "g"), String(params[paramKey]));
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return text;
|
|
29
35
|
}
|
|
30
36
|
get ready() {
|
|
31
37
|
return this.isReady;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const deDE = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "Nach der Übermittlung werden Sie zur Seite des Zahlungsanbieters weitergeleitet, um die folgenden Schritte sicher abzuschließen.",
|
|
4
|
+
"guideCard.scanQRCode": "Nach der Übermittlung des Auftrags verwenden Sie {method} zum Scannen des QR-Codes.",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "Bankkarte",
|
|
4
7
|
"dropIn.otherPaymentMethod": "Andere Zahlungsmethode",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "Kartennummer",
|
|
7
19
|
"card.cardNumber.incomplete": "Ihre Kartennummer ist unvollständig",
|
|
@@ -66,7 +78,10 @@ const deDE = {
|
|
|
66
78
|
"threeDS.completeFirst": "bitte vervollständigen Sie zunächst die Bearbeitung.",
|
|
67
79
|
"threeDS.authenticationSuccessful": "Authentifizierung erfolgreich,",
|
|
68
80
|
"threeDS.authenticationFailed": "Authentifizierung fehlgeschlagen,",
|
|
69
|
-
"threeDS.returnToCheckout": "Rückkehr erfolgt in Kürze."
|
|
81
|
+
"threeDS.returnToCheckout": "Rückkehr erfolgt in Kürze.",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "Der QR-Code ist abgelaufen.",
|
|
84
|
+
"qrCode.scanByGcash": "QR-Code mit GCash scannen"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
deDE as default
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const enGB = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "After submission, you will be redirected to the payment method provider's page to safely complete the subsequent steps.",
|
|
4
|
+
"guideCard.scanQRCode": "After submitting the order, use {method} to scan the QR code.",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "Bank card",
|
|
4
7
|
"dropIn.otherPaymentMethod": "Other payment method",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "Card number",
|
|
7
19
|
"card.cardNumber.incomplete": "Your card number is incomplete",
|
|
@@ -66,7 +78,10 @@ const enGB = {
|
|
|
66
78
|
"threeDS.completeFirst": "please complete the processing first.",
|
|
67
79
|
"threeDS.authenticationSuccessful": "Authentication successful,",
|
|
68
80
|
"threeDS.authenticationFailed": "Authentication failed,",
|
|
69
|
-
"threeDS.returnToCheckout": "returning shortly."
|
|
81
|
+
"threeDS.returnToCheckout": "returning shortly.",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "The QR code has expired.",
|
|
84
|
+
"qrCode.scanByGcash": "Scan QR code with GCash"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
enGB as default
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const esES = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "Después de la presentación, serás redirigido a la página del proveedor del método de pago para completar de manera segura los pasos posteriores.",
|
|
4
|
+
"guideCard.scanQRCode": "Después de la presentación del pedido, usa {method} para escanear el código QR.",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "Tarjeta bancaria",
|
|
4
7
|
"dropIn.otherPaymentMethod": "Otro método de pago",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "Número de tarjeta",
|
|
7
19
|
"card.cardNumber.incomplete": "Tu número de tarjeta está incompleto",
|
|
@@ -66,7 +78,10 @@ const esES = {
|
|
|
66
78
|
"threeDS.completeFirst": "por favor completa el proceso primero.",
|
|
67
79
|
"threeDS.authenticationSuccessful": "Autenticación exitosa,",
|
|
68
80
|
"threeDS.authenticationFailed": "Autenticación fallida,",
|
|
69
|
-
"threeDS.returnToCheckout": "volviendo en breve."
|
|
81
|
+
"threeDS.returnToCheckout": "volviendo en breve.",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "El código QR ha expirado.",
|
|
84
|
+
"qrCode.scanByGcash": "Escanear el código QR con GCash"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
esES as default
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const frFR = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "Après la soumission, vous serez redirigé vers la page du fournisseur de méthode de paiement pour compléter les étapes suivantes en toute sécurité.",
|
|
4
|
+
"guideCard.scanQRCode": "Après la soumission du commande, utilisez {method} pour scanner le code QR.",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "Carte bancaire",
|
|
4
7
|
"dropIn.otherPaymentMethod": "Autre méthode de paiement",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "Numéro de carte",
|
|
7
19
|
"card.cardNumber.incomplete": "Votre numéro de carte est incomplet",
|
|
@@ -66,7 +78,10 @@ const frFR = {
|
|
|
66
78
|
"threeDS.completeFirst": "veuillez d'abord compléter le traitement.",
|
|
67
79
|
"threeDS.authenticationSuccessful": "Authentification réussie,",
|
|
68
80
|
"threeDS.authenticationFailed": "Authentification échouée,",
|
|
69
|
-
"threeDS.returnToCheckout": "retour imminent."
|
|
81
|
+
"threeDS.returnToCheckout": "retour imminent.",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "Le code QR a expiré.",
|
|
84
|
+
"qrCode.scanByGcash": "Scanner le code QR avec GCash"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
frFR as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const getLocales = () => {
|
|
2
|
-
return Object.entries(/* @__PURE__ */ Object.assign({ "./de-DE.ts": () => import("./de-DE.js"), "./en-GB.ts": () => import("./en-GB.js"), "./es-ES.ts": () => import("./es-ES.js"), "./fr-FR.ts": () => import("./fr-FR.js"), "./ja-JP.ts": () => import("./ja-JP.js"), "./ko-KR.ts": () => import("./ko-KR.js"), "./pt-PT.ts": () => import("./pt-PT.js"), "./ru-RU.ts": () => import("./ru-RU.js"), "./zh-CN.ts": () => import("./zh-CN.js"), "./zh-HK.ts": () => import("./zh-HK.js"), "./zh-TW.ts": () => import("./zh-TW.js") })).reduce((prev, [path, loader]) => {
|
|
2
|
+
return Object.entries(/* @__PURE__ */ Object.assign({ "./de-DE.ts": () => import("./de-DE.js"), "./en-GB.ts": () => import("./en-GB.js"), "./es-ES.ts": () => import("./es-ES.js"), "./fr-FR.ts": () => import("./fr-FR.js"), "./ja-JP.ts": () => import("./ja-JP.js"), "./ko-KR.ts": () => import("./ko-KR.js"), "./nl-NL.ts": () => import("./nl-NL.js"), "./pt-PT.ts": () => import("./pt-PT.js"), "./ru-RU.ts": () => import("./ru-RU.js"), "./zh-CN.ts": () => import("./zh-CN.js"), "./zh-HK.ts": () => import("./zh-HK.js"), "./zh-TW.ts": () => import("./zh-TW.js") })).reduce((prev, [path, loader]) => {
|
|
3
3
|
const key = path.match(/\.\/(.+)\./)[1];
|
|
4
4
|
prev[key] = loader;
|
|
5
5
|
return prev;
|
|
@@ -12,6 +12,7 @@ var LocaleKey = /* @__PURE__ */ ((LocaleKey2) => {
|
|
|
12
12
|
LocaleKey2["frFR"] = "fr-FR";
|
|
13
13
|
LocaleKey2["jaJP"] = "ja-JP";
|
|
14
14
|
LocaleKey2["koKR"] = "ko-KR";
|
|
15
|
+
LocaleKey2["nlNL"] = "nl-NL";
|
|
15
16
|
LocaleKey2["ptPT"] = "pt-PT";
|
|
16
17
|
LocaleKey2["ruRU"] = "ru-RU";
|
|
17
18
|
LocaleKey2["zhCN"] = "zh-CN";
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const jaJP = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "送信後、安全に次の手順を完了するために、支払い方法提供者のページにリダイレクトされます。",
|
|
4
|
+
"guideCard.scanQRCode": "注文を送信した後、{method}を使用してQRコードをスキャンしてください。",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "銀行カード",
|
|
4
7
|
"dropIn.otherPaymentMethod": "他の支払い方法",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "カード番号",
|
|
7
19
|
"card.cardNumber.incomplete": "カード番号が不完全です",
|
|
@@ -66,7 +78,10 @@ const jaJP = {
|
|
|
66
78
|
"threeDS.completeFirst": "まず処理を完了してください。",
|
|
67
79
|
"threeDS.authenticationSuccessful": "認証に成功しました。",
|
|
68
80
|
"threeDS.authenticationFailed": "認証に失敗しました。",
|
|
69
|
-
"threeDS.returnToCheckout": "まもなく戻ります。"
|
|
81
|
+
"threeDS.returnToCheckout": "まもなく戻ります。",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "QRコードが期限切れです。",
|
|
84
|
+
"qrCode.scanByGcash": "Gcashでスキャン"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
jaJP as default
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const koKR = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "제출 후, 결제 방법 제공자의 페이지로 리디렉션되어 이후 단계를 안전하게 완료할 수 있습니다.",
|
|
4
|
+
"guideCard.scanQRCode": "주문 제출 후, {method}를 사용하여 QR 코드를 스캔하세요.",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "은행 카드",
|
|
4
7
|
"dropIn.otherPaymentMethod": "기타 결제 방법",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "카드 번호",
|
|
7
19
|
"card.cardNumber.incomplete": "카드 번호가 불완전합니다",
|
|
@@ -66,7 +78,10 @@ const koKR = {
|
|
|
66
78
|
"threeDS.completeFirst": "먼저 처리를 완료해 주세요.",
|
|
67
79
|
"threeDS.authenticationSuccessful": "인증이 성공했습니다,",
|
|
68
80
|
"threeDS.authenticationFailed": "인증이 실패했습니다,",
|
|
69
|
-
"threeDS.returnToCheckout": "곧 돌아갑니다."
|
|
81
|
+
"threeDS.returnToCheckout": "곧 돌아갑니다.",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "QR 코드가 만료되었습니다.",
|
|
84
|
+
"qrCode.scanByGcash": "GCash 스캔"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
koKR as default
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
const nlNL = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "Na het indienen wordt u doorgestuurd naar de pagina van de betalingsmethode provider om de volgende stappen veilig te voltooien.",
|
|
4
|
+
"guideCard.scanQRCode": "Na het indienen van de bestelling, gebruik {method} om de QR-code te scannen.",
|
|
5
|
+
// Drop In
|
|
6
|
+
"dropIn.card.label": "Bankkaart",
|
|
7
|
+
"dropIn.otherPaymentMethod": "Andere betaalmethode",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
17
|
+
// card number
|
|
18
|
+
"card.cardNumber.label": "Kaartnummer",
|
|
19
|
+
"card.cardNumber.incomplete": "Uw kaartnummer is onvolledig",
|
|
20
|
+
"card.cardNumber.invalid": "Uw kaartnummer is ongeldig",
|
|
21
|
+
"card.cardNumber.placeholder": "1234 5678 9012 3456",
|
|
22
|
+
// card expire date
|
|
23
|
+
"card.cardExpireDate.label": "Vervaldatum",
|
|
24
|
+
"card.cardExpireDate.placeholder": "MM/JJ",
|
|
25
|
+
"card.cardExpireDate.incomplete": "Uw kaart vervaldatum is onvolledig",
|
|
26
|
+
"card.cardExpireDate.expired": "Uw kaart is verlopen",
|
|
27
|
+
// card security code
|
|
28
|
+
"card.cardSecurityCode.label": "CVC/CVV",
|
|
29
|
+
"card.cardSecurityCode.placeholder": "123",
|
|
30
|
+
"card.cardSecurityCode.incomplete": "Uw kaart beveiligingscode is onvolledig",
|
|
31
|
+
// card holder name
|
|
32
|
+
"card.cardHolderName.label": "Kaarthouder naam",
|
|
33
|
+
"card.cardHolderName.placeholder": "Volledige naam op kaart",
|
|
34
|
+
"card.cardHolderName.incomplete": "Uw naam is onvolledig",
|
|
35
|
+
// card selector
|
|
36
|
+
"card.cardSelector.change": "Wijzigen",
|
|
37
|
+
"card.cardSelector.useOtherCard": "Andere kaart gebruiken",
|
|
38
|
+
"card.storeInfo": "Sla mijn kaartgegevens op voor toekomstig gebruik",
|
|
39
|
+
// card info
|
|
40
|
+
"card.info.label": "Kaartinformatie",
|
|
41
|
+
// common
|
|
42
|
+
"common.pay": "Nu kopen",
|
|
43
|
+
"common.payProcessing": "Verwerken...",
|
|
44
|
+
"common.paySuccess": "Betaling succesvol",
|
|
45
|
+
"common.payTimeout": "Verbinding verbroken",
|
|
46
|
+
"common.pay3DSIncomplete": "3DS Authenticatie onvolledig",
|
|
47
|
+
"common.queryTimeout": "Query time-out. Vernieuw de pagina of betaal opnieuw",
|
|
48
|
+
"common.generateQrCode": "QR-code genereren",
|
|
49
|
+
"common.recurringTip": "Door voor deze bestelling te betalen, machtigt u de handelaar om in de toekomst automatisch uw bankkaart te belasten volgens de voorwaarden.",
|
|
50
|
+
"common.noData": "Geen gegevens",
|
|
51
|
+
"common.netError": "Netwerkfout",
|
|
52
|
+
"common.unknownError": "Onbekende fout",
|
|
53
|
+
"common.cancel": "Annuleren",
|
|
54
|
+
"common.confirm": "Bevestigen",
|
|
55
|
+
// common email
|
|
56
|
+
"common.email.label": "E-mail",
|
|
57
|
+
"common.email.incomplete": "Voer uw e-mailadres in",
|
|
58
|
+
"common.email.incorrect": "Incorrect e-mailadres",
|
|
59
|
+
// common account name
|
|
60
|
+
"common.accountName.label": "Accountnaam",
|
|
61
|
+
"common.accountName.placeholder": "Volledige naam op het account",
|
|
62
|
+
"common.accountName.incomplete": "Uw naam is onvolledig",
|
|
63
|
+
// address
|
|
64
|
+
"address.label": "Factuuradres",
|
|
65
|
+
"address.country": "Land/Regio",
|
|
66
|
+
"address.address1": "Regel 1",
|
|
67
|
+
"address.address2": "Regel 2",
|
|
68
|
+
"address.city": "Stad",
|
|
69
|
+
"address.postCode": "Postcode",
|
|
70
|
+
"address.province": "Staat/Provincie",
|
|
71
|
+
"address.area": "District/Graafschap",
|
|
72
|
+
// sepa
|
|
73
|
+
"sepa.iban.label": "IBAN",
|
|
74
|
+
"sepa.iban.placeholder": "NL00 BANK 0000 0000 00",
|
|
75
|
+
"sepa.iban.invalid": "Uw ingevoerde IBAN is ongeldig",
|
|
76
|
+
// threeDS
|
|
77
|
+
"threeDS.paymentIncomplete": "Uw laatste betaling is onvolledig, ",
|
|
78
|
+
"threeDS.completeFirst": "voltooi eerst de verwerking.",
|
|
79
|
+
"threeDS.authenticationSuccessful": "Authenticatie succesvol,",
|
|
80
|
+
"threeDS.authenticationFailed": "Authenticatie mislukt,",
|
|
81
|
+
"threeDS.returnToCheckout": "binnenkort terugkeren.",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "De QR-code is verlopen.",
|
|
84
|
+
"qrCode.scanByGcash": "Scan QR-code met GCash"
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
nlNL as default
|
|
88
|
+
};
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const ptPT = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "Após a submissão, você será redirecionado para a página do provedor do método de pagamento para concluir com segurança os passos subsequentes.",
|
|
4
|
+
"guideCard.scanQRCode": "Após a submissão do pedido, use {method} para escanear o código QR.",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "Cartão bancário",
|
|
4
7
|
"dropIn.otherPaymentMethod": "Outro método de pagamento",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "Número do cartão",
|
|
7
19
|
"card.cardNumber.incomplete": "O número do seu cartão está incompleto",
|
|
@@ -66,7 +78,10 @@ const ptPT = {
|
|
|
66
78
|
"threeDS.completeFirst": "por favor, conclua o processamento primeiro.",
|
|
67
79
|
"threeDS.authenticationSuccessful": "Autenticação bem-sucedida,",
|
|
68
80
|
"threeDS.authenticationFailed": "Autenticação falhou,",
|
|
69
|
-
"threeDS.returnToCheckout": "a regressar em breve."
|
|
81
|
+
"threeDS.returnToCheckout": "a regressar em breve.",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "O código QR expirou.",
|
|
84
|
+
"qrCode.scanByGcash": "Escaneie o código QR com GCash"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
ptPT as default
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const ruRU = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "После отправки вы будете перенаправлены на страницу поставщика платежного метода для безопасного завершения последующих шагов.",
|
|
4
|
+
"guideCard.scanQRCode": "После отправки заказа, используйте {method} для сканирования QR-кода.",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "Банковская карта",
|
|
4
7
|
"dropIn.otherPaymentMethod": "Другой способ оплаты",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "Номер карты",
|
|
7
19
|
"card.cardNumber.incomplete": "Ваш номер карты неполный",
|
|
@@ -66,7 +78,10 @@ const ruRU = {
|
|
|
66
78
|
"threeDS.completeFirst": "пожалуйста, завершите его в первую очередь.",
|
|
67
79
|
"threeDS.authenticationSuccessful": "Аутентификация успешна,",
|
|
68
80
|
"threeDS.authenticationFailed": "Аутентификация не удалась,",
|
|
69
|
-
"threeDS.returnToCheckout": "скоро возврат."
|
|
81
|
+
"threeDS.returnToCheckout": "скоро возврат.",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "Срок действия QR-кода истек.",
|
|
84
|
+
"qrCode.scanByGcash": "Сканируйте QR-кодом с GCash"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
ruRU as default
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const zhCN = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "提交后,您将被跳转到支付方式品牌方的页面,安全地完成后续步骤。",
|
|
4
|
+
"guideCard.scanQRCode": "提交订单后,用{method}扫描二维码。",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "银行卡",
|
|
4
7
|
"dropIn.otherPaymentMethod": "其他支付方式",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "卡号",
|
|
7
19
|
"card.cardNumber.incomplete": "您的卡号不完整",
|
|
@@ -66,7 +78,10 @@ const zhCN = {
|
|
|
66
78
|
"threeDS.completeFirst": "请先完成处理",
|
|
67
79
|
"threeDS.authenticationSuccessful": "认证成功,",
|
|
68
80
|
"threeDS.authenticationFailed": "认证失败,",
|
|
69
|
-
"threeDS.returnToCheckout": "即将返回"
|
|
81
|
+
"threeDS.returnToCheckout": "即将返回",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "二维码过期",
|
|
84
|
+
"qrCode.scanByGcash": "用Gcash扫码"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
zhCN as default
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const zhHK = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "提交後,您將被跳轉到支付方式品牌方的頁面,安全地完成後續步驟。",
|
|
4
|
+
"guideCard.scanQRCode": "提交訂單後,用{method}掃描二維碼。",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "銀行卡",
|
|
4
7
|
"dropIn.otherPaymentMethod": "其他支付方式",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "卡號",
|
|
7
19
|
"card.cardNumber.incomplete": "您的卡號不完整",
|
|
@@ -66,7 +78,10 @@ const zhHK = {
|
|
|
66
78
|
"threeDS.completeFirst": "請先完成處理",
|
|
67
79
|
"threeDS.authenticationSuccessful": "認證成功,",
|
|
68
80
|
"threeDS.authenticationFailed": "認證失敗,",
|
|
69
|
-
"threeDS.returnToCheckout": "即將返回"
|
|
81
|
+
"threeDS.returnToCheckout": "即將返回",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "二維碼過期",
|
|
84
|
+
"qrCode.scanByGcash": "用Gcash掃碼"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
zhHK as default
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const zhTW = {
|
|
2
|
+
// guide card
|
|
3
|
+
"guideCard.redirectDescription": "提交後,您將被跳轉到支付方式品牌方的頁面,安全地完成後續步驟。",
|
|
4
|
+
"guideCard.scanQRCode": "提交訂單後,用{method}掃描二維碼。",
|
|
2
5
|
// Drop In
|
|
3
6
|
"dropIn.card.label": "銀行卡",
|
|
4
7
|
"dropIn.otherPaymentMethod": "其他支付方式",
|
|
8
|
+
"dropIn.boost.label": "Boost",
|
|
9
|
+
"dropIn.TNGWallet.label": "Touch 'n Go eWallet",
|
|
10
|
+
"dropIn.shopeePay.label": "ShopeePay",
|
|
11
|
+
"dropIn.mayBankQRPay.label": "Maybank QRPay",
|
|
12
|
+
"dropIn.grabPay.label": "GrabPay",
|
|
13
|
+
"dropIn.linePay.label": "LinePay",
|
|
14
|
+
"dropIn.ninePay.label": "9Pay",
|
|
15
|
+
"dropIn.gcash.label": "GCash",
|
|
16
|
+
"dropIn.paymaya.label": "Paymaya",
|
|
5
17
|
// card number
|
|
6
18
|
"card.cardNumber.label": "卡號",
|
|
7
19
|
"card.cardNumber.incomplete": "您的卡號不完整",
|
|
@@ -66,7 +78,10 @@ const zhTW = {
|
|
|
66
78
|
"threeDS.completeFirst": "請先完成處理",
|
|
67
79
|
"threeDS.authenticationSuccessful": "認證成功,",
|
|
68
80
|
"threeDS.authenticationFailed": "認證失敗,",
|
|
69
|
-
"threeDS.returnToCheckout": "即將返回"
|
|
81
|
+
"threeDS.returnToCheckout": "即將返回",
|
|
82
|
+
// qrCode
|
|
83
|
+
"qrCode.expired": "二維碼過期",
|
|
84
|
+
"qrCode.scanByGcash": "用Gcash掃碼"
|
|
70
85
|
};
|
|
71
86
|
export {
|
|
72
87
|
zhTW as default
|
package/dist/es/i18n/util.js
CHANGED
|
@@ -34,14 +34,23 @@ function getTranslation(locale, customLocales) {
|
|
|
34
34
|
return translation;
|
|
35
35
|
}
|
|
36
36
|
const getRealLocale = (locale) => {
|
|
37
|
+
let realLocale = getLocalKey(locale);
|
|
38
|
+
if (!realLocale) {
|
|
39
|
+
realLocale = getLocalKey(getBrowserInfo().language);
|
|
40
|
+
}
|
|
41
|
+
return realLocale || LocaleKey.enGB;
|
|
42
|
+
};
|
|
43
|
+
const getLocalKey = (locale) => {
|
|
37
44
|
const localeList = Object.values(LocaleKey);
|
|
38
45
|
if (localeList.includes(locale)) {
|
|
39
46
|
return locale;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
} else {
|
|
47
|
+
}
|
|
48
|
+
if (locale == null ? void 0 : locale.toLowerCase().startsWith("en")) {
|
|
43
49
|
return LocaleKey.enGB;
|
|
50
|
+
} else if (locale == null ? void 0 : locale.toLowerCase().startsWith("zh")) {
|
|
51
|
+
return LocaleKey.zhCN;
|
|
44
52
|
}
|
|
53
|
+
return void 0;
|
|
45
54
|
};
|
|
46
55
|
async function loadTranslation(locale, customLocales) {
|
|
47
56
|
let translation = getTranslation(locale);
|
package/dist/es/index.js
CHANGED
|
@@ -18,6 +18,15 @@ import { IBANField } from "./components/CardIBANField/index.js";
|
|
|
18
18
|
import { EEncryptedCardType, ENCRYPTED_CARD_ITEM_ATTR, ENCRYPTED_CARD_WRAPPER_ID, EncryptedCard, PayKKaEncryptedCard } from "./components/EncryptedCard/index.js";
|
|
19
19
|
import { CombinedCardInfo } from "./components/CombinedCardInfo/index.js";
|
|
20
20
|
import { DropIn, PaymentComponentMap, dropInSupportedPaymentMethods } from "./components/DropIn/index.js";
|
|
21
|
+
import { Boost } from "./components/Boost/index.js";
|
|
22
|
+
import { LinePay } from "./components/LinePay/index.js";
|
|
23
|
+
import { MayBankQRPay } from "./components/MayBankQRPay/index.js";
|
|
24
|
+
import { NinePay } from "./components/NinePay/index.js";
|
|
25
|
+
import { GrabPay } from "./components/GrabPay/index.js";
|
|
26
|
+
import { TNGWallet } from "./components/TNGWallet/index.js";
|
|
27
|
+
import { ShopeePay } from "./components/ShopeePay/index.js";
|
|
28
|
+
import { GCash } from "./components/wallets/GCash/GCash.js";
|
|
29
|
+
import { Paymaya } from "./components/wallets/Paymaya/Paymaya.js";
|
|
21
30
|
import "./core/context.js";
|
|
22
31
|
import { create } from "./core/create.js";
|
|
23
32
|
import { Session } from "./core/Session.js";
|
|
@@ -30,9 +39,12 @@ import { setApiUrl, setCDNUrl, setCheckoutConfig, setCustomLocale, setCustomReqH
|
|
|
30
39
|
import "./utils/card-brand/brands.js";
|
|
31
40
|
import { getFingerprint } from "./utils/system-info/finger-print.js";
|
|
32
41
|
import "./utils/system-info/get-browser-info.js";
|
|
42
|
+
import { PaymentMethod } from "./constant.js";
|
|
43
|
+
import { redirectToPayment } from "./utils/redirect.js";
|
|
33
44
|
export {
|
|
34
45
|
AliPay,
|
|
35
46
|
ApplePay,
|
|
47
|
+
Boost,
|
|
36
48
|
Card,
|
|
37
49
|
CardBrands,
|
|
38
50
|
CardExpireDateField,
|
|
@@ -47,23 +59,33 @@ export {
|
|
|
47
59
|
ENCRYPTED_CARD_ITEM_ATTR,
|
|
48
60
|
ENCRYPTED_CARD_WRAPPER_ID,
|
|
49
61
|
EncryptedCard,
|
|
62
|
+
GCash,
|
|
50
63
|
GooglePay,
|
|
64
|
+
GrabPay,
|
|
51
65
|
I18n,
|
|
52
66
|
IBANField,
|
|
67
|
+
LinePay,
|
|
53
68
|
LocaleKey,
|
|
69
|
+
MayBankQRPay,
|
|
70
|
+
NinePay,
|
|
54
71
|
PayKKaCheckout,
|
|
55
72
|
PayKKaEncryptedCard,
|
|
56
73
|
PayKKaError,
|
|
74
|
+
Paymaya,
|
|
57
75
|
PaymentComponentMap,
|
|
76
|
+
PaymentMethod,
|
|
58
77
|
SecuredIframe,
|
|
59
78
|
Sepa,
|
|
60
79
|
Session,
|
|
80
|
+
ShopeePay,
|
|
61
81
|
SubmitButton,
|
|
82
|
+
TNGWallet,
|
|
62
83
|
WechatPay,
|
|
63
84
|
create,
|
|
64
85
|
dropInSupportedPaymentMethods,
|
|
65
86
|
getFingerprint,
|
|
66
87
|
querySession,
|
|
88
|
+
redirectToPayment,
|
|
67
89
|
setApiUrl,
|
|
68
90
|
setCDNUrl,
|
|
69
91
|
setCheckoutConfig,
|