@adyen/adyen-web 6.0.0-alpha.8 → 6.0.0-beta.1
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/README.md +123 -182
- package/dist/cjs/adyen.css +65 -65
- 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 +904 -1252
- package/dist/es/adyen.css +65 -65
- package/dist/es/adyen.css.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/AchInput/AchInput.js +1 -1
- package/dist/es/components/Ach/components/AchInput/AchInput.js.map +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayButton.js.map +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayComponent.js.map +1 -1
- package/dist/es/components/AmazonPay/components/SignOutButton.js.map +1 -1
- package/dist/es/components/ApplePay/ApplePayService.js.map +1 -1
- package/dist/es/components/ApplePay/components/ApplePayButton.js.map +1 -1
- package/dist/es/components/BankTransfer/BankTransfer.js +1 -1
- package/dist/es/components/BankTransfer/BankTransfer.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/Card/Card.js +1 -1
- package/dist/es/components/Card/Card.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/CardInput.js +1 -1
- package/dist/es/components/Card/components/CardInput/CardInput.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/CVCHint.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/DualBrandingIcon/DualBrandingIcon.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/handlers.js +1 -1
- package/dist/es/components/Card/components/CardInput/handlers.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/types.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/useSRPanelForCardInputErrors.js +2 -0
- package/dist/es/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -0
- 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/CashAppPay/CashAppPay.js +1 -1
- package/dist/es/components/CashAppPay/CashAppPay.js.map +1 -1
- package/dist/es/components/CashAppPay/components/CashAppComponent.js.map +1 -1
- package/dist/es/components/CustomCard/CustomCard.js +1 -1
- package/dist/es/components/CustomCard/CustomCard.js.map +1 -1
- package/dist/es/components/CustomCard/CustomCardInput/CustomCardInput.js +1 -1
- package/dist/es/components/CustomCard/CustomCardInput/CustomCardInput.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/PaymentMethod/PaymentMethodItem/PaymentMethodItem.js.map +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodList.js +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodList.js.map +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js.map +1 -1
- package/dist/es/components/Dropin/elements/createElements.js.map +1 -1
- package/dist/es/components/Dropin/elements/createInstantPaymentElements.js.map +1 -1
- package/dist/es/components/Dropin/elements/createStoredElements.js.map +1 -1
- package/dist/es/components/Dropin/elements/filters.js.map +1 -1
- package/dist/es/components/Giftcard/Giftcard.js +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/Giropay/Giropay.js +1 -1
- package/dist/es/components/Giropay/Giropay.js.map +1 -1
- package/dist/es/components/GooglePay/GooglePay.js.map +1 -1
- package/dist/es/components/GooglePay/GooglePayService.js.map +1 -1
- package/dist/es/components/GooglePay/components/GooglePayButton.js.map +1 -1
- package/dist/es/components/GooglePay/requests.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/KlarnaWidget/KlarnaWidget.js +1 -1
- package/dist/es/components/Klarna/components/KlarnaWidget/KlarnaWidget.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/Oxxo/Oxxo.js.map +1 -1
- package/dist/es/components/PayPal/Paypal.js +1 -1
- package/dist/es/components/PayPal/Paypal.js.map +1 -1
- package/dist/es/components/Redirect/Redirect.js +1 -1
- package/dist/es/components/Redirect/Redirect.js.map +1 -1
- package/dist/es/components/Redirect/components/RedirectShopper/RedirectShopper.js +1 -1
- package/dist/es/components/Redirect/components/RedirectShopper/RedirectShopper.js.map +1 -1
- package/dist/es/components/ThreeDS2/components/Challenge/DoChallenge3DS2.js.map +1 -1
- package/dist/es/components/ThreeDS2/components/DeviceFingerprint/DoFingerprint3DS2.js.map +1 -1
- package/dist/es/components/Trustly/Trustly.js +1 -1
- package/dist/es/components/Trustly/Trustly.js.map +1 -1
- package/dist/es/components/WeChat/config.js +1 -1
- package/dist/es/components/WeChat/config.js.map +1 -1
- package/dist/es/components/components-name-map.js +1 -1
- package/dist/es/components/components-name-map.js.map +1 -1
- package/dist/es/components/helpers/IssuerListContainer/IssuerListContainer.js +1 -1
- package/dist/es/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
- package/dist/es/components/helpers/QRLoaderContainer/QRLoaderContainer.js +1 -1
- package/dist/es/components/helpers/QRLoaderContainer/QRLoaderContainer.js.map +1 -1
- package/dist/es/components/index.js +1 -1
- package/dist/es/components/internal/Address/components/AddressSearch.js +1 -1
- package/dist/es/components/internal/Address/components/AddressSearch.js.map +1 -1
- package/dist/es/components/internal/Await/Await.js.map +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/ClickToPayComponent.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPCards/CtPCards.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPOneTimePasswordInput.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPResendOtpLink.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPSection/CtPLogoutLink.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/errors/TimeoutError.js +1 -1
- package/dist/es/components/internal/ClickToPay/errors/TimeoutError.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/models/ShopperCard.js +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/SrcSdkLoader.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/services/sdks/SrciError.js +1 -1
- package/dist/es/components/internal/ClickToPay/services/sdks/SrciError.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/services/utils.js +1 -1
- package/dist/es/components/internal/ClickToPay/services/utils.js.map +1 -1
- package/dist/es/components/internal/DisclaimerMessage/DisclaimerMessage.js.map +1 -1
- package/dist/es/components/internal/FormFields/InputBase.js.map +1 -1
- package/dist/es/components/internal/FormFields/Select/Select.js.map +1 -1
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js.map +1 -1
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js.map +1 -1
- package/dist/es/components/internal/Modal/Modal.js.map +1 -1
- package/dist/es/components/internal/OpenInvoice/OpenInvoice.js +1 -1
- package/dist/es/components/internal/OpenInvoice/OpenInvoice.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 +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/defaultProps.js +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/defaultProps.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/binLookup/triggerBinLookUp.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/CSF.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/CSF.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/configureCallbacks.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/configureCallbacks.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/handleIOSTouchEvents.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/handleIOSTouchEvents.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/cardType.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/iframes/postMessageValidation.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/iframes/postMessageValidation.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/constants.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/constants.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/SecuredField.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/SecuredField.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/utilities/commonUtils.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/utilities/dom.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/utilities/dom.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/utilities/logger.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/utils.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/components/tx-variants.js +1 -1
- package/dist/es/components/tx-variants.js.map +1 -1
- package/dist/es/core/AdyenCheckout.js.map +1 -1
- package/dist/es/core/Analytics/Analytics.js +1 -1
- package/dist/es/core/Analytics/Analytics.js.map +1 -1
- package/dist/es/core/CheckoutSession/CheckoutSession.js.map +1 -1
- package/dist/es/core/Environment/Environment.js +1 -1
- package/dist/es/core/Environment/Environment.js.map +1 -1
- package/dist/es/core/ProcessResponse/PaymentAction/PaymentAction.js.map +1 -1
- package/dist/es/core/ProcessResponse/PaymentAction/actionTypes.js.map +1 -1
- package/dist/es/core/RiskModule/components/DeviceFingerprint/GetDeviceFingerprint.js.map +1 -1
- package/dist/es/core/Services/analytics/collect-id.js +1 -1
- package/dist/es/core/Services/analytics/collect-id.js.map +1 -1
- package/dist/es/core/Services/http.js +1 -1
- package/dist/es/core/Services/http.js.map +1 -1
- package/dist/es/core/Services/sessions/setup-session.js +1 -1
- package/dist/es/core/Services/sessions/setup-session.js.map +1 -1
- package/dist/es/core/config.js +1 -1
- package/dist/es/core/config.js.map +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/core/core.js.map +1 -1
- package/dist/es/core/core.registry.js.map +1 -1
- package/dist/es/core/utils.js +1 -1
- package/dist/es/core/utils.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/index.d.ts +904 -1252
- package/dist/es/index.js +1 -1
- package/dist/es/language/constants.js +1 -1
- package/dist/es/language/constants.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/listenerUtils.js +2 -0
- package/dist/es/utils/listenerUtils.js.map +1 -0
- package/dist/es/utils/regex.js.map +1 -1
- package/dist/es-legacy/adyen.css +65 -65
- package/dist/es-legacy/adyen.css.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/AchInput/AchInput.js +1 -1
- package/dist/es-legacy/components/Ach/components/AchInput/AchInput.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayButton.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayComponent.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/components/SignOutButton.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/ApplePayService.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/components/ApplePayButton.js.map +1 -1
- package/dist/es-legacy/components/BankTransfer/BankTransfer.js +1 -1
- package/dist/es-legacy/components/BankTransfer/BankTransfer.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/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 +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/CardInput.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CVCHint.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/DualBrandingIcon/DualBrandingIcon.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/handlers.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/handlers.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 +2 -0
- package/dist/es-legacy/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -0
- 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/CashAppPay/CashAppPay.js +1 -1
- package/dist/es-legacy/components/CashAppPay/CashAppPay.js.map +1 -1
- package/dist/es-legacy/components/CashAppPay/components/CashAppComponent.js.map +1 -1
- package/dist/es-legacy/components/CustomCard/CustomCard.js +1 -1
- package/dist/es-legacy/components/CustomCard/CustomCard.js.map +1 -1
- package/dist/es-legacy/components/CustomCard/CustomCardInput/CustomCardInput.js +1 -1
- package/dist/es-legacy/components/CustomCard/CustomCardInput/CustomCardInput.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/PaymentMethod/PaymentMethodItem/PaymentMethodItem.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodList.js +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodList.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/createElements.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/createInstantPaymentElements.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/createStoredElements.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/filters.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/Giftcard.js +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/Giropay/Giropay.js +1 -1
- package/dist/es-legacy/components/Giropay/Giropay.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/GooglePay/components/GooglePayButton.js.map +1 -1
- package/dist/es-legacy/components/GooglePay/requests.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/KlarnaWidget/KlarnaWidget.js +1 -1
- package/dist/es-legacy/components/Klarna/components/KlarnaWidget/KlarnaWidget.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/Oxxo/Oxxo.js.map +1 -1
- package/dist/es-legacy/components/PayPal/Paypal.js +1 -1
- package/dist/es-legacy/components/PayPal/Paypal.js.map +1 -1
- package/dist/es-legacy/components/Redirect/Redirect.js +1 -1
- package/dist/es-legacy/components/Redirect/Redirect.js.map +1 -1
- package/dist/es-legacy/components/Redirect/components/RedirectShopper/RedirectShopper.js +1 -1
- package/dist/es-legacy/components/Redirect/components/RedirectShopper/RedirectShopper.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/Challenge/DoChallenge3DS2.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/DeviceFingerprint/DoFingerprint3DS2.js.map +1 -1
- package/dist/es-legacy/components/Trustly/Trustly.js +1 -1
- package/dist/es-legacy/components/Trustly/Trustly.js.map +1 -1
- package/dist/es-legacy/components/WeChat/config.js +1 -1
- package/dist/es-legacy/components/WeChat/config.js.map +1 -1
- package/dist/es-legacy/components/components-name-map.js +1 -1
- package/dist/es-legacy/components/components-name-map.js.map +1 -1
- package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.js +1 -1
- package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
- package/dist/es-legacy/components/helpers/QRLoaderContainer/QRLoaderContainer.js +1 -1
- package/dist/es-legacy/components/helpers/QRLoaderContainer/QRLoaderContainer.js.map +1 -1
- package/dist/es-legacy/components/index.js +1 -1
- package/dist/es-legacy/components/internal/Address/components/AddressSearch.js +1 -1
- package/dist/es-legacy/components/internal/Address/components/AddressSearch.js.map +1 -1
- package/dist/es-legacy/components/internal/Await/Await.js.map +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/ClickToPayComponent.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPCards/CtPCards.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPOneTimePasswordInput.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPResendOtpLink.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPSection/CtPLogoutLink.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/errors/TimeoutError.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/errors/TimeoutError.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/models/ShopperCard.js +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/sdks/SrcSdkLoader.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/SrciError.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/SrciError.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/utils.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/utils.js.map +1 -1
- package/dist/es-legacy/components/internal/DisclaimerMessage/DisclaimerMessage.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputBase.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/Select.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectList.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectListItem.js.map +1 -1
- package/dist/es-legacy/components/internal/Modal/Modal.js.map +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.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 +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/defaultProps.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/defaultProps.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/CSF.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/CSF.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/configureCallbacks.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/configureCallbacks.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleIOSTouchEvents.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleIOSTouchEvents.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/CSF/utils/iframes/postMessageValidation.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/iframes/postMessageValidation.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/constants.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/constants.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/SecuredField.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/SecuredField.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/utilities/commonUtils.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/utilities/dom.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/utilities/dom.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/utilities/logger.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/utils.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/UIElement/UIElement.js +1 -1
- package/dist/es-legacy/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es-legacy/components/tx-variants.js +1 -1
- package/dist/es-legacy/components/tx-variants.js.map +1 -1
- package/dist/es-legacy/core/AdyenCheckout.js.map +1 -1
- package/dist/es-legacy/core/Analytics/Analytics.js +1 -1
- package/dist/es-legacy/core/Analytics/Analytics.js.map +1 -1
- package/dist/es-legacy/core/CheckoutSession/CheckoutSession.js.map +1 -1
- package/dist/es-legacy/core/Environment/Environment.js +1 -1
- package/dist/es-legacy/core/Environment/Environment.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentAction/PaymentAction.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentAction/actionTypes.js.map +1 -1
- package/dist/es-legacy/core/RiskModule/components/DeviceFingerprint/GetDeviceFingerprint.js.map +1 -1
- package/dist/es-legacy/core/Services/analytics/collect-id.js +1 -1
- package/dist/es-legacy/core/Services/analytics/collect-id.js.map +1 -1
- package/dist/es-legacy/core/Services/http.js +1 -1
- package/dist/es-legacy/core/Services/http.js.map +1 -1
- package/dist/es-legacy/core/Services/sessions/setup-session.js +1 -1
- package/dist/es-legacy/core/Services/sessions/setup-session.js.map +1 -1
- package/dist/es-legacy/core/config.js +1 -1
- package/dist/es-legacy/core/config.js.map +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/core/core.registry.js.map +1 -1
- package/dist/es-legacy/core/utils.js +1 -1
- package/dist/es-legacy/core/utils.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/index.js +1 -1
- package/dist/es-legacy/language/constants.js +1 -1
- package/dist/es-legacy/language/constants.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/listenerUtils.js +2 -0
- package/dist/es-legacy/utils/listenerUtils.js.map +1 -0
- package/dist/es-legacy/utils/regex.js.map +1 -1
- package/package.json +36 -32
- package/dist/es/components/Ideal/index.js +0 -2
- package/dist/es/components/Ideal/index.js.map +0 -1
- package/dist/es/core/Services/analytics/log-event.js +0 -2
- package/dist/es/core/Services/analytics/log-event.js.map +0 -1
- package/dist/es-legacy/components/Ideal/index.js +0 -2
- package/dist/es-legacy/components/Ideal/index.js.map +0 -1
- package/dist/es-legacy/core/Services/analytics/log-event.js +0 -2
- package/dist/es-legacy/core/Services/analytics/log-event.js.map +0 -1
package/dist/cjs/index.d.cts
CHANGED
|
@@ -123,6 +123,90 @@ declare class AdyenCheckoutError extends Error {
|
|
|
123
123
|
constructor(type: keyof typeof AdyenCheckoutError.errorTypes, message?: string, options?: CheckoutErrorOptions);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
interface Experiment {
|
|
127
|
+
controlGroup: boolean;
|
|
128
|
+
experimentId: string;
|
|
129
|
+
experimentName?: string;
|
|
130
|
+
}
|
|
131
|
+
interface AnalyticsData {
|
|
132
|
+
/**
|
|
133
|
+
* Relates to PMs used within Plugins
|
|
134
|
+
* https://docs.adyen.com/development-resources/application-information/?tab=integrator_built_2#application-information-fields
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
applicationInfo?: {
|
|
138
|
+
externalPlatform: {
|
|
139
|
+
name: string;
|
|
140
|
+
version: string;
|
|
141
|
+
integrator: string;
|
|
142
|
+
};
|
|
143
|
+
merchantApplication: {
|
|
144
|
+
name: string;
|
|
145
|
+
version: string;
|
|
146
|
+
};
|
|
147
|
+
merchantDevice?: {
|
|
148
|
+
os: string;
|
|
149
|
+
osVersion: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Use a checkoutAttemptId from a previous page
|
|
154
|
+
*/
|
|
155
|
+
checkoutAttemptId?: string;
|
|
156
|
+
}
|
|
157
|
+
interface AnalyticsOptions {
|
|
158
|
+
/**
|
|
159
|
+
* Enable/Disable all analytics
|
|
160
|
+
*/
|
|
161
|
+
enabled?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Data to be sent along with the event data
|
|
164
|
+
*/
|
|
165
|
+
payload?: any;
|
|
166
|
+
/**
|
|
167
|
+
* List of experiments to be sent in the collectId call // TODO - still used?
|
|
168
|
+
*/
|
|
169
|
+
experiments?: Experiment[];
|
|
170
|
+
/**
|
|
171
|
+
* A wrapper to pass data needed when analytics is setup
|
|
172
|
+
*/
|
|
173
|
+
analyticsData?: AnalyticsData;
|
|
174
|
+
}
|
|
175
|
+
interface AnalyticsObject {
|
|
176
|
+
timestamp: string;
|
|
177
|
+
component: string;
|
|
178
|
+
id: string;
|
|
179
|
+
code?: string;
|
|
180
|
+
errorType?: string;
|
|
181
|
+
message?: string;
|
|
182
|
+
type?: string;
|
|
183
|
+
subtype?: string;
|
|
184
|
+
target?: string;
|
|
185
|
+
metadata?: Record<string, any>;
|
|
186
|
+
isStoredPaymentMethod?: boolean;
|
|
187
|
+
brand?: string;
|
|
188
|
+
validationErrorCode?: string;
|
|
189
|
+
validationErrorMessage?: string;
|
|
190
|
+
issuer?: string;
|
|
191
|
+
isExpress?: boolean;
|
|
192
|
+
expressPage?: string;
|
|
193
|
+
result?: string;
|
|
194
|
+
}
|
|
195
|
+
type ANALYTICS_EVENT = 'log' | 'error' | 'info';
|
|
196
|
+
type AnalyticsInitialEvent = {
|
|
197
|
+
containerWidth: number;
|
|
198
|
+
component: string;
|
|
199
|
+
flavor: string;
|
|
200
|
+
paymentMethods?: any[];
|
|
201
|
+
sessionId?: string;
|
|
202
|
+
};
|
|
203
|
+
type CreateAnalyticsEventData = Omit<AnalyticsObject, 'timestamp' | 'id'>;
|
|
204
|
+
type CreateAnalyticsEventObject = {
|
|
205
|
+
event: ANALYTICS_EVENT;
|
|
206
|
+
data: CreateAnalyticsEventData;
|
|
207
|
+
};
|
|
208
|
+
type SendAnalyticsObject = Omit<AnalyticsObject, 'timestamp' | 'component' | 'id'>;
|
|
209
|
+
|
|
126
210
|
interface ImageOptions {
|
|
127
211
|
extension?: string;
|
|
128
212
|
imageFolder?: string;
|
|
@@ -293,6 +377,7 @@ type DatePolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
|
293
377
|
|
|
294
378
|
declare class TimeoutError extends Error {
|
|
295
379
|
constructor(message: string);
|
|
380
|
+
toString(): string;
|
|
296
381
|
}
|
|
297
382
|
|
|
298
383
|
type ClickToPayProps = {
|
|
@@ -373,7 +458,7 @@ interface PayButtonProps extends ButtonProps {
|
|
|
373
458
|
}
|
|
374
459
|
|
|
375
460
|
type PayButtonFunctionProps = Omit<PayButtonProps, 'amount'>;
|
|
376
|
-
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError'>;
|
|
461
|
+
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
377
462
|
type UIElementProps = BaseElementProps & CoreCallbacks & {
|
|
378
463
|
environment?: string;
|
|
379
464
|
session?: Session;
|
|
@@ -434,27 +519,6 @@ type UIElementProps = BaseElementProps & CoreCallbacks & {
|
|
|
434
519
|
*/
|
|
435
520
|
paymentMethodType?: string;
|
|
436
521
|
};
|
|
437
|
-
interface IUIElement extends IBaseElement {
|
|
438
|
-
core: ICore;
|
|
439
|
-
type: string;
|
|
440
|
-
isValid: boolean;
|
|
441
|
-
displayName: string;
|
|
442
|
-
accessibleName: string;
|
|
443
|
-
icon: string;
|
|
444
|
-
elementRef: UIElement;
|
|
445
|
-
submit(): void;
|
|
446
|
-
setComponentRef(ref: any): void;
|
|
447
|
-
updateParent(options?: CoreConfiguration): Promise<ICore>;
|
|
448
|
-
setElementStatus(status: UIElementStatus, props: any): UIElement;
|
|
449
|
-
setStatus(status: UIElementStatus, props?: {
|
|
450
|
-
message?: string;
|
|
451
|
-
[key: string]: any;
|
|
452
|
-
}): UIElement;
|
|
453
|
-
handleAction(action: PaymentAction): UIElement | null;
|
|
454
|
-
showValidation(): void;
|
|
455
|
-
setState(newState: object): void;
|
|
456
|
-
isAvailable(): Promise<void>;
|
|
457
|
-
}
|
|
458
522
|
type UIElementStatus = 'ready' | 'loading' | 'error' | 'success';
|
|
459
523
|
interface ComponentMethodsRef {
|
|
460
524
|
showValidation?: () => void;
|
|
@@ -463,75 +527,54 @@ interface ComponentMethodsRef {
|
|
|
463
527
|
|
|
464
528
|
interface CardConfiguration extends UIElementProps {
|
|
465
529
|
/**
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
* Configuration specific to brands
|
|
472
|
-
*/
|
|
473
|
-
brandsConfiguration?: CardBrandsConfiguration;
|
|
474
|
-
/**
|
|
475
|
-
* Configuration for Click to Pay
|
|
476
|
-
*/
|
|
477
|
-
clickToPayConfiguration?: ClickToPayProps;
|
|
478
|
-
/**
|
|
479
|
-
* Disable Click to Pay for testing purposes
|
|
480
|
-
* @defaultValue false
|
|
481
|
-
* @internal
|
|
530
|
+
* Automatically shift the focus from one field to another. Usually happens from a valid Expiry Date field to the Security Code field,
|
|
531
|
+
* but some BINS also allow us to know that the PAN is complete, in which case we can shift focus to the date field
|
|
532
|
+
* @defaultValue `true`
|
|
533
|
+
*
|
|
534
|
+
* - merchant set config option
|
|
482
535
|
*/
|
|
483
|
-
|
|
536
|
+
autoFocus?: boolean;
|
|
484
537
|
/**
|
|
485
|
-
*
|
|
486
|
-
*
|
|
538
|
+
* Config t olimit the countries that will show in the country dropdown
|
|
539
|
+
* - merchant set config option
|
|
487
540
|
*/
|
|
488
|
-
|
|
541
|
+
billingAddressAllowedCountries?: string[];
|
|
489
542
|
/**
|
|
490
|
-
*
|
|
491
|
-
*
|
|
543
|
+
* If billingAddressRequired is set to true, you can set this to partial to require the shopper's postal code instead of the full address.
|
|
544
|
+
* @defaultValue full
|
|
545
|
+
*
|
|
546
|
+
* - merchant set config option
|
|
492
547
|
*/
|
|
493
|
-
|
|
494
|
-
/** List of brands accepted by the component */
|
|
495
|
-
brands?: string[];
|
|
548
|
+
billingAddressMode?: 'full' | 'partial' | 'none';
|
|
496
549
|
/**
|
|
497
|
-
*
|
|
550
|
+
* Show Address fields
|
|
498
551
|
* @defaultValue `false`
|
|
552
|
+
*
|
|
553
|
+
* - merchant set config option
|
|
499
554
|
*/
|
|
500
|
-
|
|
555
|
+
billingAddressRequired?: boolean;
|
|
501
556
|
/**
|
|
502
|
-
*
|
|
503
|
-
*
|
|
557
|
+
* Config to specify which address field are required
|
|
558
|
+
* - merchant set config option
|
|
504
559
|
*/
|
|
505
|
-
|
|
560
|
+
billingAddressRequiredFields?: string[];
|
|
506
561
|
/**
|
|
507
|
-
*
|
|
508
|
-
*
|
|
562
|
+
* Only set for a stored card,
|
|
563
|
+
* brand is never set for a generic card component OR a single-branded card
|
|
564
|
+
* @internal
|
|
509
565
|
*/
|
|
510
|
-
|
|
511
|
-
/** Config option related to whether we set storePaymentMethod in the card data, and showing/hiding the "store details" checkbox */
|
|
512
|
-
enableStoreDetails?: boolean;
|
|
513
|
-
/** Show/hide the Security Code field - merchant set config option */
|
|
566
|
+
brand?: string;
|
|
514
567
|
/**
|
|
515
|
-
*
|
|
568
|
+
* List of brands accepted by the component
|
|
516
569
|
* @internal
|
|
570
|
+
* - but can also be overwritten by merchant config option
|
|
517
571
|
*/
|
|
518
|
-
|
|
519
|
-
/** Show/hide the CVC field - merchant set config option */
|
|
520
|
-
hideCVC?: boolean;
|
|
572
|
+
brands?: string[];
|
|
521
573
|
/**
|
|
522
|
-
*
|
|
523
|
-
*
|
|
524
|
-
* (For the Bancontact card comp this is set to true since dual-branding possibilities mean the BCMC card can now end up needing to show a CVC field)
|
|
574
|
+
* Configuration specific to brands
|
|
575
|
+
* - merchant set config option
|
|
525
576
|
*/
|
|
526
|
-
|
|
527
|
-
/** Show/hide the card holder name field */
|
|
528
|
-
hasHolderName?: boolean;
|
|
529
|
-
/** Whether the card holder name field will be required */
|
|
530
|
-
holderNameRequired?: boolean;
|
|
531
|
-
/** An object sent in the /paymentMethods response */
|
|
532
|
-
configuration?: CardBackendConfiguration;
|
|
533
|
-
/** Configure placeholder text for holderName, cardNumber, expirationDate, securityCode and password. */
|
|
534
|
-
placeholders?: Placeholders;
|
|
577
|
+
brandsConfiguration?: CardBrandsConfiguration;
|
|
535
578
|
/**
|
|
536
579
|
* Defines the size of the challenge Component
|
|
537
580
|
*
|
|
@@ -542,142 +585,253 @@ interface CardConfiguration extends UIElementProps {
|
|
|
542
585
|
* 05: [100%, 100%]
|
|
543
586
|
*
|
|
544
587
|
* @defaultValue '02'
|
|
588
|
+
*
|
|
589
|
+
* - merchant set config option
|
|
545
590
|
*/
|
|
546
591
|
challengeWindowSize?: '01' | '02' | '03' | '04' | '05';
|
|
592
|
+
/**
|
|
593
|
+
* Configuration for Click to Pay
|
|
594
|
+
* - merchant set config option
|
|
595
|
+
*/
|
|
596
|
+
clickToPayConfiguration?: ClickToPayProps;
|
|
597
|
+
/**
|
|
598
|
+
* An object sent in the /paymentMethods response
|
|
599
|
+
* @internal
|
|
600
|
+
*/
|
|
601
|
+
configuration?: CardBackendConfiguration;
|
|
602
|
+
/**
|
|
603
|
+
* Mostly used in relation to KCP cards
|
|
604
|
+
* @internal
|
|
605
|
+
*/
|
|
606
|
+
countryCode?: string;
|
|
547
607
|
/**
|
|
548
608
|
* Object that contains placeholder information that you can use to prefill fields.
|
|
609
|
+
* - merchant set config option
|
|
549
610
|
*/
|
|
550
611
|
data?: {
|
|
551
612
|
holderName?: string;
|
|
552
613
|
billingAddress?: Partial<AddressData>;
|
|
553
614
|
};
|
|
554
615
|
/**
|
|
555
|
-
*
|
|
616
|
+
* Disable Click to Pay for testing purposes
|
|
617
|
+
* @defaultValue false
|
|
618
|
+
* @internal
|
|
556
619
|
*/
|
|
557
|
-
|
|
620
|
+
_disableClickToPay?: boolean;
|
|
558
621
|
/**
|
|
559
|
-
*
|
|
622
|
+
* Turn on the procedure to force the arrow keys on an iOS soft keyboard to always be disabled
|
|
623
|
+
* @defaultValue `false`
|
|
624
|
+
*
|
|
625
|
+
* - merchant set config option
|
|
560
626
|
*/
|
|
561
|
-
|
|
627
|
+
disableIOSArrowKeys?: boolean;
|
|
562
628
|
/**
|
|
563
|
-
*
|
|
564
|
-
*
|
|
629
|
+
* Object to configure the message and text for a disclaimer message, added after the Card input fields
|
|
630
|
+
* - merchant set config option
|
|
565
631
|
*/
|
|
566
|
-
|
|
632
|
+
disclaimerMessage?: DisclaimerMsgObject;
|
|
567
633
|
/**
|
|
568
|
-
*
|
|
634
|
+
* Allow binLookup process to occur
|
|
635
|
+
* @defaultValue `true`
|
|
636
|
+
*
|
|
637
|
+
* - merchant set config option
|
|
569
638
|
*/
|
|
570
|
-
|
|
639
|
+
doBinLookup?: boolean;
|
|
571
640
|
/**
|
|
572
|
-
*
|
|
641
|
+
* Config option related to whether we set storePaymentMethod in the card data, and showing/hiding the "store details" checkbox
|
|
642
|
+
* - merchant set config option
|
|
573
643
|
*/
|
|
574
|
-
|
|
644
|
+
enableStoreDetails?: boolean;
|
|
575
645
|
/**
|
|
576
|
-
*
|
|
646
|
+
* Comes from Stored payment method object
|
|
647
|
+
* @internal
|
|
577
648
|
*/
|
|
578
|
-
|
|
649
|
+
expiryMonth?: string;
|
|
579
650
|
/**
|
|
580
|
-
*
|
|
651
|
+
* Allows SF to return an unencrypted expiryDate
|
|
652
|
+
* - merchant set config option
|
|
581
653
|
*/
|
|
582
|
-
|
|
654
|
+
exposeExpiryDate?: boolean;
|
|
583
655
|
/**
|
|
584
|
-
*
|
|
656
|
+
* Force securedFields to use the 'compat' version of JWE. (Use case: running custom http:// test environment
|
|
657
|
+
* - merchant set config option
|
|
585
658
|
*/
|
|
586
|
-
|
|
659
|
+
forceCompat?: boolean;
|
|
587
660
|
/**
|
|
588
|
-
*
|
|
661
|
+
* Funding source field populated when 'splitCardFundingSources' is used
|
|
589
662
|
* @internal
|
|
590
663
|
*/
|
|
591
|
-
|
|
592
|
-
lastFour?: string;
|
|
664
|
+
fundingSource?: 'debit' | 'credit';
|
|
593
665
|
/**
|
|
594
|
-
*
|
|
666
|
+
* Decides whether the CVC (Security Code) component will even be rendered.
|
|
667
|
+
* Always true except when hideCVC set to false by merchant OR in the case of a *stored* BCMC card.
|
|
668
|
+
* (For the Bancontact card comp this is set to true since dual-branding possibilities mean the BCMC card can now end up needing to show a CVC field)
|
|
669
|
+
* @internal
|
|
595
670
|
*/
|
|
596
|
-
|
|
671
|
+
hasCVC?: boolean;
|
|
597
672
|
/**
|
|
598
|
-
* Show
|
|
599
|
-
*
|
|
673
|
+
* Show/hide the card holder name field
|
|
674
|
+
* - merchant set config option
|
|
600
675
|
*/
|
|
601
|
-
|
|
676
|
+
hasHolderName?: boolean;
|
|
602
677
|
/**
|
|
603
|
-
*
|
|
604
|
-
*
|
|
678
|
+
* Show/hide the Security Code field
|
|
679
|
+
* - merchant set config option
|
|
605
680
|
*/
|
|
606
|
-
|
|
681
|
+
hideCVC?: boolean;
|
|
607
682
|
/**
|
|
608
|
-
*
|
|
683
|
+
* Whether the card holder name field will be required
|
|
684
|
+
* - merchant set config option
|
|
609
685
|
*/
|
|
610
|
-
|
|
611
|
-
billingAddressAllowedCountries?: string[];
|
|
686
|
+
holderNameRequired?: boolean;
|
|
612
687
|
/**
|
|
613
688
|
* Relates to storedCards
|
|
689
|
+
* @internal
|
|
614
690
|
*/
|
|
615
691
|
id?: string;
|
|
616
692
|
/**
|
|
617
693
|
* Configure the installment options for the card
|
|
694
|
+
* - merchant set config option
|
|
618
695
|
*/
|
|
619
696
|
installmentOptions?: InstallmentOptions;
|
|
620
697
|
/**
|
|
621
|
-
*
|
|
698
|
+
* Implements a workaround for iOS/Safari bug where keypad doesn't retract when SF paymentMethod is no longer active
|
|
622
699
|
* @defaultValue `true`
|
|
700
|
+
*
|
|
701
|
+
* - merchant set config option
|
|
623
702
|
*/
|
|
624
|
-
|
|
703
|
+
keypadFix?: boolean;
|
|
704
|
+
/**
|
|
705
|
+
* Related to storedCards - this information comes from the storedCardData once we process it
|
|
706
|
+
* @internal
|
|
707
|
+
*/
|
|
708
|
+
lastFour?: string;
|
|
625
709
|
/**
|
|
626
710
|
* For some scenarios make the card input fields (PAN, Expiry Date, Security Code) have type="tel" rather than type="text" inputmode="numeric"
|
|
627
711
|
* @defaultValue `false`
|
|
712
|
+
*
|
|
713
|
+
* - merchant set config option
|
|
628
714
|
*/
|
|
629
715
|
legacyInputMode?: boolean;
|
|
716
|
+
/**
|
|
717
|
+
* Adds type="password" to the Security code input field, causing its value to be masked
|
|
718
|
+
* @defaultValue `false`
|
|
719
|
+
*
|
|
720
|
+
* - merchant set config option
|
|
721
|
+
*/
|
|
722
|
+
maskSecurityCode?: boolean;
|
|
630
723
|
/**
|
|
631
724
|
* Specify the minimum expiry date that will be considered valid
|
|
725
|
+
*
|
|
726
|
+
* - merchant set config option
|
|
632
727
|
*/
|
|
633
728
|
minimumExpiryDate?: string[];
|
|
634
729
|
/**
|
|
635
|
-
*
|
|
636
|
-
*
|
|
637
|
-
* @
|
|
730
|
+
* When in Dropin this is the name shown in the paymentMethods list
|
|
731
|
+
* @defaultValue - derived from PaymentMethods response
|
|
732
|
+
* @internal - but can also be overwritten by merchant config option
|
|
638
733
|
*/
|
|
639
|
-
|
|
734
|
+
name?: string;
|
|
640
735
|
/**
|
|
641
|
-
*
|
|
736
|
+
* After binLookup call - provides the brand(s) we detect the user is entering, and if we support the brand(s)
|
|
737
|
+
* - merchant set config option
|
|
738
|
+
*/
|
|
739
|
+
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
740
|
+
/**
|
|
741
|
+
* Provides the BIN Number of the card (up to 6 digits), called as the user types in the PAN.
|
|
742
|
+
* - merchant set config option
|
|
743
|
+
*/
|
|
744
|
+
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
745
|
+
/**
|
|
746
|
+
* Called when a field loses focus.
|
|
747
|
+
* - merchant set config option
|
|
748
|
+
*/
|
|
749
|
+
onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
750
|
+
/**
|
|
751
|
+
* Called once we detect the card brand.
|
|
752
|
+
* - merchant set config option
|
|
753
|
+
*/
|
|
754
|
+
onBrand?: (event: CbObjOnBrand) => void;
|
|
755
|
+
/**
|
|
756
|
+
* Called once the card input fields are ready to use.
|
|
757
|
+
* - merchant set config option
|
|
758
|
+
*/
|
|
759
|
+
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
760
|
+
/**
|
|
761
|
+
* Called when a field becomes valid and also if a valid field changes and becomes invalid.
|
|
762
|
+
* For the card number field, it returns the last 4 digits of the card number.
|
|
763
|
+
* - merchant set config option
|
|
764
|
+
*/
|
|
765
|
+
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
766
|
+
/**
|
|
767
|
+
* Called when a field gains focus.
|
|
768
|
+
* - merchant set config option
|
|
769
|
+
*/
|
|
770
|
+
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
771
|
+
/**
|
|
772
|
+
* Called once all the card input fields have been created but are not yet ready to use.
|
|
773
|
+
* - merchant set config option
|
|
774
|
+
*/
|
|
775
|
+
onLoad?: (event: CbObjOnLoad) => void;
|
|
776
|
+
/**
|
|
777
|
+
* Configure placeholder text for holderName, cardNumber, expirationDate, securityCode and password.
|
|
778
|
+
* - merchant set config option
|
|
779
|
+
*/
|
|
780
|
+
placeholders?: Placeholders;
|
|
781
|
+
/**
|
|
782
|
+
* Position holder name above card number field (instead of having it after the security code field)
|
|
642
783
|
* @defaultValue `false`
|
|
784
|
+
*
|
|
785
|
+
* - merchant set config option
|
|
643
786
|
*/
|
|
644
|
-
|
|
787
|
+
positionHolderNameOnTop?: boolean;
|
|
645
788
|
/**
|
|
646
|
-
*
|
|
789
|
+
* Show/hide the brand logo when the card brand has been recognized
|
|
647
790
|
* @defaultValue `true`
|
|
791
|
+
*
|
|
792
|
+
* - merchant set config option
|
|
648
793
|
*/
|
|
649
|
-
|
|
794
|
+
showBrandIcon?: boolean;
|
|
650
795
|
/**
|
|
651
|
-
*
|
|
652
|
-
* @defaultValue `
|
|
796
|
+
* Show/hide the contextual text under each form field. The contextual text is to assist shoppers filling in the payment form.
|
|
797
|
+
* @defaultValue `true`
|
|
798
|
+
*
|
|
799
|
+
* - merchant set config option
|
|
653
800
|
*/
|
|
654
|
-
|
|
801
|
+
showContextualElement?: boolean;
|
|
655
802
|
/**
|
|
656
|
-
*
|
|
803
|
+
* Set whether to show installments broken down into amounts or months
|
|
804
|
+
* @defaultValue `true`
|
|
805
|
+
*
|
|
806
|
+
* - merchant set config option
|
|
657
807
|
*/
|
|
658
|
-
|
|
808
|
+
showInstallmentAmounts?: boolean;
|
|
659
809
|
/**
|
|
660
|
-
*
|
|
810
|
+
* Related to storedCards - this information comes from the storedCardData once we process it
|
|
811
|
+
* @internal
|
|
661
812
|
*/
|
|
662
|
-
|
|
813
|
+
storedPaymentMethodId?: string;
|
|
663
814
|
/**
|
|
664
|
-
*
|
|
815
|
+
* Show/hide the "store details" checkbox
|
|
816
|
+
* @internal
|
|
665
817
|
*/
|
|
666
|
-
|
|
818
|
+
showStoreDetailsCheckbox?: boolean;
|
|
667
819
|
/**
|
|
668
|
-
*
|
|
669
|
-
*
|
|
820
|
+
* Object to configure the styling of the inputs in the iframes that are used to present the PAN, Expiry Date & Security Code fields
|
|
821
|
+
* - merchant set config option
|
|
670
822
|
*/
|
|
671
|
-
|
|
823
|
+
styles?: StylesObject;
|
|
672
824
|
/**
|
|
673
|
-
*
|
|
825
|
+
* Relates to storedCards and the type of interactions they support e.g. "Ecommerce", "ContAuth" etc
|
|
674
826
|
* @internal
|
|
675
827
|
*/
|
|
676
|
-
|
|
828
|
+
supportedShopperInteractions?: string[];
|
|
677
829
|
/**
|
|
678
|
-
*
|
|
830
|
+
* type will always be "card" (generic card, stored card)
|
|
831
|
+
* except for a single branded card when it will be the same as the brand prop
|
|
832
|
+
* @internal
|
|
679
833
|
*/
|
|
680
|
-
|
|
834
|
+
type?: string;
|
|
681
835
|
}
|
|
682
836
|
type SocialSecurityMode = 'show' | 'hide' | 'auto';
|
|
683
837
|
/** If the merchant wishes to set any of these properties in their local config they should do so via a "configuration" object */
|
|
@@ -762,126 +916,6 @@ interface DualBrandSelectElement {
|
|
|
762
916
|
brandObject: BrandObject;
|
|
763
917
|
}
|
|
764
918
|
|
|
765
|
-
interface RiskModuleOptions {
|
|
766
|
-
enabled: boolean;
|
|
767
|
-
onComplete?: (data: any) => void;
|
|
768
|
-
onError?: (error: any) => void;
|
|
769
|
-
node?: string;
|
|
770
|
-
}
|
|
771
|
-
interface RiskModuleProps extends BaseElementProps {
|
|
772
|
-
risk: RiskModuleOptions;
|
|
773
|
-
loadingContext: string;
|
|
774
|
-
}
|
|
775
|
-
declare class RiskElement extends BaseElement<RiskModuleProps> {
|
|
776
|
-
static type: string;
|
|
777
|
-
static defaultProps: {
|
|
778
|
-
risk: {
|
|
779
|
-
enabled: boolean;
|
|
780
|
-
onComplete: () => void;
|
|
781
|
-
onError: () => void;
|
|
782
|
-
node: string;
|
|
783
|
-
};
|
|
784
|
-
};
|
|
785
|
-
private nodeRiskContainer;
|
|
786
|
-
constructor(checkout: ICore, props?: any);
|
|
787
|
-
formatProps(props: any): any;
|
|
788
|
-
onComplete: (result: any) => void;
|
|
789
|
-
onError: (error: any) => void;
|
|
790
|
-
get isValid(): any;
|
|
791
|
-
get data(): any;
|
|
792
|
-
cleanUp: () => void;
|
|
793
|
-
componentWillUnmount(): void;
|
|
794
|
-
render(): h.JSX.Element;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
interface Experiment {
|
|
798
|
-
controlGroup: boolean;
|
|
799
|
-
experimentId: string;
|
|
800
|
-
experimentName?: string;
|
|
801
|
-
}
|
|
802
|
-
interface AnalyticsData {
|
|
803
|
-
/**
|
|
804
|
-
* Relates to PMs used within Plugins
|
|
805
|
-
* https://docs.adyen.com/development-resources/application-information/?tab=integrator_built_2#application-information-fields
|
|
806
|
-
* @internal
|
|
807
|
-
*/
|
|
808
|
-
applicationInfo?: {
|
|
809
|
-
externalPlatform: {
|
|
810
|
-
name: string;
|
|
811
|
-
version: string;
|
|
812
|
-
integrator: string;
|
|
813
|
-
};
|
|
814
|
-
merchantApplication: {
|
|
815
|
-
name: string;
|
|
816
|
-
version: string;
|
|
817
|
-
};
|
|
818
|
-
merchantDevice?: {
|
|
819
|
-
os: string;
|
|
820
|
-
osVersion: string;
|
|
821
|
-
};
|
|
822
|
-
};
|
|
823
|
-
/**
|
|
824
|
-
* Use a checkoutAttemptId from a previous page
|
|
825
|
-
*/
|
|
826
|
-
checkoutAttemptId?: string;
|
|
827
|
-
}
|
|
828
|
-
interface AnalyticsOptions {
|
|
829
|
-
/**
|
|
830
|
-
* Enable/Disable all analytics
|
|
831
|
-
*/
|
|
832
|
-
enabled?: boolean;
|
|
833
|
-
/**
|
|
834
|
-
* Enable/Disable telemetry data
|
|
835
|
-
*/
|
|
836
|
-
telemetry?: boolean;
|
|
837
|
-
/**
|
|
838
|
-
* Data to be sent along with the event data
|
|
839
|
-
*/
|
|
840
|
-
payload?: any;
|
|
841
|
-
/**
|
|
842
|
-
* List of experiments to be sent in the collectId call // TODO - still used?
|
|
843
|
-
*/
|
|
844
|
-
experiments?: Experiment[];
|
|
845
|
-
/**
|
|
846
|
-
* A wrapper to pass data needed when analytics is setup
|
|
847
|
-
*/
|
|
848
|
-
analyticsData?: AnalyticsData;
|
|
849
|
-
}
|
|
850
|
-
interface AnalyticsObject {
|
|
851
|
-
timestamp: string;
|
|
852
|
-
component: string;
|
|
853
|
-
id: string;
|
|
854
|
-
code?: string;
|
|
855
|
-
errorType?: string;
|
|
856
|
-
message?: string;
|
|
857
|
-
type?: string;
|
|
858
|
-
subtype?: string;
|
|
859
|
-
target?: string;
|
|
860
|
-
metadata?: Record<string, any>;
|
|
861
|
-
isStoredPaymentMethod?: boolean;
|
|
862
|
-
brand?: string;
|
|
863
|
-
validationErrorCode?: string;
|
|
864
|
-
validationErrorMessage?: string;
|
|
865
|
-
issuer?: string;
|
|
866
|
-
isExpress?: boolean;
|
|
867
|
-
expressPage?: string;
|
|
868
|
-
result?: string;
|
|
869
|
-
}
|
|
870
|
-
type ANALYTICS_EVENT = 'log' | 'error' | 'info';
|
|
871
|
-
type AnalyticsInitialEvent = {
|
|
872
|
-
containerWidth: number;
|
|
873
|
-
component: string;
|
|
874
|
-
flavor: string;
|
|
875
|
-
paymentMethods?: any[];
|
|
876
|
-
sessionId?: string;
|
|
877
|
-
};
|
|
878
|
-
type CreateAnalyticsEventData = Omit<AnalyticsObject, 'timestamp' | 'id'>;
|
|
879
|
-
type CreateAnalyticsEventObject = {
|
|
880
|
-
event: ANALYTICS_EVENT;
|
|
881
|
-
data: CreateAnalyticsEventData;
|
|
882
|
-
};
|
|
883
|
-
type SendAnalyticsObject = Omit<AnalyticsObject, 'timestamp' | 'component' | 'id'>;
|
|
884
|
-
|
|
885
919
|
type PlaceholderKeys = 'holderName' | 'cardNumber' | 'expiryDate' | 'expiryMonth' | 'expiryYear' | 'securityCodeThreeDigits' | 'securityCodeFourDigits' | 'password';
|
|
886
920
|
type Placeholders = Partial<Record<PlaceholderKeys, string>>;
|
|
887
921
|
interface SFError {
|
|
@@ -962,158 +996,36 @@ interface IBaseElement {
|
|
|
962
996
|
remove(): void;
|
|
963
997
|
}
|
|
964
998
|
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
* Mounts an element into the dom
|
|
996
|
-
* @param domNode - Node (or selector) where we will mount the payment element
|
|
997
|
-
* @returns this - the payment element instance we mounted
|
|
998
|
-
*/
|
|
999
|
-
mount(domNode: HTMLElement | string): this;
|
|
1000
|
-
/**
|
|
1001
|
-
* Updates props, resets the internal state and remounts the element.
|
|
1002
|
-
*
|
|
1003
|
-
* @param props - props to update
|
|
1004
|
-
* @returns this - the element instance
|
|
1005
|
-
*/
|
|
1006
|
-
update(props: Partial<P>): this;
|
|
1007
|
-
/**
|
|
1008
|
-
* Unmounts a payment element from the DOM
|
|
1009
|
-
*/
|
|
1010
|
-
unmount(): this;
|
|
1011
|
-
/**
|
|
1012
|
-
* Unmounts an element and removes it from the parent instance
|
|
1013
|
-
* For "destroy" type cleanup - when you don't intend to use the component again
|
|
1014
|
-
*/
|
|
1015
|
-
remove(): void;
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
declare abstract class UIElement<P extends UIElementProps = UIElementProps> extends BaseElement<P> implements IUIElement {
|
|
1019
|
-
protected componentRef: any;
|
|
1020
|
-
protected resources: Resources;
|
|
1021
|
-
elementRef: UIElement;
|
|
1022
|
-
static type: any;
|
|
1023
|
-
/**
|
|
1024
|
-
* Defines all txVariants that the Component supports (in case it support multiple ones besides the 'type' one)
|
|
1025
|
-
*/
|
|
1026
|
-
static txVariants: string[];
|
|
1027
|
-
constructor(checkout: ICore, props?: P);
|
|
1028
|
-
protected buildElementProps(componentProps?: P): void;
|
|
1029
|
-
protected storeElementRefOnCore(props?: P): void;
|
|
1030
|
-
isAvailable(): Promise<void>;
|
|
1031
|
-
setState(newState: object): void;
|
|
1032
|
-
showValidation(): this;
|
|
1033
|
-
setElementStatus(status: UIElementStatus, props?: any): this;
|
|
1034
|
-
setStatus(status: UIElementStatus, props?: any): this;
|
|
1035
|
-
protected onChange(): void;
|
|
1036
|
-
protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): Promise<any>;
|
|
1037
|
-
/**
|
|
1038
|
-
* A function for all UIElements, or BaseElement, to use to create an analytics action for when it's been:
|
|
1039
|
-
* - mounted,
|
|
1040
|
-
* - a PM has been selected
|
|
1041
|
-
* - onSubmit has been called (as a result of the pay button being pressed)
|
|
1042
|
-
*
|
|
1043
|
-
* In some other cases e.g. 3DS2 components, this function is overridden to allow more specific analytics actions to be created
|
|
1044
|
-
*/
|
|
1045
|
-
protected submitAnalytics(analyticsObj: SendAnalyticsObject, uiElementProps?: any): void;
|
|
1046
|
-
submit(): void;
|
|
1047
|
-
protected makePaymentsCall(): Promise<CheckoutAdvancedFlowResponse | CheckoutSessionPaymentResponse>;
|
|
1048
|
-
private submitUsingAdvancedFlow;
|
|
1049
|
-
private submitUsingSessionsFlow;
|
|
1050
|
-
protected onComplete(state: any): void;
|
|
1051
|
-
protected handleError: (error: AdyenCheckoutError) => void;
|
|
1052
|
-
protected handleAdditionalDetails(state: AdditionalDetailsStateData): void;
|
|
1053
|
-
private makeAdditionalDetailsCall;
|
|
1054
|
-
private submitAdditionalDetailsUsingSessionsFlow;
|
|
1055
|
-
handleAction(action: PaymentAction, props?: {}): UIElement | null;
|
|
1056
|
-
protected handleOrder: (response: PaymentResponseData) => void;
|
|
1057
|
-
/**
|
|
1058
|
-
* Handles when the payment fails. The payment fails when:
|
|
1059
|
-
* - adv flow: the merchant rejects the payment due to a critical error
|
|
1060
|
-
* - adv flow: the merchant resolves the payment with a failed resultCode
|
|
1061
|
-
* - sessions: a network error occurs when making the payment
|
|
1062
|
-
* - sessions: the payment fails with a failed resultCode
|
|
1063
|
-
*
|
|
1064
|
-
* @param result
|
|
1065
|
-
*/
|
|
1066
|
-
protected handleFailedResult: (result?: PaymentResponseData) => void;
|
|
1067
|
-
protected handleSuccessResult: (result: PaymentResponseData) => void;
|
|
1068
|
-
/**
|
|
1069
|
-
* Handles a session /payments or /payments/details response.
|
|
1070
|
-
* The component will handle automatically actions, orders, and final results.
|
|
1071
|
-
*
|
|
1072
|
-
* @param rawResponse -
|
|
1073
|
-
*/
|
|
1074
|
-
protected handleResponse(rawResponse: RawPaymentResponse): void;
|
|
1075
|
-
/**
|
|
1076
|
-
* Call update on parent instance
|
|
1077
|
-
* This function exist to make safe access to the protect _parentInstance
|
|
1078
|
-
* @param options - CoreOptions
|
|
1079
|
-
*/
|
|
1080
|
-
updateParent(options?: CoreConfiguration): Promise<ICore>;
|
|
1081
|
-
setComponentRef: (ref: ComponentMethodsRef) => void;
|
|
1082
|
-
/**
|
|
1083
|
-
* Get the current validation status of the element
|
|
1084
|
-
*/
|
|
1085
|
-
get isValid(): boolean;
|
|
1086
|
-
/**
|
|
1087
|
-
* Get the element icon URL for the current environment
|
|
1088
|
-
*/
|
|
1089
|
-
get icon(): string;
|
|
1090
|
-
/**
|
|
1091
|
-
* Get the element's displayable name
|
|
1092
|
-
*/
|
|
1093
|
-
get displayName(): string;
|
|
1094
|
-
/**
|
|
1095
|
-
* Get the element accessible name, used in the aria-label of the button that controls selected payment method
|
|
1096
|
-
*/
|
|
1097
|
-
get accessibleName(): string;
|
|
1098
|
-
/**
|
|
1099
|
-
* Used to display the second line of a payment method item
|
|
1100
|
-
*/
|
|
1101
|
-
get additionalInfo(): string;
|
|
1102
|
-
/**
|
|
1103
|
-
* Return the type of an element
|
|
1104
|
-
*/
|
|
1105
|
-
get type(): string;
|
|
1106
|
-
/**
|
|
1107
|
-
* Get the payButton component for the current element
|
|
1108
|
-
*/
|
|
1109
|
-
protected payButton: (props: PayButtonFunctionProps) => h.JSX.Element;
|
|
1110
|
-
/**
|
|
1111
|
-
* Used in the Partial Orders flow.
|
|
1112
|
-
* When the Order is updated, the merchant can request new payment methods based on the new remaining amount
|
|
1113
|
-
*
|
|
1114
|
-
* @private
|
|
1115
|
-
*/
|
|
1116
|
-
protected handleAdvanceFlowPaymentMethodsUpdate(order: Order | null, amount?: PaymentAmount): Promise<ICore>;
|
|
999
|
+
interface RiskModuleOptions {
|
|
1000
|
+
enabled: boolean;
|
|
1001
|
+
onComplete?: (data: any) => void;
|
|
1002
|
+
onError?: (error: any) => void;
|
|
1003
|
+
node?: string;
|
|
1004
|
+
}
|
|
1005
|
+
interface RiskModuleProps extends BaseElementProps {
|
|
1006
|
+
risk: RiskModuleOptions;
|
|
1007
|
+
loadingContext: string;
|
|
1008
|
+
}
|
|
1009
|
+
declare class RiskElement extends BaseElement<RiskModuleProps> {
|
|
1010
|
+
static type: string;
|
|
1011
|
+
static defaultProps: {
|
|
1012
|
+
risk: {
|
|
1013
|
+
enabled: boolean;
|
|
1014
|
+
onComplete: () => void;
|
|
1015
|
+
onError: () => void;
|
|
1016
|
+
node: string;
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
private nodeRiskContainer;
|
|
1020
|
+
constructor(checkout: ICore, props?: any);
|
|
1021
|
+
formatProps(props: any): any;
|
|
1022
|
+
onComplete: (result: any) => void;
|
|
1023
|
+
onError: (error: any) => void;
|
|
1024
|
+
get isValid(): any;
|
|
1025
|
+
get data(): any;
|
|
1026
|
+
cleanUp: () => void;
|
|
1027
|
+
componentWillUnmount(): void;
|
|
1028
|
+
render(): h.JSX.Element;
|
|
1117
1029
|
}
|
|
1118
1030
|
|
|
1119
1031
|
interface GiftCardElementData {
|
|
@@ -1125,14 +1037,14 @@ interface GiftCardElementData {
|
|
|
1125
1037
|
};
|
|
1126
1038
|
}
|
|
1127
1039
|
type balanceCheckResponseType = {
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
};
|
|
1040
|
+
sessionData?: string;
|
|
1041
|
+
pspReference?: string;
|
|
1042
|
+
resultCode?: string;
|
|
1043
|
+
balance?: PaymentAmount;
|
|
1044
|
+
transactionLimit?: PaymentAmount;
|
|
1134
1045
|
};
|
|
1135
1046
|
type onBalanceCheckCallbackType = (resolve: (res: balanceCheckResponseType) => void, reject: (error: Error) => void, data: GiftCardElementData) => Promise<void>;
|
|
1047
|
+
type onRequiringConfirmationCallbackType = (resolve: () => void, reject: (error: Error) => void) => Promise<void>;
|
|
1136
1048
|
type onOrderRequestCallbackType = (resolve: (order: Order) => void, reject: (error: Error) => void, data: PaymentData) => Promise<void>;
|
|
1137
1049
|
interface GiftCardConfiguration extends UIElementProps {
|
|
1138
1050
|
pinRequired?: boolean;
|
|
@@ -1142,13 +1054,19 @@ interface GiftCardConfiguration extends UIElementProps {
|
|
|
1142
1054
|
onOrderUpdated?: (data: any) => void;
|
|
1143
1055
|
onBalanceCheck?: onBalanceCheckCallbackType;
|
|
1144
1056
|
onOrderRequest?: onOrderRequestCallbackType;
|
|
1145
|
-
onRequiringConfirmation
|
|
1057
|
+
onRequiringConfirmation?: onRequiringConfirmationCallbackType;
|
|
1146
1058
|
/**
|
|
1147
1059
|
* @internal
|
|
1148
1060
|
*/
|
|
1149
1061
|
fieldsLayoutComponent?: FunctionComponent<GiftcardFieldsProps>;
|
|
1150
1062
|
}
|
|
1151
1063
|
|
|
1064
|
+
type NewableComponent = new (checkout: ICore, props?: any) => UIElement;
|
|
1065
|
+
interface IRegistry {
|
|
1066
|
+
add(...items: NewableComponent[]): void;
|
|
1067
|
+
getComponent(type: string): NewableComponent | undefined;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1152
1070
|
interface CompanyDetailsSchema {
|
|
1153
1071
|
name?: string;
|
|
1154
1072
|
registrationNumber?: string;
|
|
@@ -1326,7 +1244,6 @@ declare enum TxVariants {
|
|
|
1326
1244
|
billdesk_wallet = "billdesk_wallet",
|
|
1327
1245
|
dotpay = "dotpay",
|
|
1328
1246
|
eps = "eps",
|
|
1329
|
-
ideal = "ideal",
|
|
1330
1247
|
molpay_ebanking_fpx_MY = "molpay_ebanking_fpx_MY",
|
|
1331
1248
|
molpay_ebanking_TH = "molpay_ebanking_TH",
|
|
1332
1249
|
molpay_ebanking_VN = "molpay_ebanking_VN",
|
|
@@ -1365,6 +1282,7 @@ declare enum TxVariants {
|
|
|
1365
1282
|
klarna = "klarna",
|
|
1366
1283
|
klarna_account = "klarna_account",
|
|
1367
1284
|
klarna_paynow = "klarna_paynow",
|
|
1285
|
+
klarna_b2b = "klarna_b2b",
|
|
1368
1286
|
/** Klarna */
|
|
1369
1287
|
/** QRLoader */
|
|
1370
1288
|
bcmc_mobile = "bcmc_mobile",
|
|
@@ -1380,6 +1298,7 @@ declare enum TxVariants {
|
|
|
1380
1298
|
/** Await */
|
|
1381
1299
|
blik = "blik",
|
|
1382
1300
|
mbway = "mbway",
|
|
1301
|
+
ancv = "ancv",
|
|
1383
1302
|
upi = "upi",// also QR
|
|
1384
1303
|
upi_qr = "upi_qr",// also QR
|
|
1385
1304
|
upi_collect = "upi_collect",// also QR
|
|
@@ -1669,6 +1588,40 @@ declare class AmazonPayElement extends UIElement<AmazonPayConfiguration> {
|
|
|
1669
1588
|
render(): h.JSX.Element;
|
|
1670
1589
|
}
|
|
1671
1590
|
|
|
1591
|
+
interface ANCVConfiguration extends UIElementProps {
|
|
1592
|
+
paymentData?: any;
|
|
1593
|
+
data: ANCVDataState;
|
|
1594
|
+
onOrderRequest?: any;
|
|
1595
|
+
onOrderUpdated?: any;
|
|
1596
|
+
}
|
|
1597
|
+
interface ANCVDataState {
|
|
1598
|
+
beneficiaryId: string;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
1602
|
+
static type: string;
|
|
1603
|
+
/**
|
|
1604
|
+
* Formats the component data output
|
|
1605
|
+
*/
|
|
1606
|
+
formatData(): {
|
|
1607
|
+
paymentMethod: {
|
|
1608
|
+
type: string;
|
|
1609
|
+
beneficiaryId: any;
|
|
1610
|
+
};
|
|
1611
|
+
};
|
|
1612
|
+
private onOrderRequest;
|
|
1613
|
+
/**
|
|
1614
|
+
* Check if order exists, if it does Resolve.
|
|
1615
|
+
* Otherwise createOrder and then Resolve.
|
|
1616
|
+
*/
|
|
1617
|
+
createOrder: () => Promise<void>;
|
|
1618
|
+
submit(): boolean;
|
|
1619
|
+
payButton: (props: any) => h.JSX.Element;
|
|
1620
|
+
get isValid(): boolean;
|
|
1621
|
+
get displayName(): string;
|
|
1622
|
+
render(): h.JSX.Element;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1672
1625
|
declare global {
|
|
1673
1626
|
interface Window {
|
|
1674
1627
|
ApplePaySession: ApplePaySession;
|
|
@@ -1968,16 +1921,6 @@ interface AchConfiguration extends UIElementProps {
|
|
|
1968
1921
|
placeholders?: Placeholders$1;
|
|
1969
1922
|
}
|
|
1970
1923
|
|
|
1971
|
-
interface ANCVConfiguration extends UIElementProps {
|
|
1972
|
-
paymentData?: any;
|
|
1973
|
-
data: ANCVDataState;
|
|
1974
|
-
onOrderRequest?: any;
|
|
1975
|
-
onOrderUpdated?: any;
|
|
1976
|
-
}
|
|
1977
|
-
interface ANCVDataState {
|
|
1978
|
-
beneficiaryId: string;
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
1924
|
interface BankTransferConfiguration extends UIElementProps {
|
|
1982
1925
|
reference?: string;
|
|
1983
1926
|
/**
|
|
@@ -2136,6 +2079,7 @@ type ClickToPayPaymentData = {
|
|
|
2136
2079
|
|
|
2137
2080
|
type CustomCardConfiguration = Omit<CardConfiguration, 'clickToPayConfiguration' | '_disableClickToPay' | 'fundingSource' | 'positionHolderNameOnTop' | 'showBrandIcon' | 'enableStoreDetails' | 'hideCVC' | 'hasCVC' | 'hasHolderName' | 'holderNameRequired' | 'billingAddressRequired' | 'billingAddressRequiredFields' | 'billingAddressAllowedCountries' | 'installmentOptions' | 'showInstallmentAmounts' | 'configuration'> & {
|
|
2138
2081
|
onValidationError?: (validationErrors: ValidationError[]) => void;
|
|
2082
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
2139
2083
|
};
|
|
2140
2084
|
type ValidationError = SFError & {
|
|
2141
2085
|
fieldType: string;
|
|
@@ -2505,11 +2449,6 @@ interface OxxoVoucherResultProps {
|
|
|
2505
2449
|
downloadUrl?: string;
|
|
2506
2450
|
ref?: any;
|
|
2507
2451
|
}
|
|
2508
|
-
type OxxoElementData = {
|
|
2509
|
-
paymentMethod: {
|
|
2510
|
-
type: 'oxxo' | string;
|
|
2511
|
-
};
|
|
2512
|
-
};
|
|
2513
2452
|
|
|
2514
2453
|
declare class PaypalElement extends UIElement<PayPalConfiguration> {
|
|
2515
2454
|
static type: TxVariants;
|
|
@@ -3058,22 +2997,7 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
3058
2997
|
risk?: RiskElement;
|
|
3059
2998
|
};
|
|
3060
2999
|
isDropin?: boolean;
|
|
3061
|
-
onChange?: (state:
|
|
3062
|
-
data: PaymentData;
|
|
3063
|
-
isValid: boolean;
|
|
3064
|
-
valid?: {
|
|
3065
|
-
[fieldKey: string]: boolean;
|
|
3066
|
-
};
|
|
3067
|
-
errors?: {
|
|
3068
|
-
[fieldKey: string]: {
|
|
3069
|
-
isValid: boolean;
|
|
3070
|
-
errorMessage: string;
|
|
3071
|
-
errorI18n: string;
|
|
3072
|
-
error: string;
|
|
3073
|
-
rootNode: HTMLElement;
|
|
3074
|
-
};
|
|
3075
|
-
};
|
|
3076
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3000
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3077
3001
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3078
3002
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3079
3003
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3081,27 +3005,11 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
3081
3005
|
method: string;
|
|
3082
3006
|
data?: any;
|
|
3083
3007
|
}) => void;
|
|
3084
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3085
|
-
|
|
3086
|
-
billingAddress?: AddressData;
|
|
3087
|
-
deliveryAddress?: AddressData;
|
|
3088
|
-
shopperEmail?: string;
|
|
3089
|
-
shopperName?: string;
|
|
3090
|
-
}) => void;
|
|
3091
|
-
reject: () => void;
|
|
3092
|
-
}) => void;
|
|
3093
|
-
onSubmit?: (state: {
|
|
3094
|
-
data: PaymentData;
|
|
3095
|
-
isValid: boolean;
|
|
3096
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3097
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3098
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3099
|
-
}) => void;
|
|
3008
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3009
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3100
3010
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3101
|
-
onAdditionalDetails?: (state:
|
|
3102
|
-
|
|
3103
|
-
reject: () => void;
|
|
3104
|
-
}) => void;
|
|
3011
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3012
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
3105
3013
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3106
3014
|
onOrderUpdated?: (data: {
|
|
3107
3015
|
order: Order;
|
|
@@ -3163,22 +3071,7 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3163
3071
|
risk?: RiskElement;
|
|
3164
3072
|
};
|
|
3165
3073
|
isDropin?: boolean;
|
|
3166
|
-
onChange?: (state:
|
|
3167
|
-
data: PaymentData;
|
|
3168
|
-
isValid: boolean;
|
|
3169
|
-
valid?: {
|
|
3170
|
-
[fieldKey: string]: boolean;
|
|
3171
|
-
};
|
|
3172
|
-
errors?: {
|
|
3173
|
-
[fieldKey: string]: {
|
|
3174
|
-
isValid: boolean;
|
|
3175
|
-
errorMessage: string;
|
|
3176
|
-
errorI18n: string;
|
|
3177
|
-
error: string;
|
|
3178
|
-
rootNode: HTMLElement;
|
|
3179
|
-
};
|
|
3180
|
-
};
|
|
3181
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3074
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3182
3075
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3183
3076
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3184
3077
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3186,27 +3079,11 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3186
3079
|
method: string;
|
|
3187
3080
|
data?: any;
|
|
3188
3081
|
}) => void;
|
|
3189
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3190
|
-
|
|
3191
|
-
billingAddress?: AddressData;
|
|
3192
|
-
deliveryAddress?: AddressData;
|
|
3193
|
-
shopperEmail?: string;
|
|
3194
|
-
shopperName?: string;
|
|
3195
|
-
}) => void;
|
|
3196
|
-
reject: () => void;
|
|
3197
|
-
}) => void;
|
|
3198
|
-
onSubmit?: (state: {
|
|
3199
|
-
data: PaymentData;
|
|
3200
|
-
isValid: boolean;
|
|
3201
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3202
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3203
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3204
|
-
}) => void;
|
|
3082
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3083
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3205
3084
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3206
|
-
onAdditionalDetails?: (state:
|
|
3207
|
-
|
|
3208
|
-
reject: () => void;
|
|
3209
|
-
}) => void;
|
|
3085
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3086
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
3210
3087
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3211
3088
|
onOrderUpdated?: (data: {
|
|
3212
3089
|
order: Order;
|
|
@@ -3318,46 +3195,51 @@ declare class BancontactElement extends CardElement {
|
|
|
3318
3195
|
onReady?(): void;
|
|
3319
3196
|
onTimeout?(error: TimeoutError): void;
|
|
3320
3197
|
};
|
|
3321
|
-
|
|
3322
|
-
|
|
3198
|
+
autoFocus?: boolean;
|
|
3199
|
+
billingAddressAllowedCountries?: string[]; /**
|
|
3200
|
+
* Force type (only for the Dropin is type automatically set to 'bcmc')
|
|
3201
|
+
* - this will bypass the regEx brand detection that SF normally tries to carry out when the first few digits are entered in the PAN
|
|
3202
|
+
*/
|
|
3203
|
+
billingAddressMode?: "none" | "full" | "partial";
|
|
3204
|
+
billingAddressRequiredFields?: string[];
|
|
3323
3205
|
brands?: string[];
|
|
3324
|
-
positionHolderNameOnTop?: boolean;
|
|
3325
|
-
showBrandIcon?: boolean;
|
|
3326
|
-
showContextualElement?: boolean;
|
|
3327
|
-
hideCVC?: boolean;
|
|
3328
|
-
hasHolderName?: boolean;
|
|
3329
|
-
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
3330
3206
|
challengeWindowSize?: "02" | "01" | "03" | "04" | "05";
|
|
3331
3207
|
data?: {
|
|
3332
3208
|
holderName?: string;
|
|
3333
3209
|
billingAddress?: Partial<AddressData>;
|
|
3334
3210
|
};
|
|
3335
|
-
|
|
3211
|
+
_disableClickToPay?: boolean;
|
|
3212
|
+
disableIOSArrowKeys?: boolean;
|
|
3213
|
+
disclaimerMessage?: DisclaimerMsgObject;
|
|
3214
|
+
doBinLookup?: boolean;
|
|
3215
|
+
expiryMonth?: string;
|
|
3216
|
+
exposeExpiryDate?: boolean;
|
|
3217
|
+
forceCompat?: boolean;
|
|
3218
|
+
fundingSource?: "debit" | "credit";
|
|
3219
|
+
hasHolderName?: boolean;
|
|
3220
|
+
hideCVC?: boolean;
|
|
3221
|
+
id?: string;
|
|
3222
|
+
keypadFix?: boolean;
|
|
3223
|
+
lastFour?: string;
|
|
3224
|
+
legacyInputMode?: boolean;
|
|
3225
|
+
maskSecurityCode?: boolean;
|
|
3226
|
+
minimumExpiryDate?: string[];
|
|
3227
|
+
name?: string;
|
|
3228
|
+
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
3229
|
+
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
3230
|
+
onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
3231
|
+
onBrand?: (event: CbObjOnBrand) => void;
|
|
3336
3232
|
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
3337
3233
|
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
3338
|
-
onBrand?: (event: CbObjOnBrand) => void;
|
|
3339
3234
|
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
billingAddressRequiredFields?: string[];
|
|
3346
|
-
billingAddressAllowedCountries?: string[];
|
|
3347
|
-
id?: string;
|
|
3235
|
+
onLoad?: (event: CbObjOnLoad) => void;
|
|
3236
|
+
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
3237
|
+
positionHolderNameOnTop?: boolean;
|
|
3238
|
+
showBrandIcon?: boolean;
|
|
3239
|
+
showContextualElement?: boolean;
|
|
3348
3240
|
showInstallmentAmounts?: boolean;
|
|
3349
|
-
legacyInputMode?: boolean;
|
|
3350
|
-
minimumExpiryDate?: string[];
|
|
3351
|
-
autoFocus?: boolean;
|
|
3352
|
-
maskSecurityCode?: boolean;
|
|
3353
|
-
doBinLookup?: boolean;
|
|
3354
|
-
disableIOSArrowKeys?: boolean;
|
|
3355
|
-
disclaimerMessage?: DisclaimerMsgObject;
|
|
3356
3241
|
styles?: StylesObject;
|
|
3357
3242
|
supportedShopperInteractions?: string[];
|
|
3358
|
-
keypadFix?: boolean;
|
|
3359
|
-
expiryMonth?: string;
|
|
3360
|
-
exposeExpiryDate?: boolean;
|
|
3361
3243
|
order?: Order;
|
|
3362
3244
|
modules?: {
|
|
3363
3245
|
srPanel?: SRPanel;
|
|
@@ -3366,22 +3248,7 @@ declare class BancontactElement extends CardElement {
|
|
|
3366
3248
|
risk?: RiskElement;
|
|
3367
3249
|
};
|
|
3368
3250
|
isDropin?: boolean;
|
|
3369
|
-
onChange?: (state:
|
|
3370
|
-
data: PaymentData;
|
|
3371
|
-
isValid: boolean;
|
|
3372
|
-
valid?: {
|
|
3373
|
-
[fieldKey: string]: boolean;
|
|
3374
|
-
};
|
|
3375
|
-
errors?: {
|
|
3376
|
-
[fieldKey: string]: {
|
|
3377
|
-
isValid: boolean;
|
|
3378
|
-
errorMessage: string;
|
|
3379
|
-
errorI18n: string;
|
|
3380
|
-
error: string;
|
|
3381
|
-
rootNode: HTMLElement;
|
|
3382
|
-
};
|
|
3383
|
-
};
|
|
3384
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3251
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3385
3252
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3386
3253
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3387
3254
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3389,27 +3256,11 @@ declare class BancontactElement extends CardElement {
|
|
|
3389
3256
|
method: string;
|
|
3390
3257
|
data?: any;
|
|
3391
3258
|
}) => void;
|
|
3392
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3393
|
-
|
|
3394
|
-
billingAddress?: AddressData;
|
|
3395
|
-
deliveryAddress?: AddressData;
|
|
3396
|
-
shopperEmail?: string;
|
|
3397
|
-
shopperName?: string;
|
|
3398
|
-
}) => void;
|
|
3399
|
-
reject: () => void;
|
|
3400
|
-
}) => void;
|
|
3401
|
-
onSubmit?: (state: {
|
|
3402
|
-
data: PaymentData;
|
|
3403
|
-
isValid: boolean;
|
|
3404
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3405
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3406
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3407
|
-
}) => void;
|
|
3259
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3260
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3408
3261
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3409
|
-
onAdditionalDetails?: (state:
|
|
3410
|
-
|
|
3411
|
-
reject: () => void;
|
|
3412
|
-
}) => void;
|
|
3262
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3263
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
3413
3264
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3414
3265
|
onOrderUpdated?: (data: {
|
|
3415
3266
|
order: Order;
|
|
@@ -3425,7 +3276,6 @@ declare class BancontactElement extends CardElement {
|
|
|
3425
3276
|
isStoredPaymentMethod?: boolean;
|
|
3426
3277
|
oneClick?: boolean;
|
|
3427
3278
|
statusType?: "custom" | "loading" | "redirect";
|
|
3428
|
-
name?: string;
|
|
3429
3279
|
amount?: PaymentAmount;
|
|
3430
3280
|
secondaryAmount?: PaymentAmountExtended;
|
|
3431
3281
|
showPayButton?: boolean;
|
|
@@ -3558,10 +3408,6 @@ declare class FacilyPay12x extends OpenInvoiceContainer {
|
|
|
3558
3408
|
formatProps(props: any): any;
|
|
3559
3409
|
}
|
|
3560
3410
|
|
|
3561
|
-
declare class IdealElement extends IssuerListContainer {
|
|
3562
|
-
static type: TxVariants;
|
|
3563
|
-
}
|
|
3564
|
-
|
|
3565
3411
|
declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
3566
3412
|
static type: TxVariants;
|
|
3567
3413
|
static analyticsType: string;
|
|
@@ -3586,22 +3432,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3586
3432
|
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
3587
3433
|
order?: Order;
|
|
3588
3434
|
id?: string;
|
|
3589
|
-
onChange?: (state:
|
|
3590
|
-
data: PaymentData;
|
|
3591
|
-
isValid: boolean;
|
|
3592
|
-
valid?: {
|
|
3593
|
-
[fieldKey: string]: boolean;
|
|
3594
|
-
};
|
|
3595
|
-
errors?: {
|
|
3596
|
-
[fieldKey: string]: {
|
|
3597
|
-
isValid: boolean;
|
|
3598
|
-
errorMessage: string;
|
|
3599
|
-
errorI18n: string;
|
|
3600
|
-
error: string;
|
|
3601
|
-
rootNode: HTMLElement;
|
|
3602
|
-
};
|
|
3603
|
-
};
|
|
3604
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3435
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3605
3436
|
amount?: PaymentAmount;
|
|
3606
3437
|
secondaryAmount?: PaymentAmountExtended;
|
|
3607
3438
|
environment?: string;
|
|
@@ -3621,27 +3452,11 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3621
3452
|
method: string;
|
|
3622
3453
|
data?: any;
|
|
3623
3454
|
}) => void;
|
|
3624
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3625
|
-
|
|
3626
|
-
billingAddress?: AddressData;
|
|
3627
|
-
deliveryAddress?: AddressData;
|
|
3628
|
-
shopperEmail?: string;
|
|
3629
|
-
shopperName?: string;
|
|
3630
|
-
}) => void;
|
|
3631
|
-
reject: () => void;
|
|
3632
|
-
}) => void;
|
|
3633
|
-
onSubmit?: (state: {
|
|
3634
|
-
data: PaymentData;
|
|
3635
|
-
isValid: boolean;
|
|
3636
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3637
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3638
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3639
|
-
}) => void;
|
|
3455
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3456
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3640
3457
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3641
|
-
onAdditionalDetails?: (state:
|
|
3642
|
-
|
|
3643
|
-
reject: () => void;
|
|
3644
|
-
}) => void;
|
|
3458
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3459
|
+
onEnterKeyPressed?: ((activeElement: Element, component: UIElement<UIElementProps>) => void) & ((activeElement: Element, component: UIElement<UIElementProps>) => void);
|
|
3645
3460
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3646
3461
|
onOrderUpdated?: (data: {
|
|
3647
3462
|
order: Order;
|
|
@@ -3668,25 +3483,26 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3668
3483
|
onLoad?: (event: CbObjOnLoad) => void;
|
|
3669
3484
|
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
3670
3485
|
expiryMonth?: string;
|
|
3486
|
+
billingAddressMode?: "none" | "full" | "partial";
|
|
3671
3487
|
brands?: string[];
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3488
|
+
disableIOSArrowKeys?: boolean;
|
|
3489
|
+
disclaimerMessage?: DisclaimerMsgObject;
|
|
3490
|
+
doBinLookup?: boolean;
|
|
3491
|
+
exposeExpiryDate?: boolean;
|
|
3492
|
+
forceCompat?: boolean;
|
|
3493
|
+
keypadFix?: boolean;
|
|
3678
3494
|
lastFour?: string;
|
|
3679
|
-
billingAddressMode?: "none" | "full" | "partial";
|
|
3680
3495
|
legacyInputMode?: boolean;
|
|
3681
|
-
minimumExpiryDate?: string[];
|
|
3682
3496
|
maskSecurityCode?: boolean;
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3497
|
+
minimumExpiryDate?: string[];
|
|
3498
|
+
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
3499
|
+
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
3500
|
+
onBrand?: (event: CbObjOnBrand) => void;
|
|
3501
|
+
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
3502
|
+
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
3503
|
+
showStoreDetailsCheckbox?: boolean;
|
|
3686
3504
|
styles?: StylesObject;
|
|
3687
3505
|
supportedShopperInteractions?: string[];
|
|
3688
|
-
keypadFix?: boolean;
|
|
3689
|
-
exposeExpiryDate?: boolean;
|
|
3690
3506
|
onValidationError?: (validationErrors: ValidationError[]) => void;
|
|
3691
3507
|
};
|
|
3692
3508
|
/**
|
|
@@ -3706,6 +3522,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3706
3522
|
get isValid(): boolean;
|
|
3707
3523
|
get browserInfo(): BrowserInfo;
|
|
3708
3524
|
private onFocus;
|
|
3525
|
+
protected onEnterKeyPressed: (activeElement: Element, component: UIElement) => void;
|
|
3709
3526
|
render(): h.JSX.Element;
|
|
3710
3527
|
}
|
|
3711
3528
|
|
|
@@ -3769,22 +3586,7 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3769
3586
|
risk?: RiskElement;
|
|
3770
3587
|
};
|
|
3771
3588
|
isDropin?: boolean;
|
|
3772
|
-
onChange?: (state:
|
|
3773
|
-
data: PaymentData;
|
|
3774
|
-
isValid: boolean;
|
|
3775
|
-
valid?: {
|
|
3776
|
-
[fieldKey: string]: boolean;
|
|
3777
|
-
};
|
|
3778
|
-
errors?: {
|
|
3779
|
-
[fieldKey: string]: {
|
|
3780
|
-
isValid: boolean;
|
|
3781
|
-
errorMessage: string;
|
|
3782
|
-
errorI18n: string;
|
|
3783
|
-
error: string;
|
|
3784
|
-
rootNode: HTMLElement;
|
|
3785
|
-
};
|
|
3786
|
-
};
|
|
3787
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3589
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3788
3590
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3789
3591
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3790
3592
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3792,27 +3594,11 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3792
3594
|
method: string;
|
|
3793
3595
|
data?: any;
|
|
3794
3596
|
}) => void;
|
|
3795
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3796
|
-
|
|
3797
|
-
billingAddress?: AddressData;
|
|
3798
|
-
deliveryAddress?: AddressData;
|
|
3799
|
-
shopperEmail?: string;
|
|
3800
|
-
shopperName?: string;
|
|
3801
|
-
}) => void;
|
|
3802
|
-
reject: () => void;
|
|
3803
|
-
}) => void;
|
|
3804
|
-
onSubmit?: (state: {
|
|
3805
|
-
data: PaymentData;
|
|
3806
|
-
isValid: boolean;
|
|
3807
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3808
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3809
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3810
|
-
}) => void;
|
|
3597
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3598
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3811
3599
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3812
|
-
onAdditionalDetails?: (state:
|
|
3813
|
-
|
|
3814
|
-
reject: () => void;
|
|
3815
|
-
}) => void;
|
|
3600
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3601
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
3816
3602
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3817
3603
|
onOrderUpdated?: (data: {
|
|
3818
3604
|
order: Order;
|
|
@@ -3868,22 +3654,7 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
3868
3654
|
risk?: RiskElement;
|
|
3869
3655
|
};
|
|
3870
3656
|
isDropin?: boolean;
|
|
3871
|
-
onChange?: (state:
|
|
3872
|
-
data: PaymentData;
|
|
3873
|
-
isValid: boolean;
|
|
3874
|
-
valid?: {
|
|
3875
|
-
[fieldKey: string]: boolean;
|
|
3876
|
-
};
|
|
3877
|
-
errors?: {
|
|
3878
|
-
[fieldKey: string]: {
|
|
3879
|
-
isValid: boolean;
|
|
3880
|
-
errorMessage: string;
|
|
3881
|
-
errorI18n: string;
|
|
3882
|
-
error: string;
|
|
3883
|
-
rootNode: HTMLElement;
|
|
3884
|
-
};
|
|
3885
|
-
};
|
|
3886
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3657
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3887
3658
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3888
3659
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3889
3660
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3891,27 +3662,11 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
3891
3662
|
method: string;
|
|
3892
3663
|
data?: any;
|
|
3893
3664
|
}) => void;
|
|
3894
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3895
|
-
|
|
3896
|
-
billingAddress?: AddressData;
|
|
3897
|
-
deliveryAddress?: AddressData;
|
|
3898
|
-
shopperEmail?: string;
|
|
3899
|
-
shopperName?: string;
|
|
3900
|
-
}) => void;
|
|
3901
|
-
reject: () => void;
|
|
3902
|
-
}) => void;
|
|
3903
|
-
onSubmit?: (state: {
|
|
3904
|
-
data: PaymentData;
|
|
3905
|
-
isValid: boolean;
|
|
3906
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3907
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3908
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3909
|
-
}) => void;
|
|
3665
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3666
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3910
3667
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3911
|
-
onAdditionalDetails?: (state:
|
|
3912
|
-
|
|
3913
|
-
reject: () => void;
|
|
3914
|
-
}) => void;
|
|
3668
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3669
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
3915
3670
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3916
3671
|
onOrderUpdated?: (data: {
|
|
3917
3672
|
order: Order;
|
|
@@ -3968,22 +3723,7 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
3968
3723
|
risk?: RiskElement;
|
|
3969
3724
|
};
|
|
3970
3725
|
isDropin?: boolean;
|
|
3971
|
-
onChange?: (state:
|
|
3972
|
-
data: PaymentData;
|
|
3973
|
-
isValid: boolean;
|
|
3974
|
-
valid?: {
|
|
3975
|
-
[fieldKey: string]: boolean;
|
|
3976
|
-
};
|
|
3977
|
-
errors?: {
|
|
3978
|
-
[fieldKey: string]: {
|
|
3979
|
-
isValid: boolean;
|
|
3980
|
-
errorMessage: string;
|
|
3981
|
-
errorI18n: string;
|
|
3982
|
-
error: string;
|
|
3983
|
-
rootNode: HTMLElement;
|
|
3984
|
-
};
|
|
3985
|
-
};
|
|
3986
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3726
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3987
3727
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3988
3728
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3989
3729
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3991,27 +3731,11 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
3991
3731
|
method: string;
|
|
3992
3732
|
data?: any;
|
|
3993
3733
|
}) => void;
|
|
3994
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3995
|
-
|
|
3996
|
-
billingAddress?: AddressData;
|
|
3997
|
-
deliveryAddress?: AddressData;
|
|
3998
|
-
shopperEmail?: string;
|
|
3999
|
-
shopperName?: string;
|
|
4000
|
-
}) => void;
|
|
4001
|
-
reject: () => void;
|
|
4002
|
-
}) => void;
|
|
4003
|
-
onSubmit?: (state: {
|
|
4004
|
-
data: PaymentData;
|
|
4005
|
-
isValid: boolean;
|
|
4006
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4007
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4008
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4009
|
-
}) => void;
|
|
3734
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3735
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4010
3736
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4011
|
-
onAdditionalDetails?: (state:
|
|
4012
|
-
|
|
4013
|
-
reject: () => void;
|
|
4014
|
-
}) => void;
|
|
3737
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3738
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
4015
3739
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4016
3740
|
onOrderUpdated?: (data: {
|
|
4017
3741
|
order: Order;
|
|
@@ -4085,22 +3809,7 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4085
3809
|
risk?: RiskElement;
|
|
4086
3810
|
};
|
|
4087
3811
|
isDropin?: boolean;
|
|
4088
|
-
onChange?: (state:
|
|
4089
|
-
data: PaymentData;
|
|
4090
|
-
isValid: boolean;
|
|
4091
|
-
valid?: {
|
|
4092
|
-
[fieldKey: string]: boolean;
|
|
4093
|
-
};
|
|
4094
|
-
errors?: {
|
|
4095
|
-
[fieldKey: string]: {
|
|
4096
|
-
isValid: boolean;
|
|
4097
|
-
errorMessage: string;
|
|
4098
|
-
errorI18n: string;
|
|
4099
|
-
error: string;
|
|
4100
|
-
rootNode: HTMLElement;
|
|
4101
|
-
};
|
|
4102
|
-
};
|
|
4103
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3812
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
4104
3813
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
4105
3814
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
4106
3815
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -4108,27 +3817,11 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4108
3817
|
method: string;
|
|
4109
3818
|
data?: any;
|
|
4110
3819
|
}) => void;
|
|
4111
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4112
|
-
|
|
4113
|
-
billingAddress?: AddressData;
|
|
4114
|
-
deliveryAddress?: AddressData;
|
|
4115
|
-
shopperEmail?: string;
|
|
4116
|
-
shopperName?: string;
|
|
4117
|
-
}) => void;
|
|
4118
|
-
reject: () => void;
|
|
4119
|
-
}) => void;
|
|
4120
|
-
onSubmit?: (state: {
|
|
4121
|
-
data: PaymentData;
|
|
4122
|
-
isValid: boolean;
|
|
4123
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4124
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4125
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4126
|
-
}) => void;
|
|
3820
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3821
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4127
3822
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4128
|
-
onAdditionalDetails?: (state:
|
|
4129
|
-
|
|
4130
|
-
reject: () => void;
|
|
4131
|
-
}) => void;
|
|
3823
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3824
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
4132
3825
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4133
3826
|
onOrderUpdated?: (data: {
|
|
4134
3827
|
order: Order;
|
|
@@ -4200,7 +3893,11 @@ declare class OxxoElement extends UIElement<VoucherConfiguration> {
|
|
|
4200
3893
|
name: string;
|
|
4201
3894
|
};
|
|
4202
3895
|
get isValid(): boolean;
|
|
4203
|
-
formatData():
|
|
3896
|
+
formatData(): {
|
|
3897
|
+
paymentMethod: {
|
|
3898
|
+
type: string;
|
|
3899
|
+
};
|
|
3900
|
+
};
|
|
4204
3901
|
private handleRef;
|
|
4205
3902
|
render(): h.JSX.Element;
|
|
4206
3903
|
}
|
|
@@ -4242,8 +3939,10 @@ declare class GiftcardElement extends UIElement<GiftCardConfiguration> {
|
|
|
4242
3939
|
get displayName(): any;
|
|
4243
3940
|
private handleBalanceCheck;
|
|
4244
3941
|
private onOrderRequest;
|
|
4245
|
-
balanceCheck():
|
|
4246
|
-
onBalanceCheck
|
|
3942
|
+
balanceCheck(): void;
|
|
3943
|
+
private onBalanceCheck;
|
|
3944
|
+
private handleOnRequiringConfirmation;
|
|
3945
|
+
submit(): boolean;
|
|
4247
3946
|
payButton: (props: any) => h.JSX.Element;
|
|
4248
3947
|
render(): h.JSX.Element;
|
|
4249
3948
|
}
|
|
@@ -4294,22 +3993,7 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4294
3993
|
risk?: RiskElement;
|
|
4295
3994
|
};
|
|
4296
3995
|
isDropin?: boolean;
|
|
4297
|
-
onChange?: (state:
|
|
4298
|
-
data: PaymentData;
|
|
4299
|
-
isValid: boolean;
|
|
4300
|
-
valid?: {
|
|
4301
|
-
[fieldKey: string]: boolean;
|
|
4302
|
-
};
|
|
4303
|
-
errors?: {
|
|
4304
|
-
[fieldKey: string]: {
|
|
4305
|
-
isValid: boolean;
|
|
4306
|
-
errorMessage: string;
|
|
4307
|
-
errorI18n: string;
|
|
4308
|
-
error: string;
|
|
4309
|
-
rootNode: HTMLElement;
|
|
4310
|
-
};
|
|
4311
|
-
};
|
|
4312
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3996
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
4313
3997
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
4314
3998
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
4315
3999
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -4317,27 +4001,11 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4317
4001
|
method: string;
|
|
4318
4002
|
data?: any;
|
|
4319
4003
|
}) => void;
|
|
4320
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4321
|
-
|
|
4322
|
-
billingAddress?: AddressData;
|
|
4323
|
-
deliveryAddress?: AddressData;
|
|
4324
|
-
shopperEmail?: string;
|
|
4325
|
-
shopperName?: string;
|
|
4326
|
-
}) => void;
|
|
4327
|
-
reject: () => void;
|
|
4328
|
-
}) => void;
|
|
4329
|
-
onSubmit?: (state: {
|
|
4330
|
-
data: PaymentData;
|
|
4331
|
-
isValid: boolean;
|
|
4332
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4333
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4334
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4335
|
-
}) => void;
|
|
4004
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
4005
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4336
4006
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4337
|
-
onAdditionalDetails?: (state:
|
|
4338
|
-
|
|
4339
|
-
reject: () => void;
|
|
4340
|
-
}) => void;
|
|
4007
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4008
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
4341
4009
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4342
4010
|
onOrderUpdated?: (data: {
|
|
4343
4011
|
order: Order;
|
|
@@ -4387,22 +4055,7 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4387
4055
|
risk?: RiskElement;
|
|
4388
4056
|
};
|
|
4389
4057
|
isDropin?: boolean;
|
|
4390
|
-
onChange?: (state:
|
|
4391
|
-
data: PaymentData;
|
|
4392
|
-
isValid: boolean;
|
|
4393
|
-
valid?: {
|
|
4394
|
-
[fieldKey: string]: boolean;
|
|
4395
|
-
};
|
|
4396
|
-
errors?: {
|
|
4397
|
-
[fieldKey: string]: {
|
|
4398
|
-
isValid: boolean;
|
|
4399
|
-
errorMessage: string;
|
|
4400
|
-
errorI18n: string;
|
|
4401
|
-
error: string;
|
|
4402
|
-
rootNode: HTMLElement;
|
|
4403
|
-
};
|
|
4404
|
-
};
|
|
4405
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
4058
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
4406
4059
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
4407
4060
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
4408
4061
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -4410,27 +4063,11 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4410
4063
|
method: string;
|
|
4411
4064
|
data?: any;
|
|
4412
4065
|
}) => void;
|
|
4413
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4414
|
-
|
|
4415
|
-
billingAddress?: AddressData;
|
|
4416
|
-
deliveryAddress?: AddressData;
|
|
4417
|
-
shopperEmail?: string;
|
|
4418
|
-
shopperName?: string;
|
|
4419
|
-
}) => void;
|
|
4420
|
-
reject: () => void;
|
|
4421
|
-
}) => void;
|
|
4422
|
-
onSubmit?: (state: {
|
|
4423
|
-
data: PaymentData;
|
|
4424
|
-
isValid: boolean;
|
|
4425
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4426
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4427
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4428
|
-
}) => void;
|
|
4066
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
4067
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4429
4068
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4430
|
-
onAdditionalDetails?: (state:
|
|
4431
|
-
|
|
4432
|
-
reject: () => void;
|
|
4433
|
-
}) => void;
|
|
4069
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4070
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
4434
4071
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4435
4072
|
onOrderUpdated?: (data: {
|
|
4436
4073
|
order: Order;
|
|
@@ -4745,22 +4382,7 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
4745
4382
|
risk?: RiskElement;
|
|
4746
4383
|
};
|
|
4747
4384
|
isDropin?: boolean;
|
|
4748
|
-
onChange?: (state:
|
|
4749
|
-
data: PaymentData;
|
|
4750
|
-
isValid: boolean;
|
|
4751
|
-
valid?: {
|
|
4752
|
-
[fieldKey: string]: boolean;
|
|
4753
|
-
};
|
|
4754
|
-
errors?: {
|
|
4755
|
-
[fieldKey: string]: {
|
|
4756
|
-
isValid: boolean;
|
|
4757
|
-
errorMessage: string;
|
|
4758
|
-
errorI18n: string;
|
|
4759
|
-
error: string;
|
|
4760
|
-
rootNode: HTMLElement;
|
|
4761
|
-
};
|
|
4762
|
-
};
|
|
4763
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
4385
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
4764
4386
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
4765
4387
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
4766
4388
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -4768,27 +4390,11 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
4768
4390
|
method: string;
|
|
4769
4391
|
data?: any;
|
|
4770
4392
|
}) => void;
|
|
4771
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4772
|
-
|
|
4773
|
-
billingAddress?: AddressData;
|
|
4774
|
-
deliveryAddress?: AddressData;
|
|
4775
|
-
shopperEmail?: string;
|
|
4776
|
-
shopperName?: string;
|
|
4777
|
-
}) => void;
|
|
4778
|
-
reject: () => void;
|
|
4779
|
-
}) => void;
|
|
4780
|
-
onSubmit?: (state: {
|
|
4781
|
-
data: PaymentData;
|
|
4782
|
-
isValid: boolean;
|
|
4783
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4784
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4785
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4786
|
-
}) => void;
|
|
4393
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
4394
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4787
4395
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4788
|
-
onAdditionalDetails?: (state:
|
|
4789
|
-
|
|
4790
|
-
reject: () => void;
|
|
4791
|
-
}) => void;
|
|
4396
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4397
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
4792
4398
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4793
4399
|
onOrderUpdated?: (data: {
|
|
4794
4400
|
order: Order;
|
|
@@ -4844,22 +4450,7 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
4844
4450
|
risk?: RiskElement;
|
|
4845
4451
|
};
|
|
4846
4452
|
isDropin?: boolean;
|
|
4847
|
-
onChange?: (state:
|
|
4848
|
-
data: PaymentData;
|
|
4849
|
-
isValid: boolean;
|
|
4850
|
-
valid?: {
|
|
4851
|
-
[fieldKey: string]: boolean;
|
|
4852
|
-
};
|
|
4853
|
-
errors?: {
|
|
4854
|
-
[fieldKey: string]: {
|
|
4855
|
-
isValid: boolean;
|
|
4856
|
-
errorMessage: string;
|
|
4857
|
-
errorI18n: string;
|
|
4858
|
-
error: string;
|
|
4859
|
-
rootNode: HTMLElement;
|
|
4860
|
-
};
|
|
4861
|
-
};
|
|
4862
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
4453
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
4863
4454
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
4864
4455
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
4865
4456
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -4867,27 +4458,11 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
4867
4458
|
method: string;
|
|
4868
4459
|
data?: any;
|
|
4869
4460
|
}) => void;
|
|
4870
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4871
|
-
|
|
4872
|
-
billingAddress?: AddressData;
|
|
4873
|
-
deliveryAddress?: AddressData;
|
|
4874
|
-
shopperEmail?: string;
|
|
4875
|
-
shopperName?: string;
|
|
4876
|
-
}) => void;
|
|
4877
|
-
reject: () => void;
|
|
4878
|
-
}) => void;
|
|
4879
|
-
onSubmit?: (state: {
|
|
4880
|
-
data: PaymentData;
|
|
4881
|
-
isValid: boolean;
|
|
4882
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4883
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4884
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4885
|
-
}) => void;
|
|
4461
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
4462
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4886
4463
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4887
|
-
onAdditionalDetails?: (state:
|
|
4888
|
-
|
|
4889
|
-
reject: () => void;
|
|
4890
|
-
}) => void;
|
|
4464
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4465
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
4891
4466
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4892
4467
|
onOrderUpdated?: (data: {
|
|
4893
4468
|
order: Order;
|
|
@@ -4963,27 +4538,11 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
4963
4538
|
method: string;
|
|
4964
4539
|
data?: any;
|
|
4965
4540
|
}) => void;
|
|
4966
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4967
|
-
|
|
4968
|
-
billingAddress?: AddressData;
|
|
4969
|
-
deliveryAddress?: AddressData;
|
|
4970
|
-
shopperEmail?: string;
|
|
4971
|
-
shopperName?: string;
|
|
4972
|
-
}) => void;
|
|
4973
|
-
reject: () => void;
|
|
4974
|
-
}) => void;
|
|
4975
|
-
onSubmit?: (state: {
|
|
4976
|
-
data: PaymentData;
|
|
4977
|
-
isValid: boolean;
|
|
4978
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4979
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4980
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4981
|
-
}) => void;
|
|
4541
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
4542
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4982
4543
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4983
|
-
onAdditionalDetails?: (state:
|
|
4984
|
-
|
|
4985
|
-
reject: () => void;
|
|
4986
|
-
}) => void;
|
|
4544
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4545
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
4987
4546
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4988
4547
|
onOrderUpdated?: (data: {
|
|
4989
4548
|
order: Order;
|
|
@@ -5094,7 +4653,6 @@ declare const ComponentsMap: {
|
|
|
5094
4653
|
billdesk_wallet: typeof BillDeskWalletElement;
|
|
5095
4654
|
dotpay: typeof DotpayElement;
|
|
5096
4655
|
eps: typeof EPSElement;
|
|
5097
|
-
ideal: typeof IdealElement;
|
|
5098
4656
|
molpay_ebanking_fpx_MY: typeof MolPayEBankingMYElement;
|
|
5099
4657
|
molpay_ebanking_TH: typeof MolPayEBankingTHElement;
|
|
5100
4658
|
molpay_ebanking_VN: typeof MolPayEbankingVNElement;
|
|
@@ -5131,6 +4689,7 @@ declare const ComponentsMap: {
|
|
|
5131
4689
|
klarna: typeof KlarnaPayments;
|
|
5132
4690
|
klarna_account: typeof KlarnaPayments;
|
|
5133
4691
|
klarna_paynow: typeof KlarnaPayments;
|
|
4692
|
+
klarna_b2b: typeof KlarnaPayments;
|
|
5134
4693
|
/** Klarna */
|
|
5135
4694
|
/** QRLoader */
|
|
5136
4695
|
bcmc_mobile: typeof BCMCMobileElement;
|
|
@@ -5146,6 +4705,7 @@ declare const ComponentsMap: {
|
|
|
5146
4705
|
/** Await */
|
|
5147
4706
|
blik: typeof BlikElement;
|
|
5148
4707
|
mbway: typeof MBWayElement;
|
|
4708
|
+
ancv: typeof ANCVElement;
|
|
5149
4709
|
upi: typeof UPI;
|
|
5150
4710
|
upi_qr: typeof UPI;
|
|
5151
4711
|
upi_collect: typeof UPI;
|
|
@@ -5211,11 +4771,36 @@ interface DropinConfiguration extends UIElementProps {
|
|
|
5211
4771
|
* @defaultValue []
|
|
5212
4772
|
*/
|
|
5213
4773
|
instantPaymentTypes?: InstantPaymentTypes[];
|
|
4774
|
+
/**
|
|
4775
|
+
* Pre-select a specific payment method when Drop-in is rendered
|
|
4776
|
+
*
|
|
4777
|
+
* @default undefined
|
|
4778
|
+
*/
|
|
4779
|
+
openPaymentMethod?: {
|
|
4780
|
+
type: string;
|
|
4781
|
+
};
|
|
4782
|
+
/**
|
|
4783
|
+
* Pre-select the first stored payment method.
|
|
4784
|
+
* It has priority over 'openFirstPaymentMethod' property
|
|
4785
|
+
*
|
|
4786
|
+
* @default true
|
|
4787
|
+
*/
|
|
5214
4788
|
openFirstStoredPaymentMethod?: boolean;
|
|
4789
|
+
/**
|
|
4790
|
+
* Pre-select the first non-stored payment method.
|
|
4791
|
+
* 'openFirstStoredPaymentMethod' has priority over this property
|
|
4792
|
+
*
|
|
4793
|
+
* @default true
|
|
4794
|
+
*/
|
|
5215
4795
|
openFirstPaymentMethod?: boolean;
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
4796
|
+
/**
|
|
4797
|
+
* Callback triggered once the Drop-in is ready to be used
|
|
4798
|
+
*/
|
|
4799
|
+
onReady?(): void;
|
|
4800
|
+
/**
|
|
4801
|
+
* Callback triggered once the shopper selects a different payment method in the Drop-in
|
|
4802
|
+
*/
|
|
4803
|
+
onSelect?(paymentMethod: UIElement): void;
|
|
5219
4804
|
/**
|
|
5220
4805
|
* Show/Hide the remove payment method button on stored payment methods
|
|
5221
4806
|
* Requires {@link DropinConfiguration.onDisableStoredPaymentMethod}
|
|
@@ -5249,8 +4834,7 @@ type onOrderCancelType = (data: onOrderCancelData, actions: {
|
|
|
5249
4834
|
}) => void;
|
|
5250
4835
|
interface DropinComponentProps extends DropinConfiguration {
|
|
5251
4836
|
core: ICore;
|
|
5252
|
-
onCreateElements: any;
|
|
5253
|
-
onChange: (newState?: object) => void;
|
|
4837
|
+
onCreateElements(): any;
|
|
5254
4838
|
onOrderCancel?: onOrderCancelType;
|
|
5255
4839
|
}
|
|
5256
4840
|
interface DropinStatus {
|
|
@@ -5287,7 +4871,7 @@ interface ICore {
|
|
|
5287
4871
|
register(...items: NewableComponent[]): void;
|
|
5288
4872
|
update(options: CoreConfiguration): Promise<ICore>;
|
|
5289
4873
|
remove(component: any): ICore;
|
|
5290
|
-
submitDetails(details:
|
|
4874
|
+
submitDetails(details: AdditionalDetailsData['data']): void;
|
|
5291
4875
|
getCorePropsForComponent(): any;
|
|
5292
4876
|
getComponent(txVariant: string): NewableComponent | undefined;
|
|
5293
4877
|
createFromAction(action: PaymentAction, options: any): UIElement;
|
|
@@ -5296,7 +4880,6 @@ interface ICore {
|
|
|
5296
4880
|
paymentMethodsResponse: PaymentMethods$1;
|
|
5297
4881
|
session?: Session;
|
|
5298
4882
|
}
|
|
5299
|
-
type AdyenEnvironment = 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in' | string;
|
|
5300
4883
|
type PaymentCompletedData = SessionsResponse | {
|
|
5301
4884
|
resultCode: ResultCode;
|
|
5302
4885
|
donationToken?: string;
|
|
@@ -5304,20 +4887,68 @@ type PaymentCompletedData = SessionsResponse | {
|
|
|
5304
4887
|
type PaymentFailedData = SessionsResponse | {
|
|
5305
4888
|
resultCode: ResultCode;
|
|
5306
4889
|
};
|
|
4890
|
+
type SubmitData = {
|
|
4891
|
+
data: PaymentData;
|
|
4892
|
+
isValid: boolean;
|
|
4893
|
+
};
|
|
4894
|
+
type SubmitActions = {
|
|
4895
|
+
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4896
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, 'error'>) => void;
|
|
4897
|
+
};
|
|
4898
|
+
type AdditionalDetailsData = {
|
|
4899
|
+
data: {
|
|
4900
|
+
details: {
|
|
4901
|
+
redirectResult?: string;
|
|
4902
|
+
threeDSResult?: string;
|
|
4903
|
+
[key: string]: any;
|
|
4904
|
+
};
|
|
4905
|
+
paymentData?: string;
|
|
4906
|
+
sessionData?: string;
|
|
4907
|
+
};
|
|
4908
|
+
};
|
|
4909
|
+
type AdditionalDetailsActions = {
|
|
4910
|
+
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4911
|
+
reject: () => void;
|
|
4912
|
+
};
|
|
4913
|
+
type BeforeSubmitActions = {
|
|
4914
|
+
resolve: (data: PaymentData & {
|
|
4915
|
+
billingAddress?: AddressData;
|
|
4916
|
+
deliveryAddress?: AddressData;
|
|
4917
|
+
shopperEmail?: string;
|
|
4918
|
+
shopperName?: string;
|
|
4919
|
+
}) => void;
|
|
4920
|
+
reject: () => void;
|
|
4921
|
+
};
|
|
4922
|
+
type OnChangeData = {
|
|
4923
|
+
data: PaymentData;
|
|
4924
|
+
isValid: boolean;
|
|
4925
|
+
valid?: {
|
|
4926
|
+
[fieldKey: string]: boolean;
|
|
4927
|
+
};
|
|
4928
|
+
errors?: {
|
|
4929
|
+
[fieldKey: string]: {
|
|
4930
|
+
isValid: boolean;
|
|
4931
|
+
errorMessage: string;
|
|
4932
|
+
errorI18n: string;
|
|
4933
|
+
error: string;
|
|
4934
|
+
rootNode: HTMLElement;
|
|
4935
|
+
};
|
|
4936
|
+
};
|
|
4937
|
+
};
|
|
5307
4938
|
interface CoreConfiguration {
|
|
5308
4939
|
/**
|
|
5309
4940
|
* The payment session object from your call to /sessions.
|
|
5310
4941
|
*/
|
|
5311
4942
|
session?: {
|
|
5312
4943
|
id: string;
|
|
5313
|
-
sessionData
|
|
4944
|
+
sessionData?: string;
|
|
5314
4945
|
shopperEmail?: string;
|
|
5315
4946
|
telephoneNumber?: string;
|
|
5316
4947
|
};
|
|
5317
4948
|
/**
|
|
5318
4949
|
* Use 'test'. When you're ready to accept live payments, change the value to one of our {@link https://docs.adyen.com/checkout/drop-in-web#testing-your-integration | live environments}.
|
|
5319
4950
|
*/
|
|
5320
|
-
environment?:
|
|
4951
|
+
environment?: 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in';
|
|
5321
4952
|
/**
|
|
5322
4953
|
* Show or hides a Pay Button for each payment method
|
|
5323
4954
|
* @default true
|
|
@@ -5380,172 +5011,300 @@ interface CoreConfiguration {
|
|
|
5380
5011
|
* Called before the page redirect happens.
|
|
5381
5012
|
* Allows you to perform any sort of action before redirecting the shopper to another page.
|
|
5382
5013
|
*
|
|
5383
|
-
* @param resolve
|
|
5384
|
-
* @param reject
|
|
5385
|
-
* @param redirectData
|
|
5014
|
+
* @param resolve
|
|
5015
|
+
* @param reject
|
|
5016
|
+
* @param redirectData
|
|
5017
|
+
*/
|
|
5018
|
+
beforeRedirect?(resolve: () => void, reject: () => void, redirectData: {
|
|
5019
|
+
url: string;
|
|
5020
|
+
method: string;
|
|
5021
|
+
data?: any;
|
|
5022
|
+
}): void;
|
|
5023
|
+
/**
|
|
5024
|
+
* Called when the shopper selects the Pay button (it only works on Sessions flow)
|
|
5025
|
+
*
|
|
5026
|
+
* Allows you to add details which will be sent in the payment request to Adyen's servers.
|
|
5027
|
+
* For example, you can add shopper details like 'billingAddress', 'deliveryAddress', 'shopperEmail' or 'shopperName'
|
|
5028
|
+
*
|
|
5029
|
+
* @param state
|
|
5030
|
+
* @param component
|
|
5031
|
+
* @param actions
|
|
5032
|
+
*/
|
|
5033
|
+
beforeSubmit?(state: PaymentData, component: UIElement, actions: BeforeSubmitActions): void;
|
|
5034
|
+
/**
|
|
5035
|
+
* Called when the payment succeeds.
|
|
5036
|
+
*
|
|
5037
|
+
* The first parameter is the sessions response (when using sessions flow), or the result code.
|
|
5038
|
+
*
|
|
5039
|
+
* @param data
|
|
5040
|
+
* @param component
|
|
5041
|
+
*/
|
|
5042
|
+
onPaymentCompleted?(data: PaymentCompletedData, component?: UIElement): void;
|
|
5043
|
+
/**
|
|
5044
|
+
* Called when the payment fails.
|
|
5045
|
+
*
|
|
5046
|
+
* The first parameter is populated when merchant is using sessions, or when the payment was rejected
|
|
5047
|
+
* with an object. (Ex: 'action.reject(obj)' ). Otherwise, it will be empty.
|
|
5048
|
+
*
|
|
5049
|
+
* @param data - session response or resultCode. It can also be undefined if payment was rejected without argument ('action.reject()')
|
|
5050
|
+
* @param component
|
|
5051
|
+
*/
|
|
5052
|
+
onPaymentFailed?(data?: PaymentFailedData, component?: UIElement): void;
|
|
5053
|
+
/**
|
|
5054
|
+
* Callback used in the Advanced flow to perform the /payments API call
|
|
5055
|
+
*
|
|
5056
|
+
* The payment response must be passed to the 'resolve' function, even if the payment wasn't authorized (Ex: resultCode = Refused).
|
|
5057
|
+
* The 'reject' should be used only if a critical error occurred.
|
|
5058
|
+
*
|
|
5059
|
+
* @param state
|
|
5060
|
+
* @param component
|
|
5061
|
+
* @param actions
|
|
5062
|
+
*/
|
|
5063
|
+
onSubmit?(state: SubmitData, component: UIElement, actions: SubmitActions): void;
|
|
5064
|
+
/**
|
|
5065
|
+
* Callback used in the Advanced flow to perform the /payments/details API call.
|
|
5066
|
+
*
|
|
5067
|
+
* The payment response must be passed to the 'resolve' function, even if the payment wasn't authorized (Ex: resultCode = Refused).
|
|
5068
|
+
* The 'reject' should be used only if a critical error occurred.
|
|
5069
|
+
*
|
|
5070
|
+
* @param state
|
|
5071
|
+
* @param component - Component submitting details. It is undefined when using checkout.submitDetails()
|
|
5072
|
+
* @param actions
|
|
5073
|
+
*/
|
|
5074
|
+
onAdditionalDetails?(state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions): void;
|
|
5075
|
+
/**
|
|
5076
|
+
* Callback called when an action (for example a QR code or 3D Secure 2 authentication screen) is shown to the shopper.
|
|
5077
|
+
*
|
|
5078
|
+
* @param actionHandled
|
|
5079
|
+
*/
|
|
5080
|
+
onActionHandled?(actionHandled: ActionHandledReturnObject): void;
|
|
5081
|
+
onChange?(state: OnChangeData, component: UIElement): void;
|
|
5082
|
+
/**
|
|
5083
|
+
* Callback called in two different scenarios:
|
|
5084
|
+
* - when a critical error happened (network error; implementation error; script failed to load)
|
|
5085
|
+
* - when the shopper cancels the payment flow in payment methods that have an overlay (GooglePay, PayPal, ApplePay)
|
|
5086
|
+
*
|
|
5087
|
+
* @param error
|
|
5088
|
+
* @param component
|
|
5089
|
+
*/
|
|
5090
|
+
onError?(error: AdyenCheckoutError, component?: UIElement): void;
|
|
5091
|
+
onBalanceCheck?: onBalanceCheckCallbackType;
|
|
5092
|
+
onOrderRequest?: onOrderRequestCallbackType;
|
|
5093
|
+
/**
|
|
5094
|
+
* Called when a Component detects, or is told by a SecuredField, that the Enter key has been pressed.
|
|
5095
|
+
* - merchant set config option
|
|
5096
|
+
*/
|
|
5097
|
+
onEnterKeyPressed?(activeElement: Element, component: UIElement): void;
|
|
5098
|
+
/**
|
|
5099
|
+
* Callback called when it is required to fetch/update the payment methods list.
|
|
5100
|
+
* It is currently used mainly on Giftcard flow (Partial orders), since the payment method list might change depending on the amount left to be paid
|
|
5101
|
+
*
|
|
5102
|
+
* The /paymentMethods response must be passed to the 'resolve' function
|
|
5103
|
+
*
|
|
5104
|
+
* @param data
|
|
5105
|
+
* @param actions
|
|
5106
|
+
*/
|
|
5107
|
+
onPaymentMethodsRequest?(data: PaymentMethodsRequestData, actions: {
|
|
5108
|
+
resolve: (response: PaymentMethodsResponse) => void;
|
|
5109
|
+
reject: () => void;
|
|
5110
|
+
}): void;
|
|
5111
|
+
onOrderCancel?: onOrderCancelType;
|
|
5112
|
+
/**
|
|
5113
|
+
* Called when the gift card balance is less than the transaction amount.
|
|
5114
|
+
* Returns an Order object that includes the remaining amount to be paid.
|
|
5115
|
+
* https://docs.adyen.com/payment-methods/gift-cards/web-component?tab=config-sessions_1
|
|
5116
|
+
*/
|
|
5117
|
+
onOrderUpdated?(data: {
|
|
5118
|
+
order: Order;
|
|
5119
|
+
}): void;
|
|
5120
|
+
/**
|
|
5121
|
+
* @internal
|
|
5122
|
+
*/
|
|
5123
|
+
loadingContext?: string;
|
|
5124
|
+
/**
|
|
5125
|
+
* Used internally in order to set different URL's instead of using the ones mapped in our codebase.
|
|
5126
|
+
*
|
|
5127
|
+
* @internal
|
|
5128
|
+
*/
|
|
5129
|
+
_environmentUrls?: {
|
|
5130
|
+
api?: string;
|
|
5131
|
+
analytics?: string;
|
|
5132
|
+
cdn?: {
|
|
5133
|
+
images?: string;
|
|
5134
|
+
translations?: string;
|
|
5135
|
+
};
|
|
5136
|
+
};
|
|
5137
|
+
}
|
|
5138
|
+
|
|
5139
|
+
declare abstract class BaseElement<P extends BaseElementProps> implements IBaseElement {
|
|
5140
|
+
readonly _id: string;
|
|
5141
|
+
readonly core: ICore;
|
|
5142
|
+
props: P;
|
|
5143
|
+
state: any;
|
|
5144
|
+
_component: any;
|
|
5145
|
+
protected _node: HTMLElement;
|
|
5146
|
+
protected static defaultProps: {};
|
|
5147
|
+
constructor(checkout: ICore, props?: P);
|
|
5148
|
+
protected buildElementProps(componentProps?: P): void;
|
|
5149
|
+
/**
|
|
5150
|
+
* Executed during creation of any payment element.
|
|
5151
|
+
* Gives a chance to any paymentMethod to format the props we're receiving.
|
|
5152
|
+
*/
|
|
5153
|
+
protected formatProps(props: P): P;
|
|
5154
|
+
/**
|
|
5155
|
+
* Executed on the `data` getter.
|
|
5156
|
+
* Returns the component data necessary for the /payments request
|
|
5157
|
+
*/
|
|
5158
|
+
protected formatData(): any;
|
|
5159
|
+
protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): any;
|
|
5160
|
+
protected submitAnalytics(analyticsObj?: SendAnalyticsObject): any;
|
|
5161
|
+
protected handleKeyPress(e: h.JSX.TargetedKeyboardEvent<HTMLInputElement>): any;
|
|
5162
|
+
protected setState(newState: object): void;
|
|
5163
|
+
/**
|
|
5164
|
+
* Returns the component payment data ready to submit to the Checkout API
|
|
5165
|
+
* Note: this does not ensure validity, check isValid first
|
|
5166
|
+
*/
|
|
5167
|
+
get data(): PaymentData;
|
|
5168
|
+
render(): ComponentChild | Error;
|
|
5169
|
+
/**
|
|
5170
|
+
* Mounts an element into the dom
|
|
5171
|
+
* @param domNode - Node (or selector) where we will mount the payment element
|
|
5172
|
+
* @returns this - the payment element instance we mounted
|
|
5173
|
+
*/
|
|
5174
|
+
mount(domNode: HTMLElement | string): this;
|
|
5175
|
+
/**
|
|
5176
|
+
* Updates props, resets the internal state and remounts the element.
|
|
5177
|
+
*
|
|
5178
|
+
* @param props - props to update
|
|
5179
|
+
* @returns this - the element instance
|
|
5180
|
+
*/
|
|
5181
|
+
update(props: Partial<P>): this;
|
|
5182
|
+
/**
|
|
5183
|
+
* Unmounts a payment element from the DOM
|
|
5184
|
+
*/
|
|
5185
|
+
unmount(): this;
|
|
5186
|
+
/**
|
|
5187
|
+
* Unmounts an element and removes it from the parent instance
|
|
5188
|
+
* For "destroy" type cleanup - when you don't intend to use the component again
|
|
5189
|
+
*/
|
|
5190
|
+
remove(): void;
|
|
5191
|
+
}
|
|
5192
|
+
|
|
5193
|
+
declare abstract class UIElement<P extends UIElementProps = UIElementProps> extends BaseElement<P> {
|
|
5194
|
+
protected componentRef: any;
|
|
5195
|
+
protected resources: Resources;
|
|
5196
|
+
elementRef: UIElement;
|
|
5197
|
+
static type: any;
|
|
5198
|
+
/**
|
|
5199
|
+
* Defines all txVariants that the Component supports (in case it support multiple ones besides the 'type' one)
|
|
5200
|
+
*/
|
|
5201
|
+
static txVariants: string[];
|
|
5202
|
+
constructor(checkout: ICore, props?: P);
|
|
5203
|
+
protected buildElementProps(componentProps?: P): void;
|
|
5204
|
+
protected storeElementRefOnCore(props?: P): void;
|
|
5205
|
+
isAvailable(): Promise<void>;
|
|
5206
|
+
setState(newState: object): void;
|
|
5207
|
+
showValidation(): this;
|
|
5208
|
+
setElementStatus(status: UIElementStatus, props?: any): this;
|
|
5209
|
+
setStatus(status: UIElementStatus, props?: any): this;
|
|
5210
|
+
protected onChange(): void;
|
|
5211
|
+
protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): Promise<any>;
|
|
5212
|
+
/**
|
|
5213
|
+
* A function for all UIElements, or BaseElement, to use to create an analytics action for when it's been:
|
|
5214
|
+
* - mounted,
|
|
5215
|
+
* - a PM has been selected
|
|
5216
|
+
* - onSubmit has been called (as a result of the pay button being pressed)
|
|
5217
|
+
*
|
|
5218
|
+
* In some other cases e.g. 3DS2 components, this function is overridden to allow more specific analytics actions to be created
|
|
5219
|
+
*/
|
|
5220
|
+
protected submitAnalytics(analyticsObj: SendAnalyticsObject, uiElementProps?: any): void;
|
|
5221
|
+
submit(): void;
|
|
5222
|
+
protected makePaymentsCall(): Promise<CheckoutAdvancedFlowResponse | CheckoutSessionPaymentResponse>;
|
|
5223
|
+
private submitUsingAdvancedFlow;
|
|
5224
|
+
private submitUsingSessionsFlow;
|
|
5225
|
+
protected onComplete(state: any): void;
|
|
5226
|
+
protected handleError: (error: AdyenCheckoutError) => void;
|
|
5227
|
+
protected handleAdditionalDetails(state: AdditionalDetailsData): void;
|
|
5228
|
+
private makeAdditionalDetailsCall;
|
|
5229
|
+
private submitAdditionalDetailsUsingSessionsFlow;
|
|
5230
|
+
handleAction(action: PaymentAction, props?: {}): UIElement | null;
|
|
5231
|
+
protected handleOrder: (response: PaymentResponseData) => void;
|
|
5232
|
+
/**
|
|
5233
|
+
* Handles when the payment fails. The payment fails when:
|
|
5234
|
+
* - adv flow: the merchant rejects the payment due to a critical error
|
|
5235
|
+
* - adv flow: the merchant resolves the payment with a failed resultCode
|
|
5236
|
+
* - sessions: a network error occurs when making the payment
|
|
5237
|
+
* - sessions: the payment fails with a failed resultCode
|
|
5238
|
+
*
|
|
5239
|
+
* @param result
|
|
5386
5240
|
*/
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
method: string;
|
|
5390
|
-
data?: any;
|
|
5391
|
-
}): void;
|
|
5241
|
+
protected handleFailedResult: (result?: PaymentResponseData) => void;
|
|
5242
|
+
protected handleSuccessResult: (result: PaymentResponseData) => void;
|
|
5392
5243
|
/**
|
|
5393
|
-
*
|
|
5394
|
-
*
|
|
5395
|
-
* Allows you to add details which will be sent in the payment request to Adyen's servers.
|
|
5396
|
-
* For example, you can add shopper details like 'billingAddress', 'deliveryAddress', 'shopperEmail' or 'shopperName'
|
|
5244
|
+
* Handles a session /payments or /payments/details response.
|
|
5245
|
+
* The component will handle automatically actions, orders, and final results.
|
|
5397
5246
|
*
|
|
5398
|
-
* @param
|
|
5399
|
-
* @param component
|
|
5400
|
-
* @param actions
|
|
5247
|
+
* @param rawResponse -
|
|
5401
5248
|
*/
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
billingAddress?: AddressData;
|
|
5405
|
-
deliveryAddress?: AddressData;
|
|
5406
|
-
shopperEmail?: string;
|
|
5407
|
-
shopperName?: string;
|
|
5408
|
-
}) => void;
|
|
5409
|
-
reject: () => void;
|
|
5410
|
-
}): void;
|
|
5249
|
+
protected handleResponse(rawResponse: RawPaymentResponse): void;
|
|
5250
|
+
protected handleKeyPress(e: h.JSX.TargetedKeyboardEvent<HTMLInputElement> | KeyboardEvent): void;
|
|
5411
5251
|
/**
|
|
5412
|
-
*
|
|
5413
|
-
*
|
|
5414
|
-
* The first parameter is the sessions response (when using sessions flow), or the result code.
|
|
5415
|
-
*
|
|
5416
|
-
* @param data
|
|
5417
|
-
* @param component
|
|
5252
|
+
* Handle Enter key pressed from a UIElement (called via handleKeyPress)
|
|
5253
|
+
* @param obj
|
|
5418
5254
|
*/
|
|
5419
|
-
|
|
5255
|
+
protected onEnterKeyPressed(activeElement: Element, component: UIElement): void;
|
|
5420
5256
|
/**
|
|
5421
|
-
*
|
|
5422
|
-
*
|
|
5423
|
-
*
|
|
5424
|
-
* with an object. (Ex: 'action.reject(obj)' ). Otherwise, it will be empty.
|
|
5425
|
-
*
|
|
5426
|
-
* @param data - session response or resultCode. It can also be undefined if payment was rejected without argument ('action.reject()')
|
|
5427
|
-
* @param component
|
|
5257
|
+
* Call update on parent instance
|
|
5258
|
+
* This function exist to make safe access to the protected _parentInstance
|
|
5259
|
+
* @param options - CoreOptions
|
|
5428
5260
|
*/
|
|
5429
|
-
|
|
5261
|
+
updateParent(options?: CoreConfiguration): Promise<ICore>;
|
|
5262
|
+
setComponentRef: (ref: ComponentMethodsRef) => void;
|
|
5430
5263
|
/**
|
|
5431
|
-
*
|
|
5432
|
-
*
|
|
5433
|
-
* The payment response must be passed to the 'resolve' function, even if the payment wasn't authorized (Ex: resultCode = Refused).
|
|
5434
|
-
* The 'reject' should be used only if a critical error occurred.
|
|
5435
|
-
*
|
|
5436
|
-
* @param state
|
|
5437
|
-
* @param component
|
|
5438
|
-
* @param actions
|
|
5264
|
+
* Get the current validation status of the element
|
|
5439
5265
|
*/
|
|
5440
|
-
|
|
5441
|
-
data: PaymentData;
|
|
5442
|
-
isValid: boolean;
|
|
5443
|
-
}, component: UIElement, actions: {
|
|
5444
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
5445
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, 'error'>) => void;
|
|
5446
|
-
}): void;
|
|
5266
|
+
get isValid(): boolean;
|
|
5447
5267
|
/**
|
|
5448
|
-
*
|
|
5449
|
-
*
|
|
5450
|
-
* The payment response must be passed to the 'resolve' function, even if the payment wasn't authorized (Ex: resultCode = Refused).
|
|
5451
|
-
* The 'reject' should be used only if a critical error occurred.
|
|
5452
|
-
*
|
|
5453
|
-
* @param state
|
|
5454
|
-
* @param component - Component submitting details. It is undefined when using checkout.submitDetails()
|
|
5455
|
-
* @param actions
|
|
5268
|
+
* Get the element icon URL for the current environment
|
|
5456
5269
|
*/
|
|
5457
|
-
|
|
5458
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
5459
|
-
reject: () => void;
|
|
5460
|
-
}): void;
|
|
5270
|
+
get icon(): string;
|
|
5461
5271
|
/**
|
|
5462
|
-
*
|
|
5463
|
-
*
|
|
5464
|
-
* @param actionHandled
|
|
5272
|
+
* Get the element's displayable name
|
|
5465
5273
|
*/
|
|
5466
|
-
|
|
5467
|
-
onChange?(state: {
|
|
5468
|
-
data: PaymentData;
|
|
5469
|
-
isValid: boolean;
|
|
5470
|
-
valid?: {
|
|
5471
|
-
[fieldKey: string]: boolean;
|
|
5472
|
-
};
|
|
5473
|
-
errors?: {
|
|
5474
|
-
[fieldKey: string]: {
|
|
5475
|
-
isValid: boolean;
|
|
5476
|
-
errorMessage: string;
|
|
5477
|
-
errorI18n: string;
|
|
5478
|
-
error: string;
|
|
5479
|
-
rootNode: HTMLElement;
|
|
5480
|
-
};
|
|
5481
|
-
};
|
|
5482
|
-
}, component: UIElement): void;
|
|
5274
|
+
get displayName(): string;
|
|
5483
5275
|
/**
|
|
5484
|
-
*
|
|
5485
|
-
* - when a critical error happened (network error; implementation error; script failed to load)
|
|
5486
|
-
* - when the shopper cancels the payment flow in payment methods that have an overlay (GooglePay, PayPal, ApplePay)
|
|
5487
|
-
*
|
|
5488
|
-
* @param error
|
|
5489
|
-
* @param component
|
|
5276
|
+
* Get the element accessible name, used in the aria-label of the button that controls selected payment method
|
|
5490
5277
|
*/
|
|
5491
|
-
|
|
5492
|
-
onBalanceCheck?: onBalanceCheckCallbackType;
|
|
5493
|
-
onOrderRequest?: onOrderRequestCallbackType;
|
|
5278
|
+
get accessibleName(): string;
|
|
5494
5279
|
/**
|
|
5495
|
-
*
|
|
5496
|
-
* It is currently used mainly on Giftcard flow (Partial orders), since the payment method list might change depending on the amount left to be paid
|
|
5497
|
-
*
|
|
5498
|
-
* The /paymentMethods response must be passed to the 'resolve' function
|
|
5499
|
-
*
|
|
5500
|
-
* @param data
|
|
5501
|
-
* @param actions
|
|
5280
|
+
* Used to display the second line of a payment method item
|
|
5502
5281
|
*/
|
|
5503
|
-
|
|
5504
|
-
resolve: (response: PaymentMethodsResponse) => void;
|
|
5505
|
-
reject: () => void;
|
|
5506
|
-
}): void;
|
|
5507
|
-
onOrderCancel?: onOrderCancelType;
|
|
5282
|
+
get additionalInfo(): string;
|
|
5508
5283
|
/**
|
|
5509
|
-
*
|
|
5510
|
-
* Returns an Order object that includes the remaining amount to be paid.
|
|
5511
|
-
* https://docs.adyen.com/payment-methods/gift-cards/web-component?tab=config-sessions_1
|
|
5284
|
+
* Return the type of an element
|
|
5512
5285
|
*/
|
|
5513
|
-
|
|
5514
|
-
order: Order;
|
|
5515
|
-
}): void;
|
|
5286
|
+
get type(): string;
|
|
5516
5287
|
/**
|
|
5517
|
-
*
|
|
5288
|
+
* Get the payButton component for the current element
|
|
5518
5289
|
*/
|
|
5519
|
-
|
|
5290
|
+
protected payButton: (props: PayButtonFunctionProps) => h.JSX.Element;
|
|
5520
5291
|
/**
|
|
5521
|
-
* Used
|
|
5292
|
+
* Used in the Partial Orders flow.
|
|
5293
|
+
* When the Order is updated, the merchant can request new payment methods based on the new remaining amount
|
|
5522
5294
|
*
|
|
5523
|
-
* @
|
|
5295
|
+
* @private
|
|
5524
5296
|
*/
|
|
5525
|
-
|
|
5526
|
-
api?: string;
|
|
5527
|
-
analytics?: string;
|
|
5528
|
-
cdn?: {
|
|
5529
|
-
images?: string;
|
|
5530
|
-
translations?: string;
|
|
5531
|
-
};
|
|
5532
|
-
};
|
|
5533
|
-
}
|
|
5534
|
-
|
|
5535
|
-
type NewableComponent = new (checkout: ICore, props?: any) => IUIElement;
|
|
5536
|
-
interface IRegistry {
|
|
5537
|
-
add(...items: NewableComponent[]): void;
|
|
5538
|
-
getComponent(type: string): NewableComponent | undefined;
|
|
5297
|
+
protected handleAdvanceFlowPaymentMethodsUpdate(order: Order | null, amount?: PaymentAmount): Promise<ICore>;
|
|
5539
5298
|
}
|
|
5540
5299
|
|
|
5541
5300
|
declare const actionTypes: {
|
|
5542
|
-
readonly redirect: (core: ICore, registry: any, action: PaymentAction, props: any) =>
|
|
5543
|
-
readonly threeDS2: (core: ICore, registry: any, action: PaymentAction, props: any) =>
|
|
5544
|
-
readonly voucher: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) =>
|
|
5545
|
-
readonly qrCode: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) =>
|
|
5546
|
-
readonly await: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) =>
|
|
5547
|
-
readonly bankTransfer: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) =>
|
|
5548
|
-
readonly sdk: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) =>
|
|
5301
|
+
readonly redirect: (core: ICore, registry: any, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5302
|
+
readonly threeDS2: (core: ICore, registry: any, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5303
|
+
readonly voucher: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5304
|
+
readonly qrCode: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5305
|
+
readonly await: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5306
|
+
readonly bankTransfer: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5307
|
+
readonly sdk: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5549
5308
|
};
|
|
5550
5309
|
|
|
5551
5310
|
interface CAActions {
|
|
@@ -5569,7 +5328,7 @@ interface PaymentAction {
|
|
|
5569
5328
|
/**
|
|
5570
5329
|
* General type of action that needs to be taken by the client
|
|
5571
5330
|
*/
|
|
5572
|
-
type: PaymentActionsType
|
|
5331
|
+
type: PaymentActionsType;
|
|
5573
5332
|
/**
|
|
5574
5333
|
* Refinement of type of action that needs to be taken by the client (currently only applies to the new 'threeDS2' type)
|
|
5575
5334
|
*/
|
|
@@ -5843,17 +5602,6 @@ interface ActionHandledReturnObject {
|
|
|
5843
5602
|
componentType: string;
|
|
5844
5603
|
actionDescription: ActionDescriptionType;
|
|
5845
5604
|
}
|
|
5846
|
-
type AdditionalDetailsStateData = {
|
|
5847
|
-
data: {
|
|
5848
|
-
details: {
|
|
5849
|
-
redirectResult?: string;
|
|
5850
|
-
threeDSResult?: string;
|
|
5851
|
-
[key: string]: any;
|
|
5852
|
-
};
|
|
5853
|
-
paymentData?: string;
|
|
5854
|
-
sessionData?: string;
|
|
5855
|
-
};
|
|
5856
|
-
};
|
|
5857
5605
|
interface AnalyticsModule {
|
|
5858
5606
|
setUp: (a: AnalyticsInitialEvent) => Promise<any>;
|
|
5859
5607
|
getCheckoutAttemptId: () => string;
|
|
@@ -5956,7 +5704,7 @@ declare class Session {
|
|
|
5956
5704
|
/**
|
|
5957
5705
|
* Submits session payment additional details
|
|
5958
5706
|
*/
|
|
5959
|
-
submitDetails(data:
|
|
5707
|
+
submitDetails(data: AdditionalDetailsData['data']): Promise<CheckoutSessionDetailsResponse>;
|
|
5960
5708
|
/**
|
|
5961
5709
|
* Checks the balance for a payment method
|
|
5962
5710
|
*/
|
|
@@ -6041,47 +5789,49 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
6041
5789
|
onReady?(): void;
|
|
6042
5790
|
onTimeout?(error: TimeoutError): void;
|
|
6043
5791
|
};
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
5792
|
+
autoFocus?: boolean;
|
|
5793
|
+
billingAddressAllowedCountries?: string[];
|
|
5794
|
+
billingAddressMode?: "none" | "full" | "partial";
|
|
5795
|
+
billingAddressRequiredFields?: string[];
|
|
6047
5796
|
brands?: string[];
|
|
6048
|
-
positionHolderNameOnTop?: boolean;
|
|
6049
|
-
showBrandIcon?: boolean;
|
|
6050
|
-
showContextualElement?: boolean;
|
|
6051
|
-
hideCVC?: boolean;
|
|
6052
|
-
hasHolderName?: boolean;
|
|
6053
|
-
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
6054
5797
|
challengeWindowSize?: "02" | "01" | "03" | "04" | "05";
|
|
6055
5798
|
data?: {
|
|
6056
5799
|
holderName?: string;
|
|
6057
5800
|
billingAddress?: Partial<AddressData>;
|
|
6058
5801
|
};
|
|
6059
|
-
|
|
5802
|
+
_disableClickToPay?: boolean;
|
|
5803
|
+
disableIOSArrowKeys?: boolean;
|
|
5804
|
+
disclaimerMessage?: DisclaimerMsgObject;
|
|
5805
|
+
doBinLookup?: boolean;
|
|
5806
|
+
expiryMonth?: string;
|
|
5807
|
+
exposeExpiryDate?: boolean;
|
|
5808
|
+
forceCompat?: boolean;
|
|
5809
|
+
fundingSource?: "debit" | "credit";
|
|
5810
|
+
hasHolderName?: boolean;
|
|
5811
|
+
hideCVC?: boolean;
|
|
5812
|
+
id?: string;
|
|
5813
|
+
keypadFix?: boolean;
|
|
5814
|
+
lastFour?: string;
|
|
5815
|
+
legacyInputMode?: boolean;
|
|
5816
|
+
maskSecurityCode?: boolean;
|
|
5817
|
+
minimumExpiryDate?: string[];
|
|
5818
|
+
name?: string;
|
|
5819
|
+
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
5820
|
+
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
5821
|
+
onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
5822
|
+
onBrand?: (event: CbObjOnBrand) => void;
|
|
6060
5823
|
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
6061
5824
|
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
6062
|
-
onBrand?: (event: CbObjOnBrand) => void;
|
|
6063
5825
|
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
billingAddressRequiredFields?: string[];
|
|
6070
|
-
billingAddressAllowedCountries?: string[];
|
|
6071
|
-
id?: string;
|
|
5826
|
+
onLoad?: (event: CbObjOnLoad) => void;
|
|
5827
|
+
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
5828
|
+
positionHolderNameOnTop?: boolean;
|
|
5829
|
+
showBrandIcon?: boolean;
|
|
5830
|
+
showContextualElement?: boolean;
|
|
6072
5831
|
showInstallmentAmounts?: boolean;
|
|
6073
|
-
legacyInputMode?: boolean;
|
|
6074
|
-
minimumExpiryDate?: string[];
|
|
6075
|
-
autoFocus?: boolean;
|
|
6076
|
-
maskSecurityCode?: boolean;
|
|
6077
|
-
doBinLookup?: boolean;
|
|
6078
|
-
disableIOSArrowKeys?: boolean;
|
|
6079
|
-
disclaimerMessage?: DisclaimerMsgObject;
|
|
6080
5832
|
styles?: StylesObject;
|
|
6081
5833
|
supportedShopperInteractions?: string[];
|
|
6082
|
-
|
|
6083
|
-
expiryMonth?: string;
|
|
6084
|
-
exposeExpiryDate?: boolean;
|
|
5834
|
+
type?: string;
|
|
6085
5835
|
order?: Order;
|
|
6086
5836
|
modules?: {
|
|
6087
5837
|
srPanel?: SRPanel;
|
|
@@ -6090,22 +5840,7 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
6090
5840
|
risk?: RiskElement;
|
|
6091
5841
|
};
|
|
6092
5842
|
isDropin?: boolean;
|
|
6093
|
-
onChange?: (state:
|
|
6094
|
-
data: PaymentData;
|
|
6095
|
-
isValid: boolean;
|
|
6096
|
-
valid?: {
|
|
6097
|
-
[fieldKey: string]: boolean;
|
|
6098
|
-
};
|
|
6099
|
-
errors?: {
|
|
6100
|
-
[fieldKey: string]: {
|
|
6101
|
-
isValid: boolean;
|
|
6102
|
-
errorMessage: string;
|
|
6103
|
-
errorI18n: string;
|
|
6104
|
-
error: string;
|
|
6105
|
-
rootNode: HTMLElement;
|
|
6106
|
-
};
|
|
6107
|
-
};
|
|
6108
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
5843
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
6109
5844
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
6110
5845
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
6111
5846
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -6113,27 +5848,11 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
6113
5848
|
method: string;
|
|
6114
5849
|
data?: any;
|
|
6115
5850
|
}) => void;
|
|
6116
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
6117
|
-
|
|
6118
|
-
billingAddress?: AddressData;
|
|
6119
|
-
deliveryAddress?: AddressData;
|
|
6120
|
-
shopperEmail?: string;
|
|
6121
|
-
shopperName?: string;
|
|
6122
|
-
}) => void;
|
|
6123
|
-
reject: () => void;
|
|
6124
|
-
}) => void;
|
|
6125
|
-
onSubmit?: (state: {
|
|
6126
|
-
data: PaymentData;
|
|
6127
|
-
isValid: boolean;
|
|
6128
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
6129
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
6130
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
6131
|
-
}) => void;
|
|
5851
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
5852
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
6132
5853
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
6133
|
-
onAdditionalDetails?: (state:
|
|
6134
|
-
|
|
6135
|
-
reject: () => void;
|
|
6136
|
-
}) => void;
|
|
5854
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
5855
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
6137
5856
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
6138
5857
|
onOrderUpdated?: (data: {
|
|
6139
5858
|
order: Order;
|
|
@@ -6149,7 +5868,6 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
6149
5868
|
isStoredPaymentMethod?: boolean;
|
|
6150
5869
|
oneClick?: boolean;
|
|
6151
5870
|
statusType?: "custom" | "loading" | "redirect";
|
|
6152
|
-
name?: string;
|
|
6153
5871
|
amount?: PaymentAmount;
|
|
6154
5872
|
secondaryAmount?: PaymentAmountExtended;
|
|
6155
5873
|
showPayButton?: boolean;
|
|
@@ -6251,22 +5969,7 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
6251
5969
|
risk?: RiskElement;
|
|
6252
5970
|
};
|
|
6253
5971
|
isDropin?: boolean;
|
|
6254
|
-
onChange?: (state:
|
|
6255
|
-
data: PaymentData;
|
|
6256
|
-
isValid: boolean;
|
|
6257
|
-
valid?: {
|
|
6258
|
-
[fieldKey: string]: boolean;
|
|
6259
|
-
};
|
|
6260
|
-
errors?: {
|
|
6261
|
-
[fieldKey: string]: {
|
|
6262
|
-
isValid: boolean;
|
|
6263
|
-
errorMessage: string;
|
|
6264
|
-
errorI18n: string;
|
|
6265
|
-
error: string;
|
|
6266
|
-
rootNode: HTMLElement;
|
|
6267
|
-
};
|
|
6268
|
-
};
|
|
6269
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
5972
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
6270
5973
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
6271
5974
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
6272
5975
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -6274,27 +5977,11 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
6274
5977
|
method: string;
|
|
6275
5978
|
data?: any;
|
|
6276
5979
|
}) => void;
|
|
6277
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
6278
|
-
|
|
6279
|
-
billingAddress?: AddressData;
|
|
6280
|
-
deliveryAddress?: AddressData;
|
|
6281
|
-
shopperEmail?: string;
|
|
6282
|
-
shopperName?: string;
|
|
6283
|
-
}) => void;
|
|
6284
|
-
reject: () => void;
|
|
6285
|
-
}) => void;
|
|
6286
|
-
onSubmit?: (state: {
|
|
6287
|
-
data: PaymentData;
|
|
6288
|
-
isValid: boolean;
|
|
6289
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
6290
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
6291
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
6292
|
-
}) => void;
|
|
5980
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
5981
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
6293
5982
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
6294
|
-
onAdditionalDetails?: (state:
|
|
6295
|
-
|
|
6296
|
-
reject: () => void;
|
|
6297
|
-
}) => void;
|
|
5983
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
5984
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
6298
5985
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
6299
5986
|
onOrderUpdated?: (data: {
|
|
6300
5987
|
order: Order;
|
|
@@ -6327,30 +6014,6 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
6327
6014
|
};
|
|
6328
6015
|
}
|
|
6329
6016
|
|
|
6330
|
-
declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
6331
|
-
static type: string;
|
|
6332
|
-
/**
|
|
6333
|
-
* Formats the component data output
|
|
6334
|
-
*/
|
|
6335
|
-
formatData(): {
|
|
6336
|
-
paymentMethod: {
|
|
6337
|
-
type: string;
|
|
6338
|
-
beneficiaryId: any;
|
|
6339
|
-
};
|
|
6340
|
-
};
|
|
6341
|
-
private onOrderRequest;
|
|
6342
|
-
/**
|
|
6343
|
-
* Check if order exists, if it does Resolve.
|
|
6344
|
-
* Otherwise createOrder and then Resolve.
|
|
6345
|
-
*/
|
|
6346
|
-
createOrder: () => Promise<void>;
|
|
6347
|
-
submit(): boolean;
|
|
6348
|
-
payButton: (props: any) => h.JSX.Element;
|
|
6349
|
-
get isValid(): boolean;
|
|
6350
|
-
get displayName(): string;
|
|
6351
|
-
render(): h.JSX.Element;
|
|
6352
|
-
}
|
|
6353
|
-
|
|
6354
6017
|
declare class DropinElement extends UIElement<DropinConfiguration> implements IDropin {
|
|
6355
6018
|
static type: TxVariants;
|
|
6356
6019
|
protected static defaultProps: DropinConfiguration;
|
|
@@ -6370,11 +6033,13 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6370
6033
|
showStoredPaymentMethods?: boolean;
|
|
6371
6034
|
disableFinalAnimation?: boolean;
|
|
6372
6035
|
showPaymentMethods?: boolean;
|
|
6036
|
+
openPaymentMethod?: {
|
|
6037
|
+
type: string;
|
|
6038
|
+
};
|
|
6373
6039
|
openFirstStoredPaymentMethod?: boolean;
|
|
6374
6040
|
openFirstPaymentMethod?: boolean;
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
onSelect?: (paymentMethod: UIElement<UIElementProps>) => void;
|
|
6041
|
+
onReady?(): void;
|
|
6042
|
+
onSelect?(paymentMethod: UIElement<UIElementProps>): void;
|
|
6378
6043
|
showRemovePaymentMethodButton?: boolean;
|
|
6379
6044
|
showRadioButton?: boolean;
|
|
6380
6045
|
onDisableStoredPaymentMethod?: (storedPaymentMethod: any, resolve: any, reject: any) => void;
|
|
@@ -6385,22 +6050,7 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6385
6050
|
risk?: RiskElement;
|
|
6386
6051
|
};
|
|
6387
6052
|
isDropin?: boolean;
|
|
6388
|
-
onChange?: (state:
|
|
6389
|
-
data: PaymentData;
|
|
6390
|
-
isValid: boolean;
|
|
6391
|
-
valid?: {
|
|
6392
|
-
[fieldKey: string]: boolean;
|
|
6393
|
-
};
|
|
6394
|
-
errors?: {
|
|
6395
|
-
[fieldKey: string]: {
|
|
6396
|
-
isValid: boolean;
|
|
6397
|
-
errorMessage: string;
|
|
6398
|
-
errorI18n: string;
|
|
6399
|
-
error: string;
|
|
6400
|
-
rootNode: HTMLElement;
|
|
6401
|
-
};
|
|
6402
|
-
};
|
|
6403
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
6053
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
6404
6054
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
6405
6055
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
6406
6056
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -6408,20 +6058,11 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6408
6058
|
method: string;
|
|
6409
6059
|
data?: any;
|
|
6410
6060
|
}) => void;
|
|
6411
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
6412
|
-
|
|
6413
|
-
billingAddress?: AddressData;
|
|
6414
|
-
deliveryAddress?: AddressData;
|
|
6415
|
-
shopperEmail?: string;
|
|
6416
|
-
shopperName?: string;
|
|
6417
|
-
}) => void;
|
|
6418
|
-
reject: () => void;
|
|
6419
|
-
}) => void;
|
|
6061
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
6062
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
6420
6063
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
6421
|
-
onAdditionalDetails?: (state:
|
|
6422
|
-
|
|
6423
|
-
reject: () => void;
|
|
6424
|
-
}) => void;
|
|
6064
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
6065
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
6425
6066
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
6426
6067
|
onOrderUpdated?: (data: {
|
|
6427
6068
|
order: Order;
|
|
@@ -6474,6 +6115,8 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6474
6115
|
*/
|
|
6475
6116
|
protected handleOrder: ({ order }: PaymentResponseData) => void;
|
|
6476
6117
|
closeActivePaymentMethod(): void;
|
|
6118
|
+
protected handleKeyPress(e: h.JSX.TargetedKeyboardEvent<HTMLInputElement> | KeyboardEvent): void;
|
|
6119
|
+
protected onEnterKeyPressed(activeElement: Element, component: UIElement): void;
|
|
6477
6120
|
render(): h.JSX.Element;
|
|
6478
6121
|
}
|
|
6479
6122
|
|
|
@@ -6512,13 +6155,19 @@ declare const index_d_ThreeDS2DeviceFingerprint: typeof ThreeDS2DeviceFingerprin
|
|
|
6512
6155
|
type index_d_UPI = UPI;
|
|
6513
6156
|
declare const index_d_UPI: typeof UPI;
|
|
6514
6157
|
declare namespace index_d {
|
|
6515
|
-
export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, index_d_Affirm as Affirm, index_d_AfterPay as AfterPay, index_d_AfterPayB2B as AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, index_d_Atome as 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, index_d_CashAppPay as CashAppPay, ClickToPayElement as ClickToPay, index_d_CustomCard as 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, GiftcardElement as Giftcard, GiropayElement as Giropay, index_d_GooglePay as GooglePay,
|
|
6158
|
+
export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, index_d_Affirm as Affirm, index_d_AfterPay as AfterPay, index_d_AfterPayB2B as AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, index_d_Atome as 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, index_d_CashAppPay as CashAppPay, ClickToPayElement as ClickToPay, index_d_CustomCard as 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, GiftcardElement as Giftcard, GiropayElement as Giropay, index_d_GooglePay as GooglePay, KlarnaPayments as Klarna, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, OnlineBankingCZElement as OnlineBankingCZ, index_d_OnlineBankingFI as OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, index_d_OnlineBankingPL as OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, OxxoElement as Oxxo, index_d_PayByBank as PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, PixElement as Pix, PromptPayElement as PromptPay, index_d_RatePay as RatePay, index_d_RatePayDirectDebit as RatePayDirectDebit, RedirectElement as Redirect, index_d_Riverty as Riverty, SepaElement as SepaDirectDebit, SwishElement as Swish, index_d_ThreeDS2Challenge as ThreeDS2Challenge, index_d_ThreeDS2DeviceFingerprint as ThreeDS2DeviceFingerprint, TrustlyElement as Trustly, TwintElement as Twint, index_d_UPI as UPI, VippsElement as Vipps, WalletINElement as WalletIN, WeChatPayElement as WeChat };
|
|
6516
6159
|
}
|
|
6517
6160
|
|
|
6518
6161
|
declare class Core implements ICore {
|
|
6519
6162
|
session?: Session;
|
|
6520
6163
|
paymentMethodsResponse: PaymentMethods$1;
|
|
6521
|
-
modules:
|
|
6164
|
+
modules: Readonly<{
|
|
6165
|
+
risk: RiskElement;
|
|
6166
|
+
analytics: AnalyticsModule;
|
|
6167
|
+
resources: Resources;
|
|
6168
|
+
i18n: Language;
|
|
6169
|
+
srPanel: SRPanel;
|
|
6170
|
+
}>;
|
|
6522
6171
|
options: CoreConfiguration;
|
|
6523
6172
|
analyticsContext: string;
|
|
6524
6173
|
loadingContext: string;
|
|
@@ -6534,7 +6183,10 @@ declare class Core implements ICore {
|
|
|
6534
6183
|
supportedTxVariants: Set<string>;
|
|
6535
6184
|
add(...items: NewableComponent[]): void;
|
|
6536
6185
|
getComponent(type: string): NewableComponent;
|
|
6537
|
-
createComponentsMap(components: NewableComponent[]): {};
|
|
6186
|
+
createComponentsMap(components: NewableComponent[]): {}; /**
|
|
6187
|
+
* Used internally by the PaymentMethod components to auto-register themselves
|
|
6188
|
+
* @internal
|
|
6189
|
+
*/
|
|
6538
6190
|
};
|
|
6539
6191
|
static setBundleType(type: string): void;
|
|
6540
6192
|
static register(...items: NewableComponent[]): void;
|
|
@@ -6556,7 +6208,7 @@ declare class Core implements ICore {
|
|
|
6556
6208
|
* @see {https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Components&version=5.55.1#handle-the-redirect}
|
|
6557
6209
|
* @param details - Details object containing the redirectResult
|
|
6558
6210
|
*/
|
|
6559
|
-
submitDetails(details:
|
|
6211
|
+
submitDetails(details: AdditionalDetailsData['data']): void;
|
|
6560
6212
|
/**
|
|
6561
6213
|
* Instantiates a new element component ready to be mounted from an action object
|
|
6562
6214
|
*
|
|
@@ -6600,8 +6252,8 @@ declare class Core implements ICore {
|
|
|
6600
6252
|
|
|
6601
6253
|
declare function AdyenCheckout(props: CoreConfiguration): Promise<Core>;
|
|
6602
6254
|
declare namespace AdyenCheckout {
|
|
6603
|
-
var register: (...items: (new (checkout: ICore, props: any) =>
|
|
6255
|
+
var register: (...items: (new (checkout: ICore, props: any) => UIElement<UIElementProps>)[]) => void;
|
|
6604
6256
|
var setBundleType: (type: string) => void;
|
|
6605
6257
|
}
|
|
6606
6258
|
|
|
6607
|
-
export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type
|
|
6259
|
+
export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type AdditionalDetailsActions, type AdditionalDetailsData, AddressElement as Address, type AddressData, type AddressField, AdyenCheckout, AdyenCheckoutError, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, type AmazonPayBackendConfiguration, type AmazonPayButtonProps, type AmazonPayButtonSettings, type AmazonPayComponentProps, type AmazonPayConfiguration, type AmazonPayElementData, type AnalyticsModule, ApplePayElement as ApplePay, type ApplePayButtonType, type ApplePayConfiguration, type ApplePayElementData, type ApplePayPaymentAuthorizationResult, type ApplePayPaymentOrderDetails, type ApplePaySessionRequest, Atome, type AwaitComponentProps, type AwaitConfiguration, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, type BankDetailsSchema, BankTransferElement as BankTransfer, type BankTransferConfiguration, type BankTransferSchema, type BankTransferState, BCMCMobileElement as BcmcMobile, type BeforeSubmitActions, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, type BinLookupResponse, type BinLookupResponseRaw, BlikElement as Blik, BoletoElement as Boleto, type BoletoElementProps, type BoletoInputDataState, type BoletoInputErrorState, type BoletoInputValidState, type BrandConfiguration, type BrandObject, type BrowserInfo, type CReqData, CardElement as Card, type CardBackendConfiguration, type CardBrandsConfiguration, type CardConfiguration, type CardElementData, CashAppPay, type CashAppPayConfiguration, type CashAppPayElementData, type CashAppPayEventData, type ChallengeData, type ChallengeResolveData, type ChangeActionOptions, type ChangePaymentDetailsButtonProps, type ChargeAmount, type CheckoutAdvancedFlowResponse, type CheckoutDetailsRequest, type CheckoutSessionConfig, ClickToPayElement as ClickToPay, type ClickToPayConfiguration, type ClickToPayPaymentData, type ClickToPayProps, type ClickToPayScheme, type ComponentFocusObject, type ComponentMethodsRef, type CoreConfiguration, type Currency, CustomCard, type CustomCardConfiguration, type DecodeObject, type DeliverySpecifications, DokuElement as Doku, type DokuVoucherResultProps, DonationElement as Donation, type DonationConfiguration, DotpayElement as Dotpay, DragonpayElement as Dragonpay, type DragonpayConfiguraton, type DragonpayInputData, type DragonpayInputIssuerItem, type DragonpayInputProps, type DragonpayVoucherResultProps, DropinElement as Dropin, type DropinComponentProps, type DropinComponentState, type DropinConfiguration, type DropinStatusProps, type DualBrandSelectElement, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, type EcontextConfiguration, type EcontextInputSchema, type EcontextVoucherResultProps, type ErrorCodeObject, type ExtendedMerchantInfo, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, type FieldsetVisibility, type FingerPrintData, type FingerprintResolveData, type FundingSource, type GiftCardConfiguration, type GiftCardElementData, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, type GooglePayConfiguration, type GooglePaymentDataRequest, type ICore, type IDropin, type InstantPaymentTypes, type Intent, type IssuerListConfiguration, type IssuerListData, type KlarnConfiguration, KlarnaPayments as Klarna, type KlarnaSdkData, type KlarnaWidgetAuthorizeResponse, type KlarnaWidgetProps, type LedgerCurrencies, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, type MultibancoVoucherResultProps, type OnChangeData, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, type OpenInvoiceActiveFieldsets, type OpenInvoiceConfiguration, type OpenInvoiceFieldsetsRefs, type OpenInvoiceProps, type OpenInvoiceStateData, type OpenInvoiceStateError, type OpenInvoiceStateValid, type OpenInvoiceVisibility, type Order, type OrderButtonProps, type OrderStatus, OxxoElement as Oxxo, type OxxoVoucherResultProps, type PayButtonFunctionProps, PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, type PayPalConfiguration, type PayloadJSON, type PaymentAction, type PaymentActionsType, type PaymentAmount, type PaymentAmountExtended, type PaymentCompletedData, type PaymentData, type PaymentFailedData, type PaymentMethod, type PaymentMethodData, type PaymentMethodGroup, type PaymentMethodOptions, type PaymentMethods, type PaymentMethodsConfiguration, type PaymentMethodsRequestData, type PaymentMethodsResponse, type PaymentResponseData, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, type PersonalDetailsSchema, PixElement as Pix, type PixConfiguration, type PixElementData, type PostMsgParseErrorObject, type ProcessedResponse, PromptPayElement as PromptPay, type QRLoaderConfiguration, RatePay, RatePayDirectDebit, type RawPaymentResponse, type RecurringMetadata, RedirectElement as Redirect, type RedirectConfiguration, type Region, type ResultCode, type ResultObject, type ResultValue, Riverty, type SepaConfiguration, SepaElement as SepaDirectDebit, type SepaElementData, type SessionsResponse, type SignOutButtonProps, type SocialSecurityMode, type StatusObject, type StoredPaymentMethod, type SubmitActions, type SubmitData, type SupportedLocale, SwishElement as Swish, ThreeDS2Challenge, type ThreeDS2ChallengeConfiguration, ThreeDS2DeviceFingerprint, type ThreeDS2DeviceFingerprintConfiguration, type ThreeDS2FingerprintResponse, type ThreeDS2FlowObject, type ThreeDS2Token, TrustlyElement as Trustly, TwintElement as Twint, UIElement, type UIElementProps, type UIElementStatus, UPI, type UPIConfiguration, type UpdateAmazonCheckoutSessionRequest, type UpiMode, type UpiPaymentData, type ValidationError, VippsElement as Vipps, type VoucherConfiguration, type VoucherDetail, type VoucherProps, WalletINElement as WalletIN, WeChatPayElement as WeChat, type balanceCheckResponseType, index_d as components, type onBalanceCheckCallbackType, type onOrderCancelData, type onOrderCancelType, type onOrderRequestCallbackType, type onRequiringConfirmationCallbackType };
|