@paykka/card-checkout-ui 0.13.2 → 0.13.7
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 +20 -20
- package/dist/card-checkout-ui.umd.cjs +19 -19
- package/dist/es/_commonjsHelpers.js +1 -1
- package/dist/es/api/http.js +1 -0
- package/dist/es/api/modules/opay-wallet/index.js +16 -0
- package/dist/es/api/modules/paga-wallet/index.js +16 -0
- package/dist/es/api/modules/pic-pay/index.js +16 -0
- package/dist/es/api/modules/pix/index.js +16 -0
- package/dist/es/api/modules/risk/index.js +21 -0
- package/dist/es/api/modules/vietqr/index.js +4 -0
- package/dist/es/components/AccordionItem/AccordionItem.js +1 -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 +1 -0
- package/dist/es/components/ApplePay/index.js +1 -0
- package/dist/es/components/Boost/index.js +1 -0
- package/dist/es/components/Card/index.js +1 -0
- package/dist/es/components/CardBrands/index.js +1 -0
- 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 +1 -0
- 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 +1 -0
- package/dist/es/components/DropIn/index.js +43 -2
- package/dist/es/components/EmailField/EmailField.js +1 -0
- package/dist/es/components/EncryptedCard/index.js +1 -0
- package/dist/es/components/GooglePay/index.js +1 -0
- package/dist/es/components/GrabPay/index.js +1 -0
- package/dist/es/components/GuideCard/index.js +7 -1
- package/dist/es/components/LinePay/index.js +1 -0
- package/dist/es/components/MayBankQRPay/index.js +1 -0
- package/dist/es/components/NinePay/index.js +1 -0
- package/dist/es/components/RecurringTip/index.js +1 -0
- package/dist/es/components/Sepa/index.js +1 -0
- package/dist/es/components/ShopeePay/index.js +1 -0
- package/dist/es/components/SubmitButton/index.js +1 -0
- package/dist/es/components/TNGWallet/index.js +1 -0
- package/dist/es/components/ThreeDS/index.js +2 -1
- package/dist/es/components/WechatPay/index.js +1 -0
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +7 -6
- package/dist/es/components/business/QRCodeModal/index.js +1 -0
- package/dist/es/components/business/index.js +1 -0
- package/dist/es/components/index.js +6 -0
- package/dist/es/components/internal/Accordion/index.js +1 -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 +1 -0
- package/dist/es/components/internal/QRCode/QRCode.js +1 -0
- package/dist/es/components/internal/QRCode/index.js +1 -0
- package/dist/es/components/internal/Select/Select.js +1 -0
- 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/IconOpayWallet.js +71 -0
- package/dist/es/components/internal/icons/IconPagaWallet.js +141 -0
- package/dist/es/components/internal/icons/IconPaymaya.js +42 -86
- package/dist/es/components/internal/icons/IconPicPay.js +49 -0
- package/dist/es/components/internal/icons/IconPix.js +75 -0
- package/dist/es/components/internal/icons/IconVietqr.js +45 -0
- package/dist/es/components/internal/icons/IconVietqrComplete.js +49 -0
- package/dist/es/components/wallets/GCash/GCash.js +1 -0
- package/dist/es/components/wallets/OpayWallet/OpayWallet.js +347 -0
- package/dist/es/components/wallets/OpayWallet/index.js +1 -0
- package/dist/es/components/wallets/OpayWallet/opay-wallet.js +1 -0
- package/dist/es/components/wallets/OpayWallet/type.js +1 -0
- package/dist/es/components/wallets/PagaWallet/PagaWallet.js +347 -0
- package/dist/es/components/wallets/PagaWallet/index.js +1 -0
- package/dist/es/components/wallets/PagaWallet/paga-wallet.js +1 -0
- package/dist/es/components/wallets/PagaWallet/type.js +1 -0
- package/dist/es/components/wallets/Paymaya/Paymaya.js +1 -0
- package/dist/es/components/wallets/PicPay/PicPay.js +347 -0
- package/dist/es/components/wallets/PicPay/index.js +1 -0
- package/dist/es/components/wallets/PicPay/pic-pay.js +1 -0
- package/dist/es/components/wallets/PicPay/type.js +1 -0
- package/dist/es/components/wallets/Pix/Pix.js +347 -0
- package/dist/es/components/wallets/Pix/index.js +1 -0
- package/dist/es/components/wallets/Pix/pix2.js +1 -0
- package/dist/es/components/wallets/Pix/type.js +1 -0
- package/dist/es/components/wallets/Vietqr/Vietqr.js +381 -0
- package/dist/es/components/wallets/Vietqr/index.js +1 -0
- package/dist/es/components/wallets/Vietqr/type.js +1 -0
- package/dist/es/components/wallets/Vietqr/vietqr2.js +1 -0
- package/dist/es/components/wallets/Zalopay/Zalopay.js +2 -0
- package/dist/es/components/wallets/index.js +8 -0
- package/dist/es/constant.js +38 -2
- package/dist/es/core/checkout.js +4 -3
- package/dist/es/core/environment.js +1 -13
- package/dist/es/core/index.js +1 -0
- package/dist/es/core/theme.js +1 -0
- package/dist/es/hooks/index.js +1 -0
- package/dist/es/hooks/useI18n.js +1 -0
- package/dist/es/hooks/usePayState.js +2 -2
- package/dist/es/i18n/locales/de-DE.js +8 -2
- package/dist/es/i18n/locales/en-GB.js +8 -2
- package/dist/es/i18n/locales/es-ES.js +8 -2
- package/dist/es/i18n/locales/fr-FR.js +8 -2
- package/dist/es/i18n/locales/ja-JP.js +8 -2
- package/dist/es/i18n/locales/ko-KR.js +8 -2
- package/dist/es/i18n/locales/nl-NL.js +8 -2
- package/dist/es/i18n/locales/pt-PT.js +8 -2
- package/dist/es/i18n/locales/ru-RU.js +8 -2
- package/dist/es/i18n/locales/zh-CN.js +10 -4
- package/dist/es/i18n/locales/zh-HK.js +10 -4
- package/dist/es/i18n/locales/zh-TW.js +10 -4
- package/dist/es/index.js +12 -1
- package/dist/es/out/fraud-detection.js +25 -60
- package/dist/es/out/stripe-radar.js +92 -0
- package/dist/es/out/worldpay-ddc.js +14 -4
- package/dist/es/out/worldpay-jsc-origin.js +61 -0
- package/dist/es/out/worldpay-jsc.js +68 -0
- package/dist/es/style.css +1 -1
- package/dist/es/types/event.js +4 -0
- package/dist/es/types/fraud-detection.js +1 -0
- package/dist/style.css +1 -1
- package/dist/types/api/modules/index.d.ts +5 -0
- package/dist/types/api/modules/opay-wallet/index.d.ts +4 -0
- package/dist/types/api/modules/paga-wallet/index.d.ts +4 -0
- package/dist/types/api/modules/pic-pay/index.d.ts +4 -0
- package/dist/types/api/modules/pix/index.d.ts +4 -0
- package/dist/types/api/modules/risk/index.d.ts +5 -0
- package/dist/types/api/modules/vietqr/index.d.ts +4 -0
- package/dist/types/components/DropIn/type.d.ts +3 -2
- package/dist/types/components/business/QRCodeModal/type.d.ts +2 -0
- package/dist/types/components/index.d.ts +1 -3
- package/dist/types/components/internal/icons/IconOpayWallet.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPagaWallet.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPicPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPix.d.ts +2 -0
- package/dist/types/components/internal/icons/IconVietqr.d.ts +2 -0
- package/dist/types/components/internal/icons/IconVietqrComplete.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +6 -0
- package/dist/types/components/wallets/OpayWallet/OpayWallet.d.ts +10 -0
- package/dist/types/components/wallets/OpayWallet/index.d.ts +2 -0
- package/dist/types/components/wallets/OpayWallet/type.d.ts +40 -0
- package/dist/types/components/wallets/PagaWallet/PagaWallet.d.ts +10 -0
- package/dist/types/components/wallets/PagaWallet/index.d.ts +2 -0
- package/dist/types/components/wallets/PagaWallet/type.d.ts +40 -0
- package/dist/types/components/wallets/PicPay/PicPay.d.ts +10 -0
- package/dist/types/components/wallets/PicPay/index.d.ts +2 -0
- package/dist/types/components/wallets/PicPay/type.d.ts +40 -0
- package/dist/types/components/wallets/Pix/Pix.d.ts +10 -0
- package/dist/types/components/wallets/Pix/index.d.ts +2 -0
- package/dist/types/components/wallets/Pix/type.d.ts +40 -0
- package/dist/types/components/wallets/Vietqr/Vietqr.d.ts +10 -0
- package/dist/types/components/wallets/Vietqr/index.d.ts +2 -0
- package/dist/types/components/wallets/Vietqr/type.d.ts +39 -0
- package/dist/types/components/wallets/index.d.ts +8 -0
- package/dist/types/components/wallets/type.d.ts +9 -0
- package/dist/types/constant.d.ts +15 -1
- package/dist/types/core/environment.d.ts +1 -2
- package/dist/types/hooks/usePayState.d.ts +0 -1
- package/dist/types/i18n/locales/de-DE.d.ts +6 -0
- package/dist/types/i18n/locales/en-GB.d.ts +6 -0
- package/dist/types/i18n/locales/es-ES.d.ts +6 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +6 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +6 -0
- package/dist/types/i18n/locales/ko-KR.d.ts +6 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +6 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +6 -0
- package/dist/types/i18n/locales/ru-RU.d.ts +6 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +6 -0
- package/dist/types/i18n/locales/zh-HK.d.ts +6 -0
- package/dist/types/i18n/locales/zh-TW.d.ts +6 -0
- package/dist/types/out/fraud-detection.d.ts +2 -5
- package/dist/types/out/stripe-radar.d.ts +21 -0
- package/dist/types/out/types.d.ts +2 -4
- package/dist/types/out/worldpay-ddc.d.ts +9 -2
- package/dist/types/out/worldpay-jsc-origin.d.ts +0 -0
- package/dist/types/out/worldpay-jsc.d.ts +38 -0
- package/dist/types/types/event.d.ts +28 -1
- package/dist/types/types/fraud-detection.d.ts +5 -5
- package/dist/types/types/message.d.ts +1 -0
- package/package.json +1 -1
package/dist/es/api/http.js
CHANGED
|
@@ -4,6 +4,7 @@ import "../core.js";
|
|
|
4
4
|
import { safeStringify } from "../utils/index.js";
|
|
5
5
|
import { getFetch } from "./fetch.js";
|
|
6
6
|
import { PayKKaError, EPayKKaError } from "../core/error.js";
|
|
7
|
+
import "../out/worldpay-jsc-origin.js";
|
|
7
8
|
import { getBrowserInfo } from "../utils/system-info/get-browser-info.js";
|
|
8
9
|
const request = async (method, url, params, { timeout = 2e4, headers, locale } = {}) => {
|
|
9
10
|
const abortController = new AbortController();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { apiPrefix } from "../../../config.js";
|
|
2
|
+
import { buildPaymentParams, buildQueryParams } from "../../utils/index.js";
|
|
3
|
+
import { http } from "../../http.js";
|
|
4
|
+
import { payResMap } from "../map.js";
|
|
5
|
+
const opayWalletPay = async (params, extraParams, options) => {
|
|
6
|
+
const paymentParams = buildPaymentParams(params, extraParams);
|
|
7
|
+
return http.post(`${apiPrefix}/payments`, paymentParams, options).then(payResMap);
|
|
8
|
+
};
|
|
9
|
+
const getOpayWalletPayInfo = async (params, extraParams, options) => {
|
|
10
|
+
const queryParams = buildQueryParams(params, extraParams);
|
|
11
|
+
return http.post(`${apiPrefix}/payments/query`, queryParams, options).then(payResMap);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
getOpayWalletPayInfo,
|
|
15
|
+
opayWalletPay
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { apiPrefix } from "../../../config.js";
|
|
2
|
+
import { buildPaymentParams, buildQueryParams } from "../../utils/index.js";
|
|
3
|
+
import { http } from "../../http.js";
|
|
4
|
+
import { payResMap } from "../map.js";
|
|
5
|
+
const pagaWalletPay = async (params, extraParams, options) => {
|
|
6
|
+
const paymentParams = buildPaymentParams(params, extraParams);
|
|
7
|
+
return http.post(`${apiPrefix}/payments`, paymentParams, options).then(payResMap);
|
|
8
|
+
};
|
|
9
|
+
const getPagaWalletPayInfo = async (params, extraParams, options) => {
|
|
10
|
+
const queryParams = buildQueryParams(params, extraParams);
|
|
11
|
+
return http.post(`${apiPrefix}/payments/query`, queryParams, options).then(payResMap);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
getPagaWalletPayInfo,
|
|
15
|
+
pagaWalletPay
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { apiPrefix } from "../../../config.js";
|
|
2
|
+
import { buildPaymentParams, buildQueryParams } from "../../utils/index.js";
|
|
3
|
+
import { http } from "../../http.js";
|
|
4
|
+
import { payResMap } from "../map.js";
|
|
5
|
+
const picPay = async (params, extraParams, options) => {
|
|
6
|
+
const paymentParams = buildPaymentParams(params, extraParams);
|
|
7
|
+
return http.post(`${apiPrefix}/payments`, paymentParams, options).then(payResMap);
|
|
8
|
+
};
|
|
9
|
+
const getPicPayInfo = async (params, extraParams, options) => {
|
|
10
|
+
const queryParams = buildQueryParams(params, extraParams);
|
|
11
|
+
return http.post(`${apiPrefix}/payments/query`, queryParams, options).then(payResMap);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
getPicPayInfo,
|
|
15
|
+
picPay
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { apiPrefix } from "../../../config.js";
|
|
2
|
+
import { buildPaymentParams, buildQueryParams } from "../../utils/index.js";
|
|
3
|
+
import { http } from "../../http.js";
|
|
4
|
+
import { payResMap } from "../map.js";
|
|
5
|
+
const pixPay = async (params, extraParams, options) => {
|
|
6
|
+
const paymentParams = buildPaymentParams(params, extraParams);
|
|
7
|
+
return http.post(`${apiPrefix}/payments`, paymentParams, options).then(payResMap);
|
|
8
|
+
};
|
|
9
|
+
const getPixPayInfo = async (params, extraParams, options) => {
|
|
10
|
+
const queryParams = buildQueryParams(params, extraParams);
|
|
11
|
+
return http.post(`${apiPrefix}/payments/query`, queryParams, options).then(payResMap);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
getPixPayInfo,
|
|
15
|
+
pixPay
|
|
16
|
+
};
|
|
@@ -9,6 +9,27 @@ const getRiskAuthorization = async (params, options) => {
|
|
|
9
9
|
};
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
+
const getChannelConfig = async (channel, options) => {
|
|
13
|
+
return http.post(
|
|
14
|
+
"/pub/channel/sdk/config",
|
|
15
|
+
{
|
|
16
|
+
channel_code_list: [
|
|
17
|
+
{
|
|
18
|
+
channel_code: channel
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
options
|
|
23
|
+
).then((res) => {
|
|
24
|
+
var _a;
|
|
25
|
+
return {
|
|
26
|
+
stripe: {
|
|
27
|
+
key: ((_a = res == null ? void 0 : res.stripe) == null ? void 0 : _a.public_key) || ""
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
};
|
|
12
32
|
export {
|
|
33
|
+
getChannelConfig,
|
|
13
34
|
getRiskAuthorization
|
|
14
35
|
};
|
|
@@ -6,6 +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 "../../api/http.js";
|
|
9
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
9
10
|
import { AccordionContext } from "../internal/Accordion/type.js";
|
|
10
11
|
import { accordionTransition } from "../internal/Accordion/accordionTransition.js";
|
|
11
12
|
const { bem } = useBEM("accordion-item");
|
|
@@ -3,6 +3,7 @@ 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
5
|
import "../../api/http.js";
|
|
6
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
6
7
|
import "../internal/Form/type.js";
|
|
7
8
|
import "../internal/Form/context.js";
|
|
8
9
|
import { FormItem } from "../internal/Form/FormItem.js";
|
|
@@ -7,6 +7,7 @@ import "../../utils/system-info/get-browser-info.js";
|
|
|
7
7
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
8
8
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
9
9
|
import "../../api/http.js";
|
|
10
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
10
11
|
import "../internal/Form/type.js";
|
|
11
12
|
import "../internal/Form/context.js";
|
|
12
13
|
import { FormItem } from "../internal/Form/FormItem.js";
|
|
@@ -9,6 +9,7 @@ import { getBrowserParams } from "../../api/modules/get-browser-params.js";
|
|
|
9
9
|
import { COMMON_CLASS_NAME, PaymentType, PaymentMethod, SessionMode } from "../../constant.js";
|
|
10
10
|
import { CoreContext } from "../../core/context.js";
|
|
11
11
|
import { PayKKaError } from "../../core/error.js";
|
|
12
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
12
13
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
13
14
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
14
15
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
@@ -11,6 +11,7 @@ import { getApplePayInfo, applePay, getMerchantSession } from "../../api/modules
|
|
|
11
11
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
12
12
|
import "../../core/context.js";
|
|
13
13
|
import { PayKKaError } from "../../core/error.js";
|
|
14
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
14
15
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
15
16
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
16
17
|
import { Info } from "../internal/Info/Info.js";
|
|
@@ -11,6 +11,7 @@ import { getBrowserParams } from "../../api/modules/get-browser-params.js";
|
|
|
11
11
|
import { PaymentCategory, COMMON_CLASS_NAME, PaymentMethod, SessionMode } from "../../constant.js";
|
|
12
12
|
import { getBoostPayInfo, boostPay } from "../../api/modules/boost/index.js";
|
|
13
13
|
import { PayKKaError } from "../../core/error.js";
|
|
14
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
14
15
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
15
16
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
16
17
|
import { createEmailCore, EmailField } from "../EmailField/EmailField.js";
|
|
@@ -8,6 +8,7 @@ import { PaymentType, SessionMode, CardPaymentMethods, PaymentMethod, COMMON_CLA
|
|
|
8
8
|
import { CoreContext } from "../../core/context.js";
|
|
9
9
|
import { PayKKaError } from "../../core/error.js";
|
|
10
10
|
import { WorldpayDDC } from "../../out/worldpay-ddc.js";
|
|
11
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
11
12
|
import { createPromise } from "../../utils/create-promise.js";
|
|
12
13
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
13
14
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
@@ -4,6 +4,7 @@ import { useBEM } from "../../hooks/useBEM.js";
|
|
|
4
4
|
import "../../core/context.js";
|
|
5
5
|
import { clamp } from "../../utils/index.js";
|
|
6
6
|
import "../../api/http.js";
|
|
7
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
7
8
|
import { getSupportedCardBrands, getCardBrandInfo } from "../../utils/card-brand/index.js";
|
|
8
9
|
import { normalizedClass } from "../../utils/format.js";
|
|
9
10
|
const { bem } = useBEM("card-brands");
|
|
@@ -2,6 +2,7 @@ import { w, A, F, h, u } from "../../core.js";
|
|
|
2
2
|
import { isExpired } from "../../utils/index.js";
|
|
3
3
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
4
4
|
import "../../api/http.js";
|
|
5
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
5
6
|
import "../internal/Form/type.js";
|
|
6
7
|
import "../internal/Form/context.js";
|
|
7
8
|
import { FormItem } from "../internal/Form/FormItem.js";
|
|
@@ -3,6 +3,7 @@ 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
5
|
import "../../api/http.js";
|
|
6
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
6
7
|
import "../internal/Form/type.js";
|
|
7
8
|
import "../internal/Form/context.js";
|
|
8
9
|
import { FormItem } from "../internal/Form/FormItem.js";
|
|
@@ -2,6 +2,7 @@ import { A, h, u } from "../../core.js";
|
|
|
2
2
|
import { clamp } from "../../utils/index.js";
|
|
3
3
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
4
4
|
import "../../api/http.js";
|
|
5
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
5
6
|
import "../internal/Form/type.js";
|
|
6
7
|
import "../internal/Form/context.js";
|
|
7
8
|
import { FormItem } from "../internal/Form/FormItem.js";
|
|
@@ -6,6 +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 "../../api/http.js";
|
|
9
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
9
10
|
const { bem } = useBEM("card-no");
|
|
10
11
|
const CardNo = (props) => {
|
|
11
12
|
const { value, className, style } = props;
|
|
@@ -2,6 +2,7 @@ import { w, A, F, h, y, u } from "../../core.js";
|
|
|
2
2
|
import { clamp } from "../../utils/index.js";
|
|
3
3
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
4
4
|
import "../../api/http.js";
|
|
5
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
5
6
|
import "../internal/Form/type.js";
|
|
6
7
|
import "../internal/Form/context.js";
|
|
7
8
|
import { FormItem } from "../internal/Form/FormItem.js";
|
|
@@ -6,6 +6,7 @@ import { limitedToNumber } from "../../utils/format.js";
|
|
|
6
6
|
import { EFieldType } from "../SecuredFieldsProvider/index.js";
|
|
7
7
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
8
8
|
import "../../api/http.js";
|
|
9
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
9
10
|
import "../internal/Form/type.js";
|
|
10
11
|
import "../internal/Form/context.js";
|
|
11
12
|
import { FormItem } from "../internal/Form/FormItem.js";
|
|
@@ -4,6 +4,7 @@ import { useI18n } from "../../hooks/useI18n.js";
|
|
|
4
4
|
import { finCardBrandInfoByCode } from "../../utils/card-brand/index.js";
|
|
5
5
|
import "../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import "../../api/http.js";
|
|
7
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
7
8
|
import "../internal/Form/type.js";
|
|
8
9
|
import "../internal/Form/context.js";
|
|
9
10
|
import { FormItem } from "../internal/Form/FormItem.js";
|
|
@@ -13,6 +13,7 @@ import { IconCardNo } from "../internal/icons/IconCardNo.js";
|
|
|
13
13
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
14
14
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
15
15
|
import "../../api/http.js";
|
|
16
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
16
17
|
const { bem } = useBEM("combined-card-info");
|
|
17
18
|
const CombinedCardInfo = w(
|
|
18
19
|
(props, ref) => {
|
|
@@ -3,6 +3,7 @@ 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
5
|
import "../../api/http.js";
|
|
6
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
6
7
|
import { CardPaymentMethods, PaymentMethod, PaymentCategory, SessionMode, PaymentMethod2CategoryMap } from "../../constant.js";
|
|
7
8
|
import { Card } from "../Card/index.js";
|
|
8
9
|
import { ApplePay } from "../ApplePay/index.js";
|
|
@@ -17,6 +18,11 @@ import { GrabPay } from "../GrabPay/index.js";
|
|
|
17
18
|
import { GCash } from "../wallets/GCash/GCash.js";
|
|
18
19
|
import { Paymaya } from "../wallets/Paymaya/Paymaya.js";
|
|
19
20
|
import { Zalopay } from "../wallets/Zalopay/Zalopay.js";
|
|
21
|
+
import { Vietqr } from "../wallets/Vietqr/Vietqr.js";
|
|
22
|
+
import { Pix } from "../wallets/Pix/Pix.js";
|
|
23
|
+
import { PicPay } from "../wallets/PicPay/PicPay.js";
|
|
24
|
+
import { OpayWallet } from "../wallets/OpayWallet/OpayWallet.js";
|
|
25
|
+
import { PagaWallet } from "../wallets/PagaWallet/PagaWallet.js";
|
|
20
26
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
21
27
|
import { intersection } from "../../utils/index.js";
|
|
22
28
|
import { PayKKaError } from "../../core/error.js";
|
|
@@ -34,6 +40,11 @@ import { IconCard2 } from "../internal/icons/IconCard2.js";
|
|
|
34
40
|
import { IconGCash } from "../internal/icons/IconGCash.js";
|
|
35
41
|
import { IconPaymaya } from "../internal/icons/IconPaymaya.js";
|
|
36
42
|
import { IconZalopay } from "../internal/icons/IconZalopay.js";
|
|
43
|
+
import { IconVietqr } from "../internal/icons/IconVietqr.js";
|
|
44
|
+
import { IconPix } from "../internal/icons/IconPix.js";
|
|
45
|
+
import { IconPicPay } from "../internal/icons/IconPicPay.js";
|
|
46
|
+
import { IconOpayWallet } from "../internal/icons/IconOpayWallet.js";
|
|
47
|
+
import { IconPagaWallet } from "../internal/icons/IconPagaWallet.js";
|
|
37
48
|
import { removeElementFromArray } from "../../utils/array.js";
|
|
38
49
|
const dropInSupportedPaymentMethods = [
|
|
39
50
|
...CardPaymentMethods,
|
|
@@ -48,7 +59,12 @@ const dropInSupportedPaymentMethods = [
|
|
|
48
59
|
PaymentMethod.MAY_BANK_QR_PAY,
|
|
49
60
|
PaymentMethod.GCASH,
|
|
50
61
|
PaymentMethod.PAYMAYA,
|
|
51
|
-
PaymentMethod.
|
|
62
|
+
PaymentMethod.VIETQR,
|
|
63
|
+
PaymentMethod.ZALOPAY,
|
|
64
|
+
PaymentMethod.PIX,
|
|
65
|
+
PaymentMethod.PIC_PAY,
|
|
66
|
+
PaymentMethod.OPAY_WALLET,
|
|
67
|
+
PaymentMethod.PAGA_WALLET
|
|
52
68
|
];
|
|
53
69
|
const PaymentComponentMap = {
|
|
54
70
|
[PaymentCategory.CARD]: Card,
|
|
@@ -63,7 +79,12 @@ const PaymentComponentMap = {
|
|
|
63
79
|
[PaymentCategory.GRAB_PAY]: GrabPay,
|
|
64
80
|
[PaymentCategory.GCASH]: GCash,
|
|
65
81
|
[PaymentCategory.PAYMAYA]: Paymaya,
|
|
66
|
-
[PaymentCategory.ZALOPAY]: Zalopay
|
|
82
|
+
[PaymentCategory.ZALOPAY]: Zalopay,
|
|
83
|
+
[PaymentCategory.VIETQR]: Vietqr,
|
|
84
|
+
[PaymentCategory.PIX]: Pix,
|
|
85
|
+
[PaymentCategory.PIC_PAY]: PicPay,
|
|
86
|
+
[PaymentCategory.OPAY_WALLET]: OpayWallet,
|
|
87
|
+
[PaymentCategory.PAGA_WALLET]: PagaWallet
|
|
67
88
|
// [PaymentCategory.WECHAT_PAY]: WechatPay,
|
|
68
89
|
// [PaymentCategory.ALI_PAY]: AliPay,
|
|
69
90
|
// [PaymentCategory.SEPA_DEBIT]: Sepa
|
|
@@ -142,6 +163,26 @@ const paymentCategoryOptionMap = {
|
|
|
142
163
|
[PaymentCategory.ZALOPAY]: {
|
|
143
164
|
icon: IconZalopay,
|
|
144
165
|
nameKey: "dropIn.zalopay.label"
|
|
166
|
+
},
|
|
167
|
+
[PaymentCategory.VIETQR]: {
|
|
168
|
+
icon: IconVietqr,
|
|
169
|
+
nameKey: "dropIn.vietqr.label"
|
|
170
|
+
},
|
|
171
|
+
[PaymentCategory.PIX]: {
|
|
172
|
+
icon: IconPix,
|
|
173
|
+
nameKey: "dropIn.pix.label"
|
|
174
|
+
},
|
|
175
|
+
[PaymentCategory.PIC_PAY]: {
|
|
176
|
+
icon: IconPicPay,
|
|
177
|
+
nameKey: "dropIn.picPay.label"
|
|
178
|
+
},
|
|
179
|
+
[PaymentCategory.OPAY_WALLET]: {
|
|
180
|
+
icon: IconOpayWallet,
|
|
181
|
+
nameKey: "dropIn.opayWallet.label"
|
|
182
|
+
},
|
|
183
|
+
[PaymentCategory.PAGA_WALLET]: {
|
|
184
|
+
icon: IconPagaWallet,
|
|
185
|
+
nameKey: "dropIn.pagaWallet.label"
|
|
145
186
|
}
|
|
146
187
|
};
|
|
147
188
|
const { bem } = useBEM("drop-in");
|
|
@@ -11,6 +11,7 @@ import "../../utils/system-info/get-browser-info.js";
|
|
|
11
11
|
import { EMAIL_REG } from "../../utils/reg-exp.js";
|
|
12
12
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
13
13
|
import "../../api/http.js";
|
|
14
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
14
15
|
import "../internal/Form/type.js";
|
|
15
16
|
import "../internal/Form/context.js";
|
|
16
17
|
import { FormItem } from "../internal/Form/FormItem.js";
|
|
@@ -5,6 +5,7 @@ import { w, F, h, A, y, u } from "../../core.js";
|
|
|
5
5
|
import "../../api/http.js";
|
|
6
6
|
import "../../utils/card-brand/brands.js";
|
|
7
7
|
import { getBrowserInfo } from "../../utils/system-info/get-browser-info.js";
|
|
8
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
8
9
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
9
10
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
10
11
|
import { defaultInputStyleConfig } from "../../types/index.js";
|
|
@@ -11,6 +11,7 @@ import { getGooglePayInfo, googlePay } from "../../api/modules/google-pay/index.
|
|
|
11
11
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
12
12
|
import "../../core/context.js";
|
|
13
13
|
import { PayKKaError } from "../../core/error.js";
|
|
14
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
14
15
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
15
16
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
16
17
|
import { Info } from "../internal/Info/Info.js";
|
|
@@ -11,6 +11,7 @@ import { getBrowserParams } from "../../api/modules/get-browser-params.js";
|
|
|
11
11
|
import { PaymentCategory, COMMON_CLASS_NAME, PaymentMethod, SessionMode } from "../../constant.js";
|
|
12
12
|
import { getGrabPayInfo, grabPay } from "../../api/modules/grab-pay/index.js";
|
|
13
13
|
import { PayKKaError } from "../../core/error.js";
|
|
14
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
14
15
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
15
16
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
16
17
|
import { createEmailCore, EmailField } from "../EmailField/EmailField.js";
|
|
@@ -6,6 +6,7 @@ import "../../utils/card-brand/brands.js";
|
|
|
6
6
|
import "../../utils/system-info/get-browser-info.js";
|
|
7
7
|
import { isMobile } from "../../utils/system-info/get-system-info.js";
|
|
8
8
|
import "../../api/http.js";
|
|
9
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
9
10
|
import { IconRedirect } from "../internal/icons/IconRedirect.js";
|
|
10
11
|
import { IconScan } from "../internal/icons/IconScan.js";
|
|
11
12
|
const { bem } = useBEM("guide-card");
|
|
@@ -35,7 +36,12 @@ const GuideCard = (props) => {
|
|
|
35
36
|
[PaymentCategory.MAY_BANK_QR_PAY]: redirectGuideCard,
|
|
36
37
|
[PaymentCategory.GCASH]: isMobile() ? redirectGuideCard : getQRCodeGuideCard(i18n.get("dropIn.gcash.label")),
|
|
37
38
|
[PaymentCategory.PAYMAYA]: redirectGuideCard,
|
|
38
|
-
[PaymentCategory.ZALOPAY]: isMobile() ? redirectGuideCard : getQRCodeGuideCard(i18n.get("dropIn.zalopay.label"))
|
|
39
|
+
[PaymentCategory.ZALOPAY]: isMobile() ? redirectGuideCard : getQRCodeGuideCard(i18n.get("dropIn.zalopay.label")),
|
|
40
|
+
[PaymentCategory.VIETQR]: isMobile() ? redirectGuideCard : getQRCodeGuideCard(i18n.get("dropIn.vietqr.label")),
|
|
41
|
+
[PaymentCategory.PIX]: redirectGuideCard,
|
|
42
|
+
[PaymentCategory.PIC_PAY]: redirectGuideCard,
|
|
43
|
+
[PaymentCategory.OPAY_WALLET]: redirectGuideCard,
|
|
44
|
+
[PaymentCategory.PAGA_WALLET]: redirectGuideCard
|
|
39
45
|
};
|
|
40
46
|
return /* @__PURE__ */ u(b, { children: guideCardInfoMap[type] && /* @__PURE__ */ u("div", { className: bem(), children: /* @__PURE__ */ u("div", { className: bem("content"), children: [
|
|
41
47
|
/* @__PURE__ */ u("div", { className: bem("icon"), children: (_a = guideCardInfoMap[type]) == null ? void 0 : _a.icon }),
|
|
@@ -11,6 +11,7 @@ import { getBrowserParams } from "../../api/modules/get-browser-params.js";
|
|
|
11
11
|
import { PaymentCategory, COMMON_CLASS_NAME, PaymentMethod, SessionMode } from "../../constant.js";
|
|
12
12
|
import { getLinePayInfo, linePay } from "../../api/modules/line-pay/index.js";
|
|
13
13
|
import { PayKKaError } from "../../core/error.js";
|
|
14
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
14
15
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
15
16
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
16
17
|
import { createEmailCore, EmailField } from "../EmailField/EmailField.js";
|
|
@@ -11,6 +11,7 @@ import { getBrowserParams } from "../../api/modules/get-browser-params.js";
|
|
|
11
11
|
import { PaymentCategory, COMMON_CLASS_NAME, PaymentMethod, SessionMode } from "../../constant.js";
|
|
12
12
|
import { getMayBankQRPayInfo, mayBankQRPay } from "../../api/modules/may-bank-qr-pay/index.js";
|
|
13
13
|
import { PayKKaError } from "../../core/error.js";
|
|
14
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
14
15
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
15
16
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
16
17
|
import { createEmailCore, EmailField } from "../EmailField/EmailField.js";
|
|
@@ -11,6 +11,7 @@ import { getBrowserParams } from "../../api/modules/get-browser-params.js";
|
|
|
11
11
|
import { PaymentCategory, COMMON_CLASS_NAME, PaymentMethod, SessionMode } from "../../constant.js";
|
|
12
12
|
import { getNinePayInfo, ninePay } from "../../api/modules/nine-pay/index.js";
|
|
13
13
|
import { PayKKaError } from "../../core/error.js";
|
|
14
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
14
15
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
15
16
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
16
17
|
import { createEmailCore, EmailField } from "../EmailField/EmailField.js";
|
|
@@ -3,6 +3,7 @@ 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
5
|
import "../../api/http.js";
|
|
6
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
6
7
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
7
8
|
import { IconInfo } from "../internal/icons/IconInfo.js";
|
|
8
9
|
const { bem } = useBEM("recurring-tip");
|
|
@@ -10,6 +10,7 @@ import { getBrowserParams } from "../../api/modules/get-browser-params.js";
|
|
|
10
10
|
import { COMMON_CLASS_NAME, PaymentMethod } from "../../constant.js";
|
|
11
11
|
import { getSepaPayInfo, sepaPay } from "../../api/modules/sepa/index.js";
|
|
12
12
|
import { PayKKaError } from "../../core/error.js";
|
|
13
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
13
14
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
14
15
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
15
16
|
import { AddressField } from "../AddressField/index.js";
|
|
@@ -11,6 +11,7 @@ import { getBrowserParams } from "../../api/modules/get-browser-params.js";
|
|
|
11
11
|
import { PaymentCategory, COMMON_CLASS_NAME, PaymentMethod, SessionMode } from "../../constant.js";
|
|
12
12
|
import { getShopeePayInfo, shopeePay } from "../../api/modules/shopee-pay/index.js";
|
|
13
13
|
import { PayKKaError } from "../../core/error.js";
|
|
14
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
14
15
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
15
16
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
16
17
|
import { createEmailCore, EmailField } from "../EmailField/EmailField.js";
|
|
@@ -5,6 +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 "../../api/http.js";
|
|
8
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
8
9
|
import { Button } from "../internal/Button/Button.js";
|
|
9
10
|
import { IconSafe } from "../internal/icons/IconSafe.js";
|
|
10
11
|
import { LoadingCheck } from "../internal/LoadingCheck/LoadingCheck.js";
|
|
@@ -11,6 +11,7 @@ import { getBrowserParams } from "../../api/modules/get-browser-params.js";
|
|
|
11
11
|
import { PaymentCategory, COMMON_CLASS_NAME, PaymentMethod, SessionMode } from "../../constant.js";
|
|
12
12
|
import { getTNGWalletPayInfo, tngWalletPay } from "../../api/modules/tng-wallet/index.js";
|
|
13
13
|
import { PayKKaError } from "../../core/error.js";
|
|
14
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
14
15
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
15
16
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
16
17
|
import { createEmailCore, EmailField } from "../EmailField/EmailField.js";
|
|
@@ -3,12 +3,13 @@ import "../../utils/card-brand/brands.js";
|
|
|
3
3
|
import "../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import "../../core/context.js";
|
|
5
5
|
import "../../api/http.js";
|
|
6
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
6
7
|
import { Modal } from "../internal/Modal/Modal.js";
|
|
7
8
|
import "../internal/Button/button2.js";
|
|
8
9
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
9
10
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
10
|
-
import { MessageAction } from "../../types/message.js";
|
|
11
11
|
import { cdnOrigin } from "../../config.js";
|
|
12
|
+
import { MessageAction } from "../../types/message.js";
|
|
12
13
|
import { safeParse } from "../../utils/index.js";
|
|
13
14
|
import { useBreakpoints } from "../../hooks/useBreakpoints.js";
|
|
14
15
|
import { Icon3DSInfo } from "../internal/icons/Icon3DSInfo.js";
|
|
@@ -9,6 +9,7 @@ import { COMMON_CLASS_NAME, PaymentType, PaymentMethod, SessionMode } from "../.
|
|
|
9
9
|
import { getWechatPayInfo, wechatPay } from "../../api/modules/wechat-pay/index.js";
|
|
10
10
|
import { CoreContext } from "../../core/context.js";
|
|
11
11
|
import { PayKKaError } from "../../core/error.js";
|
|
12
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
12
13
|
import { useBEM } from "../../hooks/useBEM.js";
|
|
13
14
|
import { usePayState } from "../../hooks/usePayState.js";
|
|
14
15
|
import { useRetry } from "../../hooks/useRetry.js";
|
|
@@ -6,6 +6,7 @@ import "../../../utils/system-info/get-browser-info.js";
|
|
|
6
6
|
import { formatAmount } from "../../../utils/format.js";
|
|
7
7
|
import { formatTime } from "../../../utils/date.js";
|
|
8
8
|
import "../../../api/http.js";
|
|
9
|
+
import "../../../out/worldpay-jsc-origin.js";
|
|
9
10
|
import { useBreakpoints } from "../../../hooks/useBreakpoints.js";
|
|
10
11
|
import { Modal } from "../../internal/Modal/Modal.js";
|
|
11
12
|
import "./qr-code-modal.js";
|
|
@@ -16,6 +17,7 @@ const QRCodeModal = (props) => {
|
|
|
16
17
|
title,
|
|
17
18
|
bgColor = "#FFFFFF",
|
|
18
19
|
textColor = "#1F1F1F",
|
|
20
|
+
borderColor = "#000000",
|
|
19
21
|
expiredTime,
|
|
20
22
|
amount,
|
|
21
23
|
icon,
|
|
@@ -26,12 +28,11 @@ const QRCodeModal = (props) => {
|
|
|
26
28
|
const breakpoints = useBreakpoints();
|
|
27
29
|
const useRoundBorder = !bgColor || ["transparent", "white", "#FFFFFF"].includes(bgColor);
|
|
28
30
|
const RoundBorder = () => {
|
|
29
|
-
return /* @__PURE__ */ u("div", {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */ u("div", { className: bem("round-border-item") })
|
|
33
|
-
|
|
34
|
-
] });
|
|
31
|
+
return /* @__PURE__ */ u("div", {
|
|
32
|
+
className: bem("round-border"),
|
|
33
|
+
// 表示4个边角
|
|
34
|
+
children: Array.from({ length: 4 }).map((_, index) => /* @__PURE__ */ u("div", { className: bem("round-border-item"), style: { borderColor } }, index))
|
|
35
|
+
});
|
|
35
36
|
};
|
|
36
37
|
return /* @__PURE__ */ u(
|
|
37
38
|
Modal,
|
|
@@ -3,5 +3,6 @@ import "../../../utils/card-brand/brands.js";
|
|
|
3
3
|
import "../../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import "../../../core/context.js";
|
|
5
5
|
import "../../../api/http.js";
|
|
6
|
+
import "../../../out/worldpay-jsc-origin.js";
|
|
6
7
|
import "../../internal/Modal/Modal.js";
|
|
7
8
|
import "./qr-code-modal.js";
|
|
@@ -3,5 +3,6 @@ import "../../utils/card-brand/brands.js";
|
|
|
3
3
|
import "../../utils/system-info/get-browser-info.js";
|
|
4
4
|
import "../../core/context.js";
|
|
5
5
|
import "../../api/http.js";
|
|
6
|
+
import "../../out/worldpay-jsc-origin.js";
|
|
6
7
|
import "../internal/Modal/Modal.js";
|
|
7
8
|
import "./QRCodeModal/qr-code-modal.js";
|
|
@@ -7,6 +7,7 @@ import "../utils/card-brand/brands.js";
|
|
|
7
7
|
import "../utils/system-info/get-browser-info.js";
|
|
8
8
|
import "../core/context.js";
|
|
9
9
|
import "../api/http.js";
|
|
10
|
+
import "../out/worldpay-jsc-origin.js";
|
|
10
11
|
import "./CardExpireDateField/index.js";
|
|
11
12
|
import "./internal/Form/type.js";
|
|
12
13
|
import "./internal/Form/context.js";
|
|
@@ -39,3 +40,8 @@ import "./ShopeePay/index.js";
|
|
|
39
40
|
import "./wallets/GCash/GCash.js";
|
|
40
41
|
import "./wallets/Paymaya/Paymaya.js";
|
|
41
42
|
import "./wallets/Zalopay/Zalopay.js";
|
|
43
|
+
import "./wallets/Vietqr/Vietqr.js";
|
|
44
|
+
import "./wallets/Pix/Pix.js";
|
|
45
|
+
import "./wallets/PicPay/PicPay.js";
|
|
46
|
+
import "./wallets/PagaWallet/PagaWallet.js";
|
|
47
|
+
import "./wallets/OpayWallet/OpayWallet.js";
|
|
@@ -7,6 +7,7 @@ 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
9
|
import "../../../api/http.js";
|
|
10
|
+
import "../../../out/worldpay-jsc-origin.js";
|
|
10
11
|
const { bem } = useBEM("button");
|
|
11
12
|
function Button(props) {
|
|
12
13
|
const { style, className, children, icon, loading, disabled, dashed } = props;
|
|
@@ -7,6 +7,7 @@ import "../../../utils/system-info/get-browser-info.js";
|
|
|
7
7
|
import { normalizedClass } from "../../../utils/format.js";
|
|
8
8
|
import "../../../api/http.js";
|
|
9
9
|
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
10
|
+
import "../../../out/worldpay-jsc-origin.js";
|
|
10
11
|
import { IconChecked } from "../icons/iconChecked.js";
|
|
11
12
|
const { bem } = useBEM("check-box");
|
|
12
13
|
const CheckBox = (props) => {
|