@paykka/card-checkout-ui 0.15.2 → 0.17.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 +23 -23
- package/dist/card-checkout-ui.umd.cjs +23 -23
- package/dist/es/api/http.js +12 -1
- package/dist/es/api/modules/apple-pay/index.js +0 -12
- package/dist/es/api/modules/common/index.js +29 -0
- package/dist/es/api/modules/get-browser-params.js +1 -1
- package/dist/es/api/modules/index.js +1 -1
- package/dist/es/api/modules/threeDS/index.js +1 -1
- package/dist/es/api/utils/index.js +3 -0
- package/dist/es/components/AccountNameField/index.js +2 -2
- package/dist/es/components/AddressField/index.js +2 -2
- package/dist/es/components/ApplePay/index.js +26 -10
- package/dist/es/components/CPFField/index.js +2 -2
- package/dist/es/components/Card/index.js +20 -6
- package/dist/es/components/CardHolderNameField/index.js +2 -2
- package/dist/es/components/CardSecurityCodeField/index.js +2 -2
- package/dist/es/components/CombinedCardInfo/index.js +3 -3
- package/dist/es/components/DropIn/index.js +145 -1
- package/dist/es/components/EmailField/EmailField.js +2 -2
- package/dist/es/components/EncryptedCard/index.js +1 -1
- package/dist/es/components/GooglePay/index.js +35 -21
- package/dist/es/components/GuideCard/index.js +19 -1
- package/dist/es/components/SecuredFieldsProvider/index.js +2 -0
- package/dist/es/components/SecuredIframe/index.js +19 -10
- package/dist/es/components/Sepa/index.js +21 -6
- package/dist/es/components/business/BlikConfirmModal/BlikConfirmModal.js +1 -1
- package/dist/es/components/business/NameField/NameField.js +2 -2
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +1 -1
- package/dist/es/components/business/SegmentedDigitInput/format.js +3 -0
- package/dist/es/components/business/SegmentedDigitInput/index.js +2 -0
- package/dist/es/components/index.js +18 -0
- package/dist/es/components/internal/Accordion/accordionTransition.js +3 -0
- package/dist/es/components/internal/Form/Form.js +2 -0
- package/dist/es/components/internal/Form/FormItem.js +2 -0
- package/dist/es/components/internal/Input/Input.js +2 -0
- package/dist/es/components/internal/icons/Icon3DSFail.js +2 -0
- package/dist/es/components/internal/icons/Icon3DSInfo.js +2 -0
- package/dist/es/components/internal/icons/Icon3DSSuccess.js +2 -0
- package/dist/es/components/internal/icons/IconAdd.js +2 -0
- package/dist/es/components/internal/icons/IconAlipayPlus.js +2 -0
- package/dist/es/components/internal/icons/IconAmex.js +2 -0
- package/dist/es/components/internal/icons/IconArrowDown.js +2 -0
- package/dist/es/components/internal/icons/IconBancomatPay.js +33 -0
- package/dist/es/components/internal/icons/IconBancontact.js +2 -0
- package/dist/es/components/internal/icons/IconBizum.js +33 -0
- package/dist/es/components/internal/icons/IconBlik.js +2 -0
- package/dist/es/components/internal/icons/IconBoost.js +2 -0
- package/dist/es/components/internal/icons/IconCard.js +2 -0
- package/dist/es/components/internal/icons/IconCard2.js +2 -0
- package/dist/es/components/internal/icons/IconCardNo.js +2 -0
- package/dist/es/components/internal/icons/IconDinnersClub.js +2 -0
- package/dist/es/components/internal/icons/IconDiscover.js +2 -0
- package/dist/es/components/internal/icons/IconDragonPay.js +42 -0
- package/dist/es/components/internal/icons/IconEPS.js +44 -0
- package/dist/es/components/internal/icons/IconError.js +2 -0
- package/dist/es/components/internal/icons/IconFpx.js +42 -0
- package/dist/es/components/internal/icons/IconGCash.js +2 -0
- package/dist/es/components/internal/icons/IconGcashComplete.js +2 -0
- package/dist/es/components/internal/icons/IconGrabPay.js +2 -0
- package/dist/es/components/internal/icons/IconIdeal.js +2 -0
- package/dist/es/components/internal/icons/IconInfo.js +2 -0
- package/dist/es/components/internal/icons/IconJcb.js +2 -0
- package/dist/es/components/internal/icons/IconLinePay.js +2 -0
- package/dist/es/components/internal/icons/IconMasterCard.js +2 -0
- package/dist/es/components/internal/icons/IconMayBankQRPay.js +2 -0
- package/dist/es/components/internal/icons/IconMbWay.js +33 -0
- package/dist/es/components/internal/icons/IconMultibanco.js +34 -0
- package/dist/es/components/internal/icons/IconMyBank.js +38 -0
- package/dist/es/components/internal/icons/IconNinePay.js +2 -0
- package/dist/es/components/internal/icons/IconOnlineBankingEstonia.js +42 -0
- package/dist/es/components/internal/icons/IconOnlineBankingFinland.js +42 -0
- package/dist/es/components/internal/icons/IconOnlineBankingIndonesia.js +42 -0
- package/dist/es/components/internal/icons/IconOnlineBankingLatvia.js +42 -0
- package/dist/es/components/internal/icons/IconOnlineBankingLithuania.js +42 -0
- package/dist/es/components/internal/icons/IconOnlineBankingThailand.js +42 -0
- package/dist/es/components/internal/icons/IconOpayWallet.js +2 -0
- package/dist/es/components/internal/icons/IconOvo.js +2 -0
- package/dist/es/components/internal/icons/IconP24.js +2 -0
- package/dist/es/components/internal/icons/IconPagaWallet.js +2 -0
- package/dist/es/components/internal/icons/IconPayByBank.js +42 -0
- package/dist/es/components/internal/icons/IconPayU.js +27 -0
- package/dist/es/components/internal/icons/IconPaymaya.js +2 -0
- package/dist/es/components/internal/icons/IconPhone.js +2 -0
- package/dist/es/components/internal/icons/IconPicPay.js +2 -0
- package/dist/es/components/internal/icons/IconPix.js +2 -0
- package/dist/es/components/internal/icons/IconRedirect.js +2 -0
- package/dist/es/components/internal/icons/IconSafe.js +2 -0
- package/dist/es/components/internal/icons/IconSatispay.js +34 -0
- package/dist/es/components/internal/icons/IconScan.js +2 -0
- package/dist/es/components/internal/icons/IconShopeePay.js +2 -0
- package/dist/es/components/internal/icons/IconSkrill.js +2 -0
- package/dist/es/components/internal/icons/IconSuccess.js +2 -0
- package/dist/es/components/internal/icons/IconSwitch.js +2 -0
- package/dist/es/components/internal/icons/IconTNGWallet.js +2 -0
- package/dist/es/components/internal/icons/IconTick.js +2 -0
- package/dist/es/components/internal/icons/IconTrustly.js +2 -0
- package/dist/es/components/internal/icons/IconUnionPay.js +2 -0
- package/dist/es/components/internal/icons/IconUpi.js +42 -0
- package/dist/es/components/internal/icons/IconVietqr.js +2 -0
- package/dist/es/components/internal/icons/IconVietqrComplete.js +2 -0
- package/dist/es/components/internal/icons/IconVisa.js +2 -0
- package/dist/es/components/internal/icons/IconWechatPayGlobal.js +2 -0
- package/dist/es/components/internal/icons/IconWechatPayGlobalComplete.js +2 -0
- package/dist/es/components/internal/icons/IconZalopay.js +2 -0
- package/dist/es/components/internal/icons/IconZalopayComplete.js +2 -0
- package/dist/es/components/internal/icons/iconChecked.js +2 -0
- package/dist/es/components/internal/icons/index.js +2 -0
- package/dist/es/components/wallets/BancomatPay/BancomatPay.js +155 -0
- package/dist/es/components/wallets/BancomatPay/bancomat-pay.js +1 -0
- package/dist/es/components/wallets/BancomatPay/index.js +1 -0
- package/dist/es/components/wallets/BancomatPay/type.js +1 -0
- package/dist/es/components/wallets/Bizum/Bizum.js +155 -0
- package/dist/es/components/wallets/Bizum/bizum2.js +1 -0
- package/dist/es/components/wallets/Bizum/index.js +1 -0
- package/dist/es/components/wallets/Bizum/type.js +1 -0
- package/dist/es/components/wallets/DragonPay/DragonPay.js +180 -0
- package/dist/es/components/wallets/DragonPay/dragon-pay.js +1 -0
- package/dist/es/components/wallets/DragonPay/index.js +1 -0
- package/dist/es/components/wallets/DragonPay/type.js +1 -0
- package/dist/es/components/wallets/EPS/EPS.js +183 -0
- package/dist/es/components/wallets/EPS/eps2.js +1 -0
- package/dist/es/components/wallets/EPS/index.js +1 -0
- package/dist/es/components/wallets/EPS/type.js +1 -0
- package/dist/es/components/wallets/Fpx/Fpx.js +180 -0
- package/dist/es/components/wallets/Fpx/fpx2.js +1 -0
- package/dist/es/components/wallets/Fpx/index.js +1 -0
- package/dist/es/components/wallets/Fpx/type.js +1 -0
- package/dist/es/components/wallets/MbWay/MbWay.js +155 -0
- package/dist/es/components/wallets/MbWay/index.js +1 -0
- package/dist/es/components/wallets/MbWay/mb-way.js +1 -0
- package/dist/es/components/wallets/MbWay/type.js +1 -0
- package/dist/es/components/wallets/Multibanco/Multibanco.js +155 -0
- package/dist/es/components/wallets/Multibanco/index.js +1 -0
- package/dist/es/components/wallets/Multibanco/multibanco2.js +1 -0
- package/dist/es/components/wallets/Multibanco/type.js +1 -0
- package/dist/es/components/wallets/MyBank/MyBank.js +165 -0
- package/dist/es/components/wallets/MyBank/index.js +1 -0
- package/dist/es/components/wallets/MyBank/my-bank.js +1 -0
- package/dist/es/components/wallets/MyBank/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.js +180 -0
- package/dist/es/components/wallets/OnlineBankingEstonia/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingEstonia/online-banking-estonia.js +1 -0
- package/dist/es/components/wallets/OnlineBankingEstonia/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingFinland/OnlineBankingFinland.js +180 -0
- package/dist/es/components/wallets/OnlineBankingFinland/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingFinland/online-banking-finland.js +1 -0
- package/dist/es/components/wallets/OnlineBankingFinland/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingIndonesia/OnlineBankingIndonesia.js +180 -0
- package/dist/es/components/wallets/OnlineBankingIndonesia/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingIndonesia/online-banking-indonesia.js +1 -0
- package/dist/es/components/wallets/OnlineBankingIndonesia/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLatvia/OnlineBankingLatvia.js +180 -0
- package/dist/es/components/wallets/OnlineBankingLatvia/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLatvia/online-banking-latvia.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLatvia/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLithuania/OnlineBankingLithuania.js +180 -0
- package/dist/es/components/wallets/OnlineBankingLithuania/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLithuania/online-banking-lithuania.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLithuania/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingThailand/OnlineBankingThailand.js +180 -0
- package/dist/es/components/wallets/OnlineBankingThailand/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingThailand/online-banking-thailand.js +1 -0
- package/dist/es/components/wallets/OnlineBankingThailand/type.js +1 -0
- package/dist/es/components/wallets/PayByBank/PayByBank.js +212 -0
- package/dist/es/components/wallets/PayByBank/index.js +1 -0
- package/dist/es/components/wallets/PayByBank/pay-by-bank.js +1 -0
- package/dist/es/components/wallets/PayByBank/type.js +1 -0
- package/dist/es/components/wallets/PayU/PayU.js +186 -0
- package/dist/es/components/wallets/PayU/index.js +1 -0
- package/dist/es/components/wallets/PayU/payu2.js +1 -0
- package/dist/es/components/wallets/PayU/type.js +1 -0
- package/dist/es/components/wallets/Satispay/Satispay.js +198 -0
- package/dist/es/components/wallets/Satispay/index.js +1 -0
- package/dist/es/components/wallets/Satispay/satispay2.js +1 -0
- package/dist/es/components/wallets/Satispay/type.js +1 -0
- package/dist/es/components/wallets/Upi/Upi.js +180 -0
- package/dist/es/components/wallets/Upi/index.js +1 -0
- package/dist/es/components/wallets/Upi/type.js +1 -0
- package/dist/es/components/wallets/Upi/upi2.js +1 -0
- package/dist/es/components/wallets/WechatPay/WechatPay.js +5 -10
- package/dist/es/components/wallets/index.js +18 -0
- package/dist/es/config.js +2 -0
- package/dist/es/constant.js +110 -2
- package/dist/es/core/address.js +3 -0
- package/dist/es/core/checkout.js +3 -2
- package/dist/es/core/create.js +2 -0
- package/dist/es/core/logger.js +4 -1
- package/dist/es/core/payment.js +2 -0
- package/dist/es/core/query.js +1 -1
- package/dist/es/core.js +454 -454
- package/dist/es/hooks/useBEM.js +3 -0
- package/dist/es/hooks/useBaseWallet.js +45 -9
- package/dist/es/hooks/usePayState.js +1 -0
- package/dist/es/i18n/I18n.js +2 -0
- package/dist/es/i18n/index.js +2 -0
- package/dist/es/i18n/locales/de-DE.js +20 -2
- package/dist/es/i18n/locales/en-GB.js +20 -2
- package/dist/es/i18n/locales/es-ES.js +20 -2
- package/dist/es/i18n/locales/fr-FR.js +20 -2
- package/dist/es/i18n/locales/ja-JP.js +20 -2
- package/dist/es/i18n/locales/ko-KR.js +20 -2
- package/dist/es/i18n/locales/nl-NL.js +20 -2
- package/dist/es/i18n/locales/pt-PT.js +20 -2
- package/dist/es/i18n/locales/ru-RU.js +20 -2
- package/dist/es/i18n/locales/zh-CN.js +20 -2
- package/dist/es/i18n/locales/zh-HK.js +20 -2
- package/dist/es/i18n/locales/zh-TW.js +20 -2
- package/dist/es/i18n/util.js +3 -0
- package/dist/es/index.js +37 -1
- package/dist/es/style.css +1 -1
- package/dist/es/utils/bem.js +3 -0
- package/dist/es/utils/card-brand/brands.js +2 -0
- package/dist/es/utils/index.js +3 -0
- package/dist/es/utils/payment.js +76 -1
- package/dist/style.css +1 -1
- package/dist/types/api/http.d.ts +6 -1
- package/dist/types/api/modules/apple-pay/index.d.ts +0 -3
- package/dist/types/api/modules/common/index.d.ts +39 -0
- package/dist/types/api/modules/index.d.ts +1 -4
- package/dist/types/components/DropIn/type.d.ts +1 -1
- package/dist/types/components/internal/icons/IconBancomatPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconBizum.d.ts +2 -0
- package/dist/types/components/internal/icons/IconDragonPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconEPS.d.ts +2 -0
- package/dist/types/components/internal/icons/IconFpx.d.ts +2 -0
- package/dist/types/components/internal/icons/IconMbWay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconMultibanco.d.ts +2 -0
- package/dist/types/components/internal/icons/IconMyBank.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingEstonia.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingFinland.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingIndonesia.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingLatvia.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingLithuania.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingThailand.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPayByBank.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPayU.d.ts +2 -0
- package/dist/types/components/internal/icons/IconSatispay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconUpi.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +18 -0
- package/dist/types/components/wallets/BancomatPay/BancomatPay.d.ts +15 -0
- package/dist/types/components/wallets/BancomatPay/index.d.ts +2 -0
- package/dist/types/components/wallets/BancomatPay/type.d.ts +7 -0
- package/dist/types/components/wallets/Bizum/Bizum.d.ts +15 -0
- package/dist/types/components/wallets/Bizum/index.d.ts +2 -0
- package/dist/types/components/wallets/Bizum/type.d.ts +7 -0
- package/dist/types/components/wallets/DragonPay/DragonPay.d.ts +16 -0
- package/dist/types/components/wallets/DragonPay/index.d.ts +2 -0
- package/dist/types/components/wallets/DragonPay/type.d.ts +6 -0
- package/dist/types/components/wallets/EPS/EPS.d.ts +15 -0
- package/dist/types/components/wallets/EPS/index.d.ts +2 -0
- package/dist/types/components/wallets/EPS/type.d.ts +7 -0
- package/dist/types/components/wallets/Fpx/Fpx.d.ts +16 -0
- package/dist/types/components/wallets/Fpx/index.d.ts +2 -0
- package/dist/types/components/wallets/Fpx/type.d.ts +6 -0
- package/dist/types/components/wallets/MbWay/MbWay.d.ts +15 -0
- package/dist/types/components/wallets/MbWay/index.d.ts +2 -0
- package/dist/types/components/wallets/MbWay/type.d.ts +7 -0
- package/dist/types/components/wallets/Multibanco/Multibanco.d.ts +15 -0
- package/dist/types/components/wallets/Multibanco/index.d.ts +2 -0
- package/dist/types/components/wallets/Multibanco/type.d.ts +7 -0
- package/dist/types/components/wallets/MyBank/MyBank.d.ts +15 -0
- package/dist/types/components/wallets/MyBank/index.d.ts +2 -0
- package/dist/types/components/wallets/MyBank/type.d.ts +7 -0
- package/dist/types/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingEstonia/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingEstonia/type.d.ts +6 -0
- package/dist/types/components/wallets/OnlineBankingFinland/OnlineBankingFinland.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingFinland/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingFinland/type.d.ts +6 -0
- package/dist/types/components/wallets/OnlineBankingIndonesia/OnlineBankingIndonesia.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingIndonesia/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingIndonesia/type.d.ts +6 -0
- package/dist/types/components/wallets/OnlineBankingLatvia/OnlineBankingLatvia.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingLatvia/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingLatvia/type.d.ts +6 -0
- package/dist/types/components/wallets/OnlineBankingLithuania/OnlineBankingLithuania.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingLithuania/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingLithuania/type.d.ts +6 -0
- package/dist/types/components/wallets/OnlineBankingThailand/OnlineBankingThailand.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingThailand/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingThailand/type.d.ts +6 -0
- package/dist/types/components/wallets/PayByBank/PayByBank.d.ts +16 -0
- package/dist/types/components/wallets/PayByBank/index.d.ts +2 -0
- package/dist/types/components/wallets/PayByBank/type.d.ts +6 -0
- package/dist/types/components/wallets/PayU/PayU.d.ts +15 -0
- package/dist/types/components/wallets/PayU/index.d.ts +2 -0
- package/dist/types/components/wallets/PayU/type.d.ts +7 -0
- package/dist/types/components/wallets/Satispay/Satispay.d.ts +15 -0
- package/dist/types/components/wallets/Satispay/index.d.ts +2 -0
- package/dist/types/components/wallets/Satispay/type.d.ts +7 -0
- package/dist/types/components/wallets/Upi/Upi.d.ts +16 -0
- package/dist/types/components/wallets/Upi/index.d.ts +2 -0
- package/dist/types/components/wallets/Upi/type.d.ts +6 -0
- package/dist/types/components/wallets/index.d.ts +18 -0
- package/dist/types/constant.d.ts +37 -1
- package/dist/types/hooks/useBaseWallet.d.ts +16 -4
- package/dist/types/i18n/locales/de-DE.d.ts +18 -0
- package/dist/types/i18n/locales/en-GB.d.ts +18 -0
- package/dist/types/i18n/locales/es-ES.d.ts +18 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +18 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +18 -0
- package/dist/types/i18n/locales/ko-KR.d.ts +18 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +18 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +18 -0
- package/dist/types/i18n/locales/ru-RU.d.ts +18 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +18 -0
- package/dist/types/i18n/locales/zh-HK.d.ts +18 -0
- package/dist/types/i18n/locales/zh-TW.d.ts +18 -0
- package/dist/types/utils/payment.d.ts +13 -2
- package/package.json +1 -1
- package/dist/es/api/modules/card/index.js +0 -16
- package/dist/es/api/modules/google-pay/index.js +0 -16
- package/dist/es/api/modules/sepa/index.js +0 -16
- package/dist/es/api/modules/wallet/index.js +0 -16
- package/dist/types/api/modules/card/index.d.ts +0 -4
- package/dist/types/api/modules/google-pay/index.d.ts +0 -4
- package/dist/types/api/modules/sepa/index.d.ts +0 -4
- package/dist/types/api/modules/wallet/index.d.ts +0 -18
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './my-bank.scss';
|
|
2
|
+
import type { MyBankProps, MyBankRef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* MyBank 支付方式
|
|
5
|
+
* - 表单:邮箱,指定国家(BE/ES/FR/IT/PT;不在枚举则留空)
|
|
6
|
+
* - 支付:跳转至 MyBank 页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const MyBank: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<MyBankProps & 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<MyBankRef> | 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 MyBankProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface MyBankRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { OnlineBankingEstoniaProps } from './type';
|
|
2
|
+
import type { OnlineBankingEstoniaRef } from './type';
|
|
3
|
+
import './online-banking-estonia.scss';
|
|
4
|
+
/**
|
|
5
|
+
* OnlineBankingEstonia 支付方式
|
|
6
|
+
* - 表单:邮箱,地址
|
|
7
|
+
* - 支付:跳转至 Online Banking Estonia 页面完成支付
|
|
8
|
+
*/
|
|
9
|
+
export declare const OnlineBankingEstonia: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OnlineBankingEstoniaProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
|
+
session: import("../../../core").Session;
|
|
11
|
+
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
|
+
isDropIn?: boolean | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
ref?: import("preact").Ref<OnlineBankingEstoniaRef> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
|
+
export interface OnlineBankingEstoniaProps extends PayKKaCommonConfig, PaymentCommonProps {
|
|
4
|
+
}
|
|
5
|
+
export interface OnlineBankingEstoniaRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
6
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { OnlineBankingFinlandProps } from './type';
|
|
2
|
+
import type { OnlineBankingFinlandRef } from './type';
|
|
3
|
+
import './online-banking-finland.scss';
|
|
4
|
+
/**
|
|
5
|
+
* OnlineBankingFinland 支付方式
|
|
6
|
+
* - 表单:邮箱,地址
|
|
7
|
+
* - 支付:跳转至 Online Banking Finland 页面完成支付
|
|
8
|
+
*/
|
|
9
|
+
export declare const OnlineBankingFinland: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OnlineBankingFinlandProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
|
+
session: import("../../../core").Session;
|
|
11
|
+
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
|
+
isDropIn?: boolean | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
ref?: import("preact").Ref<OnlineBankingFinlandRef> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
|
+
export interface OnlineBankingFinlandProps extends PayKKaCommonConfig, PaymentCommonProps {
|
|
4
|
+
}
|
|
5
|
+
export interface OnlineBankingFinlandRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
6
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { OnlineBankingIndonesiaProps } from './type';
|
|
2
|
+
import type { OnlineBankingIndonesiaRef } from './type';
|
|
3
|
+
import './online-banking-indonesia.scss';
|
|
4
|
+
/**
|
|
5
|
+
* OnlineBankingIndonesia 支付方式
|
|
6
|
+
* - 表单:邮箱,地址
|
|
7
|
+
* - 支付:跳转至 Online Banking Indonesia 页面完成支付
|
|
8
|
+
*/
|
|
9
|
+
export declare const OnlineBankingIndonesia: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OnlineBankingIndonesiaProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
|
+
session: import("../../../core").Session;
|
|
11
|
+
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
|
+
isDropIn?: boolean | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
ref?: import("preact").Ref<OnlineBankingIndonesiaRef> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
|
+
export interface OnlineBankingIndonesiaProps extends PayKKaCommonConfig, PaymentCommonProps {
|
|
4
|
+
}
|
|
5
|
+
export interface OnlineBankingIndonesiaRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
6
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { OnlineBankingLatviaProps } from './type';
|
|
2
|
+
import type { OnlineBankingLatviaRef } from './type';
|
|
3
|
+
import './online-banking-latvia.scss';
|
|
4
|
+
/**
|
|
5
|
+
* OnlineBankingLatvia 支付方式
|
|
6
|
+
* - 表单:邮箱,地址
|
|
7
|
+
* - 支付:跳转至 Online Banking Latvia 页面完成支付
|
|
8
|
+
*/
|
|
9
|
+
export declare const OnlineBankingLatvia: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OnlineBankingLatviaProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
|
+
session: import("../../../core").Session;
|
|
11
|
+
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
|
+
isDropIn?: boolean | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
ref?: import("preact").Ref<OnlineBankingLatviaRef> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
|
+
export interface OnlineBankingLatviaProps extends PayKKaCommonConfig, PaymentCommonProps {
|
|
4
|
+
}
|
|
5
|
+
export interface OnlineBankingLatviaRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
6
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { OnlineBankingLithuaniaProps } from './type';
|
|
2
|
+
import type { OnlineBankingLithuaniaRef } from './type';
|
|
3
|
+
import './online-banking-lithuania.scss';
|
|
4
|
+
/**
|
|
5
|
+
* OnlineBankingLithuania 支付方式
|
|
6
|
+
* - 表单:邮箱,地址
|
|
7
|
+
* - 支付:跳转至 Online Banking Lithuania 页面完成支付
|
|
8
|
+
*/
|
|
9
|
+
export declare const OnlineBankingLithuania: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OnlineBankingLithuaniaProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
|
+
session: import("../../../core").Session;
|
|
11
|
+
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
|
+
isDropIn?: boolean | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
ref?: import("preact").Ref<OnlineBankingLithuaniaRef> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
|
+
export interface OnlineBankingLithuaniaProps extends PayKKaCommonConfig, PaymentCommonProps {
|
|
4
|
+
}
|
|
5
|
+
export interface OnlineBankingLithuaniaRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
6
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { OnlineBankingThailandProps } from './type';
|
|
2
|
+
import type { OnlineBankingThailandRef } from './type';
|
|
3
|
+
import './online-banking-thailand.scss';
|
|
4
|
+
/**
|
|
5
|
+
* OnlineBankingThailand 支付方式
|
|
6
|
+
* - 表单:邮箱,地址
|
|
7
|
+
* - 支付:跳转至 Online Banking Thailand 页面完成支付
|
|
8
|
+
*/
|
|
9
|
+
export declare const OnlineBankingThailand: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OnlineBankingThailandProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
|
+
session: import("../../../core").Session;
|
|
11
|
+
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
|
+
isDropIn?: boolean | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
ref?: import("preact").Ref<OnlineBankingThailandRef> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
|
+
export interface OnlineBankingThailandProps extends PayKKaCommonConfig, PaymentCommonProps {
|
|
4
|
+
}
|
|
5
|
+
export interface OnlineBankingThailandRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
6
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PayByBankProps } from './type';
|
|
2
|
+
import type { PayByBankRef } from './type';
|
|
3
|
+
import './pay-by-bank.scss';
|
|
4
|
+
/**
|
|
5
|
+
* PayByBank 支付方式
|
|
6
|
+
* - 表单:邮箱,姓名(映射 payment.holderName),指定国家地址
|
|
7
|
+
* - 支付:跳转至 Pay by Bank 页面完成支付
|
|
8
|
+
*/
|
|
9
|
+
export declare const PayByBank: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<PayByBankProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
|
+
session: import("../../../core").Session;
|
|
11
|
+
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
|
+
isDropIn?: boolean | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
ref?: import("preact").Ref<PayByBankRef> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
|
+
export interface PayByBankProps extends PayKKaCommonConfig, PaymentCommonProps {
|
|
4
|
+
}
|
|
5
|
+
export interface PayByBankRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './payu.scss';
|
|
2
|
+
import type { PayUProps, PayURef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* PayU 支付方式
|
|
5
|
+
* - 表单:邮箱,姓名(映射 payment.holderName),指定国家(PL/CZ;不在枚举则留空)
|
|
6
|
+
* - 支付:跳转至 PayU 页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const PayU: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<PayUProps & 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<PayURef> | 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 PayUProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface PayURef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './satispay.scss';
|
|
2
|
+
import type { SatispayProps, SatispayRef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* Satispay 支付方式
|
|
5
|
+
* - 表单:邮箱,指定国家(EEA + GB + CH;不在枚举则留空)
|
|
6
|
+
* - 支付:跳转至 Satispay 页面完成支付
|
|
7
|
+
*/
|
|
8
|
+
export declare const Satispay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<SatispayProps & 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<SatispayRef> | 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 SatispayProps extends PayKKaCommonConfig, WalletRedirectProps, WalletCustomProps, PaymentCommonProps {
|
|
5
|
+
}
|
|
6
|
+
export interface SatispayRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { UpiProps } from './type';
|
|
2
|
+
import type { UpiRef } from './type';
|
|
3
|
+
import './upi.scss';
|
|
4
|
+
/**
|
|
5
|
+
* Upi 支付方式
|
|
6
|
+
* - 表单:邮箱,地址
|
|
7
|
+
* - 支付:跳转至 UPI 页面完成支付
|
|
8
|
+
*/
|
|
9
|
+
export declare const Upi: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<UpiProps & import("../../../types").PayKKaCommonConfig & {
|
|
10
|
+
session: import("../../../core").Session;
|
|
11
|
+
core: import("../../../core").PayKKaCheckout;
|
|
12
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
13
|
+
isDropIn?: boolean | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
ref?: import("preact").Ref<UpiRef> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PayKKaCommonConfig } from '../../../types';
|
|
2
|
+
import type { PaymentCommonProps, PaymentCommonRef, PaymentFormFieldsRef, PaymentRetryRef } from '../../../types/payment';
|
|
3
|
+
export interface UpiProps extends PayKKaCommonConfig, PaymentCommonProps {
|
|
4
|
+
}
|
|
5
|
+
export interface UpiRef extends PaymentCommonRef, PaymentRetryRef, PaymentFormFieldsRef {
|
|
6
|
+
}
|
|
@@ -20,5 +20,23 @@ export * from './IDeal';
|
|
|
20
20
|
export * from './Skrill';
|
|
21
21
|
export * from './P24';
|
|
22
22
|
export * from './Trustly';
|
|
23
|
+
export * from './BancomatPay';
|
|
24
|
+
export * from './MyBank';
|
|
25
|
+
export * from './Bizum';
|
|
26
|
+
export * from './EPS';
|
|
27
|
+
export * from './MbWay';
|
|
28
|
+
export * from './Multibanco';
|
|
29
|
+
export * from './PayU';
|
|
30
|
+
export * from './Satispay';
|
|
23
31
|
export * from './AliPay';
|
|
24
32
|
export * from './WechatPay';
|
|
33
|
+
export * from './PayByBank';
|
|
34
|
+
export * from './Fpx';
|
|
35
|
+
export * from './DragonPay';
|
|
36
|
+
export * from './Upi';
|
|
37
|
+
export * from './OnlineBankingFinland';
|
|
38
|
+
export * from './OnlineBankingEstonia';
|
|
39
|
+
export * from './OnlineBankingLatvia';
|
|
40
|
+
export * from './OnlineBankingLithuania';
|
|
41
|
+
export * from './OnlineBankingIndonesia';
|
|
42
|
+
export * from './OnlineBankingThailand';
|
package/dist/types/constant.d.ts
CHANGED
|
@@ -40,6 +40,24 @@ export declare enum PaymentMethod {
|
|
|
40
40
|
SKRILL = "SKRILL",
|
|
41
41
|
TRUSTLY = "TRUSTLY",
|
|
42
42
|
P24 = "P24",
|
|
43
|
+
BANCOMAT_PAY = "BANCOMAT",
|
|
44
|
+
MY_BANK = "MYBANK",
|
|
45
|
+
BIZUM = "BIZUM",
|
|
46
|
+
EPS = "EPS",
|
|
47
|
+
MB_WAY = "MB_WAY",
|
|
48
|
+
MULTIBANCO = "MULTIBANCO",
|
|
49
|
+
PAY_U = "PAYU",
|
|
50
|
+
SATISPAY = "SATISPAY",
|
|
51
|
+
PAY_BY_BANK = "PAY_BY_BANK",
|
|
52
|
+
FPX = "FPX",
|
|
53
|
+
DRAGONPAY = "DRAGONPAY",
|
|
54
|
+
UPI = "UPI",
|
|
55
|
+
ONLINE_BANKING_FINLAND = "ONLINE_BANKING_FINLAND",
|
|
56
|
+
ONLINE_BANKING_ESTONIA = "ONLINE_BANKING_ESTONIA",
|
|
57
|
+
ONLINE_BANKING_LATVIA = "ONLINE_BANKING_LATVIA",
|
|
58
|
+
ONLINE_BANKING_LITHUANIA = "ONLINE_BANKING_LITHUANIA",
|
|
59
|
+
ONLINE_BANKING_INDONESIA = "ONLINE_BANKING_INDONESIA",
|
|
60
|
+
ONLINE_BANKING_THAILAND = "ONLINE_BANKING_THAILAND",
|
|
43
61
|
/** 目前没用 */
|
|
44
62
|
SEPA_DEBIT = "SEPA_DEBIT"
|
|
45
63
|
}
|
|
@@ -74,7 +92,25 @@ export declare enum PaymentCategory {
|
|
|
74
92
|
OVO = "ovo",
|
|
75
93
|
SKRILL = "skrill",
|
|
76
94
|
TRUSTLY = "trustly",
|
|
77
|
-
P24 = "p24"
|
|
95
|
+
P24 = "p24",
|
|
96
|
+
BANCOMAT_PAY = "bancomatPay",
|
|
97
|
+
MY_BANK = "myBank",
|
|
98
|
+
BIZUM = "bizum",
|
|
99
|
+
EPS = "eps",
|
|
100
|
+
MB_WAY = "mbWay",
|
|
101
|
+
MULTIBANCO = "multibanco",
|
|
102
|
+
PAY_U = "payU",
|
|
103
|
+
SATISPAY = "satispay",
|
|
104
|
+
PAY_BY_BANK = "payByBank",
|
|
105
|
+
FPX = "fpx",
|
|
106
|
+
DRAGONPAY = "dragonPay",
|
|
107
|
+
UPI = "upi",
|
|
108
|
+
ONLINE_BANKING_FINLAND = "onlineBankingFinland",
|
|
109
|
+
ONLINE_BANKING_ESTONIA = "onlineBankingEstonia",
|
|
110
|
+
ONLINE_BANKING_LATVIA = "onlineBankingLatvia",
|
|
111
|
+
ONLINE_BANKING_LITHUANIA = "onlineBankingLithuania",
|
|
112
|
+
ONLINE_BANKING_INDONESIA = "onlineBankingIndonesia",
|
|
113
|
+
ONLINE_BANKING_THAILAND = "onlineBankingThailand"
|
|
78
114
|
}
|
|
79
115
|
export declare const PaymentMethod2CategoryMap: Partial<Record<PaymentMethod, PaymentCategory>>;
|
|
80
116
|
export declare const PaymentCategory2MethodMap: Partial<Record<PaymentCategory, PaymentMethod[]>>;
|
|
@@ -6,7 +6,19 @@ import { type FieldStatusConfig } from '../api';
|
|
|
6
6
|
import type { PaymentButtonStatus } from '../components/PaymentButton';
|
|
7
7
|
import type { PaymentCommonProps, PaymentMethodContext } from '../types/payment';
|
|
8
8
|
export type BaseWalletProps = WalletCustomProps & WalletRedirectProps & WalletQRCodeModalProps & CoreProps & PaymentCommonProps;
|
|
9
|
-
export
|
|
9
|
+
export interface BaseWalletOnProcessingResult {
|
|
10
|
+
/**
|
|
11
|
+
* 是否需要继续轮询查询
|
|
12
|
+
* @defaultValue true
|
|
13
|
+
*/
|
|
14
|
+
continueSearch?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 是否已经处理过支付动作
|
|
17
|
+
* @defaultValue false
|
|
18
|
+
*/
|
|
19
|
+
actionHandled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface BaseWalletOptions {
|
|
10
22
|
/**
|
|
11
23
|
* 轮询超时时间
|
|
12
24
|
* @defaultValue 20 * 1000
|
|
@@ -21,9 +33,9 @@ export type BaseWalletOptions = {
|
|
|
21
33
|
getFormData: () => Recordable;
|
|
22
34
|
/**
|
|
23
35
|
* 处理支付中状态
|
|
24
|
-
*
|
|
36
|
+
* 可通过返回值控制是否继续轮询,以及是否已处理当前支付动作
|
|
25
37
|
*/
|
|
26
|
-
onProcessing?: (paymentInfo: BasePaymentInfo) => MaybePromise<void |
|
|
38
|
+
onProcessing?: (paymentInfo: BasePaymentInfo) => MaybePromise<void | BaseWalletOnProcessingResult>;
|
|
27
39
|
/** 获取支付请求额外的参数,通常为某种支付方式所特有 */
|
|
28
40
|
getExtraPaymentParams?: () => MaybePromise<DeepPartial<CheckoutPaymentParams>>;
|
|
29
41
|
/**
|
|
@@ -31,7 +43,7 @@ export type BaseWalletOptions = {
|
|
|
31
43
|
* 支付完成后,需要 processAfterPayment 方法处理后续逻辑
|
|
32
44
|
**/
|
|
33
45
|
executePayment?: (params: CheckoutPaymentParams, extraParams?: Recordable) => void;
|
|
34
|
-
}
|
|
46
|
+
}
|
|
35
47
|
/**
|
|
36
48
|
* 基础钱包通用逻辑
|
|
37
49
|
* @param paymentMethod - 支付方式
|
|
@@ -26,6 +26,24 @@ declare const _default: {
|
|
|
26
26
|
'dropIn.skrill.label': string;
|
|
27
27
|
'dropIn.trustly.label': string;
|
|
28
28
|
'dropIn.p24.label': string;
|
|
29
|
+
'dropIn.bancomatPay.label': string;
|
|
30
|
+
'dropIn.myBank.label': string;
|
|
31
|
+
'dropIn.bizum.label': string;
|
|
32
|
+
'dropIn.eps.label': string;
|
|
33
|
+
'dropIn.mbWay.label': string;
|
|
34
|
+
'dropIn.multibanco.label': string;
|
|
35
|
+
'dropIn.payU.label': string;
|
|
36
|
+
'dropIn.satispay.label': string;
|
|
37
|
+
'dropIn.payByBank.label': string;
|
|
38
|
+
'dropIn.fpx.label': string;
|
|
39
|
+
'dropIn.dragonPay.label': string;
|
|
40
|
+
'dropIn.upi.label': string;
|
|
41
|
+
'dropIn.onlineBankingFinland.label': string;
|
|
42
|
+
'dropIn.onlineBankingEstonia.label': string;
|
|
43
|
+
'dropIn.onlineBankingLatvia.label': string;
|
|
44
|
+
'dropIn.onlineBankingLithuania.label': string;
|
|
45
|
+
'dropIn.onlineBankingIndonesia.label': string;
|
|
46
|
+
'dropIn.onlineBankingThailand.label': string;
|
|
29
47
|
'dropIn.aliPay.label': string;
|
|
30
48
|
'dropIn.wechatPay.label': string;
|
|
31
49
|
'card.cardNumber.label': string;
|
|
@@ -26,6 +26,24 @@ declare const _default: {
|
|
|
26
26
|
'dropIn.skrill.label': string;
|
|
27
27
|
'dropIn.trustly.label': string;
|
|
28
28
|
'dropIn.p24.label': string;
|
|
29
|
+
'dropIn.bancomatPay.label': string;
|
|
30
|
+
'dropIn.myBank.label': string;
|
|
31
|
+
'dropIn.bizum.label': string;
|
|
32
|
+
'dropIn.eps.label': string;
|
|
33
|
+
'dropIn.mbWay.label': string;
|
|
34
|
+
'dropIn.multibanco.label': string;
|
|
35
|
+
'dropIn.payU.label': string;
|
|
36
|
+
'dropIn.satispay.label': string;
|
|
37
|
+
'dropIn.payByBank.label': string;
|
|
38
|
+
'dropIn.fpx.label': string;
|
|
39
|
+
'dropIn.dragonPay.label': string;
|
|
40
|
+
'dropIn.upi.label': string;
|
|
41
|
+
'dropIn.onlineBankingFinland.label': string;
|
|
42
|
+
'dropIn.onlineBankingEstonia.label': string;
|
|
43
|
+
'dropIn.onlineBankingLatvia.label': string;
|
|
44
|
+
'dropIn.onlineBankingLithuania.label': string;
|
|
45
|
+
'dropIn.onlineBankingIndonesia.label': string;
|
|
46
|
+
'dropIn.onlineBankingThailand.label': string;
|
|
29
47
|
'dropIn.aliPay.label': string;
|
|
30
48
|
'dropIn.wechatPay.label': string;
|
|
31
49
|
'card.cardNumber.label': string;
|
|
@@ -26,6 +26,24 @@ declare const _default: {
|
|
|
26
26
|
'dropIn.skrill.label': string;
|
|
27
27
|
'dropIn.trustly.label': string;
|
|
28
28
|
'dropIn.p24.label': string;
|
|
29
|
+
'dropIn.bancomatPay.label': string;
|
|
30
|
+
'dropIn.myBank.label': string;
|
|
31
|
+
'dropIn.bizum.label': string;
|
|
32
|
+
'dropIn.eps.label': string;
|
|
33
|
+
'dropIn.mbWay.label': string;
|
|
34
|
+
'dropIn.multibanco.label': string;
|
|
35
|
+
'dropIn.payU.label': string;
|
|
36
|
+
'dropIn.satispay.label': string;
|
|
37
|
+
'dropIn.payByBank.label': string;
|
|
38
|
+
'dropIn.fpx.label': string;
|
|
39
|
+
'dropIn.dragonPay.label': string;
|
|
40
|
+
'dropIn.upi.label': string;
|
|
41
|
+
'dropIn.onlineBankingFinland.label': string;
|
|
42
|
+
'dropIn.onlineBankingEstonia.label': string;
|
|
43
|
+
'dropIn.onlineBankingLatvia.label': string;
|
|
44
|
+
'dropIn.onlineBankingLithuania.label': string;
|
|
45
|
+
'dropIn.onlineBankingIndonesia.label': string;
|
|
46
|
+
'dropIn.onlineBankingThailand.label': string;
|
|
29
47
|
'dropIn.aliPay.label': string;
|
|
30
48
|
'dropIn.wechatPay.label': string;
|
|
31
49
|
'card.cardNumber.label': string;
|
|
@@ -26,6 +26,24 @@ declare const _default: {
|
|
|
26
26
|
'dropIn.skrill.label': string;
|
|
27
27
|
'dropIn.trustly.label': string;
|
|
28
28
|
'dropIn.p24.label': string;
|
|
29
|
+
'dropIn.bancomatPay.label': string;
|
|
30
|
+
'dropIn.myBank.label': string;
|
|
31
|
+
'dropIn.bizum.label': string;
|
|
32
|
+
'dropIn.eps.label': string;
|
|
33
|
+
'dropIn.mbWay.label': string;
|
|
34
|
+
'dropIn.multibanco.label': string;
|
|
35
|
+
'dropIn.payU.label': string;
|
|
36
|
+
'dropIn.satispay.label': string;
|
|
37
|
+
'dropIn.payByBank.label': string;
|
|
38
|
+
'dropIn.fpx.label': string;
|
|
39
|
+
'dropIn.dragonPay.label': string;
|
|
40
|
+
'dropIn.upi.label': string;
|
|
41
|
+
'dropIn.onlineBankingFinland.label': string;
|
|
42
|
+
'dropIn.onlineBankingEstonia.label': string;
|
|
43
|
+
'dropIn.onlineBankingLatvia.label': string;
|
|
44
|
+
'dropIn.onlineBankingLithuania.label': string;
|
|
45
|
+
'dropIn.onlineBankingIndonesia.label': string;
|
|
46
|
+
'dropIn.onlineBankingThailand.label': string;
|
|
29
47
|
'dropIn.aliPay.label': string;
|
|
30
48
|
'dropIn.wechatPay.label': string;
|
|
31
49
|
'card.cardNumber.label': string;
|
|
@@ -26,6 +26,24 @@ declare const _default: {
|
|
|
26
26
|
'dropIn.skrill.label': string;
|
|
27
27
|
'dropIn.trustly.label': string;
|
|
28
28
|
'dropIn.p24.label': string;
|
|
29
|
+
'dropIn.bancomatPay.label': string;
|
|
30
|
+
'dropIn.myBank.label': string;
|
|
31
|
+
'dropIn.bizum.label': string;
|
|
32
|
+
'dropIn.eps.label': string;
|
|
33
|
+
'dropIn.mbWay.label': string;
|
|
34
|
+
'dropIn.multibanco.label': string;
|
|
35
|
+
'dropIn.payU.label': string;
|
|
36
|
+
'dropIn.satispay.label': string;
|
|
37
|
+
'dropIn.payByBank.label': string;
|
|
38
|
+
'dropIn.fpx.label': string;
|
|
39
|
+
'dropIn.dragonPay.label': string;
|
|
40
|
+
'dropIn.upi.label': string;
|
|
41
|
+
'dropIn.onlineBankingFinland.label': string;
|
|
42
|
+
'dropIn.onlineBankingEstonia.label': string;
|
|
43
|
+
'dropIn.onlineBankingLatvia.label': string;
|
|
44
|
+
'dropIn.onlineBankingLithuania.label': string;
|
|
45
|
+
'dropIn.onlineBankingIndonesia.label': string;
|
|
46
|
+
'dropIn.onlineBankingThailand.label': string;
|
|
29
47
|
'dropIn.aliPay.label': string;
|
|
30
48
|
'dropIn.wechatPay.label': string;
|
|
31
49
|
'card.cardNumber.label': string;
|
|
@@ -26,6 +26,24 @@ declare const _default: {
|
|
|
26
26
|
'dropIn.skrill.label': string;
|
|
27
27
|
'dropIn.trustly.label': string;
|
|
28
28
|
'dropIn.p24.label': string;
|
|
29
|
+
'dropIn.bancomatPay.label': string;
|
|
30
|
+
'dropIn.myBank.label': string;
|
|
31
|
+
'dropIn.bizum.label': string;
|
|
32
|
+
'dropIn.eps.label': string;
|
|
33
|
+
'dropIn.mbWay.label': string;
|
|
34
|
+
'dropIn.multibanco.label': string;
|
|
35
|
+
'dropIn.payU.label': string;
|
|
36
|
+
'dropIn.satispay.label': string;
|
|
37
|
+
'dropIn.payByBank.label': string;
|
|
38
|
+
'dropIn.fpx.label': string;
|
|
39
|
+
'dropIn.dragonPay.label': string;
|
|
40
|
+
'dropIn.upi.label': string;
|
|
41
|
+
'dropIn.onlineBankingFinland.label': string;
|
|
42
|
+
'dropIn.onlineBankingEstonia.label': string;
|
|
43
|
+
'dropIn.onlineBankingLatvia.label': string;
|
|
44
|
+
'dropIn.onlineBankingLithuania.label': string;
|
|
45
|
+
'dropIn.onlineBankingIndonesia.label': string;
|
|
46
|
+
'dropIn.onlineBankingThailand.label': string;
|
|
29
47
|
'dropIn.aliPay.label': string;
|
|
30
48
|
'dropIn.wechatPay.label': string;
|
|
31
49
|
'card.cardNumber.label': string;
|
|
@@ -26,6 +26,24 @@ declare const _default: {
|
|
|
26
26
|
'dropIn.skrill.label': string;
|
|
27
27
|
'dropIn.trustly.label': string;
|
|
28
28
|
'dropIn.p24.label': string;
|
|
29
|
+
'dropIn.bancomatPay.label': string;
|
|
30
|
+
'dropIn.myBank.label': string;
|
|
31
|
+
'dropIn.bizum.label': string;
|
|
32
|
+
'dropIn.eps.label': string;
|
|
33
|
+
'dropIn.mbWay.label': string;
|
|
34
|
+
'dropIn.multibanco.label': string;
|
|
35
|
+
'dropIn.payU.label': string;
|
|
36
|
+
'dropIn.satispay.label': string;
|
|
37
|
+
'dropIn.payByBank.label': string;
|
|
38
|
+
'dropIn.fpx.label': string;
|
|
39
|
+
'dropIn.dragonPay.label': string;
|
|
40
|
+
'dropIn.upi.label': string;
|
|
41
|
+
'dropIn.onlineBankingFinland.label': string;
|
|
42
|
+
'dropIn.onlineBankingEstonia.label': string;
|
|
43
|
+
'dropIn.onlineBankingLatvia.label': string;
|
|
44
|
+
'dropIn.onlineBankingLithuania.label': string;
|
|
45
|
+
'dropIn.onlineBankingIndonesia.label': string;
|
|
46
|
+
'dropIn.onlineBankingThailand.label': string;
|
|
29
47
|
'dropIn.aliPay.label': string;
|
|
30
48
|
'dropIn.wechatPay.label': string;
|
|
31
49
|
'card.cardNumber.label': string;
|