@adyen/adyen-web 6.29.0 → 6.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/adyen.css +8 -9
- 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 +705 -641
- package/dist/es/adyen.css +8 -9
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/components/ANCV/ANCV.js.map +1 -1
- package/dist/es/components/Ach/Ach.js +1 -1
- package/dist/es/components/Ach/Ach.js.map +1 -1
- package/dist/es/components/Ach/components/AccountTypeSelector.js.map +1 -1
- package/dist/es/components/Ach/components/AchComponent.js.map +1 -1
- package/dist/es/components/Affirm/Affirm.js.map +1 -1
- package/dist/es/components/AfterPay/AfterPay.js.map +1 -1
- package/dist/es/components/AfterPay/AfterPayB2B.js.map +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayButton.js +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayButton.js.map +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayComponent.js +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayComponent.js.map +1 -1
- package/dist/es/components/AmazonPay/components/OrderButton.js +1 -1
- package/dist/es/components/AmazonPay/components/OrderButton.js.map +1 -1
- package/dist/es/components/AmazonPay/utils.js +1 -1
- package/dist/es/components/AmazonPay/utils.js.map +1 -1
- package/dist/es/components/ApplePay/ApplePay.js.map +1 -1
- package/dist/es/components/ApplePay/services/ApplePaySdkLoader.js.map +1 -1
- package/dist/es/components/ApplePay/services/ApplePayService.js +1 -1
- package/dist/es/components/ApplePay/services/ApplePayService.js.map +1 -1
- package/dist/es/components/ApplePay/utils/map-adyen-brands-to-applepay-brands.js.map +1 -1
- package/dist/es/components/ApplePay/utils/payment-request.js.map +1 -1
- package/dist/es/components/Atome/Atome.js.map +1 -1
- package/dist/es/components/BacsDD/BacsDD.js +1 -1
- package/dist/es/components/BacsDD/BacsDD.js.map +1 -1
- package/dist/es/components/BacsDD/components/BacsInput.js +1 -1
- package/dist/es/components/BacsDD/components/BacsInput.js.map +1 -1
- package/dist/es/components/BankTransfer/components/BankTransferInput/BankTransferInput.js +1 -1
- package/dist/es/components/BankTransfer/components/BankTransferInput/BankTransferInput.js.map +1 -1
- package/dist/es/components/Blik/Blik.js +1 -1
- package/dist/es/components/Blik/Blik.js.map +1 -1
- package/dist/es/components/Boleto/components/BoletoInput/BoletoInput.js.map +1 -1
- package/dist/es/components/Card/Card.js +1 -1
- package/dist/es/components/Card/Card.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/CardInput.js +1 -1
- package/dist/es/components/Card/components/CardInput/CardInput.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardFieldsWrapper.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardFieldsWrapper.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/Installments/Installments.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/Installments/Installments.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/StoredCardFieldsWrapper.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/StoredCardFieldsWrapper.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/types.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/utils.js +1 -1
- package/dist/es/components/Card/components/CardInput/utils.js.map +1 -1
- package/dist/es/components/Card/components/ClickToPayWrapper.js +1 -1
- package/dist/es/components/Card/components/ClickToPayWrapper.js.map +1 -1
- package/dist/es/components/CashAppPay/CashAppPay.js +1 -1
- package/dist/es/components/CashAppPay/CashAppPay.js.map +1 -1
- package/dist/es/components/CashAppPay/services/CashAppSdkLoader.js.map +1 -1
- package/dist/es/components/CashAppPay/services/CashAppService.js +1 -1
- package/dist/es/components/CashAppPay/services/CashAppService.js.map +1 -1
- package/dist/es/components/CashAppPay/services/types.js.map +1 -1
- package/dist/es/components/ClickToPay/ClickToPay.js +1 -1
- package/dist/es/components/ClickToPay/ClickToPay.js.map +1 -1
- package/dist/es/components/CustomCard/CustomCard.js +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/Dragonpay/components/DragonpayInput/DragonpayInput.js +1 -1
- package/dist/es/components/Dragonpay/components/DragonpayInput/DragonpayInput.js.map +1 -1
- package/dist/es/components/Dropin/Dropin.js +1 -1
- package/dist/es/components/Dropin/Dropin.js.map +1 -1
- package/dist/es/components/Dropin/components/DropinComponent.js +1 -1
- package/dist/es/components/Dropin/components/DropinComponent.js.map +1 -1
- package/dist/es/components/Dropin/components/DropinSuccessState.js +2 -0
- package/dist/es/components/Dropin/components/DropinSuccessState.js.map +1 -0
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js.map +1 -1
- package/dist/es/components/Econtext/components/EcontextInput/EcontextInput.js.map +1 -1
- package/dist/es/components/Giftcard/Giftcard.js +1 -1
- package/dist/es/components/Giftcard/Giftcard.js.map +1 -1
- package/dist/es/components/Giftcard/components/GiftcardComponent.js +1 -1
- package/dist/es/components/Giftcard/components/GiftcardComponent.js.map +1 -1
- package/dist/es/components/Giftcard/components/GiftcardResult.js +1 -1
- package/dist/es/components/Giftcard/components/GiftcardResult.js.map +1 -1
- package/dist/es/components/GooglePay/GooglePayService.js.map +1 -1
- package/dist/es/components/Iris/Iris.js +1 -1
- package/dist/es/components/Iris/Iris.js.map +1 -1
- package/dist/es/components/Iris/components/IrisGenerateQRCode.js +1 -1
- package/dist/es/components/Iris/components/IrisGenerateQRCode.js.map +1 -1
- package/dist/es/components/Klarna/KlarnaPayments.js +1 -1
- package/dist/es/components/Klarna/KlarnaPayments.js.map +1 -1
- package/dist/es/components/Klarna/components/KlarnaContainer/KlarnaContainer.js.map +1 -1
- package/dist/es/components/Multibanco/Multibanco.js +1 -1
- package/dist/es/components/Multibanco/Multibanco.js.map +1 -1
- package/dist/es/components/PayByBankPix/PayByBankPix.js +1 -1
- package/dist/es/components/PayByBankPix/PayByBankPix.js.map +1 -1
- package/dist/es/components/PayByBankPix/components/StoredPayment/StoredPayment.js +1 -1
- package/dist/es/components/PayByBankPix/components/StoredPayment/StoredPayment.js.map +1 -1
- package/dist/es/components/PayByBankPix/services/PasskeySdkLoader.js.map +1 -1
- package/dist/es/components/PayByBankPix/services/PasskeyService.js.map +1 -1
- package/dist/es/components/PayByBankUS/PayByBankUS.js +1 -1
- package/dist/es/components/PayByBankUS/PayByBankUS.js.map +1 -1
- package/dist/es/components/PayPalFastlane/FastlaneSDK.js.map +1 -1
- package/dist/es/components/PayPalFastlane/components/FastlaneComponent.js.map +1 -1
- package/dist/es/components/PayTo/PayTo.js +1 -1
- package/dist/es/components/PayTo/PayTo.js.map +1 -1
- package/dist/es/components/PayTo/components/PayToComponent.js.map +1 -1
- package/dist/es/components/PayTo/components/PayToNameFields.js +1 -1
- package/dist/es/components/PayTo/components/PayToNameFields.js.map +1 -1
- package/dist/es/components/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es/components/Pix/components/PixQRDetails.js +1 -1
- package/dist/es/components/Pix/components/PixQRDetails.js.map +1 -1
- package/dist/es/components/PreAuthorizedDebitCanada/PreAuthorizedDebitCanada.js +1 -1
- package/dist/es/components/PreAuthorizedDebitCanada/PreAuthorizedDebitCanada.js.map +1 -1
- package/dist/es/components/PreAuthorizedDebitCanada/components/PreAuthorizedDebitCanadaComponent.js.map +1 -1
- package/dist/es/components/Redirect/components/RedirectShopper/RedirectShopper.js.map +1 -1
- package/dist/es/components/ThreeDS2/components/Form/ThreeDS2Form.js.map +1 -1
- package/dist/es/components/Twint/Twint.js +1 -1
- package/dist/es/components/Twint/Twint.js.map +1 -1
- package/dist/es/components/UPI/UPI.js +1 -1
- package/dist/es/components/UPI/UPI.js.map +1 -1
- package/dist/es/components/UPI/components/UPIComponent/UPIComponent.js +1 -1
- package/dist/es/components/UPI/components/UPIComponent/UPIComponent.js.map +1 -1
- package/dist/es/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js +1 -1
- package/dist/es/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js.map +1 -1
- package/dist/es/components/UPI/constants.js +1 -1
- package/dist/es/components/UPI/constants.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/internal/Address/Specifications.js.map +1 -1
- package/dist/es/components/internal/Await/Await.js +1 -1
- package/dist/es/components/internal/Await/Await.js.map +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es/components/internal/Button/Button.js +1 -1
- package/dist/es/components/internal/Button/Button.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPCards/CtPCards.js +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPCards/CtPCards.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.js +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/context/ClickToPayContext.js +1 -1
- package/dist/es/components/internal/ClickToPay/context/ClickToPayContext.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/context/ClickToPayProvider.js +1 -1
- package/dist/es/components/internal/ClickToPay/context/ClickToPayProvider.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/models/ShopperCard.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/services/ClickToPayService.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/services/sdks/AbstractSrcInitiator.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/services/sdks/SrcSdkLoader.js.map +1 -1
- package/dist/es/components/internal/CompanyDetails/CompanyDetails.js +1 -1
- package/dist/es/components/internal/CompanyDetails/CompanyDetails.js.map +1 -1
- package/dist/es/components/internal/Countdown/CountdownA11yReporter.js.map +1 -1
- package/dist/es/components/internal/Countdown/index.js +1 -1
- package/dist/es/components/internal/Countdown/index.js.map +1 -1
- package/dist/es/components/internal/FormFields/InputBase.js +1 -1
- package/dist/es/components/internal/FormFields/InputBase.js.map +1 -1
- package/dist/es/components/internal/IFrame/Iframe.js.map +1 -1
- package/dist/es/components/internal/PayButton/PayButton.js +1 -1
- package/dist/es/components/internal/PayButton/PayButton.js.map +1 -1
- package/dist/es/components/internal/PayButton/utils.js +1 -1
- package/dist/es/components/internal/PayButton/utils.js.map +1 -1
- package/dist/es/components/internal/PersonalDetails/PersonalDetails.js +1 -1
- package/dist/es/components/internal/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es/components/internal/QRLoader/QRLoader.js +1 -1
- package/dist/es/components/internal/QRLoader/QRLoader.js.map +1 -1
- package/dist/es/components/internal/QRLoader/QRLoaderDetailsProvider.js.map +1 -1
- package/dist/es/components/internal/QRLoader/components/QRDetails.js +1 -1
- package/dist/es/components/internal/QRLoader/components/QRDetails.js.map +1 -1
- package/dist/es/components/internal/QRLoader/components/QRImage.js +1 -1
- package/dist/es/components/internal/QRLoader/components/QRImage.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/lib/CSF/AbstractCSF.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/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/utils.js.map +1 -1
- package/dist/es/components/internal/SendCopyToEmail/SendCopyToEmail.js +1 -1
- package/dist/es/components/internal/SendCopyToEmail/SendCopyToEmail.js.map +1 -1
- package/dist/es/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.js +1 -1
- package/dist/es/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.js.map +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es/components/tx-variants.js +1 -1
- package/dist/es/components/tx-variants.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/Analytics/AnalyticsService.js.map +1 -1
- package/dist/es/core/Analytics/events/AbstractAnalyticsEvent.js.map +1 -1
- package/dist/es/core/Analytics/events/AnalyticsErrorEvent.js +1 -1
- package/dist/es/core/Analytics/events/AnalyticsErrorEvent.js.map +1 -1
- package/dist/es/core/Analytics/events/AnalyticsInfoEvent.js +1 -1
- package/dist/es/core/Analytics/events/AnalyticsInfoEvent.js.map +1 -1
- package/dist/es/core/Analytics/events/AnalyticsLogEvent.js.map +1 -1
- package/dist/es/core/Analytics/utils.js +1 -1
- package/dist/es/core/Analytics/utils.js.map +1 -1
- package/dist/es/core/CheckoutSession/CheckoutSession.js +1 -1
- package/dist/es/core/CheckoutSession/CheckoutSession.js.map +1 -1
- package/dist/es/core/Context/AmountProvider.js +2 -0
- package/dist/es/core/Context/AmountProvider.js.map +1 -0
- package/dist/es/core/Context/Resources.js.map +1 -1
- package/dist/es/core/Errors/SRPanel.js.map +1 -1
- package/dist/es/core/RiskModule/components/DeviceFingerprint/GetDeviceFingerprint.js.map +1 -1
- package/dist/es/core/config.js +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/core/core.js.map +1 -1
- package/dist/es/external/preact/compat/dist/compat.js +1 -1
- package/dist/es/external/preact/compat/dist/compat.js.map +1 -1
- package/dist/es/external/preact/dist/preact.js +1 -1
- package/dist/es/external/preact/dist/preact.js.map +1 -1
- package/dist/es/external/preact/hooks/dist/hooks.js +1 -1
- package/dist/es/external/preact/hooks/dist/hooks.js.map +1 -1
- package/dist/es/index.d.ts +705 -641
- package/dist/es/language/Language.js.map +1 -1
- package/dist/es/utils/Script.js.map +1 -1
- package/dist/es/utils/Storage.js +1 -1
- package/dist/es/utils/Storage.js.map +1 -1
- package/dist/es/utils/Validator/ValidationRuleResult.js.map +1 -1
- package/dist/es/utils/Validator/Validator.js.map +1 -1
- package/dist/es/utils/amount-util.js +1 -1
- package/dist/es/utils/amount-util.js.map +1 -1
- package/dist/es/utils/browserInfo.js +1 -1
- package/dist/es/utils/browserInfo.js.map +1 -1
- package/dist/es/utils/constants/currency-minor-units.js.map +1 -1
- package/dist/es/utils/createSdkData.js.map +1 -1
- package/dist/es/utils/getErrorMessage.js.map +1 -1
- package/dist/es/utils/getProp.js +1 -1
- package/dist/es/utils/getProp.js.map +1 -1
- package/dist/es/utils/hasOwnProperty.js.map +1 -1
- package/dist/es/utils/isValidURL.js.map +1 -1
- package/dist/es/utils/listenerUtils.js.map +1 -1
- package/dist/es/utils/promiseTimeout.js.map +1 -1
- package/dist/es/utils/textUtils.js.map +1 -1
- package/dist/es/utils/validator-utils.js.map +1 -1
- package/dist/es-legacy/adyen.css +8 -9
- package/dist/es-legacy/adyen.css.map +1 -1
- package/dist/es-legacy/components/ANCV/ANCV.js.map +1 -1
- package/dist/es-legacy/components/Ach/Ach.js +1 -1
- package/dist/es-legacy/components/Ach/Ach.js.map +1 -1
- package/dist/es-legacy/components/Ach/components/AccountTypeSelector.js.map +1 -1
- package/dist/es-legacy/components/Ach/components/AchComponent.js.map +1 -1
- package/dist/es-legacy/components/Affirm/Affirm.js.map +1 -1
- package/dist/es-legacy/components/AfterPay/AfterPay.js.map +1 -1
- package/dist/es-legacy/components/AfterPay/AfterPayB2B.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayButton.js +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayButton.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayComponent.js +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayComponent.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/components/OrderButton.js +1 -1
- package/dist/es-legacy/components/AmazonPay/components/OrderButton.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/utils.js +1 -1
- package/dist/es-legacy/components/AmazonPay/utils.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/ApplePay.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/services/ApplePaySdkLoader.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/services/ApplePayService.js +1 -1
- package/dist/es-legacy/components/ApplePay/services/ApplePayService.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/utils/map-adyen-brands-to-applepay-brands.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/utils/payment-request.js.map +1 -1
- package/dist/es-legacy/components/Atome/Atome.js.map +1 -1
- package/dist/es-legacy/components/BacsDD/BacsDD.js +1 -1
- package/dist/es-legacy/components/BacsDD/BacsDD.js.map +1 -1
- package/dist/es-legacy/components/BacsDD/components/BacsInput.js +1 -1
- package/dist/es-legacy/components/BacsDD/components/BacsInput.js.map +1 -1
- package/dist/es-legacy/components/BankTransfer/components/BankTransferInput/BankTransferInput.js +1 -1
- package/dist/es-legacy/components/BankTransfer/components/BankTransferInput/BankTransferInput.js.map +1 -1
- package/dist/es-legacy/components/Blik/Blik.js +1 -1
- package/dist/es-legacy/components/Blik/Blik.js.map +1 -1
- package/dist/es-legacy/components/Boleto/components/BoletoInput/BoletoInput.js.map +1 -1
- package/dist/es-legacy/components/Card/Card.js +1 -1
- package/dist/es-legacy/components/Card/Card.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/CardInput.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/CardInput.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/AvailableBrands/AvailableBrands.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardFields.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardFieldsWrapper.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardFieldsWrapper.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/Installments/Installments.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/Installments/Installments.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/StoredCardFieldsWrapper.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/StoredCardFieldsWrapper.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/types.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/utils.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/utils.js.map +1 -1
- package/dist/es-legacy/components/Card/components/ClickToPayWrapper.js +1 -1
- package/dist/es-legacy/components/Card/components/ClickToPayWrapper.js.map +1 -1
- package/dist/es-legacy/components/Card/components/Fastlane/USOnlyPhoneInput.js.map +1 -1
- package/dist/es-legacy/components/CashAppPay/CashAppPay.js +1 -1
- package/dist/es-legacy/components/CashAppPay/CashAppPay.js.map +1 -1
- package/dist/es-legacy/components/CashAppPay/services/CashAppSdkLoader.js.map +1 -1
- package/dist/es-legacy/components/CashAppPay/services/CashAppService.js +1 -1
- package/dist/es-legacy/components/CashAppPay/services/CashAppService.js.map +1 -1
- package/dist/es-legacy/components/CashAppPay/services/types.js.map +1 -1
- package/dist/es-legacy/components/ClickToPay/ClickToPay.js +1 -1
- package/dist/es-legacy/components/ClickToPay/ClickToPay.js.map +1 -1
- package/dist/es-legacy/components/CustomCard/CustomCard.js +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/Doku/components/DokuInput/DokuInput.js.map +1 -1
- package/dist/es-legacy/components/Dragonpay/components/DragonpayInput/DragonpayInput.js +1 -1
- package/dist/es-legacy/components/Dragonpay/components/DragonpayInput/DragonpayInput.js.map +1 -1
- package/dist/es-legacy/components/Dropin/Dropin.js +1 -1
- package/dist/es-legacy/components/Dropin/Dropin.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/DropinComponent.js +1 -1
- package/dist/es-legacy/components/Dropin/components/DropinComponent.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/DropinSuccessState.js +2 -0
- package/dist/es-legacy/components/Dropin/components/DropinSuccessState.js.map +1 -0
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js.map +1 -1
- package/dist/es-legacy/components/Econtext/components/EcontextInput/EcontextInput.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/Giftcard.js +1 -1
- package/dist/es-legacy/components/Giftcard/Giftcard.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardComponent.js +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardComponent.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardResult.js +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardResult.js.map +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePay.js.map +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePayService.js.map +1 -1
- package/dist/es-legacy/components/Iris/Iris.js +1 -1
- package/dist/es-legacy/components/Iris/Iris.js.map +1 -1
- package/dist/es-legacy/components/Iris/components/IrisGenerateQRCode.js +1 -1
- package/dist/es-legacy/components/Iris/components/IrisGenerateQRCode.js.map +1 -1
- package/dist/es-legacy/components/Klarna/KlarnaPayments.js +1 -1
- package/dist/es-legacy/components/Klarna/KlarnaPayments.js.map +1 -1
- package/dist/es-legacy/components/Klarna/components/KlarnaContainer/KlarnaContainer.js.map +1 -1
- package/dist/es-legacy/components/Klarna/components/KlarnaWidget/KlarnaWidget.js.map +1 -1
- package/dist/es-legacy/components/MBWay/MBWay.js.map +1 -1
- package/dist/es-legacy/components/Multibanco/Multibanco.js +1 -1
- package/dist/es-legacy/components/Multibanco/Multibanco.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/PayByBankPix.js +1 -1
- package/dist/es-legacy/components/PayByBankPix/PayByBankPix.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/components/Enrollment/useIssuerWithLogo.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/components/StoredPayment/StoredPayment.js +1 -1
- package/dist/es-legacy/components/PayByBankPix/components/StoredPayment/StoredPayment.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/services/PasskeySdkLoader.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/services/PasskeyService.js.map +1 -1
- package/dist/es-legacy/components/PayByBankUS/PayByBankUS.js +1 -1
- package/dist/es-legacy/components/PayByBankUS/PayByBankUS.js.map +1 -1
- package/dist/es-legacy/components/PayPal/Paypal.js.map +1 -1
- package/dist/es-legacy/components/PayPalFastlane/FastlaneSDK.js.map +1 -1
- package/dist/es-legacy/components/PayPalFastlane/components/FastlaneComponent.js.map +1 -1
- package/dist/es-legacy/components/PayTo/PayTo.js +1 -1
- package/dist/es-legacy/components/PayTo/PayTo.js.map +1 -1
- package/dist/es-legacy/components/PayTo/components/PayToComponent.js.map +1 -1
- package/dist/es-legacy/components/PayTo/components/PayToNameFields.js +1 -1
- package/dist/es-legacy/components/PayTo/components/PayToNameFields.js.map +1 -1
- package/dist/es-legacy/components/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es-legacy/components/Pix/components/PixQRDetails.js +1 -1
- package/dist/es-legacy/components/Pix/components/PixQRDetails.js.map +1 -1
- package/dist/es-legacy/components/PreAuthorizedDebitCanada/PreAuthorizedDebitCanada.js +1 -1
- package/dist/es-legacy/components/PreAuthorizedDebitCanada/PreAuthorizedDebitCanada.js.map +1 -1
- package/dist/es-legacy/components/PreAuthorizedDebitCanada/components/PreAuthorizedDebitCanadaComponent.js.map +1 -1
- package/dist/es-legacy/components/Redirect/components/RedirectShopper/RedirectShopper.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/callSubmit3DS2Fingerprint.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/Form/ThreeDS2Form.js.map +1 -1
- package/dist/es-legacy/components/Twint/Twint.js +1 -1
- package/dist/es-legacy/components/Twint/Twint.js.map +1 -1
- package/dist/es-legacy/components/UPI/UPI.js +1 -1
- package/dist/es-legacy/components/UPI/UPI.js.map +1 -1
- package/dist/es-legacy/components/UPI/components/UPIComponent/UPIComponent.js +1 -1
- package/dist/es-legacy/components/UPI/components/UPIComponent/UPIComponent.js.map +1 -1
- package/dist/es-legacy/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js +1 -1
- package/dist/es-legacy/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js.map +1 -1
- package/dist/es-legacy/components/UPI/constants.js +1 -1
- package/dist/es-legacy/components/UPI/constants.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.map +1 -1
- package/dist/es-legacy/components/helpers/OpenInvoiceContainer/OpenInvoiceContainer.js.map +1 -1
- package/dist/es-legacy/components/internal/Address/Address.js.map +1 -1
- package/dist/es-legacy/components/internal/Address/Specifications.js.map +1 -1
- package/dist/es-legacy/components/internal/Address/validate.js.map +1 -1
- package/dist/es-legacy/components/internal/Await/Await.js +1 -1
- package/dist/es-legacy/components/internal/Await/Await.js.map +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es-legacy/components/internal/Button/Button.js +1 -1
- package/dist/es-legacy/components/internal/Button/Button.js.map +1 -1
- package/dist/es-legacy/components/internal/Button/CopyButton.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPCards/CtPCards.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPCards/CtPCards.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPLogin/CtPLogin.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePassword.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/context/ClickToPayContext.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/context/ClickToPayContext.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/context/ClickToPayProvider.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/context/ClickToPayProvider.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/models/ShopperCard.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/ClickToPayService.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/create-clicktopay-service.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/AbstractSrcInitiator.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/SrcSdkLoader.js.map +1 -1
- package/dist/es-legacy/components/internal/CompanyDetails/CompanyDetails.js +1 -1
- package/dist/es-legacy/components/internal/CompanyDetails/CompanyDetails.js.map +1 -1
- package/dist/es-legacy/components/internal/Countdown/CountdownA11yReporter.js.map +1 -1
- package/dist/es-legacy/components/internal/Countdown/index.js +1 -1
- package/dist/es-legacy/components/internal/Countdown/index.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Field/Field.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputBase.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputBase.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/RadioGroupExtended/RadioGroupExtended.js.map +1 -1
- package/dist/es-legacy/components/internal/IFrame/Iframe.js.map +1 -1
- package/dist/es-legacy/components/internal/IssuerList/IssuerList.js.map +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js.map +1 -1
- package/dist/es-legacy/components/internal/PayButton/PayButton.js +1 -1
- package/dist/es-legacy/components/internal/PayButton/PayButton.js.map +1 -1
- package/dist/es-legacy/components/internal/PayButton/utils.js +1 -1
- package/dist/es-legacy/components/internal/PayButton/utils.js.map +1 -1
- package/dist/es-legacy/components/internal/PersonalDetails/PersonalDetails.js +1 -1
- package/dist/es-legacy/components/internal/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es-legacy/components/internal/PhoneInput/PhoneInputForm.js.map +1 -1
- package/dist/es-legacy/components/internal/QRLoader/QRLoader.js +1 -1
- package/dist/es-legacy/components/internal/QRLoader/QRLoader.js.map +1 -1
- package/dist/es-legacy/components/internal/QRLoader/QRLoaderDetailsProvider.js.map +1 -1
- package/dist/es-legacy/components/internal/QRLoader/components/QRDetails.js +1 -1
- package/dist/es-legacy/components/internal/QRLoader/components/QRDetails.js.map +1 -1
- package/dist/es-legacy/components/internal/QRLoader/components/QRImage.js +1 -1
- package/dist/es-legacy/components/internal/QRLoader/components/QRImage.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/binLookup/extensions.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/binLookup/triggerBinLookUp.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/AbstractCSF.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/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/partials/processAutoComplete.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/cardType.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.js +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/utils.js.map +1 -1
- package/dist/es-legacy/components/internal/SendCopyToEmail/SendCopyToEmail.js +1 -1
- package/dist/es-legacy/components/internal/SendCopyToEmail/SendCopyToEmail.js.map +1 -1
- package/dist/es-legacy/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.js +1 -1
- package/dist/es-legacy/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.js.map +1 -1
- package/dist/es-legacy/components/internal/Tooltip/Tooltip.js.map +1 -1
- package/dist/es-legacy/components/internal/UIElement/UIElement.js +1 -1
- package/dist/es-legacy/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es-legacy/components/tx-variants.js +1 -1
- package/dist/es-legacy/components/tx-variants.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/Analytics/AnalyticsService.js.map +1 -1
- package/dist/es-legacy/core/Analytics/events/AbstractAnalyticsEvent.js.map +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsErrorEvent.js +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsErrorEvent.js.map +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsInfoEvent.js +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsInfoEvent.js.map +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsLogEvent.js.map +1 -1
- package/dist/es-legacy/core/Analytics/utils.js +1 -1
- package/dist/es-legacy/core/Analytics/utils.js.map +1 -1
- package/dist/es-legacy/core/CheckoutSession/CheckoutSession.js +1 -1
- package/dist/es-legacy/core/CheckoutSession/CheckoutSession.js.map +1 -1
- package/dist/es-legacy/core/Context/AmountProvider.js +2 -0
- package/dist/es-legacy/core/Context/AmountProvider.js.map +1 -0
- package/dist/es-legacy/core/Context/Resources.js.map +1 -1
- package/dist/es-legacy/core/Environment/Environment.js.map +1 -1
- package/dist/es-legacy/core/Errors/SRPanel.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentAction/actionTypes.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentMethods/utils.js.map +1 -1
- package/dist/es-legacy/core/RiskModule/components/DeviceFingerprint/GetDeviceFingerprint.js.map +1 -1
- package/dist/es-legacy/core/Services/http.js.map +1 -1
- package/dist/es-legacy/core/config.js +1 -1
- package/dist/es-legacy/core/core.js +1 -1
- package/dist/es-legacy/core/core.js.map +1 -1
- package/dist/es-legacy/external/preact/compat/dist/compat.js +1 -1
- package/dist/es-legacy/external/preact/compat/dist/compat.js.map +1 -1
- package/dist/es-legacy/external/preact/dist/preact.js +1 -1
- package/dist/es-legacy/external/preact/dist/preact.js.map +1 -1
- package/dist/es-legacy/external/preact/hooks/dist/hooks.js +1 -1
- package/dist/es-legacy/external/preact/hooks/dist/hooks.js.map +1 -1
- package/dist/es-legacy/hooks/usePaymentStatusTimer/usePaymentStatusTimer.js.map +1 -1
- package/dist/es-legacy/language/Language.js.map +1 -1
- package/dist/es-legacy/utils/Script.js.map +1 -1
- package/dist/es-legacy/utils/Storage.js +1 -1
- package/dist/es-legacy/utils/Storage.js.map +1 -1
- package/dist/es-legacy/utils/Validator/ValidationRuleResult.js.map +1 -1
- package/dist/es-legacy/utils/Validator/Validator.js.map +1 -1
- package/dist/es-legacy/utils/amount-util.js +1 -1
- package/dist/es-legacy/utils/amount-util.js.map +1 -1
- package/dist/es-legacy/utils/browserInfo.js +1 -1
- package/dist/es-legacy/utils/browserInfo.js.map +1 -1
- package/dist/es-legacy/utils/constants/currency-minor-units.js.map +1 -1
- package/dist/es-legacy/utils/createSdkData.js.map +1 -1
- package/dist/es-legacy/utils/getConsentUrl.js.map +1 -1
- package/dist/es-legacy/utils/getErrorMessage.js.map +1 -1
- package/dist/es-legacy/utils/getProp.js +1 -1
- package/dist/es-legacy/utils/getProp.js.map +1 -1
- package/dist/es-legacy/utils/hasOwnProperty.js.map +1 -1
- package/dist/es-legacy/utils/isValidURL.js.map +1 -1
- package/dist/es-legacy/utils/listenerUtils.js.map +1 -1
- package/dist/es-legacy/utils/promiseTimeout.js.map +1 -1
- package/dist/es-legacy/utils/textUtils.js.map +1 -1
- package/dist/es-legacy/utils/useAutoFocus.js.map +1 -1
- package/dist/es-legacy/utils/useForm/reducer.js.map +1 -1
- package/dist/es-legacy/utils/validator-utils.js.map +1 -1
- package/package.json +11 -11
- package/styles/adyen.css +8 -9
- package/dist/es/components/UPI/components/VpaInput/VpaInput.js +0 -2
- package/dist/es/components/UPI/components/VpaInput/VpaInput.js.map +0 -1
- package/dist/es/components/UPI/components/VpaInput/validate.js +0 -2
- package/dist/es/components/UPI/components/VpaInput/validate.js.map +0 -1
- package/dist/es-legacy/components/UPI/components/VpaInput/VpaInput.js +0 -2
- package/dist/es-legacy/components/UPI/components/VpaInput/VpaInput.js.map +0 -1
- package/dist/es-legacy/components/UPI/components/VpaInput/validate.js +0 -2
- package/dist/es-legacy/components/UPI/components/VpaInput/validate.js.map +0 -1
package/dist/es/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="applepayjs" />
|
|
2
2
|
/// <reference types="googlepay" />
|
|
3
3
|
import * as preact from 'preact';
|
|
4
|
-
import { h, Ref, FunctionComponent, ComponentChild, Component } from 'preact';
|
|
4
|
+
import { h, Ref, FunctionComponent, ComponentChild, Component, RefObject } from 'preact';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Holds the result of a validation
|
|
@@ -162,6 +162,71 @@ declare class AdyenCheckoutError extends Error {
|
|
|
162
162
|
constructor(type: keyof typeof AdyenCheckoutError.errorTypes, message?: string, options?: CheckoutErrorOptions);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
type InstallmentPlan = 'revolving' | 'bonus' | 'regular';
|
|
166
|
+
interface InstallmentOption {
|
|
167
|
+
values: number[];
|
|
168
|
+
plans?: InstallmentPlan[];
|
|
169
|
+
preselectedValue?: number;
|
|
170
|
+
}
|
|
171
|
+
interface InstallmentOptions {
|
|
172
|
+
[key: string]: InstallmentOption;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
type CheckoutSession = {
|
|
176
|
+
id: string;
|
|
177
|
+
sessionData: string;
|
|
178
|
+
shopperLocale?: string;
|
|
179
|
+
shopperEmail?: string;
|
|
180
|
+
telephoneNumber?: string;
|
|
181
|
+
};
|
|
182
|
+
type SessionConfiguration = {
|
|
183
|
+
installmentOptions?: InstallmentOptions;
|
|
184
|
+
enableStoreDetails?: boolean;
|
|
185
|
+
};
|
|
186
|
+
type CheckoutSessionSetupResponse = {
|
|
187
|
+
id: string;
|
|
188
|
+
sessionData: string;
|
|
189
|
+
countryCode?: string;
|
|
190
|
+
amount: Omit<PaymentAmount, 'currencyDisplay'>;
|
|
191
|
+
expiresAt: string;
|
|
192
|
+
paymentMethods: any;
|
|
193
|
+
returnUrl: string;
|
|
194
|
+
configuration: SessionConfiguration;
|
|
195
|
+
/**
|
|
196
|
+
* 'shopperLocale' set during session creation.
|
|
197
|
+
* @defaultValue en-US
|
|
198
|
+
*/
|
|
199
|
+
shopperLocale: string;
|
|
200
|
+
};
|
|
201
|
+
type CheckoutSessionPaymentResponse = {
|
|
202
|
+
sessionData: string;
|
|
203
|
+
sessionResult: string;
|
|
204
|
+
status?: string;
|
|
205
|
+
resultCode: ResultCode;
|
|
206
|
+
action?: PaymentAction;
|
|
207
|
+
};
|
|
208
|
+
type CheckoutSessionDetailsResponse = {
|
|
209
|
+
sessionData: string;
|
|
210
|
+
sessionResult: string;
|
|
211
|
+
resultCode: ResultCode;
|
|
212
|
+
status?: string;
|
|
213
|
+
action?: PaymentAction;
|
|
214
|
+
};
|
|
215
|
+
type CheckoutSessionBalanceResponse = {
|
|
216
|
+
sessionData: string;
|
|
217
|
+
balance?: PaymentAmount;
|
|
218
|
+
transactionLimit?: PaymentAmount;
|
|
219
|
+
};
|
|
220
|
+
type CheckoutSessionOrdersResponse = {
|
|
221
|
+
sessionData: string;
|
|
222
|
+
orderData: string;
|
|
223
|
+
pspReference: string;
|
|
224
|
+
};
|
|
225
|
+
type SetupSessionOptions = {
|
|
226
|
+
browserInfo?: BrowserInfo;
|
|
227
|
+
order?: Order;
|
|
228
|
+
};
|
|
229
|
+
|
|
165
230
|
type CustomTranslations = {
|
|
166
231
|
[locale: string]: Translations;
|
|
167
232
|
};
|
|
@@ -210,381 +275,101 @@ declare class Language {
|
|
|
210
275
|
dateTime(date: string): string;
|
|
211
276
|
}
|
|
212
277
|
|
|
213
|
-
type
|
|
214
|
-
|
|
215
|
-
type GiftcardFieldsProps = {
|
|
216
|
-
setRootNode: (input: HTMLElement) => void;
|
|
217
|
-
i18n: Language;
|
|
218
|
-
pinRequired: boolean;
|
|
219
|
-
sfpState: SFPState;
|
|
220
|
-
getCardErrorMessage: any;
|
|
221
|
-
focusedElement: any;
|
|
222
|
-
setFocusOn: any;
|
|
223
|
-
label?: string;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
type Placeholders = CardPlaceholders | Placeholders$1;
|
|
227
|
-
/**
|
|
228
|
-
* Should be the only props that can be sent to SFP (from CardInput, SecuredFieldsInput, AchInput, GiftcardComponent)
|
|
229
|
-
*/
|
|
230
|
-
interface SFPProps {
|
|
231
|
-
autoFocus?: boolean;
|
|
232
|
-
brands?: string[];
|
|
233
|
-
brandsConfiguration?: CardBrandsConfiguration;
|
|
234
|
-
clientKey: string;
|
|
235
|
-
countryCode?: string;
|
|
236
|
-
forceCompat?: boolean;
|
|
237
|
-
hasKoreanFields?: boolean;
|
|
238
|
-
i18n: Language;
|
|
239
|
-
implementationType?: string;
|
|
240
|
-
keypadFix?: boolean;
|
|
241
|
-
koreanAuthenticationRequired?: boolean;
|
|
242
|
-
legacyInputMode?: boolean;
|
|
243
|
-
loadingContext: string;
|
|
244
|
-
minimumExpiryDate?: string;
|
|
245
|
-
onAdditionalSFConfig?: () => {};
|
|
246
|
-
onAdditionalSFRemoved?: () => {};
|
|
247
|
-
onAllValid?: () => {};
|
|
248
|
-
onAutoComplete?: () => {};
|
|
249
|
-
onBinValue?: () => {};
|
|
250
|
-
onBrand?: () => {};
|
|
251
|
-
onChange: () => {};
|
|
252
|
-
onConfigSuccess?: () => {};
|
|
253
|
-
onError?: () => {};
|
|
254
|
-
onFieldValid?: () => {};
|
|
255
|
-
onFocus?: () => {};
|
|
256
|
-
onLoad?: () => {};
|
|
257
|
-
onStateUpdate: (obj: SFPState) => void;
|
|
258
|
-
handleKeyPress?: (obj: KeyboardEvent) => void;
|
|
259
|
-
rootNode: HTMLElement;
|
|
260
|
-
showWarnings?: boolean;
|
|
261
|
-
styles?: StylesObject;
|
|
262
|
-
trimTrailingSeparator?: boolean;
|
|
263
|
-
type: string;
|
|
264
|
-
render: () => {};
|
|
265
|
-
resources: Resources;
|
|
266
|
-
maskSecurityCode: boolean;
|
|
267
|
-
exposeExpiryDate: boolean;
|
|
268
|
-
disableIOSArrowKeys: (obj: TouchStartEventObj) => void | null;
|
|
269
|
-
placeholders?: Placeholders;
|
|
270
|
-
showContextualElement?: boolean;
|
|
271
|
-
}
|
|
272
|
-
interface SFPState {
|
|
278
|
+
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'action' | 'link' | 'iconOnly';
|
|
279
|
+
interface ButtonProps {
|
|
273
280
|
status?: string;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
281
|
+
/**
|
|
282
|
+
* Class name modifiers will be used as: `adyen-checkout__button--${modifier}`
|
|
283
|
+
*/
|
|
284
|
+
classNameModifiers?: string[];
|
|
285
|
+
variant?: ButtonVariant;
|
|
286
|
+
disabled?: boolean;
|
|
287
|
+
label?: string | h.JSX.Element;
|
|
288
|
+
onClickCompletedLabel?: string | h.JSX.Element;
|
|
289
|
+
ariaLabel?: string;
|
|
290
|
+
ariaDescribedBy?: string;
|
|
291
|
+
secondaryLabel?: string;
|
|
292
|
+
icon?: string;
|
|
293
|
+
onClickCompletedIcon?: string;
|
|
294
|
+
inline?: boolean;
|
|
295
|
+
href?: string;
|
|
296
|
+
target?: string;
|
|
297
|
+
rel?: string;
|
|
298
|
+
onClick?: (e: h.JSX.TargetedMouseEvent<HTMLButtonElement | HTMLAnchorElement>, callbacks?: {
|
|
299
|
+
complete?: () => void;
|
|
300
|
+
}) => void;
|
|
301
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
302
|
+
onKeyPress?: (event: KeyboardEvent) => void;
|
|
303
|
+
buttonRef?: Ref<HTMLButtonElement>;
|
|
304
|
+
onMouseEnter?: (event: MouseEvent) => void;
|
|
305
|
+
onMouseLeave?: (event: MouseEvent) => void;
|
|
306
|
+
onFocus?: (event: FocusEvent) => void;
|
|
307
|
+
onBlur?: (event: FocusEvent) => void;
|
|
291
308
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
309
|
+
|
|
310
|
+
interface PayButtonProps extends ButtonProps {
|
|
311
|
+
/**
|
|
312
|
+
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
313
|
+
*/
|
|
314
|
+
classNameModifiers?: string[];
|
|
315
|
+
/**
|
|
316
|
+
* Custom amount that can be passed to the button.
|
|
317
|
+
* This is useful when the amount is not available in the amount provider, such as Giftcard scenario where
|
|
318
|
+
* we need to display the remaining amount
|
|
319
|
+
*/
|
|
320
|
+
customAmount?: PaymentAmount;
|
|
321
|
+
label?: string;
|
|
322
|
+
status?: string;
|
|
323
|
+
disabled?: boolean;
|
|
324
|
+
icon?: string;
|
|
325
|
+
onClick?: (e: h.JSX.TargetedMouseEvent<HTMLButtonElement>) => void;
|
|
301
326
|
}
|
|
302
327
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
328
|
+
type AchForm = {
|
|
329
|
+
selectedAccountType: string;
|
|
330
|
+
ownerName: string;
|
|
331
|
+
routingNumber: string;
|
|
332
|
+
accountNumber: string;
|
|
333
|
+
accountNumberVerification: string;
|
|
334
|
+
};
|
|
335
|
+
type AchFormPrefillData = Partial<Pick<AchForm, 'ownerName'>>;
|
|
306
336
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
337
|
+
interface AchConfiguration extends UIElementProps {
|
|
338
|
+
/**
|
|
339
|
+
* Pre-fill ACH form with shopper data
|
|
340
|
+
*/
|
|
341
|
+
data?: AchFormPrefillData;
|
|
342
|
+
/**
|
|
343
|
+
* Adds placeholder text to the input fields
|
|
344
|
+
*/
|
|
345
|
+
placeholders?: AchPlaceholders;
|
|
346
|
+
/**
|
|
347
|
+
* Set to false to hide the "Account Holder Name" field if you want to pass the data yourself
|
|
348
|
+
* @default true
|
|
349
|
+
*/
|
|
350
|
+
hasHolderName?: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* Enables storing the payment method using the Checkbox
|
|
353
|
+
* @default false
|
|
354
|
+
*/
|
|
355
|
+
enableStoreDetails?: boolean;
|
|
356
|
+
/**
|
|
357
|
+
* storedPaymentMethodId coming from a stored ACH in /paymentMethods response
|
|
358
|
+
* @internal
|
|
359
|
+
*/
|
|
360
|
+
storedPaymentMethodId?: string;
|
|
361
|
+
/**
|
|
362
|
+
* bankAccountNumber coming from a stored ACH in /paymentMethods response
|
|
363
|
+
* @internal
|
|
364
|
+
*/
|
|
365
|
+
bankAccountNumber?: string;
|
|
312
366
|
}
|
|
313
|
-
interface
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
interface StyleDefinitions {
|
|
320
|
-
background?: string;
|
|
321
|
-
caretColor?: string;
|
|
322
|
-
color?: string;
|
|
323
|
-
display?: string;
|
|
324
|
-
font?: string;
|
|
325
|
-
fontFamily?: string;
|
|
326
|
-
fontSize?: string;
|
|
327
|
-
fontSizeAdjust?: string;
|
|
328
|
-
fontSmoothing?: string;
|
|
329
|
-
fontStretch?: string;
|
|
330
|
-
fontStyle?: string;
|
|
331
|
-
fontVariant?: string;
|
|
332
|
-
fontVariantAlternates?: string;
|
|
333
|
-
fontVariantCaps?: string;
|
|
334
|
-
fontVariantEastAsian?: string;
|
|
335
|
-
fontVariantLigatures?: string;
|
|
336
|
-
fontVariantNumeric?: string;
|
|
337
|
-
fontWeight?: string;
|
|
338
|
-
letterSpacing?: string;
|
|
339
|
-
lineHeight?: string;
|
|
340
|
-
mozOsxFontSmoothing?: string;
|
|
341
|
-
mozTransition?: string;
|
|
342
|
-
outline?: string;
|
|
343
|
-
opacity?: string;
|
|
344
|
-
padding?: string;
|
|
345
|
-
textAlign?: string;
|
|
346
|
-
textShadow?: string;
|
|
347
|
-
transition?: string;
|
|
348
|
-
webkitFontSmoothing?: string;
|
|
349
|
-
webkitTransition?: string;
|
|
350
|
-
wordSpacing?: string;
|
|
351
|
-
}
|
|
352
|
-
interface CardAllValidData {
|
|
353
|
-
type: string;
|
|
354
|
-
allValid: boolean;
|
|
355
|
-
rootNode: HTMLElement;
|
|
356
|
-
}
|
|
357
|
-
interface CardAutoCompleteData {
|
|
358
|
-
fieldType: string;
|
|
359
|
-
name: string;
|
|
360
|
-
value: string;
|
|
361
|
-
action: string;
|
|
362
|
-
}
|
|
363
|
-
interface CardBinLookupData {
|
|
364
|
-
type?: string;
|
|
365
|
-
detectedBrands?: string[];
|
|
366
|
-
supportedBrands?: string[];
|
|
367
|
-
brands?: string[];
|
|
368
|
-
issuingCountryCode?: string;
|
|
369
|
-
supportedBrandsRaw?: BrandObject[];
|
|
370
|
-
rootNode?: HTMLElement;
|
|
371
|
-
isReset?: boolean;
|
|
372
|
-
}
|
|
373
|
-
interface CardBinValueData {
|
|
374
|
-
type: string;
|
|
375
|
-
binValue: string;
|
|
376
|
-
uuid?: string;
|
|
377
|
-
encryptedBin?: string;
|
|
378
|
-
}
|
|
379
|
-
interface CardBrandData {
|
|
380
|
-
type: string;
|
|
381
|
-
rootNode: HTMLElement;
|
|
382
|
-
brand: string;
|
|
383
|
-
cvcPolicy: CVCPolicyType;
|
|
384
|
-
expiryDatePolicy?: DatePolicyType;
|
|
385
|
-
cvcText: string;
|
|
386
|
-
showSocialSecurityNumber?: boolean;
|
|
387
|
-
brandImageUrl?: string;
|
|
388
|
-
}
|
|
389
|
-
interface CardConfigSuccessData {
|
|
390
|
-
iframesConfigured: boolean;
|
|
391
|
-
type: string;
|
|
392
|
-
rootNode: HTMLElement;
|
|
393
|
-
}
|
|
394
|
-
interface CardErrorData {
|
|
395
|
-
fieldType: string;
|
|
396
|
-
error: string;
|
|
397
|
-
type: string;
|
|
398
|
-
rootNode?: HTMLElement;
|
|
399
|
-
detectedBrands?: string[];
|
|
400
|
-
errorI18n?: string;
|
|
401
|
-
errorText?: string;
|
|
402
|
-
}
|
|
403
|
-
interface CardFieldValidData {
|
|
404
|
-
fieldType: string;
|
|
405
|
-
encryptedFieldName: string;
|
|
406
|
-
uid: string;
|
|
407
|
-
valid: boolean;
|
|
408
|
-
type: string;
|
|
409
|
-
rootNode: HTMLElement;
|
|
410
|
-
blob?: string;
|
|
411
|
-
endDigits?: string;
|
|
412
|
-
expiryDate?: string;
|
|
413
|
-
issuerBin?: number;
|
|
414
|
-
}
|
|
415
|
-
interface CardFocusData {
|
|
416
|
-
action: string;
|
|
417
|
-
focus: boolean;
|
|
418
|
-
numChars: number;
|
|
419
|
-
fieldType: string;
|
|
420
|
-
rootNode: HTMLElement;
|
|
421
|
-
type: string;
|
|
422
|
-
currentFocusObject: string;
|
|
423
|
-
}
|
|
424
|
-
interface CardLoadData {
|
|
425
|
-
iframesLoaded: boolean;
|
|
426
|
-
}
|
|
427
|
-
type CVCPolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
428
|
-
type DatePolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
429
|
-
|
|
430
|
-
interface InstallmentOptions {
|
|
431
|
-
[key: string]: {
|
|
432
|
-
values: number[];
|
|
433
|
-
plans?: string[];
|
|
434
|
-
preselectedValue?: number;
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
interface TouchStartEventObj {
|
|
438
|
-
fieldType: string;
|
|
439
|
-
name?: string;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
type CheckoutSession = {
|
|
443
|
-
id: string;
|
|
444
|
-
sessionData: string;
|
|
445
|
-
shopperLocale?: string;
|
|
446
|
-
shopperEmail?: string;
|
|
447
|
-
telephoneNumber?: string;
|
|
448
|
-
};
|
|
449
|
-
type SessionConfiguration = {
|
|
450
|
-
installmentOptions?: InstallmentOptions;
|
|
451
|
-
enableStoreDetails?: boolean;
|
|
452
|
-
};
|
|
453
|
-
type CheckoutSessionSetupResponse = {
|
|
454
|
-
id: string;
|
|
455
|
-
sessionData: string;
|
|
456
|
-
countryCode?: string;
|
|
457
|
-
amount: PaymentAmount;
|
|
458
|
-
expiresAt: string;
|
|
459
|
-
paymentMethods: any;
|
|
460
|
-
returnUrl: string;
|
|
461
|
-
configuration: SessionConfiguration;
|
|
462
|
-
/**
|
|
463
|
-
* 'shopperLocale' set during session creation.
|
|
464
|
-
* @defaultValue en-US
|
|
465
|
-
*/
|
|
466
|
-
shopperLocale: string;
|
|
467
|
-
};
|
|
468
|
-
type CheckoutSessionPaymentResponse = {
|
|
469
|
-
sessionData: string;
|
|
470
|
-
sessionResult: string;
|
|
471
|
-
status?: string;
|
|
472
|
-
resultCode: ResultCode;
|
|
473
|
-
action?: PaymentAction;
|
|
474
|
-
};
|
|
475
|
-
type CheckoutSessionDetailsResponse = {
|
|
476
|
-
sessionData: string;
|
|
477
|
-
sessionResult: string;
|
|
478
|
-
resultCode: ResultCode;
|
|
479
|
-
status?: string;
|
|
480
|
-
action?: PaymentAction;
|
|
481
|
-
};
|
|
482
|
-
type CheckoutSessionBalanceResponse = {
|
|
483
|
-
sessionData: string;
|
|
484
|
-
balance?: PaymentAmount;
|
|
485
|
-
transactionLimit?: PaymentAmount;
|
|
486
|
-
};
|
|
487
|
-
type CheckoutSessionOrdersResponse = {
|
|
488
|
-
sessionData: string;
|
|
489
|
-
orderData: string;
|
|
490
|
-
pspReference: string;
|
|
491
|
-
};
|
|
492
|
-
type SetupSessionOptions = {
|
|
493
|
-
browserInfo?: BrowserInfo;
|
|
494
|
-
order?: Order;
|
|
495
|
-
};
|
|
496
|
-
|
|
497
|
-
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'action' | 'link' | 'iconOnly';
|
|
498
|
-
interface ButtonProps {
|
|
499
|
-
status?: string;
|
|
500
|
-
/**
|
|
501
|
-
* Class name modifiers will be used as: `adyen-checkout__button--${modifier}`
|
|
502
|
-
*/
|
|
503
|
-
classNameModifiers?: string[];
|
|
504
|
-
variant?: ButtonVariant;
|
|
505
|
-
disabled?: boolean;
|
|
506
|
-
label?: string | h.JSX.Element;
|
|
507
|
-
onClickCompletedLabel?: string | h.JSX.Element;
|
|
508
|
-
ariaLabel?: string;
|
|
509
|
-
ariaDescribedBy?: string;
|
|
510
|
-
secondaryLabel?: string;
|
|
511
|
-
icon?: string;
|
|
512
|
-
onClickCompletedIcon?: string;
|
|
513
|
-
inline?: boolean;
|
|
514
|
-
href?: string;
|
|
515
|
-
target?: string;
|
|
516
|
-
rel?: string;
|
|
517
|
-
onClick?: (e: h.JSX.TargetedMouseEvent<HTMLButtonElement>, callbacks?: {
|
|
518
|
-
complete?: () => void;
|
|
519
|
-
}) => void;
|
|
520
|
-
onKeyDown?: (event: KeyboardEvent) => void;
|
|
521
|
-
onKeyPress?: (event: KeyboardEvent) => void;
|
|
522
|
-
buttonRef?: Ref<HTMLButtonElement>;
|
|
523
|
-
onMouseEnter?: (event: MouseEvent) => void;
|
|
524
|
-
onMouseLeave?: (event: MouseEvent) => void;
|
|
525
|
-
onFocus?: (event: FocusEvent) => void;
|
|
526
|
-
onBlur?: (event: FocusEvent) => void;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
interface PayButtonProps extends ButtonProps {
|
|
530
|
-
/**
|
|
531
|
-
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
532
|
-
*/
|
|
533
|
-
classNameModifiers?: string[];
|
|
534
|
-
label?: string;
|
|
535
|
-
amount?: PaymentAmountExtended;
|
|
536
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
537
|
-
status?: string;
|
|
538
|
-
disabled?: boolean;
|
|
539
|
-
icon?: string;
|
|
540
|
-
onClick?: (e: h.JSX.TargetedMouseEvent<HTMLButtonElement>) => void;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
type AchForm = {
|
|
544
|
-
selectedAccountType: string;
|
|
545
|
-
ownerName: string;
|
|
546
|
-
routingNumber: string;
|
|
547
|
-
accountNumber: string;
|
|
548
|
-
accountNumberVerification: string;
|
|
549
|
-
};
|
|
550
|
-
type AchFormPrefillData = Partial<Pick<AchForm, 'ownerName'>>;
|
|
551
|
-
|
|
552
|
-
interface AchConfiguration extends UIElementProps {
|
|
553
|
-
/**
|
|
554
|
-
* Pre-fill ACH form with shopper data
|
|
555
|
-
*/
|
|
556
|
-
data?: AchFormPrefillData;
|
|
557
|
-
/**
|
|
558
|
-
* Adds placeholder text to the input fields
|
|
559
|
-
*/
|
|
560
|
-
placeholders?: AchPlaceholders;
|
|
561
|
-
/**
|
|
562
|
-
* Set to false to hide the "Account Holder Name" field if you want to pass the data yourself
|
|
563
|
-
* @default true
|
|
564
|
-
*/
|
|
565
|
-
hasHolderName?: boolean;
|
|
566
|
-
/**
|
|
567
|
-
* Enables storing the payment method using the Checkbox
|
|
568
|
-
* @default false
|
|
569
|
-
*/
|
|
570
|
-
enableStoreDetails?: boolean;
|
|
571
|
-
/**
|
|
572
|
-
* storedPaymentMethodId coming from a stored ACH in /paymentMethods response
|
|
573
|
-
* @internal
|
|
574
|
-
*/
|
|
575
|
-
storedPaymentMethodId?: string;
|
|
576
|
-
/**
|
|
577
|
-
* bankAccountNumber coming from a stored ACH in /paymentMethods response
|
|
578
|
-
* @internal
|
|
579
|
-
*/
|
|
580
|
-
bankAccountNumber?: string;
|
|
581
|
-
}
|
|
582
|
-
interface AchPlaceholders {
|
|
583
|
-
accountTypeSelector?: string;
|
|
584
|
-
ownerName?: string;
|
|
585
|
-
routingNumber?: string;
|
|
586
|
-
accountNumber?: string;
|
|
587
|
-
accountNumberVerification?: string;
|
|
367
|
+
interface AchPlaceholders {
|
|
368
|
+
accountTypeSelector?: string;
|
|
369
|
+
ownerName?: string;
|
|
370
|
+
routingNumber?: string;
|
|
371
|
+
accountNumber?: string;
|
|
372
|
+
accountNumberVerification?: string;
|
|
588
373
|
}
|
|
589
374
|
|
|
590
375
|
declare const SUPPORTED_LOCALES_EU: readonly ["en_GB", "de_DE", "fr_FR", "it_IT", "es_ES"];
|
|
@@ -753,7 +538,6 @@ declare enum TxVariants {
|
|
|
753
538
|
payto = "payto",
|
|
754
539
|
upi = "upi",// also QR
|
|
755
540
|
upi_qr = "upi_qr",// also QR
|
|
756
|
-
upi_collect = "upi_collect",// also QR
|
|
757
541
|
upi_intent = "upi_intent",// also QR
|
|
758
542
|
/** Await */
|
|
759
543
|
/** Giftcard */
|
|
@@ -831,7 +615,7 @@ interface AmazonPayConfiguration extends UIElementProps {
|
|
|
831
615
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
832
616
|
reject: () => void;
|
|
833
617
|
}): void;
|
|
834
|
-
payButton?:
|
|
618
|
+
payButton?: (props: PayButtonProps) => h.JSX.Element;
|
|
835
619
|
placement?: Placement;
|
|
836
620
|
productType?: ProductType;
|
|
837
621
|
recurringMetadata?: RecurringMetadata;
|
|
@@ -864,7 +648,6 @@ interface AmazonPayComponentProps extends AmazonPayConfiguration {
|
|
|
864
648
|
ref: any;
|
|
865
649
|
}
|
|
866
650
|
interface AmazonPayButtonProps {
|
|
867
|
-
amount?: PaymentAmount;
|
|
868
651
|
amazonRef: any;
|
|
869
652
|
buttonColor?: ButtonColor;
|
|
870
653
|
cancelUrl?: string;
|
|
@@ -899,7 +682,6 @@ interface ChangeActionOptions {
|
|
|
899
682
|
}
|
|
900
683
|
interface OrderButtonProps {
|
|
901
684
|
amazonCheckoutSessionId: string;
|
|
902
|
-
amount: PaymentAmount;
|
|
903
685
|
clientKey: string;
|
|
904
686
|
chargePermissionType?: ChargePermissionType;
|
|
905
687
|
onError: (error: any, component: any) => void;
|
|
@@ -1150,7 +932,14 @@ interface ApplePayConfiguration extends UIElementProps {
|
|
|
1150
932
|
* Optional user-defined data.
|
|
1151
933
|
*/
|
|
1152
934
|
applicationData?: string;
|
|
1153
|
-
|
|
935
|
+
/**
|
|
936
|
+
* Called when the shopper clicks the Apple Pay button
|
|
937
|
+
|
|
938
|
+
* @param resolve - Must be called if the button should be displayed
|
|
939
|
+
* @param reject - Must be called if the button should not be displayed
|
|
940
|
+
* @returns
|
|
941
|
+
*/
|
|
942
|
+
onClick?: (resolve: () => void, reject: () => void) => void;
|
|
1154
943
|
/**
|
|
1155
944
|
* A callback function the Apple Pay SDK calls when the Apple Pay code modal or window closes.
|
|
1156
945
|
*/
|
|
@@ -1183,28 +972,42 @@ interface ApplePayConfiguration extends UIElementProps {
|
|
|
1183
972
|
* @param reject - Must be called if something failed during the order creation. Calling 'reject' won't cancel the payment flow
|
|
1184
973
|
*/
|
|
1185
974
|
onOrderTrackingRequest?: (resolve: (orderDetails: ApplePayPaymentOrderDetails) => void, reject: () => void) => void;
|
|
1186
|
-
onValidateMerchant?: (resolve: any, reject: any, validationURL: string) => void;
|
|
1187
975
|
/**
|
|
1188
|
-
*
|
|
1189
|
-
*
|
|
1190
|
-
* @
|
|
1191
|
-
* @param
|
|
976
|
+
* An event handler the system calls when it displays the payment sheet
|
|
977
|
+
*
|
|
978
|
+
* {@link https://developer.apple.com/documentation/applepayontheweb/applepaysession/onvalidatemerchant}
|
|
979
|
+
* @param resolve - Must be called with an opaque message session object
|
|
980
|
+
* @param reject - Must be called if something failed during the merchant validation
|
|
981
|
+
* @param validationURL - The URL your server must use to validate itself and obtain a merchant session object.
|
|
1192
982
|
*/
|
|
1193
|
-
|
|
983
|
+
onValidateMerchant?: (resolve: (merchantSession: any) => void, reject: (error?: string) => void, validationURL: string) => Promise<void>;
|
|
1194
984
|
/**
|
|
1195
|
-
*
|
|
1196
|
-
*
|
|
1197
|
-
* @
|
|
1198
|
-
* @param
|
|
985
|
+
* An event handler to call when the user selects a new payment method.
|
|
986
|
+
*
|
|
987
|
+
* {@link https://developer.apple.com/documentation/applepayontheweb/applepaysession/onpaymentmethodselected}
|
|
988
|
+
* @param resolve - Completes the selection of a payment method with an update.
|
|
989
|
+
* @param reject - Completes the selection of a payment method with no update.
|
|
990
|
+
* @param event - The event parameter contains the paymentMethod attribute.
|
|
1199
991
|
*/
|
|
1200
|
-
|
|
992
|
+
onPaymentMethodSelected?: (resolve: (paymentMethodUpdate: ApplePayJS.ApplePayPaymentMethodUpdate) => void, reject: (paymentMethodUpdate: ApplePayJS.ApplePayPaymentMethodUpdate) => void, event: ApplePayJS.ApplePayPaymentMethodSelectedEvent) => void;
|
|
1201
993
|
/**
|
|
1202
|
-
*
|
|
1203
|
-
*
|
|
1204
|
-
* @
|
|
1205
|
-
* @param
|
|
994
|
+
* An event handler to call when the user selects a shipping contact in the payment sheet.
|
|
995
|
+
*
|
|
996
|
+
* {@link https://developer.apple.com/documentation/applepayontheweb/applepaysession/onshippingcontactselected}
|
|
997
|
+
* @param resolve - Completes the selection of a shipping contact with an update.
|
|
998
|
+
* @param reject - Completes the selection of a shipping contact with no update.
|
|
999
|
+
* @param event - The event parameter contains the shippingContact attribute.
|
|
1000
|
+
*/
|
|
1001
|
+
onShippingContactSelected?: (resolve: (shippingContactUpdate: ApplePayJS.ApplePayShippingContactUpdate) => void, reject: (shippingContactUpdate: ApplePayJS.ApplePayShippingContactUpdate) => void, event: ApplePayJS.ApplePayShippingContactSelectedEvent) => void;
|
|
1002
|
+
/**
|
|
1003
|
+
* Completes the selection of a shipping method with an update.
|
|
1004
|
+
*
|
|
1005
|
+
* {@link https://developer.apple.com/documentation/applepayontheweb/applepaysession/completeshippingmethodselection}
|
|
1006
|
+
* @param resolve - Completes the selection of a shipping method with an update.
|
|
1007
|
+
* @param reject - Completes the selection of a shipping method with no update.
|
|
1008
|
+
* @param event - The event parameter contains the shippingMethod attribute.
|
|
1206
1009
|
*/
|
|
1207
|
-
onShippingMethodSelected?: (resolve:
|
|
1010
|
+
onShippingMethodSelected?: (resolve: (shippingMethodUpdate: ApplePayJS.ApplePayShippingMethodUpdate) => void, reject: (shippingMethodUpdate: ApplePayJS.ApplePayShippingMethodUpdate) => void, event: ApplePayJS.ApplePayShippingMethodSelectedEvent) => void;
|
|
1208
1011
|
buttonColor?: ApplePayButtonStyle;
|
|
1209
1012
|
buttonType?: ApplePayButtonType;
|
|
1210
1013
|
/**
|
|
@@ -1469,162 +1272,389 @@ interface TimeoutErrorProps {
|
|
|
1469
1272
|
scheme: string;
|
|
1470
1273
|
isTimeoutTriggeredBySchemeSdk: boolean;
|
|
1471
1274
|
}
|
|
1472
|
-
declare class TimeoutError extends Error {
|
|
1473
|
-
scheme: string;
|
|
1474
|
-
source: string;
|
|
1475
|
-
isTimeoutTriggeredBySchemeSdk: boolean;
|
|
1476
|
-
/** Currently populated only by Visa SDK if available */
|
|
1477
|
-
correlationId?: string;
|
|
1478
|
-
constructor(options: TimeoutErrorProps);
|
|
1479
|
-
setCorrelationId(correlationId: string): void;
|
|
1480
|
-
toString(): string;
|
|
1275
|
+
declare class TimeoutError extends Error {
|
|
1276
|
+
scheme: string;
|
|
1277
|
+
source: string;
|
|
1278
|
+
isTimeoutTriggeredBySchemeSdk: boolean;
|
|
1279
|
+
/** Currently populated only by Visa SDK if available */
|
|
1280
|
+
correlationId?: string;
|
|
1281
|
+
constructor(options: TimeoutErrorProps);
|
|
1282
|
+
setCorrelationId(correlationId: string): void;
|
|
1283
|
+
toString(): string;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
type ClickToPayProps = {
|
|
1287
|
+
/**
|
|
1288
|
+
* Shopper email used to be recognized with the Network schemes
|
|
1289
|
+
*/
|
|
1290
|
+
shopperEmail?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* Shopper telephone number used to be recognized with the Network schemes
|
|
1293
|
+
*/
|
|
1294
|
+
telephoneNumber?: string;
|
|
1295
|
+
/**
|
|
1296
|
+
* Used to display the merchant name in case the DCF appears (ex: first time doing transaction in the device),
|
|
1297
|
+
*/
|
|
1298
|
+
merchantDisplayName?: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* Used to ensure the correct language and user experience if DCF screen is displayed. As a fallback, it uses the main locale
|
|
1301
|
+
* defined during the creation of the Checkout.
|
|
1302
|
+
* Format: ISO language_country pair (e.g., en_US )
|
|
1303
|
+
*
|
|
1304
|
+
* @defaultValue en_US
|
|
1305
|
+
*/
|
|
1306
|
+
locale?: string;
|
|
1307
|
+
/**
|
|
1308
|
+
* Disable autofocus on the One Time Password input field when it is either displayed or when the OTP is resent
|
|
1309
|
+
* @defaultValue false
|
|
1310
|
+
*/
|
|
1311
|
+
disableOtpAutoFocus?: boolean;
|
|
1312
|
+
/**
|
|
1313
|
+
* Callback triggered when the Click to Pay component is ready to be used
|
|
1314
|
+
*/
|
|
1315
|
+
onReady?(): void;
|
|
1316
|
+
/**
|
|
1317
|
+
* Callback triggered when a timeout happens within Click to Pay service.
|
|
1318
|
+
* Ex: Network schemes took too long to initialize
|
|
1319
|
+
*/
|
|
1320
|
+
onTimeout?(error: TimeoutError): void;
|
|
1321
|
+
};
|
|
1322
|
+
type ClickToPayScheme = 'mc' | 'visa';
|
|
1323
|
+
|
|
1324
|
+
declare global {
|
|
1325
|
+
interface Window {
|
|
1326
|
+
SRCSDK_MASTERCARD?: object;
|
|
1327
|
+
vAdapters: {
|
|
1328
|
+
VisaSRCI?: object;
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
declare enum AnalyticsEventCategory {
|
|
1334
|
+
info = "info",
|
|
1335
|
+
error = "error",
|
|
1336
|
+
log = "log"
|
|
1337
|
+
}
|
|
1338
|
+
declare abstract class AbstractAnalyticsEvent {
|
|
1339
|
+
private readonly timestamp;
|
|
1340
|
+
private readonly id;
|
|
1341
|
+
/**
|
|
1342
|
+
* Component tx variant or identifier
|
|
1343
|
+
* @private
|
|
1344
|
+
*/
|
|
1345
|
+
private readonly component;
|
|
1346
|
+
abstract getEventCategory(): AnalyticsEventCategory;
|
|
1347
|
+
protected constructor(component: string);
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
interface AnalyticsOptions {
|
|
1351
|
+
/**
|
|
1352
|
+
* Enable/Disable all analytics
|
|
1353
|
+
*/
|
|
1354
|
+
enabled?: boolean;
|
|
1355
|
+
/**
|
|
1356
|
+
* A wrapper to pass data needed when analytics is setup
|
|
1357
|
+
*/
|
|
1358
|
+
analyticsData?: {
|
|
1359
|
+
/**
|
|
1360
|
+
* Relates to PMs used within Plugins
|
|
1361
|
+
* https://docs.adyen.com/development-resources/application-information/?tab=integrator_built_2#application-information-fields
|
|
1362
|
+
* @internal
|
|
1363
|
+
*/
|
|
1364
|
+
applicationInfo?: ApplicationInfo;
|
|
1365
|
+
/**
|
|
1366
|
+
* Use a checkoutAttemptId from a previous page
|
|
1367
|
+
*/
|
|
1368
|
+
checkoutAttemptId?: string;
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
interface ApplicationInfo {
|
|
1372
|
+
externalPlatform: {
|
|
1373
|
+
name: string;
|
|
1374
|
+
version: string;
|
|
1375
|
+
integrator: string;
|
|
1376
|
+
};
|
|
1377
|
+
merchantApplication: {
|
|
1378
|
+
name: string;
|
|
1379
|
+
version: string;
|
|
1380
|
+
};
|
|
1381
|
+
merchantDevice?: {
|
|
1382
|
+
os: string;
|
|
1383
|
+
osVersion: string;
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
interface IAnalytics {
|
|
1388
|
+
checkoutAttemptId?: string;
|
|
1389
|
+
setUp({ sessionId, checkoutStage, locale }: {
|
|
1390
|
+
sessionId?: string;
|
|
1391
|
+
checkoutStage?: 'precheckout' | 'checkout';
|
|
1392
|
+
locale?: string;
|
|
1393
|
+
}): Promise<void>;
|
|
1394
|
+
sendFlavor(flavor: 'dropin' | 'components'): Promise<void>;
|
|
1395
|
+
sendAnalytics(event: AbstractAnalyticsEvent): void;
|
|
1396
|
+
flush(): void;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
type MastercardCheckout = {
|
|
1400
|
+
srcDigitalCardId: string;
|
|
1401
|
+
srcCorrelationId: string;
|
|
1402
|
+
srcScheme: string;
|
|
1403
|
+
};
|
|
1404
|
+
type VisaCheckout = {
|
|
1405
|
+
srcCheckoutPayload?: string;
|
|
1406
|
+
srcTokenReference?: string;
|
|
1407
|
+
srcCorrelationId: string;
|
|
1408
|
+
srcScheme: string;
|
|
1409
|
+
};
|
|
1410
|
+
type ClickToPayCheckoutPayload = VisaCheckout | MastercardCheckout;
|
|
1411
|
+
|
|
1412
|
+
type ClickToPayConfiguration = UIElementProps & ClickToPayProps & {
|
|
1413
|
+
/**
|
|
1414
|
+
* ClickToPay configuration sent by the /paymentMethods response
|
|
1415
|
+
*/
|
|
1416
|
+
configuration?: {
|
|
1417
|
+
mcDpaId?: string;
|
|
1418
|
+
mcSrcClientId?: string;
|
|
1419
|
+
visaSrcInitiatorId?: string;
|
|
1420
|
+
visaSrciDpaId?: string;
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
type ClickToPayPaymentData = {
|
|
1424
|
+
paymentMethod: ClickToPayCheckoutPayload & {
|
|
1425
|
+
type: string;
|
|
1426
|
+
};
|
|
1427
|
+
origin: string;
|
|
1428
|
+
browserInfo: BrowserInfo;
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
interface TouchStartEventObj {
|
|
1432
|
+
fieldType: string;
|
|
1433
|
+
name?: string;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
type PlaceholderKeys$1 = 'cardNumber' | 'securityCode' | 'expiryDate';
|
|
1437
|
+
type Placeholders$1 = Partial<Record<PlaceholderKeys$1, string>>;
|
|
1438
|
+
type GiftcardFieldsProps = {
|
|
1439
|
+
setRootNode: (input: HTMLElement) => void;
|
|
1440
|
+
i18n: Language;
|
|
1441
|
+
pinRequired: boolean;
|
|
1442
|
+
sfpState: SFPState;
|
|
1443
|
+
getCardErrorMessage: any;
|
|
1444
|
+
focusedElement: any;
|
|
1445
|
+
setFocusOn: any;
|
|
1446
|
+
label?: string;
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
type Placeholders = CardPlaceholders | Placeholders$1;
|
|
1450
|
+
/**
|
|
1451
|
+
* Should be the only props that can be sent to SFP (from CardInput, SecuredFieldsInput, GiftcardComponent)
|
|
1452
|
+
*/
|
|
1453
|
+
interface SFPProps {
|
|
1454
|
+
autoFocus?: boolean;
|
|
1455
|
+
brands?: string[];
|
|
1456
|
+
brandsConfiguration?: CardBrandsConfiguration;
|
|
1457
|
+
clientKey: string;
|
|
1458
|
+
componentType: string;
|
|
1459
|
+
countryCode?: string;
|
|
1460
|
+
forceCompat?: boolean;
|
|
1461
|
+
hasKoreanFields?: boolean;
|
|
1462
|
+
i18n: Language;
|
|
1463
|
+
implementationType?: string;
|
|
1464
|
+
keypadFix?: boolean;
|
|
1465
|
+
koreanAuthenticationRequired?: boolean;
|
|
1466
|
+
legacyInputMode?: boolean;
|
|
1467
|
+
loadingContext: string;
|
|
1468
|
+
minimumExpiryDate?: string;
|
|
1469
|
+
onAdditionalSFConfig?: () => {};
|
|
1470
|
+
onAdditionalSFRemoved?: () => {};
|
|
1471
|
+
onAllValid?: () => {};
|
|
1472
|
+
onAutoComplete?: () => {};
|
|
1473
|
+
onBinValue?: () => {};
|
|
1474
|
+
onBrand?: () => {};
|
|
1475
|
+
onChange: () => {};
|
|
1476
|
+
onConfigSuccess?: () => {};
|
|
1477
|
+
onError?: () => {};
|
|
1478
|
+
onFieldValid?: () => {};
|
|
1479
|
+
onFocus?: () => {};
|
|
1480
|
+
onLoad?: () => {};
|
|
1481
|
+
onStateUpdate: (obj: SFPState) => void;
|
|
1482
|
+
onSubmitAnalytics: (event: AbstractAnalyticsEvent) => void;
|
|
1483
|
+
handleKeyPress?: (obj: KeyboardEvent) => void;
|
|
1484
|
+
rootNode: HTMLElement;
|
|
1485
|
+
showWarnings?: boolean;
|
|
1486
|
+
styles?: StylesObject;
|
|
1487
|
+
trimTrailingSeparator?: boolean;
|
|
1488
|
+
type: string;
|
|
1489
|
+
render: () => {};
|
|
1490
|
+
resources: Resources;
|
|
1491
|
+
maskSecurityCode: boolean;
|
|
1492
|
+
exposeExpiryDate: boolean;
|
|
1493
|
+
disableIOSArrowKeys: (obj: TouchStartEventObj) => void | null;
|
|
1494
|
+
placeholders?: Placeholders;
|
|
1495
|
+
showContextualElement?: boolean;
|
|
1496
|
+
}
|
|
1497
|
+
interface SFPState {
|
|
1498
|
+
status?: string;
|
|
1499
|
+
brand?: string;
|
|
1500
|
+
errors?: object;
|
|
1501
|
+
valid: SFPValid;
|
|
1502
|
+
data: object;
|
|
1503
|
+
cvcPolicy?: CVCPolicyType;
|
|
1504
|
+
isSfpValid?: boolean;
|
|
1505
|
+
autoCompleteName?: string;
|
|
1506
|
+
billingAddress?: AddressData;
|
|
1507
|
+
detectedUnsupportedBrands?: string[];
|
|
1508
|
+
hasKoreanFields?: boolean;
|
|
1509
|
+
showSocialSecurityNumber?: boolean;
|
|
1510
|
+
expiryDatePolicy?: DatePolicyType;
|
|
1511
|
+
socialSecurityNumber?: string;
|
|
1512
|
+
}
|
|
1513
|
+
interface SingleBrandResetObject {
|
|
1514
|
+
brand: string;
|
|
1515
|
+
cvcPolicy: CVCPolicyType;
|
|
1516
|
+
}
|
|
1517
|
+
interface SFPValid {
|
|
1518
|
+
encryptedCardNumber?: boolean;
|
|
1519
|
+
encryptedExpiryMonth?: boolean;
|
|
1520
|
+
encryptedExpiryYear?: boolean;
|
|
1521
|
+
encryptedSecurityCode?: boolean;
|
|
1522
|
+
encryptedPassword?: boolean;
|
|
1523
|
+
encryptedPin?: boolean;
|
|
1524
|
+
encryptedBankAccountNumber?: boolean;
|
|
1525
|
+
encryptedBankLocationId?: boolean;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
declare const REQUIRED = "required";
|
|
1529
|
+
declare const OPTIONAL = "optional";
|
|
1530
|
+
declare const HIDDEN = "hidden";
|
|
1531
|
+
|
|
1532
|
+
declare global {
|
|
1533
|
+
interface Window {
|
|
1534
|
+
_b$dl: boolean;
|
|
1535
|
+
mockBinCount: number;
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
interface StylesObject {
|
|
1539
|
+
base?: StyleDefinitions;
|
|
1540
|
+
error?: StyleDefinitions;
|
|
1541
|
+
validated?: StyleDefinitions;
|
|
1542
|
+
placeholder?: StyleDefinitions;
|
|
1543
|
+
}
|
|
1544
|
+
interface StyleDefinitions {
|
|
1545
|
+
background?: string;
|
|
1546
|
+
caretColor?: string;
|
|
1547
|
+
color?: string;
|
|
1548
|
+
display?: string;
|
|
1549
|
+
font?: string;
|
|
1550
|
+
fontFamily?: string;
|
|
1551
|
+
fontSize?: string;
|
|
1552
|
+
fontSizeAdjust?: string;
|
|
1553
|
+
fontSmoothing?: string;
|
|
1554
|
+
fontStretch?: string;
|
|
1555
|
+
fontStyle?: string;
|
|
1556
|
+
fontVariant?: string;
|
|
1557
|
+
fontVariantAlternates?: string;
|
|
1558
|
+
fontVariantCaps?: string;
|
|
1559
|
+
fontVariantEastAsian?: string;
|
|
1560
|
+
fontVariantLigatures?: string;
|
|
1561
|
+
fontVariantNumeric?: string;
|
|
1562
|
+
fontWeight?: string;
|
|
1563
|
+
letterSpacing?: string;
|
|
1564
|
+
lineHeight?: string;
|
|
1565
|
+
mozOsxFontSmoothing?: string;
|
|
1566
|
+
mozTransition?: string;
|
|
1567
|
+
outline?: string;
|
|
1568
|
+
opacity?: string;
|
|
1569
|
+
padding?: string;
|
|
1570
|
+
textAlign?: string;
|
|
1571
|
+
textShadow?: string;
|
|
1572
|
+
transition?: string;
|
|
1573
|
+
webkitFontSmoothing?: string;
|
|
1574
|
+
webkitTransition?: string;
|
|
1575
|
+
wordSpacing?: string;
|
|
1576
|
+
}
|
|
1577
|
+
interface CardAllValidData {
|
|
1578
|
+
type: string;
|
|
1579
|
+
allValid: boolean;
|
|
1580
|
+
rootNode: HTMLElement;
|
|
1581
|
+
}
|
|
1582
|
+
interface CardAutoCompleteData {
|
|
1583
|
+
fieldType: string;
|
|
1584
|
+
name: string;
|
|
1585
|
+
value: string;
|
|
1586
|
+
action: string;
|
|
1587
|
+
}
|
|
1588
|
+
interface CardBinLookupData {
|
|
1589
|
+
type?: string;
|
|
1590
|
+
detectedBrands?: string[];
|
|
1591
|
+
supportedBrands?: string[];
|
|
1592
|
+
brands?: string[];
|
|
1593
|
+
issuingCountryCode?: string;
|
|
1594
|
+
supportedBrandsRaw?: BrandObject[];
|
|
1595
|
+
rootNode?: HTMLElement;
|
|
1596
|
+
isReset?: boolean;
|
|
1597
|
+
}
|
|
1598
|
+
interface CardBinValueData {
|
|
1599
|
+
type: string;
|
|
1600
|
+
binValue: string;
|
|
1601
|
+
uuid?: string;
|
|
1602
|
+
encryptedBin?: string;
|
|
1481
1603
|
}
|
|
1482
|
-
|
|
1483
|
-
type
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
telephoneNumber?: string;
|
|
1492
|
-
/**
|
|
1493
|
-
* Used to display the merchant name in case the DCF appears (ex: first time doing transaction in the device),
|
|
1494
|
-
*/
|
|
1495
|
-
merchantDisplayName?: string;
|
|
1496
|
-
/**
|
|
1497
|
-
* Used to ensure the correct language and user experience if DCF screen is displayed. As a fallback, it uses the main locale
|
|
1498
|
-
* defined during the creation of the Checkout.
|
|
1499
|
-
* Format: ISO language_country pair (e.g., en_US )
|
|
1500
|
-
*
|
|
1501
|
-
* @defaultValue en_US
|
|
1502
|
-
*/
|
|
1503
|
-
locale?: string;
|
|
1504
|
-
/**
|
|
1505
|
-
* Disable autofocus on the One Time Password input field when it is either displayed or when the OTP is resent
|
|
1506
|
-
* @defaultValue false
|
|
1507
|
-
*/
|
|
1508
|
-
disableOtpAutoFocus?: boolean;
|
|
1509
|
-
/**
|
|
1510
|
-
* Callback triggered when the Click to Pay component is ready to be used
|
|
1511
|
-
*/
|
|
1512
|
-
onReady?(): void;
|
|
1513
|
-
/**
|
|
1514
|
-
* Callback triggered when a timeout happens within Click to Pay service.
|
|
1515
|
-
* Ex: Network schemes took too long to initialize
|
|
1516
|
-
*/
|
|
1517
|
-
onTimeout?(error: TimeoutError): void;
|
|
1518
|
-
};
|
|
1519
|
-
type ClickToPayScheme = 'mc' | 'visa';
|
|
1520
|
-
|
|
1521
|
-
declare global {
|
|
1522
|
-
interface Window {
|
|
1523
|
-
SRCSDK_MASTERCARD?: object;
|
|
1524
|
-
vAdapters: {
|
|
1525
|
-
VisaSRCI?: object;
|
|
1526
|
-
};
|
|
1527
|
-
}
|
|
1604
|
+
interface CardBrandData {
|
|
1605
|
+
type: string;
|
|
1606
|
+
rootNode: HTMLElement;
|
|
1607
|
+
brand: string;
|
|
1608
|
+
cvcPolicy: CVCPolicyType;
|
|
1609
|
+
expiryDatePolicy?: DatePolicyType;
|
|
1610
|
+
cvcText: string;
|
|
1611
|
+
showSocialSecurityNumber?: boolean;
|
|
1612
|
+
brandImageUrl?: string;
|
|
1528
1613
|
}
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
log = "log"
|
|
1614
|
+
interface CardConfigSuccessData {
|
|
1615
|
+
iframesConfigured: boolean;
|
|
1616
|
+
type: string;
|
|
1617
|
+
rootNode: HTMLElement;
|
|
1534
1618
|
}
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
abstract getEventCategory(): AnalyticsEventCategory;
|
|
1544
|
-
protected constructor(component: string);
|
|
1619
|
+
interface CardErrorData {
|
|
1620
|
+
fieldType: string;
|
|
1621
|
+
error: string;
|
|
1622
|
+
type: string;
|
|
1623
|
+
rootNode?: HTMLElement;
|
|
1624
|
+
detectedBrands?: string[];
|
|
1625
|
+
errorI18n?: string;
|
|
1626
|
+
errorText?: string;
|
|
1545
1627
|
}
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
* Relates to PMs used within Plugins
|
|
1558
|
-
* https://docs.adyen.com/development-resources/application-information/?tab=integrator_built_2#application-information-fields
|
|
1559
|
-
* @internal
|
|
1560
|
-
*/
|
|
1561
|
-
applicationInfo?: ApplicationInfo;
|
|
1562
|
-
/**
|
|
1563
|
-
* Use a checkoutAttemptId from a previous page
|
|
1564
|
-
*/
|
|
1565
|
-
checkoutAttemptId?: string;
|
|
1566
|
-
};
|
|
1628
|
+
interface CardFieldValidData {
|
|
1629
|
+
fieldType: string;
|
|
1630
|
+
encryptedFieldName: string;
|
|
1631
|
+
uid: string;
|
|
1632
|
+
valid: boolean;
|
|
1633
|
+
type: string;
|
|
1634
|
+
rootNode: HTMLElement;
|
|
1635
|
+
blob?: string;
|
|
1636
|
+
endDigits?: string;
|
|
1637
|
+
expiryDate?: string;
|
|
1638
|
+
issuerBin?: number;
|
|
1567
1639
|
}
|
|
1568
|
-
interface
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
version: string;
|
|
1577
|
-
};
|
|
1578
|
-
merchantDevice?: {
|
|
1579
|
-
os: string;
|
|
1580
|
-
osVersion: string;
|
|
1581
|
-
};
|
|
1640
|
+
interface CardFocusData {
|
|
1641
|
+
action: string;
|
|
1642
|
+
focus: boolean;
|
|
1643
|
+
numChars: number;
|
|
1644
|
+
fieldType: string;
|
|
1645
|
+
rootNode: HTMLElement;
|
|
1646
|
+
type: string;
|
|
1647
|
+
currentFocusObject: string;
|
|
1582
1648
|
}
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
setUp({ sessionId, checkoutStage, locale }: {
|
|
1586
|
-
sessionId?: string;
|
|
1587
|
-
checkoutStage?: 'precheckout' | 'checkout';
|
|
1588
|
-
locale?: string;
|
|
1589
|
-
}): Promise<void>;
|
|
1590
|
-
sendFlavor(flavor: 'dropin' | 'components'): Promise<void>;
|
|
1591
|
-
sendAnalytics(event: AbstractAnalyticsEvent): void;
|
|
1592
|
-
flush(): void;
|
|
1649
|
+
interface CardLoadData {
|
|
1650
|
+
iframesLoaded: boolean;
|
|
1593
1651
|
}
|
|
1594
|
-
|
|
1595
|
-
type
|
|
1596
|
-
srcDigitalCardId: string;
|
|
1597
|
-
srcCorrelationId: string;
|
|
1598
|
-
srcScheme: string;
|
|
1599
|
-
};
|
|
1600
|
-
type VisaCheckout = {
|
|
1601
|
-
srcCheckoutPayload?: string;
|
|
1602
|
-
srcTokenReference?: string;
|
|
1603
|
-
srcCorrelationId: string;
|
|
1604
|
-
srcScheme: string;
|
|
1605
|
-
};
|
|
1606
|
-
type ClickToPayCheckoutPayload = VisaCheckout | MastercardCheckout;
|
|
1607
|
-
|
|
1608
|
-
type ClickToPayConfiguration = UIElementProps & ClickToPayProps & {
|
|
1609
|
-
/**
|
|
1610
|
-
* ClickToPay configuration sent by the /paymentMethods response
|
|
1611
|
-
*/
|
|
1612
|
-
configuration?: {
|
|
1613
|
-
mcDpaId?: string;
|
|
1614
|
-
mcSrcClientId?: string;
|
|
1615
|
-
visaSrcInitiatorId?: string;
|
|
1616
|
-
visaSrciDpaId?: string;
|
|
1617
|
-
};
|
|
1618
|
-
};
|
|
1619
|
-
type ClickToPayPaymentData = {
|
|
1620
|
-
paymentMethod: ClickToPayCheckoutPayload & {
|
|
1621
|
-
type: string;
|
|
1622
|
-
};
|
|
1623
|
-
origin: string;
|
|
1624
|
-
browserInfo: BrowserInfo;
|
|
1625
|
-
};
|
|
1652
|
+
type CVCPolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
1653
|
+
type DatePolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
1626
1654
|
|
|
1627
1655
|
declare enum ErrorEventCode {
|
|
1656
|
+
/** Trying to initialise a securedField iframe, but the iframe.contentWindow is undefined (meaning the containing element is not in the DOM */
|
|
1657
|
+
SECURED_FIELDS_IFRAME_CONTENT_WINDOW_NOT_FOUND = "500",
|
|
1628
1658
|
REDIRECT = "600",
|
|
1629
1659
|
/** Missing 'paymentData' property from threeDS2 action */
|
|
1630
1660
|
THREEDS2_ACTION_IS_MISSING_PAYMENT_DATA = "700",
|
|
@@ -2076,7 +2106,7 @@ interface DragonpayInputProps {
|
|
|
2076
2106
|
onChange: (state: any) => void;
|
|
2077
2107
|
onSubmit?: (state: any, component: any) => void;
|
|
2078
2108
|
showPayButton: boolean;
|
|
2079
|
-
payButton:
|
|
2109
|
+
payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
2080
2110
|
ref?: any;
|
|
2081
2111
|
}
|
|
2082
2112
|
interface DragonpayVoucherResultProps {
|
|
@@ -2427,7 +2457,7 @@ interface KlarnaPaymentsShared {
|
|
|
2427
2457
|
}
|
|
2428
2458
|
interface KlarnaWidgetProps extends KlarnaPaymentsShared {
|
|
2429
2459
|
/** @internal */
|
|
2430
|
-
payButton: (
|
|
2460
|
+
payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
2431
2461
|
/** @internal */
|
|
2432
2462
|
onLoaded: () => void;
|
|
2433
2463
|
widgetInitializationTime: number;
|
|
@@ -2996,22 +3026,14 @@ interface SepaElementData {
|
|
|
2996
3026
|
interface SepaConfiguration extends UIElementProps {
|
|
2997
3027
|
}
|
|
2998
3028
|
|
|
2999
|
-
interface SegmentedControlOption<T> {
|
|
3000
|
-
label: string;
|
|
3001
|
-
value: T;
|
|
3002
|
-
id: string;
|
|
3003
|
-
controls: string;
|
|
3004
|
-
htmlProps?: {};
|
|
3005
|
-
}
|
|
3006
|
-
|
|
3007
3029
|
type Mandate = {
|
|
3008
3030
|
amount: string;
|
|
3009
3031
|
frequency: 'monthly' | 'weekly' | 'adhoc';
|
|
3010
3032
|
amountRule: 'max' | 'exact';
|
|
3011
3033
|
};
|
|
3012
3034
|
|
|
3013
|
-
type UpiType = TxVariants.upi_qr | TxVariants.upi_intent
|
|
3014
|
-
type UpiMode = '
|
|
3035
|
+
type UpiType = TxVariants.upi_qr | TxVariants.upi_intent;
|
|
3036
|
+
type UpiMode = 'qrCode' | 'intent';
|
|
3015
3037
|
type App = {
|
|
3016
3038
|
id: string;
|
|
3017
3039
|
name: string;
|
|
@@ -3020,11 +3042,11 @@ type App = {
|
|
|
3020
3042
|
type UpiPaymentData = {
|
|
3021
3043
|
paymentMethod: {
|
|
3022
3044
|
type: UpiType;
|
|
3023
|
-
virtualPaymentAddress?: string;
|
|
3024
3045
|
appId?: string;
|
|
3025
3046
|
};
|
|
3026
3047
|
};
|
|
3027
3048
|
interface UPIConfiguration extends UIElementProps {
|
|
3049
|
+
/** @deprecated UPI configuration property "defaultMode" is deprecated and will be removed in a future version. */
|
|
3028
3050
|
defaultMode?: UpiMode;
|
|
3029
3051
|
mandate?: Mandate;
|
|
3030
3052
|
apps?: Array<App>;
|
|
@@ -3036,7 +3058,6 @@ interface UPIConfiguration extends UIElementProps {
|
|
|
3036
3058
|
/**
|
|
3037
3059
|
* @internal
|
|
3038
3060
|
*/
|
|
3039
|
-
segmentedControlOptions?: Array<SegmentedControlOption<UpiMode>>;
|
|
3040
3061
|
paymentData?: string;
|
|
3041
3062
|
qrCodeData?: string;
|
|
3042
3063
|
brandLogo?: string;
|
|
@@ -3234,7 +3255,6 @@ interface AwaitComponentProps {
|
|
|
3234
3255
|
pollStatus?: () => Promise<RawPaymentResponse | RawPaymentStatusResponse>;
|
|
3235
3256
|
instructions?: string | (() => h.JSX.Element);
|
|
3236
3257
|
endSlot?: () => h.JSX.Element;
|
|
3237
|
-
amount?: PaymentAmount;
|
|
3238
3258
|
showAmount?: boolean;
|
|
3239
3259
|
}
|
|
3240
3260
|
interface AwaitConfiguration extends UIElementProps {
|
|
@@ -3368,7 +3388,6 @@ interface IBaseElement {
|
|
|
3368
3388
|
activate(): void;
|
|
3369
3389
|
}
|
|
3370
3390
|
|
|
3371
|
-
type PayButtonFunctionProps = Omit<PayButtonProps, 'amount'>;
|
|
3372
3391
|
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
3373
3392
|
type StatusFromAction = 'redirect' | 'loading' | 'custom';
|
|
3374
3393
|
type UIElementProps = {
|
|
@@ -3404,14 +3423,14 @@ type UIElementProps = {
|
|
|
3404
3423
|
name?: string;
|
|
3405
3424
|
icon?: string;
|
|
3406
3425
|
amount?: PaymentAmount;
|
|
3407
|
-
secondaryAmount?:
|
|
3426
|
+
secondaryAmount?: PaymentAmount;
|
|
3408
3427
|
/**
|
|
3409
3428
|
* Show/Hide pay button
|
|
3410
3429
|
* @defaultValue true
|
|
3411
3430
|
*/
|
|
3412
3431
|
showPayButton?: boolean;
|
|
3413
3432
|
/** @internal */
|
|
3414
|
-
payButton?: (options:
|
|
3433
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
3415
3434
|
/** @internal */
|
|
3416
3435
|
loadingContext?: string;
|
|
3417
3436
|
/** @internal */
|
|
@@ -3464,13 +3483,13 @@ declare class OpenInvoiceContainer extends UIElement<OpenInvoiceConfiguration> {
|
|
|
3464
3483
|
declare class AfterPay extends OpenInvoiceContainer {
|
|
3465
3484
|
static type: TxVariants;
|
|
3466
3485
|
static txVariants: TxVariants[];
|
|
3467
|
-
formatProps(props:
|
|
3486
|
+
formatProps(props: OpenInvoiceConfiguration): any;
|
|
3468
3487
|
}
|
|
3469
3488
|
|
|
3470
3489
|
declare class AfterPayB2B extends OpenInvoiceContainer {
|
|
3471
3490
|
static type: TxVariants;
|
|
3472
3491
|
protected static defaultProps: Partial<OpenInvoiceConfiguration>;
|
|
3473
|
-
formatProps(props:
|
|
3492
|
+
formatProps(props: OpenInvoiceConfiguration): any;
|
|
3474
3493
|
}
|
|
3475
3494
|
|
|
3476
3495
|
declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
@@ -3491,7 +3510,7 @@ declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
|
3491
3510
|
*/
|
|
3492
3511
|
createOrder: () => Promise<void>;
|
|
3493
3512
|
submit(): boolean;
|
|
3494
|
-
payButton: (props:
|
|
3513
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
3495
3514
|
get isValid(): boolean;
|
|
3496
3515
|
get displayName(): string;
|
|
3497
3516
|
protected componentToRender(): h.JSX.Element;
|
|
@@ -3561,7 +3580,7 @@ declare class ApplePayElement extends UIElement<ApplePayConfiguration> {
|
|
|
3561
3580
|
|
|
3562
3581
|
declare class Atome extends OpenInvoiceContainer {
|
|
3563
3582
|
static type: TxVariants;
|
|
3564
|
-
formatProps(props:
|
|
3583
|
+
formatProps(props: OpenInvoiceConfiguration): any;
|
|
3565
3584
|
}
|
|
3566
3585
|
|
|
3567
3586
|
declare class IssuerListContainer<TProps extends IssuerListConfiguration = IssuerListConfiguration, TData = IssuerListData> extends UIElement<TProps> {
|
|
@@ -3650,7 +3669,7 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
3650
3669
|
method: string;
|
|
3651
3670
|
data?: any;
|
|
3652
3671
|
}) => void;
|
|
3653
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3672
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
3654
3673
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3655
3674
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3656
3675
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -3675,9 +3694,9 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
3675
3694
|
name?: string;
|
|
3676
3695
|
icon?: string;
|
|
3677
3696
|
amount?: PaymentAmount;
|
|
3678
|
-
secondaryAmount?:
|
|
3697
|
+
secondaryAmount?: PaymentAmount;
|
|
3679
3698
|
showPayButton?: boolean;
|
|
3680
|
-
payButton?: (options:
|
|
3699
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
3681
3700
|
loadingContext?: string;
|
|
3682
3701
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3683
3702
|
clientKey?: string;
|
|
@@ -3727,7 +3746,7 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3727
3746
|
method: string;
|
|
3728
3747
|
data?: any;
|
|
3729
3748
|
}) => void;
|
|
3730
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3749
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
3731
3750
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3732
3751
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3733
3752
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -3752,9 +3771,9 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3752
3771
|
name?: string;
|
|
3753
3772
|
icon?: string;
|
|
3754
3773
|
amount?: PaymentAmount;
|
|
3755
|
-
secondaryAmount?:
|
|
3774
|
+
secondaryAmount?: PaymentAmount;
|
|
3756
3775
|
showPayButton?: boolean;
|
|
3757
|
-
payButton?: (options:
|
|
3776
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
3758
3777
|
loadingContext?: string;
|
|
3759
3778
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3760
3779
|
clientKey?: string;
|
|
@@ -3878,7 +3897,7 @@ declare class BancontactElement extends CardElement {
|
|
|
3878
3897
|
method: string;
|
|
3879
3898
|
data?: any;
|
|
3880
3899
|
}) => void;
|
|
3881
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3900
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
3882
3901
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3883
3902
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3884
3903
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -3901,9 +3920,9 @@ declare class BancontactElement extends CardElement {
|
|
|
3901
3920
|
statusType?: StatusFromAction;
|
|
3902
3921
|
icon?: string;
|
|
3903
3922
|
amount?: PaymentAmount;
|
|
3904
|
-
secondaryAmount?:
|
|
3923
|
+
secondaryAmount?: PaymentAmount;
|
|
3905
3924
|
showPayButton?: boolean;
|
|
3906
|
-
payButton?: (options:
|
|
3925
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
3907
3926
|
loadingContext?: string;
|
|
3908
3927
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3909
3928
|
clientKey?: string;
|
|
@@ -4074,7 +4093,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
4074
4093
|
method: string;
|
|
4075
4094
|
data?: any;
|
|
4076
4095
|
}) => void;
|
|
4077
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4096
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4078
4097
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4079
4098
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4080
4099
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4196,7 +4215,7 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
4196
4215
|
method: string;
|
|
4197
4216
|
data?: any;
|
|
4198
4217
|
}) => void;
|
|
4199
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4218
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4200
4219
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4201
4220
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4202
4221
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4220,9 +4239,9 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
4220
4239
|
name?: string;
|
|
4221
4240
|
icon?: string;
|
|
4222
4241
|
amount?: PaymentAmount;
|
|
4223
|
-
secondaryAmount?:
|
|
4242
|
+
secondaryAmount?: PaymentAmount;
|
|
4224
4243
|
showPayButton?: boolean;
|
|
4225
|
-
payButton?: (options:
|
|
4244
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
4226
4245
|
loadingContext?: string;
|
|
4227
4246
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4228
4247
|
clientKey?: string;
|
|
@@ -4269,7 +4288,7 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
4269
4288
|
method: string;
|
|
4270
4289
|
data?: any;
|
|
4271
4290
|
}) => void;
|
|
4272
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4291
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4273
4292
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4274
4293
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4275
4294
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4293,9 +4312,9 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
4293
4312
|
name?: string;
|
|
4294
4313
|
icon?: string;
|
|
4295
4314
|
amount?: PaymentAmount;
|
|
4296
|
-
secondaryAmount?:
|
|
4315
|
+
secondaryAmount?: PaymentAmount;
|
|
4297
4316
|
showPayButton?: boolean;
|
|
4298
|
-
payButton?: (options:
|
|
4317
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
4299
4318
|
loadingContext?: string;
|
|
4300
4319
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4301
4320
|
clientKey?: string;
|
|
@@ -4343,7 +4362,7 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
4343
4362
|
method: string;
|
|
4344
4363
|
data?: any;
|
|
4345
4364
|
}) => void;
|
|
4346
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4365
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4347
4366
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4348
4367
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4349
4368
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4367,9 +4386,9 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
4367
4386
|
name?: string;
|
|
4368
4387
|
icon?: string;
|
|
4369
4388
|
amount?: PaymentAmount;
|
|
4370
|
-
secondaryAmount?:
|
|
4389
|
+
secondaryAmount?: PaymentAmount;
|
|
4371
4390
|
showPayButton?: boolean;
|
|
4372
|
-
payButton?: (options:
|
|
4391
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
4373
4392
|
loadingContext?: string;
|
|
4374
4393
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4375
4394
|
clientKey?: string;
|
|
@@ -4431,7 +4450,7 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4431
4450
|
method: string;
|
|
4432
4451
|
data?: any;
|
|
4433
4452
|
}) => void;
|
|
4434
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4453
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4435
4454
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4436
4455
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4437
4456
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4455,9 +4474,9 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4455
4474
|
name?: string;
|
|
4456
4475
|
icon?: string;
|
|
4457
4476
|
amount?: PaymentAmount;
|
|
4458
|
-
secondaryAmount?:
|
|
4477
|
+
secondaryAmount?: PaymentAmount;
|
|
4459
4478
|
showPayButton?: boolean;
|
|
4460
|
-
payButton?: (options:
|
|
4479
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
4461
4480
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4462
4481
|
clientKey?: string;
|
|
4463
4482
|
elementRef?: any;
|
|
@@ -4619,14 +4638,14 @@ interface GiftcardComponentProps {
|
|
|
4619
4638
|
onBlur: (event: any) => void;
|
|
4620
4639
|
makeBalanceCheck: (event: any) => void;
|
|
4621
4640
|
makePayment: (event: any) => void;
|
|
4622
|
-
amount?: PaymentAmount;
|
|
4623
4641
|
showPayButton: boolean;
|
|
4624
|
-
payButton: (
|
|
4642
|
+
payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
4625
4643
|
pinRequired: boolean;
|
|
4626
4644
|
expiryDateRequired?: boolean;
|
|
4627
4645
|
fieldsLayoutComponent: FunctionComponent<GiftcardFieldsProps>;
|
|
4628
4646
|
placeholders?: Placeholders$1;
|
|
4629
4647
|
handleKeyPress?: (o: KeyboardEvent) => void;
|
|
4648
|
+
onSubmitAnalytics?: (event: AbstractAnalyticsEvent) => void;
|
|
4630
4649
|
}
|
|
4631
4650
|
declare class Giftcard extends Component<GiftcardComponentProps> {
|
|
4632
4651
|
state: {
|
|
@@ -4705,7 +4724,7 @@ declare class GiftcardElement extends UIElement<GiftCardConfiguration> {
|
|
|
4705
4724
|
private handleOnRequiringConfirmation;
|
|
4706
4725
|
submit(): void;
|
|
4707
4726
|
private makeSubmitCall;
|
|
4708
|
-
payButton: (props:
|
|
4727
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
4709
4728
|
protected componentToRender(): h.JSX.Element;
|
|
4710
4729
|
}
|
|
4711
4730
|
|
|
@@ -4779,7 +4798,7 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4779
4798
|
method: string;
|
|
4780
4799
|
data?: any;
|
|
4781
4800
|
}) => void;
|
|
4782
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4801
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
4783
4802
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4784
4803
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4785
4804
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -4803,9 +4822,9 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4803
4822
|
name?: string;
|
|
4804
4823
|
icon?: string;
|
|
4805
4824
|
amount?: PaymentAmount;
|
|
4806
|
-
secondaryAmount?:
|
|
4825
|
+
secondaryAmount?: PaymentAmount;
|
|
4807
4826
|
showPayButton?: boolean;
|
|
4808
|
-
payButton?: (options:
|
|
4827
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
4809
4828
|
loadingContext?: string;
|
|
4810
4829
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4811
4830
|
clientKey?: string;
|
|
@@ -4910,7 +4929,7 @@ declare class BankTransferElement extends UIElement<BankTransferConfiguration> {
|
|
|
4910
4929
|
|
|
4911
4930
|
declare class Affirm extends OpenInvoiceContainer {
|
|
4912
4931
|
static type: TxVariants;
|
|
4913
|
-
formatProps(props:
|
|
4932
|
+
formatProps(props: OpenInvoiceConfiguration): any;
|
|
4914
4933
|
}
|
|
4915
4934
|
|
|
4916
4935
|
declare class PixElement extends QRLoaderContainer<PixConfiguration> {
|
|
@@ -4945,7 +4964,7 @@ declare class BacsElement extends UIElement<VoucherConfiguration> {
|
|
|
4945
4964
|
static type: TxVariants;
|
|
4946
4965
|
formatData(): BacsElementData;
|
|
4947
4966
|
get isValid(): boolean;
|
|
4948
|
-
payButton: (props:
|
|
4967
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
4949
4968
|
protected componentToRender(): h.JSX.Element;
|
|
4950
4969
|
}
|
|
4951
4970
|
|
|
@@ -4961,7 +4980,7 @@ declare class AddressElement extends UIElement<AddressConfiguration> {
|
|
|
4961
4980
|
interface PersonalDetailsConfiguration extends UIElementProps {
|
|
4962
4981
|
}
|
|
4963
4982
|
declare class PersonalDetailsElement extends UIElement<PersonalDetailsConfiguration> {
|
|
4964
|
-
static type
|
|
4983
|
+
static readonly type = TxVariants.personal_details;
|
|
4965
4984
|
protected beforeRender(configSetByMerchant?: PersonalDetailsConfiguration): void;
|
|
4966
4985
|
get data(): any;
|
|
4967
4986
|
get isValid(): boolean;
|
|
@@ -4983,7 +5002,7 @@ declare class KlarnaPayments extends UIElement<KlarnaConfiguration> {
|
|
|
4983
5002
|
type: string;
|
|
4984
5003
|
};
|
|
4985
5004
|
};
|
|
4986
|
-
payButton: (props:
|
|
5005
|
+
payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
4987
5006
|
handleAction(action: KlarnaAction, props?: {}): UIElement | null;
|
|
4988
5007
|
updateWithAction(action: KlarnaAction): void;
|
|
4989
5008
|
private onLoaded;
|
|
@@ -5007,7 +5026,7 @@ declare class TwintElement extends RedirectElement {
|
|
|
5007
5026
|
* Overrides RedirectElement default payButton behaviour to use label
|
|
5008
5027
|
* @param props - props
|
|
5009
5028
|
*/
|
|
5010
|
-
payButton: (props:
|
|
5029
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
5011
5030
|
}
|
|
5012
5031
|
|
|
5013
5032
|
declare class MealVoucherFRElement extends GiftcardElement {
|
|
@@ -5060,25 +5079,21 @@ declare class RatePayDirectDebit extends OpenInvoiceContainer {
|
|
|
5060
5079
|
|
|
5061
5080
|
/**
|
|
5062
5081
|
* For mobile:
|
|
5063
|
-
* We should show
|
|
5064
|
-
* If there is no apps, hide segmented controls.
|
|
5065
|
-
* The upi_collect should always be on the second tab.
|
|
5066
|
-
* Never show QR code.
|
|
5082
|
+
* We should show upi_intent depending on if `apps` are returned in /paymentMethods response.
|
|
5067
5083
|
*
|
|
5068
5084
|
* For non-mobile:
|
|
5069
5085
|
* We should never show the upi_intent (ignore `apps` in /paymentMethods response)
|
|
5070
|
-
*
|
|
5086
|
+
* Show upi_qr as default
|
|
5071
5087
|
*/
|
|
5072
5088
|
declare class UPI extends UIElement<UPIConfiguration> {
|
|
5073
5089
|
static type: TxVariants;
|
|
5074
|
-
static txVariants: TxVariants[];
|
|
5075
|
-
private
|
|
5090
|
+
static readonly txVariants: TxVariants[];
|
|
5091
|
+
private mode;
|
|
5076
5092
|
constructor(checkout: ICore, props: UPIConfiguration);
|
|
5077
5093
|
formatProps(props: UPIConfiguration): UPIConfiguration;
|
|
5078
5094
|
get isValid(): boolean;
|
|
5079
5095
|
formatData(): UpiPaymentData;
|
|
5080
5096
|
get paymentType(): UpiType;
|
|
5081
|
-
private onUpdateMode;
|
|
5082
5097
|
protected componentToRender(): h.JSX.Element;
|
|
5083
5098
|
}
|
|
5084
5099
|
|
|
@@ -5152,7 +5167,7 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
5152
5167
|
method: string;
|
|
5153
5168
|
data?: any;
|
|
5154
5169
|
}) => void;
|
|
5155
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
5170
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
5156
5171
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
5157
5172
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
5158
5173
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -5176,9 +5191,9 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
5176
5191
|
name?: string;
|
|
5177
5192
|
icon?: string;
|
|
5178
5193
|
amount?: PaymentAmount;
|
|
5179
|
-
secondaryAmount?:
|
|
5194
|
+
secondaryAmount?: PaymentAmount;
|
|
5180
5195
|
showPayButton?: boolean;
|
|
5181
|
-
payButton?: (options:
|
|
5196
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
5182
5197
|
loadingContext?: string;
|
|
5183
5198
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
5184
5199
|
clientKey?: string;
|
|
@@ -5225,7 +5240,7 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
5225
5240
|
method: string;
|
|
5226
5241
|
data?: any;
|
|
5227
5242
|
}) => void;
|
|
5228
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
5243
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
5229
5244
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
5230
5245
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
5231
5246
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -5249,9 +5264,9 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
5249
5264
|
name?: string;
|
|
5250
5265
|
icon?: string;
|
|
5251
5266
|
amount?: PaymentAmount;
|
|
5252
|
-
secondaryAmount?:
|
|
5267
|
+
secondaryAmount?: PaymentAmount;
|
|
5253
5268
|
showPayButton?: boolean;
|
|
5254
|
-
payButton?: (options:
|
|
5269
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
5255
5270
|
loadingContext?: string;
|
|
5256
5271
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
5257
5272
|
clientKey?: string;
|
|
@@ -5413,7 +5428,7 @@ declare class PayToElement extends UIElement<PayToConfiguration> {
|
|
|
5413
5428
|
method: string;
|
|
5414
5429
|
data?: any;
|
|
5415
5430
|
}) => void;
|
|
5416
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
5431
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
5417
5432
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
5418
5433
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
5419
5434
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -5438,9 +5453,9 @@ declare class PayToElement extends UIElement<PayToConfiguration> {
|
|
|
5438
5453
|
name?: string;
|
|
5439
5454
|
icon?: string;
|
|
5440
5455
|
amount?: PaymentAmount;
|
|
5441
|
-
secondaryAmount?:
|
|
5456
|
+
secondaryAmount?: PaymentAmount;
|
|
5442
5457
|
showPayButton?: boolean;
|
|
5443
|
-
payButton?: (options:
|
|
5458
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
5444
5459
|
loadingContext?: string;
|
|
5445
5460
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
5446
5461
|
clientKey?: string;
|
|
@@ -5493,7 +5508,7 @@ interface BaseEnrollmentProps {
|
|
|
5493
5508
|
type?: string;
|
|
5494
5509
|
txVariant: string;
|
|
5495
5510
|
registrationOptions?: string;
|
|
5496
|
-
payButton(props:
|
|
5511
|
+
payButton(props: PayButtonProps): h.JSX.Element;
|
|
5497
5512
|
setComponentRef?: (ref: any) => void;
|
|
5498
5513
|
/**
|
|
5499
5514
|
* Trigger when the await times out, receives error state or the biometrics verification fails.
|
|
@@ -5517,10 +5532,6 @@ interface IssuerListProps extends BaseEnrollmentProps {
|
|
|
5517
5532
|
interface PaymentProps extends IPayByBankPixAwait {
|
|
5518
5533
|
enrollmentId?: string;
|
|
5519
5534
|
initiationId?: string;
|
|
5520
|
-
amount: {
|
|
5521
|
-
value: number;
|
|
5522
|
-
currency: string;
|
|
5523
|
-
};
|
|
5524
5535
|
txVariant: string;
|
|
5525
5536
|
onPay: () => void;
|
|
5526
5537
|
onAuthorize: (authorizationOptions: string) => void;
|
|
@@ -5781,7 +5792,6 @@ declare const ComponentsMap: {
|
|
|
5781
5792
|
payto: typeof PayToElement;
|
|
5782
5793
|
upi: typeof UPI;
|
|
5783
5794
|
upi_qr: typeof UPI;
|
|
5784
|
-
upi_collect: typeof UPI;
|
|
5785
5795
|
upi_intent: typeof UPI;
|
|
5786
5796
|
/** Await */
|
|
5787
5797
|
/** Giftcard */
|
|
@@ -5914,6 +5924,7 @@ type onOrderCancelType = (data: onOrderCancelData, actions: {
|
|
|
5914
5924
|
interface DropinComponentProps extends DropinConfiguration {
|
|
5915
5925
|
core: ICore;
|
|
5916
5926
|
onCreateElements(): any;
|
|
5927
|
+
onElementsCreated(elements: UIElement[]): void;
|
|
5917
5928
|
onOrderCancel?: onOrderCancelType;
|
|
5918
5929
|
}
|
|
5919
5930
|
interface DropinStatus {
|
|
@@ -5949,8 +5960,8 @@ interface IDropin {
|
|
|
5949
5960
|
}
|
|
5950
5961
|
|
|
5951
5962
|
declare class Session {
|
|
5952
|
-
private readonly session;
|
|
5953
5963
|
private readonly storage;
|
|
5964
|
+
readonly session: CheckoutSession;
|
|
5954
5965
|
readonly clientKey: string;
|
|
5955
5966
|
readonly loadingContext: string;
|
|
5956
5967
|
configuration: SessionConfiguration;
|
|
@@ -6003,7 +6014,9 @@ declare class Session {
|
|
|
6003
6014
|
interface ICore {
|
|
6004
6015
|
initialize(): Promise<ICore>;
|
|
6005
6016
|
register(...items: NewableComponent[]): void;
|
|
6006
|
-
update(
|
|
6017
|
+
update(props: Partial<CoreConfiguration>, options?: {
|
|
6018
|
+
shouldReinitializeCheckout?: boolean;
|
|
6019
|
+
}): Promise<ICore>;
|
|
6007
6020
|
remove(component: any): ICore;
|
|
6008
6021
|
submitDetails(details: AdditionalDetailsData['data']): void;
|
|
6009
6022
|
getCorePropsForComponent(): any;
|
|
@@ -6118,11 +6131,11 @@ interface CoreConfiguration {
|
|
|
6118
6131
|
/**
|
|
6119
6132
|
* Amount of the payment
|
|
6120
6133
|
*/
|
|
6121
|
-
amount?:
|
|
6134
|
+
amount?: PaymentAmount;
|
|
6122
6135
|
/**
|
|
6123
6136
|
* Secondary amount of the payment - alternative currency & value converted according to rate
|
|
6124
6137
|
*/
|
|
6125
|
-
secondaryAmount?:
|
|
6138
|
+
secondaryAmount?: PaymentAmount;
|
|
6126
6139
|
/**
|
|
6127
6140
|
* The shopper's country code. A valid value is an ISO two-character country code (e.g. 'NL').
|
|
6128
6141
|
*/
|
|
@@ -6172,7 +6185,7 @@ interface CoreConfiguration {
|
|
|
6172
6185
|
* @param component
|
|
6173
6186
|
* @param actions
|
|
6174
6187
|
*/
|
|
6175
|
-
beforeSubmit?(state: PaymentData, component: UIElement, actions: BeforeSubmitActions): void;
|
|
6188
|
+
beforeSubmit?(state: PaymentData, component: UIElement, actions: BeforeSubmitActions): Promise<void> | void;
|
|
6176
6189
|
/**
|
|
6177
6190
|
* Called when the payment succeeds.
|
|
6178
6191
|
*
|
|
@@ -6346,11 +6359,19 @@ declare abstract class BaseElement<P extends BaseElementProps> implements IBaseE
|
|
|
6346
6359
|
remove(): void;
|
|
6347
6360
|
}
|
|
6348
6361
|
|
|
6362
|
+
interface AmountProviderRef {
|
|
6363
|
+
update(newAmount: PaymentAmount, newSecondaryAmount?: PaymentAmount): void;
|
|
6364
|
+
}
|
|
6365
|
+
|
|
6349
6366
|
declare abstract class UIElement<P extends UIElementProps = UIElementProps> extends BaseElement<P> {
|
|
6350
6367
|
protected componentRef: any;
|
|
6351
6368
|
protected resources: Resources;
|
|
6352
6369
|
elementRef: UIElement;
|
|
6353
6370
|
static type: any;
|
|
6371
|
+
/**
|
|
6372
|
+
* Reference to the methods exposed by the AmountProvider context
|
|
6373
|
+
*/
|
|
6374
|
+
protected amountProviderRef: RefObject<AmountProviderRef>;
|
|
6354
6375
|
/**
|
|
6355
6376
|
* Defines all txVariants that the Component supports (in case it support multiple ones besides the 'type' one)
|
|
6356
6377
|
*/
|
|
@@ -6382,6 +6403,15 @@ declare abstract class UIElement<P extends UIElementProps = UIElementProps> exte
|
|
|
6382
6403
|
isAvailable(): Promise<void>;
|
|
6383
6404
|
setState(newState: object): void;
|
|
6384
6405
|
showValidation(): this;
|
|
6406
|
+
/**
|
|
6407
|
+
* Updates the amount in the props and propagates it to the AmountProvider.
|
|
6408
|
+
* This allows children components to access the updated amount via context.
|
|
6409
|
+
*
|
|
6410
|
+
* @param amount - Primary payment amount object
|
|
6411
|
+
* @param secondaryAmount - Optional secondary amount for display purposes (e.g., converted currency)
|
|
6412
|
+
* @internal
|
|
6413
|
+
*/
|
|
6414
|
+
updateAmount(amount: PaymentAmount, secondaryAmount?: PaymentAmount): void;
|
|
6385
6415
|
/**
|
|
6386
6416
|
* elementRef is a ref to the subclass that extends UIElement e.g. Card.tsx
|
|
6387
6417
|
*/
|
|
@@ -6464,7 +6494,7 @@ declare abstract class UIElement<P extends UIElementProps = UIElementProps> exte
|
|
|
6464
6494
|
/**
|
|
6465
6495
|
* Get the payButton component for the current element
|
|
6466
6496
|
*/
|
|
6467
|
-
protected payButton: (props:
|
|
6497
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
6468
6498
|
/**
|
|
6469
6499
|
* Used in the Partial Orders flow.
|
|
6470
6500
|
* When the Order is updated, the merchant can request new payment methods based on the new remaining amount
|
|
@@ -6641,18 +6671,22 @@ interface ProcessedPaymentStatusResponse {
|
|
|
6641
6671
|
type: string;
|
|
6642
6672
|
props?: Record<string, any>;
|
|
6643
6673
|
}
|
|
6644
|
-
/**
|
|
6645
|
-
* {@link https://docs.adyen.com/api-explorer/#/PaymentSetupAndVerificationService/v52/payments__reqParam_amount API Explorer /payments amount}
|
|
6646
|
-
*/
|
|
6647
6674
|
interface PaymentAmount {
|
|
6675
|
+
/**
|
|
6676
|
+
* The payment amount in minor units for the specified `currency`.
|
|
6677
|
+
*/
|
|
6648
6678
|
value: number;
|
|
6679
|
+
/**
|
|
6680
|
+
* The 3-letter ISO 4217 currency code.
|
|
6681
|
+
*/
|
|
6649
6682
|
currency: string;
|
|
6650
|
-
}
|
|
6651
|
-
interface PaymentAmountExtended extends PaymentAmount {
|
|
6652
6683
|
/**
|
|
6653
|
-
*
|
|
6654
|
-
*
|
|
6655
|
-
*
|
|
6684
|
+
* Influences how the currency is displayed on the pay button.
|
|
6685
|
+
*
|
|
6686
|
+
* This maps to `Intl.NumberFormat`'s `currencyDisplay` option (for example, `"symbol"`, `"code"`, `"name"`, `"narrowSymbol"`).
|
|
6687
|
+
*
|
|
6688
|
+
* @default 'symbol'
|
|
6689
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currencydisplay
|
|
6656
6690
|
*/
|
|
6657
6691
|
currencyDisplay?: string;
|
|
6658
6692
|
}
|
|
@@ -7264,7 +7298,7 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
7264
7298
|
get displayName(): string;
|
|
7265
7299
|
get accessibleName(): string;
|
|
7266
7300
|
get browserInfo(): BrowserInfo;
|
|
7267
|
-
protected payButton: (props:
|
|
7301
|
+
protected payButton: (props: PayButtonProps) => h.JSX.Element;
|
|
7268
7302
|
private renderCardInput;
|
|
7269
7303
|
protected componentToRender(): h.JSX.Element;
|
|
7270
7304
|
}
|
|
@@ -7336,7 +7370,7 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
7336
7370
|
method: string;
|
|
7337
7371
|
data?: any;
|
|
7338
7372
|
}) => void;
|
|
7339
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
7373
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
7340
7374
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
7341
7375
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
7342
7376
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -7360,9 +7394,9 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
7360
7394
|
name?: string;
|
|
7361
7395
|
icon?: string;
|
|
7362
7396
|
amount?: PaymentAmount;
|
|
7363
|
-
secondaryAmount?:
|
|
7397
|
+
secondaryAmount?: PaymentAmount;
|
|
7364
7398
|
showPayButton?: boolean;
|
|
7365
|
-
payButton?: (options:
|
|
7399
|
+
payButton?: (options: PayButtonProps) => preact.JSX.Element;
|
|
7366
7400
|
loadingContext?: string;
|
|
7367
7401
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
7368
7402
|
clientKey?: string;
|
|
@@ -7383,6 +7417,10 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
7383
7417
|
* Reference to the component created from `handleAction` (Ex.: ThreeDS2Challenge)
|
|
7384
7418
|
*/
|
|
7385
7419
|
componentFromAction?: UIElement;
|
|
7420
|
+
/**
|
|
7421
|
+
* Reference to all payment method elements being rendered by Drop-in
|
|
7422
|
+
*/
|
|
7423
|
+
paymentMethodElements: UIElement[];
|
|
7386
7424
|
constructor(checkout: ICore, props?: DropinConfiguration);
|
|
7387
7425
|
protected reportIntegrationFlavor(): void;
|
|
7388
7426
|
protected storeElementRefOnCore(): void;
|
|
@@ -7421,7 +7459,7 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
7421
7459
|
method: string;
|
|
7422
7460
|
data?: any;
|
|
7423
7461
|
}) => void;
|
|
7424
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
7462
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => Promise<void> | void;
|
|
7425
7463
|
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
7426
7464
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
7427
7465
|
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
@@ -7446,9 +7484,9 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
7446
7484
|
name?: string;
|
|
7447
7485
|
icon?: string;
|
|
7448
7486
|
amount?: PaymentAmount;
|
|
7449
|
-
secondaryAmount?:
|
|
7487
|
+
secondaryAmount?: PaymentAmount;
|
|
7450
7488
|
showPayButton?: boolean;
|
|
7451
|
-
payButton?: (options:
|
|
7489
|
+
payButton?: (options: PayButtonProps) => h.JSX.Element;
|
|
7452
7490
|
loadingContext?: string;
|
|
7453
7491
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
7454
7492
|
clientKey?: string;
|
|
@@ -7468,6 +7506,21 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
7468
7506
|
* Calls the onSubmit event with the state of the activePaymentMethod
|
|
7469
7507
|
*/
|
|
7470
7508
|
submit(): void;
|
|
7509
|
+
/**
|
|
7510
|
+
* Updates the amount in the props and propagates it to the AmountProvider. That way the children components can use the updated amount.
|
|
7511
|
+
*
|
|
7512
|
+
* This method **overrides** the parent one to specifically propagate the changes to all payment method elements.
|
|
7513
|
+
*
|
|
7514
|
+
* @param amount - Primary payment amount object
|
|
7515
|
+
* @param secondaryAmount - Optional secondary amount for display purposes (e.g., converted currency)
|
|
7516
|
+
* @internal
|
|
7517
|
+
*/
|
|
7518
|
+
updateAmount(amount: PaymentAmount, secondaryAmount?: PaymentAmount): void;
|
|
7519
|
+
/**
|
|
7520
|
+
* Assign all elements created in the Component to the paymentMethodElements property
|
|
7521
|
+
* @param elements
|
|
7522
|
+
*/
|
|
7523
|
+
private handleElementsCreated;
|
|
7471
7524
|
/**
|
|
7472
7525
|
* Creates the Drop-in elements
|
|
7473
7526
|
*/
|
|
@@ -7749,10 +7802,21 @@ declare class Core implements ICore {
|
|
|
7749
7802
|
/**
|
|
7750
7803
|
* Updates global configurations, resets the internal state and remounts each element.
|
|
7751
7804
|
*
|
|
7752
|
-
* @param
|
|
7753
|
-
* @
|
|
7805
|
+
* @param props - props to update
|
|
7806
|
+
* @param options - Can be used to avoid remounting the elements
|
|
7807
|
+
* @returns this - the Core instance
|
|
7808
|
+
*/
|
|
7809
|
+
update(props?: Partial<CoreConfiguration>, { shouldReinitializeCheckout }?: {
|
|
7810
|
+
shouldReinitializeCheckout?: boolean;
|
|
7811
|
+
}): Promise<this>;
|
|
7812
|
+
/**
|
|
7813
|
+
* Validates and propagates amount updates to all mounted components.
|
|
7814
|
+
*
|
|
7815
|
+
* @param amount - Primary payment amount object (required)
|
|
7816
|
+
* @param secondaryAmount - Optional secondary amount for display purposes (e.g., converted currency)
|
|
7817
|
+
* @internal
|
|
7754
7818
|
*/
|
|
7755
|
-
|
|
7819
|
+
private triggerAmountUpdate;
|
|
7756
7820
|
/**
|
|
7757
7821
|
* Remove the reference of a component
|
|
7758
7822
|
* @param component - reference to the component to be removed
|
|
@@ -7787,4 +7851,4 @@ declare namespace AdyenCheckout {
|
|
|
7787
7851
|
}
|
|
7788
7852
|
|
|
7789
7853
|
export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, AdyenCheckout, AdyenCheckoutError, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, Atome, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, BankTransferElement as BankTransfer, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, BlikElement as Blik, BoletoElement as Boleto, CardElement as Card, CashAppPay, ClickToPayElement as ClickToPay, Core, CustomCard, DokuElement as Doku, DonationElement as Donation, DotpayElement as Dotpay, DragonpayElement as Dragonpay, DropinElement as Dropin, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, Fastlane, FastlaneSDK, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, Iris, IrisMode, KlarnaPayments as Klarna, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, OxxoElement as Oxxo, PayByBank, PayByBankPixElement as PayByBankPix, PayByBankUS, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, PayToElement as PayTo, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, PixElement as Pix, PreAuthorizedDebitCanada, PromptPayElement as PromptPay, RatePay, RatePayDirectDebit, RedirectElement as Redirect, Riverty, SepaElement as SepaDirectDebit, SwishElement as Swish, ThreeDS2Challenge, ThreeDS2DeviceFingerprint, TrustlyElement as Trustly, TwintElement as Twint, UIElement, UPI, VippsElement as Vipps, WalletINElement as WalletIN, WeChatPayElement as WeChat, index_d as components, initializeFastlane };
|
|
7790
|
-
export type { ANCVConfiguration, ANCVDataState, AchConfiguration, AchPlaceholders, ActionDescriptionType, ActionHandledReturnObject, AdditionalDetailsActions, AdditionalDetailsData, AddressData, AddressField, AmazonPayBackendConfiguration, AmazonPayButtonProps, AmazonPayButtonSettings, AmazonPayComponentProps, AmazonPayConfiguration, AmazonPayElementData, App, ApplePayButtonStyle, ApplePayButtonType, ApplePayConfiguration, ApplePayElementData, ApplePayPaymentAuthorizationResult, ApplePayPaymentOrderDetails, ApplePaySessionRequest, ApplePayWebConfiguration, AwaitComponentProps, AwaitConfiguration, BankDetailsSchema, BankTransferConfiguration, BankTransferSchema, BankTransferState, BeforeSubmitActions, BinLookupResponse, BinLookupResponseRaw, BoletoConfiguration, BoletoElementProps, BoletoInputDataState, BoletoInputErrorState, BoletoInputValidState, BrandConfiguration, BrandObject, BrowserInfo, CReqData, CardAllValidData, CardAutoCompleteData, CardBackendConfiguration, CardBinLookupData, CardBinValueData, CardBrandData, CardBrandsConfiguration, CardConfigSuccessData, CardConfiguration, CardElementData, CardErrorData, CardFieldValidData, CardFocusData, CardLoadData, CardPlaceholders, CashAppPayConfiguration, CashAppPayElementData, CashAppPayEventData, ChallengeData, ChallengeResolveData, ChallengeWindowSize, ChangeActionOptions, ChangePaymentDetailsButtonProps, ChargeAmount, CheckoutAdvancedFlowResponse, CheckoutDetailsRequest, CheckoutSessionConfig, ClickToPayConfiguration, ClickToPayPaymentData, ClickToPayProps, ClickToPayScheme, CommonVoucherProps, ComponentFocusObject, ComponentMethodsRef, CoreConfiguration, CoreModules, Currency, CustomCardConfiguration, CustomTranslations, DecodeObject, DeliverySpecifications, DokuVoucherResultProps, DonationConfiguration, DragonpayConfiguraton, DragonpayInputData, DragonpayInputIssuerItem, DragonpayInputProps, DragonpayVoucherResultProps, DropinComponentProps, DropinComponentState, DropinConfiguration, DropinStatus, DropinStatusProps, DualBrandSelectElement, EcontextConfiguration, EcontextInputSchema, EcontextVoucherResultProps, ErrorCodeObject, ExtendedMerchantInfo, FastlaneAddress, FastlaneAuthenticatedCustomerResult, FastlaneConfiguration, FastlaneConsentRenderState, FastlaneOptions, FastlanePaymentMethodConfiguration, FastlaneProfile, FastlaneSDKConfiguration, FastlaneShipping, FastlaneShippingAddressSelectorResult, FastlaneSignupConfiguration, FastlaneWindowInstance, FieldsetVisibility, FingerPrintData, FingerprintResolveData, FundingSource, GiftCardBalanceCheckErrorType, GiftCardConfiguration, GiftCardElementData, GiftCardValidationError, GooglePayConfiguration, GooglePaymentDataRequest, ICore, IDropin, InstantPaymentTypes, Intent, IrisConfiguration, IrisData, IssuerListConfiguration, IssuerListData, KlarnaAction, KlarnaAdditionalDetailsData, KlarnaComponentRef, KlarnaConfiguration, KlarnaSdkData, KlarnaWidgetAuthorizeResponse, KlarnaWidgetProps, LedgerCurrencies, LegacyChallengeResolveData, LegacyFingerprintResolveData, MandateFrequencyType, MandateType, MultibancoVoucherResultProps, OnChangeData, OpenInvoiceActiveFieldsets, OpenInvoiceConfiguration, OpenInvoiceFieldsetsRefs, OpenInvoiceProps, OpenInvoiceStateData, OpenInvoiceStateError, OpenInvoiceStateValid, OpenInvoiceVisibility, Order, OrderButtonProps, OrderStatus, OxxoVoucherResultProps,
|
|
7854
|
+
export type { ANCVConfiguration, ANCVDataState, AchConfiguration, AchPlaceholders, ActionDescriptionType, ActionHandledReturnObject, AdditionalDetailsActions, AdditionalDetailsData, AddressData, AddressField, AmazonPayBackendConfiguration, AmazonPayButtonProps, AmazonPayButtonSettings, AmazonPayComponentProps, AmazonPayConfiguration, AmazonPayElementData, App, ApplePayButtonStyle, ApplePayButtonType, ApplePayConfiguration, ApplePayElementData, ApplePayPaymentAuthorizationResult, ApplePayPaymentOrderDetails, ApplePaySessionRequest, ApplePayWebConfiguration, AwaitComponentProps, AwaitConfiguration, BankDetailsSchema, BankTransferConfiguration, BankTransferSchema, BankTransferState, BeforeSubmitActions, BinLookupResponse, BinLookupResponseRaw, BoletoConfiguration, BoletoElementProps, BoletoInputDataState, BoletoInputErrorState, BoletoInputValidState, BrandConfiguration, BrandObject, BrowserInfo, CReqData, CardAllValidData, CardAutoCompleteData, CardBackendConfiguration, CardBinLookupData, CardBinValueData, CardBrandData, CardBrandsConfiguration, CardConfigSuccessData, CardConfiguration, CardElementData, CardErrorData, CardFieldValidData, CardFocusData, CardLoadData, CardPlaceholders, CashAppPayConfiguration, CashAppPayElementData, CashAppPayEventData, ChallengeData, ChallengeResolveData, ChallengeWindowSize, ChangeActionOptions, ChangePaymentDetailsButtonProps, ChargeAmount, CheckoutAdvancedFlowResponse, CheckoutDetailsRequest, CheckoutSession, CheckoutSessionConfig, ClickToPayConfiguration, ClickToPayPaymentData, ClickToPayProps, ClickToPayScheme, CommonVoucherProps, ComponentFocusObject, ComponentMethodsRef, CoreConfiguration, CoreModules, Currency, CustomCardConfiguration, CustomTranslations, DecodeObject, DeliverySpecifications, DokuVoucherResultProps, DonationConfiguration, DragonpayConfiguraton, DragonpayInputData, DragonpayInputIssuerItem, DragonpayInputProps, DragonpayVoucherResultProps, DropinComponentProps, DropinComponentState, DropinConfiguration, DropinStatus, DropinStatusProps, DualBrandSelectElement, EcontextConfiguration, EcontextInputSchema, EcontextVoucherResultProps, ErrorCodeObject, ExtendedMerchantInfo, FastlaneAddress, FastlaneAuthenticatedCustomerResult, FastlaneConfiguration, FastlaneConsentRenderState, FastlaneOptions, FastlanePaymentMethodConfiguration, FastlaneProfile, FastlaneSDKConfiguration, FastlaneShipping, FastlaneShippingAddressSelectorResult, FastlaneSignupConfiguration, FastlaneWindowInstance, FieldsetVisibility, FingerPrintData, FingerprintResolveData, FundingSource, GiftCardBalanceCheckErrorType, GiftCardConfiguration, GiftCardElementData, GiftCardValidationError, GooglePayConfiguration, GooglePaymentDataRequest, ICore, IDropin, InstantPaymentTypes, Intent, IrisConfiguration, IrisData, IssuerListConfiguration, IssuerListData, KlarnaAction, KlarnaAdditionalDetailsData, KlarnaComponentRef, KlarnaConfiguration, KlarnaSdkData, KlarnaWidgetAuthorizeResponse, KlarnaWidgetProps, LedgerCurrencies, LegacyChallengeResolveData, LegacyFingerprintResolveData, MandateFrequencyType, MandateType, MultibancoVoucherResultProps, OnChangeData, OpenInvoiceActiveFieldsets, OpenInvoiceConfiguration, OpenInvoiceFieldsetsRefs, OpenInvoiceProps, OpenInvoiceStateData, OpenInvoiceStateError, OpenInvoiceStateValid, OpenInvoiceVisibility, Order, OrderButtonProps, OrderStatus, OxxoVoucherResultProps, PayPalConfiguration, PayToConfiguration, PayToData, PayToPlaceholdersType, PayloadJSON, PaymentAction, PaymentActionsType, PaymentAmount, PaymentCompletedData, PaymentData, PaymentFailedData, PaymentMethodData, PaymentMethodGroup, PaymentMethodOptions, PaymentMethods, PaymentMethodsConfiguration, PaymentMethodsRequestData, PaymentMethodsResponse, PaymentResponseData, PersonalDetailsSchema, PixConfiguration, PixElementData, PostMsgParseErrorObject, PreAuthorizedDebitCanadaConfiguration, PreAuthorizedDebitCanadaPlaceholders, ProcessedPaymentStatusResponse, QRLoaderConfiguration, RawPaymentMethod, RawPaymentResponse, RawPaymentStatusResponse, RawStoredPaymentMethod, RecurringMetadata, RedirectConfiguration, Region, ResultCode, ResultObject, ResultValue, SepaConfiguration, SepaElementData, SessionsResponse, SignOutButtonProps, SocialSecurityMode, StatusFromAction, SubmitActions, SubmitData, SupportedLocale, ThreeDS2ActionProps, ThreeDS2ChallengeConfiguration, ThreeDS2ConfigProps, ThreeDS2DeviceFingerprintConfiguration, ThreeDS2FingerprintResponse, ThreeDS2FlowObject, ThreeDS2FlowProps, ThreeDS2Token, UIElementProps, UIElementStatus, UPIConfiguration, UpdateAmazonCheckoutSessionRequest, UpiMode, UpiPaymentData, UpiType, ValidationError, VoucherConfiguration, VoucherDetail, VoucherProps, balanceCheckResponseType, onBalanceCheckCallbackType, onOrderCancelData, onOrderCancelType, onOrderRequestCallbackType, onRequiringConfirmationCallbackType };
|