@paykka/card-checkout-ui 0.17.0 → 0.21.0
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 +22 -22
- package/dist/card-checkout-ui.umd.cjs +22 -22
- package/dist/es/api/http.js +1 -0
- package/dist/es/api/index.js +1 -0
- package/dist/es/api/modules/checkout/map.js +12 -15
- package/dist/es/api/modules/get-browser-params.js +1 -1
- package/dist/es/api/modules/index.js +1 -0
- package/dist/es/api/utils/index.js +1 -0
- package/dist/es/components/AccordionItem/AccordionItem.js +1 -0
- package/dist/es/components/AddressField/index.js +1 -0
- package/dist/es/components/ApplePay/index.js +1 -0
- package/dist/es/components/CPFField/index.js +1 -0
- package/dist/es/components/Card/index.js +62 -46
- 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/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 +87 -7
- package/dist/es/components/EmailField/EmailField.js +11 -1
- package/dist/es/components/EncryptedCard/index.js +1 -0
- package/dist/es/components/GooglePay/index.js +1 -0
- package/dist/es/components/GuideCard/index.js +8 -43
- package/dist/es/components/{CardIBANField → IBANField}/index.js +7 -5
- package/dist/es/components/PaymentButton/index.js +1 -0
- package/dist/es/components/SecuredFieldsProvider/index.js +1 -0
- package/dist/es/components/Sepa/index.js +142 -250
- package/dist/es/components/SubmitButton/index.js +1 -0
- package/dist/es/components/ThreeDS/index.js +1 -0
- package/dist/es/components/Tip/index.js +1 -0
- package/dist/es/components/business/BlikCodeField/BlikCodeField.js +2 -1
- package/dist/es/components/business/BlikCodeField/index.js +2 -1
- package/dist/es/components/business/NameField/NameField.js +1 -0
- package/dist/es/components/business/NameField/index.js +1 -0
- package/dist/es/components/business/{BlikConfirmModal/BlikConfirmModal.js → PaymentConfirmModal/PaymentConfirmModal.js} +8 -7
- package/dist/es/components/business/{BlikConfirmModal → PaymentConfirmModal}/index.js +2 -1
- package/dist/es/components/business/PhoneField/PhoneField.js +52 -27
- package/dist/es/components/business/PhoneField/area-codes.js +458 -0
- package/dist/es/components/business/PhoneField/config.js +2 -1
- package/dist/es/components/business/PhoneField/index.js +1 -0
- package/dist/es/components/business/QRCodeContent/QRCodeContent.js +68 -0
- package/dist/es/components/business/QRCodeContent/index.js +8 -0
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +6 -44
- package/dist/es/components/business/QRCodeModal/index.js +3 -1
- package/dist/es/components/business/SegmentedDigitInput/format.js +1 -0
- package/dist/es/components/business/SegmentedDigitInput/index.js +1 -0
- package/dist/es/components/business/Tooltip/{Tooltip.js → Tooltip2.js} +2 -1
- package/dist/es/components/business/Tooltip/index.js +2 -1
- package/dist/es/components/business/index.js +5 -3
- package/dist/es/components/index.js +11 -1
- package/dist/es/components/internal/Accordion/accordionTransition.js +1 -0
- package/dist/es/components/internal/Accordion/index.js +1 -0
- package/dist/es/components/internal/Button/Button2.js +3 -2
- 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/Form.js +1 -0
- package/dist/es/components/internal/Form/FormItem.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/Input.js +1 -0
- package/dist/es/components/internal/Input/type.js +1 -0
- package/dist/es/components/internal/Loading/Loading2.js +1 -0
- package/dist/es/components/internal/Loading/index.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/Icon3DSFail.js +1 -0
- package/dist/es/components/internal/icons/Icon3DSInfo.js +1 -0
- package/dist/es/components/internal/icons/Icon3DSSuccess.js +1 -0
- package/dist/es/components/internal/icons/IconAdd.js +1 -0
- package/dist/es/components/internal/icons/IconAlipay.js +43 -0
- package/dist/es/components/internal/icons/IconAlipayHK.js +66 -0
- package/dist/es/components/internal/icons/IconAlipayPlus.js +1 -0
- package/dist/es/components/internal/icons/IconAmex.js +1 -0
- package/dist/es/components/internal/icons/IconArrowDown.js +1 -0
- package/dist/es/components/internal/icons/IconBancomatPay.js +1 -0
- package/dist/es/components/internal/icons/IconBancontact.js +16 -71
- package/dist/es/components/internal/icons/IconBizum.js +1 -0
- package/dist/es/components/internal/icons/IconBlik.js +60 -542
- package/dist/es/components/internal/icons/IconBoost.js +14 -40
- package/dist/es/components/internal/icons/IconCard.js +1 -0
- package/dist/es/components/internal/icons/IconCard2.js +1 -0
- package/dist/es/components/internal/icons/IconCardNo.js +1 -0
- package/dist/es/components/internal/icons/IconDinnersClub.js +1 -0
- package/dist/es/components/internal/icons/IconDiscover.js +1 -0
- package/dist/es/components/internal/icons/IconDoku.js +31 -0
- package/dist/es/components/internal/icons/IconDragonPay.js +1 -0
- package/dist/es/components/internal/icons/IconEPS.js +1 -0
- package/dist/es/components/internal/icons/IconError.js +1 -0
- package/dist/es/components/internal/icons/IconFpx.js +31 -15
- package/dist/es/components/internal/icons/IconGCash.js +1 -0
- package/dist/es/components/internal/icons/IconGcashComplete.js +1 -0
- package/dist/es/components/internal/icons/IconGoPay.js +31 -0
- package/dist/es/components/internal/icons/IconGrabPay.js +1 -0
- package/dist/es/components/internal/icons/IconIdeal.js +1 -0
- package/dist/es/components/internal/icons/IconInfo.js +1 -0
- package/dist/es/components/internal/icons/IconJcb.js +1 -0
- package/dist/es/components/internal/icons/IconJenius.js +28 -0
- package/dist/es/components/internal/icons/IconLinePay.js +1 -0
- package/dist/es/components/internal/icons/IconLinkAja.js +44 -0
- package/dist/es/components/internal/icons/IconMasterCard.js +1 -0
- package/dist/es/components/internal/icons/IconMayBankQRPay.js +1 -0
- package/dist/es/components/internal/icons/IconMbWay.js +1 -0
- package/dist/es/components/internal/icons/IconMultibanco.js +1 -0
- package/dist/es/components/internal/icons/IconMyBank.js +2 -1
- package/dist/es/components/internal/icons/IconNinePay.js +1 -0
- package/dist/es/components/internal/icons/IconNuPay.js +31 -0
- package/dist/es/components/internal/icons/IconOnlineBankingEstonia.js +1 -0
- package/dist/es/components/internal/icons/IconOnlineBankingFinland.js +1 -0
- package/dist/es/components/internal/icons/IconOnlineBankingIndonesia.js +1 -0
- package/dist/es/components/internal/icons/IconOnlineBankingLatvia.js +1 -0
- package/dist/es/components/internal/icons/IconOnlineBankingLithuania.js +1 -0
- package/dist/es/components/internal/icons/IconOnlineBankingThailand.js +1 -0
- package/dist/es/components/internal/icons/IconOpayWallet.js +1 -0
- package/dist/es/components/internal/icons/IconOvo.js +1 -0
- package/dist/es/components/internal/icons/IconP24.js +1 -0
- package/dist/es/components/internal/icons/IconPagaWallet.js +1 -0
- package/dist/es/components/internal/icons/IconPayByBank.js +3 -17
- package/dist/es/components/internal/icons/IconPayU.js +1 -0
- package/dist/es/components/internal/icons/IconPaymaya.js +1 -0
- package/dist/es/components/internal/icons/IconPhone.js +1 -0
- package/dist/es/components/internal/icons/IconPicPay.js +1 -0
- package/dist/es/components/internal/icons/IconPix.js +1 -0
- package/dist/es/components/internal/icons/IconRedirect.js +1 -0
- package/dist/es/components/internal/icons/IconSafe.js +1 -0
- package/dist/es/components/internal/icons/IconSatispay.js +1 -0
- package/dist/es/components/internal/icons/IconScan.js +1 -0
- package/dist/es/components/internal/icons/IconSepa.js +36 -0
- package/dist/es/components/internal/icons/IconShopeePay.js +1 -0
- package/dist/es/components/internal/icons/IconSkrill.js +1 -0
- package/dist/es/components/internal/icons/IconSuccess.js +1 -0
- package/dist/es/components/internal/icons/IconSwish.js +35 -0
- package/dist/es/components/internal/icons/IconSwitch.js +1 -0
- package/dist/es/components/internal/icons/IconTNGWallet.js +1 -0
- package/dist/es/components/internal/icons/IconTick.js +1 -0
- package/dist/es/components/internal/icons/IconTrustly.js +1 -0
- package/dist/es/components/internal/icons/IconTwint.js +54 -0
- package/dist/es/components/internal/icons/IconUnionPay.js +1 -0
- package/dist/es/components/internal/icons/IconUpi.js +6 -15
- package/dist/es/components/internal/icons/IconVietqr.js +1 -0
- package/dist/es/components/internal/icons/IconVietqrComplete.js +1 -0
- package/dist/es/components/internal/icons/IconVisa.js +1 -0
- package/dist/es/components/internal/icons/IconWechatPayGlobal.js +1 -0
- package/dist/es/components/internal/icons/IconWechatPayGlobalComplete.js +1 -0
- package/dist/es/components/internal/icons/IconZalopay.js +1 -0
- package/dist/es/components/internal/icons/IconZalopayComplete.js +1 -0
- package/dist/es/components/internal/icons/iconChecked.js +1 -0
- package/dist/es/components/internal/icons/index.js +1 -0
- package/dist/es/components/wallets/Alipay/Alipay.js +148 -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/AlipayHK/AlipayHK.js +148 -0
- package/dist/es/components/wallets/AlipayHK/alipay-hk.js +1 -0
- package/dist/es/components/wallets/AlipayHK/index.js +1 -0
- package/dist/es/components/wallets/AlipayHK/type.js +1 -0
- package/dist/es/components/wallets/{AliPay/AliPay.js → AlipayPlus/AlipayPlus.js} +18 -19
- package/dist/es/components/wallets/AlipayPlus/ali-pay-plus.js +1 -0
- package/dist/es/components/wallets/AlipayPlus/index.js +1 -0
- package/dist/es/components/wallets/AlipayPlus/type.js +1 -0
- package/dist/es/components/wallets/BancomatPay/BancomatPay.js +9 -9
- package/dist/es/components/wallets/Bancontact/Bancontact.js +18 -17
- package/dist/es/components/wallets/Bizum/Bizum.js +9 -9
- package/dist/es/components/wallets/Blik/Blik.js +20 -19
- package/dist/es/components/wallets/Boost/Boost.js +10 -10
- package/dist/es/components/wallets/Doku/Doku.js +208 -0
- package/dist/es/components/wallets/Doku/doku2.js +1 -0
- package/dist/es/components/wallets/Doku/index.js +1 -0
- package/dist/es/components/wallets/Doku/type.js +1 -0
- package/dist/es/components/wallets/DragonPay/DragonPay.js +10 -10
- package/dist/es/components/wallets/EPS/EPS.js +24 -29
- package/dist/es/components/wallets/Fpx/Fpx.js +10 -10
- package/dist/es/components/wallets/GCash/GCash.js +15 -13
- package/dist/es/components/wallets/GoPay/GoPay.js +197 -0
- package/dist/es/components/wallets/GoPay/go-pay.js +1 -0
- package/dist/es/components/wallets/GoPay/index.js +1 -0
- package/dist/es/components/wallets/GoPay/type.js +1 -0
- package/dist/es/components/wallets/GrabPay/GrabPay.js +10 -10
- package/dist/es/components/wallets/IDeal/IDeal.js +21 -19
- package/dist/es/components/wallets/Jenius/Jenius.js +208 -0
- package/dist/es/components/wallets/Jenius/index.js +1 -0
- package/dist/es/components/wallets/Jenius/jenius2.js +1 -0
- package/dist/es/components/wallets/Jenius/type.js +1 -0
- package/dist/es/components/wallets/LinePay/LinePay.js +10 -10
- package/dist/es/components/wallets/LinkAja/LinkAja.js +208 -0
- package/dist/es/components/wallets/LinkAja/index.js +1 -0
- package/dist/es/components/wallets/LinkAja/link-aja.js +1 -0
- package/dist/es/components/wallets/LinkAja/type.js +1 -0
- package/dist/es/components/wallets/MayBankQRPay/MayBankQRPay.js +10 -10
- package/dist/es/components/wallets/MbWay/MbWay.js +10 -10
- package/dist/es/components/wallets/Multibanco/Multibanco.js +10 -10
- package/dist/es/components/wallets/MyBank/MyBank.js +11 -11
- package/dist/es/components/wallets/NinePay/NinePay.js +10 -10
- package/dist/es/components/wallets/NuPay/NuPay.js +298 -0
- package/dist/es/components/wallets/NuPay/index.js +1 -0
- package/dist/es/components/wallets/NuPay/nu-pay.js +1 -0
- package/dist/es/components/wallets/NuPay/type.js +1 -0
- package/dist/es/components/wallets/OVO/OVO.js +21 -19
- package/dist/es/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.js +10 -10
- package/dist/es/components/wallets/OnlineBankingFinland/OnlineBankingFinland.js +10 -10
- package/dist/es/components/wallets/OnlineBankingIndonesia/OnlineBankingIndonesia.js +10 -10
- package/dist/es/components/wallets/OnlineBankingLatvia/OnlineBankingLatvia.js +10 -10
- package/dist/es/components/wallets/OnlineBankingLithuania/OnlineBankingLithuania.js +10 -10
- package/dist/es/components/wallets/OnlineBankingThailand/OnlineBankingThailand.js +10 -10
- package/dist/es/components/wallets/OpayWallet/OpayWallet.js +10 -10
- package/dist/es/components/wallets/P24/P24.js +16 -15
- package/dist/es/components/wallets/PagaWallet/PagaWallet.js +10 -10
- package/dist/es/components/wallets/PayByBank/PayByBank.js +17 -21
- package/dist/es/components/wallets/PayU/PayU.js +19 -21
- package/dist/es/components/wallets/Paymaya/Paymaya.js +10 -10
- package/dist/es/components/wallets/PicPay/PicPay.js +11 -11
- package/dist/es/components/wallets/Pix/Pix.js +11 -11
- package/dist/es/components/wallets/Satispay/Satispay.js +10 -10
- package/dist/es/components/wallets/ShopeePay/ShopeePay.js +9 -9
- package/dist/es/components/wallets/Skrill/Skrill.js +15 -14
- package/dist/es/components/wallets/Swish/Swish.js +180 -0
- package/dist/es/components/wallets/Swish/index.js +1 -0
- package/dist/es/components/wallets/Swish/swish2.js +1 -0
- package/dist/es/components/wallets/Swish/type.js +1 -0
- package/dist/es/components/wallets/TNGWallet/TNGWallet.js +9 -9
- package/dist/es/components/wallets/Trustly/Trustly.js +14 -13
- package/dist/es/components/wallets/Twint/Twint.js +197 -0
- package/dist/es/components/wallets/Twint/index.js +1 -0
- package/dist/es/components/wallets/Twint/twint2.js +1 -0
- package/dist/es/components/wallets/Twint/type.js +1 -0
- package/dist/es/components/wallets/Upi/Upi.js +10 -10
- package/dist/es/components/wallets/Vietqr/Vietqr.js +15 -13
- package/dist/es/components/wallets/WechatPay/WechatPay.js +17 -15
- package/dist/es/components/wallets/Zalopay/Zalopay.js +15 -13
- package/dist/es/components/wallets/index.js +10 -1
- package/dist/es/config.js +1 -0
- package/dist/es/constant.js +63 -7
- package/dist/es/core/address.js +1 -0
- package/dist/es/core/create.js +1 -0
- package/dist/es/core/environment.js +17 -3
- package/dist/es/core/index.js +1 -0
- package/dist/es/core/logger.js +27 -12
- package/dist/es/core/payment.js +1 -0
- package/dist/es/core/theme.js +1 -0
- package/dist/es/core.js +30 -30
- package/dist/es/hooks/index.js +1 -0
- package/dist/es/hooks/useBEM.js +1 -0
- package/dist/es/hooks/useBaseWallet.js +21 -7
- package/dist/es/hooks/useI18n.js +1 -0
- package/dist/es/hooks/usePayState.js +1 -0
- package/dist/es/hooks/useRetry.js +6 -0
- package/dist/es/i18n/I18n.js +1 -0
- package/dist/es/i18n/index.js +1 -0
- package/dist/es/i18n/locales/cs-CZ.js +153 -0
- package/dist/es/i18n/locales/da-DK.js +153 -0
- package/dist/es/i18n/locales/de-DE.js +21 -18
- package/dist/es/i18n/locales/en-GB.js +21 -18
- package/dist/es/i18n/locales/es-ES.js +21 -18
- package/dist/es/i18n/locales/fi-FI.js +153 -0
- package/dist/es/i18n/locales/fil-PH.js +153 -0
- package/dist/es/i18n/locales/fr-FR.js +21 -18
- package/dist/es/i18n/locales/hi-IN.js +153 -0
- package/dist/es/i18n/locales/id-ID.js +153 -0
- package/dist/es/i18n/locales/index.js +30 -3
- package/dist/es/i18n/locales/it-IT.js +153 -0
- package/dist/es/i18n/locales/ja-JP.js +21 -18
- package/dist/es/i18n/locales/ko-KR.js +21 -18
- package/dist/es/i18n/locales/ms-MY.js +153 -0
- package/dist/es/i18n/locales/nb-NO.js +153 -0
- package/dist/es/i18n/locales/nl-NL.js +21 -18
- package/dist/es/i18n/locales/pl-PL.js +153 -0
- package/dist/es/i18n/locales/pt-PT.js +21 -18
- package/dist/es/i18n/locales/ru-RU.js +21 -18
- package/dist/es/i18n/locales/sv-SE.js +153 -0
- package/dist/es/i18n/locales/th-TH.js +153 -0
- package/dist/es/i18n/locales/zh-CN.js +21 -18
- package/dist/es/i18n/locales/zh-HK.js +21 -18
- package/dist/es/i18n/locales/zh-TW.js +21 -18
- package/dist/es/i18n/util.js +12 -8
- package/dist/es/index.js +22 -3
- package/dist/es/out/base-fraud-detection.js +1 -0
- package/dist/es/out/config.js +2 -2
- package/dist/es/out/paykka-detection.js +1 -0
- package/dist/es/out/stripe-radar.js +2 -1
- package/dist/es/out/worldpay-ddc.js +1 -0
- package/dist/es/style.css +1 -1
- package/dist/es/utils/bem.js +1 -0
- package/dist/es/utils/card-brand/brands.js +1 -0
- package/dist/es/utils/date.js +5 -1
- package/dist/es/utils/index.js +1 -0
- package/dist/style.css +1 -1
- package/dist/types/api/modules/checkout/map.d.ts +7 -0
- package/dist/types/api/modules/checkout/type.d.ts +2 -1
- package/dist/types/components/ApplePay/hooks/useApplePay.d.ts +1 -0
- package/dist/types/components/ApplePay/type.d.ts +1 -0
- package/dist/types/components/DropIn/type.d.ts +1 -1
- package/dist/types/components/EmailField/type.d.ts +1 -1
- package/dist/types/components/IBANField/IBANField.d.ts +2 -0
- package/dist/types/components/{CardIBANField → IBANField}/type.d.ts +1 -1
- package/dist/types/components/Sepa/Sepa.d.ts +5 -0
- package/dist/types/components/Sepa/type.d.ts +4 -12
- package/dist/types/components/business/PaymentConfirmModal/PaymentConfirmModal.d.ts +6 -0
- package/dist/types/components/business/PaymentConfirmModal/index.d.ts +2 -0
- package/dist/types/components/business/{BlikConfirmModal → PaymentConfirmModal}/type.d.ts +1 -1
- package/dist/types/components/business/PhoneField/area-codes.d.ts +253 -0
- package/dist/types/components/business/PhoneField/index.d.ts +1 -0
- package/dist/types/components/business/PhoneField/type.d.ts +4 -0
- package/dist/types/components/business/QRCodeContent/QRCodeContent.d.ts +3 -0
- package/dist/types/components/business/QRCodeContent/index.d.ts +2 -0
- package/dist/types/components/business/QRCodeContent/type.d.ts +23 -0
- package/dist/types/components/business/QRCodeModal/QRCodeModal.d.ts +0 -1
- package/dist/types/components/business/QRCodeModal/type.d.ts +2 -28
- package/dist/types/components/business/index.d.ts +2 -1
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/internal/Button/type.d.ts +1 -0
- package/dist/types/components/internal/icons/IconAlipay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconAlipayHK.d.ts +2 -0
- package/dist/types/components/internal/icons/IconDoku.d.ts +2 -0
- package/dist/types/components/internal/icons/IconGoPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconJenius.d.ts +2 -0
- package/dist/types/components/internal/icons/IconLinkAja.d.ts +2 -0
- package/dist/types/components/internal/icons/IconNuPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconSepa.d.ts +2 -0
- package/dist/types/components/internal/icons/IconSwish.d.ts +2 -0
- package/dist/types/components/internal/icons/IconTwint.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +10 -0
- package/dist/types/components/wallets/Alipay/Alipay.d.ts +15 -0
- package/dist/types/components/wallets/Alipay/index.d.ts +2 -0
- package/dist/types/components/wallets/{AliPay → Alipay}/type.d.ts +2 -2
- package/dist/types/components/wallets/AlipayHK/AlipayHK.d.ts +15 -0
- package/dist/types/components/wallets/AlipayHK/index.d.ts +2 -0
- package/dist/types/components/wallets/AlipayHK/type.d.ts +7 -0
- package/dist/types/components/wallets/AlipayPlus/AlipayPlus.d.ts +15 -0
- package/dist/types/components/wallets/AlipayPlus/index.d.ts +2 -0
- package/dist/types/components/wallets/AlipayPlus/type.d.ts +7 -0
- package/dist/types/components/wallets/Doku/Doku.d.ts +15 -0
- package/dist/types/components/wallets/Doku/index.d.ts +2 -0
- package/dist/types/components/wallets/Doku/type.d.ts +7 -0
- package/dist/types/components/wallets/DragonPay/DragonPay.d.ts +1 -1
- package/dist/types/components/wallets/EPS/EPS.d.ts +1 -1
- package/dist/types/components/wallets/GoPay/GoPay.d.ts +16 -0
- package/dist/types/components/wallets/GoPay/index.d.ts +2 -0
- package/dist/types/components/wallets/GoPay/type.d.ts +7 -0
- package/dist/types/components/wallets/IDeal/IDeal.d.ts +1 -1
- package/dist/types/components/wallets/Jenius/Jenius.d.ts +15 -0
- package/dist/types/components/wallets/Jenius/index.d.ts +2 -0
- package/dist/types/components/wallets/Jenius/type.d.ts +7 -0
- package/dist/types/components/wallets/LinkAja/LinkAja.d.ts +15 -0
- package/dist/types/components/wallets/LinkAja/index.d.ts +2 -0
- package/dist/types/components/wallets/LinkAja/type.d.ts +7 -0
- package/dist/types/components/wallets/MyBank/MyBank.d.ts +1 -0
- package/dist/types/components/wallets/NuPay/NuPay.d.ts +15 -0
- package/dist/types/components/wallets/NuPay/index.d.ts +2 -0
- package/dist/types/components/wallets/NuPay/type.d.ts +7 -0
- package/dist/types/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.d.ts +1 -0
- package/dist/types/components/wallets/OnlineBankingFinland/OnlineBankingFinland.d.ts +1 -0
- package/dist/types/components/wallets/PayByBank/PayByBank.d.ts +1 -1
- package/dist/types/components/wallets/PayU/PayU.d.ts +2 -2
- package/dist/types/components/wallets/Swish/Swish.d.ts +15 -0
- package/dist/types/components/wallets/Swish/index.d.ts +2 -0
- package/dist/types/components/wallets/Swish/type.d.ts +7 -0
- package/dist/types/components/wallets/Twint/Twint.d.ts +16 -0
- package/dist/types/components/wallets/Twint/index.d.ts +2 -0
- package/dist/types/components/wallets/Twint/type.d.ts +7 -0
- package/dist/types/components/wallets/index.d.ts +10 -1
- package/dist/types/constant.d.ts +27 -9
- package/dist/types/core/logger.d.ts +1 -0
- package/dist/types/hooks/useBaseWallet.d.ts +19 -1
- package/dist/types/hooks/useRetry.d.ts +2 -0
- package/dist/types/i18n/locales/cs-CZ.d.ts +135 -0
- package/dist/types/i18n/locales/da-DK.d.ts +135 -0
- package/dist/types/i18n/locales/de-DE.d.ts +19 -15
- package/dist/types/i18n/locales/en-GB.d.ts +19 -15
- package/dist/types/i18n/locales/es-ES.d.ts +19 -15
- package/dist/types/i18n/locales/fi-FI.d.ts +135 -0
- package/dist/types/i18n/locales/fil-PH.d.ts +135 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +19 -15
- package/dist/types/i18n/locales/hi-IN.d.ts +135 -0
- package/dist/types/i18n/locales/id-ID.d.ts +135 -0
- package/dist/types/i18n/locales/index.d.ts +24 -0
- package/dist/types/i18n/locales/it-IT.d.ts +135 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +19 -15
- package/dist/types/i18n/locales/ko-KR.d.ts +19 -15
- package/dist/types/i18n/locales/ms-MY.d.ts +135 -0
- package/dist/types/i18n/locales/nb-NO.d.ts +135 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +19 -15
- package/dist/types/i18n/locales/pl-PL.d.ts +135 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +19 -15
- package/dist/types/i18n/locales/ru-RU.d.ts +19 -15
- package/dist/types/i18n/locales/sv-SE.d.ts +135 -0
- package/dist/types/i18n/locales/th-TH.d.ts +135 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +19 -15
- package/dist/types/i18n/locales/zh-HK.d.ts +19 -15
- package/dist/types/i18n/locales/zh-TW.d.ts +19 -15
- package/dist/types/i18n/util.d.ts +1 -1
- package/dist/types/out/config.d.ts +4 -4
- package/dist/types/utils/date.d.ts +1 -0
- package/package.json +1 -1
- package/dist/es/components/AccountNameField/index.js +0 -50
- package/dist/es/components/RecurringTip/index.js +0 -20
- package/dist/es/components/wallets/AliPay/index.js +0 -1
- package/dist/types/components/AccountNameField/AccountNameField.d.ts +0 -2
- package/dist/types/components/AccountNameField/index.d.ts +0 -2
- package/dist/types/components/AccountNameField/type.d.ts +0 -4
- package/dist/types/components/CardIBANField/IBANField.d.ts +0 -2
- package/dist/types/components/RecurringTip/RecurringTip.d.ts +0 -2
- package/dist/types/components/RecurringTip/index.d.ts +0 -1
- package/dist/types/components/business/BlikConfirmModal/BlikConfirmModal.d.ts +0 -6
- package/dist/types/components/business/BlikConfirmModal/index.d.ts +0 -2
- package/dist/types/components/wallets/AliPay/AliPay.d.ts +0 -15
- package/dist/types/components/wallets/AliPay/index.d.ts +0 -2
- /package/dist/es/components/business/{BlikConfirmModal/blik-confirm-modal.js → PaymentConfirmModal/payment-confirm-modal.js} +0 -0
- /package/dist/es/components/business/{BlikConfirmModal → PaymentConfirmModal}/type.js +0 -0
- /package/dist/es/components/business/{QRCodeModal/qr-code-modal.js → QRCodeContent/qr-code-content.js} +0 -0
- /package/dist/es/components/{wallets/AliPay → business/QRCodeContent}/type.js +0 -0
- /package/dist/es/components/business/Tooltip/{tooltip2.js → tooltip.js} +0 -0
- /package/dist/es/components/wallets/{AliPay → Alipay}/ali-pay.js +0 -0
- /package/dist/types/components/{CardIBANField → IBANField}/index.d.ts +0 -0
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export interface QRCodeModalProps {
|
|
4
|
-
/** 标题 */
|
|
5
|
-
title: string;
|
|
6
|
-
/** 过期时间 */
|
|
7
|
-
expiredTime: string;
|
|
8
|
-
/** 图标 */
|
|
9
|
-
icon: ReactNode;
|
|
10
|
-
/** 二维码 */
|
|
11
|
-
qrCode: string;
|
|
12
|
-
/** 支付金额 */
|
|
13
|
-
amount?: Amount;
|
|
14
|
-
/**
|
|
15
|
-
* 整个 model 的背景色
|
|
16
|
-
* @defaultValue #FFFFFF
|
|
17
|
-
*/
|
|
18
|
-
bgColor?: string;
|
|
19
|
-
/**
|
|
20
|
-
* 整个 model 的文字颜色
|
|
21
|
-
* @defaultValue #1F1F1F
|
|
22
|
-
*/
|
|
23
|
-
textColor?: string;
|
|
24
|
-
/**
|
|
25
|
-
* 二维码周边的边框颜色
|
|
26
|
-
* @defaultValue #000000
|
|
27
|
-
*/
|
|
28
|
-
borderColor?: string;
|
|
1
|
+
import type { QRCodeContentProps } from '../QRCodeContent';
|
|
2
|
+
export interface QRCodeModalProps extends QRCodeContentProps {
|
|
29
3
|
/** 弹窗关闭时触发 */
|
|
30
4
|
onClose?: () => void;
|
|
31
5
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from './QRCodeModal';
|
|
2
|
+
export * from './QRCodeContent';
|
|
2
3
|
export * from './NameField';
|
|
3
4
|
export * from './PhoneField';
|
|
4
5
|
export * from './BlikCodeField';
|
|
5
|
-
export * from './
|
|
6
|
+
export * from './PaymentConfirmModal';
|
|
6
7
|
export * from './Tooltip';
|
|
7
8
|
export * from './SegmentedDigitInput';
|
|
@@ -12,7 +12,7 @@ export * from './ApplePay';
|
|
|
12
12
|
export * from './GooglePay';
|
|
13
13
|
export * from './SecuredIframe';
|
|
14
14
|
export * from './Sepa';
|
|
15
|
-
export * from './
|
|
15
|
+
export * from './IBANField';
|
|
16
16
|
export * from './EncryptedCard';
|
|
17
17
|
export * from './CombinedCardInfo';
|
|
18
18
|
export * from './DropIn';
|
|
@@ -59,6 +59,8 @@ export * from './IconPhone';
|
|
|
59
59
|
export * from './IconWechatPayGlobalComplete';
|
|
60
60
|
export * from './IconWechatPayGlobal';
|
|
61
61
|
export * from './IconAlipayPlus';
|
|
62
|
+
export * from './IconAlipay';
|
|
63
|
+
export * from './IconAlipayHK';
|
|
62
64
|
export * from './IconPayByBank';
|
|
63
65
|
export * from './IconFpx';
|
|
64
66
|
export * from './IconDragonPay';
|
|
@@ -69,3 +71,11 @@ export * from './IconOnlineBankingLatvia';
|
|
|
69
71
|
export * from './IconOnlineBankingLithuania';
|
|
70
72
|
export * from './IconOnlineBankingIndonesia';
|
|
71
73
|
export * from './IconOnlineBankingThailand';
|
|
74
|
+
export * from './IconSwish';
|
|
75
|
+
export * from './IconTwint';
|
|
76
|
+
export * from './IconDoku';
|
|
77
|
+
export * from './IconGoPay';
|
|
78
|
+
export * from './IconJenius';
|
|
79
|
+
export * from './IconLinkAja';
|
|
80
|
+
export * from './IconNuPay';
|
|
81
|
+
export * from './IconSepa';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AlipayProps, AlipayRef } from './type';
|
|
2
|
+
import './ali-pay.scss';
|
|
3
|
+
/**
|
|
4
|
+
* Alipay 支付方式
|
|
5
|
+
* - 表单:支付按钮
|
|
6
|
+
* - 支付:跳转至 Alipay 页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const Alipay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<AlipayProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
session: import("../../../core").Session;
|
|
10
|
+
core: import("../../../core").PayKKaCheckout;
|
|
11
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
12
|
+
isDropIn?: boolean | undefined;
|
|
13
|
+
}> & {
|
|
14
|
+
ref?: import("preact").Ref<AlipayRef> | undefined;
|
|
15
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
2
|
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
3
|
import type { WalletCustomProps, WalletRedirectProps } from '../type';
|
|
4
|
-
export interface
|
|
4
|
+
export interface AlipayProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface AlipayRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
7
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AlipayHKProps, AlipayHKRef } from './type';
|
|
2
|
+
import './alipay-hk.scss';
|
|
3
|
+
/**
|
|
4
|
+
* AlipayHK 支付方式
|
|
5
|
+
* - 表单:支付按钮
|
|
6
|
+
* - 支付:跳转至 AlipayHK 页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const AlipayHK: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<AlipayHKProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
session: import("../../../core").Session;
|
|
10
|
+
core: import("../../../core").PayKKaCheckout;
|
|
11
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
12
|
+
isDropIn?: boolean | undefined;
|
|
13
|
+
}> & {
|
|
14
|
+
ref?: import("preact").Ref<AlipayHKRef> | undefined;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
|
+
import type { WalletCustomProps, WalletRedirectProps } from '../type';
|
|
4
|
+
export interface AlipayHKProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface AlipayHKRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './ali-pay-plus.scss';
|
|
2
|
+
import type { AlipayPlusProps, AlipayPlusRef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* AlipayPlus 支付方式
|
|
5
|
+
* - 表单:邮箱,地址
|
|
6
|
+
* - 支付:直接跳转
|
|
7
|
+
*/
|
|
8
|
+
export declare const AlipayPlus: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<AlipayPlusProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
session: import("../../../core").Session;
|
|
10
|
+
core: import("../../../core").PayKKaCheckout;
|
|
11
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
12
|
+
isDropIn?: boolean | undefined;
|
|
13
|
+
}> & {
|
|
14
|
+
ref?: import("preact").Ref<AlipayPlusRef> | undefined;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
|
+
import type { WalletCustomProps, WalletRedirectProps } from '../type';
|
|
4
|
+
export interface AlipayPlusProps extends PayKKaCommonConfig, PaymentCommonProps, WalletCustomProps, WalletRedirectProps {
|
|
5
|
+
}
|
|
6
|
+
export interface AlipayPlusRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './doku.scss';
|
|
2
|
+
import type { DokuProps, DokuRef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* DOKU 支付方式
|
|
5
|
+
* - 表单:手机号,姓名,邮箱,地址
|
|
6
|
+
* - 支付:跳转至支付方式品牌方页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const Doku: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<DokuProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
session: import("../../../core").Session;
|
|
10
|
+
core: import("../../../core").PayKKaCheckout;
|
|
11
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
12
|
+
isDropIn?: boolean | undefined;
|
|
13
|
+
}> & {
|
|
14
|
+
ref?: import("preact").Ref<DokuRef> | undefined;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { WalletRedirectProps, WalletCustomProps } from '../type';
|
|
3
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
4
|
+
export interface DokuProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface DokuRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -9,7 +9,7 @@ import './dragon-pay.scss';
|
|
|
9
9
|
export declare const DragonPay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<DragonPayProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
10
|
session: import("../../../core").Session;
|
|
11
11
|
core: import("../../../core").PayKKaCheckout;
|
|
12
|
-
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined; /** 设置表单引用时触发静默校验,避免表单引用初始化未完成时提前触发 */
|
|
13
13
|
isDropIn?: boolean | undefined;
|
|
14
14
|
}> & {
|
|
15
15
|
ref?: import("preact").Ref<DragonPayRef> | undefined;
|
|
@@ -2,7 +2,7 @@ import './eps.scss';
|
|
|
2
2
|
import type { EPSProps, EPSRef } from './type';
|
|
3
3
|
/**
|
|
4
4
|
* EPS 支付方式
|
|
5
|
-
* - 表单:邮箱,地址(默认国家 AT);循环交易时需填写姓名(映射
|
|
5
|
+
* - 表单:邮箱,地址(默认国家 AT);循环交易时需填写姓名(映射 bill.firstName)
|
|
6
6
|
* - 支付:跳转至 EPS 页面完成支付
|
|
7
7
|
*/
|
|
8
8
|
export declare const EPS: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<EPSProps & import("../../../types").PayKKaCommonConfig & {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './go-pay.scss';
|
|
2
|
+
import type { GoPayProps, GoPayRef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* GoPay 支付方式
|
|
5
|
+
* - 表单:姓名,邮箱,地址
|
|
6
|
+
* - 支付:跳转至支付方式品牌方页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const GoPay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<GoPayProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
session: import("../../../core").Session;
|
|
10
|
+
/** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
|
|
11
|
+
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
|
+
isDropIn?: boolean | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
ref?: import("preact").Ref<GoPayRef> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { WalletRedirectProps, WalletCustomProps } from '../type';
|
|
3
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
4
|
+
export interface GoPayProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface GoPayRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -2,7 +2,7 @@ import './ideal.scss';
|
|
|
2
2
|
import type { IDealProps, IDealRef } from './type';
|
|
3
3
|
/**
|
|
4
4
|
* IDeal 荷兰支付方式
|
|
5
|
-
* -
|
|
5
|
+
* - 表单:邮箱,循环交易时需填写姓名(映射 bill.firstName)
|
|
6
6
|
* - 支付:跳转至银行页面完成支付
|
|
7
7
|
*/
|
|
8
8
|
export declare const IDeal: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<IDealProps & import("../../../types").PayKKaCommonConfig & {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './jenius.scss';
|
|
2
|
+
import type { JeniusProps, JeniusRef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* Jenius 支付方式
|
|
5
|
+
* - 表单:手机号,姓名,邮箱,地址
|
|
6
|
+
* - 支付:跳转至支付方式品牌方页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const Jenius: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JeniusProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
session: import("../../../core").Session;
|
|
10
|
+
core: import("../../../core").PayKKaCheckout;
|
|
11
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
12
|
+
isDropIn?: boolean | undefined;
|
|
13
|
+
}> & {
|
|
14
|
+
ref?: import("preact").Ref<JeniusRef> | undefined;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { WalletRedirectProps, WalletCustomProps } from '../type';
|
|
3
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
4
|
+
export interface JeniusProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface JeniusRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './link-aja.scss';
|
|
2
|
+
import type { LinkAjaProps, LinkAjaRef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* LinkAja 支付方式
|
|
5
|
+
* - 表单:手机号,姓名,邮箱,地址
|
|
6
|
+
* - 支付:跳转至支付方式品牌方页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const LinkAja: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<LinkAjaProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
session: import("../../../core").Session;
|
|
10
|
+
core: import("../../../core").PayKKaCheckout;
|
|
11
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined; /** 表单是否验证通过 */
|
|
12
|
+
isDropIn?: boolean | undefined; /** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
|
|
13
|
+
}> & {
|
|
14
|
+
ref?: import("preact").Ref<LinkAjaRef> | undefined;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { WalletRedirectProps, WalletCustomProps } from '../type';
|
|
3
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
4
|
+
export interface LinkAjaProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface LinkAjaRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -6,6 +6,7 @@ import type { MyBankProps, MyBankRef } from './type';
|
|
|
6
6
|
* - 支付:跳转至 MyBank 页面完成支付
|
|
7
7
|
*/
|
|
8
8
|
export declare const MyBank: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<MyBankProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
/** 表单数据 */
|
|
9
10
|
session: import("../../../core").Session;
|
|
10
11
|
core: import("../../../core").PayKKaCheckout;
|
|
11
12
|
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NuPayProps, NuPayRef } from './type';
|
|
2
|
+
import './nu-pay.scss';
|
|
3
|
+
/**
|
|
4
|
+
* NU Pay 支付方式
|
|
5
|
+
* - 表单:姓名,邮箱,地址,CPF/CNPJ
|
|
6
|
+
* - 支付:等待用户在 App 中确认付款
|
|
7
|
+
*/
|
|
8
|
+
export declare const NuPay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<NuPayProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
session: import("../../../core").Session;
|
|
10
|
+
core: import("../../../core").PayKKaCheckout;
|
|
11
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
12
|
+
isDropIn?: boolean | undefined;
|
|
13
|
+
}> & {
|
|
14
|
+
ref?: import("preact").Ref<NuPayRef> | undefined;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { WalletRedirectProps, WalletCustomProps } from '../type';
|
|
3
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
4
|
+
export interface NuPayProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface NuPayRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -9,6 +9,7 @@ import './online-banking-estonia.scss';
|
|
|
9
9
|
export declare const OnlineBankingEstonia: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OnlineBankingEstoniaProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
10
|
session: import("../../../core").Session;
|
|
11
11
|
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
/** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
|
|
12
13
|
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
14
|
isDropIn?: boolean | undefined;
|
|
14
15
|
}> & {
|
|
@@ -9,6 +9,7 @@ import './online-banking-finland.scss';
|
|
|
9
9
|
export declare const OnlineBankingFinland: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OnlineBankingFinlandProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
10
|
session: import("../../../core").Session;
|
|
11
11
|
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
/** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
|
|
12
13
|
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
14
|
isDropIn?: boolean | undefined;
|
|
14
15
|
}> & {
|
|
@@ -3,7 +3,7 @@ import type { PayByBankRef } from './type';
|
|
|
3
3
|
import './pay-by-bank.scss';
|
|
4
4
|
/**
|
|
5
5
|
* PayByBank 支付方式
|
|
6
|
-
* - 表单:邮箱,姓名(映射
|
|
6
|
+
* - 表单:邮箱,姓名(映射 bill.firstName),指定国家地址
|
|
7
7
|
* - 支付:跳转至 Pay by Bank 页面完成支付
|
|
8
8
|
*/
|
|
9
9
|
export declare const PayByBank: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<PayByBankProps & import("../../../types").PayKKaCommonConfig & {
|
|
@@ -2,13 +2,13 @@ import './payu.scss';
|
|
|
2
2
|
import type { PayUProps, PayURef } from './type';
|
|
3
3
|
/**
|
|
4
4
|
* PayU 支付方式
|
|
5
|
-
* - 表单:邮箱,姓名(映射
|
|
5
|
+
* - 表单:邮箱,姓名(映射 bill.firstName),指定国家(PL/CZ;不在枚举则留空)
|
|
6
6
|
* - 支付:跳转至 PayU 页面完成支付
|
|
7
7
|
*/
|
|
8
8
|
export declare const PayU: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<PayUProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
9
|
session: import("../../../core").Session;
|
|
10
10
|
core: import("../../../core").PayKKaCheckout;
|
|
11
|
-
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
11
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined; /** 表单是否验证通过 */
|
|
12
12
|
isDropIn?: boolean | undefined;
|
|
13
13
|
}> & {
|
|
14
14
|
ref?: import("preact").Ref<PayURef> | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './swish.scss';
|
|
2
|
+
import type { SwishProps, SwishRef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* SWISH 支付方式
|
|
5
|
+
* - 表单:邮箱,地址
|
|
6
|
+
* - 支付:跳转至支付方式品牌方页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const Swish: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<SwishProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
session: import("../../../core").Session;
|
|
10
|
+
core: import("../../../core").PayKKaCheckout;
|
|
11
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
12
|
+
isDropIn?: boolean | undefined;
|
|
13
|
+
}> & {
|
|
14
|
+
ref?: import("preact").Ref<SwishRef> | undefined;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { WalletRedirectProps, WalletCustomProps } from '../type';
|
|
3
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
4
|
+
export interface SwishProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface SwishRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './twint.scss';
|
|
2
|
+
import type { TwintProps, TwintRef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* TWINT 支付方式
|
|
5
|
+
* - 表单:姓名,邮箱,地址
|
|
6
|
+
* - 支付:跳转至支付方式品牌方页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const Twint: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<TwintProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
+
session: import("../../../core").Session;
|
|
10
|
+
/** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
|
|
11
|
+
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
|
+
isDropIn?: boolean | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
ref?: import("preact").Ref<TwintRef> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { WalletRedirectProps, WalletCustomProps } from '../type';
|
|
3
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
4
|
+
export interface TwintProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface TwintRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -28,7 +28,9 @@ export * from './MbWay';
|
|
|
28
28
|
export * from './Multibanco';
|
|
29
29
|
export * from './PayU';
|
|
30
30
|
export * from './Satispay';
|
|
31
|
-
export * from './
|
|
31
|
+
export * from './AlipayPlus';
|
|
32
|
+
export * from './Alipay';
|
|
33
|
+
export * from './AlipayHK';
|
|
32
34
|
export * from './WechatPay';
|
|
33
35
|
export * from './PayByBank';
|
|
34
36
|
export * from './Fpx';
|
|
@@ -40,3 +42,10 @@ export * from './OnlineBankingLatvia';
|
|
|
40
42
|
export * from './OnlineBankingLithuania';
|
|
41
43
|
export * from './OnlineBankingIndonesia';
|
|
42
44
|
export * from './OnlineBankingThailand';
|
|
45
|
+
export * from './Swish';
|
|
46
|
+
export * from './Twint';
|
|
47
|
+
export * from './Doku';
|
|
48
|
+
export * from './GoPay';
|
|
49
|
+
export * from './Jenius';
|
|
50
|
+
export * from './LinkAja';
|
|
51
|
+
export * from './NuPay';
|
package/dist/types/constant.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const PREFIX = "paykka-card-checkout";
|
|
2
2
|
export declare const COMMON_CLASS_NAME = "paykka-card-checkout";
|
|
3
|
+
export declare const PAY_FORM_CLASS_NAME = "paykka-card-checkout-pay-form";
|
|
4
|
+
export declare const PAY_FORM_FOOTER_CLASS_NAME = "paykka-card-checkout-pay-form-footer";
|
|
3
5
|
/** 具体的,未分类的支付方式,来自后端 */
|
|
4
6
|
export declare enum PaymentMethod {
|
|
5
7
|
ALL = "ALL",
|
|
@@ -16,7 +18,9 @@ export declare enum PaymentMethod {
|
|
|
16
18
|
BOC = "BOC",
|
|
17
19
|
CHINA_UNION_PAY = "CHINA_UNION_PAY",
|
|
18
20
|
/** 钱包 */
|
|
19
|
-
|
|
21
|
+
ALIPAY_PLUS = "ALIPAY_PLUS",
|
|
22
|
+
ALIPAY = "ALIPAY",
|
|
23
|
+
ALIPAY_HK = "ALIPAY_HK",
|
|
20
24
|
WECHAT_PAY = "WECHAT_PAY_GLOBAL",
|
|
21
25
|
BOOST = "BOOST",
|
|
22
26
|
GRAB_PAY = "GRABPAY",
|
|
@@ -58,8 +62,14 @@ export declare enum PaymentMethod {
|
|
|
58
62
|
ONLINE_BANKING_LITHUANIA = "ONLINE_BANKING_LITHUANIA",
|
|
59
63
|
ONLINE_BANKING_INDONESIA = "ONLINE_BANKING_INDONESIA",
|
|
60
64
|
ONLINE_BANKING_THAILAND = "ONLINE_BANKING_THAILAND",
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
SEPA_DEBIT = "SEPA_DEBIT",
|
|
66
|
+
SWISH = "SWISH",
|
|
67
|
+
TWINT = "TWINT",
|
|
68
|
+
DOKU = "DOKU_WALLET",
|
|
69
|
+
GO_PAY = "GOPAY",
|
|
70
|
+
JENIUS = "JENIUS_PAY",
|
|
71
|
+
LINK_AJA = "LINK_AJA",
|
|
72
|
+
NU_PAY = "NUPAY"
|
|
63
73
|
}
|
|
64
74
|
/** 按照大类区分的支付方式 */
|
|
65
75
|
export declare enum PaymentCategory {
|
|
@@ -70,7 +80,9 @@ export declare enum PaymentCategory {
|
|
|
70
80
|
SEPA_DEBIT = "sepaDebit",
|
|
71
81
|
/** 钱包 */
|
|
72
82
|
WECHAT_PAY = "wechatPay",
|
|
73
|
-
|
|
83
|
+
ALIPAY_PLUS = "aliPayPlus",
|
|
84
|
+
ALIPAY = "aliPay",
|
|
85
|
+
ALIPAY_HK = "aliPayHK",
|
|
74
86
|
BOOST = "boost",
|
|
75
87
|
GRAB_PAY = "grabPay",
|
|
76
88
|
TNG_WALLET = "tngEWallet",
|
|
@@ -110,16 +122,22 @@ export declare enum PaymentCategory {
|
|
|
110
122
|
ONLINE_BANKING_LATVIA = "onlineBankingLatvia",
|
|
111
123
|
ONLINE_BANKING_LITHUANIA = "onlineBankingLithuania",
|
|
112
124
|
ONLINE_BANKING_INDONESIA = "onlineBankingIndonesia",
|
|
113
|
-
ONLINE_BANKING_THAILAND = "onlineBankingThailand"
|
|
125
|
+
ONLINE_BANKING_THAILAND = "onlineBankingThailand",
|
|
126
|
+
SWISH = "swish",
|
|
127
|
+
TWINT = "twint",
|
|
128
|
+
DOKU = "doku",
|
|
129
|
+
GO_PAY = "goPay",
|
|
130
|
+
JENIUS = "jenius",
|
|
131
|
+
LINK_AJA = "linkAja",
|
|
132
|
+
NU_PAY = "nuPay"
|
|
114
133
|
}
|
|
115
134
|
export declare const PaymentMethod2CategoryMap: Partial<Record<PaymentMethod, PaymentCategory>>;
|
|
116
|
-
export declare const PaymentCategory2MethodMap: Partial<Record<PaymentCategory, PaymentMethod[]>>;
|
|
117
135
|
export declare const CardPaymentMethods: PaymentMethod[];
|
|
118
136
|
export declare enum PaymentType {
|
|
137
|
+
/** 普通消费 */
|
|
119
138
|
PURCHASE = "PURCHASE",
|
|
120
|
-
|
|
121
|
-
RECURRING = "RECURRING"
|
|
122
|
-
REFUND = "REFUND"
|
|
139
|
+
/** 循环支付 */
|
|
140
|
+
RECURRING = "RECURRING"
|
|
123
141
|
}
|
|
124
142
|
export declare enum EAddressType {
|
|
125
143
|
PROVINCE = "PROVINCE",
|