@adyen/adyen-web 6.30.0 → 6.31.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/cjs/adyen.css +2 -2
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +557 -484
- package/dist/es/adyen.css +2 -2
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/components/ANCV/ANCV.js.map +1 -1
- package/dist/es/components/Ach/Ach.js +1 -1
- package/dist/es/components/Ach/Ach.js.map +1 -1
- package/dist/es/components/Ach/components/AccountTypeSelector.js.map +1 -1
- package/dist/es/components/Ach/components/AchComponent.js.map +1 -1
- package/dist/es/components/Affirm/Affirm.js.map +1 -1
- package/dist/es/components/AfterPay/AfterPay.js.map +1 -1
- package/dist/es/components/AfterPay/AfterPayB2B.js.map +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayButton.js +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayButton.js.map +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayComponent.js +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayComponent.js.map +1 -1
- package/dist/es/components/AmazonPay/components/OrderButton.js +1 -1
- package/dist/es/components/AmazonPay/components/OrderButton.js.map +1 -1
- package/dist/es/components/AmazonPay/utils.js +1 -1
- package/dist/es/components/AmazonPay/utils.js.map +1 -1
- package/dist/es/components/ApplePay/ApplePay.js.map +1 -1
- package/dist/es/components/ApplePay/services/ApplePaySdkLoader.js.map +1 -1
- package/dist/es/components/ApplePay/services/ApplePayService.js +1 -1
- package/dist/es/components/ApplePay/services/ApplePayService.js.map +1 -1
- package/dist/es/components/ApplePay/utils/map-adyen-brands-to-applepay-brands.js.map +1 -1
- package/dist/es/components/ApplePay/utils/payment-request.js.map +1 -1
- package/dist/es/components/Atome/Atome.js.map +1 -1
- package/dist/es/components/BacsDD/BacsDD.js +1 -1
- package/dist/es/components/BacsDD/BacsDD.js.map +1 -1
- package/dist/es/components/BacsDD/components/BacsInput.js +1 -1
- package/dist/es/components/BacsDD/components/BacsInput.js.map +1 -1
- package/dist/es/components/BankTransfer/components/BankTransferInput/BankTransferInput.js +1 -1
- package/dist/es/components/BankTransfer/components/BankTransferInput/BankTransferInput.js.map +1 -1
- package/dist/es/components/Blik/Blik.js +1 -1
- package/dist/es/components/Blik/Blik.js.map +1 -1
- package/dist/es/components/Boleto/components/BoletoInput/BoletoInput.js.map +1 -1
- package/dist/es/components/Card/Card.js +1 -1
- package/dist/es/components/Card/Card.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/CardInput.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardFieldsWrapper.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardFieldsWrapper.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/Installments/Installments.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/Installments/Installments.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/StoredCardFieldsWrapper.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/StoredCardFieldsWrapper.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/types.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/utils.js +1 -1
- package/dist/es/components/Card/components/CardInput/utils.js.map +1 -1
- package/dist/es/components/Card/components/ClickToPayWrapper.js +1 -1
- package/dist/es/components/Card/components/ClickToPayWrapper.js.map +1 -1
- package/dist/es/components/CashAppPay/CashAppPay.js +1 -1
- package/dist/es/components/CashAppPay/CashAppPay.js.map +1 -1
- package/dist/es/components/CashAppPay/services/CashAppSdkLoader.js.map +1 -1
- package/dist/es/components/CashAppPay/services/CashAppService.js +1 -1
- package/dist/es/components/CashAppPay/services/CashAppService.js.map +1 -1
- package/dist/es/components/CashAppPay/services/types.js.map +1 -1
- package/dist/es/components/ClickToPay/ClickToPay.js +1 -1
- package/dist/es/components/ClickToPay/ClickToPay.js.map +1 -1
- package/dist/es/components/CustomCard/CustomCard.js.map +1 -1
- package/dist/es/components/Dragonpay/components/DragonpayInput/DragonpayInput.js +1 -1
- package/dist/es/components/Dragonpay/components/DragonpayInput/DragonpayInput.js.map +1 -1
- package/dist/es/components/Dropin/Dropin.js +1 -1
- package/dist/es/components/Dropin/Dropin.js.map +1 -1
- package/dist/es/components/Dropin/components/DropinComponent.js +1 -1
- package/dist/es/components/Dropin/components/DropinComponent.js.map +1 -1
- package/dist/es/components/Dropin/components/DropinSuccessState.js +2 -0
- package/dist/es/components/Dropin/components/DropinSuccessState.js.map +1 -0
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js.map +1 -1
- package/dist/es/components/Econtext/components/EcontextInput/EcontextInput.js.map +1 -1
- package/dist/es/components/Giftcard/Giftcard.js.map +1 -1
- package/dist/es/components/Giftcard/components/GiftcardComponent.js +1 -1
- package/dist/es/components/Giftcard/components/GiftcardComponent.js.map +1 -1
- package/dist/es/components/Giftcard/components/GiftcardResult.js +1 -1
- package/dist/es/components/Giftcard/components/GiftcardResult.js.map +1 -1
- package/dist/es/components/GooglePay/GooglePayService.js.map +1 -1
- package/dist/es/components/Iris/Iris.js +1 -1
- package/dist/es/components/Iris/Iris.js.map +1 -1
- package/dist/es/components/Klarna/KlarnaPayments.js +1 -1
- package/dist/es/components/Klarna/KlarnaPayments.js.map +1 -1
- package/dist/es/components/Klarna/components/KlarnaContainer/KlarnaContainer.js.map +1 -1
- package/dist/es/components/Multibanco/Multibanco.js +1 -1
- package/dist/es/components/Multibanco/Multibanco.js.map +1 -1
- package/dist/es/components/PayByBankPix/PayByBankPix.js +1 -1
- package/dist/es/components/PayByBankPix/PayByBankPix.js.map +1 -1
- package/dist/es/components/PayByBankPix/components/StoredPayment/StoredPayment.js +1 -1
- package/dist/es/components/PayByBankPix/components/StoredPayment/StoredPayment.js.map +1 -1
- package/dist/es/components/PayByBankPix/services/PasskeySdkLoader.js.map +1 -1
- package/dist/es/components/PayByBankPix/services/PasskeyService.js.map +1 -1
- package/dist/es/components/PayByBankUS/PayByBankUS.js +1 -1
- package/dist/es/components/PayByBankUS/PayByBankUS.js.map +1 -1
- package/dist/es/components/PayPalFastlane/FastlaneSDK.js.map +1 -1
- package/dist/es/components/PayPalFastlane/components/FastlaneComponent.js.map +1 -1
- package/dist/es/components/PayTo/PayTo.js +1 -1
- package/dist/es/components/PayTo/PayTo.js.map +1 -1
- package/dist/es/components/PayTo/components/PayToComponent.js.map +1 -1
- package/dist/es/components/PayTo/components/PayToNameFields.js +1 -1
- package/dist/es/components/PayTo/components/PayToNameFields.js.map +1 -1
- package/dist/es/components/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es/components/PreAuthorizedDebitCanada/PreAuthorizedDebitCanada.js +1 -1
- package/dist/es/components/PreAuthorizedDebitCanada/PreAuthorizedDebitCanada.js.map +1 -1
- package/dist/es/components/PreAuthorizedDebitCanada/components/PreAuthorizedDebitCanadaComponent.js.map +1 -1
- package/dist/es/components/Redirect/components/RedirectShopper/RedirectShopper.js.map +1 -1
- package/dist/es/components/ThreeDS2/components/Form/ThreeDS2Form.js.map +1 -1
- package/dist/es/components/Twint/Twint.js +1 -1
- package/dist/es/components/Twint/Twint.js.map +1 -1
- package/dist/es/components/UPI/UPI.js +1 -1
- package/dist/es/components/UPI/UPI.js.map +1 -1
- package/dist/es/components/UPI/components/UPIComponent/UPIComponent.js +1 -1
- package/dist/es/components/UPI/components/UPIComponent/UPIComponent.js.map +1 -1
- package/dist/es/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js +1 -1
- package/dist/es/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js.map +1 -1
- package/dist/es/components/internal/Address/Specifications.js.map +1 -1
- package/dist/es/components/internal/Await/Await.js +1 -1
- package/dist/es/components/internal/Await/Await.js.map +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es/components/internal/Button/Button.js +1 -1
- package/dist/es/components/internal/Button/Button.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPCards/CtPCards.js +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPCards/CtPCards.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.js +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/context/ClickToPayContext.js +1 -1
- package/dist/es/components/internal/ClickToPay/context/ClickToPayContext.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/context/ClickToPayProvider.js +1 -1
- package/dist/es/components/internal/ClickToPay/context/ClickToPayProvider.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/models/ShopperCard.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/services/ClickToPayService.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/services/sdks/AbstractSrcInitiator.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/services/sdks/SrcSdkLoader.js.map +1 -1
- package/dist/es/components/internal/CompanyDetails/CompanyDetails.js +1 -1
- package/dist/es/components/internal/CompanyDetails/CompanyDetails.js.map +1 -1
- package/dist/es/components/internal/Countdown/CountdownA11yReporter.js.map +1 -1
- package/dist/es/components/internal/FormFields/InputBase.js +1 -1
- package/dist/es/components/internal/FormFields/InputBase.js.map +1 -1
- package/dist/es/components/internal/IFrame/Iframe.js.map +1 -1
- package/dist/es/components/internal/PayButton/PayButton.js +1 -1
- package/dist/es/components/internal/PayButton/PayButton.js.map +1 -1
- package/dist/es/components/internal/PayButton/utils.js +1 -1
- package/dist/es/components/internal/PayButton/utils.js.map +1 -1
- package/dist/es/components/internal/PersonalDetails/PersonalDetails.js +1 -1
- package/dist/es/components/internal/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es/components/internal/QRLoader/QRLoader.js +1 -1
- package/dist/es/components/internal/QRLoader/QRLoader.js.map +1 -1
- package/dist/es/components/internal/RedirectButton/RedirectButton.js +1 -1
- package/dist/es/components/internal/RedirectButton/RedirectButton.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/AbstractCSF.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/utils.js.map +1 -1
- package/dist/es/components/internal/SendCopyToEmail/SendCopyToEmail.js +1 -1
- package/dist/es/components/internal/SendCopyToEmail/SendCopyToEmail.js.map +1 -1
- package/dist/es/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.js +1 -1
- package/dist/es/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.js.map +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es/core/Analytics/Analytics.js.map +1 -1
- package/dist/es/core/Analytics/AnalyticsService.js.map +1 -1
- package/dist/es/core/Analytics/events/AbstractAnalyticsEvent.js.map +1 -1
- package/dist/es/core/Analytics/events/AnalyticsErrorEvent.js.map +1 -1
- package/dist/es/core/Analytics/events/AnalyticsInfoEvent.js +1 -1
- package/dist/es/core/Analytics/events/AnalyticsInfoEvent.js.map +1 -1
- package/dist/es/core/Analytics/events/AnalyticsLogEvent.js.map +1 -1
- package/dist/es/core/Analytics/utils.js +1 -1
- package/dist/es/core/Analytics/utils.js.map +1 -1
- package/dist/es/core/CheckoutSession/CheckoutSession.js +1 -1
- package/dist/es/core/CheckoutSession/CheckoutSession.js.map +1 -1
- package/dist/es/core/Context/AmountProvider.js +2 -0
- package/dist/es/core/Context/AmountProvider.js.map +1 -0
- package/dist/es/core/Context/Resources.js.map +1 -1
- package/dist/es/core/Errors/SRPanel.js.map +1 -1
- package/dist/es/core/RiskModule/components/DeviceFingerprint/GetDeviceFingerprint.js.map +1 -1
- package/dist/es/core/config.js +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/core/core.js.map +1 -1
- package/dist/es/external/preact/compat/dist/compat.js +1 -1
- package/dist/es/external/preact/compat/dist/compat.js.map +1 -1
- package/dist/es/external/preact/dist/preact.js +1 -1
- package/dist/es/external/preact/dist/preact.js.map +1 -1
- package/dist/es/external/preact/hooks/dist/hooks.js +1 -1
- package/dist/es/external/preact/hooks/dist/hooks.js.map +1 -1
- package/dist/es/index.d.ts +557 -484
- package/dist/es/language/Language.js.map +1 -1
- package/dist/es/utils/Script.js.map +1 -1
- package/dist/es/utils/Storage.js +1 -1
- package/dist/es/utils/Storage.js.map +1 -1
- package/dist/es/utils/Validator/ValidationRuleResult.js.map +1 -1
- package/dist/es/utils/Validator/Validator.js.map +1 -1
- package/dist/es/utils/amount-util.js +1 -1
- package/dist/es/utils/amount-util.js.map +1 -1
- package/dist/es/utils/browserInfo.js +1 -1
- package/dist/es/utils/browserInfo.js.map +1 -1
- package/dist/es/utils/constants/currency-minor-units.js.map +1 -1
- package/dist/es/utils/createSdkData.js.map +1 -1
- package/dist/es/utils/getErrorMessage.js.map +1 -1
- package/dist/es/utils/getProp.js +1 -1
- package/dist/es/utils/getProp.js.map +1 -1
- package/dist/es/utils/hasOwnProperty.js.map +1 -1
- package/dist/es/utils/isValidURL.js.map +1 -1
- package/dist/es/utils/listenerUtils.js.map +1 -1
- package/dist/es/utils/promiseTimeout.js.map +1 -1
- package/dist/es/utils/textUtils.js.map +1 -1
- package/dist/es/utils/validator-utils.js.map +1 -1
- package/dist/es-legacy/adyen.css +2 -2
- package/dist/es-legacy/adyen.css.map +1 -1
- package/dist/es-legacy/components/ANCV/ANCV.js.map +1 -1
- package/dist/es-legacy/components/Ach/Ach.js +1 -1
- package/dist/es-legacy/components/Ach/Ach.js.map +1 -1
- package/dist/es-legacy/components/Ach/components/AccountTypeSelector.js.map +1 -1
- package/dist/es-legacy/components/Ach/components/AchComponent.js.map +1 -1
- package/dist/es-legacy/components/Affirm/Affirm.js.map +1 -1
- package/dist/es-legacy/components/AfterPay/AfterPay.js.map +1 -1
- package/dist/es-legacy/components/AfterPay/AfterPayB2B.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayButton.js +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayButton.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayComponent.js +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayComponent.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/components/OrderButton.js +1 -1
- package/dist/es-legacy/components/AmazonPay/components/OrderButton.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/utils.js +1 -1
- package/dist/es-legacy/components/AmazonPay/utils.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/ApplePay.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/services/ApplePaySdkLoader.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/services/ApplePayService.js +1 -1
- package/dist/es-legacy/components/ApplePay/services/ApplePayService.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/utils/map-adyen-brands-to-applepay-brands.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/utils/payment-request.js.map +1 -1
- package/dist/es-legacy/components/Atome/Atome.js.map +1 -1
- package/dist/es-legacy/components/BacsDD/BacsDD.js +1 -1
- package/dist/es-legacy/components/BacsDD/BacsDD.js.map +1 -1
- package/dist/es-legacy/components/BacsDD/components/BacsInput.js +1 -1
- package/dist/es-legacy/components/BacsDD/components/BacsInput.js.map +1 -1
- package/dist/es-legacy/components/BankTransfer/components/BankTransferInput/BankTransferInput.js +1 -1
- package/dist/es-legacy/components/BankTransfer/components/BankTransferInput/BankTransferInput.js.map +1 -1
- package/dist/es-legacy/components/Blik/Blik.js +1 -1
- package/dist/es-legacy/components/Blik/Blik.js.map +1 -1
- package/dist/es-legacy/components/Boleto/components/BoletoInput/BoletoInput.js.map +1 -1
- package/dist/es-legacy/components/Card/Card.js +1 -1
- package/dist/es-legacy/components/Card/Card.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/CardInput.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/AvailableBrands/AvailableBrands.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardFields.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardFieldsWrapper.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardFieldsWrapper.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/Installments/Installments.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/Installments/Installments.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/StoredCardFieldsWrapper.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/StoredCardFieldsWrapper.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/types.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/utils.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/utils.js.map +1 -1
- package/dist/es-legacy/components/Card/components/ClickToPayWrapper.js +1 -1
- package/dist/es-legacy/components/Card/components/ClickToPayWrapper.js.map +1 -1
- package/dist/es-legacy/components/Card/components/Fastlane/USOnlyPhoneInput.js.map +1 -1
- package/dist/es-legacy/components/CashAppPay/CashAppPay.js +1 -1
- package/dist/es-legacy/components/CashAppPay/CashAppPay.js.map +1 -1
- package/dist/es-legacy/components/CashAppPay/services/CashAppSdkLoader.js.map +1 -1
- package/dist/es-legacy/components/CashAppPay/services/CashAppService.js +1 -1
- package/dist/es-legacy/components/CashAppPay/services/CashAppService.js.map +1 -1
- package/dist/es-legacy/components/CashAppPay/services/types.js.map +1 -1
- package/dist/es-legacy/components/ClickToPay/ClickToPay.js +1 -1
- package/dist/es-legacy/components/ClickToPay/ClickToPay.js.map +1 -1
- package/dist/es-legacy/components/CustomCard/CustomCard.js.map +1 -1
- package/dist/es-legacy/components/Doku/components/DokuInput/DokuInput.js.map +1 -1
- package/dist/es-legacy/components/Dragonpay/components/DragonpayInput/DragonpayInput.js +1 -1
- package/dist/es-legacy/components/Dragonpay/components/DragonpayInput/DragonpayInput.js.map +1 -1
- package/dist/es-legacy/components/Dropin/Dropin.js +1 -1
- package/dist/es-legacy/components/Dropin/Dropin.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/DropinComponent.js +1 -1
- package/dist/es-legacy/components/Dropin/components/DropinComponent.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/DropinSuccessState.js +2 -0
- package/dist/es-legacy/components/Dropin/components/DropinSuccessState.js.map +1 -0
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js.map +1 -1
- package/dist/es-legacy/components/Econtext/components/EcontextInput/EcontextInput.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/Giftcard.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardComponent.js +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardComponent.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardResult.js +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardResult.js.map +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePay.js.map +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePayService.js.map +1 -1
- package/dist/es-legacy/components/Iris/Iris.js +1 -1
- package/dist/es-legacy/components/Iris/Iris.js.map +1 -1
- package/dist/es-legacy/components/Klarna/KlarnaPayments.js +1 -1
- package/dist/es-legacy/components/Klarna/KlarnaPayments.js.map +1 -1
- package/dist/es-legacy/components/Klarna/components/KlarnaContainer/KlarnaContainer.js.map +1 -1
- package/dist/es-legacy/components/Klarna/components/KlarnaWidget/KlarnaWidget.js.map +1 -1
- package/dist/es-legacy/components/MBWay/MBWay.js.map +1 -1
- package/dist/es-legacy/components/Multibanco/Multibanco.js +1 -1
- package/dist/es-legacy/components/Multibanco/Multibanco.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/PayByBankPix.js +1 -1
- package/dist/es-legacy/components/PayByBankPix/PayByBankPix.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/components/Enrollment/useIssuerWithLogo.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/components/StoredPayment/StoredPayment.js +1 -1
- package/dist/es-legacy/components/PayByBankPix/components/StoredPayment/StoredPayment.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/services/PasskeySdkLoader.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/services/PasskeyService.js.map +1 -1
- package/dist/es-legacy/components/PayByBankUS/PayByBankUS.js +1 -1
- package/dist/es-legacy/components/PayByBankUS/PayByBankUS.js.map +1 -1
- package/dist/es-legacy/components/PayPal/Paypal.js.map +1 -1
- package/dist/es-legacy/components/PayPalFastlane/FastlaneSDK.js.map +1 -1
- package/dist/es-legacy/components/PayPalFastlane/components/FastlaneComponent.js.map +1 -1
- package/dist/es-legacy/components/PayTo/PayTo.js +1 -1
- package/dist/es-legacy/components/PayTo/PayTo.js.map +1 -1
- package/dist/es-legacy/components/PayTo/components/PayToComponent.js.map +1 -1
- package/dist/es-legacy/components/PayTo/components/PayToNameFields.js +1 -1
- package/dist/es-legacy/components/PayTo/components/PayToNameFields.js.map +1 -1
- package/dist/es-legacy/components/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es-legacy/components/PreAuthorizedDebitCanada/PreAuthorizedDebitCanada.js +1 -1
- package/dist/es-legacy/components/PreAuthorizedDebitCanada/PreAuthorizedDebitCanada.js.map +1 -1
- package/dist/es-legacy/components/PreAuthorizedDebitCanada/components/PreAuthorizedDebitCanadaComponent.js.map +1 -1
- package/dist/es-legacy/components/Redirect/components/RedirectShopper/RedirectShopper.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/callSubmit3DS2Fingerprint.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/Form/ThreeDS2Form.js.map +1 -1
- package/dist/es-legacy/components/Twint/Twint.js +1 -1
- package/dist/es-legacy/components/Twint/Twint.js.map +1 -1
- package/dist/es-legacy/components/UPI/UPI.js +1 -1
- package/dist/es-legacy/components/UPI/UPI.js.map +1 -1
- package/dist/es-legacy/components/UPI/components/UPIComponent/UPIComponent.js +1 -1
- package/dist/es-legacy/components/UPI/components/UPIComponent/UPIComponent.js.map +1 -1
- package/dist/es-legacy/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js +1 -1
- package/dist/es-legacy/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js.map +1 -1
- package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
- package/dist/es-legacy/components/helpers/OpenInvoiceContainer/OpenInvoiceContainer.js.map +1 -1
- package/dist/es-legacy/components/internal/Address/Address.js.map +1 -1
- package/dist/es-legacy/components/internal/Address/Specifications.js.map +1 -1
- package/dist/es-legacy/components/internal/Address/validate.js.map +1 -1
- package/dist/es-legacy/components/internal/Await/Await.js +1 -1
- package/dist/es-legacy/components/internal/Await/Await.js.map +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es-legacy/components/internal/Button/Button.js +1 -1
- package/dist/es-legacy/components/internal/Button/Button.js.map +1 -1
- package/dist/es-legacy/components/internal/Button/CopyButton.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPCards/CtPCards.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPCards/CtPCards.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPLogin/CtPLogin.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePassword.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/context/ClickToPayContext.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/context/ClickToPayContext.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/context/ClickToPayProvider.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/context/ClickToPayProvider.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/models/ShopperCard.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/ClickToPayService.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/create-clicktopay-service.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/AbstractSrcInitiator.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/SrcSdkLoader.js.map +1 -1
- package/dist/es-legacy/components/internal/CompanyDetails/CompanyDetails.js +1 -1
- package/dist/es-legacy/components/internal/CompanyDetails/CompanyDetails.js.map +1 -1
- package/dist/es-legacy/components/internal/Countdown/CountdownA11yReporter.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Field/Field.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputBase.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputBase.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/RadioGroupExtended/RadioGroupExtended.js.map +1 -1
- package/dist/es-legacy/components/internal/IFrame/Iframe.js.map +1 -1
- package/dist/es-legacy/components/internal/IssuerList/IssuerList.js.map +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js.map +1 -1
- package/dist/es-legacy/components/internal/PayButton/PayButton.js +1 -1
- package/dist/es-legacy/components/internal/PayButton/PayButton.js.map +1 -1
- package/dist/es-legacy/components/internal/PayButton/utils.js +1 -1
- package/dist/es-legacy/components/internal/PayButton/utils.js.map +1 -1
- package/dist/es-legacy/components/internal/PersonalDetails/PersonalDetails.js +1 -1
- package/dist/es-legacy/components/internal/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es-legacy/components/internal/PhoneInput/PhoneInputForm.js.map +1 -1
- package/dist/es-legacy/components/internal/QRLoader/QRLoader.js +1 -1
- package/dist/es-legacy/components/internal/QRLoader/QRLoader.js.map +1 -1
- package/dist/es-legacy/components/internal/RedirectButton/RedirectButton.js +1 -1
- package/dist/es-legacy/components/internal/RedirectButton/RedirectButton.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/binLookup/extensions.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/binLookup/triggerBinLookUp.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/AbstractCSF.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/partials/processAutoComplete.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/cardType.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/utils.js.map +1 -1
- package/dist/es-legacy/components/internal/SendCopyToEmail/SendCopyToEmail.js +1 -1
- package/dist/es-legacy/components/internal/SendCopyToEmail/SendCopyToEmail.js.map +1 -1
- package/dist/es-legacy/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.js +1 -1
- package/dist/es-legacy/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.js.map +1 -1
- package/dist/es-legacy/components/internal/Tooltip/Tooltip.js.map +1 -1
- package/dist/es-legacy/components/internal/UIElement/UIElement.js +1 -1
- package/dist/es-legacy/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es-legacy/core/Analytics/Analytics.js.map +1 -1
- package/dist/es-legacy/core/Analytics/AnalyticsService.js.map +1 -1
- package/dist/es-legacy/core/Analytics/events/AbstractAnalyticsEvent.js.map +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsErrorEvent.js.map +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsInfoEvent.js +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsInfoEvent.js.map +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsLogEvent.js.map +1 -1
- package/dist/es-legacy/core/Analytics/utils.js +1 -1
- package/dist/es-legacy/core/Analytics/utils.js.map +1 -1
- package/dist/es-legacy/core/CheckoutSession/CheckoutSession.js +1 -1
- package/dist/es-legacy/core/CheckoutSession/CheckoutSession.js.map +1 -1
- package/dist/es-legacy/core/Context/AmountProvider.js +2 -0
- package/dist/es-legacy/core/Context/AmountProvider.js.map +1 -0
- package/dist/es-legacy/core/Context/Resources.js.map +1 -1
- package/dist/es-legacy/core/Environment/Environment.js.map +1 -1
- package/dist/es-legacy/core/Errors/SRPanel.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentAction/actionTypes.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentMethods/utils.js.map +1 -1
- package/dist/es-legacy/core/RiskModule/components/DeviceFingerprint/GetDeviceFingerprint.js.map +1 -1
- package/dist/es-legacy/core/Services/http.js.map +1 -1
- package/dist/es-legacy/core/config.js +1 -1
- package/dist/es-legacy/core/core.js +1 -1
- package/dist/es-legacy/core/core.js.map +1 -1
- package/dist/es-legacy/external/preact/compat/dist/compat.js +1 -1
- package/dist/es-legacy/external/preact/compat/dist/compat.js.map +1 -1
- package/dist/es-legacy/external/preact/dist/preact.js +1 -1
- package/dist/es-legacy/external/preact/dist/preact.js.map +1 -1
- package/dist/es-legacy/external/preact/hooks/dist/hooks.js +1 -1
- package/dist/es-legacy/external/preact/hooks/dist/hooks.js.map +1 -1
- package/dist/es-legacy/hooks/usePaymentStatusTimer/usePaymentStatusTimer.js.map +1 -1
- package/dist/es-legacy/language/Language.js.map +1 -1
- package/dist/es-legacy/utils/Script.js.map +1 -1
- package/dist/es-legacy/utils/Storage.js +1 -1
- package/dist/es-legacy/utils/Storage.js.map +1 -1
- package/dist/es-legacy/utils/Validator/ValidationRuleResult.js.map +1 -1
- package/dist/es-legacy/utils/Validator/Validator.js.map +1 -1
- package/dist/es-legacy/utils/amount-util.js +1 -1
- package/dist/es-legacy/utils/amount-util.js.map +1 -1
- package/dist/es-legacy/utils/browserInfo.js +1 -1
- package/dist/es-legacy/utils/browserInfo.js.map +1 -1
- package/dist/es-legacy/utils/constants/currency-minor-units.js.map +1 -1
- package/dist/es-legacy/utils/createSdkData.js.map +1 -1
- package/dist/es-legacy/utils/getConsentUrl.js.map +1 -1
- package/dist/es-legacy/utils/getErrorMessage.js.map +1 -1
- package/dist/es-legacy/utils/getProp.js +1 -1
- package/dist/es-legacy/utils/getProp.js.map +1 -1
- package/dist/es-legacy/utils/hasOwnProperty.js.map +1 -1
- package/dist/es-legacy/utils/isValidURL.js.map +1 -1
- package/dist/es-legacy/utils/listenerUtils.js.map +1 -1
- package/dist/es-legacy/utils/promiseTimeout.js.map +1 -1
- package/dist/es-legacy/utils/textUtils.js.map +1 -1
- package/dist/es-legacy/utils/useAutoFocus.js.map +1 -1
- package/dist/es-legacy/utils/useForm/reducer.js.map +1 -1
- package/dist/es-legacy/utils/validator-utils.js.map +1 -1
- package/package.json +11 -11
- package/styles/adyen.css +2 -2
package/dist/es/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="applepayjs" />
|
|
2
2
|
/// <reference types="googlepay" />
|
|
3
3
|
import * as preact from 'preact';
|
|
4
|
-
import { h, Ref, FunctionComponent, ComponentChild, Component } from 'preact';
|
|
4
|
+
import { h, Ref, FunctionComponent, ComponentChild, Component, RefObject } from 'preact';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Holds the result of a validation
|
|
@@ -162,300 +162,14 @@ declare class AdyenCheckoutError extends Error {
|
|
|
162
162
|
constructor(type: keyof typeof AdyenCheckoutError.errorTypes, message?: string, options?: CheckoutErrorOptions);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
type
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
};
|
|
171
|
-
interface LanguageOptions {
|
|
172
|
-
locale: string;
|
|
173
|
-
translations: Translations;
|
|
174
|
-
customTranslations?: CustomTranslations;
|
|
165
|
+
type InstallmentPlan = 'revolving' | 'bonus' | 'regular';
|
|
166
|
+
interface InstallmentOption {
|
|
167
|
+
values: number[];
|
|
168
|
+
plans?: InstallmentPlan[];
|
|
169
|
+
preselectedValue?: number;
|
|
175
170
|
}
|
|
176
|
-
|
|
177
|
-
declare class Language {
|
|
178
|
-
readonly locale: string;
|
|
179
|
-
readonly languageCode: string;
|
|
180
|
-
private readonly translations;
|
|
181
|
-
private readonly customTranslations;
|
|
182
|
-
readonly timeFormatOptions: Intl.DateTimeFormatOptions;
|
|
183
|
-
readonly timeAndDateFormatOptions: Intl.DateTimeFormatOptions;
|
|
184
|
-
readonly timeAndDateFormatter: Intl.DateTimeFormat;
|
|
185
|
-
constructor(props: LanguageOptions);
|
|
186
|
-
/**
|
|
187
|
-
* Returns a translated string from a key in the current {@link Language.locale}
|
|
188
|
-
* @param key - Translation key
|
|
189
|
-
* @param options - Translation options
|
|
190
|
-
* @returns Translated string
|
|
191
|
-
*/
|
|
192
|
-
get(key: string, options?: any): string;
|
|
193
|
-
/**
|
|
194
|
-
* Returns a localized string for an amount
|
|
195
|
-
* @param amount - Amount to be converted
|
|
196
|
-
* @param currencyCode - Currency code of the amount
|
|
197
|
-
* @param options - Options for String.prototype.toLocaleString
|
|
198
|
-
*/
|
|
199
|
-
amount(amount: number, currencyCode: string, options?: object): string;
|
|
200
|
-
/**
|
|
201
|
-
* Returns a localized string for a date
|
|
202
|
-
* @param date - Date to be localized
|
|
203
|
-
* @param options - Options for {@link Intl.DateTimeFormatOptions}
|
|
204
|
-
*/
|
|
205
|
-
date(date: string, options?: Intl.DateTimeFormatOptions): string;
|
|
206
|
-
/**
|
|
207
|
-
* Returns a localized string for a date and time
|
|
208
|
-
* @param date - Date to be localized
|
|
209
|
-
*/
|
|
210
|
-
dateTime(date: string): string;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
type PlaceholderKeys$1 = 'cardNumber' | 'securityCode' | 'expiryDate';
|
|
214
|
-
type Placeholders$1 = Partial<Record<PlaceholderKeys$1, string>>;
|
|
215
|
-
type GiftcardFieldsProps = {
|
|
216
|
-
setRootNode: (input: HTMLElement) => void;
|
|
217
|
-
i18n: Language;
|
|
218
|
-
pinRequired: boolean;
|
|
219
|
-
sfpState: SFPState;
|
|
220
|
-
getCardErrorMessage: any;
|
|
221
|
-
focusedElement: any;
|
|
222
|
-
setFocusOn: any;
|
|
223
|
-
label?: string;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
declare enum AnalyticsEventCategory {
|
|
227
|
-
info = "info",
|
|
228
|
-
error = "error",
|
|
229
|
-
log = "log"
|
|
230
|
-
}
|
|
231
|
-
declare abstract class AbstractAnalyticsEvent {
|
|
232
|
-
private readonly timestamp;
|
|
233
|
-
private readonly id;
|
|
234
|
-
/**
|
|
235
|
-
* Component tx variant or identifier
|
|
236
|
-
* @private
|
|
237
|
-
*/
|
|
238
|
-
private readonly component;
|
|
239
|
-
abstract getEventCategory(): AnalyticsEventCategory;
|
|
240
|
-
protected constructor(component: string);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
type Placeholders = CardPlaceholders | Placeholders$1;
|
|
244
|
-
/**
|
|
245
|
-
* Should be the only props that can be sent to SFP (from CardInput, SecuredFieldsInput, GiftcardComponent)
|
|
246
|
-
*/
|
|
247
|
-
interface SFPProps {
|
|
248
|
-
autoFocus?: boolean;
|
|
249
|
-
brands?: string[];
|
|
250
|
-
brandsConfiguration?: CardBrandsConfiguration;
|
|
251
|
-
clientKey: string;
|
|
252
|
-
componentType: string;
|
|
253
|
-
countryCode?: string;
|
|
254
|
-
forceCompat?: boolean;
|
|
255
|
-
hasKoreanFields?: boolean;
|
|
256
|
-
i18n: Language;
|
|
257
|
-
implementationType?: string;
|
|
258
|
-
keypadFix?: boolean;
|
|
259
|
-
koreanAuthenticationRequired?: boolean;
|
|
260
|
-
legacyInputMode?: boolean;
|
|
261
|
-
loadingContext: string;
|
|
262
|
-
minimumExpiryDate?: string;
|
|
263
|
-
onAdditionalSFConfig?: () => {};
|
|
264
|
-
onAdditionalSFRemoved?: () => {};
|
|
265
|
-
onAllValid?: () => {};
|
|
266
|
-
onAutoComplete?: () => {};
|
|
267
|
-
onBinValue?: () => {};
|
|
268
|
-
onBrand?: () => {};
|
|
269
|
-
onChange: () => {};
|
|
270
|
-
onConfigSuccess?: () => {};
|
|
271
|
-
onError?: () => {};
|
|
272
|
-
onFieldValid?: () => {};
|
|
273
|
-
onFocus?: () => {};
|
|
274
|
-
onLoad?: () => {};
|
|
275
|
-
onStateUpdate: (obj: SFPState) => void;
|
|
276
|
-
onSubmitAnalytics: (event: AbstractAnalyticsEvent) => void;
|
|
277
|
-
handleKeyPress?: (obj: KeyboardEvent) => void;
|
|
278
|
-
rootNode: HTMLElement;
|
|
279
|
-
showWarnings?: boolean;
|
|
280
|
-
styles?: StylesObject;
|
|
281
|
-
trimTrailingSeparator?: boolean;
|
|
282
|
-
type: string;
|
|
283
|
-
render: () => {};
|
|
284
|
-
resources: Resources;
|
|
285
|
-
maskSecurityCode: boolean;
|
|
286
|
-
exposeExpiryDate: boolean;
|
|
287
|
-
disableIOSArrowKeys: (obj: TouchStartEventObj) => void | null;
|
|
288
|
-
placeholders?: Placeholders;
|
|
289
|
-
showContextualElement?: boolean;
|
|
290
|
-
}
|
|
291
|
-
interface SFPState {
|
|
292
|
-
status?: string;
|
|
293
|
-
brand?: string;
|
|
294
|
-
errors?: object;
|
|
295
|
-
valid: SFPValid;
|
|
296
|
-
data: object;
|
|
297
|
-
cvcPolicy?: CVCPolicyType;
|
|
298
|
-
isSfpValid?: boolean;
|
|
299
|
-
autoCompleteName?: string;
|
|
300
|
-
billingAddress?: AddressData;
|
|
301
|
-
detectedUnsupportedBrands?: string[];
|
|
302
|
-
hasKoreanFields?: boolean;
|
|
303
|
-
showSocialSecurityNumber?: boolean;
|
|
304
|
-
expiryDatePolicy?: DatePolicyType;
|
|
305
|
-
socialSecurityNumber?: string;
|
|
306
|
-
}
|
|
307
|
-
interface SingleBrandResetObject {
|
|
308
|
-
brand: string;
|
|
309
|
-
cvcPolicy: CVCPolicyType;
|
|
310
|
-
}
|
|
311
|
-
interface SFPValid {
|
|
312
|
-
encryptedCardNumber?: boolean;
|
|
313
|
-
encryptedExpiryMonth?: boolean;
|
|
314
|
-
encryptedExpiryYear?: boolean;
|
|
315
|
-
encryptedSecurityCode?: boolean;
|
|
316
|
-
encryptedPassword?: boolean;
|
|
317
|
-
encryptedPin?: boolean;
|
|
318
|
-
encryptedBankAccountNumber?: boolean;
|
|
319
|
-
encryptedBankLocationId?: boolean;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
declare const REQUIRED = "required";
|
|
323
|
-
declare const OPTIONAL = "optional";
|
|
324
|
-
declare const HIDDEN = "hidden";
|
|
325
|
-
|
|
326
|
-
declare global {
|
|
327
|
-
interface Window {
|
|
328
|
-
_b$dl: boolean;
|
|
329
|
-
mockBinCount: number;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
interface StylesObject {
|
|
333
|
-
base?: StyleDefinitions;
|
|
334
|
-
error?: StyleDefinitions;
|
|
335
|
-
validated?: StyleDefinitions;
|
|
336
|
-
placeholder?: StyleDefinitions;
|
|
337
|
-
}
|
|
338
|
-
interface StyleDefinitions {
|
|
339
|
-
background?: string;
|
|
340
|
-
caretColor?: string;
|
|
341
|
-
color?: string;
|
|
342
|
-
display?: string;
|
|
343
|
-
font?: string;
|
|
344
|
-
fontFamily?: string;
|
|
345
|
-
fontSize?: string;
|
|
346
|
-
fontSizeAdjust?: string;
|
|
347
|
-
fontSmoothing?: string;
|
|
348
|
-
fontStretch?: string;
|
|
349
|
-
fontStyle?: string;
|
|
350
|
-
fontVariant?: string;
|
|
351
|
-
fontVariantAlternates?: string;
|
|
352
|
-
fontVariantCaps?: string;
|
|
353
|
-
fontVariantEastAsian?: string;
|
|
354
|
-
fontVariantLigatures?: string;
|
|
355
|
-
fontVariantNumeric?: string;
|
|
356
|
-
fontWeight?: string;
|
|
357
|
-
letterSpacing?: string;
|
|
358
|
-
lineHeight?: string;
|
|
359
|
-
mozOsxFontSmoothing?: string;
|
|
360
|
-
mozTransition?: string;
|
|
361
|
-
outline?: string;
|
|
362
|
-
opacity?: string;
|
|
363
|
-
padding?: string;
|
|
364
|
-
textAlign?: string;
|
|
365
|
-
textShadow?: string;
|
|
366
|
-
transition?: string;
|
|
367
|
-
webkitFontSmoothing?: string;
|
|
368
|
-
webkitTransition?: string;
|
|
369
|
-
wordSpacing?: string;
|
|
370
|
-
}
|
|
371
|
-
interface CardAllValidData {
|
|
372
|
-
type: string;
|
|
373
|
-
allValid: boolean;
|
|
374
|
-
rootNode: HTMLElement;
|
|
375
|
-
}
|
|
376
|
-
interface CardAutoCompleteData {
|
|
377
|
-
fieldType: string;
|
|
378
|
-
name: string;
|
|
379
|
-
value: string;
|
|
380
|
-
action: string;
|
|
381
|
-
}
|
|
382
|
-
interface CardBinLookupData {
|
|
383
|
-
type?: string;
|
|
384
|
-
detectedBrands?: string[];
|
|
385
|
-
supportedBrands?: string[];
|
|
386
|
-
brands?: string[];
|
|
387
|
-
issuingCountryCode?: string;
|
|
388
|
-
supportedBrandsRaw?: BrandObject[];
|
|
389
|
-
rootNode?: HTMLElement;
|
|
390
|
-
isReset?: boolean;
|
|
391
|
-
}
|
|
392
|
-
interface CardBinValueData {
|
|
393
|
-
type: string;
|
|
394
|
-
binValue: string;
|
|
395
|
-
uuid?: string;
|
|
396
|
-
encryptedBin?: string;
|
|
397
|
-
}
|
|
398
|
-
interface CardBrandData {
|
|
399
|
-
type: string;
|
|
400
|
-
rootNode: HTMLElement;
|
|
401
|
-
brand: string;
|
|
402
|
-
cvcPolicy: CVCPolicyType;
|
|
403
|
-
expiryDatePolicy?: DatePolicyType;
|
|
404
|
-
cvcText: string;
|
|
405
|
-
showSocialSecurityNumber?: boolean;
|
|
406
|
-
brandImageUrl?: string;
|
|
407
|
-
}
|
|
408
|
-
interface CardConfigSuccessData {
|
|
409
|
-
iframesConfigured: boolean;
|
|
410
|
-
type: string;
|
|
411
|
-
rootNode: HTMLElement;
|
|
412
|
-
}
|
|
413
|
-
interface CardErrorData {
|
|
414
|
-
fieldType: string;
|
|
415
|
-
error: string;
|
|
416
|
-
type: string;
|
|
417
|
-
rootNode?: HTMLElement;
|
|
418
|
-
detectedBrands?: string[];
|
|
419
|
-
errorI18n?: string;
|
|
420
|
-
errorText?: string;
|
|
421
|
-
}
|
|
422
|
-
interface CardFieldValidData {
|
|
423
|
-
fieldType: string;
|
|
424
|
-
encryptedFieldName: string;
|
|
425
|
-
uid: string;
|
|
426
|
-
valid: boolean;
|
|
427
|
-
type: string;
|
|
428
|
-
rootNode: HTMLElement;
|
|
429
|
-
blob?: string;
|
|
430
|
-
endDigits?: string;
|
|
431
|
-
expiryDate?: string;
|
|
432
|
-
issuerBin?: number;
|
|
433
|
-
}
|
|
434
|
-
interface CardFocusData {
|
|
435
|
-
action: string;
|
|
436
|
-
focus: boolean;
|
|
437
|
-
numChars: number;
|
|
438
|
-
fieldType: string;
|
|
439
|
-
rootNode: HTMLElement;
|
|
440
|
-
type: string;
|
|
441
|
-
currentFocusObject: string;
|
|
442
|
-
}
|
|
443
|
-
interface CardLoadData {
|
|
444
|
-
iframesLoaded: boolean;
|
|
445
|
-
}
|
|
446
|
-
type CVCPolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
447
|
-
type DatePolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
448
|
-
|
|
449
171
|
interface InstallmentOptions {
|
|
450
|
-
[key: string]:
|
|
451
|
-
values: number[];
|
|
452
|
-
plans?: string[];
|
|
453
|
-
preselectedValue?: number;
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
interface TouchStartEventObj {
|
|
457
|
-
fieldType: string;
|
|
458
|
-
name?: string;
|
|
172
|
+
[key: string]: InstallmentOption;
|
|
459
173
|
}
|
|
460
174
|
|
|
461
175
|
type CheckoutSession = {
|
|
@@ -473,7 +187,7 @@ type CheckoutSessionSetupResponse = {
|
|
|
473
187
|
id: string;
|
|
474
188
|
sessionData: string;
|
|
475
189
|
countryCode?: string;
|
|
476
|
-
amount: PaymentAmount
|
|
190
|
+
amount: Omit<PaymentAmount, 'currencyDisplay'>;
|
|
477
191
|
expiresAt: string;
|
|
478
192
|
paymentMethods: any;
|
|
479
193
|
returnUrl: string;
|
|
@@ -508,10 +222,58 @@ type CheckoutSessionOrdersResponse = {
|
|
|
508
222
|
orderData: string;
|
|
509
223
|
pspReference: string;
|
|
510
224
|
};
|
|
511
|
-
type SetupSessionOptions = {
|
|
512
|
-
browserInfo?: BrowserInfo;
|
|
513
|
-
order?: Order;
|
|
225
|
+
type SetupSessionOptions = {
|
|
226
|
+
browserInfo?: BrowserInfo;
|
|
227
|
+
order?: Order;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
type CustomTranslations = {
|
|
231
|
+
[locale: string]: Translations;
|
|
232
|
+
};
|
|
233
|
+
type Translations = {
|
|
234
|
+
[translationKey: string]: string;
|
|
514
235
|
};
|
|
236
|
+
interface LanguageOptions {
|
|
237
|
+
locale: string;
|
|
238
|
+
translations: Translations;
|
|
239
|
+
customTranslations?: CustomTranslations;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
declare class Language {
|
|
243
|
+
readonly locale: string;
|
|
244
|
+
readonly languageCode: string;
|
|
245
|
+
private readonly translations;
|
|
246
|
+
private readonly customTranslations;
|
|
247
|
+
readonly timeFormatOptions: Intl.DateTimeFormatOptions;
|
|
248
|
+
readonly timeAndDateFormatOptions: Intl.DateTimeFormatOptions;
|
|
249
|
+
readonly timeAndDateFormatter: Intl.DateTimeFormat;
|
|
250
|
+
constructor(props: LanguageOptions);
|
|
251
|
+
/**
|
|
252
|
+
* Returns a translated string from a key in the current {@link Language.locale}
|
|
253
|
+
* @param key - Translation key
|
|
254
|
+
* @param options - Translation options
|
|
255
|
+
* @returns Translated string
|
|
256
|
+
*/
|
|
257
|
+
get(key: string, options?: any): string;
|
|
258
|
+
/**
|
|
259
|
+
* Returns a localized string for an amount
|
|
260
|
+
* @param amount - Amount to be converted
|
|
261
|
+
* @param currencyCode - Currency code of the amount
|
|
262
|
+
* @param options - Options for String.prototype.toLocaleString
|
|
263
|
+
*/
|
|
264
|
+
amount(amount: number, currencyCode: string, options?: object): string;
|
|
265
|
+
/**
|
|
266
|
+
* Returns a localized string for a date
|
|
267
|
+
* @param date - Date to be localized
|
|
268
|
+
* @param options - Options for {@link Intl.DateTimeFormatOptions}
|
|
269
|
+
*/
|
|
270
|
+
date(date: string, options?: Intl.DateTimeFormatOptions): string;
|
|
271
|
+
/**
|
|
272
|
+
* Returns a localized string for a date and time
|
|
273
|
+
* @param date - Date to be localized
|
|
274
|
+
*/
|
|
275
|
+
dateTime(date: string): string;
|
|
276
|
+
}
|
|
515
277
|
|
|
516
278
|
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'action' | 'link' | 'iconOnly';
|
|
517
279
|
interface ButtonProps {
|
|
@@ -533,7 +295,7 @@ interface ButtonProps {
|
|
|
533
295
|
href?: string;
|
|
534
296
|
target?: string;
|
|
535
297
|
rel?: string;
|
|
536
|
-
onClick?: (e: h.JSX.TargetedMouseEvent<HTMLButtonElement>, callbacks?: {
|
|
298
|
+
onClick?: (e: h.JSX.TargetedMouseEvent<HTMLButtonElement | HTMLAnchorElement>, callbacks?: {
|
|
537
299
|
complete?: () => void;
|
|
538
300
|
}) => void;
|
|
539
301
|
onKeyDown?: (event: KeyboardEvent) => void;
|
|
@@ -550,9 +312,13 @@ interface PayButtonProps extends ButtonProps {
|
|
|
550
312
|
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
551
313
|
*/
|
|
552
314
|
classNameModifiers?: string[];
|
|
315
|
+
/**
|
|
316
|
+
* Custom amount that can be passed to the button.
|
|
317
|
+
* This is useful when the amount is not available in the amount provider, such as Giftcard scenario where
|
|
318
|
+
* we need to display the remaining amount
|
|
319
|
+
*/
|
|
320
|
+
customAmount?: PaymentAmount;
|
|
553
321
|
label?: string;
|
|
554
|
-
amount?: PaymentAmountExtended;
|
|
555
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
556
322
|
status?: string;
|
|
557
323
|
disabled?: boolean;
|
|
558
324
|
icon?: string;
|
|
@@ -849,7 +615,7 @@ interface AmazonPayConfiguration extends UIElementProps {
|
|
|
849
615
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
850
616
|
reject: () => void;
|
|
851
617
|
}): void;
|
|
852
|
-
payButton?:
|
|
618
|
+
payButton?: (props: PayButtonProps) => h.JSX.Element;
|
|
853
619
|
placement?: Placement;
|
|
854
620
|
productType?: ProductType;
|
|
855
621
|
recurringMetadata?: RecurringMetadata;
|
|
@@ -882,7 +648,6 @@ interface AmazonPayComponentProps extends AmazonPayConfiguration {
|
|
|
882
648
|
ref: any;
|
|
883
649
|
}
|
|
884
650
|
interface AmazonPayButtonProps {
|
|
885
|
-
amount?: PaymentAmount;
|
|
886
651
|
amazonRef: any;
|
|
887
652
|
buttonColor?: ButtonColor;
|
|
888
653
|
cancelUrl?: string;
|
|
@@ -917,7 +682,6 @@ interface ChangeActionOptions {
|
|
|
917
682
|
}
|
|
918
683
|
interface OrderButtonProps {
|
|
919
684
|
amazonCheckoutSessionId: string;
|
|
920
|
-
amount: PaymentAmount;
|
|
921
685
|
clientKey: string;
|
|
922
686
|
chargePermissionType?: ChargePermissionType;
|
|
923
687
|
onError: (error: any, component: any) => void;
|
|
@@ -1168,7 +932,14 @@ interface ApplePayConfiguration extends UIElementProps {
|
|
|
1168
932
|
* Optional user-defined data.
|
|
1169
933
|
*/
|
|
1170
934
|
applicationData?: string;
|
|
1171
|
-
|
|
935
|
+
/**
|
|
936
|
+
* Called when the shopper clicks the Apple Pay button
|
|
937
|
+
|
|
938
|
+
* @param resolve - Must be called if the button should be displayed
|
|
939
|
+
* @param reject - Must be called if the button should not be displayed
|
|
940
|
+
* @returns
|
|
941
|
+
*/
|
|
942
|
+
onClick?: (resolve: () => void, reject: () => void) => void;
|
|
1172
943
|
/**
|
|
1173
944
|
* A callback function the Apple Pay SDK calls when the Apple Pay code modal or window closes.
|
|
1174
945
|
*/
|
|
@@ -1201,28 +972,42 @@ interface ApplePayConfiguration extends UIElementProps {
|
|
|
1201
972
|
* @param reject - Must be called if something failed during the order creation. Calling 'reject' won't cancel the payment flow
|
|
1202
973
|
*/
|
|
1203
974
|
onOrderTrackingRequest?: (resolve: (orderDetails: ApplePayPaymentOrderDetails) => void, reject: () => void) => void;
|
|
1204
|
-
onValidateMerchant?: (resolve: any, reject: any, validationURL: string) => void;
|
|
1205
975
|
/**
|
|
1206
|
-
*
|
|
1207
|
-
*
|
|
1208
|
-
* @
|
|
1209
|
-
* @param
|
|
976
|
+
* An event handler the system calls when it displays the payment sheet
|
|
977
|
+
*
|
|
978
|
+
* {@link https://developer.apple.com/documentation/applepayontheweb/applepaysession/onvalidatemerchant}
|
|
979
|
+
* @param resolve - Must be called with an opaque message session object
|
|
980
|
+
* @param reject - Must be called if something failed during the merchant validation
|
|
981
|
+
* @param validationURL - The URL your server must use to validate itself and obtain a merchant session object.
|
|
982
|
+
*/
|
|
983
|
+
onValidateMerchant?: (resolve: (merchantSession: any) => void, reject: (error?: string) => void, validationURL: string) => Promise<void>;
|
|
984
|
+
/**
|
|
985
|
+
* An event handler to call when the user selects a new payment method.
|
|
986
|
+
*
|
|
987
|
+
* {@link https://developer.apple.com/documentation/applepayontheweb/applepaysession/onpaymentmethodselected}
|
|
988
|
+
* @param resolve - Completes the selection of a payment method with an update.
|
|
989
|
+
* @param reject - Completes the selection of a payment method with no update.
|
|
990
|
+
* @param event - The event parameter contains the paymentMethod attribute.
|
|
1210
991
|
*/
|
|
1211
|
-
onPaymentMethodSelected?: (resolve:
|
|
992
|
+
onPaymentMethodSelected?: (resolve: (paymentMethodUpdate: ApplePayJS.ApplePayPaymentMethodUpdate) => void, reject: (paymentMethodUpdate: ApplePayJS.ApplePayPaymentMethodUpdate) => void, event: ApplePayJS.ApplePayPaymentMethodSelectedEvent) => void;
|
|
1212
993
|
/**
|
|
1213
|
-
*
|
|
1214
|
-
*
|
|
1215
|
-
* @
|
|
1216
|
-
* @param
|
|
994
|
+
* An event handler to call when the user selects a shipping contact in the payment sheet.
|
|
995
|
+
*
|
|
996
|
+
* {@link https://developer.apple.com/documentation/applepayontheweb/applepaysession/onshippingcontactselected}
|
|
997
|
+
* @param resolve - Completes the selection of a shipping contact with an update.
|
|
998
|
+
* @param reject - Completes the selection of a shipping contact with no update.
|
|
999
|
+
* @param event - The event parameter contains the shippingContact attribute.
|
|
1217
1000
|
*/
|
|
1218
|
-
onShippingContactSelected?: (resolve:
|
|
1001
|
+
onShippingContactSelected?: (resolve: (shippingContactUpdate: ApplePayJS.ApplePayShippingContactUpdate) => void, reject: (shippingContactUpdate: ApplePayJS.ApplePayShippingContactUpdate) => void, event: ApplePayJS.ApplePayShippingContactSelectedEvent) => void;
|
|
1219
1002
|
/**
|
|
1220
|
-
*
|
|
1221
|
-
*
|
|
1222
|
-
* @
|
|
1223
|
-
* @param
|
|
1003
|
+
* Completes the selection of a shipping method with an update.
|
|
1004
|
+
*
|
|
1005
|
+
* {@link https://developer.apple.com/documentation/applepayontheweb/applepaysession/completeshippingmethodselection}
|
|
1006
|
+
* @param resolve - Completes the selection of a shipping method with an update.
|
|
1007
|
+
* @param reject - Completes the selection of a shipping method with no update.
|
|
1008
|
+
* @param event - The event parameter contains the shippingMethod attribute.
|
|
1224
1009
|
*/
|
|
1225
|
-
onShippingMethodSelected?: (resolve:
|
|
1010
|
+
onShippingMethodSelected?: (resolve: (shippingMethodUpdate: ApplePayJS.ApplePayShippingMethodUpdate) => void, reject: (shippingMethodUpdate: ApplePayJS.ApplePayShippingMethodUpdate) => void, event: ApplePayJS.ApplePayShippingMethodSelectedEvent) => void;
|
|
1226
1011
|
buttonColor?: ApplePayButtonStyle;
|
|
1227
1012
|
buttonType?: ApplePayButtonType;
|
|
1228
1013
|
/**
|
|
@@ -1538,93 +1323,334 @@ type ClickToPayScheme = 'mc' | 'visa';
|
|
|
1538
1323
|
|
|
1539
1324
|
declare global {
|
|
1540
1325
|
interface Window {
|
|
1541
|
-
SRCSDK_MASTERCARD?: object;
|
|
1542
|
-
vAdapters: {
|
|
1543
|
-
VisaSRCI?: object;
|
|
1544
|
-
};
|
|
1326
|
+
SRCSDK_MASTERCARD?: object;
|
|
1327
|
+
vAdapters: {
|
|
1328
|
+
VisaSRCI?: object;
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
declare enum AnalyticsEventCategory {
|
|
1334
|
+
info = "info",
|
|
1335
|
+
error = "error",
|
|
1336
|
+
log = "log"
|
|
1337
|
+
}
|
|
1338
|
+
declare abstract class AbstractAnalyticsEvent {
|
|
1339
|
+
private readonly timestamp;
|
|
1340
|
+
private readonly id;
|
|
1341
|
+
/**
|
|
1342
|
+
* Component tx variant or identifier
|
|
1343
|
+
* @private
|
|
1344
|
+
*/
|
|
1345
|
+
private readonly component;
|
|
1346
|
+
abstract getEventCategory(): AnalyticsEventCategory;
|
|
1347
|
+
protected constructor(component: string);
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
interface AnalyticsOptions {
|
|
1351
|
+
/**
|
|
1352
|
+
* Enable/Disable all analytics
|
|
1353
|
+
*/
|
|
1354
|
+
enabled?: boolean;
|
|
1355
|
+
/**
|
|
1356
|
+
* A wrapper to pass data needed when analytics is setup
|
|
1357
|
+
*/
|
|
1358
|
+
analyticsData?: {
|
|
1359
|
+
/**
|
|
1360
|
+
* Relates to PMs used within Plugins
|
|
1361
|
+
* https://docs.adyen.com/development-resources/application-information/?tab=integrator_built_2#application-information-fields
|
|
1362
|
+
* @internal
|
|
1363
|
+
*/
|
|
1364
|
+
applicationInfo?: ApplicationInfo;
|
|
1365
|
+
/**
|
|
1366
|
+
* Use a checkoutAttemptId from a previous page
|
|
1367
|
+
*/
|
|
1368
|
+
checkoutAttemptId?: string;
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
interface ApplicationInfo {
|
|
1372
|
+
externalPlatform: {
|
|
1373
|
+
name: string;
|
|
1374
|
+
version: string;
|
|
1375
|
+
integrator: string;
|
|
1376
|
+
};
|
|
1377
|
+
merchantApplication: {
|
|
1378
|
+
name: string;
|
|
1379
|
+
version: string;
|
|
1380
|
+
};
|
|
1381
|
+
merchantDevice?: {
|
|
1382
|
+
os: string;
|
|
1383
|
+
osVersion: string;
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
interface IAnalytics {
|
|
1388
|
+
checkoutAttemptId?: string;
|
|
1389
|
+
setUp({ sessionId, checkoutStage, locale }: {
|
|
1390
|
+
sessionId?: string;
|
|
1391
|
+
checkoutStage?: 'precheckout' | 'checkout';
|
|
1392
|
+
locale?: string;
|
|
1393
|
+
}): Promise<void>;
|
|
1394
|
+
sendFlavor(flavor: 'dropin' | 'components'): Promise<void>;
|
|
1395
|
+
sendAnalytics(event: AbstractAnalyticsEvent): void;
|
|
1396
|
+
flush(): void;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
type MastercardCheckout = {
|
|
1400
|
+
srcDigitalCardId: string;
|
|
1401
|
+
srcCorrelationId: string;
|
|
1402
|
+
srcScheme: string;
|
|
1403
|
+
};
|
|
1404
|
+
type VisaCheckout = {
|
|
1405
|
+
srcCheckoutPayload?: string;
|
|
1406
|
+
srcTokenReference?: string;
|
|
1407
|
+
srcCorrelationId: string;
|
|
1408
|
+
srcScheme: string;
|
|
1409
|
+
};
|
|
1410
|
+
type ClickToPayCheckoutPayload = VisaCheckout | MastercardCheckout;
|
|
1411
|
+
|
|
1412
|
+
type ClickToPayConfiguration = UIElementProps & ClickToPayProps & {
|
|
1413
|
+
/**
|
|
1414
|
+
* ClickToPay configuration sent by the /paymentMethods response
|
|
1415
|
+
*/
|
|
1416
|
+
configuration?: {
|
|
1417
|
+
mcDpaId?: string;
|
|
1418
|
+
mcSrcClientId?: string;
|
|
1419
|
+
visaSrcInitiatorId?: string;
|
|
1420
|
+
visaSrciDpaId?: string;
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
type ClickToPayPaymentData = {
|
|
1424
|
+
paymentMethod: ClickToPayCheckoutPayload & {
|
|
1425
|
+
type: string;
|
|
1426
|
+
};
|
|
1427
|
+
origin: string;
|
|
1428
|
+
browserInfo: BrowserInfo;
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
interface TouchStartEventObj {
|
|
1432
|
+
fieldType: string;
|
|
1433
|
+
name?: string;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
type PlaceholderKeys$1 = 'cardNumber' | 'securityCode' | 'expiryDate';
|
|
1437
|
+
type Placeholders$1 = Partial<Record<PlaceholderKeys$1, string>>;
|
|
1438
|
+
type GiftcardFieldsProps = {
|
|
1439
|
+
setRootNode: (input: HTMLElement) => void;
|
|
1440
|
+
i18n: Language;
|
|
1441
|
+
pinRequired: boolean;
|
|
1442
|
+
sfpState: SFPState;
|
|
1443
|
+
getCardErrorMessage: any;
|
|
1444
|
+
focusedElement: any;
|
|
1445
|
+
setFocusOn: any;
|
|
1446
|
+
label?: string;
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
type Placeholders = CardPlaceholders | Placeholders$1;
|
|
1450
|
+
/**
|
|
1451
|
+
* Should be the only props that can be sent to SFP (from CardInput, SecuredFieldsInput, GiftcardComponent)
|
|
1452
|
+
*/
|
|
1453
|
+
interface SFPProps {
|
|
1454
|
+
autoFocus?: boolean;
|
|
1455
|
+
brands?: string[];
|
|
1456
|
+
brandsConfiguration?: CardBrandsConfiguration;
|
|
1457
|
+
clientKey: string;
|
|
1458
|
+
componentType: string;
|
|
1459
|
+
countryCode?: string;
|
|
1460
|
+
forceCompat?: boolean;
|
|
1461
|
+
hasKoreanFields?: boolean;
|
|
1462
|
+
i18n: Language;
|
|
1463
|
+
implementationType?: string;
|
|
1464
|
+
keypadFix?: boolean;
|
|
1465
|
+
koreanAuthenticationRequired?: boolean;
|
|
1466
|
+
legacyInputMode?: boolean;
|
|
1467
|
+
loadingContext: string;
|
|
1468
|
+
minimumExpiryDate?: string;
|
|
1469
|
+
onAdditionalSFConfig?: () => {};
|
|
1470
|
+
onAdditionalSFRemoved?: () => {};
|
|
1471
|
+
onAllValid?: () => {};
|
|
1472
|
+
onAutoComplete?: () => {};
|
|
1473
|
+
onBinValue?: () => {};
|
|
1474
|
+
onBrand?: () => {};
|
|
1475
|
+
onChange: () => {};
|
|
1476
|
+
onConfigSuccess?: () => {};
|
|
1477
|
+
onError?: () => {};
|
|
1478
|
+
onFieldValid?: () => {};
|
|
1479
|
+
onFocus?: () => {};
|
|
1480
|
+
onLoad?: () => {};
|
|
1481
|
+
onStateUpdate: (obj: SFPState) => void;
|
|
1482
|
+
onSubmitAnalytics: (event: AbstractAnalyticsEvent) => void;
|
|
1483
|
+
handleKeyPress?: (obj: KeyboardEvent) => void;
|
|
1484
|
+
rootNode: HTMLElement;
|
|
1485
|
+
showWarnings?: boolean;
|
|
1486
|
+
styles?: StylesObject;
|
|
1487
|
+
trimTrailingSeparator?: boolean;
|
|
1488
|
+
type: string;
|
|
1489
|
+
render: () => {};
|
|
1490
|
+
resources: Resources;
|
|
1491
|
+
maskSecurityCode: boolean;
|
|
1492
|
+
exposeExpiryDate: boolean;
|
|
1493
|
+
disableIOSArrowKeys: (obj: TouchStartEventObj) => void | null;
|
|
1494
|
+
placeholders?: Placeholders;
|
|
1495
|
+
showContextualElement?: boolean;
|
|
1496
|
+
}
|
|
1497
|
+
interface SFPState {
|
|
1498
|
+
status?: string;
|
|
1499
|
+
brand?: string;
|
|
1500
|
+
errors?: object;
|
|
1501
|
+
valid: SFPValid;
|
|
1502
|
+
data: object;
|
|
1503
|
+
cvcPolicy?: CVCPolicyType;
|
|
1504
|
+
isSfpValid?: boolean;
|
|
1505
|
+
autoCompleteName?: string;
|
|
1506
|
+
billingAddress?: AddressData;
|
|
1507
|
+
detectedUnsupportedBrands?: string[];
|
|
1508
|
+
hasKoreanFields?: boolean;
|
|
1509
|
+
showSocialSecurityNumber?: boolean;
|
|
1510
|
+
expiryDatePolicy?: DatePolicyType;
|
|
1511
|
+
socialSecurityNumber?: string;
|
|
1512
|
+
}
|
|
1513
|
+
interface SingleBrandResetObject {
|
|
1514
|
+
brand: string;
|
|
1515
|
+
cvcPolicy: CVCPolicyType;
|
|
1516
|
+
}
|
|
1517
|
+
interface SFPValid {
|
|
1518
|
+
encryptedCardNumber?: boolean;
|
|
1519
|
+
encryptedExpiryMonth?: boolean;
|
|
1520
|
+
encryptedExpiryYear?: boolean;
|
|
1521
|
+
encryptedSecurityCode?: boolean;
|
|
1522
|
+
encryptedPassword?: boolean;
|
|
1523
|
+
encryptedPin?: boolean;
|
|
1524
|
+
encryptedBankAccountNumber?: boolean;
|
|
1525
|
+
encryptedBankLocationId?: boolean;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
declare const REQUIRED = "required";
|
|
1529
|
+
declare const OPTIONAL = "optional";
|
|
1530
|
+
declare const HIDDEN = "hidden";
|
|
1531
|
+
|
|
1532
|
+
declare global {
|
|
1533
|
+
interface Window {
|
|
1534
|
+
_b$dl: boolean;
|
|
1535
|
+
mockBinCount: number;
|
|
1545
1536
|
}
|
|
1546
1537
|
}
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
enabled?: boolean;
|
|
1553
|
-
/**
|
|
1554
|
-
* A wrapper to pass data needed when analytics is setup
|
|
1555
|
-
*/
|
|
1556
|
-
analyticsData?: {
|
|
1557
|
-
/**
|
|
1558
|
-
* Relates to PMs used within Plugins
|
|
1559
|
-
* https://docs.adyen.com/development-resources/application-information/?tab=integrator_built_2#application-information-fields
|
|
1560
|
-
* @internal
|
|
1561
|
-
*/
|
|
1562
|
-
applicationInfo?: ApplicationInfo;
|
|
1563
|
-
/**
|
|
1564
|
-
* Use a checkoutAttemptId from a previous page
|
|
1565
|
-
*/
|
|
1566
|
-
checkoutAttemptId?: string;
|
|
1567
|
-
};
|
|
1538
|
+
interface StylesObject {
|
|
1539
|
+
base?: StyleDefinitions;
|
|
1540
|
+
error?: StyleDefinitions;
|
|
1541
|
+
validated?: StyleDefinitions;
|
|
1542
|
+
placeholder?: StyleDefinitions;
|
|
1568
1543
|
}
|
|
1569
|
-
interface
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1544
|
+
interface StyleDefinitions {
|
|
1545
|
+
background?: string;
|
|
1546
|
+
caretColor?: string;
|
|
1547
|
+
color?: string;
|
|
1548
|
+
display?: string;
|
|
1549
|
+
font?: string;
|
|
1550
|
+
fontFamily?: string;
|
|
1551
|
+
fontSize?: string;
|
|
1552
|
+
fontSizeAdjust?: string;
|
|
1553
|
+
fontSmoothing?: string;
|
|
1554
|
+
fontStretch?: string;
|
|
1555
|
+
fontStyle?: string;
|
|
1556
|
+
fontVariant?: string;
|
|
1557
|
+
fontVariantAlternates?: string;
|
|
1558
|
+
fontVariantCaps?: string;
|
|
1559
|
+
fontVariantEastAsian?: string;
|
|
1560
|
+
fontVariantLigatures?: string;
|
|
1561
|
+
fontVariantNumeric?: string;
|
|
1562
|
+
fontWeight?: string;
|
|
1563
|
+
letterSpacing?: string;
|
|
1564
|
+
lineHeight?: string;
|
|
1565
|
+
mozOsxFontSmoothing?: string;
|
|
1566
|
+
mozTransition?: string;
|
|
1567
|
+
outline?: string;
|
|
1568
|
+
opacity?: string;
|
|
1569
|
+
padding?: string;
|
|
1570
|
+
textAlign?: string;
|
|
1571
|
+
textShadow?: string;
|
|
1572
|
+
transition?: string;
|
|
1573
|
+
webkitFontSmoothing?: string;
|
|
1574
|
+
webkitTransition?: string;
|
|
1575
|
+
wordSpacing?: string;
|
|
1583
1576
|
}
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
sessionId?: string;
|
|
1589
|
-
checkoutStage?: 'precheckout' | 'checkout';
|
|
1590
|
-
locale?: string;
|
|
1591
|
-
}): Promise<void>;
|
|
1592
|
-
sendFlavor(flavor: 'dropin' | 'components'): Promise<void>;
|
|
1593
|
-
sendAnalytics(event: AbstractAnalyticsEvent): void;
|
|
1594
|
-
flush(): void;
|
|
1577
|
+
interface CardAllValidData {
|
|
1578
|
+
type: string;
|
|
1579
|
+
allValid: boolean;
|
|
1580
|
+
rootNode: HTMLElement;
|
|
1595
1581
|
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
}
|
|
1582
|
+
interface CardAutoCompleteData {
|
|
1583
|
+
fieldType: string;
|
|
1584
|
+
name: string;
|
|
1585
|
+
value: string;
|
|
1586
|
+
action: string;
|
|
1587
|
+
}
|
|
1588
|
+
interface CardBinLookupData {
|
|
1589
|
+
type?: string;
|
|
1590
|
+
detectedBrands?: string[];
|
|
1591
|
+
supportedBrands?: string[];
|
|
1592
|
+
brands?: string[];
|
|
1593
|
+
issuingCountryCode?: string;
|
|
1594
|
+
supportedBrandsRaw?: BrandObject[];
|
|
1595
|
+
rootNode?: HTMLElement;
|
|
1596
|
+
isReset?: boolean;
|
|
1597
|
+
}
|
|
1598
|
+
interface CardBinValueData {
|
|
1599
|
+
type: string;
|
|
1600
|
+
binValue: string;
|
|
1601
|
+
uuid?: string;
|
|
1602
|
+
encryptedBin?: string;
|
|
1603
|
+
}
|
|
1604
|
+
interface CardBrandData {
|
|
1605
|
+
type: string;
|
|
1606
|
+
rootNode: HTMLElement;
|
|
1607
|
+
brand: string;
|
|
1608
|
+
cvcPolicy: CVCPolicyType;
|
|
1609
|
+
expiryDatePolicy?: DatePolicyType;
|
|
1610
|
+
cvcText: string;
|
|
1611
|
+
showSocialSecurityNumber?: boolean;
|
|
1612
|
+
brandImageUrl?: string;
|
|
1613
|
+
}
|
|
1614
|
+
interface CardConfigSuccessData {
|
|
1615
|
+
iframesConfigured: boolean;
|
|
1616
|
+
type: string;
|
|
1617
|
+
rootNode: HTMLElement;
|
|
1618
|
+
}
|
|
1619
|
+
interface CardErrorData {
|
|
1620
|
+
fieldType: string;
|
|
1621
|
+
error: string;
|
|
1622
|
+
type: string;
|
|
1623
|
+
rootNode?: HTMLElement;
|
|
1624
|
+
detectedBrands?: string[];
|
|
1625
|
+
errorI18n?: string;
|
|
1626
|
+
errorText?: string;
|
|
1627
|
+
}
|
|
1628
|
+
interface CardFieldValidData {
|
|
1629
|
+
fieldType: string;
|
|
1630
|
+
encryptedFieldName: string;
|
|
1631
|
+
uid: string;
|
|
1632
|
+
valid: boolean;
|
|
1633
|
+
type: string;
|
|
1634
|
+
rootNode: HTMLElement;
|
|
1635
|
+
blob?: string;
|
|
1636
|
+
endDigits?: string;
|
|
1637
|
+
expiryDate?: string;
|
|
1638
|
+
issuerBin?: number;
|
|
1639
|
+
}
|
|
1640
|
+
interface CardFocusData {
|
|
1641
|
+
action: string;
|
|
1642
|
+
focus: boolean;
|
|
1643
|
+
numChars: number;
|
|
1644
|
+
fieldType: string;
|
|
1645
|
+
rootNode: HTMLElement;
|
|
1646
|
+
type: string;
|
|
1647
|
+
currentFocusObject: string;
|
|
1648
|
+
}
|
|
1649
|
+
interface CardLoadData {
|
|
1650
|
+
iframesLoaded: boolean;
|
|
1651
|
+
}
|
|
1652
|
+
type CVCPolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
1653
|
+
type DatePolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
1628
1654
|
|
|
1629
1655
|
declare enum ErrorEventCode {
|
|
1630
1656
|
/** Trying to initialise a securedField iframe, but the iframe.contentWindow is undefined (meaning the containing element is not in the DOM */
|
|
@@ -2080,7 +2106,7 @@ interface DragonpayInputProps {
|
|
|
2080
2106
|
onChange: (state: any) => void;
|
|
2081
2107
|
onSubmit?: (state: any, component: any) => void;
|
|
2082
2108
|
showPayButton: boolean;
|
|
2083
|
-
payButton:
|
|
2109
|
+
payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
2084
2110
|
ref?: any;
|
|
2085
2111
|
}
|
|
2086
2112
|
interface DragonpayVoucherResultProps {
|
|
@@ -2431,7 +2457,7 @@ interface KlarnaPaymentsShared {
|
|
|
2431
2457
|
}
|
|
2432
2458
|
interface KlarnaWidgetProps extends KlarnaPaymentsShared {
|
|
2433
2459
|
/** @internal */
|
|
2434
|
-
payButton: (
|
|
2460
|
+
payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
2435
2461
|
/** @internal */
|
|
2436
2462
|
onLoaded: () => void;
|
|
2437
2463
|
widgetInitializationTime: number;
|
|
@@ -3229,7 +3255,6 @@ interface AwaitComponentProps {
|
|
|
3229
3255
|
pollStatus?: () => Promise<RawPaymentResponse | RawPaymentStatusResponse>;
|
|
3230
3256
|
instructions?: string | (() => h.JSX.Element);
|
|
3231
3257
|
endSlot?: () => h.JSX.Element;
|
|
3232
|
-
amount?: PaymentAmount;
|
|
3233
3258
|
showAmount?: boolean;
|
|
3234
3259
|
}
|
|
3235
3260
|
interface AwaitConfiguration extends UIElementProps {
|
|
@@ -3363,7 +3388,6 @@ interface IBaseElement {
|
|
|
3363
3388
|
activate(): void;
|
|
3364
3389
|
}
|
|
3365
3390
|
|
|
3366
|
-
type PayButtonFunctionProps = Omit<PayButtonProps, 'amount'>;
|
|
3367
3391
|
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
3368
3392
|
type StatusFromAction = 'redirect' | 'loading' | 'custom';
|
|
3369
3393
|
type UIElementProps = {
|
|
@@ -3399,14 +3423,14 @@ type UIElementProps = {
|
|
|
3399
3423
|
name?: string;
|
|
3400
3424
|
icon?: string;
|
|
3401
3425
|
amount?: PaymentAmount;
|
|
3402
|
-
secondaryAmount?:
|
|
3426
|
+
secondaryAmount?: PaymentAmount;
|
|
3403
3427
|
/**
|
|
3404
3428
|
* Show/Hide pay button
|
|
3405
3429
|
* @defaultValue true
|
|
3406
3430
|
*/
|
|
3407
3431
|
showPayButton?: boolean;
|
|
3408
3432
|
/** @internal */
|
|
3409
|
-
payButton?: (options:
|
|
3433
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
3410
3434
|
/** @internal */
|
|
3411
3435
|
loadingContext?: string;
|
|
3412
3436
|
/** @internal */
|
|
@@ -3459,13 +3483,13 @@ declare class OpenInvoiceContainer extends UIElement<OpenInvoiceConfiguration> {
|
|
|
3459
3483
|
declare class AfterPay extends OpenInvoiceContainer {
|
|
3460
3484
|
static type: TxVariants;
|
|
3461
3485
|
static txVariants: TxVariants[];
|
|
3462
|
-
formatProps(props:
|
|
3486
|
+
formatProps(props: OpenInvoiceConfiguration): any;
|
|
3463
3487
|
}
|
|
3464
3488
|
|
|
3465
3489
|
declare class AfterPayB2B extends OpenInvoiceContainer {
|
|
3466
3490
|
static type: TxVariants;
|
|
3467
3491
|
protected static defaultProps: Partial<OpenInvoiceConfiguration>;
|
|
3468
|
-
formatProps(props:
|
|
3492
|
+
formatProps(props: OpenInvoiceConfiguration): any;
|
|
3469
3493
|
}
|
|
3470
3494
|
|
|
3471
3495
|
declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
@@ -3486,7 +3510,7 @@ declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
|
3486
3510
|
*/
|
|
3487
3511
|
createOrder: () => Promise<void>;
|
|
3488
3512
|
submit(): boolean;
|
|
3489
|
-
payButton: (props:
|
|
3513
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
3490
3514
|
get isValid(): boolean;
|
|
3491
3515
|
get displayName(): string;
|
|
3492
3516
|
protected componentToRender(): h.JSX.Element;
|
|
@@ -3556,7 +3580,7 @@ declare class ApplePayElement extends UIElement<ApplePayConfiguration> {
|
|
|
3556
3580
|
|
|
3557
3581
|
declare class Atome extends OpenInvoiceContainer {
|
|
3558
3582
|
static type: TxVariants;
|
|
3559
|
-
formatProps(props:
|
|
3583
|
+
formatProps(props: OpenInvoiceConfiguration): any;
|
|
3560
3584
|
}
|
|
3561
3585
|
|
|
3562
3586
|
declare class IssuerListContainer<TProps extends IssuerListConfiguration = IssuerListConfiguration, TData = IssuerListData> extends UIElement<TProps> {
|
|
@@ -3645,7 +3669,7 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
3645
3669
|
method: string;
|
|
3646
3670
|
data?: any;
|
|
3647
3671
|
}) => void;
|
|
3648
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3672
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
3649
3673
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3650
3674
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3651
3675
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -3670,9 +3694,9 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
3670
3694
|
name?: string;
|
|
3671
3695
|
icon?: string;
|
|
3672
3696
|
amount?: PaymentAmount;
|
|
3673
|
-
secondaryAmount?:
|
|
3697
|
+
secondaryAmount?: PaymentAmount;
|
|
3674
3698
|
showPayButton?: boolean;
|
|
3675
|
-
payButton?: (options:
|
|
3699
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
3676
3700
|
loadingContext?: string;
|
|
3677
3701
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3678
3702
|
clientKey?: string;
|
|
@@ -3722,7 +3746,7 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3722
3746
|
method: string;
|
|
3723
3747
|
data?: any;
|
|
3724
3748
|
}) => void;
|
|
3725
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3749
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
3726
3750
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3727
3751
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3728
3752
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -3747,9 +3771,9 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3747
3771
|
name?: string;
|
|
3748
3772
|
icon?: string;
|
|
3749
3773
|
amount?: PaymentAmount;
|
|
3750
|
-
secondaryAmount?:
|
|
3774
|
+
secondaryAmount?: PaymentAmount;
|
|
3751
3775
|
showPayButton?: boolean;
|
|
3752
|
-
payButton?: (options:
|
|
3776
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
3753
3777
|
loadingContext?: string;
|
|
3754
3778
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3755
3779
|
clientKey?: string;
|
|
@@ -3873,7 +3897,7 @@ declare class BancontactElement extends CardElement {
|
|
|
3873
3897
|
method: string;
|
|
3874
3898
|
data?: any;
|
|
3875
3899
|
}) => void;
|
|
3876
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3900
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
3877
3901
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3878
3902
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3879
3903
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -3896,9 +3920,9 @@ declare class BancontactElement extends CardElement {
|
|
|
3896
3920
|
statusType?: StatusFromAction;
|
|
3897
3921
|
icon?: string;
|
|
3898
3922
|
amount?: PaymentAmount;
|
|
3899
|
-
secondaryAmount?:
|
|
3923
|
+
secondaryAmount?: PaymentAmount;
|
|
3900
3924
|
showPayButton?: boolean;
|
|
3901
|
-
payButton?: (options:
|
|
3925
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
3902
3926
|
loadingContext?: string;
|
|
3903
3927
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3904
3928
|
clientKey?: string;
|
|
@@ -4069,7 +4093,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
4069
4093
|
method: string;
|
|
4070
4094
|
data?: any;
|
|
4071
4095
|
}) => void;
|
|
4072
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4096
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4073
4097
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4074
4098
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4075
4099
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4191,7 +4215,7 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
4191
4215
|
method: string;
|
|
4192
4216
|
data?: any;
|
|
4193
4217
|
}) => void;
|
|
4194
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4218
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4195
4219
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4196
4220
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4197
4221
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4215,9 +4239,9 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
4215
4239
|
name?: string;
|
|
4216
4240
|
icon?: string;
|
|
4217
4241
|
amount?: PaymentAmount;
|
|
4218
|
-
secondaryAmount?:
|
|
4242
|
+
secondaryAmount?: PaymentAmount;
|
|
4219
4243
|
showPayButton?: boolean;
|
|
4220
|
-
payButton?: (options:
|
|
4244
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
4221
4245
|
loadingContext?: string;
|
|
4222
4246
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4223
4247
|
clientKey?: string;
|
|
@@ -4264,7 +4288,7 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
4264
4288
|
method: string;
|
|
4265
4289
|
data?: any;
|
|
4266
4290
|
}) => void;
|
|
4267
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4291
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4268
4292
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4269
4293
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4270
4294
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4288,9 +4312,9 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
4288
4312
|
name?: string;
|
|
4289
4313
|
icon?: string;
|
|
4290
4314
|
amount?: PaymentAmount;
|
|
4291
|
-
secondaryAmount?:
|
|
4315
|
+
secondaryAmount?: PaymentAmount;
|
|
4292
4316
|
showPayButton?: boolean;
|
|
4293
|
-
payButton?: (options:
|
|
4317
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
4294
4318
|
loadingContext?: string;
|
|
4295
4319
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4296
4320
|
clientKey?: string;
|
|
@@ -4338,7 +4362,7 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
4338
4362
|
method: string;
|
|
4339
4363
|
data?: any;
|
|
4340
4364
|
}) => void;
|
|
4341
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4365
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4342
4366
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4343
4367
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4344
4368
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4362,9 +4386,9 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
4362
4386
|
name?: string;
|
|
4363
4387
|
icon?: string;
|
|
4364
4388
|
amount?: PaymentAmount;
|
|
4365
|
-
secondaryAmount?:
|
|
4389
|
+
secondaryAmount?: PaymentAmount;
|
|
4366
4390
|
showPayButton?: boolean;
|
|
4367
|
-
payButton?: (options:
|
|
4391
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
4368
4392
|
loadingContext?: string;
|
|
4369
4393
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4370
4394
|
clientKey?: string;
|
|
@@ -4426,7 +4450,7 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4426
4450
|
method: string;
|
|
4427
4451
|
data?: any;
|
|
4428
4452
|
}) => void;
|
|
4429
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4453
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4430
4454
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4431
4455
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4432
4456
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4450,9 +4474,9 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4450
4474
|
name?: string;
|
|
4451
4475
|
icon?: string;
|
|
4452
4476
|
amount?: PaymentAmount;
|
|
4453
|
-
secondaryAmount?:
|
|
4477
|
+
secondaryAmount?: PaymentAmount;
|
|
4454
4478
|
showPayButton?: boolean;
|
|
4455
|
-
payButton?: (options:
|
|
4479
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
4456
4480
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4457
4481
|
clientKey?: string;
|
|
4458
4482
|
elementRef?: any;
|
|
@@ -4614,9 +4638,8 @@ interface GiftcardComponentProps {
|
|
|
4614
4638
|
onBlur: (event: any) => void;
|
|
4615
4639
|
makeBalanceCheck: (event: any) => void;
|
|
4616
4640
|
makePayment: (event: any) => void;
|
|
4617
|
-
amount?: PaymentAmount;
|
|
4618
4641
|
showPayButton: boolean;
|
|
4619
|
-
payButton: (
|
|
4642
|
+
payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
4620
4643
|
pinRequired: boolean;
|
|
4621
4644
|
expiryDateRequired?: boolean;
|
|
4622
4645
|
fieldsLayoutComponent: FunctionComponent<GiftcardFieldsProps>;
|
|
@@ -4701,7 +4724,7 @@ declare class GiftcardElement extends UIElement<GiftCardConfiguration> {
|
|
|
4701
4724
|
private handleOnRequiringConfirmation;
|
|
4702
4725
|
submit(): void;
|
|
4703
4726
|
private makeSubmitCall;
|
|
4704
|
-
payButton: (props:
|
|
4727
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
4705
4728
|
protected componentToRender(): h.JSX.Element;
|
|
4706
4729
|
}
|
|
4707
4730
|
|
|
@@ -4775,7 +4798,7 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4775
4798
|
method: string;
|
|
4776
4799
|
data?: any;
|
|
4777
4800
|
}) => void;
|
|
4778
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4801
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4779
4802
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4780
4803
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4781
4804
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4799,9 +4822,9 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4799
4822
|
name?: string;
|
|
4800
4823
|
icon?: string;
|
|
4801
4824
|
amount?: PaymentAmount;
|
|
4802
|
-
secondaryAmount?:
|
|
4825
|
+
secondaryAmount?: PaymentAmount;
|
|
4803
4826
|
showPayButton?: boolean;
|
|
4804
|
-
payButton?: (options:
|
|
4827
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
4805
4828
|
loadingContext?: string;
|
|
4806
4829
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4807
4830
|
clientKey?: string;
|
|
@@ -4906,7 +4929,7 @@ declare class BankTransferElement extends UIElement<BankTransferConfiguration> {
|
|
|
4906
4929
|
|
|
4907
4930
|
declare class Affirm extends OpenInvoiceContainer {
|
|
4908
4931
|
static type: TxVariants;
|
|
4909
|
-
formatProps(props:
|
|
4932
|
+
formatProps(props: OpenInvoiceConfiguration): any;
|
|
4910
4933
|
}
|
|
4911
4934
|
|
|
4912
4935
|
declare class PixElement extends QRLoaderContainer<PixConfiguration> {
|
|
@@ -4941,7 +4964,7 @@ declare class BacsElement extends UIElement<VoucherConfiguration> {
|
|
|
4941
4964
|
static type: TxVariants;
|
|
4942
4965
|
formatData(): BacsElementData;
|
|
4943
4966
|
get isValid(): boolean;
|
|
4944
|
-
payButton: (props:
|
|
4967
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
4945
4968
|
protected componentToRender(): h.JSX.Element;
|
|
4946
4969
|
}
|
|
4947
4970
|
|
|
@@ -4957,7 +4980,7 @@ declare class AddressElement extends UIElement<AddressConfiguration> {
|
|
|
4957
4980
|
interface PersonalDetailsConfiguration extends UIElementProps {
|
|
4958
4981
|
}
|
|
4959
4982
|
declare class PersonalDetailsElement extends UIElement<PersonalDetailsConfiguration> {
|
|
4960
|
-
static type
|
|
4983
|
+
static readonly type = TxVariants.personal_details;
|
|
4961
4984
|
protected beforeRender(configSetByMerchant?: PersonalDetailsConfiguration): void;
|
|
4962
4985
|
get data(): any;
|
|
4963
4986
|
get isValid(): boolean;
|
|
@@ -4979,7 +5002,7 @@ declare class KlarnaPayments extends UIElement<KlarnaConfiguration> {
|
|
|
4979
5002
|
type: string;
|
|
4980
5003
|
};
|
|
4981
5004
|
};
|
|
4982
|
-
payButton: (props:
|
|
5005
|
+
payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
4983
5006
|
handleAction(action: KlarnaAction, props?: {}): UIElement | null;
|
|
4984
5007
|
updateWithAction(action: KlarnaAction): void;
|
|
4985
5008
|
private onLoaded;
|
|
@@ -5003,7 +5026,7 @@ declare class TwintElement extends RedirectElement {
|
|
|
5003
5026
|
* Overrides RedirectElement default payButton behaviour to use label
|
|
5004
5027
|
* @param props - props
|
|
5005
5028
|
*/
|
|
5006
|
-
payButton: (props:
|
|
5029
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
5007
5030
|
}
|
|
5008
5031
|
|
|
5009
5032
|
declare class MealVoucherFRElement extends GiftcardElement {
|
|
@@ -5144,7 +5167,7 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
5144
5167
|
method: string;
|
|
5145
5168
|
data?: any;
|
|
5146
5169
|
}) => void;
|
|
5147
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
5170
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
5148
5171
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
5149
5172
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
5150
5173
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -5168,9 +5191,9 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
5168
5191
|
name?: string;
|
|
5169
5192
|
icon?: string;
|
|
5170
5193
|
amount?: PaymentAmount;
|
|
5171
|
-
secondaryAmount?:
|
|
5194
|
+
secondaryAmount?: PaymentAmount;
|
|
5172
5195
|
showPayButton?: boolean;
|
|
5173
|
-
payButton?: (options:
|
|
5196
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
5174
5197
|
loadingContext?: string;
|
|
5175
5198
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
5176
5199
|
clientKey?: string;
|
|
@@ -5217,7 +5240,7 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
5217
5240
|
method: string;
|
|
5218
5241
|
data?: any;
|
|
5219
5242
|
}) => void;
|
|
5220
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
5243
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
5221
5244
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
5222
5245
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
5223
5246
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -5241,9 +5264,9 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
5241
5264
|
name?: string;
|
|
5242
5265
|
icon?: string;
|
|
5243
5266
|
amount?: PaymentAmount;
|
|
5244
|
-
secondaryAmount?:
|
|
5267
|
+
secondaryAmount?: PaymentAmount;
|
|
5245
5268
|
showPayButton?: boolean;
|
|
5246
|
-
payButton?: (options:
|
|
5269
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
5247
5270
|
loadingContext?: string;
|
|
5248
5271
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
5249
5272
|
clientKey?: string;
|
|
@@ -5405,7 +5428,7 @@ declare class PayToElement extends UIElement<PayToConfiguration> {
|
|
|
5405
5428
|
method: string;
|
|
5406
5429
|
data?: any;
|
|
5407
5430
|
}) => void;
|
|
5408
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
5431
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
5409
5432
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
5410
5433
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
5411
5434
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -5430,9 +5453,9 @@ declare class PayToElement extends UIElement<PayToConfiguration> {
|
|
|
5430
5453
|
name?: string;
|
|
5431
5454
|
icon?: string;
|
|
5432
5455
|
amount?: PaymentAmount;
|
|
5433
|
-
secondaryAmount?:
|
|
5456
|
+
secondaryAmount?: PaymentAmount;
|
|
5434
5457
|
showPayButton?: boolean;
|
|
5435
|
-
payButton?: (options:
|
|
5458
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
5436
5459
|
loadingContext?: string;
|
|
5437
5460
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
5438
5461
|
clientKey?: string;
|
|
@@ -5485,7 +5508,7 @@ interface BaseEnrollmentProps {
|
|
|
5485
5508
|
type?: string;
|
|
5486
5509
|
txVariant: string;
|
|
5487
5510
|
registrationOptions?: string;
|
|
5488
|
-
payButton(props:
|
|
5511
|
+
payButton(props: PayButtonProps): h.JSX.Element;
|
|
5489
5512
|
setComponentRef?: (ref: any) => void;
|
|
5490
5513
|
/**
|
|
5491
5514
|
* Trigger when the await times out, receives error state or the biometrics verification fails.
|
|
@@ -5509,10 +5532,6 @@ interface IssuerListProps extends BaseEnrollmentProps {
|
|
|
5509
5532
|
interface PaymentProps extends IPayByBankPixAwait {
|
|
5510
5533
|
enrollmentId?: string;
|
|
5511
5534
|
initiationId?: string;
|
|
5512
|
-
amount: {
|
|
5513
|
-
value: number;
|
|
5514
|
-
currency: string;
|
|
5515
|
-
};
|
|
5516
5535
|
txVariant: string;
|
|
5517
5536
|
onPay: () => void;
|
|
5518
5537
|
onAuthorize: (authorizationOptions: string) => void;
|
|
@@ -5905,6 +5924,7 @@ type onOrderCancelType = (data: onOrderCancelData, actions: {
|
|
|
5905
5924
|
interface DropinComponentProps extends DropinConfiguration {
|
|
5906
5925
|
core: ICore;
|
|
5907
5926
|
onCreateElements(): any;
|
|
5927
|
+
onElementsCreated(elements: UIElement[]): void;
|
|
5908
5928
|
onOrderCancel?: onOrderCancelType;
|
|
5909
5929
|
}
|
|
5910
5930
|
interface DropinStatus {
|
|
@@ -5940,8 +5960,8 @@ interface IDropin {
|
|
|
5940
5960
|
}
|
|
5941
5961
|
|
|
5942
5962
|
declare class Session {
|
|
5943
|
-
private readonly session;
|
|
5944
5963
|
private readonly storage;
|
|
5964
|
+
readonly session: CheckoutSession;
|
|
5945
5965
|
readonly clientKey: string;
|
|
5946
5966
|
readonly loadingContext: string;
|
|
5947
5967
|
configuration: SessionConfiguration;
|
|
@@ -5994,7 +6014,9 @@ declare class Session {
|
|
|
5994
6014
|
interface ICore {
|
|
5995
6015
|
initialize(): Promise<ICore>;
|
|
5996
6016
|
register(...items: NewableComponent[]): void;
|
|
5997
|
-
update(
|
|
6017
|
+
update(props: Partial<CoreConfiguration>, options?: {
|
|
6018
|
+
shouldReinitializeCheckout?: boolean;
|
|
6019
|
+
}): Promise<ICore>;
|
|
5998
6020
|
remove(component: any): ICore;
|
|
5999
6021
|
submitDetails(details: AdditionalDetailsData['data']): void;
|
|
6000
6022
|
getCorePropsForComponent(): any;
|
|
@@ -6109,11 +6131,11 @@ interface CoreConfiguration {
|
|
|
6109
6131
|
/**
|
|
6110
6132
|
* Amount of the payment
|
|
6111
6133
|
*/
|
|
6112
|
-
amount?:
|
|
6134
|
+
amount?: PaymentAmount;
|
|
6113
6135
|
/**
|
|
6114
6136
|
* Secondary amount of the payment - alternative currency & value converted according to rate
|
|
6115
6137
|
*/
|
|
6116
|
-
secondaryAmount?:
|
|
6138
|
+
secondaryAmount?: PaymentAmount;
|
|
6117
6139
|
/**
|
|
6118
6140
|
* The shopper's country code. A valid value is an ISO two-character country code (e.g. 'NL').
|
|
6119
6141
|
*/
|
|
@@ -6163,7 +6185,7 @@ interface CoreConfiguration {
|
|
|
6163
6185
|
* @param component
|
|
6164
6186
|
* @param actions
|
|
6165
6187
|
*/
|
|
6166
|
-
beforeSubmit?(state: PaymentData, component: UIElement, actions: BeforeSubmitActions): void;
|
|
6188
|
+
beforeSubmit?(state: PaymentData, component: UIElement, actions: BeforeSubmitActions): Promise<void> | void;
|
|
6167
6189
|
/**
|
|
6168
6190
|
* Called when the payment succeeds.
|
|
6169
6191
|
*
|
|
@@ -6337,11 +6359,19 @@ declare abstract class BaseElement<P extends BaseElementProps> implements IBaseE
|
|
|
6337
6359
|
remove(): void;
|
|
6338
6360
|
}
|
|
6339
6361
|
|
|
6362
|
+
interface AmountProviderRef {
|
|
6363
|
+
update(newAmount: PaymentAmount, newSecondaryAmount?: PaymentAmount): void;
|
|
6364
|
+
}
|
|
6365
|
+
|
|
6340
6366
|
declare abstract class UIElement<P extends UIElementProps = UIElementProps> extends BaseElement<P> {
|
|
6341
6367
|
protected componentRef: any;
|
|
6342
6368
|
protected resources: Resources;
|
|
6343
6369
|
elementRef: UIElement;
|
|
6344
6370
|
static type: any;
|
|
6371
|
+
/**
|
|
6372
|
+
* Reference to the methods exposed by the AmountProvider context
|
|
6373
|
+
*/
|
|
6374
|
+
protected amountProviderRef: RefObject<AmountProviderRef>;
|
|
6345
6375
|
/**
|
|
6346
6376
|
* Defines all txVariants that the Component supports (in case it support multiple ones besides the 'type' one)
|
|
6347
6377
|
*/
|
|
@@ -6373,6 +6403,15 @@ declare abstract class UIElement<P extends UIElementProps = UIElementProps> exte
|
|
|
6373
6403
|
isAvailable(): Promise<void>;
|
|
6374
6404
|
setState(newState: object): void;
|
|
6375
6405
|
showValidation(): this;
|
|
6406
|
+
/**
|
|
6407
|
+
* Updates the amount in the props and propagates it to the AmountProvider.
|
|
6408
|
+
* This allows children components to access the updated amount via context.
|
|
6409
|
+
*
|
|
6410
|
+
* @param amount - Primary payment amount object
|
|
6411
|
+
* @param secondaryAmount - Optional secondary amount for display purposes (e.g., converted currency)
|
|
6412
|
+
* @internal
|
|
6413
|
+
*/
|
|
6414
|
+
updateAmount(amount: PaymentAmount, secondaryAmount?: PaymentAmount): void;
|
|
6376
6415
|
/**
|
|
6377
6416
|
* elementRef is a ref to the subclass that extends UIElement e.g. Card.tsx
|
|
6378
6417
|
*/
|
|
@@ -6455,7 +6494,7 @@ declare abstract class UIElement<P extends UIElementProps = UIElementProps> exte
|
|
|
6455
6494
|
/**
|
|
6456
6495
|
* Get the payButton component for the current element
|
|
6457
6496
|
*/
|
|
6458
|
-
protected payButton: (props:
|
|
6497
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
6459
6498
|
/**
|
|
6460
6499
|
* Used in the Partial Orders flow.
|
|
6461
6500
|
* When the Order is updated, the merchant can request new payment methods based on the new remaining amount
|
|
@@ -6632,18 +6671,22 @@ interface ProcessedPaymentStatusResponse {
|
|
|
6632
6671
|
type: string;
|
|
6633
6672
|
props?: Record<string, any>;
|
|
6634
6673
|
}
|
|
6635
|
-
/**
|
|
6636
|
-
* {@link https://docs.adyen.com/api-explorer/#/PaymentSetupAndVerificationService/v52/payments__reqParam_amount API Explorer /payments amount}
|
|
6637
|
-
*/
|
|
6638
6674
|
interface PaymentAmount {
|
|
6675
|
+
/**
|
|
6676
|
+
* The payment amount in minor units for the specified `currency`.
|
|
6677
|
+
*/
|
|
6639
6678
|
value: number;
|
|
6679
|
+
/**
|
|
6680
|
+
* The 3-letter ISO 4217 currency code.
|
|
6681
|
+
*/
|
|
6640
6682
|
currency: string;
|
|
6641
|
-
}
|
|
6642
|
-
interface PaymentAmountExtended extends PaymentAmount {
|
|
6643
6683
|
/**
|
|
6644
|
-
*
|
|
6645
|
-
*
|
|
6646
|
-
*
|
|
6684
|
+
* Influences how the currency is displayed on the pay button.
|
|
6685
|
+
*
|
|
6686
|
+
* This maps to `Intl.NumberFormat`'s `currencyDisplay` option (for example, `"symbol"`, `"code"`, `"name"`, `"narrowSymbol"`).
|
|
6687
|
+
*
|
|
6688
|
+
* @default 'symbol'
|
|
6689
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currencydisplay
|
|
6647
6690
|
*/
|
|
6648
6691
|
currencyDisplay?: string;
|
|
6649
6692
|
}
|
|
@@ -7255,7 +7298,7 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
7255
7298
|
get displayName(): string;
|
|
7256
7299
|
get accessibleName(): string;
|
|
7257
7300
|
get browserInfo(): BrowserInfo;
|
|
7258
|
-
protected payButton: (props:
|
|
7301
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
7259
7302
|
private renderCardInput;
|
|
7260
7303
|
protected componentToRender(): h.JSX.Element;
|
|
7261
7304
|
}
|
|
@@ -7327,7 +7370,7 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
7327
7370
|
method: string;
|
|
7328
7371
|
data?: any;
|
|
7329
7372
|
}) => void;
|
|
7330
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
7373
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
7331
7374
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
7332
7375
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
7333
7376
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -7351,9 +7394,9 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
7351
7394
|
name?: string;
|
|
7352
7395
|
icon?: string;
|
|
7353
7396
|
amount?: PaymentAmount;
|
|
7354
|
-
secondaryAmount?:
|
|
7397
|
+
secondaryAmount?: PaymentAmount;
|
|
7355
7398
|
showPayButton?: boolean;
|
|
7356
|
-
payButton?: (options:
|
|
7399
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
7357
7400
|
loadingContext?: string;
|
|
7358
7401
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
7359
7402
|
clientKey?: string;
|
|
@@ -7374,6 +7417,10 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
7374
7417
|
* Reference to the component created from `handleAction` (Ex.: ThreeDS2Challenge)
|
|
7375
7418
|
*/
|
|
7376
7419
|
componentFromAction?: UIElement;
|
|
7420
|
+
/**
|
|
7421
|
+
* Reference to all payment method elements being rendered by Drop-in
|
|
7422
|
+
*/
|
|
7423
|
+
paymentMethodElements: UIElement[];
|
|
7377
7424
|
constructor(checkout: ICore, props?: DropinConfiguration);
|
|
7378
7425
|
protected reportIntegrationFlavor(): void;
|
|
7379
7426
|
protected storeElementRefOnCore(): void;
|
|
@@ -7412,7 +7459,7 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
7412
7459
|
method: string;
|
|
7413
7460
|
data?: any;
|
|
7414
7461
|
}) => void;
|
|
7415
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
7462
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
7416
7463
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
7417
7464
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
7418
7465
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -7437,9 +7484,9 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
7437
7484
|
name?: string;
|
|
7438
7485
|
icon?: string;
|
|
7439
7486
|
amount?: PaymentAmount;
|
|
7440
|
-
secondaryAmount?:
|
|
7487
|
+
secondaryAmount?: PaymentAmount;
|
|
7441
7488
|
showPayButton?: boolean;
|
|
7442
|
-
payButton?: (options:
|
|
7489
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
7443
7490
|
loadingContext?: string;
|
|
7444
7491
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
7445
7492
|
clientKey?: string;
|
|
@@ -7459,6 +7506,21 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
7459
7506
|
* Calls the onSubmit event with the state of the activePaymentMethod
|
|
7460
7507
|
*/
|
|
7461
7508
|
submit(): void;
|
|
7509
|
+
/**
|
|
7510
|
+
* Updates the amount in the props and propagates it to the AmountProvider. That way the children components can use the updated amount.
|
|
7511
|
+
*
|
|
7512
|
+
* This method **overrides** the parent one to specifically propagate the changes to all payment method elements.
|
|
7513
|
+
*
|
|
7514
|
+
* @param amount - Primary payment amount object
|
|
7515
|
+
* @param secondaryAmount - Optional secondary amount for display purposes (e.g., converted currency)
|
|
7516
|
+
* @internal
|
|
7517
|
+
*/
|
|
7518
|
+
updateAmount(amount: PaymentAmount, secondaryAmount?: PaymentAmount): void;
|
|
7519
|
+
/**
|
|
7520
|
+
* Assign all elements created in the Component to the paymentMethodElements property
|
|
7521
|
+
* @param elements
|
|
7522
|
+
*/
|
|
7523
|
+
private handleElementsCreated;
|
|
7462
7524
|
/**
|
|
7463
7525
|
* Creates the Drop-in elements
|
|
7464
7526
|
*/
|
|
@@ -7740,10 +7802,21 @@ declare class Core implements ICore {
|
|
|
7740
7802
|
/**
|
|
7741
7803
|
* Updates global configurations, resets the internal state and remounts each element.
|
|
7742
7804
|
*
|
|
7743
|
-
* @param
|
|
7744
|
-
* @
|
|
7805
|
+
* @param props - props to update
|
|
7806
|
+
* @param options - Can be used to avoid remounting the elements
|
|
7807
|
+
* @returns this - the Core instance
|
|
7808
|
+
*/
|
|
7809
|
+
update(props?: Partial<CoreConfiguration>, { shouldReinitializeCheckout }?: {
|
|
7810
|
+
shouldReinitializeCheckout?: boolean;
|
|
7811
|
+
}): Promise<this>;
|
|
7812
|
+
/**
|
|
7813
|
+
* Validates and propagates amount updates to all mounted components.
|
|
7814
|
+
*
|
|
7815
|
+
* @param amount - Primary payment amount object (required)
|
|
7816
|
+
* @param secondaryAmount - Optional secondary amount for display purposes (e.g., converted currency)
|
|
7817
|
+
* @internal
|
|
7745
7818
|
*/
|
|
7746
|
-
|
|
7819
|
+
private triggerAmountUpdate;
|
|
7747
7820
|
/**
|
|
7748
7821
|
* Remove the reference of a component
|
|
7749
7822
|
* @param component - reference to the component to be removed
|
|
@@ -7778,4 +7851,4 @@ declare namespace AdyenCheckout {
|
|
|
7778
7851
|
}
|
|
7779
7852
|
|
|
7780
7853
|
export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, AdyenCheckout, AdyenCheckoutError, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, Atome, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, BankTransferElement as BankTransfer, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, BlikElement as Blik, BoletoElement as Boleto, CardElement as Card, CashAppPay, ClickToPayElement as ClickToPay, Core, CustomCard, DokuElement as Doku, DonationElement as Donation, DotpayElement as Dotpay, DragonpayElement as Dragonpay, DropinElement as Dropin, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, Fastlane, FastlaneSDK, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, Iris, IrisMode, KlarnaPayments as Klarna, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, OxxoElement as Oxxo, PayByBank, PayByBankPixElement as PayByBankPix, PayByBankUS, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, PayToElement as PayTo, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, PixElement as Pix, PreAuthorizedDebitCanada, PromptPayElement as PromptPay, RatePay, RatePayDirectDebit, RedirectElement as Redirect, Riverty, SepaElement as SepaDirectDebit, SwishElement as Swish, ThreeDS2Challenge, ThreeDS2DeviceFingerprint, TrustlyElement as Trustly, TwintElement as Twint, UIElement, UPI, VippsElement as Vipps, WalletINElement as WalletIN, WeChatPayElement as WeChat, index_d as components, initializeFastlane };
|
|
7781
|
-
export type { ANCVConfiguration, ANCVDataState, AchConfiguration, AchPlaceholders, ActionDescriptionType, ActionHandledReturnObject, AdditionalDetailsActions, AdditionalDetailsData, AddressData, AddressField, AmazonPayBackendConfiguration, AmazonPayButtonProps, AmazonPayButtonSettings, AmazonPayComponentProps, AmazonPayConfiguration, AmazonPayElementData, App, ApplePayButtonStyle, ApplePayButtonType, ApplePayConfiguration, ApplePayElementData, ApplePayPaymentAuthorizationResult, ApplePayPaymentOrderDetails, ApplePaySessionRequest, ApplePayWebConfiguration, AwaitComponentProps, AwaitConfiguration, BankDetailsSchema, BankTransferConfiguration, BankTransferSchema, BankTransferState, BeforeSubmitActions, BinLookupResponse, BinLookupResponseRaw, BoletoConfiguration, BoletoElementProps, BoletoInputDataState, BoletoInputErrorState, BoletoInputValidState, BrandConfiguration, BrandObject, BrowserInfo, CReqData, CardAllValidData, CardAutoCompleteData, CardBackendConfiguration, CardBinLookupData, CardBinValueData, CardBrandData, CardBrandsConfiguration, CardConfigSuccessData, CardConfiguration, CardElementData, CardErrorData, CardFieldValidData, CardFocusData, CardLoadData, CardPlaceholders, CashAppPayConfiguration, CashAppPayElementData, CashAppPayEventData, ChallengeData, ChallengeResolveData, ChallengeWindowSize, ChangeActionOptions, ChangePaymentDetailsButtonProps, ChargeAmount, CheckoutAdvancedFlowResponse, CheckoutDetailsRequest, CheckoutSessionConfig, ClickToPayConfiguration, ClickToPayPaymentData, ClickToPayProps, ClickToPayScheme, CommonVoucherProps, ComponentFocusObject, ComponentMethodsRef, CoreConfiguration, CoreModules, Currency, CustomCardConfiguration, CustomTranslations, DecodeObject, DeliverySpecifications, DokuVoucherResultProps, DonationConfiguration, DragonpayConfiguraton, DragonpayInputData, DragonpayInputIssuerItem, DragonpayInputProps, DragonpayVoucherResultProps, DropinComponentProps, DropinComponentState, DropinConfiguration, DropinStatus, DropinStatusProps, DualBrandSelectElement, EcontextConfiguration, EcontextInputSchema, EcontextVoucherResultProps, ErrorCodeObject, ExtendedMerchantInfo, FastlaneAddress, FastlaneAuthenticatedCustomerResult, FastlaneConfiguration, FastlaneConsentRenderState, FastlaneOptions, FastlanePaymentMethodConfiguration, FastlaneProfile, FastlaneSDKConfiguration, FastlaneShipping, FastlaneShippingAddressSelectorResult, FastlaneSignupConfiguration, FastlaneWindowInstance, FieldsetVisibility, FingerPrintData, FingerprintResolveData, FundingSource, GiftCardBalanceCheckErrorType, GiftCardConfiguration, GiftCardElementData, GiftCardValidationError, GooglePayConfiguration, GooglePaymentDataRequest, ICore, IDropin, InstantPaymentTypes, Intent, IrisConfiguration, IrisData, IssuerListConfiguration, IssuerListData, KlarnaAction, KlarnaAdditionalDetailsData, KlarnaComponentRef, KlarnaConfiguration, KlarnaSdkData, KlarnaWidgetAuthorizeResponse, KlarnaWidgetProps, LedgerCurrencies, LegacyChallengeResolveData, LegacyFingerprintResolveData, MandateFrequencyType, MandateType, MultibancoVoucherResultProps, OnChangeData, OpenInvoiceActiveFieldsets, OpenInvoiceConfiguration, OpenInvoiceFieldsetsRefs, OpenInvoiceProps, OpenInvoiceStateData, OpenInvoiceStateError, OpenInvoiceStateValid, OpenInvoiceVisibility, Order, OrderButtonProps, OrderStatus, OxxoVoucherResultProps,
|
|
7854
|
+
export type { ANCVConfiguration, ANCVDataState, AchConfiguration, AchPlaceholders, ActionDescriptionType, ActionHandledReturnObject, AdditionalDetailsActions, AdditionalDetailsData, AddressData, AddressField, AmazonPayBackendConfiguration, AmazonPayButtonProps, AmazonPayButtonSettings, AmazonPayComponentProps, AmazonPayConfiguration, AmazonPayElementData, App, ApplePayButtonStyle, ApplePayButtonType, ApplePayConfiguration, ApplePayElementData, ApplePayPaymentAuthorizationResult, ApplePayPaymentOrderDetails, ApplePaySessionRequest, ApplePayWebConfiguration, AwaitComponentProps, AwaitConfiguration, BankDetailsSchema, BankTransferConfiguration, BankTransferSchema, BankTransferState, BeforeSubmitActions, BinLookupResponse, BinLookupResponseRaw, BoletoConfiguration, BoletoElementProps, BoletoInputDataState, BoletoInputErrorState, BoletoInputValidState, BrandConfiguration, BrandObject, BrowserInfo, CReqData, CardAllValidData, CardAutoCompleteData, CardBackendConfiguration, CardBinLookupData, CardBinValueData, CardBrandData, CardBrandsConfiguration, CardConfigSuccessData, CardConfiguration, CardElementData, CardErrorData, CardFieldValidData, CardFocusData, CardLoadData, CardPlaceholders, CashAppPayConfiguration, CashAppPayElementData, CashAppPayEventData, ChallengeData, ChallengeResolveData, ChallengeWindowSize, ChangeActionOptions, ChangePaymentDetailsButtonProps, ChargeAmount, CheckoutAdvancedFlowResponse, CheckoutDetailsRequest, CheckoutSession, CheckoutSessionConfig, ClickToPayConfiguration, ClickToPayPaymentData, ClickToPayProps, ClickToPayScheme, CommonVoucherProps, ComponentFocusObject, ComponentMethodsRef, CoreConfiguration, CoreModules, Currency, CustomCardConfiguration, CustomTranslations, DecodeObject, DeliverySpecifications, DokuVoucherResultProps, DonationConfiguration, DragonpayConfiguraton, DragonpayInputData, DragonpayInputIssuerItem, DragonpayInputProps, DragonpayVoucherResultProps, DropinComponentProps, DropinComponentState, DropinConfiguration, DropinStatus, DropinStatusProps, DualBrandSelectElement, EcontextConfiguration, EcontextInputSchema, EcontextVoucherResultProps, ErrorCodeObject, ExtendedMerchantInfo, FastlaneAddress, FastlaneAuthenticatedCustomerResult, FastlaneConfiguration, FastlaneConsentRenderState, FastlaneOptions, FastlanePaymentMethodConfiguration, FastlaneProfile, FastlaneSDKConfiguration, FastlaneShipping, FastlaneShippingAddressSelectorResult, FastlaneSignupConfiguration, FastlaneWindowInstance, FieldsetVisibility, FingerPrintData, FingerprintResolveData, FundingSource, GiftCardBalanceCheckErrorType, GiftCardConfiguration, GiftCardElementData, GiftCardValidationError, GooglePayConfiguration, GooglePaymentDataRequest, ICore, IDropin, InstantPaymentTypes, Intent, IrisConfiguration, IrisData, IssuerListConfiguration, IssuerListData, KlarnaAction, KlarnaAdditionalDetailsData, KlarnaComponentRef, KlarnaConfiguration, KlarnaSdkData, KlarnaWidgetAuthorizeResponse, KlarnaWidgetProps, LedgerCurrencies, LegacyChallengeResolveData, LegacyFingerprintResolveData, MandateFrequencyType, MandateType, MultibancoVoucherResultProps, OnChangeData, OpenInvoiceActiveFieldsets, OpenInvoiceConfiguration, OpenInvoiceFieldsetsRefs, OpenInvoiceProps, OpenInvoiceStateData, OpenInvoiceStateError, OpenInvoiceStateValid, OpenInvoiceVisibility, Order, OrderButtonProps, OrderStatus, OxxoVoucherResultProps, PayPalConfiguration, PayToConfiguration, PayToData, PayToPlaceholdersType, PayloadJSON, PaymentAction, PaymentActionsType, PaymentAmount, PaymentCompletedData, PaymentData, PaymentFailedData, PaymentMethodData, PaymentMethodGroup, PaymentMethodOptions, PaymentMethods, PaymentMethodsConfiguration, PaymentMethodsRequestData, PaymentMethodsResponse, PaymentResponseData, PersonalDetailsSchema, PixConfiguration, PixElementData, PostMsgParseErrorObject, PreAuthorizedDebitCanadaConfiguration, PreAuthorizedDebitCanadaPlaceholders, ProcessedPaymentStatusResponse, QRLoaderConfiguration, RawPaymentMethod, RawPaymentResponse, RawPaymentStatusResponse, RawStoredPaymentMethod, RecurringMetadata, RedirectConfiguration, Region, ResultCode, ResultObject, ResultValue, SepaConfiguration, SepaElementData, SessionsResponse, SignOutButtonProps, SocialSecurityMode, StatusFromAction, SubmitActions, SubmitData, SupportedLocale, ThreeDS2ActionProps, ThreeDS2ChallengeConfiguration, ThreeDS2ConfigProps, ThreeDS2DeviceFingerprintConfiguration, ThreeDS2FingerprintResponse, ThreeDS2FlowObject, ThreeDS2FlowProps, ThreeDS2Token, UIElementProps, UIElementStatus, UPIConfiguration, UpdateAmazonCheckoutSessionRequest, UpiMode, UpiPaymentData, UpiType, ValidationError, VoucherConfiguration, VoucherDetail, VoucherProps, balanceCheckResponseType, onBalanceCheckCallbackType, onOrderCancelData, onOrderCancelType, onOrderRequestCallbackType, onRequiringConfirmationCallbackType };
|