@paykka/card-checkout-ui 0.14.0 → 0.15.1
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/README.md +1 -1
- package/dist/card-checkout-ui.js +20 -20
- package/dist/card-checkout-ui.umd.cjs +20 -20
- package/dist/es/api/http.js +1 -1
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/modules/checkout/index.js +1 -3
- package/dist/es/api/modules/checkout/map.js +12 -4
- package/dist/es/api/modules/encrypted-card/index.js +3 -2
- package/dist/es/api/modules/get-browser-params.js +4 -5
- package/dist/es/api/modules/index.js +1 -1
- package/dist/es/api/modules/map.js +4 -1
- package/dist/es/components/AccordionItem/AccordionItem.js +1 -1
- package/dist/es/components/AccountNameField/index.js +1 -1
- package/dist/es/components/AddressField/index.js +1 -1
- package/dist/es/components/ApplePay/index.js +34 -21
- package/dist/es/components/CPFField/index.js +1 -1
- package/dist/es/components/Card/index.js +38 -30
- package/dist/es/components/CardBrands/index.js +1 -1
- package/dist/es/components/CardExpireDateField/index.js +1 -1
- package/dist/es/components/CardHolderNameField/index.js +1 -1
- package/dist/es/components/CardIBANField/index.js +1 -1
- package/dist/es/components/CardNo/index.js +1 -1
- package/dist/es/components/CardNumberField/index.js +1 -1
- package/dist/es/components/CardSecurityCodeField/index.js +1 -1
- package/dist/es/components/CardSelector/index.js +2 -2
- package/dist/es/components/CombinedCardInfo/index.js +1 -1
- package/dist/es/components/DropIn/index.js +117 -123
- package/dist/es/components/EmailField/EmailField.js +1 -1
- package/dist/es/components/EncryptedCard/index.js +5 -5
- package/dist/es/components/GooglePay/index.js +32 -29
- package/dist/es/components/GuideCard/index.js +2 -2
- package/dist/es/components/PaymentButton/index.js +22 -7
- package/dist/es/components/RecurringTip/index.js +1 -1
- package/dist/es/components/SecuredIframe/index.js +3 -4
- package/dist/es/components/Sepa/index.js +15 -7
- package/dist/es/components/SubmitButton/index.js +2 -2
- package/dist/es/components/ThreeDS/index.js +32 -20
- package/dist/es/components/Tip/index.js +1 -1
- package/dist/es/components/business/BlikCodeField/BlikCodeField.js +1 -1
- package/dist/es/components/business/BlikCodeField/index.js +1 -1
- package/dist/es/components/business/BlikConfirmModal/BlikConfirmModal.js +3 -3
- package/dist/es/components/business/BlikConfirmModal/index.js +2 -2
- package/dist/es/components/business/NameField/NameField.js +1 -1
- package/dist/es/components/business/NameField/index.js +1 -1
- package/dist/es/components/business/PhoneField/PhoneField.js +1 -1
- package/dist/es/components/business/PhoneField/index.js +1 -1
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +2 -2
- package/dist/es/components/business/QRCodeModal/index.js +1 -1
- package/dist/es/components/business/Tooltip/Tooltip.js +1 -1
- package/dist/es/components/business/Tooltip/index.js +1 -1
- package/dist/es/components/business/index.js +2 -2
- package/dist/es/components/index.js +4 -4
- package/dist/es/components/internal/Accordion/index.js +1 -1
- package/dist/es/components/internal/Button/{Button.js → Button2.js} +2 -2
- package/dist/es/components/internal/Button/index.js +2 -2
- package/dist/es/components/internal/CheckBox/CheckBox.js +1 -1
- package/dist/es/components/internal/CheckBox/index.js +1 -1
- package/dist/es/components/internal/Form/type.js +1 -1
- package/dist/es/components/internal/Info/Info.js +1 -1
- package/dist/es/components/internal/Info/index.js +1 -1
- package/dist/es/components/internal/Input/type.js +1 -1
- package/dist/es/components/internal/Loading/Loading2.js +20 -0
- package/dist/es/{api/modules/line-pay → components/internal/Loading}/index.js +3 -2
- package/dist/es/components/internal/Loading/loading.js +1 -0
- package/dist/es/components/internal/LoadingCheck/LoadingCheck.js +1 -1
- package/dist/es/components/internal/LoadingCheck/index.js +1 -1
- package/dist/es/components/internal/Modal/Modal.js +1 -1
- package/dist/es/components/internal/QRCode/QRCode.js +1 -1
- package/dist/es/components/internal/QRCode/index.js +1 -1
- package/dist/es/components/internal/Select/Select.js +1 -1
- package/dist/es/components/internal/Select/SelectMenu.js +1 -1
- package/dist/es/components/internal/Select/SelectMenuItem.js +1 -1
- package/dist/es/components/internal/icons/IconAlipayPlus.js +116 -0
- package/dist/es/components/internal/icons/IconError.js +2 -2
- package/dist/es/components/internal/icons/IconSuccess.js +2 -2
- package/dist/es/components/internal/icons/IconWechatPayGlobal.js +45 -0
- package/dist/es/components/internal/icons/IconWechatPayGlobalComplete.js +107 -0
- package/dist/es/components/wallets/AliPay/AliPay.js +186 -0
- package/dist/es/components/wallets/AliPay/ali-pay.js +1 -0
- package/dist/es/components/wallets/AliPay/index.js +1 -0
- package/dist/es/components/wallets/AliPay/type.js +1 -0
- package/dist/es/components/wallets/Bancontact/Bancontact.js +7 -10
- package/dist/es/components/wallets/Blik/Blik.js +14 -11
- package/dist/es/components/wallets/Boost/Boost.js +6 -9
- package/dist/es/components/wallets/GCash/GCash.js +7 -10
- package/dist/es/components/wallets/GrabPay/GrabPay.js +7 -14
- package/dist/es/components/wallets/IDeal/IDeal.js +7 -10
- package/dist/es/components/wallets/LinePay/LinePay.js +6 -9
- package/dist/es/components/wallets/MayBankQRPay/MayBankQRPay.js +6 -9
- package/dist/es/components/wallets/NinePay/NinePay.js +6 -9
- package/dist/es/components/wallets/OVO/OVO.js +7 -10
- package/dist/es/components/wallets/OpayWallet/OpayWallet.js +6 -9
- package/dist/es/components/wallets/P24/P24.js +7 -10
- package/dist/es/components/wallets/PagaWallet/PagaWallet.js +6 -9
- package/dist/es/components/wallets/Paymaya/Paymaya.js +6 -9
- package/dist/es/components/wallets/PicPay/PicPay.js +54 -217
- package/dist/es/components/wallets/Pix/Pix.js +54 -217
- package/dist/es/components/wallets/ShopeePay/ShopeePay.js +6 -9
- package/dist/es/components/wallets/Skrill/Skrill.js +7 -10
- package/dist/es/components/wallets/TNGWallet/TNGWallet.js +6 -9
- package/dist/es/components/wallets/Trustly/Trustly.js +7 -10
- package/dist/es/components/wallets/Vietqr/Vietqr.js +14 -15
- package/dist/es/components/wallets/WechatPay/WechatPay.js +250 -0
- package/dist/es/components/wallets/WechatPay/index.js +1 -0
- package/dist/es/components/wallets/WechatPay/type.js +1 -0
- package/dist/es/components/wallets/WechatPay/util.js +47 -0
- package/dist/es/components/wallets/WechatPay/wechat-pay.js +1 -0
- package/dist/es/components/wallets/Zalopay/Zalopay.js +10 -13
- package/dist/es/components/wallets/index.js +2 -0
- package/dist/es/constant.js +7 -0
- package/dist/es/core/checkout.js +36 -9
- package/dist/es/core/create-child.js +5 -4
- package/dist/es/core/index.js +1 -1
- package/dist/es/core/logger.js +1 -1
- package/dist/es/core/payment.js +13 -0
- package/dist/es/core/preview.js +29 -0
- package/dist/es/core/query.js +12 -3
- package/dist/es/core/session.js +36 -6
- package/dist/es/core/theme.js +1 -1
- package/dist/es/hooks/index.js +1 -1
- package/dist/es/hooks/useBaseWallet.js +121 -52
- package/dist/es/hooks/useI18n.js +3 -3
- package/dist/es/i18n/locales/de-DE.js +7 -0
- package/dist/es/i18n/locales/en-GB.js +7 -0
- package/dist/es/i18n/locales/es-ES.js +7 -0
- package/dist/es/i18n/locales/fr-FR.js +7 -0
- package/dist/es/i18n/locales/ja-JP.js +7 -0
- package/dist/es/i18n/locales/ko-KR.js +7 -0
- package/dist/es/i18n/locales/nl-NL.js +7 -0
- package/dist/es/i18n/locales/pt-PT.js +7 -0
- package/dist/es/i18n/locales/ru-RU.js +7 -0
- package/dist/es/i18n/locales/zh-CN.js +7 -0
- package/dist/es/i18n/locales/zh-HK.js +7 -0
- package/dist/es/i18n/locales/zh-TW.js +7 -0
- package/dist/es/i18n/util.js +10 -10
- package/dist/es/index.js +7 -5
- package/dist/es/out/base-fraud-detection.js +1 -1
- package/dist/es/out/fraud-detection.js +59 -44
- package/dist/es/out/paykka-detection.js +5 -7
- package/dist/es/out/stripe-radar.js +1 -1
- package/dist/es/out/worldpay-ddc-manager.js +3 -0
- package/dist/es/out/worldpay-ddc.js +1 -1
- package/dist/es/style.css +1 -1
- package/dist/es/types/event.js +10 -1
- package/dist/es/types/index.js +7 -0
- package/dist/es/utils/array.js +19 -5
- package/dist/es/utils/business/amount.js +15 -0
- package/dist/es/utils/business/index.js +1 -0
- package/dist/es/utils/detect.js +8 -0
- package/dist/es/utils/index.js +7 -9
- package/dist/es/utils/location.js +8 -0
- package/dist/es/utils/number.js +19 -0
- package/dist/es/utils/redirect.js +2 -0
- package/dist/style.css +1 -1
- package/dist/types/api/modules/checkout/type.d.ts +1 -1
- package/dist/types/api/modules/index.d.ts +0 -17
- package/dist/types/api/modules/threeDS/index.d.ts +13 -5
- package/dist/types/components/ApplePay/type.d.ts +6 -2
- package/dist/types/components/Card/type.d.ts +2 -18
- package/dist/types/components/DropIn/layout.d.ts +33 -0
- package/dist/types/components/DropIn/type.d.ts +6 -6
- package/dist/types/components/GooglePay/createGooglePay.d.ts +1 -1
- package/dist/types/components/GooglePay/type.d.ts +6 -2
- package/dist/types/components/PaymentButton/type.d.ts +2 -0
- package/dist/types/components/Sepa/type.d.ts +3 -4
- package/dist/types/components/business/QRCodeModal/type.d.ts +12 -3
- package/dist/types/components/index.d.ts +0 -2
- package/dist/types/components/internal/Loading/Loading.d.ts +2 -1
- package/dist/types/components/internal/Loading/type.d.ts +8 -0
- package/dist/types/components/internal/ResultMessage/ResultMessage.d.ts +3 -0
- package/dist/types/components/internal/ResultMessage/index.d.ts +2 -0
- package/dist/types/components/internal/ResultMessage/type.d.ts +13 -0
- package/dist/types/components/internal/icons/IconAlipayPlus.d.ts +2 -0
- package/dist/types/components/internal/icons/IconError.d.ts +1 -1
- package/dist/types/components/internal/icons/IconSuccess.d.ts +1 -1
- package/dist/types/components/internal/icons/IconWechatPayGlobal.d.ts +2 -0
- package/dist/types/components/internal/icons/IconWechatPayGlobalComplete.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +3 -0
- package/dist/types/components/{AliPay → wallets/AliPay}/AliPay.d.ts +9 -4
- package/dist/types/components/wallets/AliPay/type.d.ts +7 -0
- package/dist/types/components/wallets/Bancontact/type.d.ts +2 -24
- package/dist/types/components/wallets/Blik/type.d.ts +2 -24
- package/dist/types/components/wallets/Boost/type.d.ts +2 -24
- package/dist/types/components/wallets/GCash/type.d.ts +2 -24
- package/dist/types/components/wallets/GrabPay/type.d.ts +2 -12
- package/dist/types/components/wallets/IDeal/type.d.ts +2 -24
- package/dist/types/components/wallets/LinePay/type.d.ts +2 -24
- package/dist/types/components/wallets/MayBankQRPay/type.d.ts +2 -24
- package/dist/types/components/wallets/NinePay/type.d.ts +2 -24
- package/dist/types/components/wallets/OVO/type.d.ts +2 -24
- package/dist/types/components/wallets/OpayWallet/type.d.ts +2 -24
- package/dist/types/components/wallets/P24/type.d.ts +2 -24
- package/dist/types/components/wallets/PagaWallet/type.d.ts +2 -24
- package/dist/types/components/wallets/Paymaya/type.d.ts +2 -24
- package/dist/types/components/wallets/PicPay/type.d.ts +2 -24
- package/dist/types/components/wallets/Pix/type.d.ts +2 -24
- package/dist/types/components/wallets/ShopeePay/type.d.ts +2 -24
- package/dist/types/components/wallets/Skrill/type.d.ts +2 -12
- package/dist/types/components/wallets/TNGWallet/type.d.ts +2 -24
- package/dist/types/components/wallets/Trustly/type.d.ts +2 -16
- package/dist/types/components/wallets/Vietqr/type.d.ts +2 -24
- package/dist/types/components/wallets/WechatPay/WechatPay.d.ts +16 -0
- package/dist/types/components/wallets/WechatPay/type.d.ts +12 -0
- package/dist/types/components/wallets/WechatPay/util.d.ts +13 -0
- package/dist/types/components/wallets/Zalopay/type.d.ts +2 -24
- package/dist/types/components/wallets/index.d.ts +2 -0
- package/dist/types/components/wallets/type.d.ts +0 -14
- package/dist/types/constant.d.ts +8 -0
- package/dist/types/core/index.d.ts +1 -0
- package/dist/types/core/preview.d.ts +1 -0
- package/dist/types/core/session.d.ts +2 -2
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/hooks/useBaseWallet.d.ts +27 -5
- package/dist/types/hooks/useI18n.d.ts +1 -1
- package/dist/types/hooks/usePayState.d.ts +1 -4
- package/dist/types/i18n/I18n.d.ts +1 -0
- package/dist/types/i18n/locales/de-DE.d.ts +7 -0
- package/dist/types/i18n/locales/en-GB.d.ts +7 -0
- package/dist/types/i18n/locales/es-ES.d.ts +7 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +7 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +7 -0
- package/dist/types/i18n/locales/ko-KR.d.ts +7 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +7 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +7 -0
- package/dist/types/i18n/locales/ru-RU.d.ts +7 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +7 -0
- package/dist/types/i18n/locales/zh-HK.d.ts +7 -0
- package/dist/types/i18n/locales/zh-TW.d.ts +7 -0
- package/dist/types/i18n/util.d.ts +8 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/out/fraud-detection.d.ts +2 -5
- package/dist/types/out/types.d.ts +5 -6
- package/dist/types/out/worldpay-ddc-manager.d.ts +1 -0
- package/dist/types/types/event.d.ts +24 -2
- package/dist/types/types/index.d.ts +14 -0
- package/dist/types/types/message.d.ts +3 -1
- package/dist/types/types/payment.d.ts +26 -3
- package/dist/types/utils/app-payment.d.ts +1 -0
- package/dist/types/utils/array.d.ts +17 -0
- package/dist/types/utils/business/amount.d.ts +7 -0
- package/dist/types/utils/business/index.d.ts +1 -0
- package/dist/types/utils/detect.d.ts +3 -0
- package/dist/types/utils/index.d.ts +1 -6
- package/dist/types/utils/number.d.ts +4 -0
- package/dist/types/utils/redirect.d.ts +10 -0
- package/dist/types/utils/system-info/get-browser-info.d.ts +4 -0
- package/package.json +4 -2
- package/dist/es/api/modules/ali-pay/index.js +0 -16
- package/dist/es/api/modules/boost/index.js +0 -5
- package/dist/es/api/modules/gcash/index.js +0 -5
- package/dist/es/api/modules/grab-pay/index.js +0 -5
- package/dist/es/api/modules/may-bank-qr-pay/index.js +0 -5
- package/dist/es/api/modules/nine-pay/index.js +0 -5
- package/dist/es/api/modules/opay-wallet/index.js +0 -5
- package/dist/es/api/modules/paga-wallet/index.js +0 -5
- package/dist/es/api/modules/paymaya/index.js +0 -5
- package/dist/es/api/modules/pic-pay/index.js +0 -16
- package/dist/es/api/modules/pix/index.js +0 -16
- package/dist/es/api/modules/shopee-pay/index.js +0 -5
- package/dist/es/api/modules/tng-wallet/index.js +0 -5
- package/dist/es/api/modules/vietqr/index.js +0 -5
- package/dist/es/api/modules/wechat-pay/index.js +0 -16
- package/dist/es/api/modules/zalopay/index.js +0 -5
- package/dist/es/components/AliPay/index.js +0 -332
- package/dist/es/components/WechatPay/index.js +0 -340
- package/dist/es/hooks/usePayment.js +0 -1
- package/dist/types/api/modules/ali-pay/index.d.ts +0 -4
- package/dist/types/api/modules/boost/index.d.ts +0 -4
- package/dist/types/api/modules/gcash/index.d.ts +0 -4
- package/dist/types/api/modules/grab-pay/index.d.ts +0 -4
- package/dist/types/api/modules/line-pay/index.d.ts +0 -4
- package/dist/types/api/modules/may-bank-qr-pay/index.d.ts +0 -4
- package/dist/types/api/modules/nine-pay/index.d.ts +0 -4
- package/dist/types/api/modules/opay-wallet/index.d.ts +0 -4
- package/dist/types/api/modules/paga-wallet/index.d.ts +0 -4
- package/dist/types/api/modules/paymaya/index.d.ts +0 -4
- package/dist/types/api/modules/pic-pay/index.d.ts +0 -4
- package/dist/types/api/modules/pix/index.d.ts +0 -4
- package/dist/types/api/modules/shopee-pay/index.d.ts +0 -4
- package/dist/types/api/modules/tng-wallet/index.d.ts +0 -4
- package/dist/types/api/modules/vietqr/index.d.ts +0 -4
- package/dist/types/api/modules/wechat-pay/index.d.ts +0 -4
- package/dist/types/api/modules/zalopay/index.d.ts +0 -4
- package/dist/types/components/AliPay/type.d.ts +0 -26
- package/dist/types/components/WechatPay/WechatPay.d.ts +0 -10
- package/dist/types/components/WechatPay/type.d.ts +0 -28
- package/dist/types/hooks/usePayment.d.ts +0 -8
- package/dist/types/hooks/useRetry.console-tests.d.ts +0 -41
- package/dist/types/utils/behavior-tracker.d.ts +0 -36
- /package/dist/es/components/internal/Button/{button2.js → button.js} +0 -0
- /package/dist/types/components/{AliPay → wallets/AliPay}/index.d.ts +0 -0
- /package/dist/types/components/{WechatPay → wallets/WechatPay}/index.d.ts +0 -0
|
@@ -13,8 +13,7 @@ import { postMessageToIframe } from "../../utils/iframe.js";
|
|
|
13
13
|
import { isTimeoutError } from "../../api/http.js";
|
|
14
14
|
import { cardPay } from "../../api/modules/card/index.js";
|
|
15
15
|
import { PaymentMethod } from "../../constant.js";
|
|
16
|
-
import {
|
|
17
|
-
import { picPay } from "../../api/modules/pic-pay/index.js";
|
|
16
|
+
import { walletPay } from "../../api/modules/wallet/index.js";
|
|
18
17
|
import { encryptCard } from "../../api/modules/encrypted-card/index.js";
|
|
19
18
|
const useSecuredInput = () => {
|
|
20
19
|
let fieldType;
|
|
@@ -481,8 +480,8 @@ const HiddenIframe = ({ checkoutId }) => {
|
|
|
481
480
|
};
|
|
482
481
|
const paymentMethod = params.payment.paymentMethod;
|
|
483
482
|
const payMap = {
|
|
484
|
-
[PaymentMethod.PIX]:
|
|
485
|
-
[PaymentMethod.PIC_PAY]:
|
|
483
|
+
[PaymentMethod.PIX]: walletPay,
|
|
484
|
+
[PaymentMethod.PIC_PAY]: walletPay
|
|
486
485
|
};
|
|
487
486
|
const payFn = payMap[paymentMethod] || cardPay;
|
|
488
487
|
const data = {
|
|
@@ -4,13 +4,14 @@ import { CoreContext } from "../../core/context.js";
|
|
|
4
4
|
import "../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass, formatAmount, trimAll } from "../../utils/format.js";
|
|
7
|
+
import { COMMON_CLASS_NAME, PaymentMethod } from "../../constant.js";
|
|
7
8
|
import { formatPaymentResult } from "../../utils/payment.js";
|
|
8
9
|
import { isTimeoutError } from "../../api/http.js";
|
|
9
|
-
import {
|
|
10
|
-
import { COMMON_CLASS_NAME, PaymentMethod } from "../../constant.js";
|
|
10
|
+
import { buildPaymentParams } from "../../api/utils/index.js";
|
|
11
11
|
import { getSepaPayInfo, sepaPay } from "../../api/modules/sepa/index.js";
|
|
12
|
+
import { getBrowserParams } from "../../api/modules/get-browser-params.js";
|
|
12
13
|
import { PayKKaError } from "../../core/error.js";
|
|
13
|
-
import "../../out/
|
|
14
|
+
import "../../out/fraud-detection.js";
|
|
14
15
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
15
16
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
16
17
|
import { AddressField } from "../AddressField/index.js";
|
|
@@ -133,7 +134,9 @@ const Sepa = w((props, ref) => {
|
|
|
133
134
|
(_a = formRef.current) == null ? void 0 : _a.validate(async (errors) => {
|
|
134
135
|
var _a2;
|
|
135
136
|
requiredBill && addressCore.setValidateAllFields(true);
|
|
136
|
-
(_a2 = props.onSubmit) == null ? void 0 : _a2.call(props, errors);
|
|
137
|
+
const submitResult = await ((_a2 = props.onSubmit) == null ? void 0 : _a2.call(props, errors));
|
|
138
|
+
if (submitResult === false)
|
|
139
|
+
return;
|
|
137
140
|
if (errors) {
|
|
138
141
|
setSubmitButtonStatus("unSubmit");
|
|
139
142
|
return;
|
|
@@ -183,7 +186,7 @@ const Sepa = w((props, ref) => {
|
|
|
183
186
|
};
|
|
184
187
|
};
|
|
185
188
|
async function pay(search = false, timeout) {
|
|
186
|
-
var _a, _b, _c, _d, _e;
|
|
189
|
+
var _a, _b, _c, _d, _e, _f;
|
|
187
190
|
try {
|
|
188
191
|
const requestOptions = { locale: i18n.locale, timeout };
|
|
189
192
|
let res = null;
|
|
@@ -199,8 +202,13 @@ const Sepa = w((props, ref) => {
|
|
|
199
202
|
requestOptions
|
|
200
203
|
);
|
|
201
204
|
} else {
|
|
205
|
+
const paymentParams = await getPaymentParams();
|
|
202
206
|
const extraParams = (_d = (_c = core.config)._getExtraParams) == null ? void 0 : _d.call(_c, "payment", PaymentMethod.SEPA_DEBIT);
|
|
203
|
-
|
|
207
|
+
if ((_e = core.config._checkoutConfig) == null ? void 0 : _e.dynamicSessionId) {
|
|
208
|
+
await core.updateSessionId(buildPaymentParams(paymentParams, extraParams));
|
|
209
|
+
session.sessionId && (paymentParams.sessionId = session.sessionId);
|
|
210
|
+
}
|
|
211
|
+
res = await sepaPay(paymentParams, extraParams, requestOptions);
|
|
204
212
|
}
|
|
205
213
|
return processAfterPayment(res, search);
|
|
206
214
|
} catch (error) {
|
|
@@ -214,7 +222,7 @@ const Sepa = w((props, ref) => {
|
|
|
214
222
|
} else {
|
|
215
223
|
const message = error.i18nKey ? i18n.get(error.i18nKey) : error.message;
|
|
216
224
|
setErrorMsg(message);
|
|
217
|
-
(
|
|
225
|
+
(_f = props.onError) == null ? void 0 : _f.call(props, new PayKKaError("API_ERROR", message, { code: error.code, cause: error }));
|
|
218
226
|
setSubmitButtonStatus("unSubmit");
|
|
219
227
|
return { end: true };
|
|
220
228
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h, y, u } from "../../core.js";
|
|
2
2
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
3
3
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
4
|
+
import "../../out/fraud-detection.js";
|
|
4
5
|
import "../../utils/card-brand/brands.js";
|
|
5
6
|
import "../../utils/system-info/get-browser-info.js";
|
|
6
7
|
import { normalizedClass } from "../../utils/format.js";
|
|
7
8
|
import "../../core/context.js";
|
|
8
|
-
import "
|
|
9
|
-
import { Button } from "../internal/Button/Button.js";
|
|
9
|
+
import { Button } from "../internal/Button/Button2.js";
|
|
10
10
|
import { IconSafe } from "../internal/icons/IconSafe.js";
|
|
11
11
|
import { LoadingCheck } from "../internal/LoadingCheck/LoadingCheck.js";
|
|
12
12
|
const { bem } = useBEM("submit-button");
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { h, A, x, T, y, u } from "../../core.js";
|
|
1
|
+
import { h, A, x, T, y, u, b } from "../../core.js";
|
|
2
2
|
import "../../utils/card-brand/brands.js";
|
|
3
3
|
import "../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import { CoreContext } from "../../core/context.js";
|
|
5
|
-
import "../../out/
|
|
5
|
+
import "../../out/fraud-detection.js";
|
|
6
6
|
import { Modal } from "../internal/Modal/Modal.js";
|
|
7
|
-
import "../internal/Button/
|
|
7
|
+
import "../internal/Button/button.js";
|
|
8
|
+
import "../internal/Loading/loading.js";
|
|
8
9
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
9
10
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
10
|
-
import { safeParse } from "../../utils/index.js";
|
|
11
11
|
import { cdnOrigin } from "../../config.js";
|
|
12
|
-
import {
|
|
12
|
+
import { safeParse } from "../../utils/index.js";
|
|
13
|
+
import { useBreakpoints } from "../../hooks/useBreakpoints.js";
|
|
13
14
|
import { MessageAction } from "../../types/message.js";
|
|
14
15
|
import { ThreeDSEventType } from "../../types/event.js";
|
|
15
|
-
import {
|
|
16
|
+
import { noticeThreeDSOperate, ThreeDSAuthOperate } from "../../api/modules/threeDS/index.js";
|
|
16
17
|
import { Icon3DSInfo } from "../internal/icons/Icon3DSInfo.js";
|
|
17
|
-
import { Button } from "../internal/Button/
|
|
18
|
+
import { Button } from "../internal/Button/Button2.js";
|
|
18
19
|
import { THREE_DS_IFRAME_NAME } from "../SecuredFieldsProvider/index.js";
|
|
20
|
+
import { Loading } from "../internal/Loading/Loading2.js";
|
|
19
21
|
const { bem } = useBEM("three-ds-auth");
|
|
20
22
|
const ThreeDSAuth = (props) => {
|
|
21
23
|
const {
|
|
@@ -33,6 +35,7 @@ const ThreeDSAuth = (props) => {
|
|
|
33
35
|
const messageHandler = A();
|
|
34
36
|
const iframeRef = A(null);
|
|
35
37
|
const [iframeName] = h(`${THREE_DS_IFRAME_NAME}-${checkoutId}-${Date.now()}`);
|
|
38
|
+
const [iframeLoaded, setIframeLoaded] = h(false);
|
|
36
39
|
const innerChannelLoaded = A(false);
|
|
37
40
|
const authId = A(void 0);
|
|
38
41
|
const { i18n } = useI18n();
|
|
@@ -84,7 +87,10 @@ const ThreeDSAuth = (props) => {
|
|
|
84
87
|
}
|
|
85
88
|
case MessageAction.THREE_DS_AUTH_LOADED: {
|
|
86
89
|
const data2 = feedbackData;
|
|
87
|
-
(
|
|
90
|
+
setIframeLoaded(true);
|
|
91
|
+
(_d2 = (_c2 = core == null ? void 0 : core.config) == null ? void 0 : _c2.onEvent) == null ? void 0 : _d2.call(_c2, ThreeDSEventType.THREE_DS_AUTH, {
|
|
92
|
+
status: data2.status
|
|
93
|
+
});
|
|
88
94
|
authId.current = data2.authId;
|
|
89
95
|
console.log("认证id", authId.current);
|
|
90
96
|
break;
|
|
@@ -103,6 +109,7 @@ const ThreeDSAuth = (props) => {
|
|
|
103
109
|
window.addEventListener("message", messageHandler.current);
|
|
104
110
|
} else {
|
|
105
111
|
innerChannelLoaded.current = false;
|
|
112
|
+
setIframeLoaded(false);
|
|
106
113
|
messageHandler.current && window.removeEventListener("message", messageHandler.current);
|
|
107
114
|
}
|
|
108
115
|
}, [show]);
|
|
@@ -118,18 +125,23 @@ const ThreeDSAuth = (props) => {
|
|
|
118
125
|
maxHeight: "calc(100vh - 100px)",
|
|
119
126
|
minWidth: "300px"
|
|
120
127
|
},
|
|
121
|
-
children: /* @__PURE__ */ u("div", { className: bem("content"), children: !incomplete || continueThreeDS ? /* @__PURE__ */ u(
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
children: /* @__PURE__ */ u("div", { className: bem("content"), children: !incomplete || continueThreeDS ? /* @__PURE__ */ u(b, { children: [
|
|
129
|
+
!iframeLoaded && /* @__PURE__ */ u(Loading, { fixed: false, style: { position: "absolute" } }),
|
|
130
|
+
url && /* @__PURE__ */ u(
|
|
131
|
+
"iframe",
|
|
132
|
+
{
|
|
133
|
+
ref: iframeRef,
|
|
134
|
+
name: iframeName,
|
|
135
|
+
class: bem("three-ds-iframe"),
|
|
136
|
+
width: "100%",
|
|
137
|
+
height: "100%",
|
|
138
|
+
frameBorder: 0,
|
|
139
|
+
src: url,
|
|
140
|
+
style: { display: iframeLoaded ? "block" : "none" },
|
|
141
|
+
onLoad: () => setIframeLoaded(true)
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] }) : /* @__PURE__ */ u("div", { className: bem("last-three-ds"), children: [
|
|
133
145
|
/* @__PURE__ */ u(Icon3DSInfo, { className: bem("last-three-ds-icon"), size: 60 }),
|
|
134
146
|
/* @__PURE__ */ u("div", { className: bem("last-three-ds-title"), children: [
|
|
135
147
|
/* @__PURE__ */ u("div", { children: i18n.get("threeDS.paymentIncomplete") }),
|
|
@@ -3,7 +3,7 @@ import { useBEM } from "../../hooks/useBEM.js";
|
|
|
3
3
|
import "../../core/context.js";
|
|
4
4
|
import "../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../utils/system-info/get-browser-info.js";
|
|
6
|
-
import "../../out/
|
|
6
|
+
import "../../out/fraud-detection.js";
|
|
7
7
|
import { IconInfo } from "../internal/icons/IconInfo.js";
|
|
8
8
|
const { bem } = useBEM("tip");
|
|
9
9
|
function Tip(props) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { x, h, y, u, b } from "../../../core.js";
|
|
2
2
|
import { useBEM } from "../../../hooks/useBEM.js";
|
|
3
3
|
import { useI18n } from "../../../hooks/useI18n.js";
|
|
4
|
+
import "../../../out/fraud-detection.js";
|
|
4
5
|
import "../../../utils/card-brand/brands.js";
|
|
5
6
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
7
|
import { normalizedClass, trimAll } from "../../../utils/format.js";
|
|
7
8
|
import "../../../core/context.js";
|
|
8
|
-
import "../../../out/worldpay-jsc-origin.js";
|
|
9
9
|
import "../../internal/Form/type.js";
|
|
10
10
|
import { FormContext } from "../../internal/Form/context.js";
|
|
11
11
|
import { FormItem } from "../../internal/Form/FormItem.js";
|
|
@@ -2,7 +2,7 @@ import "../../../core.js";
|
|
|
2
2
|
import "../../../utils/card-brand/brands.js";
|
|
3
3
|
import "../../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import "../../../core/context.js";
|
|
5
|
-
import "../../../out/
|
|
5
|
+
import "../../../out/fraud-detection.js";
|
|
6
6
|
import "../../internal/Form/type.js";
|
|
7
7
|
import "../../internal/Form/context.js";
|
|
8
8
|
import "../../internal/Form/FormItem.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { u, b } from "../../../core.js";
|
|
2
2
|
import { useBEM } from "../../../hooks/useBEM.js";
|
|
3
3
|
import { useI18n } from "../../../hooks/useI18n.js";
|
|
4
|
+
import "../../../out/fraud-detection.js";
|
|
4
5
|
import "../../../utils/card-brand/brands.js";
|
|
5
6
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
-
import "../../../core/context.js";
|
|
7
|
-
import "../../../out/worldpay-jsc-origin.js";
|
|
8
7
|
import { useBreakpoints } from "../../../hooks/useBreakpoints.js";
|
|
9
|
-
import
|
|
8
|
+
import "../../../core/context.js";
|
|
9
|
+
import { Button } from "../../internal/Button/Button2.js";
|
|
10
10
|
import { Modal } from "../../internal/Modal/Modal.js";
|
|
11
11
|
import "./blik-confirm-modal.js";
|
|
12
12
|
import { IconPhone } from "../../internal/icons/IconPhone.js";
|
|
@@ -2,8 +2,8 @@ import "../../../core.js";
|
|
|
2
2
|
import "../../../utils/card-brand/brands.js";
|
|
3
3
|
import "../../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import "../../../core/context.js";
|
|
5
|
-
import "../../../out/
|
|
6
|
-
import "../../internal/Button/
|
|
5
|
+
import "../../../out/fraud-detection.js";
|
|
6
|
+
import "../../internal/Button/button.js";
|
|
7
7
|
import "../../internal/Modal/Modal.js";
|
|
8
8
|
import "./blik-confirm-modal.js";
|
|
9
9
|
import "../../internal/LoadingCheck/loading-check.js";
|
|
@@ -2,8 +2,8 @@ import { u } from "../../../core.js";
|
|
|
2
2
|
import "../../../utils/card-brand/brands.js";
|
|
3
3
|
import "../../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import { useI18n } from "../../../hooks/useI18n.js";
|
|
5
|
+
import "../../../out/fraud-detection.js";
|
|
5
6
|
import "../../../core/context.js";
|
|
6
|
-
import "../../../out/worldpay-jsc-origin.js";
|
|
7
7
|
import "../../internal/Form/type.js";
|
|
8
8
|
import "../../internal/Form/context.js";
|
|
9
9
|
import { FormItem } from "../../internal/Form/FormItem.js";
|
|
@@ -2,7 +2,7 @@ import "../../../core.js";
|
|
|
2
2
|
import "../../../utils/card-brand/brands.js";
|
|
3
3
|
import "../../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import "../../../core/context.js";
|
|
5
|
-
import "../../../out/
|
|
5
|
+
import "../../../out/fraud-detection.js";
|
|
6
6
|
import "../../internal/Form/type.js";
|
|
7
7
|
import "../../internal/Form/context.js";
|
|
8
8
|
import "../../internal/Form/FormItem.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { x, h, T, y, u } from "../../../core.js";
|
|
2
2
|
import { useBEM } from "../../../hooks/useBEM.js";
|
|
3
3
|
import { useI18n } from "../../../hooks/useI18n.js";
|
|
4
|
+
import "../../../out/fraud-detection.js";
|
|
4
5
|
import "../../../utils/card-brand/brands.js";
|
|
5
6
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
7
|
import { trimAll, normalizedClass } from "../../../utils/format.js";
|
|
7
8
|
import "../../../core/context.js";
|
|
8
|
-
import "../../../out/worldpay-jsc-origin.js";
|
|
9
9
|
import "../../internal/Form/type.js";
|
|
10
10
|
import { FormContext, FormItemContext } from "../../internal/Form/context.js";
|
|
11
11
|
import { FormItem } from "../../internal/Form/FormItem.js";
|
|
@@ -2,7 +2,7 @@ import "../../../core.js";
|
|
|
2
2
|
import "../../../utils/card-brand/brands.js";
|
|
3
3
|
import "../../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import "../../../core/context.js";
|
|
5
|
-
import "../../../out/
|
|
5
|
+
import "../../../out/fraud-detection.js";
|
|
6
6
|
import "../../internal/Form/type.js";
|
|
7
7
|
import "../../internal/Form/context.js";
|
|
8
8
|
import "../../internal/Form/FormItem.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { u, b } from "../../../core.js";
|
|
2
2
|
import { useBEM } from "../../../hooks/useBEM.js";
|
|
3
3
|
import { useI18n } from "../../../hooks/useI18n.js";
|
|
4
|
+
import "../../../out/fraud-detection.js";
|
|
4
5
|
import "../../../utils/card-brand/brands.js";
|
|
5
6
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
7
|
import { formatAmount } from "../../../utils/format.js";
|
|
7
8
|
import { formatTime } from "../../../utils/date.js";
|
|
8
|
-
import "../../../core/context.js";
|
|
9
|
-
import "../../../out/worldpay-jsc-origin.js";
|
|
10
9
|
import { useBreakpoints } from "../../../hooks/useBreakpoints.js";
|
|
10
|
+
import "../../../core/context.js";
|
|
11
11
|
import { Modal } from "../../internal/Modal/Modal.js";
|
|
12
12
|
import "./qr-code-modal.js";
|
|
13
13
|
import { QRCode } from "../../internal/QRCode/QRCode.js";
|
|
@@ -2,6 +2,6 @@ import "../../../core.js";
|
|
|
2
2
|
import "../../../utils/card-brand/brands.js";
|
|
3
3
|
import "../../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import "../../../core/context.js";
|
|
5
|
-
import "../../../out/
|
|
5
|
+
import "../../../out/fraud-detection.js";
|
|
6
6
|
import "../../internal/Modal/Modal.js";
|
|
7
7
|
import "./qr-code-modal.js";
|
|
@@ -3,7 +3,7 @@ import { useBEM } from "../../../hooks/useBEM.js";
|
|
|
3
3
|
import "../../../core/context.js";
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
-
import "../../../out/
|
|
6
|
+
import "../../../out/fraud-detection.js";
|
|
7
7
|
import "./tooltip2.js";
|
|
8
8
|
const Tooltip = (props) => {
|
|
9
9
|
const { content, children } = props;
|
|
@@ -2,5 +2,5 @@ import "../../../core.js";
|
|
|
2
2
|
import "../../../utils/card-brand/brands.js";
|
|
3
3
|
import "../../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import "../../../core/context.js";
|
|
5
|
-
import "../../../out/
|
|
5
|
+
import "../../../out/fraud-detection.js";
|
|
6
6
|
import "./tooltip2.js";
|
|
@@ -2,7 +2,7 @@ import "../../core.js";
|
|
|
2
2
|
import "../../utils/card-brand/brands.js";
|
|
3
3
|
import "../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import "../../core/context.js";
|
|
5
|
-
import "../../out/
|
|
5
|
+
import "../../out/fraud-detection.js";
|
|
6
6
|
import "../internal/Modal/Modal.js";
|
|
7
7
|
import "./QRCodeModal/qr-code-modal.js";
|
|
8
8
|
import "../internal/Form/type.js";
|
|
@@ -16,6 +16,6 @@ import "./PhoneField/config.js";
|
|
|
16
16
|
import "./PhoneField/phone-field.js";
|
|
17
17
|
import "./Tooltip/tooltip2.js";
|
|
18
18
|
import "./BlikCodeField/blik-code-field.js";
|
|
19
|
-
import "../internal/Button/
|
|
19
|
+
import "../internal/Button/button.js";
|
|
20
20
|
import "./BlikConfirmModal/blik-confirm-modal.js";
|
|
21
21
|
import "../internal/LoadingCheck/loading-check.js";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import "../style/index.js";
|
|
2
|
-
import "./AliPay/index.js";
|
|
3
2
|
import "./Card/index.js";
|
|
4
3
|
import "../core.js";
|
|
5
4
|
import "./CardBrands/index.js";
|
|
6
5
|
import "../utils/card-brand/brands.js";
|
|
7
6
|
import "../utils/system-info/get-browser-info.js";
|
|
8
7
|
import "../core/context.js";
|
|
9
|
-
import "../out/
|
|
8
|
+
import "../out/fraud-detection.js";
|
|
10
9
|
import "./CardExpireDateField/index.js";
|
|
11
10
|
import "./internal/Form/type.js";
|
|
12
11
|
import "./internal/Form/context.js";
|
|
@@ -18,11 +17,10 @@ import "./CardNumberField/index.js";
|
|
|
18
17
|
import "./CardSecurityCodeField/index.js";
|
|
19
18
|
import "./CardSelector/index.js";
|
|
20
19
|
import "./internal/Select/Select.js";
|
|
21
|
-
import "./internal/Button/
|
|
20
|
+
import "./internal/Button/button.js";
|
|
22
21
|
import "./CardNo/index.js";
|
|
23
22
|
import "./SubmitButton/index.js";
|
|
24
23
|
import "./internal/LoadingCheck/loading-check.js";
|
|
25
|
-
import "./WechatPay/index.js";
|
|
26
24
|
import "./ApplePay/index.js";
|
|
27
25
|
import "./GooglePay/index.js";
|
|
28
26
|
import "./Sepa/index.js";
|
|
@@ -51,3 +49,5 @@ import "./wallets/IDeal/IDeal.js";
|
|
|
51
49
|
import "./wallets/Skrill/Skrill.js";
|
|
52
50
|
import "./wallets/P24/P24.js";
|
|
53
51
|
import "./wallets/Trustly/Trustly.js";
|
|
52
|
+
import "./wallets/AliPay/AliPay.js";
|
|
53
|
+
import "./wallets/WechatPay/WechatPay.js";
|
|
@@ -4,5 +4,5 @@ import "./accordion2.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import "../../../core/context.js";
|
|
7
|
-
import "../../../out/
|
|
7
|
+
import "../../../out/fraud-detection.js";
|
|
8
8
|
import "../../AccordionItem/AccordionItem.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { u } from "../../../core.js";
|
|
2
|
-
import "./
|
|
2
|
+
import "./button.js";
|
|
3
3
|
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
4
4
|
import { useBEM } from "../../../hooks/useBEM.js";
|
|
5
5
|
import "../../../core/context.js";
|
|
6
6
|
import "../../../utils/card-brand/brands.js";
|
|
7
7
|
import "../../../utils/system-info/get-browser-info.js";
|
|
8
8
|
import { normalizedClass } from "../../../utils/format.js";
|
|
9
|
-
import "../../../out/
|
|
9
|
+
import "../../../out/fraud-detection.js";
|
|
10
10
|
const { bem } = useBEM("button");
|
|
11
11
|
function Button(props) {
|
|
12
12
|
const { style, className, children, icon, loading, disabled, dashed } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../core.js";
|
|
2
|
-
import "./
|
|
2
|
+
import "./button.js";
|
|
3
3
|
import "../../../utils/card-brand/brands.js";
|
|
4
4
|
import "../../../utils/system-info/get-browser-info.js";
|
|
5
5
|
import "../../../core/context.js";
|
|
6
|
-
import "../../../out/
|
|
6
|
+
import "../../../out/fraud-detection.js";
|
|
@@ -6,7 +6,7 @@ import "../../../utils/card-brand/brands.js";
|
|
|
6
6
|
import "../../../utils/system-info/get-browser-info.js";
|
|
7
7
|
import { normalizedClass } from "../../../utils/format.js";
|
|
8
8
|
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
9
|
-
import "../../../out/
|
|
9
|
+
import "../../../out/fraud-detection.js";
|
|
10
10
|
import { IconChecked } from "../icons/iconChecked.js";
|
|
11
11
|
const { bem } = useBEM("check-box");
|
|
12
12
|
const CheckBox = (props) => {
|
|
@@ -3,7 +3,7 @@ import "../../../core.js";
|
|
|
3
3
|
import "../../../core/context.js";
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
-
import "../../../out/
|
|
6
|
+
import "../../../out/fraud-detection.js";
|
|
7
7
|
const formItemBEM = useBEM("form-item");
|
|
8
8
|
const formItemLabelClassName = formItemBEM.bem("label");
|
|
9
9
|
const formItemErrorMessageClassName = formItemBEM.bem("error-text");
|
|
@@ -6,7 +6,7 @@ import "../../../core/context.js";
|
|
|
6
6
|
import "../../../utils/card-brand/brands.js";
|
|
7
7
|
import "../../../utils/system-info/get-browser-info.js";
|
|
8
8
|
import { normalizedClass } from "../../../utils/format.js";
|
|
9
|
-
import "../../../out/
|
|
9
|
+
import "../../../out/fraud-detection.js";
|
|
10
10
|
import { IconError } from "../icons/IconError.js";
|
|
11
11
|
const { bem } = useBEM("info");
|
|
12
12
|
const iconMap = {
|
|
@@ -3,7 +3,7 @@ import "../../../core.js";
|
|
|
3
3
|
import "../../../core/context.js";
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
-
import "../../../out/
|
|
6
|
+
import "../../../out/fraud-detection.js";
|
|
7
7
|
const inputBEM = useBEM("input");
|
|
8
8
|
const inputWrapperClassName = inputBEM.bem("input-wrapper");
|
|
9
9
|
export {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { useBEM } from "../../../hooks/useBEM.js";
|
|
3
|
+
import "../../../core/context.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import "../../../out/fraud-detection.js";
|
|
7
|
+
import "./loading.js";
|
|
8
|
+
const { bem } = useBEM("loading");
|
|
9
|
+
const Loading = (props) => {
|
|
10
|
+
const { fixed = true, style } = props;
|
|
11
|
+
return /* @__PURE__ */ u("div", { className: bem("", { fixed }), style, children: /* @__PURE__ */ u("div", { className: bem("dots"), children: /* @__PURE__ */ u("span", { className: bem("dot"), children: [
|
|
12
|
+
/* @__PURE__ */ u("i", {}),
|
|
13
|
+
/* @__PURE__ */ u("i", {}),
|
|
14
|
+
/* @__PURE__ */ u("i", {}),
|
|
15
|
+
/* @__PURE__ */ u("i", {})
|
|
16
|
+
] }) }) });
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
Loading
|
|
20
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import "../../../core.js";
|
|
1
2
|
import "../../../utils/card-brand/brands.js";
|
|
2
3
|
import "../../../utils/system-info/get-browser-info.js";
|
|
3
|
-
import "../../../core.js";
|
|
4
4
|
import "../../../core/context.js";
|
|
5
|
-
import "../../../out/
|
|
5
|
+
import "../../../out/fraud-detection.js";
|
|
6
|
+
import "./loading.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -7,7 +7,7 @@ import { isUndefined } from "../../../utils/is.js";
|
|
|
7
7
|
import "../../../utils/card-brand/brands.js";
|
|
8
8
|
import "../../../utils/system-info/get-browser-info.js";
|
|
9
9
|
import { normalizedClass, normalizedStyle } from "../../../utils/format.js";
|
|
10
|
-
import "../../../out/
|
|
10
|
+
import "../../../out/fraud-detection.js";
|
|
11
11
|
const SIZE = 40;
|
|
12
12
|
const SVG_VIEW_BOX = `0 0 ${SIZE} ${SIZE}`;
|
|
13
13
|
const CIRCLE_STROKE_WIDTH = 3.3;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { w, h, T, u, b, P } from "../../../core.js";
|
|
2
2
|
import { useBEM } from "../../../hooks/useBEM.js";
|
|
3
3
|
import { useI18n } from "../../../hooks/useI18n.js";
|
|
4
|
+
import "../../../out/fraud-detection.js";
|
|
4
5
|
import "../../../utils/card-brand/brands.js";
|
|
5
6
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
7
|
import "../../../core/context.js";
|
|
7
|
-
import "../../../out/worldpay-jsc-origin.js";
|
|
8
8
|
import "./modal2.js";
|
|
9
9
|
const { bem } = useBEM("modal");
|
|
10
10
|
const Modal = w((props) => {
|
|
@@ -5,7 +5,7 @@ import "../../../utils/card-brand/brands.js";
|
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
7
|
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
8
|
-
import "../../../out/
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
9
|
const { bem } = useBEM("qr-code");
|
|
10
10
|
const QRCode = ({ value, size, className, style }) => {
|
|
11
11
|
const [url, setUrl] = h("");
|
|
@@ -4,7 +4,7 @@ import "../../../core/context.js";
|
|
|
4
4
|
import { isNil } from "../../../utils/is.js";
|
|
5
5
|
import "../../../utils/card-brand/brands.js";
|
|
6
6
|
import "../../../utils/system-info/get-browser-info.js";
|
|
7
|
-
import "../../../out/
|
|
7
|
+
import "../../../out/fraud-detection.js";
|
|
8
8
|
import "../Form/type.js";
|
|
9
9
|
import { FormItemContext } from "../Form/context.js";
|
|
10
10
|
import "../Form/FormItem.js";
|
|
@@ -4,7 +4,7 @@ import { useBEM } from "../../../hooks/useBEM.js";
|
|
|
4
4
|
import "../../../core/context.js";
|
|
5
5
|
import "../../../utils/card-brand/brands.js";
|
|
6
6
|
import "../../../utils/system-info/get-browser-info.js";
|
|
7
|
-
import "../../../out/
|
|
7
|
+
import "../../../out/fraud-detection.js";
|
|
8
8
|
const { bem } = useBEM("select");
|
|
9
9
|
const SelectMenu = (props) => {
|
|
10
10
|
const { style, children, ...rest } = props;
|
|
@@ -5,7 +5,7 @@ import "../../../core/context.js";
|
|
|
5
5
|
import { isFunction } from "../../../utils/is.js";
|
|
6
6
|
import "../../../utils/card-brand/brands.js";
|
|
7
7
|
import "../../../utils/system-info/get-browser-info.js";
|
|
8
|
-
import "../../../out/
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
9
|
import { IconTick } from "../icons/IconTick.js";
|
|
10
10
|
const { bem } = useBEM("select");
|
|
11
11
|
function SelectMenuItem(props) {
|