@paykka/card-checkout-ui 0.17.0 → 0.18.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 +21 -21
- package/dist/card-checkout-ui.umd.cjs +21 -21
- package/dist/es/api/http.js +1 -0
- package/dist/es/api/index.js +1 -0
- package/dist/es/api/modules/checkout/map.js +11 -14
- 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 +16 -17
- 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 +67 -3
- 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 +9 -1
- package/dist/es/components/{CardIBANField → IBANField}/index.js +7 -5
- package/dist/es/components/PaymentButton/index.js +1 -0
- package/dist/es/components/RecurringTip/index.js +1 -0
- package/dist/es/components/SecuredFieldsProvider/index.js +1 -0
- package/dist/es/components/Sepa/index.js +141 -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/QRCodeModal/QRCodeModal.js +1 -0
- package/dist/es/components/business/QRCodeModal/index.js +1 -0
- 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 +3 -2
- package/dist/es/components/index.js +8 -0
- 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 +1 -0
- package/dist/es/components/internal/Button/index.js +1 -0
- package/dist/es/components/internal/CheckBox/CheckBox.js +1 -0
- package/dist/es/components/internal/CheckBox/index.js +1 -0
- package/dist/es/components/internal/Form/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/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 +5 -4
- package/dist/es/components/wallets/BancomatPay/BancomatPay.js +9 -9
- package/dist/es/components/wallets/Bancontact/Bancontact.js +14 -14
- package/dist/es/components/wallets/Bizum/Bizum.js +9 -9
- package/dist/es/components/wallets/Blik/Blik.js +16 -16
- package/dist/es/components/wallets/Boost/Boost.js +10 -10
- package/dist/es/components/wallets/Doku/Doku.js +207 -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 +20 -26
- package/dist/es/components/wallets/Fpx/Fpx.js +10 -10
- package/dist/es/components/wallets/GCash/GCash.js +13 -13
- package/dist/es/components/wallets/GoPay/GoPay.js +196 -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 +18 -17
- package/dist/es/components/wallets/Jenius/Jenius.js +207 -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 +207 -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 +297 -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 +19 -18
- 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 +14 -14
- package/dist/es/components/wallets/PagaWallet/PagaWallet.js +10 -10
- package/dist/es/components/wallets/PayByBank/PayByBank.js +15 -20
- package/dist/es/components/wallets/PayU/PayU.js +17 -20
- 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 +13 -13
- 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 +12 -12
- package/dist/es/components/wallets/Twint/Twint.js +196 -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 +13 -13
- package/dist/es/components/wallets/WechatPay/WechatPay.js +13 -13
- package/dist/es/components/wallets/Zalopay/Zalopay.js +13 -13
- package/dist/es/components/wallets/index.js +7 -0
- package/dist/es/config.js +1 -0
- package/dist/es/constant.js +48 -4
- package/dist/es/core/address.js +1 -0
- package/dist/es/core/create.js +1 -0
- 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 +8 -2
- package/dist/es/hooks/useI18n.js +1 -0
- package/dist/es/hooks/usePayState.js +1 -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 +146 -0
- package/dist/es/i18n/locales/da-DK.js +146 -0
- package/dist/es/i18n/locales/de-DE.js +13 -17
- package/dist/es/i18n/locales/en-GB.js +13 -17
- package/dist/es/i18n/locales/es-ES.js +13 -17
- package/dist/es/i18n/locales/fi-FI.js +146 -0
- package/dist/es/i18n/locales/fil-PH.js +146 -0
- package/dist/es/i18n/locales/fr-FR.js +13 -17
- package/dist/es/i18n/locales/hi-IN.js +146 -0
- package/dist/es/i18n/locales/id-ID.js +146 -0
- package/dist/es/i18n/locales/index.js +30 -3
- package/dist/es/i18n/locales/it-IT.js +146 -0
- package/dist/es/i18n/locales/ja-JP.js +13 -17
- package/dist/es/i18n/locales/ko-KR.js +13 -17
- package/dist/es/i18n/locales/ms-MY.js +146 -0
- package/dist/es/i18n/locales/nb-NO.js +146 -0
- package/dist/es/i18n/locales/nl-NL.js +13 -17
- package/dist/es/i18n/locales/pl-PL.js +146 -0
- package/dist/es/i18n/locales/pt-PT.js +13 -17
- package/dist/es/i18n/locales/ru-RU.js +13 -17
- package/dist/es/i18n/locales/sv-SE.js +146 -0
- package/dist/es/i18n/locales/th-TH.js +146 -0
- package/dist/es/i18n/locales/zh-CN.js +13 -17
- package/dist/es/i18n/locales/zh-HK.js +13 -17
- package/dist/es/i18n/locales/zh-TW.js +13 -17
- package/dist/es/i18n/util.js +12 -8
- package/dist/es/index.js +16 -1
- 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/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/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +1 -1
- 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 +8 -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 +7 -0
- package/dist/types/constant.d.ts +21 -7
- package/dist/types/core/logger.d.ts +1 -0
- package/dist/types/hooks/useBaseWallet.d.ts +6 -1
- package/dist/types/i18n/locales/cs-CZ.d.ts +128 -0
- package/dist/types/i18n/locales/da-DK.d.ts +128 -0
- package/dist/types/i18n/locales/de-DE.d.ts +12 -15
- package/dist/types/i18n/locales/en-GB.d.ts +12 -15
- package/dist/types/i18n/locales/es-ES.d.ts +12 -15
- package/dist/types/i18n/locales/fi-FI.d.ts +128 -0
- package/dist/types/i18n/locales/fil-PH.d.ts +128 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +12 -15
- package/dist/types/i18n/locales/hi-IN.d.ts +128 -0
- package/dist/types/i18n/locales/id-ID.d.ts +128 -0
- package/dist/types/i18n/locales/index.d.ts +24 -0
- package/dist/types/i18n/locales/it-IT.d.ts +128 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +12 -15
- package/dist/types/i18n/locales/ko-KR.d.ts +12 -15
- package/dist/types/i18n/locales/ms-MY.d.ts +128 -0
- package/dist/types/i18n/locales/nb-NO.d.ts +128 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +12 -15
- package/dist/types/i18n/locales/pl-PL.d.ts +128 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +12 -15
- package/dist/types/i18n/locales/ru-RU.d.ts +12 -15
- package/dist/types/i18n/locales/sv-SE.d.ts +128 -0
- package/dist/types/i18n/locales/th-TH.d.ts +128 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +12 -15
- package/dist/types/i18n/locales/zh-HK.d.ts +12 -15
- package/dist/types/i18n/locales/zh-TW.d.ts +12 -15
- package/dist/types/i18n/util.d.ts +1 -1
- package/dist/types/out/config.d.ts +4 -4
- package/package.json +1 -1
- package/dist/es/components/AccountNameField/index.js +0 -50
- 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/business/BlikConfirmModal/BlikConfirmModal.d.ts +0 -6
- package/dist/types/components/business/BlikConfirmModal/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/Tooltip/{tooltip2.js → tooltip.js} +0 -0
- /package/dist/types/components/{CardIBANField → IBANField}/index.d.ts +0 -0
|
@@ -4,11 +4,11 @@ import { CoreContext } from "../../../core/context.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME } from "../../../constant.js";
|
|
7
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
|
-
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
12
12
|
import "../../internal/Form/type.js";
|
|
13
13
|
import "../../internal/Form/context.js";
|
|
14
14
|
import "../../internal/Form/FormItem.js";
|
|
@@ -26,13 +26,13 @@ import "../../internal/Input/Input.js";
|
|
|
26
26
|
import "../../internal/Input/type.js";
|
|
27
27
|
import "../../business/PhoneField/config.js";
|
|
28
28
|
import "../../business/PhoneField/phone-field.js";
|
|
29
|
-
import "../../business/Tooltip/
|
|
29
|
+
import "../../business/Tooltip/tooltip.js";
|
|
30
30
|
import "../../business/BlikCodeField/blik-code-field.js";
|
|
31
31
|
import "../../internal/Button/button.js";
|
|
32
|
-
import "../../business/
|
|
32
|
+
import "../../business/PaymentConfirmModal/payment-confirm-modal.js";
|
|
33
33
|
import "../../internal/LoadingCheck/loading-check.js";
|
|
34
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
34
35
|
const { bem } = useBEM("pay-by-bank");
|
|
35
|
-
const fieldClassNames = bem("field");
|
|
36
36
|
const CURR_PAYMENT_METHOD = PaymentMethod.PAY_BY_BANK;
|
|
37
37
|
const ALLOWED_COUNTRIES = ["AT", "BE", "DE", "FI", "FR", "IE", "IT", "LT", "NL", "PT"];
|
|
38
38
|
const PayByBank = w((props, ref) => {
|
|
@@ -94,15 +94,10 @@ const PayByBank = w((props, ref) => {
|
|
|
94
94
|
} = useBaseWallet(CURR_PAYMENT_METHOD, props, {
|
|
95
95
|
getFormData: () => {
|
|
96
96
|
return {
|
|
97
|
-
...form
|
|
97
|
+
...form,
|
|
98
|
+
firstName: form.name
|
|
98
99
|
};
|
|
99
|
-
}
|
|
100
|
-
getExtraPaymentParams: () => ({
|
|
101
|
-
// 姓名走 payment.holderName,不映射 bill.firstName
|
|
102
|
-
payment: {
|
|
103
|
-
holderName: form.name
|
|
104
|
-
}
|
|
105
|
-
})
|
|
100
|
+
}
|
|
106
101
|
});
|
|
107
102
|
const addressCore = core.getAddressCore();
|
|
108
103
|
const emailState = createEmailCore();
|
|
@@ -142,21 +137,21 @@ const PayByBank = w((props, ref) => {
|
|
|
142
137
|
});
|
|
143
138
|
};
|
|
144
139
|
const Email = () => {
|
|
145
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
140
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
146
141
|
EmailField,
|
|
147
142
|
{
|
|
148
143
|
ref: emailFieldRef,
|
|
149
144
|
value: form.email,
|
|
150
145
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
151
146
|
}
|
|
152
|
-
) })
|
|
147
|
+
) });
|
|
153
148
|
};
|
|
154
149
|
const Address = () => {
|
|
155
150
|
var _a;
|
|
156
151
|
const mode = (fieldStatus == null ? void 0 : fieldStatus.address.show) ? (_a = core.config._checkoutConfig) == null ? void 0 : _a.addressMode : "country";
|
|
157
152
|
return /* @__PURE__ */ u(b, {
|
|
158
153
|
// 这里没有判断 fieldStatus?.address.show,因为 Pay by Bank 对国家有要求,直接用账单地址可能会失败
|
|
159
|
-
children: /* @__PURE__ */ u(
|
|
154
|
+
children: /* @__PURE__ */ u(
|
|
160
155
|
AddressField,
|
|
161
156
|
{
|
|
162
157
|
ref: addressFieldRef,
|
|
@@ -166,7 +161,7 @@ const PayByBank = w((props, ref) => {
|
|
|
166
161
|
disabled,
|
|
167
162
|
onChange: (value) => setForm(Object.assign(form, { address: value }))
|
|
168
163
|
}
|
|
169
|
-
)
|
|
164
|
+
)
|
|
170
165
|
});
|
|
171
166
|
};
|
|
172
167
|
const Button = () => {
|
|
@@ -194,11 +189,11 @@ const PayByBank = w((props, ref) => {
|
|
|
194
189
|
},
|
|
195
190
|
children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
196
191
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.PAY_BY_BANK }),
|
|
197
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
192
|
+
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, bem()), children: [
|
|
198
193
|
Email(),
|
|
199
|
-
/* @__PURE__ */ u(
|
|
194
|
+
/* @__PURE__ */ u(NameField, { disabled }),
|
|
200
195
|
Address(),
|
|
201
|
-
/* @__PURE__ */ u("div", { className:
|
|
196
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
202
197
|
ErrorMessage(),
|
|
203
198
|
!hidePaymentButton && Button()
|
|
204
199
|
] })
|
|
@@ -4,8 +4,9 @@ import { CoreContext } from "../../../core/context.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME } from "../../../constant.js";
|
|
7
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
12
|
import "./payu2.js";
|
|
@@ -14,7 +15,6 @@ import "../../internal/Form/type.js";
|
|
|
14
15
|
import "../../internal/Form/context.js";
|
|
15
16
|
import "../../internal/Form/FormItem.js";
|
|
16
17
|
import { Form } from "../../internal/Form/Form.js";
|
|
17
|
-
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
18
18
|
import { PaymentButton } from "../../PaymentButton/index.js";
|
|
19
19
|
import { Info } from "../../internal/Info/Info.js";
|
|
20
20
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
@@ -26,13 +26,13 @@ import "../../internal/Input/Input.js";
|
|
|
26
26
|
import "../../internal/Input/type.js";
|
|
27
27
|
import "../../business/PhoneField/config.js";
|
|
28
28
|
import "../../business/PhoneField/phone-field.js";
|
|
29
|
-
import "../../business/Tooltip/
|
|
29
|
+
import "../../business/Tooltip/tooltip.js";
|
|
30
30
|
import "../../business/BlikCodeField/blik-code-field.js";
|
|
31
31
|
import "../../internal/Button/button.js";
|
|
32
|
-
import "../../business/
|
|
32
|
+
import "../../business/PaymentConfirmModal/payment-confirm-modal.js";
|
|
33
33
|
import "../../internal/LoadingCheck/loading-check.js";
|
|
34
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
34
35
|
const { bem } = useBEM("payu");
|
|
35
|
-
const fieldClassNames = bem("field");
|
|
36
36
|
const CURR_PAYMENT_METHOD = PaymentMethod.PAY_U;
|
|
37
37
|
const ALLOWED_COUNTRIES = ["PL", "CZ"];
|
|
38
38
|
const PayU = w((props, ref) => {
|
|
@@ -70,9 +70,9 @@ const PayU = w((props, ref) => {
|
|
|
70
70
|
return;
|
|
71
71
|
const { country, bill = {} } = (session == null ? void 0 : session.checkout) || {};
|
|
72
72
|
country && addressCore.setCountry(country);
|
|
73
|
-
form.email = bill.email ?? "";
|
|
74
73
|
if (!ALLOWED_COUNTRIES.includes(country ?? ""))
|
|
75
74
|
return;
|
|
75
|
+
form.email = bill.email ?? "";
|
|
76
76
|
form.address.country = country;
|
|
77
77
|
}, [sessionReady]);
|
|
78
78
|
const {
|
|
@@ -87,17 +87,14 @@ const PayU = w((props, ref) => {
|
|
|
87
87
|
stopRetry,
|
|
88
88
|
getPaymentMethodContext
|
|
89
89
|
} = useBaseWallet(CURR_PAYMENT_METHOD, props, {
|
|
90
|
-
getFormData: () => ({
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
payment: {
|
|
94
|
-
holderName: form.name
|
|
95
|
-
}
|
|
90
|
+
getFormData: () => ({
|
|
91
|
+
...form,
|
|
92
|
+
firstName: form.name
|
|
96
93
|
})
|
|
97
94
|
});
|
|
98
|
-
const emailState = createEmailCore();
|
|
99
95
|
const emailFieldRef = A(null);
|
|
100
96
|
const addressCore = core.getAddressCore();
|
|
97
|
+
const emailState = createEmailCore();
|
|
101
98
|
const addressFieldRef = A(null);
|
|
102
99
|
const formRef = A(null);
|
|
103
100
|
const [form, setForm] = h({
|
|
@@ -131,20 +128,20 @@ const PayU = w((props, ref) => {
|
|
|
131
128
|
await payment();
|
|
132
129
|
});
|
|
133
130
|
};
|
|
134
|
-
const Email = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
131
|
+
const Email = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
135
132
|
EmailField,
|
|
136
133
|
{
|
|
137
134
|
ref: emailFieldRef,
|
|
138
135
|
value: form.email,
|
|
139
136
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
140
137
|
}
|
|
141
|
-
) })
|
|
138
|
+
) });
|
|
142
139
|
const Address = () => {
|
|
143
140
|
var _a;
|
|
144
141
|
const mode = (fieldStatus == null ? void 0 : fieldStatus.address.show) ? (_a = core.config._checkoutConfig) == null ? void 0 : _a.addressMode : "country";
|
|
145
142
|
return (
|
|
146
143
|
// 这里没有判断 fieldStatus?.address.show,因为 PayU 对国家有要求,直接用账单地址可能会失败
|
|
147
|
-
/* @__PURE__ */ u(
|
|
144
|
+
/* @__PURE__ */ u(
|
|
148
145
|
AddressField,
|
|
149
146
|
{
|
|
150
147
|
ref: addressFieldRef,
|
|
@@ -154,7 +151,7 @@ const PayU = w((props, ref) => {
|
|
|
154
151
|
disabled,
|
|
155
152
|
onChange: (value) => setForm(Object.assign(form, { address: value }))
|
|
156
153
|
}
|
|
157
|
-
)
|
|
154
|
+
)
|
|
158
155
|
);
|
|
159
156
|
};
|
|
160
157
|
const Button = () => /* @__PURE__ */ u(
|
|
@@ -170,11 +167,11 @@ const PayU = w((props, ref) => {
|
|
|
170
167
|
const ErrorMessage = () => /* @__PURE__ */ u(b, { children: !!errorMessage && /* @__PURE__ */ u(Info, { content: errorMessage }) });
|
|
171
168
|
return /* @__PURE__ */ u(CoreContext.Provider, { value: { i18n, session, core }, children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
172
169
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.PAY_U }),
|
|
173
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
170
|
+
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, bem()), children: [
|
|
174
171
|
Email(),
|
|
175
|
-
/* @__PURE__ */ u(
|
|
172
|
+
/* @__PURE__ */ u(NameField, { disabled }),
|
|
176
173
|
Address(),
|
|
177
|
-
/* @__PURE__ */ u("div", { className:
|
|
174
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
178
175
|
ErrorMessage(),
|
|
179
176
|
!hidePaymentButton && Button()
|
|
180
177
|
] })
|
|
@@ -4,11 +4,11 @@ import { CoreContext } from "../../../core/context.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME } from "../../../constant.js";
|
|
7
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
|
-
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
12
12
|
import { GuideCard } from "../../GuideCard/index.js";
|
|
13
13
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
14
14
|
import { Info } from "../../internal/Info/Info.js";
|
|
@@ -18,8 +18,8 @@ import "../../internal/Form/FormItem.js";
|
|
|
18
18
|
import { Form } from "../../internal/Form/Form.js";
|
|
19
19
|
import "./paymaya2.js";
|
|
20
20
|
import { PaymentButton } from "../../PaymentButton/index.js";
|
|
21
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
21
22
|
const { bem } = useBEM("paymaya");
|
|
22
|
-
const fieldClassNames = bem("field");
|
|
23
23
|
const CURR_PAYMENT_METHOD = PaymentMethod.PAYMAYA;
|
|
24
24
|
const Paymaya = w((props, ref) => {
|
|
25
25
|
const {
|
|
@@ -86,7 +86,7 @@ const Paymaya = w((props, ref) => {
|
|
|
86
86
|
y(() => {
|
|
87
87
|
if (!sessionReady)
|
|
88
88
|
return;
|
|
89
|
-
const { bill = {}
|
|
89
|
+
const { country, bill = {} } = (session == null ? void 0 : session.checkout) || {};
|
|
90
90
|
country && addressCore.setCountry(country);
|
|
91
91
|
form.email = bill.email ?? "";
|
|
92
92
|
form.address.country = country;
|
|
@@ -132,20 +132,20 @@ const Paymaya = w((props, ref) => {
|
|
|
132
132
|
);
|
|
133
133
|
};
|
|
134
134
|
const Email = () => {
|
|
135
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
135
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
136
136
|
EmailField,
|
|
137
137
|
{
|
|
138
138
|
ref: emailFieldRef,
|
|
139
139
|
value: form.email,
|
|
140
140
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
141
141
|
}
|
|
142
|
-
) })
|
|
142
|
+
) });
|
|
143
143
|
};
|
|
144
144
|
const ErrorMessage = () => {
|
|
145
145
|
return /* @__PURE__ */ u(b, { children: !!errorMessage && /* @__PURE__ */ u(Info, { content: errorMessage }) });
|
|
146
146
|
};
|
|
147
147
|
const Address = () => {
|
|
148
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
148
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
149
149
|
AddressField,
|
|
150
150
|
{
|
|
151
151
|
ref: addressFieldRef,
|
|
@@ -153,7 +153,7 @@ const Paymaya = w((props, ref) => {
|
|
|
153
153
|
onChange: (value) => setForm(Object.assign(form, { address: value })),
|
|
154
154
|
disabled
|
|
155
155
|
}
|
|
156
|
-
) })
|
|
156
|
+
) });
|
|
157
157
|
};
|
|
158
158
|
return /* @__PURE__ */ u(
|
|
159
159
|
CoreContext.Provider,
|
|
@@ -165,10 +165,10 @@ const Paymaya = w((props, ref) => {
|
|
|
165
165
|
},
|
|
166
166
|
children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
167
167
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.PAYMAYA }),
|
|
168
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
168
|
+
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, bem()), children: [
|
|
169
169
|
Email(),
|
|
170
170
|
Address(),
|
|
171
|
-
/* @__PURE__ */ u("div", { className:
|
|
171
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
172
172
|
ErrorMessage(),
|
|
173
173
|
!hidePaymentButton && Button()
|
|
174
174
|
] })
|
|
@@ -5,11 +5,11 @@ import "../../../utils/card-brand/brands.js";
|
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass, limitedToNumber } from "../../../utils/format.js";
|
|
7
7
|
import { defaultInputStyleConfig } from "../../../types/index.js";
|
|
8
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, SessionMode } from "../../../constant.js";
|
|
8
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME, SessionMode } from "../../../constant.js";
|
|
9
9
|
import "../../../out/fraud-detection.js";
|
|
10
|
+
import "../../../core/logger.js";
|
|
10
11
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
11
12
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
12
|
-
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
13
13
|
import { GuideCard } from "../../GuideCard/index.js";
|
|
14
14
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
15
15
|
import { Info } from "../../internal/Info/Info.js";
|
|
@@ -22,8 +22,8 @@ import { SecuredFieldsProvider } from "../../SecuredFieldsProvider/index.js";
|
|
|
22
22
|
import { PaymentButton } from "../../PaymentButton/index.js";
|
|
23
23
|
import { CPFField } from "../../CPFField/index.js";
|
|
24
24
|
import { Tip } from "../../Tip/index.js";
|
|
25
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
25
26
|
const { bem } = useBEM("pic-pay");
|
|
26
|
-
const fieldClassNames = bem("field");
|
|
27
27
|
const CURR_PAYMENT_METHOD = PaymentMethod.PIC_PAY;
|
|
28
28
|
const PicPay = w((props, ref) => {
|
|
29
29
|
var _a;
|
|
@@ -106,7 +106,7 @@ const PicPay = w((props, ref) => {
|
|
|
106
106
|
var _a2;
|
|
107
107
|
if (!sessionReady)
|
|
108
108
|
return;
|
|
109
|
-
const { bill = {}
|
|
109
|
+
const { country, sessionMode, bill = {} } = (session == null ? void 0 : session.checkout) || {};
|
|
110
110
|
setSecurity(sessionMode !== SessionMode.HOSTED);
|
|
111
111
|
(_a2 = SFPRef.current) == null ? void 0 : _a2.reload();
|
|
112
112
|
country && addressCore.setCountry(country);
|
|
@@ -177,20 +177,20 @@ const PicPay = w((props, ref) => {
|
|
|
177
177
|
);
|
|
178
178
|
};
|
|
179
179
|
const Email = () => {
|
|
180
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
180
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
181
181
|
EmailField,
|
|
182
182
|
{
|
|
183
183
|
ref: emailFieldRef,
|
|
184
184
|
value: form.email,
|
|
185
185
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
186
186
|
}
|
|
187
|
-
) })
|
|
187
|
+
) });
|
|
188
188
|
};
|
|
189
189
|
const ErrorMessage = () => {
|
|
190
190
|
return /* @__PURE__ */ u(b, { children: !!errorMessage && /* @__PURE__ */ u(Info, { content: errorMessage }) });
|
|
191
191
|
};
|
|
192
192
|
const Address = () => {
|
|
193
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
193
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
194
194
|
AddressField,
|
|
195
195
|
{
|
|
196
196
|
ref: addressFieldRef,
|
|
@@ -198,7 +198,7 @@ const PicPay = w((props, ref) => {
|
|
|
198
198
|
onChange: (value) => setForm(Object.assign(form, { address: value })),
|
|
199
199
|
disabled
|
|
200
200
|
}
|
|
201
|
-
) })
|
|
201
|
+
) });
|
|
202
202
|
};
|
|
203
203
|
return /* @__PURE__ */ u(
|
|
204
204
|
CoreContext.Provider,
|
|
@@ -210,7 +210,7 @@ const PicPay = w((props, ref) => {
|
|
|
210
210
|
},
|
|
211
211
|
children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
212
212
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.PIC_PAY }),
|
|
213
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
213
|
+
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, bem()), children: [
|
|
214
214
|
Email(),
|
|
215
215
|
/* @__PURE__ */ u(
|
|
216
216
|
SecuredFieldsProvider,
|
|
@@ -231,7 +231,7 @@ const PicPay = w((props, ref) => {
|
|
|
231
231
|
var _a2, _b;
|
|
232
232
|
return (_b = (_a2 = core.config).onEvent) == null ? void 0 : _b.call(_a2, type, data);
|
|
233
233
|
},
|
|
234
|
-
children: /* @__PURE__ */ u("div", {
|
|
234
|
+
children: /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(
|
|
235
235
|
CPFField,
|
|
236
236
|
{
|
|
237
237
|
ref: cpfFieldRef,
|
|
@@ -243,7 +243,7 @@ const PicPay = w((props, ref) => {
|
|
|
243
243
|
),
|
|
244
244
|
Address(),
|
|
245
245
|
/* @__PURE__ */ u(Tip, { text: i18n.get("iofTip") }),
|
|
246
|
-
/* @__PURE__ */ u("div", { className:
|
|
246
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
247
247
|
ErrorMessage(),
|
|
248
248
|
!hidePaymentButton && Button()
|
|
249
249
|
] })
|
|
@@ -5,11 +5,11 @@ import "../../../utils/card-brand/brands.js";
|
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass, limitedToNumber } from "../../../utils/format.js";
|
|
7
7
|
import { defaultInputStyleConfig } from "../../../types/index.js";
|
|
8
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, SessionMode } from "../../../constant.js";
|
|
8
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME, SessionMode } from "../../../constant.js";
|
|
9
9
|
import "../../../out/fraud-detection.js";
|
|
10
|
+
import "../../../core/logger.js";
|
|
10
11
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
11
12
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
12
|
-
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
13
13
|
import { GuideCard } from "../../GuideCard/index.js";
|
|
14
14
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
15
15
|
import { Info } from "../../internal/Info/Info.js";
|
|
@@ -22,8 +22,8 @@ import { SecuredFieldsProvider } from "../../SecuredFieldsProvider/index.js";
|
|
|
22
22
|
import { PaymentButton } from "../../PaymentButton/index.js";
|
|
23
23
|
import { CPFField } from "../../CPFField/index.js";
|
|
24
24
|
import { Tip } from "../../Tip/index.js";
|
|
25
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
25
26
|
const { bem } = useBEM("pix");
|
|
26
|
-
const fieldClassNames = bem("field");
|
|
27
27
|
const CURR_PAYMENT_METHOD = PaymentMethod.PIX;
|
|
28
28
|
const Pix = w((props, ref) => {
|
|
29
29
|
var _a;
|
|
@@ -106,7 +106,7 @@ const Pix = w((props, ref) => {
|
|
|
106
106
|
var _a2;
|
|
107
107
|
if (!sessionReady)
|
|
108
108
|
return;
|
|
109
|
-
const { bill = {}
|
|
109
|
+
const { country, sessionMode, bill = {} } = (session == null ? void 0 : session.checkout) || {};
|
|
110
110
|
setSecurity(sessionMode !== SessionMode.HOSTED);
|
|
111
111
|
(_a2 = SFPRef.current) == null ? void 0 : _a2.reload();
|
|
112
112
|
country && addressCore.setCountry(country);
|
|
@@ -177,20 +177,20 @@ const Pix = w((props, ref) => {
|
|
|
177
177
|
);
|
|
178
178
|
};
|
|
179
179
|
const Email = () => {
|
|
180
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
180
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
181
181
|
EmailField,
|
|
182
182
|
{
|
|
183
183
|
ref: emailFieldRef,
|
|
184
184
|
value: form.email,
|
|
185
185
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
186
186
|
}
|
|
187
|
-
) })
|
|
187
|
+
) });
|
|
188
188
|
};
|
|
189
189
|
const ErrorMessage = () => {
|
|
190
190
|
return /* @__PURE__ */ u(b, { children: !!errorMessage && /* @__PURE__ */ u(Info, { content: errorMessage }) });
|
|
191
191
|
};
|
|
192
192
|
const Address = () => {
|
|
193
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
193
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
194
194
|
AddressField,
|
|
195
195
|
{
|
|
196
196
|
ref: addressFieldRef,
|
|
@@ -198,7 +198,7 @@ const Pix = w((props, ref) => {
|
|
|
198
198
|
onChange: (value) => setForm(Object.assign(form, { address: value })),
|
|
199
199
|
disabled
|
|
200
200
|
}
|
|
201
|
-
) })
|
|
201
|
+
) });
|
|
202
202
|
};
|
|
203
203
|
return /* @__PURE__ */ u(
|
|
204
204
|
CoreContext.Provider,
|
|
@@ -210,7 +210,7 @@ const Pix = w((props, ref) => {
|
|
|
210
210
|
},
|
|
211
211
|
children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
212
212
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.PIX }),
|
|
213
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
213
|
+
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, bem()), children: [
|
|
214
214
|
Email(),
|
|
215
215
|
/* @__PURE__ */ u(
|
|
216
216
|
SecuredFieldsProvider,
|
|
@@ -231,12 +231,12 @@ const Pix = w((props, ref) => {
|
|
|
231
231
|
var _a2, _b;
|
|
232
232
|
return (_b = (_a2 = core.config).onEvent) == null ? void 0 : _b.call(_a2, type, data);
|
|
233
233
|
},
|
|
234
|
-
children: /* @__PURE__ */ u("div", {
|
|
234
|
+
children: /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(CPFField, { disabled, ref: cpfFieldRef, security }) })
|
|
235
235
|
}
|
|
236
236
|
),
|
|
237
237
|
Address(),
|
|
238
238
|
/* @__PURE__ */ u(Tip, { text: i18n.get("iofTip") }),
|
|
239
|
-
/* @__PURE__ */ u("div", { className:
|
|
239
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
240
240
|
ErrorMessage(),
|
|
241
241
|
!hidePaymentButton && Button()
|
|
242
242
|
] })
|
|
@@ -4,8 +4,9 @@ import { CoreContext } from "../../../core/context.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME } from "../../../constant.js";
|
|
7
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
12
|
import "./satispay2.js";
|
|
@@ -14,12 +15,11 @@ import "../../internal/Form/type.js";
|
|
|
14
15
|
import "../../internal/Form/context.js";
|
|
15
16
|
import "../../internal/Form/FormItem.js";
|
|
16
17
|
import { Form } from "../../internal/Form/Form.js";
|
|
17
|
-
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
18
18
|
import { PaymentButton } from "../../PaymentButton/index.js";
|
|
19
19
|
import { Info } from "../../internal/Info/Info.js";
|
|
20
20
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
21
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
21
22
|
const { bem } = useBEM("satispay");
|
|
22
|
-
const fieldClassNames = bem("field");
|
|
23
23
|
const CURR_PAYMENT_METHOD = PaymentMethod.SATISPAY;
|
|
24
24
|
const ALLOWED_COUNTRIES = [
|
|
25
25
|
"AT",
|
|
@@ -109,9 +109,9 @@ const Satispay = w((props, ref) => {
|
|
|
109
109
|
} = useBaseWallet(CURR_PAYMENT_METHOD, props, {
|
|
110
110
|
getFormData: () => ({ ...form })
|
|
111
111
|
});
|
|
112
|
-
const emailState = createEmailCore();
|
|
113
112
|
const emailFieldRef = A(null);
|
|
114
113
|
const addressCore = core.getAddressCore();
|
|
114
|
+
const emailState = createEmailCore();
|
|
115
115
|
const addressFieldRef = A(null);
|
|
116
116
|
const formRef = A(null);
|
|
117
117
|
const [form, setForm] = h({
|
|
@@ -144,20 +144,20 @@ const Satispay = w((props, ref) => {
|
|
|
144
144
|
await payment();
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
|
-
const Email = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
147
|
+
const Email = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
148
148
|
EmailField,
|
|
149
149
|
{
|
|
150
150
|
ref: emailFieldRef,
|
|
151
151
|
value: form.email,
|
|
152
152
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
153
153
|
}
|
|
154
|
-
) })
|
|
154
|
+
) });
|
|
155
155
|
const Address = () => {
|
|
156
156
|
var _a;
|
|
157
157
|
const mode = (fieldStatus == null ? void 0 : fieldStatus.address.show) ? (_a = core.config._checkoutConfig) == null ? void 0 : _a.addressMode : "country";
|
|
158
158
|
return (
|
|
159
159
|
// 这里没有判断 fieldStatus?.address.show,因为 Satispay 对国家有要求,直接用账单地址可能会失败
|
|
160
|
-
/* @__PURE__ */ u(
|
|
160
|
+
/* @__PURE__ */ u(
|
|
161
161
|
AddressField,
|
|
162
162
|
{
|
|
163
163
|
ref: addressFieldRef,
|
|
@@ -167,7 +167,7 @@ const Satispay = w((props, ref) => {
|
|
|
167
167
|
disabled,
|
|
168
168
|
onChange: (value) => setForm(Object.assign(form, { address: value }))
|
|
169
169
|
}
|
|
170
|
-
)
|
|
170
|
+
)
|
|
171
171
|
);
|
|
172
172
|
};
|
|
173
173
|
const Button = () => /* @__PURE__ */ u(
|
|
@@ -183,10 +183,10 @@ const Satispay = w((props, ref) => {
|
|
|
183
183
|
const ErrorMessage = () => /* @__PURE__ */ u(b, { children: !!errorMessage && /* @__PURE__ */ u(Info, { content: errorMessage }) });
|
|
184
184
|
return /* @__PURE__ */ u(CoreContext.Provider, { value: { i18n, session, core }, children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
185
185
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.SATISPAY }),
|
|
186
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
186
|
+
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, bem()), children: [
|
|
187
187
|
Email(),
|
|
188
188
|
Address(),
|
|
189
|
-
/* @__PURE__ */ u("div", { className:
|
|
189
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
190
190
|
ErrorMessage(),
|
|
191
191
|
!hidePaymentButton && Button()
|
|
192
192
|
] })
|
|
@@ -4,11 +4,11 @@ import { CoreContext } from "../../../core/context.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME } from "../../../constant.js";
|
|
7
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
|
-
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
12
12
|
import "../../internal/Form/type.js";
|
|
13
13
|
import "../../internal/Form/context.js";
|
|
14
14
|
import "../../internal/Form/FormItem.js";
|
|
@@ -18,8 +18,8 @@ import { Info } from "../../internal/Info/Info.js";
|
|
|
18
18
|
import "./shopee-pay.js";
|
|
19
19
|
import { GuideCard } from "../../GuideCard/index.js";
|
|
20
20
|
import { PaymentButton } from "../../PaymentButton/index.js";
|
|
21
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
21
22
|
const { bem } = useBEM("shopee-pay");
|
|
22
|
-
const fieldClassNames = bem("field");
|
|
23
23
|
const CURR_PAYMENT_METHOD = PaymentMethod.SHOPEE_PAY;
|
|
24
24
|
const ShopeePay = w((props, ref) => {
|
|
25
25
|
const {
|
|
@@ -132,20 +132,20 @@ const ShopeePay = w((props, ref) => {
|
|
|
132
132
|
);
|
|
133
133
|
};
|
|
134
134
|
const Email = () => {
|
|
135
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
135
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
136
136
|
EmailField,
|
|
137
137
|
{
|
|
138
138
|
ref: emailFieldRef,
|
|
139
139
|
value: form.email,
|
|
140
140
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
141
141
|
}
|
|
142
|
-
) })
|
|
142
|
+
) });
|
|
143
143
|
};
|
|
144
144
|
const ErrorMessage = () => {
|
|
145
145
|
return /* @__PURE__ */ u(b, { children: !!errorMessage && /* @__PURE__ */ u(Info, { content: errorMessage }) });
|
|
146
146
|
};
|
|
147
147
|
const Address = () => {
|
|
148
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
148
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
149
149
|
AddressField,
|
|
150
150
|
{
|
|
151
151
|
ref: addressFieldRef,
|
|
@@ -153,7 +153,7 @@ const ShopeePay = w((props, ref) => {
|
|
|
153
153
|
onChange: (value) => setForm(Object.assign(form, { address: value })),
|
|
154
154
|
disabled
|
|
155
155
|
}
|
|
156
|
-
) })
|
|
156
|
+
) });
|
|
157
157
|
};
|
|
158
158
|
return /* @__PURE__ */ u(
|
|
159
159
|
CoreContext.Provider,
|
|
@@ -165,10 +165,10 @@ const ShopeePay = w((props, ref) => {
|
|
|
165
165
|
},
|
|
166
166
|
children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
167
167
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.SHOPEE_PAY }),
|
|
168
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
168
|
+
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, bem()), children: [
|
|
169
169
|
Email(),
|
|
170
170
|
Address(),
|
|
171
|
-
/* @__PURE__ */ u("div", { className:
|
|
171
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
172
172
|
ErrorMessage(),
|
|
173
173
|
!hidePaymentButton && Button()
|
|
174
174
|
] })
|