@adyen/adyen-web 6.0.0-beta.1 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/cjs/adyen.css +9 -5
- 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 +802 -849
- package/dist/es/adyen.css +9 -5
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/components/ANCV/ANCV.js +1 -1
- package/dist/es/components/ANCV/ANCV.js.map +1 -1
- package/dist/es/components/Ach/components/AchInput/components/AchSFInput.js +1 -1
- package/dist/es/components/Ach/components/AchInput/components/AchSFInput.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/CVC.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/CVC.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardNumber.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardNumber.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/ExpirationDate.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/ExpirationDate.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/{IframeLabelAlternative.js → FieldLabelAlternative.js} +1 -1
- package/dist/es/components/Card/components/CardInput/components/FieldLabelAlternative.js.map +1 -0
- 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/KCPAuthentication.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/KCPAuthentication.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/defaultProps.js +1 -1
- package/dist/es/components/Card/components/CardInput/defaultProps.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/Donation/components/CampaignContent.js +1 -1
- package/dist/es/components/Donation/components/CampaignContent.js.map +1 -1
- package/dist/es/components/Donation/components/DonationComponent.js +1 -1
- package/dist/es/components/Donation/components/DonationComponent.js.map +1 -1
- package/dist/es/components/Donation/components/FixedAmounts.js +2 -0
- package/dist/es/components/Donation/components/FixedAmounts.js.map +1 -0
- package/dist/es/components/Donation/components/Roundup.js +2 -0
- package/dist/es/components/Donation/components/Roundup.js.map +1 -0
- package/dist/es/components/Donation/components/utils.js +2 -0
- package/dist/es/components/Donation/components/utils.js.map +1 -0
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodItem/PaymentMethodItem.js +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodItem/PaymentMethodItem.js.map +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodList.js +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodList.js.map +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js.map +1 -1
- package/dist/es/components/Dropin/elements/createElements.js +1 -1
- package/dist/es/components/Dropin/elements/createElements.js.map +1 -1
- package/dist/es/components/Dropin/elements/filters.js +1 -1
- package/dist/es/components/Dropin/elements/filters.js.map +1 -1
- package/dist/es/components/Giftcard/Giftcard.js.map +1 -1
- package/dist/es/components/Giftcard/components/GiftcardNumberField.js +1 -1
- package/dist/es/components/Giftcard/components/GiftcardNumberField.js.map +1 -1
- package/dist/es/components/Giftcard/components/GiftcardPinField.js +1 -1
- package/dist/es/components/Giftcard/components/GiftcardPinField.js.map +1 -1
- package/dist/es/components/GooglePay/GooglePay.js +1 -1
- package/dist/es/components/GooglePay/GooglePay.js.map +1 -1
- package/dist/es/components/GooglePay/components/GooglePayButton.js +1 -1
- package/dist/es/components/GooglePay/components/GooglePayButton.js.map +1 -1
- package/dist/es/components/MealVoucherFR/components/MealVoucherExpiryField.js +1 -1
- package/dist/es/components/MealVoucherFR/components/MealVoucherExpiryField.js.map +1 -1
- package/dist/es/components/PayPal/Paypal.js +1 -1
- package/dist/es/components/PayPal/Paypal.js.map +1 -1
- package/dist/es/components/PayPal/components/PaypalComponent.js +1 -1
- package/dist/es/components/PayPal/components/PaypalComponent.js.map +1 -1
- package/dist/es/components/ThreeDS2/ThreeDS2Challenge.js +1 -1
- package/dist/es/components/ThreeDS2/ThreeDS2Challenge.js.map +1 -1
- package/dist/es/components/ThreeDS2/ThreeDS2DeviceFingerprint.js +1 -1
- package/dist/es/components/ThreeDS2/ThreeDS2DeviceFingerprint.js.map +1 -1
- package/dist/es/components/ThreeDS2/callSubmit3DS2Fingerprint.js +1 -1
- package/dist/es/components/ThreeDS2/callSubmit3DS2Fingerprint.js.map +1 -1
- package/dist/es/components/ThreeDS2/components/utils.js +1 -1
- package/dist/es/components/ThreeDS2/components/utils.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/UPIComponent/constants.js +2 -0
- package/dist/es/components/UPI/components/UPIComponent/constants.js.map +1 -0
- package/dist/es/components/UPI/components/UPIComponent/useUpiSegmentedControlOptions.js +2 -0
- package/dist/es/components/UPI/components/UPIComponent/useUpiSegmentedControlOptions.js.map +1 -0
- package/dist/es/components/UPI/components/UPIIntentAppList/UPIIntentAppItem/UPIIntentAppItem.js +2 -0
- package/dist/es/components/UPI/components/UPIIntentAppList/UPIIntentAppItem/UPIIntentAppItem.js.map +1 -0
- package/dist/es/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js +2 -0
- package/dist/es/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js.map +1 -0
- package/dist/es/components/UPI/components/VpaInput/VpaInput.js +1 -1
- package/dist/es/components/UPI/components/VpaInput/VpaInput.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/components/ReadOnlyAddress.js +1 -1
- package/dist/es/components/internal/Address/components/ReadOnlyAddress.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/Countdown/index.js +1 -1
- package/dist/es/components/internal/Countdown/index.js.map +1 -1
- package/dist/es/components/internal/DisclaimerMessage/DisclaimerMessage.js +1 -1
- package/dist/es/components/internal/DisclaimerMessage/DisclaimerMessage.js.map +1 -1
- package/dist/es/components/internal/ExpandButton/ExpandButton.js +2 -0
- package/dist/es/components/internal/ExpandButton/ExpandButton.js.map +1 -0
- package/dist/es/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.js +1 -1
- package/dist/es/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.js.map +1 -1
- package/dist/es/components/internal/FormFields/Field/Field.js +1 -1
- package/dist/es/components/internal/FormFields/Field/Field.js.map +1 -1
- package/dist/es/components/internal/FormFields/RadioGroup/RadioGroup.js +1 -1
- package/dist/es/components/internal/FormFields/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/es/components/internal/FormFields/Select/Select.js +1 -1
- package/dist/es/components/internal/FormFields/Select/Select.js.map +1 -1
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +1 -1
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/handleEncryption.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/handleEncryption.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/handleValidation.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/handleValidation.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/initCSF.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/initCSF.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/partials/processBrand.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/partials/processBrand.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/getCardGroupTypes.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/getCardGroupTypes.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/SecuredField.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/SecuredField.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/utilities/commonUtils.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/utilities/commonUtils.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/utils.js +1 -1
- package/dist/es/components/internal/SecuredFields/utils.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/analyticsPreProcessor.js +1 -1
- package/dist/es/core/Analytics/analyticsPreProcessor.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/Environment/constants.js +1 -1
- package/dist/es/core/Environment/constants.js.map +1 -1
- package/dist/es/core/RiskModule/RiskModule.js +1 -1
- package/dist/es/core/RiskModule/RiskModule.js.map +1 -1
- package/dist/es/core/Services/analytics/collect-id.js +1 -1
- package/dist/es/core/Services/analytics/collect-id.js.map +1 -1
- package/dist/es/core/Services/get-translations.js +1 -1
- package/dist/es/core/Services/get-translations.js.map +1 -1
- package/dist/es/core/config.js +1 -1
- package/dist/es/core/config.js.map +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/core/core.js.map +1 -1
- package/dist/es/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 +802 -849
- package/dist/es/language/constants.js +1 -1
- package/dist/es/language/constants.js.map +1 -1
- package/dist/es/utils/amount-util.js.map +1 -1
- package/dist/es/utils/commonUtils.js +2 -0
- package/dist/es/utils/commonUtils.js.map +1 -0
- package/dist/es-legacy/adyen.css +9 -5
- package/dist/es-legacy/adyen.css.map +1 -1
- package/dist/es-legacy/components/ANCV/ANCV.js +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/AchInput/AchInput.js +1 -1
- package/dist/es-legacy/components/Ach/components/AchInput/AchInput.js.map +1 -1
- package/dist/es-legacy/components/Ach/components/AchInput/components/AchSFInput.js +1 -1
- package/dist/es-legacy/components/Ach/components/AchInput/components/AchSFInput.js.map +1 -1
- package/dist/es-legacy/components/Address/Address.js +1 -1
- package/dist/es-legacy/components/Address/Address.js.map +1 -1
- package/dist/es-legacy/components/Affirm/Affirm.js +1 -1
- package/dist/es-legacy/components/Affirm/Affirm.js.map +1 -1
- package/dist/es-legacy/components/AfterPay/AfterPay.js +1 -1
- package/dist/es-legacy/components/AfterPay/AfterPay.js.map +1 -1
- package/dist/es-legacy/components/AfterPay/AfterPayB2B.js +1 -1
- package/dist/es-legacy/components/AfterPay/AfterPayB2B.js.map +1 -1
- package/dist/es-legacy/components/AmazonPay/AmazonPay.js +1 -1
- package/dist/es-legacy/components/AmazonPay/AmazonPay.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/utils.js +1 -1
- package/dist/es-legacy/components/AmazonPay/utils.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/ApplePay.js +1 -1
- package/dist/es-legacy/components/ApplePay/ApplePay.js.map +1 -1
- package/dist/es-legacy/components/Atome/Atome.js +1 -1
- package/dist/es-legacy/components/Atome/Atome.js.map +1 -1
- package/dist/es-legacy/components/Atome/config.js +1 -1
- package/dist/es-legacy/components/Atome/config.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/BankTransfer/BankTransfer.js +1 -1
- package/dist/es-legacy/components/BankTransfer/BankTransfer.js.map +1 -1
- package/dist/es-legacy/components/BillDesk/BillDeskOnline.js +1 -1
- package/dist/es-legacy/components/BillDesk/BillDeskOnline.js.map +1 -1
- package/dist/es-legacy/components/BillDesk/BillDeskWallet.js +1 -1
- package/dist/es-legacy/components/BillDesk/BillDeskWallet.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/Boleto.js +1 -1
- package/dist/es-legacy/components/Boleto/Boleto.js.map +1 -1
- package/dist/es-legacy/components/Boleto/components/BoletoInput/BoletoInput.js +1 -1
- package/dist/es-legacy/components/Boleto/components/BoletoInput/BoletoInput.js.map +1 -1
- package/dist/es-legacy/components/Card/Bancontact.js +1 -1
- package/dist/es-legacy/components/Card/Bancontact.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/CVC.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CVC.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardNumber.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardNumber.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/ExpirationDate.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/ExpirationDate.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/FieldLabelAlternative.js +2 -0
- package/dist/es-legacy/components/Card/components/CardInput/components/FieldLabelAlternative.js.map +1 -0
- 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/KCPAuthentication.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/KCPAuthentication.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/StoredCardFields.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/StoredCardFields.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/defaultProps.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/defaultProps.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/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/Doku.js +1 -1
- package/dist/es-legacy/components/Doku/Doku.js.map +1 -1
- package/dist/es-legacy/components/Donation/Donation.js +1 -1
- package/dist/es-legacy/components/Donation/Donation.js.map +1 -1
- package/dist/es-legacy/components/Donation/components/CampaignContent.js +1 -1
- package/dist/es-legacy/components/Donation/components/CampaignContent.js.map +1 -1
- package/dist/es-legacy/components/Donation/components/DonationComponent.js +1 -1
- package/dist/es-legacy/components/Donation/components/DonationComponent.js.map +1 -1
- package/dist/es-legacy/components/Donation/components/FixedAmounts.js +2 -0
- package/dist/es-legacy/components/Donation/components/FixedAmounts.js.map +1 -0
- package/dist/es-legacy/components/Donation/components/Roundup.js +2 -0
- package/dist/es-legacy/components/Donation/components/Roundup.js.map +1 -0
- package/dist/es-legacy/components/Donation/components/utils.js +2 -0
- package/dist/es-legacy/components/Donation/components/utils.js.map +1 -0
- package/dist/es-legacy/components/Dragonpay/Dragonpay.js +1 -1
- package/dist/es-legacy/components/Dragonpay/Dragonpay.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/PaymentMethod/PaymentMethodItem/PaymentMethodItem.js +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodItem/PaymentMethodItem.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodList.js +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodList.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodsContainer.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/createElements.js +1 -1
- package/dist/es-legacy/components/Dropin/elements/createElements.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/createInstantPaymentElements.js +1 -1
- package/dist/es-legacy/components/Dropin/elements/createInstantPaymentElements.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/createStoredElements.js +1 -1
- package/dist/es-legacy/components/Dropin/elements/createStoredElements.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/filters.js +1 -1
- package/dist/es-legacy/components/Dropin/elements/filters.js.map +1 -1
- package/dist/es-legacy/components/EPS/index.js +1 -1
- package/dist/es-legacy/components/EPS/index.js.map +1 -1
- package/dist/es-legacy/components/Econtext/Econtext.js +1 -1
- package/dist/es-legacy/components/Econtext/Econtext.js.map +1 -1
- package/dist/es-legacy/components/FacilyPay/FacilyPay10x.js +1 -1
- package/dist/es-legacy/components/FacilyPay/FacilyPay10x.js.map +1 -1
- package/dist/es-legacy/components/FacilyPay/FacilyPay12x.js +1 -1
- package/dist/es-legacy/components/FacilyPay/FacilyPay12x.js.map +1 -1
- package/dist/es-legacy/components/FacilyPay/FacilyPay3x.js +1 -1
- package/dist/es-legacy/components/FacilyPay/FacilyPay3x.js.map +1 -1
- package/dist/es-legacy/components/FacilyPay/FacilyPay4x.js +1 -1
- package/dist/es-legacy/components/FacilyPay/FacilyPay4x.js.map +1 -1
- package/dist/es-legacy/components/FacilyPay/FacilyPay6x.js +1 -1
- package/dist/es-legacy/components/FacilyPay/FacilyPay6x.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/GiftcardFields.js +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardFields.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardNumberField.js +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardNumberField.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardPinField.js +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardPinField.js.map +1 -1
- package/dist/es-legacy/components/Giropay/Giropay.js +1 -1
- package/dist/es-legacy/components/Giropay/Giropay.js.map +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePay.js +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePay.js.map +1 -1
- package/dist/es-legacy/components/GooglePay/components/GooglePayButton.js +1 -1
- package/dist/es-legacy/components/GooglePay/components/GooglePayButton.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 +1 -1
- package/dist/es-legacy/components/Klarna/components/KlarnaContainer/KlarnaContainer.js.map +1 -1
- package/dist/es-legacy/components/MBWay/MBWay.js +1 -1
- package/dist/es-legacy/components/MBWay/MBWay.js.map +1 -1
- package/dist/es-legacy/components/MBWay/components/MBWayInput/MBWayInput.js +1 -1
- package/dist/es-legacy/components/MBWay/components/MBWayInput/MBWayInput.js.map +1 -1
- package/dist/es-legacy/components/MealVoucherFR/MealVoucherFR.js +1 -1
- package/dist/es-legacy/components/MealVoucherFR/MealVoucherFR.js.map +1 -1
- package/dist/es-legacy/components/MealVoucherFR/components/MealVoucherExpiryField.js +1 -1
- package/dist/es-legacy/components/MealVoucherFR/components/MealVoucherExpiryField.js.map +1 -1
- package/dist/es-legacy/components/MealVoucherFR/components/MealVoucherFields.js +1 -1
- package/dist/es-legacy/components/MealVoucherFR/components/MealVoucherFields.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/OnlineBankingCZ/index.js +1 -1
- package/dist/es-legacy/components/OnlineBankingCZ/index.js.map +1 -1
- package/dist/es-legacy/components/OnlineBankingIN/index.js +1 -1
- package/dist/es-legacy/components/OnlineBankingIN/index.js.map +1 -1
- package/dist/es-legacy/components/OnlineBankingPL/OnlineBankingPL.js +1 -1
- package/dist/es-legacy/components/OnlineBankingPL/OnlineBankingPL.js.map +1 -1
- package/dist/es-legacy/components/OnlineBankingSK/index.js +1 -1
- package/dist/es-legacy/components/OnlineBankingSK/index.js.map +1 -1
- package/dist/es-legacy/components/Oxxo/Oxxo.js +1 -1
- package/dist/es-legacy/components/Oxxo/Oxxo.js.map +1 -1
- package/dist/es-legacy/components/PayByBank/PayByBank.js +1 -1
- package/dist/es-legacy/components/PayByBank/PayByBank.js.map +1 -1
- package/dist/es-legacy/components/PayPal/Paypal.js +1 -1
- package/dist/es-legacy/components/PayPal/Paypal.js.map +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalButtons.js +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalButtons.js.map +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalComponent.js +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalComponent.js.map +1 -1
- package/dist/es-legacy/components/PayPal/utils/get-paypal-settings.js +1 -1
- package/dist/es-legacy/components/PayPal/utils/get-paypal-settings.js.map +1 -1
- package/dist/es-legacy/components/PayU/PayuCashcard.js +1 -1
- package/dist/es-legacy/components/PayU/PayuCashcard.js.map +1 -1
- package/dist/es-legacy/components/PayU/PayuNetBanking.js +1 -1
- package/dist/es-legacy/components/PayU/PayuNetBanking.js.map +1 -1
- package/dist/es-legacy/components/PersonalDetails/PersonalDetails.js +1 -1
- package/dist/es-legacy/components/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es-legacy/components/Pix/Pix.js +1 -1
- package/dist/es-legacy/components/Pix/Pix.js.map +1 -1
- package/dist/es-legacy/components/RatePay/RatePay.js +1 -1
- package/dist/es-legacy/components/RatePay/RatePay.js.map +1 -1
- package/dist/es-legacy/components/RatePay/RatePayDirectDebit.js +1 -1
- package/dist/es-legacy/components/RatePay/RatePayDirectDebit.js.map +1 -1
- package/dist/es-legacy/components/Redirect/Redirect.js +1 -1
- package/dist/es-legacy/components/Redirect/Redirect.js.map +1 -1
- package/dist/es-legacy/components/Riverty/Riverty.js +1 -1
- package/dist/es-legacy/components/Riverty/Riverty.js.map +1 -1
- package/dist/es-legacy/components/Sepa/Sepa.js +1 -1
- package/dist/es-legacy/components/Sepa/Sepa.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/ThreeDS2Challenge.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/ThreeDS2Challenge.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/ThreeDS2DeviceFingerprint.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/ThreeDS2DeviceFingerprint.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/callSubmit3DS2Fingerprint.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/callSubmit3DS2Fingerprint.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/utils.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/utils.js.map +1 -1
- package/dist/es-legacy/components/Trustly/Trustly.js +1 -1
- package/dist/es-legacy/components/Trustly/Trustly.js.map +1 -1
- package/dist/es-legacy/components/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/UPIComponent/constants.js +2 -0
- package/dist/es-legacy/components/UPI/components/UPIComponent/constants.js.map +1 -0
- package/dist/es-legacy/components/UPI/components/UPIComponent/useUpiSegmentedControlOptions.js +2 -0
- package/dist/es-legacy/components/UPI/components/UPIComponent/useUpiSegmentedControlOptions.js.map +1 -0
- package/dist/es-legacy/components/UPI/components/UPIIntentAppList/UPIIntentAppItem/UPIIntentAppItem.js +2 -0
- package/dist/es-legacy/components/UPI/components/UPIIntentAppList/UPIIntentAppItem/UPIIntentAppItem.js.map +1 -0
- package/dist/es-legacy/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js +2 -0
- package/dist/es-legacy/components/UPI/components/UPIIntentAppList/UPIIntentAppList.js.map +1 -0
- package/dist/es-legacy/components/UPI/components/VpaInput/VpaInput.js +1 -1
- package/dist/es-legacy/components/UPI/components/VpaInput/VpaInput.js.map +1 -1
- package/dist/es-legacy/components/WalletIN/index.js +1 -1
- package/dist/es-legacy/components/WalletIN/index.js.map +1 -1
- package/dist/es-legacy/components/components-name-map.js +1 -1
- package/dist/es-legacy/components/components-name-map.js.map +1 -1
- package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.js +1 -1
- package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
- package/dist/es-legacy/components/helpers/OpenInvoiceContainer/OpenInvoiceContainer.js +1 -1
- package/dist/es-legacy/components/helpers/OpenInvoiceContainer/OpenInvoiceContainer.js.map +1 -1
- package/dist/es-legacy/components/helpers/QRLoaderContainer/QRLoaderContainer.js +1 -1
- package/dist/es-legacy/components/helpers/QRLoaderContainer/QRLoaderContainer.js.map +1 -1
- package/dist/es-legacy/components/internal/Address/Address.js +1 -1
- package/dist/es-legacy/components/internal/Address/Address.js.map +1 -1
- package/dist/es-legacy/components/internal/Address/components/CountryField.js +1 -1
- package/dist/es-legacy/components/internal/Address/components/CountryField.js.map +1 -1
- package/dist/es-legacy/components/internal/Address/components/ReadOnlyAddress.js +1 -1
- package/dist/es-legacy/components/internal/Address/components/ReadOnlyAddress.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/ClickToPay/services/ClickToPayService.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/ClickToPayService.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/MastercardSdk.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/MastercardSdk.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/VisaSdk.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/VisaSdk.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/index.js +1 -1
- package/dist/es-legacy/components/internal/Countdown/index.js.map +1 -1
- package/dist/es-legacy/components/internal/DisclaimerMessage/DisclaimerMessage.js +1 -1
- package/dist/es-legacy/components/internal/DisclaimerMessage/DisclaimerMessage.js.map +1 -1
- package/dist/es-legacy/components/internal/ExpandButton/ExpandButton.js +2 -0
- package/dist/es-legacy/components/internal/ExpandButton/ExpandButton.js.map +1 -0
- package/dist/es-legacy/components/internal/FormFields/Checkbox/Checkbox.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/Checkbox/Checkbox.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Field/Field.js +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/InputDate/InputDate.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputDate/InputDate.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputEmail.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputEmail.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputTelephone.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputTelephone.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputText.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputText.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/RadioGroup/RadioGroup.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/Select.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/Select.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectButton.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectButton.js.map +1 -1
- package/dist/es-legacy/components/internal/IbanInput/IbanInput.js +1 -1
- package/dist/es-legacy/components/internal/IbanInput/IbanInput.js.map +1 -1
- package/dist/es-legacy/components/internal/Img/Img.js +1 -1
- package/dist/es-legacy/components/internal/Img/Img.js.map +1 -1
- package/dist/es-legacy/components/internal/IssuerList/IssuerButtonGroup/IssuerButtonGroup.js +1 -1
- package/dist/es-legacy/components/internal/IssuerList/IssuerButtonGroup/IssuerButtonGroup.js.map +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js.map +1 -1
- package/dist/es-legacy/components/internal/PayButton/PayButton.js +1 -1
- package/dist/es-legacy/components/internal/PayButton/PayButton.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/PhoneInput.js +1 -1
- package/dist/es-legacy/components/internal/PhoneInput/PhoneInput.js.map +1 -1
- package/dist/es-legacy/components/internal/RedirectButton/RedirectButton.js +1 -1
- package/dist/es-legacy/components/internal/RedirectButton/RedirectButton.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleBrandFromBinLookup.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleBrandFromBinLookup.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleEncryption.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleEncryption.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleValidation.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleValidation.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/initCSF.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/initCSF.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/partials/processBrand.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/partials/processBrand.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/getCardGroupTypes.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/getCardGroupTypes.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/SecuredField.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/SecuredField.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/utils/processAriaConfig.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/utils/processAriaConfig.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/utilities/commonUtils.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/utilities/commonUtils.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/utils.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/utils.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/analyticsPreProcessor.js +1 -1
- package/dist/es-legacy/core/Analytics/analyticsPreProcessor.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/Context/Resources.js +1 -1
- package/dist/es-legacy/core/Context/Resources.js.map +1 -1
- package/dist/es-legacy/core/Environment/constants.js +1 -1
- package/dist/es-legacy/core/Environment/constants.js.map +1 -1
- package/dist/es-legacy/core/Errors/SRPanel.js +1 -1
- package/dist/es-legacy/core/Errors/SRPanel.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentAction/actionTypes.js +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentAction/actionTypes.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentMethods/utils.js +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentMethods/utils.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/process-response.js +1 -1
- package/dist/es-legacy/core/ProcessResponse/process-response.js.map +1 -1
- package/dist/es-legacy/core/RiskModule/RiskModule.js +1 -1
- package/dist/es-legacy/core/RiskModule/RiskModule.js.map +1 -1
- package/dist/es-legacy/core/Services/analytics/collect-id.js +1 -1
- package/dist/es-legacy/core/Services/analytics/collect-id.js.map +1 -1
- package/dist/es-legacy/core/Services/get-translations.js +1 -1
- package/dist/es-legacy/core/Services/get-translations.js.map +1 -1
- package/dist/es-legacy/core/Services/http.js +1 -1
- package/dist/es-legacy/core/Services/http.js.map +1 -1
- package/dist/es-legacy/core/config.js +1 -1
- package/dist/es-legacy/core/config.js.map +1 -1
- package/dist/es-legacy/core/core.js +1 -1
- package/dist/es-legacy/core/core.js.map +1 -1
- package/dist/es-legacy/core/core.registry.js +1 -1
- package/dist/es-legacy/core/core.registry.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/language/constants.js +1 -1
- package/dist/es-legacy/language/constants.js.map +1 -1
- package/dist/es-legacy/utils/amount-util.js.map +1 -1
- package/dist/es-legacy/utils/commonUtils.js +2 -0
- package/dist/es-legacy/utils/commonUtils.js.map +1 -0
- package/dist/es-legacy/utils/useForm/reducer.js +1 -1
- package/dist/es-legacy/utils/useForm/reducer.js.map +1 -1
- package/package.json +21 -21
- package/dist/es/components/Card/components/CardInput/components/IframeLabelAlternative.js.map +0 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodItem/ExpandButton.js +0 -2
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodItem/ExpandButton.js.map +0 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/IframeLabelAlternative.js +0 -2
- package/dist/es-legacy/components/Card/components/CardInput/components/IframeLabelAlternative.js.map +0 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodItem/ExpandButton.js +0 -2
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodItem/ExpandButton.js.map +0 -1
package/dist/es/index.d.ts
CHANGED
|
@@ -1,8 +1,54 @@
|
|
|
1
|
-
/// <reference types="applepayjs" />
|
|
2
|
-
/// <reference types="googlepay" />
|
|
3
1
|
import * as preact from 'preact';
|
|
4
2
|
import { h, ComponentChild, FunctionComponent } from 'preact';
|
|
5
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Holds the result of a validation
|
|
6
|
+
*/
|
|
7
|
+
declare class ValidationRuleResult {
|
|
8
|
+
private readonly shouldValidate;
|
|
9
|
+
isValid: boolean;
|
|
10
|
+
errorMessage: string | ErrorMessageObject;
|
|
11
|
+
constructor(rule: any, value: any, mode: any, context: any);
|
|
12
|
+
/**
|
|
13
|
+
* Whether the validation is considered an error.
|
|
14
|
+
* A field is only considered to be an error if the validation rule applies to the current mode i.e. 'blur' or 'input'.
|
|
15
|
+
* Also, if a validation function returns a null value e.g. when the field is empty, then the field will not be considered to be in error
|
|
16
|
+
* unless the whole form is being validated
|
|
17
|
+
*/
|
|
18
|
+
hasError(isValidatingForm?: boolean): boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type ErrorMessageObject = {
|
|
22
|
+
translationKey: string;
|
|
23
|
+
translationObject: any;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
type OnAddressLookupType = (value: string, actions: {
|
|
27
|
+
resolve: (value: Array<AddressLookupItem>) => void;
|
|
28
|
+
reject: (reason?: any) => void;
|
|
29
|
+
}) => Promise<void>;
|
|
30
|
+
|
|
31
|
+
type StringObject = {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
interface AddressLookupItem extends AddressData {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
38
|
+
type AddressFieldsGroup = [AddressField, number][];
|
|
39
|
+
type AddressSchema = (AddressField | AddressFieldsGroup)[];
|
|
40
|
+
interface AddressSpecifications {
|
|
41
|
+
[key: string]: {
|
|
42
|
+
hasDataset?: boolean;
|
|
43
|
+
labels?: StringObject;
|
|
44
|
+
optionalFields?: AddressField[];
|
|
45
|
+
placeholders?: StringObject;
|
|
46
|
+
schema?: AddressSchema;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare const ADDRESS_SCHEMA: readonly ["street", "houseNumberOrName", "postalCode", "city", "stateOrProvince", "country", "firstName", "lastName"];
|
|
51
|
+
|
|
6
52
|
type CustomTranslations = {
|
|
7
53
|
[locale: string]: Translations;
|
|
8
54
|
};
|
|
@@ -51,76 +97,233 @@ declare class Language {
|
|
|
51
97
|
dateTime(date: string): string;
|
|
52
98
|
}
|
|
53
99
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
100
|
+
interface ImageOptions {
|
|
101
|
+
extension?: string;
|
|
102
|
+
imageFolder?: string;
|
|
103
|
+
resourceContext?: string;
|
|
104
|
+
name?: string;
|
|
105
|
+
parentFolder?: string;
|
|
106
|
+
size?: string;
|
|
107
|
+
subFolder?: string;
|
|
108
|
+
svgOptions?: string;
|
|
109
|
+
type?: string;
|
|
110
|
+
}
|
|
111
|
+
type GetImageFnType = (name: any) => string;
|
|
112
|
+
declare class Resources {
|
|
113
|
+
private readonly resourceContext;
|
|
114
|
+
constructor(cdnContext: string);
|
|
115
|
+
private returnImage;
|
|
116
|
+
private getImageUrl;
|
|
117
|
+
getImage(props?: ImageOptions): GetImageFnType;
|
|
69
118
|
}
|
|
70
119
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
120
|
+
interface RiskModuleOptions {
|
|
121
|
+
enabled: boolean;
|
|
122
|
+
onComplete?: (data: any) => void;
|
|
123
|
+
onError?: (error: any) => void;
|
|
124
|
+
node?: string;
|
|
125
|
+
}
|
|
126
|
+
interface RiskModuleProps extends BaseElementProps {
|
|
127
|
+
risk: RiskModuleOptions;
|
|
128
|
+
loadingContext: string;
|
|
129
|
+
}
|
|
130
|
+
declare class RiskElement extends BaseElement<RiskModuleProps> {
|
|
131
|
+
static type: string;
|
|
132
|
+
static defaultProps: {
|
|
133
|
+
risk: {
|
|
134
|
+
enabled: boolean;
|
|
135
|
+
onComplete: () => void;
|
|
136
|
+
onError: () => void;
|
|
137
|
+
node: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
private nodeRiskContainer;
|
|
141
|
+
constructor(checkout: ICore, props?: any);
|
|
142
|
+
formatProps(props: any): any;
|
|
143
|
+
onComplete: (result: any) => void;
|
|
144
|
+
onError: (error: any) => void;
|
|
145
|
+
get isValid(): any;
|
|
146
|
+
get data(): any;
|
|
147
|
+
get enabled(): boolean;
|
|
148
|
+
cleanUp: () => void;
|
|
149
|
+
componentWillUnmount(): void;
|
|
150
|
+
render(): h.JSX.Element;
|
|
151
|
+
}
|
|
75
152
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
hasDataset?: boolean;
|
|
84
|
-
labels?: StringObject;
|
|
85
|
-
optionalFields?: AddressField[];
|
|
86
|
-
placeholders?: StringObject;
|
|
87
|
-
schema?: AddressSchema;
|
|
153
|
+
interface BaseElementProps {
|
|
154
|
+
order?: Order;
|
|
155
|
+
modules?: {
|
|
156
|
+
srPanel?: SRPanel;
|
|
157
|
+
analytics?: AnalyticsModule;
|
|
158
|
+
resources?: Resources;
|
|
159
|
+
risk?: RiskElement;
|
|
88
160
|
};
|
|
161
|
+
isDropin?: boolean;
|
|
162
|
+
}
|
|
163
|
+
interface IBaseElement {
|
|
164
|
+
data: object;
|
|
165
|
+
state: any;
|
|
166
|
+
props: any;
|
|
167
|
+
_id: string;
|
|
168
|
+
_component: any;
|
|
169
|
+
render(): ComponentChild | Error;
|
|
170
|
+
mount(domNode: HTMLElement | string): IBaseElement;
|
|
171
|
+
update(props: any): IBaseElement;
|
|
172
|
+
unmount(): IBaseElement;
|
|
173
|
+
remove(): void;
|
|
89
174
|
}
|
|
90
175
|
|
|
91
|
-
|
|
176
|
+
interface ValidationRuleErrorObj {
|
|
177
|
+
[key: string]: ValidationRuleResult;
|
|
178
|
+
}
|
|
179
|
+
interface AriaAttributes {
|
|
180
|
+
'aria-relevant'?: 'additions' | 'all' | 'removals' | 'text' | 'additions text';
|
|
181
|
+
'aria-live'?: 'off' | 'polite' | 'assertive';
|
|
182
|
+
'aria-atomic'?: 'true' | 'false';
|
|
183
|
+
}
|
|
184
|
+
interface SRPanelProps extends BaseElementProps {
|
|
185
|
+
enabled?: boolean;
|
|
186
|
+
node?: string;
|
|
187
|
+
showPanel?: boolean;
|
|
188
|
+
moveFocus?: boolean;
|
|
189
|
+
id?: string;
|
|
190
|
+
ariaAttributes?: AriaAttributes;
|
|
191
|
+
}
|
|
192
|
+
type SRPanelConfig = Pick<SRPanelProps, 'enabled' | 'node' | 'showPanel' | 'moveFocus' | 'id' | 'ariaAttributes'>;
|
|
193
|
+
interface GenericError {
|
|
194
|
+
isValid: boolean;
|
|
195
|
+
errorMessage: string;
|
|
196
|
+
error: string;
|
|
197
|
+
}
|
|
92
198
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
199
|
+
/**
|
|
200
|
+
* A panel meant to hold messages that will be read out by ScreenReaders on an aria-live="polite" basis
|
|
201
|
+
* Expects a string or string array of message to add to the panel to be read out
|
|
202
|
+
* For testing purposes can be made visible
|
|
203
|
+
*/
|
|
204
|
+
declare class SRPanel extends BaseElement<SRPanelProps> {
|
|
205
|
+
static type: string;
|
|
206
|
+
static defaultProps: Partial<SRPanelProps>;
|
|
207
|
+
private readonly srPanelContainer;
|
|
208
|
+
private readonly id;
|
|
209
|
+
private readonly showPanel;
|
|
210
|
+
private readonly _enabled;
|
|
211
|
+
private readonly _moveFocus;
|
|
212
|
+
private componentRef;
|
|
213
|
+
constructor(checkout: ICore, props?: SRPanelProps);
|
|
214
|
+
setComponentRef: (ref: any) => void;
|
|
215
|
+
get enabled(): boolean;
|
|
216
|
+
get moveFocus(): boolean;
|
|
217
|
+
setAriaProps(ariaAttributes: AriaAttributes): void;
|
|
218
|
+
setMessages: (messages: string[] | string) => void;
|
|
219
|
+
render(): h.JSX.Element;
|
|
100
220
|
}
|
|
101
221
|
|
|
102
|
-
interface
|
|
103
|
-
|
|
222
|
+
interface DisclaimerMsgObject {
|
|
223
|
+
message: string;
|
|
224
|
+
linkText: string;
|
|
225
|
+
link: string;
|
|
104
226
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
227
|
+
|
|
228
|
+
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'action';
|
|
229
|
+
interface ButtonProps {
|
|
230
|
+
status?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
233
|
+
*/
|
|
234
|
+
classNameModifiers?: string[];
|
|
235
|
+
variant?: ButtonVariant;
|
|
236
|
+
disabled?: boolean;
|
|
237
|
+
label?: string;
|
|
238
|
+
secondaryLabel?: string;
|
|
239
|
+
icon?: string;
|
|
240
|
+
inline?: boolean;
|
|
241
|
+
href?: string;
|
|
242
|
+
target?: string;
|
|
243
|
+
rel?: string;
|
|
244
|
+
onClick?: (e: any, callbacks: any) => void;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
interface PayButtonProps extends ButtonProps {
|
|
248
|
+
/**
|
|
249
|
+
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
250
|
+
*/
|
|
251
|
+
classNameModifiers?: string[];
|
|
252
|
+
label?: string;
|
|
253
|
+
amount: PaymentAmountExtended;
|
|
254
|
+
secondaryAmount?: PaymentAmountExtended;
|
|
255
|
+
status?: string;
|
|
256
|
+
disabled?: boolean;
|
|
257
|
+
icon?: string;
|
|
258
|
+
onClick?(): void;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
type PayButtonFunctionProps = Omit<PayButtonProps, 'amount'>;
|
|
262
|
+
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
263
|
+
type UIElementProps = BaseElementProps & CoreCallbacks & {
|
|
264
|
+
environment?: string;
|
|
265
|
+
session?: Session;
|
|
266
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
267
|
+
isInstantPayment?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* Flags if the element is Stored payment method
|
|
270
|
+
* @internal
|
|
271
|
+
*/
|
|
272
|
+
isStoredPaymentMethod?: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Flag if the element is Stored payment method.
|
|
275
|
+
* Perhaps can be deprecated and we use the one above?
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
278
|
+
oneClick?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Stored payment method id
|
|
281
|
+
* @internal
|
|
282
|
+
*/
|
|
283
|
+
storedPaymentMethodId?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Status set when creating the Component from action
|
|
286
|
+
* @internal
|
|
287
|
+
*/
|
|
288
|
+
statusType?: 'redirect' | 'loading' | 'custom';
|
|
289
|
+
type?: string;
|
|
290
|
+
name?: string;
|
|
291
|
+
icon?: string;
|
|
292
|
+
amount?: PaymentAmount;
|
|
293
|
+
secondaryAmount?: PaymentAmountExtended;
|
|
294
|
+
/**
|
|
295
|
+
* Show/Hide pay button
|
|
296
|
+
* @defaultValue true
|
|
297
|
+
*/
|
|
298
|
+
showPayButton?: boolean;
|
|
299
|
+
/** @internal */
|
|
300
|
+
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
301
|
+
/** @internal */
|
|
302
|
+
loadingContext?: string;
|
|
303
|
+
/** @internal */
|
|
304
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
305
|
+
/** @internal */
|
|
306
|
+
clientKey?: string;
|
|
307
|
+
/** @internal */
|
|
308
|
+
elementRef?: any;
|
|
309
|
+
/** @internal */
|
|
310
|
+
i18n?: Language;
|
|
311
|
+
/**
|
|
312
|
+
* The shopper’s issuer account label. It can be available for stored payment method
|
|
313
|
+
* @internal
|
|
314
|
+
*/
|
|
315
|
+
label?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Returned after the payments call, when an action is returned. It represents the payment method tx variant
|
|
318
|
+
* that was used for the payment
|
|
319
|
+
* @internal
|
|
320
|
+
*/
|
|
321
|
+
paymentMethodType?: string;
|
|
322
|
+
};
|
|
323
|
+
type UIElementStatus = 'ready' | 'loading' | 'error' | 'success';
|
|
324
|
+
interface ComponentMethodsRef {
|
|
325
|
+
showValidation?: () => void;
|
|
326
|
+
setStatus?(status: UIElementStatus): void;
|
|
124
327
|
}
|
|
125
328
|
|
|
126
329
|
interface Experiment {
|
|
@@ -191,6 +394,7 @@ interface AnalyticsObject {
|
|
|
191
394
|
isExpress?: boolean;
|
|
192
395
|
expressPage?: string;
|
|
193
396
|
result?: string;
|
|
397
|
+
configData?: Record<string, string | boolean>;
|
|
194
398
|
}
|
|
195
399
|
type ANALYTICS_EVENT = 'log' | 'error' | 'info';
|
|
196
400
|
type AnalyticsInitialEvent = {
|
|
@@ -201,34 +405,25 @@ type AnalyticsInitialEvent = {
|
|
|
201
405
|
sessionId?: string;
|
|
202
406
|
};
|
|
203
407
|
type CreateAnalyticsEventData = Omit<AnalyticsObject, 'timestamp' | 'id'>;
|
|
204
|
-
type CreateAnalyticsEventObject = {
|
|
205
|
-
event: ANALYTICS_EVENT;
|
|
206
|
-
data: CreateAnalyticsEventData;
|
|
207
|
-
};
|
|
208
|
-
type SendAnalyticsObject = Omit<AnalyticsObject, 'timestamp' | 'component' | 'id'>;
|
|
209
|
-
|
|
210
|
-
interface ImageOptions {
|
|
211
|
-
extension?: string;
|
|
212
|
-
imageFolder?: string;
|
|
213
|
-
resourceContext?: string;
|
|
214
|
-
name?: string;
|
|
215
|
-
parentFolder?: string;
|
|
216
|
-
size?: string;
|
|
217
|
-
subFolder?: string;
|
|
218
|
-
svgOptions?: string;
|
|
219
|
-
type?: string;
|
|
220
|
-
}
|
|
221
|
-
type GetImageFnType = (name: any) => string;
|
|
222
|
-
declare class Resources {
|
|
223
|
-
private readonly resourceContext;
|
|
224
|
-
constructor(cdnContext: string);
|
|
225
|
-
private returnImage;
|
|
226
|
-
private getImageUrl;
|
|
227
|
-
getImage(props?: ImageOptions): GetImageFnType;
|
|
228
|
-
}
|
|
408
|
+
type CreateAnalyticsEventObject = {
|
|
409
|
+
event: ANALYTICS_EVENT;
|
|
410
|
+
data: CreateAnalyticsEventData;
|
|
411
|
+
};
|
|
412
|
+
type SendAnalyticsObject = Omit<AnalyticsObject, 'timestamp' | 'component' | 'id'>;
|
|
229
413
|
|
|
230
|
-
type PlaceholderKeys$1 = 'holderName' | '
|
|
414
|
+
type PlaceholderKeys$1 = 'holderName' | 'cardNumber' | 'expiryDate' | 'expiryMonth' | 'expiryYear' | 'securityCodeThreeDigits' | 'securityCodeFourDigits' | 'password';
|
|
231
415
|
type Placeholders$1 = Partial<Record<PlaceholderKeys$1, string>>;
|
|
416
|
+
interface SFError {
|
|
417
|
+
isValid?: boolean;
|
|
418
|
+
errorMessage?: string;
|
|
419
|
+
errorI18n?: string;
|
|
420
|
+
error: string;
|
|
421
|
+
rootNode: HTMLElement;
|
|
422
|
+
detectedBrands?: string[];
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
type PlaceholderKeys = 'holderName' | 'bankAccountNumber' | 'bankLocationId';
|
|
426
|
+
type Placeholders = Partial<Record<PlaceholderKeys, string>>;
|
|
232
427
|
|
|
233
428
|
type GiftcardFieldsProps = {
|
|
234
429
|
setRootNode: (input: HTMLElement) => void;
|
|
@@ -327,6 +522,11 @@ interface CbObjOnBrand {
|
|
|
327
522
|
showSocialSecurityNumber?: boolean;
|
|
328
523
|
brandImageUrl?: string;
|
|
329
524
|
}
|
|
525
|
+
interface CbObjOnAllValid {
|
|
526
|
+
type: string;
|
|
527
|
+
allValid: boolean;
|
|
528
|
+
rootNode: HTMLElement;
|
|
529
|
+
}
|
|
330
530
|
interface CbObjOnFieldValid {
|
|
331
531
|
fieldType: string;
|
|
332
532
|
encryptedFieldName: string;
|
|
@@ -418,113 +618,6 @@ type ClickToPayProps = {
|
|
|
418
618
|
};
|
|
419
619
|
type ClickToPayScheme = 'mc' | 'visa';
|
|
420
620
|
|
|
421
|
-
interface DisclaimerMsgObject {
|
|
422
|
-
message: string;
|
|
423
|
-
linkText: string;
|
|
424
|
-
link: string;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'action';
|
|
428
|
-
interface ButtonProps {
|
|
429
|
-
status?: string;
|
|
430
|
-
/**
|
|
431
|
-
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
432
|
-
*/
|
|
433
|
-
classNameModifiers?: string[];
|
|
434
|
-
variant?: ButtonVariant;
|
|
435
|
-
disabled?: boolean;
|
|
436
|
-
label?: string;
|
|
437
|
-
secondaryLabel?: string;
|
|
438
|
-
icon?: string;
|
|
439
|
-
inline?: boolean;
|
|
440
|
-
href?: string;
|
|
441
|
-
target?: string;
|
|
442
|
-
rel?: string;
|
|
443
|
-
onClick?: (e: any, callbacks: any) => void;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
interface PayButtonProps extends ButtonProps {
|
|
447
|
-
/**
|
|
448
|
-
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
449
|
-
*/
|
|
450
|
-
classNameModifiers?: string[];
|
|
451
|
-
label?: string;
|
|
452
|
-
amount: PaymentAmountExtended;
|
|
453
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
454
|
-
status?: string;
|
|
455
|
-
disabled?: boolean;
|
|
456
|
-
icon?: string;
|
|
457
|
-
onClick?(): void;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
type PayButtonFunctionProps = Omit<PayButtonProps, 'amount'>;
|
|
461
|
-
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
462
|
-
type UIElementProps = BaseElementProps & CoreCallbacks & {
|
|
463
|
-
environment?: string;
|
|
464
|
-
session?: Session;
|
|
465
|
-
onComplete?: (state: any, element: UIElement) => void;
|
|
466
|
-
isInstantPayment?: boolean;
|
|
467
|
-
/**
|
|
468
|
-
* Flags if the element is Stored payment method
|
|
469
|
-
* @internal
|
|
470
|
-
*/
|
|
471
|
-
isStoredPaymentMethod?: boolean;
|
|
472
|
-
/**
|
|
473
|
-
* Flag if the element is Stored payment method.
|
|
474
|
-
* Perhaps can be deprecated and we use the one above?
|
|
475
|
-
* @internal
|
|
476
|
-
*/
|
|
477
|
-
oneClick?: boolean;
|
|
478
|
-
/**
|
|
479
|
-
* Stored payment method id
|
|
480
|
-
* @internal
|
|
481
|
-
*/
|
|
482
|
-
storedPaymentMethodId?: string;
|
|
483
|
-
/**
|
|
484
|
-
* Status set when creating the Component from action
|
|
485
|
-
* @internal
|
|
486
|
-
*/
|
|
487
|
-
statusType?: 'redirect' | 'loading' | 'custom';
|
|
488
|
-
type?: string;
|
|
489
|
-
name?: string;
|
|
490
|
-
icon?: string;
|
|
491
|
-
amount?: PaymentAmount;
|
|
492
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
493
|
-
/**
|
|
494
|
-
* Show/Hide pay button
|
|
495
|
-
* @defaultValue true
|
|
496
|
-
*/
|
|
497
|
-
showPayButton?: boolean;
|
|
498
|
-
/** @internal */
|
|
499
|
-
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
500
|
-
/** @internal */
|
|
501
|
-
loadingContext?: string;
|
|
502
|
-
/** @internal */
|
|
503
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
504
|
-
/** @internal */
|
|
505
|
-
clientKey?: string;
|
|
506
|
-
/** @internal */
|
|
507
|
-
elementRef?: any;
|
|
508
|
-
/** @internal */
|
|
509
|
-
i18n?: Language;
|
|
510
|
-
/**
|
|
511
|
-
* The shopper’s issuer account label. It can be available for stored payment method
|
|
512
|
-
* @internal
|
|
513
|
-
*/
|
|
514
|
-
label?: string;
|
|
515
|
-
/**
|
|
516
|
-
* Returned after the payments call, when an action is returned. It represents the payment method tx variant
|
|
517
|
-
* that was used for the payment
|
|
518
|
-
* @internal
|
|
519
|
-
*/
|
|
520
|
-
paymentMethodType?: string;
|
|
521
|
-
};
|
|
522
|
-
type UIElementStatus = 'ready' | 'loading' | 'error' | 'success';
|
|
523
|
-
interface ComponentMethodsRef {
|
|
524
|
-
showValidation?: () => void;
|
|
525
|
-
setStatus?(status: UIElementStatus): void;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
621
|
interface CardConfiguration extends UIElementProps {
|
|
529
622
|
/**
|
|
530
623
|
* Automatically shift the focus from one field to another. Usually happens from a valid Expiry Date field to the Security Code field,
|
|
@@ -732,6 +825,11 @@ interface CardConfiguration extends UIElementProps {
|
|
|
732
825
|
* @internal - but can also be overwritten by merchant config option
|
|
733
826
|
*/
|
|
734
827
|
name?: string;
|
|
828
|
+
/**
|
|
829
|
+
* Function used to perform 3rd party Address lookup
|
|
830
|
+
* - merchant set config option
|
|
831
|
+
*/
|
|
832
|
+
onAddressLookup?: OnAddressLookupType;
|
|
735
833
|
/**
|
|
736
834
|
* After binLookup call - provides the brand(s) we detect the user is entering, and if we support the brand(s)
|
|
737
835
|
* - merchant set config option
|
|
@@ -757,6 +855,11 @@ interface CardConfiguration extends UIElementProps {
|
|
|
757
855
|
* - merchant set config option
|
|
758
856
|
*/
|
|
759
857
|
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
858
|
+
/**
|
|
859
|
+
* Called when *all* the securedFields becomes valid
|
|
860
|
+
* Also called again if one of the fields moves out of validity.
|
|
861
|
+
*/
|
|
862
|
+
onAllValid?: (event: CbObjOnAllValid) => void;
|
|
760
863
|
/**
|
|
761
864
|
* Called when a field becomes valid and also if a valid field changes and becomes invalid.
|
|
762
865
|
* For the card number field, it returns the last 4 digits of the card number.
|
|
@@ -777,7 +880,7 @@ interface CardConfiguration extends UIElementProps {
|
|
|
777
880
|
* Configure placeholder text for holderName, cardNumber, expirationDate, securityCode and password.
|
|
778
881
|
* - merchant set config option
|
|
779
882
|
*/
|
|
780
|
-
placeholders?: Placeholders;
|
|
883
|
+
placeholders?: Placeholders$1;
|
|
781
884
|
/**
|
|
782
885
|
* Position holder name above card number field (instead of having it after the security code field)
|
|
783
886
|
* @defaultValue `false`
|
|
@@ -901,165 +1004,79 @@ interface BinLookupResponseRaw {
|
|
|
901
1004
|
status: number;
|
|
902
1005
|
errorCode: string;
|
|
903
1006
|
message: string;
|
|
904
|
-
errorType: string;
|
|
905
|
-
}
|
|
906
|
-
/**
|
|
907
|
-
* Mapped & simplified version of BinLookupResponseRaw
|
|
908
|
-
*/
|
|
909
|
-
interface BinLookupResponse {
|
|
910
|
-
issuingCountryCode: string;
|
|
911
|
-
showSocialSecurityNumber?: boolean;
|
|
912
|
-
supportedBrands?: BrandObject[];
|
|
913
|
-
}
|
|
914
|
-
interface DualBrandSelectElement {
|
|
915
|
-
id: string;
|
|
916
|
-
brandObject: BrandObject;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
type PlaceholderKeys = 'holderName' | 'cardNumber' | 'expiryDate' | 'expiryMonth' | 'expiryYear' | 'securityCodeThreeDigits' | 'securityCodeFourDigits' | 'password';
|
|
920
|
-
type Placeholders = Partial<Record<PlaceholderKeys, string>>;
|
|
921
|
-
interface SFError {
|
|
922
|
-
isValid?: boolean;
|
|
923
|
-
errorMessage?: string;
|
|
924
|
-
errorI18n?: string;
|
|
925
|
-
error: string;
|
|
926
|
-
rootNode: HTMLElement;
|
|
927
|
-
detectedBrands?: string[];
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
interface ValidationRuleErrorObj {
|
|
931
|
-
[key: string]: ValidationRuleResult;
|
|
932
|
-
}
|
|
933
|
-
interface AriaAttributes {
|
|
934
|
-
'aria-relevant'?: 'additions' | 'all' | 'removals' | 'text' | 'additions text';
|
|
935
|
-
'aria-live'?: 'off' | 'polite' | 'assertive';
|
|
936
|
-
'aria-atomic'?: 'true' | 'false';
|
|
937
|
-
}
|
|
938
|
-
interface SRPanelProps extends BaseElementProps {
|
|
939
|
-
enabled?: boolean;
|
|
940
|
-
node?: string;
|
|
941
|
-
showPanel?: boolean;
|
|
942
|
-
moveFocus?: boolean;
|
|
943
|
-
id?: string;
|
|
944
|
-
ariaAttributes?: AriaAttributes;
|
|
945
|
-
}
|
|
946
|
-
type SRPanelConfig = Pick<SRPanelProps, 'enabled' | 'node' | 'showPanel' | 'moveFocus' | 'id' | 'ariaAttributes'>;
|
|
947
|
-
interface GenericError {
|
|
948
|
-
isValid: boolean;
|
|
949
|
-
errorMessage: string;
|
|
950
|
-
error: string;
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
* A panel meant to hold messages that will be read out by ScreenReaders on an aria-live="polite" basis
|
|
955
|
-
* Expects a string or string array of message to add to the panel to be read out
|
|
956
|
-
* For testing purposes can be made visible
|
|
957
|
-
*/
|
|
958
|
-
declare class SRPanel extends BaseElement<SRPanelProps> {
|
|
959
|
-
static type: string;
|
|
960
|
-
static defaultProps: Partial<SRPanelProps>;
|
|
961
|
-
private readonly srPanelContainer;
|
|
962
|
-
private readonly id;
|
|
963
|
-
private readonly showPanel;
|
|
964
|
-
private readonly _enabled;
|
|
965
|
-
private readonly _moveFocus;
|
|
966
|
-
private componentRef;
|
|
967
|
-
constructor(checkout: ICore, props?: SRPanelProps);
|
|
968
|
-
setComponentRef: (ref: any) => void;
|
|
969
|
-
get enabled(): boolean;
|
|
970
|
-
get moveFocus(): boolean;
|
|
971
|
-
setAriaProps(ariaAttributes: AriaAttributes): void;
|
|
972
|
-
setMessages: (messages: string[] | string) => void;
|
|
973
|
-
render(): h.JSX.Element;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
interface BaseElementProps {
|
|
977
|
-
order?: Order;
|
|
978
|
-
modules?: {
|
|
979
|
-
srPanel?: SRPanel;
|
|
980
|
-
analytics?: AnalyticsModule;
|
|
981
|
-
resources?: Resources;
|
|
982
|
-
risk?: RiskElement;
|
|
983
|
-
};
|
|
984
|
-
isDropin?: boolean;
|
|
985
|
-
}
|
|
986
|
-
interface IBaseElement {
|
|
987
|
-
data: object;
|
|
988
|
-
state: any;
|
|
989
|
-
props: any;
|
|
990
|
-
_id: string;
|
|
991
|
-
_component: any;
|
|
992
|
-
render(): ComponentChild | Error;
|
|
993
|
-
mount(domNode: HTMLElement | string): IBaseElement;
|
|
994
|
-
update(props: any): IBaseElement;
|
|
995
|
-
unmount(): IBaseElement;
|
|
996
|
-
remove(): void;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
interface RiskModuleOptions {
|
|
1000
|
-
enabled: boolean;
|
|
1001
|
-
onComplete?: (data: any) => void;
|
|
1002
|
-
onError?: (error: any) => void;
|
|
1003
|
-
node?: string;
|
|
1004
|
-
}
|
|
1005
|
-
interface RiskModuleProps extends BaseElementProps {
|
|
1006
|
-
risk: RiskModuleOptions;
|
|
1007
|
-
loadingContext: string;
|
|
1008
|
-
}
|
|
1009
|
-
declare class RiskElement extends BaseElement<RiskModuleProps> {
|
|
1010
|
-
static type: string;
|
|
1011
|
-
static defaultProps: {
|
|
1012
|
-
risk: {
|
|
1013
|
-
enabled: boolean;
|
|
1014
|
-
onComplete: () => void;
|
|
1015
|
-
onError: () => void;
|
|
1016
|
-
node: string;
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
private nodeRiskContainer;
|
|
1020
|
-
constructor(checkout: ICore, props?: any);
|
|
1021
|
-
formatProps(props: any): any;
|
|
1022
|
-
onComplete: (result: any) => void;
|
|
1023
|
-
onError: (error: any) => void;
|
|
1024
|
-
get isValid(): any;
|
|
1025
|
-
get data(): any;
|
|
1026
|
-
cleanUp: () => void;
|
|
1027
|
-
componentWillUnmount(): void;
|
|
1028
|
-
render(): h.JSX.Element;
|
|
1007
|
+
errorType: string;
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Mapped & simplified version of BinLookupResponseRaw
|
|
1011
|
+
*/
|
|
1012
|
+
interface BinLookupResponse {
|
|
1013
|
+
issuingCountryCode: string;
|
|
1014
|
+
showSocialSecurityNumber?: boolean;
|
|
1015
|
+
supportedBrands?: BrandObject[];
|
|
1016
|
+
}
|
|
1017
|
+
interface DualBrandSelectElement {
|
|
1018
|
+
id: string;
|
|
1019
|
+
brandObject: BrandObject;
|
|
1029
1020
|
}
|
|
1030
1021
|
|
|
1031
|
-
interface
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
encryptedSecurityCode: string;
|
|
1022
|
+
interface InstallmentOptions {
|
|
1023
|
+
[key: string]: {
|
|
1024
|
+
values: number[];
|
|
1025
|
+
plans?: string[];
|
|
1026
|
+
preselectedValue?: number;
|
|
1037
1027
|
};
|
|
1038
1028
|
}
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1029
|
+
|
|
1030
|
+
type CheckoutSession = {
|
|
1031
|
+
id: string;
|
|
1032
|
+
sessionData: string;
|
|
1033
|
+
shopperLocale?: string;
|
|
1034
|
+
shopperEmail?: string;
|
|
1035
|
+
telephoneNumber?: string;
|
|
1045
1036
|
};
|
|
1046
|
-
type
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1037
|
+
type SessionConfiguration = {
|
|
1038
|
+
installmentOptions?: InstallmentOptions;
|
|
1039
|
+
enableStoreDetails?: boolean;
|
|
1040
|
+
};
|
|
1041
|
+
type CheckoutSessionSetupResponse = {
|
|
1042
|
+
id: string;
|
|
1043
|
+
sessionData: string;
|
|
1044
|
+
countryCode?: string;
|
|
1045
|
+
amount: PaymentAmount;
|
|
1046
|
+
expiresAt: string;
|
|
1047
|
+
paymentMethods: any;
|
|
1048
|
+
returnUrl: string;
|
|
1049
|
+
configuration: SessionConfiguration;
|
|
1058
1050
|
/**
|
|
1059
|
-
*
|
|
1051
|
+
* 'shopperLocale' set during session creation.
|
|
1052
|
+
* @defaultValue en-US
|
|
1060
1053
|
*/
|
|
1061
|
-
|
|
1062
|
-
}
|
|
1054
|
+
shopperLocale: string;
|
|
1055
|
+
};
|
|
1056
|
+
type CheckoutSessionPaymentResponse = {
|
|
1057
|
+
sessionData: string;
|
|
1058
|
+
sessionResult: string;
|
|
1059
|
+
status?: string;
|
|
1060
|
+
resultCode: ResultCode;
|
|
1061
|
+
action?: PaymentAction;
|
|
1062
|
+
};
|
|
1063
|
+
type CheckoutSessionDetailsResponse = {
|
|
1064
|
+
sessionData: string;
|
|
1065
|
+
sessionResult: string;
|
|
1066
|
+
resultCode: ResultCode;
|
|
1067
|
+
status?: string;
|
|
1068
|
+
action?: PaymentAction;
|
|
1069
|
+
};
|
|
1070
|
+
type CheckoutSessionBalanceResponse = {
|
|
1071
|
+
sessionData: string;
|
|
1072
|
+
balance?: PaymentAmount;
|
|
1073
|
+
transactionLimit?: PaymentAmount;
|
|
1074
|
+
};
|
|
1075
|
+
type CheckoutSessionOrdersResponse = {
|
|
1076
|
+
sessionData: string;
|
|
1077
|
+
orderData: string;
|
|
1078
|
+
pspReference: string;
|
|
1079
|
+
};
|
|
1063
1080
|
|
|
1064
1081
|
type NewableComponent = new (checkout: ICore, props?: any) => UIElement;
|
|
1065
1082
|
interface IRegistry {
|
|
@@ -1302,6 +1319,7 @@ declare enum TxVariants {
|
|
|
1302
1319
|
upi = "upi",// also QR
|
|
1303
1320
|
upi_qr = "upi_qr",// also QR
|
|
1304
1321
|
upi_collect = "upi_collect",// also QR
|
|
1322
|
+
upi_intent = "upi_intent",// also QR
|
|
1305
1323
|
/** Await */
|
|
1306
1324
|
/** Giftcard */
|
|
1307
1325
|
giftcard = "giftcard",
|
|
@@ -1918,7 +1936,7 @@ interface AchConfiguration extends UIElementProps {
|
|
|
1918
1936
|
hasHolderName?: boolean;
|
|
1919
1937
|
enableStoreDetails: boolean;
|
|
1920
1938
|
bankAccountNumber: string;
|
|
1921
|
-
placeholders?: Placeholders
|
|
1939
|
+
placeholders?: Placeholders;
|
|
1922
1940
|
}
|
|
1923
1941
|
|
|
1924
1942
|
interface BankTransferConfiguration extends UIElementProps {
|
|
@@ -2123,11 +2141,19 @@ interface CampaignContentProps {
|
|
|
2123
2141
|
logoUrl?: string;
|
|
2124
2142
|
nonprofitDescription?: string;
|
|
2125
2143
|
nonprofitName?: string;
|
|
2144
|
+
causeName?: string;
|
|
2126
2145
|
nonprofitUrl?: string;
|
|
2127
2146
|
bannerUrl?: string;
|
|
2128
2147
|
}
|
|
2129
2148
|
|
|
2130
|
-
|
|
2149
|
+
type Donation = RoundupDonation | FixedAmountsDonation;
|
|
2150
|
+
interface RoundupDonation {
|
|
2151
|
+
type: 'roundup';
|
|
2152
|
+
currency: string;
|
|
2153
|
+
maxRoundupAmount: number;
|
|
2154
|
+
}
|
|
2155
|
+
interface FixedAmountsDonation {
|
|
2156
|
+
type: 'fixedAmounts';
|
|
2131
2157
|
currency: string;
|
|
2132
2158
|
values: Array<number>;
|
|
2133
2159
|
}
|
|
@@ -2142,7 +2168,11 @@ interface DonationPayload {
|
|
|
2142
2168
|
isValid?: boolean;
|
|
2143
2169
|
}
|
|
2144
2170
|
interface DonationComponentProps extends CampaignContentProps {
|
|
2145
|
-
|
|
2171
|
+
donation: Donation;
|
|
2172
|
+
/**
|
|
2173
|
+
* The original transaction amount.
|
|
2174
|
+
*/
|
|
2175
|
+
commercialTxAmount: number;
|
|
2146
2176
|
termsAndConditionsUrl?: string;
|
|
2147
2177
|
causeName?: string;
|
|
2148
2178
|
showCancelButton?: boolean;
|
|
@@ -2220,6 +2250,39 @@ interface EcontextConfiguration extends UIElementProps {
|
|
|
2220
2250
|
data?: PersonalDetailsSchema;
|
|
2221
2251
|
}
|
|
2222
2252
|
|
|
2253
|
+
interface GiftCardElementData {
|
|
2254
|
+
paymentMethod: {
|
|
2255
|
+
type: 'giftcard';
|
|
2256
|
+
brand: string;
|
|
2257
|
+
encryptedCardNumber: string;
|
|
2258
|
+
encryptedSecurityCode: string;
|
|
2259
|
+
};
|
|
2260
|
+
}
|
|
2261
|
+
type balanceCheckResponseType = {
|
|
2262
|
+
sessionData?: string;
|
|
2263
|
+
pspReference?: string;
|
|
2264
|
+
resultCode?: string;
|
|
2265
|
+
balance?: PaymentAmount;
|
|
2266
|
+
transactionLimit?: PaymentAmount;
|
|
2267
|
+
};
|
|
2268
|
+
type onBalanceCheckCallbackType = (resolve: (res: balanceCheckResponseType) => void, reject: (error: Error) => void, data: GiftCardElementData) => Promise<void>;
|
|
2269
|
+
type onRequiringConfirmationCallbackType = (resolve: () => void, reject: (error: Error) => void) => Promise<void>;
|
|
2270
|
+
type onOrderRequestCallbackType = (resolve: (order: Order) => void, reject: (error: Error) => void, data: PaymentData) => Promise<void>;
|
|
2271
|
+
interface GiftCardConfiguration extends UIElementProps {
|
|
2272
|
+
pinRequired?: boolean;
|
|
2273
|
+
expiryDateRequired?: boolean;
|
|
2274
|
+
brandsConfiguration?: any;
|
|
2275
|
+
brand?: string;
|
|
2276
|
+
onOrderUpdated?: (data: any) => void;
|
|
2277
|
+
onBalanceCheck?: onBalanceCheckCallbackType;
|
|
2278
|
+
onOrderRequest?: onOrderRequestCallbackType;
|
|
2279
|
+
onRequiringConfirmation?: onRequiringConfirmationCallbackType;
|
|
2280
|
+
/**
|
|
2281
|
+
* @internal
|
|
2282
|
+
*/
|
|
2283
|
+
fieldsLayoutComponent?: FunctionComponent<GiftcardFieldsProps>;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2223
2286
|
interface GooglePayConfiguration extends UIElementProps {
|
|
2224
2287
|
type?: 'googlepay' | 'paywithgoogle';
|
|
2225
2288
|
/**
|
|
@@ -2337,6 +2400,7 @@ interface GooglePayConfiguration extends UIElementProps {
|
|
|
2337
2400
|
buttonSizeMode?: google.payments.api.ButtonSizeMode;
|
|
2338
2401
|
buttonRootNode?: HTMLDocument | ShadowRoot;
|
|
2339
2402
|
buttonLocale?: string;
|
|
2403
|
+
buttonRadius?: number;
|
|
2340
2404
|
onClick?: (resolve: any, reject: any) => void;
|
|
2341
2405
|
/**
|
|
2342
2406
|
* Callback called when GooglePay authorizes the payment.
|
|
@@ -2734,6 +2798,30 @@ interface SepaElementData {
|
|
|
2734
2798
|
interface SepaConfiguration extends UIElementProps {
|
|
2735
2799
|
}
|
|
2736
2800
|
|
|
2801
|
+
interface CheckoutErrorOptions {
|
|
2802
|
+
cause?: any;
|
|
2803
|
+
}
|
|
2804
|
+
declare class AdyenCheckoutError extends Error {
|
|
2805
|
+
protected static errorTypes: {
|
|
2806
|
+
/** Network error. */
|
|
2807
|
+
NETWORK_ERROR: string;
|
|
2808
|
+
/** Shopper canceled the current transaction. */
|
|
2809
|
+
CANCEL: string;
|
|
2810
|
+
/** Implementation error. The method or parameter are incorrect or are not supported. */
|
|
2811
|
+
IMPLEMENTATION_ERROR: string;
|
|
2812
|
+
/** API error. The API has not returned the expected data */
|
|
2813
|
+
API_ERROR: string;
|
|
2814
|
+
/** Generic error. */
|
|
2815
|
+
ERROR: string;
|
|
2816
|
+
/** Script error. The browser failed to load 3rd party script */
|
|
2817
|
+
SCRIPT_ERROR: string;
|
|
2818
|
+
/** Something has gone wrong internally */
|
|
2819
|
+
SDK_ERROR: string;
|
|
2820
|
+
};
|
|
2821
|
+
cause: unknown;
|
|
2822
|
+
constructor(type: keyof typeof AdyenCheckoutError.errorTypes, message?: string, options?: CheckoutErrorOptions);
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2737
2825
|
declare enum Analytics3DS2Errors {
|
|
2738
2826
|
ACTION_IS_MISSING_PAYMENT_DATA = "700",// Missing 'paymentData' property from threeDS2 action
|
|
2739
2827
|
ACTION_IS_MISSING_TOKEN = "701",// Missing 'token' property from threeDS2 action
|
|
@@ -2866,19 +2954,28 @@ interface ErrorCodeObject {
|
|
|
2866
2954
|
message: string;
|
|
2867
2955
|
}
|
|
2868
2956
|
|
|
2957
|
+
type UpiType = TxVariants.upi_qr | TxVariants.upi_intent | TxVariants.upi_collect;
|
|
2958
|
+
type UpiMode = 'vpa' | 'qrCode' | 'intent';
|
|
2959
|
+
type App = {
|
|
2960
|
+
id: string;
|
|
2961
|
+
name: string;
|
|
2962
|
+
type?: UpiType;
|
|
2963
|
+
};
|
|
2869
2964
|
type UpiPaymentData = {
|
|
2870
2965
|
paymentMethod: {
|
|
2871
|
-
type:
|
|
2966
|
+
type: UpiType;
|
|
2872
2967
|
virtualPaymentAddress?: string;
|
|
2968
|
+
appId?: string;
|
|
2873
2969
|
};
|
|
2874
2970
|
};
|
|
2875
|
-
type UpiMode = 'vpa' | 'qrCode';
|
|
2876
2971
|
interface UPIConfiguration extends UIElementProps {
|
|
2972
|
+
defaultMode?: UpiMode;
|
|
2973
|
+
apps?: Array<App>;
|
|
2877
2974
|
/**
|
|
2878
|
-
*
|
|
2879
|
-
* @
|
|
2975
|
+
* Redirect url for upi intent apps
|
|
2976
|
+
* @internal
|
|
2880
2977
|
*/
|
|
2881
|
-
|
|
2978
|
+
url?: string;
|
|
2882
2979
|
paymentData?: string;
|
|
2883
2980
|
qrCodeData?: string;
|
|
2884
2981
|
brandLogo?: string;
|
|
@@ -2899,6 +2996,7 @@ interface AwaitComponentProps {
|
|
|
2899
2996
|
countdownTime: number;
|
|
2900
2997
|
throttleTime: number;
|
|
2901
2998
|
showCountdownTimer: boolean;
|
|
2999
|
+
shouldRedirectAutomatically?: boolean;
|
|
2902
3000
|
throttleInterval: number;
|
|
2903
3001
|
paymentData: string;
|
|
2904
3002
|
url?: string;
|
|
@@ -2979,7 +3077,7 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
2979
3077
|
redirectURL?: string;
|
|
2980
3078
|
button?: {
|
|
2981
3079
|
shape?: "semiround" | "round";
|
|
2982
|
-
size?: "
|
|
3080
|
+
size?: "medium" | "small";
|
|
2983
3081
|
theme?: "dark" | "light";
|
|
2984
3082
|
width?: "static" | "full";
|
|
2985
3083
|
};
|
|
@@ -2997,20 +3095,20 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
2997
3095
|
risk?: RiskElement;
|
|
2998
3096
|
};
|
|
2999
3097
|
isDropin?: boolean;
|
|
3000
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
3001
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
3002
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
3098
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
3099
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
3100
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
3003
3101
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
3004
3102
|
url: string;
|
|
3005
3103
|
method: string;
|
|
3006
3104
|
data?: any;
|
|
3007
3105
|
}) => void;
|
|
3008
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
3009
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
3106
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3107
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3010
3108
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3011
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
3012
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
3013
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
3109
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
3110
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
3111
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
3014
3112
|
onOrderUpdated?: (data: {
|
|
3015
3113
|
order: Order;
|
|
3016
3114
|
}) => void;
|
|
@@ -3020,11 +3118,11 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
3020
3118
|
}) => void;
|
|
3021
3119
|
environment?: string;
|
|
3022
3120
|
session?: Session;
|
|
3023
|
-
onComplete?: (state: any, element: UIElement
|
|
3121
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
3024
3122
|
isInstantPayment?: boolean;
|
|
3025
3123
|
isStoredPaymentMethod?: boolean;
|
|
3026
3124
|
oneClick?: boolean;
|
|
3027
|
-
statusType?: "
|
|
3125
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3028
3126
|
type?: string;
|
|
3029
3127
|
name?: string;
|
|
3030
3128
|
icon?: string;
|
|
@@ -3033,7 +3131,7 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
3033
3131
|
showPayButton?: boolean;
|
|
3034
3132
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
3035
3133
|
loadingContext?: string;
|
|
3036
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
3134
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3037
3135
|
clientKey?: string;
|
|
3038
3136
|
elementRef?: any;
|
|
3039
3137
|
i18n?: Language;
|
|
@@ -3071,20 +3169,20 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3071
3169
|
risk?: RiskElement;
|
|
3072
3170
|
};
|
|
3073
3171
|
isDropin?: boolean;
|
|
3074
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
3075
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
3076
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
3172
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
3173
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
3174
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
3077
3175
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
3078
3176
|
url: string;
|
|
3079
3177
|
method: string;
|
|
3080
3178
|
data?: any;
|
|
3081
3179
|
}) => void;
|
|
3082
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
3083
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
3180
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3181
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3084
3182
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3085
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
3086
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
3087
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
3183
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
3184
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
3185
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
3088
3186
|
onOrderUpdated?: (data: {
|
|
3089
3187
|
order: Order;
|
|
3090
3188
|
}) => void;
|
|
@@ -3094,12 +3192,12 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3094
3192
|
}) => void;
|
|
3095
3193
|
environment?: string;
|
|
3096
3194
|
session?: Session;
|
|
3097
|
-
onComplete?: (state: any, element: UIElement
|
|
3195
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
3098
3196
|
isInstantPayment?: boolean;
|
|
3099
3197
|
isStoredPaymentMethod?: boolean;
|
|
3100
3198
|
oneClick?: boolean;
|
|
3101
3199
|
storedPaymentMethodId?: string;
|
|
3102
|
-
statusType?: "
|
|
3200
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3103
3201
|
type?: string;
|
|
3104
3202
|
name?: string;
|
|
3105
3203
|
icon?: string;
|
|
@@ -3108,7 +3206,7 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3108
3206
|
showPayButton?: boolean;
|
|
3109
3207
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
3110
3208
|
loadingContext?: string;
|
|
3111
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
3209
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3112
3210
|
clientKey?: string;
|
|
3113
3211
|
elementRef?: any;
|
|
3114
3212
|
i18n?: Language;
|
|
@@ -3138,11 +3236,7 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3138
3236
|
declare class BancontactElement extends CardElement {
|
|
3139
3237
|
static type: TxVariants;
|
|
3140
3238
|
constructor(checkout: ICore, props?: CardConfiguration);
|
|
3141
|
-
protected static defaultProps:
|
|
3142
|
-
brands: string[];
|
|
3143
|
-
onBinLookup: () => void;
|
|
3144
|
-
_disableClickToPay: boolean;
|
|
3145
|
-
};
|
|
3239
|
+
protected static defaultProps: any;
|
|
3146
3240
|
formatData(): CardElementData;
|
|
3147
3241
|
/**
|
|
3148
3242
|
* Now that the Bancontact (BCMC) Card component can accept a number dual branded with Visa (which requires a CVC) it has to be handled differently
|
|
@@ -3158,52 +3252,17 @@ declare class BancontactElement extends CardElement {
|
|
|
3158
3252
|
type: TxVariants;
|
|
3159
3253
|
brand: TxVariants;
|
|
3160
3254
|
cvcPolicy: CVCPolicyType;
|
|
3161
|
-
storedPaymentMethodId: string;
|
|
3162
|
-
holderNameRequired: boolean;
|
|
3163
|
-
hasCVC: boolean;
|
|
3164
|
-
billingAddressRequired: boolean;
|
|
3165
|
-
countryCode: string;
|
|
3166
|
-
configuration: {
|
|
3167
|
-
socialSecurityNumberMode: SocialSecurityMode;
|
|
3168
|
-
visaSrciDpaId?: string;
|
|
3169
|
-
visaSrcInitiatorId?: string;
|
|
3170
|
-
mcSrcClientId?: string;
|
|
3171
|
-
mcDpaId?: string;
|
|
3172
|
-
merchantIdentifier?: string;
|
|
3173
|
-
merchantOrigin?: string;
|
|
3174
|
-
gatewayMerchantId?: string;
|
|
3175
|
-
publicKeyId?: string;
|
|
3176
|
-
region?: string;
|
|
3177
|
-
merchantName?: string;
|
|
3178
|
-
merchantId?: string;
|
|
3179
|
-
intent?: string;
|
|
3180
|
-
koreanAuthenticationRequired?: boolean;
|
|
3181
|
-
icon?: string;
|
|
3182
|
-
brandsConfiguration?: CardBrandsConfiguration;
|
|
3183
|
-
};
|
|
3184
|
-
brandsConfiguration: CardBrandsConfiguration;
|
|
3185
|
-
icon: string;
|
|
3186
|
-
installmentOptions: InstallmentOptions;
|
|
3187
|
-
enableStoreDetails: boolean;
|
|
3188
|
-
showStoreDetailsCheckbox: boolean;
|
|
3189
|
-
clickToPayConfiguration: {
|
|
3190
|
-
disableOtpAutoFocus: boolean;
|
|
3191
|
-
shopperEmail: string;
|
|
3192
|
-
telephoneNumber: string;
|
|
3193
|
-
locale: string;
|
|
3194
|
-
merchantDisplayName?: string;
|
|
3195
|
-
onReady?(): void;
|
|
3196
|
-
onTimeout?(error: TimeoutError): void;
|
|
3197
|
-
};
|
|
3198
3255
|
autoFocus?: boolean;
|
|
3199
|
-
billingAddressAllowedCountries?: string[];
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
*/
|
|
3203
|
-
billingAddressMode?: "none" | "full" | "partial";
|
|
3256
|
+
billingAddressAllowedCountries?: string[];
|
|
3257
|
+
billingAddressMode?: "full" | "partial" | "none";
|
|
3258
|
+
billingAddressRequired?: boolean;
|
|
3204
3259
|
billingAddressRequiredFields?: string[];
|
|
3205
3260
|
brands?: string[];
|
|
3206
|
-
|
|
3261
|
+
brandsConfiguration?: CardBrandsConfiguration;
|
|
3262
|
+
challengeWindowSize?: "01" | "02" | "03" | "04" | "05";
|
|
3263
|
+
clickToPayConfiguration?: ClickToPayProps;
|
|
3264
|
+
configuration?: CardBackendConfiguration;
|
|
3265
|
+
countryCode?: string;
|
|
3207
3266
|
data?: {
|
|
3208
3267
|
holderName?: string;
|
|
3209
3268
|
billingAddress?: Partial<AddressData>;
|
|
@@ -3212,32 +3271,40 @@ declare class BancontactElement extends CardElement {
|
|
|
3212
3271
|
disableIOSArrowKeys?: boolean;
|
|
3213
3272
|
disclaimerMessage?: DisclaimerMsgObject;
|
|
3214
3273
|
doBinLookup?: boolean;
|
|
3274
|
+
enableStoreDetails?: boolean;
|
|
3215
3275
|
expiryMonth?: string;
|
|
3216
3276
|
exposeExpiryDate?: boolean;
|
|
3217
3277
|
forceCompat?: boolean;
|
|
3218
3278
|
fundingSource?: "debit" | "credit";
|
|
3279
|
+
hasCVC?: boolean;
|
|
3219
3280
|
hasHolderName?: boolean;
|
|
3220
3281
|
hideCVC?: boolean;
|
|
3282
|
+
holderNameRequired?: boolean;
|
|
3221
3283
|
id?: string;
|
|
3284
|
+
installmentOptions?: InstallmentOptions;
|
|
3222
3285
|
keypadFix?: boolean;
|
|
3223
3286
|
lastFour?: string;
|
|
3224
3287
|
legacyInputMode?: boolean;
|
|
3225
3288
|
maskSecurityCode?: boolean;
|
|
3226
3289
|
minimumExpiryDate?: string[];
|
|
3227
3290
|
name?: string;
|
|
3291
|
+
onAddressLookup?: OnAddressLookupType;
|
|
3228
3292
|
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
3229
3293
|
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
3230
3294
|
onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
3231
3295
|
onBrand?: (event: CbObjOnBrand) => void;
|
|
3232
3296
|
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
3297
|
+
onAllValid?: (event: CbObjOnAllValid) => void;
|
|
3233
3298
|
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
3234
3299
|
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
3235
3300
|
onLoad?: (event: CbObjOnLoad) => void;
|
|
3236
|
-
placeholders?:
|
|
3301
|
+
placeholders?: Placeholders$1;
|
|
3237
3302
|
positionHolderNameOnTop?: boolean;
|
|
3238
3303
|
showBrandIcon?: boolean;
|
|
3239
3304
|
showContextualElement?: boolean;
|
|
3240
3305
|
showInstallmentAmounts?: boolean;
|
|
3306
|
+
storedPaymentMethodId?: string;
|
|
3307
|
+
showStoreDetailsCheckbox?: boolean;
|
|
3241
3308
|
styles?: StylesObject;
|
|
3242
3309
|
supportedShopperInteractions?: string[];
|
|
3243
3310
|
order?: Order;
|
|
@@ -3248,20 +3315,20 @@ declare class BancontactElement extends CardElement {
|
|
|
3248
3315
|
risk?: RiskElement;
|
|
3249
3316
|
};
|
|
3250
3317
|
isDropin?: boolean;
|
|
3251
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
3252
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
3253
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
3318
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
3319
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
3320
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
3254
3321
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
3255
3322
|
url: string;
|
|
3256
3323
|
method: string;
|
|
3257
3324
|
data?: any;
|
|
3258
3325
|
}) => void;
|
|
3259
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
3260
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
3326
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3327
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3261
3328
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3262
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
3263
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
3264
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
3329
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
3330
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
3331
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
3265
3332
|
onOrderUpdated?: (data: {
|
|
3266
3333
|
order: Order;
|
|
3267
3334
|
}) => void;
|
|
@@ -3271,17 +3338,18 @@ declare class BancontactElement extends CardElement {
|
|
|
3271
3338
|
}) => void;
|
|
3272
3339
|
environment?: string;
|
|
3273
3340
|
session?: Session;
|
|
3274
|
-
onComplete?: (state: any, element: UIElement
|
|
3341
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
3275
3342
|
isInstantPayment?: boolean;
|
|
3276
3343
|
isStoredPaymentMethod?: boolean;
|
|
3277
3344
|
oneClick?: boolean;
|
|
3278
|
-
statusType?: "
|
|
3345
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3346
|
+
icon?: string;
|
|
3279
3347
|
amount?: PaymentAmount;
|
|
3280
3348
|
secondaryAmount?: PaymentAmountExtended;
|
|
3281
3349
|
showPayButton?: boolean;
|
|
3282
3350
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
3283
3351
|
loadingContext?: string;
|
|
3284
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
3352
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3285
3353
|
clientKey?: string;
|
|
3286
3354
|
elementRef?: any;
|
|
3287
3355
|
i18n?: Language;
|
|
@@ -3432,7 +3500,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3432
3500
|
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
3433
3501
|
order?: Order;
|
|
3434
3502
|
id?: string;
|
|
3435
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
3503
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
3436
3504
|
amount?: PaymentAmount;
|
|
3437
3505
|
secondaryAmount?: PaymentAmountExtended;
|
|
3438
3506
|
environment?: string;
|
|
@@ -3445,19 +3513,19 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3445
3513
|
session?: Session;
|
|
3446
3514
|
clientKey?: string;
|
|
3447
3515
|
showPayButton?: boolean;
|
|
3448
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
3449
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
3516
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
3517
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
3450
3518
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
3451
3519
|
url: string;
|
|
3452
3520
|
method: string;
|
|
3453
3521
|
data?: any;
|
|
3454
3522
|
}) => void;
|
|
3455
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
3456
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
3523
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3524
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3457
3525
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3458
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
3459
|
-
onEnterKeyPressed?: ((activeElement: Element, component: UIElement
|
|
3460
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
3526
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
3527
|
+
onEnterKeyPressed?: ((activeElement: Element, component: UIElement) => void) & ((activeElement: Element, component: UIElement) => void);
|
|
3528
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
3461
3529
|
onOrderUpdated?: (data: {
|
|
3462
3530
|
order: Order;
|
|
3463
3531
|
}) => void;
|
|
@@ -3466,24 +3534,25 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3466
3534
|
reject: () => void;
|
|
3467
3535
|
}) => void;
|
|
3468
3536
|
elementRef?: any;
|
|
3469
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
3537
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3470
3538
|
brandsConfiguration?: CardBrandsConfiguration;
|
|
3471
3539
|
isStoredPaymentMethod?: boolean;
|
|
3472
|
-
onComplete?: (state: any, element: UIElement
|
|
3473
|
-
challengeWindowSize?: "
|
|
3540
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
3541
|
+
challengeWindowSize?: "01" | "02" | "03" | "04" | "05";
|
|
3474
3542
|
isDropin?: boolean;
|
|
3475
3543
|
isInstantPayment?: boolean;
|
|
3476
3544
|
oneClick?: boolean;
|
|
3477
3545
|
storedPaymentMethodId?: string;
|
|
3478
|
-
statusType?: "
|
|
3546
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3479
3547
|
icon?: string;
|
|
3480
3548
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
3481
3549
|
paymentMethodType?: string;
|
|
3482
3550
|
autoFocus?: boolean;
|
|
3483
3551
|
onLoad?: (event: CbObjOnLoad) => void;
|
|
3484
|
-
placeholders?:
|
|
3552
|
+
placeholders?: Placeholders$1;
|
|
3553
|
+
onAddressLookup?: OnAddressLookupType;
|
|
3485
3554
|
expiryMonth?: string;
|
|
3486
|
-
billingAddressMode?: "
|
|
3555
|
+
billingAddressMode?: "full" | "partial" | "none";
|
|
3487
3556
|
brands?: string[];
|
|
3488
3557
|
disableIOSArrowKeys?: boolean;
|
|
3489
3558
|
disclaimerMessage?: DisclaimerMsgObject;
|
|
@@ -3499,6 +3568,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3499
3568
|
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
3500
3569
|
onBrand?: (event: CbObjOnBrand) => void;
|
|
3501
3570
|
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
3571
|
+
onAllValid?: (event: CbObjOnAllValid) => void;
|
|
3502
3572
|
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
3503
3573
|
showStoreDetailsCheckbox?: boolean;
|
|
3504
3574
|
styles?: StylesObject;
|
|
@@ -3512,6 +3582,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3512
3582
|
paymentMethod: any;
|
|
3513
3583
|
browserInfo: BrowserInfo;
|
|
3514
3584
|
};
|
|
3585
|
+
protected submitAnalytics(analyticsObj: SendAnalyticsObject): void;
|
|
3515
3586
|
updateStyles(stylesObj: any): this;
|
|
3516
3587
|
setFocusOn(frame: any): this;
|
|
3517
3588
|
processBinLookupResponse(binLookupResponse: any): this;
|
|
@@ -3586,20 +3657,20 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3586
3657
|
risk?: RiskElement;
|
|
3587
3658
|
};
|
|
3588
3659
|
isDropin?: boolean;
|
|
3589
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
3590
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
3591
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
3660
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
3661
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
3662
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
3592
3663
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
3593
3664
|
url: string;
|
|
3594
3665
|
method: string;
|
|
3595
3666
|
data?: any;
|
|
3596
3667
|
}) => void;
|
|
3597
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
3598
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
3668
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3669
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3599
3670
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3600
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
3601
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
3602
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
3671
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
3672
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
3673
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
3603
3674
|
onOrderUpdated?: (data: {
|
|
3604
3675
|
order: Order;
|
|
3605
3676
|
}) => void;
|
|
@@ -3609,12 +3680,12 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3609
3680
|
}) => void;
|
|
3610
3681
|
environment?: string;
|
|
3611
3682
|
session?: Session;
|
|
3612
|
-
onComplete?: (state: any, element: UIElement
|
|
3683
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
3613
3684
|
isInstantPayment?: boolean;
|
|
3614
3685
|
isStoredPaymentMethod?: boolean;
|
|
3615
3686
|
oneClick?: boolean;
|
|
3616
3687
|
storedPaymentMethodId?: string;
|
|
3617
|
-
statusType?: "
|
|
3688
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3618
3689
|
name?: string;
|
|
3619
3690
|
icon?: string;
|
|
3620
3691
|
amount?: PaymentAmount;
|
|
@@ -3622,7 +3693,7 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3622
3693
|
showPayButton?: boolean;
|
|
3623
3694
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
3624
3695
|
loadingContext?: string;
|
|
3625
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
3696
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3626
3697
|
clientKey?: string;
|
|
3627
3698
|
elementRef?: any;
|
|
3628
3699
|
i18n?: Language;
|
|
@@ -3654,20 +3725,20 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
3654
3725
|
risk?: RiskElement;
|
|
3655
3726
|
};
|
|
3656
3727
|
isDropin?: boolean;
|
|
3657
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
3658
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
3659
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
3728
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
3729
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
3730
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
3660
3731
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
3661
3732
|
url: string;
|
|
3662
3733
|
method: string;
|
|
3663
3734
|
data?: any;
|
|
3664
3735
|
}) => void;
|
|
3665
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
3666
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
3736
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3737
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3667
3738
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3668
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
3669
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
3670
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
3739
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
3740
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
3741
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
3671
3742
|
onOrderUpdated?: (data: {
|
|
3672
3743
|
order: Order;
|
|
3673
3744
|
}) => void;
|
|
@@ -3677,12 +3748,12 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
3677
3748
|
}) => void;
|
|
3678
3749
|
environment?: string;
|
|
3679
3750
|
session?: Session;
|
|
3680
|
-
onComplete?: (state: any, element: UIElement
|
|
3751
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
3681
3752
|
isInstantPayment?: boolean;
|
|
3682
3753
|
isStoredPaymentMethod?: boolean;
|
|
3683
3754
|
oneClick?: boolean;
|
|
3684
3755
|
storedPaymentMethodId?: string;
|
|
3685
|
-
statusType?: "
|
|
3756
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3686
3757
|
name?: string;
|
|
3687
3758
|
icon?: string;
|
|
3688
3759
|
amount?: PaymentAmount;
|
|
@@ -3690,7 +3761,7 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
3690
3761
|
showPayButton?: boolean;
|
|
3691
3762
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
3692
3763
|
loadingContext?: string;
|
|
3693
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
3764
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3694
3765
|
clientKey?: string;
|
|
3695
3766
|
elementRef?: any;
|
|
3696
3767
|
i18n?: Language;
|
|
@@ -3723,20 +3794,20 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
3723
3794
|
risk?: RiskElement;
|
|
3724
3795
|
};
|
|
3725
3796
|
isDropin?: boolean;
|
|
3726
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
3727
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
3728
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
3797
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
3798
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
3799
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
3729
3800
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
3730
3801
|
url: string;
|
|
3731
3802
|
method: string;
|
|
3732
3803
|
data?: any;
|
|
3733
3804
|
}) => void;
|
|
3734
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
3735
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
3805
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3806
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3736
3807
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3737
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
3738
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
3739
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
3808
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
3809
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
3810
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
3740
3811
|
onOrderUpdated?: (data: {
|
|
3741
3812
|
order: Order;
|
|
3742
3813
|
}) => void;
|
|
@@ -3746,12 +3817,12 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
3746
3817
|
}) => void;
|
|
3747
3818
|
environment?: string;
|
|
3748
3819
|
session?: Session;
|
|
3749
|
-
onComplete?: (state: any, element: UIElement
|
|
3820
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
3750
3821
|
isInstantPayment?: boolean;
|
|
3751
3822
|
isStoredPaymentMethod?: boolean;
|
|
3752
3823
|
oneClick?: boolean;
|
|
3753
3824
|
storedPaymentMethodId?: string;
|
|
3754
|
-
statusType?: "
|
|
3825
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3755
3826
|
name?: string;
|
|
3756
3827
|
icon?: string;
|
|
3757
3828
|
amount?: PaymentAmount;
|
|
@@ -3759,7 +3830,7 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
3759
3830
|
showPayButton?: boolean;
|
|
3760
3831
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
3761
3832
|
loadingContext?: string;
|
|
3762
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
3833
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3763
3834
|
clientKey?: string;
|
|
3764
3835
|
elementRef?: any;
|
|
3765
3836
|
i18n?: Language;
|
|
@@ -3809,20 +3880,20 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
3809
3880
|
risk?: RiskElement;
|
|
3810
3881
|
};
|
|
3811
3882
|
isDropin?: boolean;
|
|
3812
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
3813
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
3814
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
3883
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
3884
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
3885
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
3815
3886
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
3816
3887
|
url: string;
|
|
3817
3888
|
method: string;
|
|
3818
3889
|
data?: any;
|
|
3819
3890
|
}) => void;
|
|
3820
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
3821
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
3891
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3892
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3822
3893
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3823
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
3824
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
3825
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
3894
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
3895
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
3896
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
3826
3897
|
onOrderUpdated?: (data: {
|
|
3827
3898
|
order: Order;
|
|
3828
3899
|
}) => void;
|
|
@@ -3832,19 +3903,19 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
3832
3903
|
}) => void;
|
|
3833
3904
|
environment?: string;
|
|
3834
3905
|
session?: Session;
|
|
3835
|
-
onComplete?: (state: any, element: UIElement
|
|
3906
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
3836
3907
|
isInstantPayment?: boolean;
|
|
3837
3908
|
isStoredPaymentMethod?: boolean;
|
|
3838
3909
|
oneClick?: boolean;
|
|
3839
3910
|
storedPaymentMethodId?: string;
|
|
3840
|
-
statusType?: "
|
|
3911
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3841
3912
|
name?: string;
|
|
3842
3913
|
icon?: string;
|
|
3843
3914
|
amount?: PaymentAmount;
|
|
3844
3915
|
secondaryAmount?: PaymentAmountExtended;
|
|
3845
3916
|
showPayButton?: boolean;
|
|
3846
3917
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
3847
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
3918
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3848
3919
|
clientKey?: string;
|
|
3849
3920
|
elementRef?: any;
|
|
3850
3921
|
label?: string;
|
|
@@ -3993,20 +4064,20 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
3993
4064
|
risk?: RiskElement;
|
|
3994
4065
|
};
|
|
3995
4066
|
isDropin?: boolean;
|
|
3996
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
3997
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
3998
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
4067
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
4068
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
4069
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
3999
4070
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
4000
4071
|
url: string;
|
|
4001
4072
|
method: string;
|
|
4002
4073
|
data?: any;
|
|
4003
4074
|
}) => void;
|
|
4004
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
4005
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
4075
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4076
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4006
4077
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4007
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
4008
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
4009
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
4078
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
4079
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
4080
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
4010
4081
|
onOrderUpdated?: (data: {
|
|
4011
4082
|
order: Order;
|
|
4012
4083
|
}) => void;
|
|
@@ -4016,12 +4087,12 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4016
4087
|
}) => void;
|
|
4017
4088
|
environment?: string;
|
|
4018
4089
|
session?: Session;
|
|
4019
|
-
onComplete?: (state: any, element: UIElement
|
|
4090
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
4020
4091
|
isInstantPayment?: boolean;
|
|
4021
4092
|
isStoredPaymentMethod?: boolean;
|
|
4022
4093
|
oneClick?: boolean;
|
|
4023
4094
|
storedPaymentMethodId?: string;
|
|
4024
|
-
statusType?: "
|
|
4095
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4025
4096
|
name?: string;
|
|
4026
4097
|
icon?: string;
|
|
4027
4098
|
amount?: PaymentAmount;
|
|
@@ -4029,7 +4100,7 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4029
4100
|
showPayButton?: boolean;
|
|
4030
4101
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
4031
4102
|
loadingContext?: string;
|
|
4032
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
4103
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4033
4104
|
clientKey?: string;
|
|
4034
4105
|
elementRef?: any;
|
|
4035
4106
|
i18n?: Language;
|
|
@@ -4046,7 +4117,7 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4046
4117
|
hasHolderName?: boolean;
|
|
4047
4118
|
enableStoreDetails: boolean;
|
|
4048
4119
|
bankAccountNumber: string;
|
|
4049
|
-
placeholders?:
|
|
4120
|
+
placeholders?: Placeholders;
|
|
4050
4121
|
order?: Order;
|
|
4051
4122
|
modules?: {
|
|
4052
4123
|
srPanel?: SRPanel;
|
|
@@ -4055,20 +4126,20 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4055
4126
|
risk?: RiskElement;
|
|
4056
4127
|
};
|
|
4057
4128
|
isDropin?: boolean;
|
|
4058
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
4059
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
4060
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
4129
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
4130
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
4131
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
4061
4132
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
4062
4133
|
url: string;
|
|
4063
4134
|
method: string;
|
|
4064
4135
|
data?: any;
|
|
4065
4136
|
}) => void;
|
|
4066
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
4067
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
4137
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4138
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4068
4139
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4069
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
4070
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
4071
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
4140
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
4141
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
4142
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
4072
4143
|
onOrderUpdated?: (data: {
|
|
4073
4144
|
order: Order;
|
|
4074
4145
|
}) => void;
|
|
@@ -4078,11 +4149,11 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4078
4149
|
}) => void;
|
|
4079
4150
|
environment?: string;
|
|
4080
4151
|
session?: Session;
|
|
4081
|
-
onComplete?: (state: any, element: UIElement
|
|
4152
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
4082
4153
|
isInstantPayment?: boolean;
|
|
4083
4154
|
isStoredPaymentMethod?: boolean;
|
|
4084
4155
|
oneClick?: boolean;
|
|
4085
|
-
statusType?: "
|
|
4156
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4086
4157
|
type?: string;
|
|
4087
4158
|
name?: string;
|
|
4088
4159
|
icon?: string;
|
|
@@ -4091,7 +4162,7 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4091
4162
|
showPayButton?: boolean;
|
|
4092
4163
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
4093
4164
|
loadingContext?: string;
|
|
4094
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
4165
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4095
4166
|
clientKey?: string;
|
|
4096
4167
|
elementRef?: any;
|
|
4097
4168
|
i18n?: Language;
|
|
@@ -4310,15 +4381,86 @@ declare class RatePayDirectDebit extends OpenInvoiceContainer {
|
|
|
4310
4381
|
formatProps(props: any): any;
|
|
4311
4382
|
}
|
|
4312
4383
|
|
|
4384
|
+
/**
|
|
4385
|
+
* For mobile:
|
|
4386
|
+
* We should show upi_collect or upi_intent depending on if `apps` are returned in /paymentMethods response
|
|
4387
|
+
* The upi_qr should always be on the second tab
|
|
4388
|
+
*
|
|
4389
|
+
* For non-mobile:
|
|
4390
|
+
* We should never show the upi_intent (ignore `apps` in /paymentMethods response)
|
|
4391
|
+
* The upi_qr should be on the first tab and the upi_collect should be on second tab
|
|
4392
|
+
*/
|
|
4313
4393
|
declare class UPI extends UIElement<UPIConfiguration> {
|
|
4314
4394
|
static type: TxVariants;
|
|
4315
4395
|
static txVariants: TxVariants[];
|
|
4316
|
-
private
|
|
4317
|
-
|
|
4318
|
-
|
|
4396
|
+
private selectedMode;
|
|
4397
|
+
constructor(checkout: ICore, props: UPIConfiguration);
|
|
4398
|
+
formatProps(props: UPIConfiguration): {
|
|
4399
|
+
defaultMode: UpiMode;
|
|
4400
|
+
apps: {
|
|
4401
|
+
type: TxVariants;
|
|
4402
|
+
id: string;
|
|
4403
|
+
name: string;
|
|
4404
|
+
}[];
|
|
4405
|
+
url?: string;
|
|
4406
|
+
paymentData?: string;
|
|
4407
|
+
qrCodeData?: string;
|
|
4408
|
+
brandLogo?: string;
|
|
4409
|
+
order?: Order;
|
|
4410
|
+
modules?: {
|
|
4411
|
+
srPanel?: SRPanel;
|
|
4412
|
+
analytics?: AnalyticsModule;
|
|
4413
|
+
resources?: Resources;
|
|
4414
|
+
risk?: RiskElement;
|
|
4415
|
+
};
|
|
4416
|
+
isDropin?: boolean;
|
|
4417
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
4418
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
4419
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
4420
|
+
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
4421
|
+
url: string;
|
|
4422
|
+
method: string;
|
|
4423
|
+
data?: any;
|
|
4424
|
+
}) => void;
|
|
4425
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4426
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4427
|
+
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4428
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
4429
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
4430
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
4431
|
+
onOrderUpdated?: (data: {
|
|
4432
|
+
order: Order;
|
|
4433
|
+
}) => void;
|
|
4434
|
+
onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
|
|
4435
|
+
resolve: (response: PaymentMethodsResponse) => void;
|
|
4436
|
+
reject: () => void;
|
|
4437
|
+
}) => void;
|
|
4438
|
+
environment?: string;
|
|
4439
|
+
session?: Session;
|
|
4440
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
4441
|
+
isInstantPayment?: boolean;
|
|
4442
|
+
isStoredPaymentMethod?: boolean;
|
|
4443
|
+
oneClick?: boolean;
|
|
4444
|
+
storedPaymentMethodId?: string;
|
|
4445
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4446
|
+
type?: string;
|
|
4447
|
+
name?: string;
|
|
4448
|
+
icon?: string;
|
|
4449
|
+
amount?: PaymentAmount;
|
|
4450
|
+
secondaryAmount?: PaymentAmountExtended;
|
|
4451
|
+
showPayButton?: boolean;
|
|
4452
|
+
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
4453
|
+
loadingContext?: string;
|
|
4454
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4455
|
+
clientKey?: string;
|
|
4456
|
+
elementRef?: any;
|
|
4457
|
+
i18n?: Language;
|
|
4458
|
+
label?: string;
|
|
4459
|
+
paymentMethodType?: string;
|
|
4319
4460
|
};
|
|
4320
4461
|
get isValid(): boolean;
|
|
4321
4462
|
formatData(): UpiPaymentData;
|
|
4463
|
+
get paymentType(): UpiType;
|
|
4322
4464
|
private onUpdateMode;
|
|
4323
4465
|
private renderContent;
|
|
4324
4466
|
render(): h.JSX.Element;
|
|
@@ -4382,20 +4524,20 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
4382
4524
|
risk?: RiskElement;
|
|
4383
4525
|
};
|
|
4384
4526
|
isDropin?: boolean;
|
|
4385
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
4386
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
4387
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
4527
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
4528
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
4529
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
4388
4530
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
4389
4531
|
url: string;
|
|
4390
4532
|
method: string;
|
|
4391
4533
|
data?: any;
|
|
4392
4534
|
}) => void;
|
|
4393
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
4394
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
4535
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4536
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4395
4537
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4396
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
4397
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
4398
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
4538
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
4539
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
4540
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
4399
4541
|
onOrderUpdated?: (data: {
|
|
4400
4542
|
order: Order;
|
|
4401
4543
|
}) => void;
|
|
@@ -4405,12 +4547,12 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
4405
4547
|
}) => void;
|
|
4406
4548
|
environment?: string;
|
|
4407
4549
|
session?: Session;
|
|
4408
|
-
onComplete?: (state: any, element: UIElement
|
|
4550
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
4409
4551
|
isInstantPayment?: boolean;
|
|
4410
4552
|
isStoredPaymentMethod?: boolean;
|
|
4411
4553
|
oneClick?: boolean;
|
|
4412
4554
|
storedPaymentMethodId?: string;
|
|
4413
|
-
statusType?: "
|
|
4555
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4414
4556
|
name?: string;
|
|
4415
4557
|
icon?: string;
|
|
4416
4558
|
amount?: PaymentAmount;
|
|
@@ -4418,7 +4560,7 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
4418
4560
|
showPayButton?: boolean;
|
|
4419
4561
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
4420
4562
|
loadingContext?: string;
|
|
4421
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
4563
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4422
4564
|
clientKey?: string;
|
|
4423
4565
|
elementRef?: any;
|
|
4424
4566
|
i18n?: Language;
|
|
@@ -4450,20 +4592,20 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
4450
4592
|
risk?: RiskElement;
|
|
4451
4593
|
};
|
|
4452
4594
|
isDropin?: boolean;
|
|
4453
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
4454
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
4455
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
4595
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
4596
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
4597
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
4456
4598
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
4457
4599
|
url: string;
|
|
4458
4600
|
method: string;
|
|
4459
4601
|
data?: any;
|
|
4460
4602
|
}) => void;
|
|
4461
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
4462
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
4603
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4604
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4463
4605
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4464
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
4465
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
4466
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
4606
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
4607
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
4608
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
4467
4609
|
onOrderUpdated?: (data: {
|
|
4468
4610
|
order: Order;
|
|
4469
4611
|
}) => void;
|
|
@@ -4473,12 +4615,12 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
4473
4615
|
}) => void;
|
|
4474
4616
|
environment?: string;
|
|
4475
4617
|
session?: Session;
|
|
4476
|
-
onComplete?: (state: any, element: UIElement
|
|
4618
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
4477
4619
|
isInstantPayment?: boolean;
|
|
4478
4620
|
isStoredPaymentMethod?: boolean;
|
|
4479
4621
|
oneClick?: boolean;
|
|
4480
4622
|
storedPaymentMethodId?: string;
|
|
4481
|
-
statusType?: "
|
|
4623
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4482
4624
|
name?: string;
|
|
4483
4625
|
icon?: string;
|
|
4484
4626
|
amount?: PaymentAmount;
|
|
@@ -4486,7 +4628,7 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
4486
4628
|
showPayButton?: boolean;
|
|
4487
4629
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
4488
4630
|
loadingContext?: string;
|
|
4489
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
4631
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4490
4632
|
clientKey?: string;
|
|
4491
4633
|
elementRef?: any;
|
|
4492
4634
|
i18n?: Language;
|
|
@@ -4516,7 +4658,7 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
4516
4658
|
deliveryAddress?: AddressData;
|
|
4517
4659
|
bankAccount?: BankDetailsSchema;
|
|
4518
4660
|
};
|
|
4519
|
-
onChange?: (state: any, element?: UIElement
|
|
4661
|
+
onChange?: (state: any, element?: UIElement) => void;
|
|
4520
4662
|
payButton?: any;
|
|
4521
4663
|
visibility?: OpenInvoiceVisibility;
|
|
4522
4664
|
personalDetailsRequiredFields: string[];
|
|
@@ -4531,19 +4673,19 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
4531
4673
|
risk?: RiskElement;
|
|
4532
4674
|
};
|
|
4533
4675
|
isDropin?: boolean;
|
|
4534
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
4535
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
4676
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
4677
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
4536
4678
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
4537
4679
|
url: string;
|
|
4538
4680
|
method: string;
|
|
4539
4681
|
data?: any;
|
|
4540
4682
|
}) => void;
|
|
4541
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
4542
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
4683
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4684
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4543
4685
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4544
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
4545
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
4546
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
4686
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
4687
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
4688
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
4547
4689
|
onOrderUpdated?: (data: {
|
|
4548
4690
|
order: Order;
|
|
4549
4691
|
}) => void;
|
|
@@ -4553,12 +4695,12 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
4553
4695
|
}) => void;
|
|
4554
4696
|
environment?: string;
|
|
4555
4697
|
session?: Session;
|
|
4556
|
-
onComplete?: (state: any, element: UIElement
|
|
4698
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
4557
4699
|
isInstantPayment?: boolean;
|
|
4558
4700
|
isStoredPaymentMethod?: boolean;
|
|
4559
4701
|
oneClick?: boolean;
|
|
4560
4702
|
storedPaymentMethodId?: string;
|
|
4561
|
-
statusType?: "
|
|
4703
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4562
4704
|
type?: string;
|
|
4563
4705
|
name?: string;
|
|
4564
4706
|
icon?: string;
|
|
@@ -4566,7 +4708,7 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
4566
4708
|
secondaryAmount?: PaymentAmountExtended;
|
|
4567
4709
|
showPayButton?: boolean;
|
|
4568
4710
|
loadingContext?: string;
|
|
4569
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
4711
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4570
4712
|
clientKey?: string;
|
|
4571
4713
|
elementRef?: any;
|
|
4572
4714
|
i18n?: Language;
|
|
@@ -4709,6 +4851,7 @@ declare const ComponentsMap: {
|
|
|
4709
4851
|
upi: typeof UPI;
|
|
4710
4852
|
upi_qr: typeof UPI;
|
|
4711
4853
|
upi_collect: typeof UPI;
|
|
4854
|
+
upi_intent: typeof UPI;
|
|
4712
4855
|
/** Await */
|
|
4713
4856
|
/** Giftcard */
|
|
4714
4857
|
giftcard: typeof GiftcardElement;
|
|
@@ -4720,13 +4863,13 @@ declare const ComponentsMap: {
|
|
|
4720
4863
|
/**
|
|
4721
4864
|
* Available components
|
|
4722
4865
|
*/
|
|
4723
|
-
type PaymentMethods = typeof ComponentsMap;
|
|
4866
|
+
type PaymentMethods$1 = typeof ComponentsMap;
|
|
4724
4867
|
/**
|
|
4725
4868
|
* Options for a component
|
|
4726
4869
|
*/
|
|
4727
|
-
type PaymentMethodOptions<P extends keyof PaymentMethods> = InstanceType<PaymentMethods[P]>['props'];
|
|
4870
|
+
type PaymentMethodOptions<P extends keyof PaymentMethods$1> = InstanceType<PaymentMethods$1[P]>['props'];
|
|
4728
4871
|
type PaymentMethodsConfigurationMap = {
|
|
4729
|
-
[key in keyof PaymentMethods]?: Partial<PaymentMethodOptions<key>>;
|
|
4872
|
+
[key in keyof PaymentMethods$1]?: Partial<PaymentMethodOptions<key>>;
|
|
4730
4873
|
};
|
|
4731
4874
|
type PaymentActionTypesMap = {
|
|
4732
4875
|
[key in PaymentActionsType]?: Partial<UIElementProps>;
|
|
@@ -4856,14 +4999,75 @@ interface DropinComponentState {
|
|
|
4856
4999
|
}
|
|
4857
5000
|
interface IDropin {
|
|
4858
5001
|
/**
|
|
4859
|
-
* Used to make the Dropin display the final animation
|
|
4860
|
-
*
|
|
4861
|
-
* @internal
|
|
4862
|
-
* @param type - animation type
|
|
5002
|
+
* Used to make the Dropin display the final animation
|
|
5003
|
+
*
|
|
5004
|
+
* @internal
|
|
5005
|
+
* @param type - animation type
|
|
5006
|
+
*/
|
|
5007
|
+
displayFinalAnimation(type: 'success' | 'error'): void;
|
|
5008
|
+
activePaymentMethod: () => null;
|
|
5009
|
+
closeActivePaymentMethod: () => void;
|
|
5010
|
+
}
|
|
5011
|
+
|
|
5012
|
+
declare class Session {
|
|
5013
|
+
private readonly session;
|
|
5014
|
+
private readonly storage;
|
|
5015
|
+
readonly clientKey: string;
|
|
5016
|
+
readonly loadingContext: string;
|
|
5017
|
+
configuration: SessionConfiguration;
|
|
5018
|
+
constructor(rawSession: Partial<CheckoutSession>, clientKey: string, loadingContext: string);
|
|
5019
|
+
get shopperLocale(): string;
|
|
5020
|
+
get id(): string;
|
|
5021
|
+
get data(): string;
|
|
5022
|
+
/**
|
|
5023
|
+
* Updates the session.data with the latest data blob
|
|
5024
|
+
*/
|
|
5025
|
+
private updateSessionData;
|
|
5026
|
+
/**
|
|
5027
|
+
* Fetches data from a session
|
|
4863
5028
|
*/
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
5029
|
+
setupSession(options: any): Promise<CheckoutSessionSetupResponse>;
|
|
5030
|
+
/**
|
|
5031
|
+
* Submits a session payment
|
|
5032
|
+
*/
|
|
5033
|
+
submitPayment(data: any): Promise<CheckoutSessionPaymentResponse>;
|
|
5034
|
+
/**
|
|
5035
|
+
* Submits session payment additional details
|
|
5036
|
+
*/
|
|
5037
|
+
submitDetails(data: AdditionalDetailsData['data']): Promise<CheckoutSessionDetailsResponse>;
|
|
5038
|
+
/**
|
|
5039
|
+
* Checks the balance for a payment method
|
|
5040
|
+
*/
|
|
5041
|
+
checkBalance(data: any): Promise<CheckoutSessionBalanceResponse>;
|
|
5042
|
+
/**
|
|
5043
|
+
* Creates an order for the current session
|
|
5044
|
+
*/
|
|
5045
|
+
createOrder(): Promise<CheckoutSessionOrdersResponse>;
|
|
5046
|
+
/**
|
|
5047
|
+
* Cancels an order for the current session
|
|
5048
|
+
*/
|
|
5049
|
+
cancelOrder(data: onOrderCancelData): Promise<CheckoutSessionOrdersResponse>;
|
|
5050
|
+
/**
|
|
5051
|
+
* Gets the stored session but only if the current id and the stored id match
|
|
5052
|
+
*/
|
|
5053
|
+
getStoredSession(): CheckoutSession;
|
|
5054
|
+
/**
|
|
5055
|
+
* Stores the session
|
|
5056
|
+
*/
|
|
5057
|
+
storeSession(): void;
|
|
5058
|
+
/**
|
|
5059
|
+
* Clears the stored session
|
|
5060
|
+
*/
|
|
5061
|
+
removeStoredSession(): void;
|
|
5062
|
+
}
|
|
5063
|
+
|
|
5064
|
+
declare class PaymentMethods {
|
|
5065
|
+
paymentMethods: PaymentMethod[];
|
|
5066
|
+
storedPaymentMethods: StoredPaymentMethod[];
|
|
5067
|
+
constructor(response: PaymentMethodsResponse, options?: {});
|
|
5068
|
+
private mapCreatedComponentType;
|
|
5069
|
+
has(paymentMethod: string): boolean;
|
|
5070
|
+
find(paymentMethod: string): PaymentMethod;
|
|
4867
5071
|
}
|
|
4868
5072
|
|
|
4869
5073
|
interface ICore {
|
|
@@ -4877,7 +5081,7 @@ interface ICore {
|
|
|
4877
5081
|
createFromAction(action: PaymentAction, options: any): UIElement;
|
|
4878
5082
|
storeElementReference(element: UIElement): void;
|
|
4879
5083
|
options: CoreConfiguration;
|
|
4880
|
-
paymentMethodsResponse: PaymentMethods
|
|
5084
|
+
paymentMethodsResponse: PaymentMethods;
|
|
4881
5085
|
session?: Session;
|
|
4882
5086
|
}
|
|
4883
5087
|
type PaymentCompletedData = SessionsResponse | {
|
|
@@ -5620,117 +5824,6 @@ type DecodeObject = {
|
|
|
5620
5824
|
data?: string;
|
|
5621
5825
|
};
|
|
5622
5826
|
|
|
5623
|
-
interface InstallmentOptions {
|
|
5624
|
-
[key: string]: {
|
|
5625
|
-
values: number[];
|
|
5626
|
-
plans?: string[];
|
|
5627
|
-
preselectedValue?: number;
|
|
5628
|
-
};
|
|
5629
|
-
}
|
|
5630
|
-
|
|
5631
|
-
type CheckoutSession = {
|
|
5632
|
-
id: string;
|
|
5633
|
-
sessionData: string;
|
|
5634
|
-
shopperLocale?: string;
|
|
5635
|
-
shopperEmail?: string;
|
|
5636
|
-
telephoneNumber?: string;
|
|
5637
|
-
};
|
|
5638
|
-
type SessionConfiguration = {
|
|
5639
|
-
installmentOptions?: InstallmentOptions;
|
|
5640
|
-
enableStoreDetails?: boolean;
|
|
5641
|
-
};
|
|
5642
|
-
type CheckoutSessionSetupResponse = {
|
|
5643
|
-
id: string;
|
|
5644
|
-
sessionData: string;
|
|
5645
|
-
countryCode?: string;
|
|
5646
|
-
amount: PaymentAmount;
|
|
5647
|
-
expiresAt: string;
|
|
5648
|
-
paymentMethods: any;
|
|
5649
|
-
returnUrl: string;
|
|
5650
|
-
configuration: SessionConfiguration;
|
|
5651
|
-
/**
|
|
5652
|
-
* 'shopperLocale' set during session creation.
|
|
5653
|
-
* @defaultValue en-US
|
|
5654
|
-
*/
|
|
5655
|
-
shopperLocale: string;
|
|
5656
|
-
};
|
|
5657
|
-
type CheckoutSessionPaymentResponse = {
|
|
5658
|
-
sessionData: string;
|
|
5659
|
-
sessionResult: string;
|
|
5660
|
-
status?: string;
|
|
5661
|
-
resultCode: ResultCode;
|
|
5662
|
-
action?: PaymentAction;
|
|
5663
|
-
};
|
|
5664
|
-
type CheckoutSessionDetailsResponse = {
|
|
5665
|
-
sessionData: string;
|
|
5666
|
-
sessionResult: string;
|
|
5667
|
-
resultCode: ResultCode;
|
|
5668
|
-
status?: string;
|
|
5669
|
-
action?: PaymentAction;
|
|
5670
|
-
};
|
|
5671
|
-
type CheckoutSessionBalanceResponse = {
|
|
5672
|
-
sessionData: string;
|
|
5673
|
-
balance?: PaymentAmount;
|
|
5674
|
-
transactionLimit?: PaymentAmount;
|
|
5675
|
-
};
|
|
5676
|
-
type CheckoutSessionOrdersResponse = {
|
|
5677
|
-
sessionData: string;
|
|
5678
|
-
orderData: string;
|
|
5679
|
-
pspReference: string;
|
|
5680
|
-
};
|
|
5681
|
-
|
|
5682
|
-
declare class Session {
|
|
5683
|
-
private readonly session;
|
|
5684
|
-
private readonly storage;
|
|
5685
|
-
readonly clientKey: string;
|
|
5686
|
-
readonly loadingContext: string;
|
|
5687
|
-
configuration: SessionConfiguration;
|
|
5688
|
-
constructor(rawSession: Partial<CheckoutSession>, clientKey: string, loadingContext: string);
|
|
5689
|
-
get shopperLocale(): string;
|
|
5690
|
-
get id(): string;
|
|
5691
|
-
get data(): string;
|
|
5692
|
-
/**
|
|
5693
|
-
* Updates the session.data with the latest data blob
|
|
5694
|
-
*/
|
|
5695
|
-
private updateSessionData;
|
|
5696
|
-
/**
|
|
5697
|
-
* Fetches data from a session
|
|
5698
|
-
*/
|
|
5699
|
-
setupSession(options: any): Promise<CheckoutSessionSetupResponse>;
|
|
5700
|
-
/**
|
|
5701
|
-
* Submits a session payment
|
|
5702
|
-
*/
|
|
5703
|
-
submitPayment(data: any): Promise<CheckoutSessionPaymentResponse>;
|
|
5704
|
-
/**
|
|
5705
|
-
* Submits session payment additional details
|
|
5706
|
-
*/
|
|
5707
|
-
submitDetails(data: AdditionalDetailsData['data']): Promise<CheckoutSessionDetailsResponse>;
|
|
5708
|
-
/**
|
|
5709
|
-
* Checks the balance for a payment method
|
|
5710
|
-
*/
|
|
5711
|
-
checkBalance(data: any): Promise<CheckoutSessionBalanceResponse>;
|
|
5712
|
-
/**
|
|
5713
|
-
* Creates an order for the current session
|
|
5714
|
-
*/
|
|
5715
|
-
createOrder(): Promise<CheckoutSessionOrdersResponse>;
|
|
5716
|
-
/**
|
|
5717
|
-
* Cancels an order for the current session
|
|
5718
|
-
*/
|
|
5719
|
-
cancelOrder(data: onOrderCancelData): Promise<CheckoutSessionOrdersResponse>;
|
|
5720
|
-
/**
|
|
5721
|
-
* Gets the stored session but only if the current id and the stored id match
|
|
5722
|
-
*/
|
|
5723
|
-
getStoredSession(): CheckoutSession;
|
|
5724
|
-
/**
|
|
5725
|
-
* Stores the session
|
|
5726
|
-
*/
|
|
5727
|
-
storeSession(): void;
|
|
5728
|
-
/**
|
|
5729
|
-
* Clears the stored session
|
|
5730
|
-
*/
|
|
5731
|
-
removeStoredSession(): void;
|
|
5732
|
-
}
|
|
5733
|
-
|
|
5734
5827
|
declare class CardElement extends UIElement<CardConfiguration> {
|
|
5735
5828
|
static type: TxVariants;
|
|
5736
5829
|
private readonly clickToPayService;
|
|
@@ -5739,147 +5832,10 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5739
5832
|
*/
|
|
5740
5833
|
private clickToPayRef;
|
|
5741
5834
|
constructor(checkout: ICore, props?: CardConfiguration);
|
|
5742
|
-
protected static defaultProps:
|
|
5743
|
-
onBinLookup: () => void;
|
|
5744
|
-
_disableClickToPay: boolean;
|
|
5745
|
-
};
|
|
5835
|
+
protected static defaultProps: any;
|
|
5746
5836
|
setStatus(status: UIElementStatus, props?: any): this;
|
|
5747
5837
|
private setClickToPayRef;
|
|
5748
|
-
formatProps(props: CardConfiguration):
|
|
5749
|
-
storedPaymentMethodId: string;
|
|
5750
|
-
holderNameRequired: boolean;
|
|
5751
|
-
hasCVC: boolean;
|
|
5752
|
-
billingAddressRequired: boolean;
|
|
5753
|
-
/** props.brand will be specified in the case of a StoredCard or a Bancontact component, for a regular Card we default it to 'card' */
|
|
5754
|
-
brand: string;
|
|
5755
|
-
countryCode: string;
|
|
5756
|
-
configuration: {
|
|
5757
|
-
socialSecurityNumberMode: SocialSecurityMode;
|
|
5758
|
-
visaSrciDpaId?: string;
|
|
5759
|
-
visaSrcInitiatorId?: string;
|
|
5760
|
-
mcSrcClientId?: string;
|
|
5761
|
-
mcDpaId?: string;
|
|
5762
|
-
merchantIdentifier?: string;
|
|
5763
|
-
merchantOrigin?: string;
|
|
5764
|
-
gatewayMerchantId?: string;
|
|
5765
|
-
publicKeyId?: string;
|
|
5766
|
-
region?: string;
|
|
5767
|
-
merchantName?: string;
|
|
5768
|
-
merchantId?: string;
|
|
5769
|
-
intent?: string;
|
|
5770
|
-
koreanAuthenticationRequired?: boolean;
|
|
5771
|
-
icon?: string;
|
|
5772
|
-
brandsConfiguration?: CardBrandsConfiguration;
|
|
5773
|
-
};
|
|
5774
|
-
brandsConfiguration: CardBrandsConfiguration;
|
|
5775
|
-
icon: string;
|
|
5776
|
-
installmentOptions: InstallmentOptions;
|
|
5777
|
-
enableStoreDetails: boolean;
|
|
5778
|
-
showStoreDetailsCheckbox: boolean;
|
|
5779
|
-
/**
|
|
5780
|
-
* Click to Pay configuration
|
|
5781
|
-
* - If email is set explicitly in the configuration, then it can override the one used in the session creation
|
|
5782
|
-
*/
|
|
5783
|
-
clickToPayConfiguration: {
|
|
5784
|
-
disableOtpAutoFocus: boolean;
|
|
5785
|
-
shopperEmail: string;
|
|
5786
|
-
telephoneNumber: string;
|
|
5787
|
-
locale: string;
|
|
5788
|
-
merchantDisplayName?: string;
|
|
5789
|
-
onReady?(): void;
|
|
5790
|
-
onTimeout?(error: TimeoutError): void;
|
|
5791
|
-
};
|
|
5792
|
-
autoFocus?: boolean;
|
|
5793
|
-
billingAddressAllowedCountries?: string[];
|
|
5794
|
-
billingAddressMode?: "none" | "full" | "partial";
|
|
5795
|
-
billingAddressRequiredFields?: string[];
|
|
5796
|
-
brands?: string[];
|
|
5797
|
-
challengeWindowSize?: "02" | "01" | "03" | "04" | "05";
|
|
5798
|
-
data?: {
|
|
5799
|
-
holderName?: string;
|
|
5800
|
-
billingAddress?: Partial<AddressData>;
|
|
5801
|
-
};
|
|
5802
|
-
_disableClickToPay?: boolean;
|
|
5803
|
-
disableIOSArrowKeys?: boolean;
|
|
5804
|
-
disclaimerMessage?: DisclaimerMsgObject;
|
|
5805
|
-
doBinLookup?: boolean;
|
|
5806
|
-
expiryMonth?: string;
|
|
5807
|
-
exposeExpiryDate?: boolean;
|
|
5808
|
-
forceCompat?: boolean;
|
|
5809
|
-
fundingSource?: "debit" | "credit";
|
|
5810
|
-
hasHolderName?: boolean;
|
|
5811
|
-
hideCVC?: boolean;
|
|
5812
|
-
id?: string;
|
|
5813
|
-
keypadFix?: boolean;
|
|
5814
|
-
lastFour?: string;
|
|
5815
|
-
legacyInputMode?: boolean;
|
|
5816
|
-
maskSecurityCode?: boolean;
|
|
5817
|
-
minimumExpiryDate?: string[];
|
|
5818
|
-
name?: string;
|
|
5819
|
-
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
5820
|
-
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
5821
|
-
onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
5822
|
-
onBrand?: (event: CbObjOnBrand) => void;
|
|
5823
|
-
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
5824
|
-
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
5825
|
-
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
5826
|
-
onLoad?: (event: CbObjOnLoad) => void;
|
|
5827
|
-
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
5828
|
-
positionHolderNameOnTop?: boolean;
|
|
5829
|
-
showBrandIcon?: boolean;
|
|
5830
|
-
showContextualElement?: boolean;
|
|
5831
|
-
showInstallmentAmounts?: boolean;
|
|
5832
|
-
styles?: StylesObject;
|
|
5833
|
-
supportedShopperInteractions?: string[];
|
|
5834
|
-
type?: string;
|
|
5835
|
-
order?: Order;
|
|
5836
|
-
modules?: {
|
|
5837
|
-
srPanel?: SRPanel;
|
|
5838
|
-
analytics?: AnalyticsModule;
|
|
5839
|
-
resources?: Resources;
|
|
5840
|
-
risk?: RiskElement;
|
|
5841
|
-
};
|
|
5842
|
-
isDropin?: boolean;
|
|
5843
|
-
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
5844
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
5845
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
5846
|
-
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
5847
|
-
url: string;
|
|
5848
|
-
method: string;
|
|
5849
|
-
data?: any;
|
|
5850
|
-
}) => void;
|
|
5851
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
5852
|
-
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
5853
|
-
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
5854
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
5855
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement<UIElementProps>) => void;
|
|
5856
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
5857
|
-
onOrderUpdated?: (data: {
|
|
5858
|
-
order: Order;
|
|
5859
|
-
}) => void;
|
|
5860
|
-
onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
|
|
5861
|
-
resolve: (response: PaymentMethodsResponse) => void;
|
|
5862
|
-
reject: () => void;
|
|
5863
|
-
}) => void;
|
|
5864
|
-
environment?: string;
|
|
5865
|
-
session?: Session;
|
|
5866
|
-
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
5867
|
-
isInstantPayment?: boolean;
|
|
5868
|
-
isStoredPaymentMethod?: boolean;
|
|
5869
|
-
oneClick?: boolean;
|
|
5870
|
-
statusType?: "custom" | "loading" | "redirect";
|
|
5871
|
-
amount?: PaymentAmount;
|
|
5872
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
5873
|
-
showPayButton?: boolean;
|
|
5874
|
-
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
5875
|
-
loadingContext?: string;
|
|
5876
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
5877
|
-
clientKey?: string;
|
|
5878
|
-
elementRef?: any;
|
|
5879
|
-
i18n?: Language;
|
|
5880
|
-
label?: string;
|
|
5881
|
-
paymentMethodType?: string;
|
|
5882
|
-
};
|
|
5838
|
+
formatProps(props: CardConfiguration): CardConfiguration;
|
|
5883
5839
|
/**
|
|
5884
5840
|
* Formats the component data output
|
|
5885
5841
|
*/
|
|
@@ -5911,7 +5867,7 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5911
5867
|
get displayName(): string;
|
|
5912
5868
|
get accessibleName(): string;
|
|
5913
5869
|
get browserInfo(): BrowserInfo;
|
|
5914
|
-
protected payButton: (props:
|
|
5870
|
+
protected payButton: (props: PayButtonFunctionProps) => h.JSX.Element;
|
|
5915
5871
|
private renderCardInput;
|
|
5916
5872
|
render(): h.JSX.Element;
|
|
5917
5873
|
}
|
|
@@ -5969,20 +5925,20 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
5969
5925
|
risk?: RiskElement;
|
|
5970
5926
|
};
|
|
5971
5927
|
isDropin?: boolean;
|
|
5972
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
5973
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
5974
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
5928
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
5929
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
5930
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
5975
5931
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
5976
5932
|
url: string;
|
|
5977
5933
|
method: string;
|
|
5978
5934
|
data?: any;
|
|
5979
5935
|
}) => void;
|
|
5980
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
5981
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
5936
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
5937
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
5982
5938
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
5983
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
5984
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
5985
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
5939
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
5940
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
5941
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
5986
5942
|
onOrderUpdated?: (data: {
|
|
5987
5943
|
order: Order;
|
|
5988
5944
|
}) => void;
|
|
@@ -5992,12 +5948,12 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
5992
5948
|
}) => void;
|
|
5993
5949
|
environment?: string;
|
|
5994
5950
|
session?: Session;
|
|
5995
|
-
onComplete?: (state: any, element: UIElement
|
|
5951
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
5996
5952
|
isInstantPayment?: boolean;
|
|
5997
5953
|
isStoredPaymentMethod?: boolean;
|
|
5998
5954
|
oneClick?: boolean;
|
|
5999
5955
|
storedPaymentMethodId?: string;
|
|
6000
|
-
statusType?: "
|
|
5956
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
6001
5957
|
name?: string;
|
|
6002
5958
|
icon?: string;
|
|
6003
5959
|
amount?: PaymentAmount;
|
|
@@ -6005,7 +5961,7 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
6005
5961
|
showPayButton?: boolean;
|
|
6006
5962
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
6007
5963
|
loadingContext?: string;
|
|
6008
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
5964
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
6009
5965
|
clientKey?: string;
|
|
6010
5966
|
elementRef?: any;
|
|
6011
5967
|
i18n?: Language;
|
|
@@ -6039,7 +5995,7 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6039
5995
|
openFirstStoredPaymentMethod?: boolean;
|
|
6040
5996
|
openFirstPaymentMethod?: boolean;
|
|
6041
5997
|
onReady?(): void;
|
|
6042
|
-
onSelect?(paymentMethod: UIElement
|
|
5998
|
+
onSelect?(paymentMethod: UIElement): void;
|
|
6043
5999
|
showRemovePaymentMethodButton?: boolean;
|
|
6044
6000
|
showRadioButton?: boolean;
|
|
6045
6001
|
onDisableStoredPaymentMethod?: (storedPaymentMethod: any, resolve: any, reject: any) => void;
|
|
@@ -6050,20 +6006,20 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6050
6006
|
risk?: RiskElement;
|
|
6051
6007
|
};
|
|
6052
6008
|
isDropin?: boolean;
|
|
6053
|
-
onChange?: (state: OnChangeData, component: UIElement
|
|
6054
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement
|
|
6055
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement
|
|
6009
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
6010
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
6011
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
6056
6012
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
6057
6013
|
url: string;
|
|
6058
6014
|
method: string;
|
|
6059
6015
|
data?: any;
|
|
6060
6016
|
}) => void;
|
|
6061
|
-
beforeSubmit?: (state: PaymentData, component: UIElement
|
|
6062
|
-
onSubmit?: (state: SubmitData, component: UIElement
|
|
6017
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
6018
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
6063
6019
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
6064
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement
|
|
6065
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement
|
|
6066
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement
|
|
6020
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
6021
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
6022
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
6067
6023
|
onOrderUpdated?: (data: {
|
|
6068
6024
|
order: Order;
|
|
6069
6025
|
}) => void;
|
|
@@ -6073,12 +6029,12 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6073
6029
|
}) => void;
|
|
6074
6030
|
environment?: string;
|
|
6075
6031
|
session?: Session;
|
|
6076
|
-
onComplete?: (state: any, element: UIElement
|
|
6032
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
6077
6033
|
isInstantPayment?: boolean;
|
|
6078
6034
|
isStoredPaymentMethod?: boolean;
|
|
6079
6035
|
oneClick?: boolean;
|
|
6080
6036
|
storedPaymentMethodId?: string;
|
|
6081
|
-
statusType?: "
|
|
6037
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
6082
6038
|
type: string;
|
|
6083
6039
|
name?: string;
|
|
6084
6040
|
icon?: string;
|
|
@@ -6087,7 +6043,7 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6087
6043
|
showPayButton?: boolean;
|
|
6088
6044
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
6089
6045
|
loadingContext?: string;
|
|
6090
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement
|
|
6046
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
6091
6047
|
clientKey?: string;
|
|
6092
6048
|
elementRef?: any;
|
|
6093
6049
|
i18n?: Language;
|
|
@@ -6160,7 +6116,7 @@ declare namespace index_d {
|
|
|
6160
6116
|
|
|
6161
6117
|
declare class Core implements ICore {
|
|
6162
6118
|
session?: Session;
|
|
6163
|
-
paymentMethodsResponse: PaymentMethods
|
|
6119
|
+
paymentMethodsResponse: PaymentMethods;
|
|
6164
6120
|
modules: Readonly<{
|
|
6165
6121
|
risk: RiskElement;
|
|
6166
6122
|
analytics: AnalyticsModule;
|
|
@@ -6182,11 +6138,8 @@ declare class Core implements ICore {
|
|
|
6182
6138
|
componentsMap: Record<string, NewableComponent>;
|
|
6183
6139
|
supportedTxVariants: Set<string>;
|
|
6184
6140
|
add(...items: NewableComponent[]): void;
|
|
6185
|
-
getComponent(type: string): NewableComponent;
|
|
6186
|
-
createComponentsMap(components: NewableComponent[]): {};
|
|
6187
|
-
* Used internally by the PaymentMethod components to auto-register themselves
|
|
6188
|
-
* @internal
|
|
6189
|
-
*/
|
|
6141
|
+
getComponent(type: string): NewableComponent | undefined;
|
|
6142
|
+
createComponentsMap(components: NewableComponent[]): {};
|
|
6190
6143
|
};
|
|
6191
6144
|
static setBundleType(type: string): void;
|
|
6192
6145
|
static register(...items: NewableComponent[]): void;
|
|
@@ -6252,8 +6205,8 @@ declare class Core implements ICore {
|
|
|
6252
6205
|
|
|
6253
6206
|
declare function AdyenCheckout(props: CoreConfiguration): Promise<Core>;
|
|
6254
6207
|
declare namespace AdyenCheckout {
|
|
6255
|
-
var register: (...items: (new (checkout: ICore, props: any) => UIElement
|
|
6208
|
+
var register: (...items: (new (checkout: ICore, props: any) => UIElement)[]) => void;
|
|
6256
6209
|
var setBundleType: (type: string) => void;
|
|
6257
6210
|
}
|
|
6258
6211
|
|
|
6259
|
-
export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type AdditionalDetailsActions, type AdditionalDetailsData, AddressElement as Address, type AddressData, type AddressField, AdyenCheckout, AdyenCheckoutError, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, type AmazonPayBackendConfiguration, type AmazonPayButtonProps, type AmazonPayButtonSettings, type AmazonPayComponentProps, type AmazonPayConfiguration, type AmazonPayElementData, type AnalyticsModule, ApplePayElement as ApplePay, type ApplePayButtonType, type ApplePayConfiguration, type ApplePayElementData, type ApplePayPaymentAuthorizationResult, type ApplePayPaymentOrderDetails, type ApplePaySessionRequest, Atome, type AwaitComponentProps, type AwaitConfiguration, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, type BankDetailsSchema, BankTransferElement as BankTransfer, type BankTransferConfiguration, type BankTransferSchema, type BankTransferState, BCMCMobileElement as BcmcMobile, type BeforeSubmitActions, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, type BinLookupResponse, type BinLookupResponseRaw, BlikElement as Blik, BoletoElement as Boleto, type BoletoElementProps, type BoletoInputDataState, type BoletoInputErrorState, type BoletoInputValidState, type BrandConfiguration, type BrandObject, type BrowserInfo, type CReqData, CardElement as Card, type CardBackendConfiguration, type CardBrandsConfiguration, type CardConfiguration, type CardElementData, CashAppPay, type CashAppPayConfiguration, type CashAppPayElementData, type CashAppPayEventData, type ChallengeData, type ChallengeResolveData, type ChangeActionOptions, type ChangePaymentDetailsButtonProps, type ChargeAmount, type CheckoutAdvancedFlowResponse, type CheckoutDetailsRequest, type CheckoutSessionConfig, ClickToPayElement as ClickToPay, type ClickToPayConfiguration, type ClickToPayPaymentData, type ClickToPayProps, type ClickToPayScheme, type ComponentFocusObject, type ComponentMethodsRef, type CoreConfiguration, type Currency, CustomCard, type CustomCardConfiguration, type DecodeObject, type DeliverySpecifications, DokuElement as Doku, type DokuVoucherResultProps, DonationElement as Donation, type DonationConfiguration, DotpayElement as Dotpay, DragonpayElement as Dragonpay, type DragonpayConfiguraton, type DragonpayInputData, type DragonpayInputIssuerItem, type DragonpayInputProps, type DragonpayVoucherResultProps, DropinElement as Dropin, type DropinComponentProps, type DropinComponentState, type DropinConfiguration, type DropinStatusProps, type DualBrandSelectElement, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, type EcontextConfiguration, type EcontextInputSchema, type EcontextVoucherResultProps, type ErrorCodeObject, type ExtendedMerchantInfo, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, type FieldsetVisibility, type FingerPrintData, type FingerprintResolveData, type FundingSource, type GiftCardConfiguration, type GiftCardElementData, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, type GooglePayConfiguration, type GooglePaymentDataRequest, type ICore, type IDropin, type InstantPaymentTypes, type Intent, type IssuerListConfiguration, type IssuerListData, type KlarnConfiguration, KlarnaPayments as Klarna, type KlarnaSdkData, type KlarnaWidgetAuthorizeResponse, type KlarnaWidgetProps, type LedgerCurrencies, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, type MultibancoVoucherResultProps, type OnChangeData, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, type OpenInvoiceActiveFieldsets, type OpenInvoiceConfiguration, type OpenInvoiceFieldsetsRefs, type OpenInvoiceProps, type OpenInvoiceStateData, type OpenInvoiceStateError, type OpenInvoiceStateValid, type OpenInvoiceVisibility, type Order, type OrderButtonProps, type OrderStatus, OxxoElement as Oxxo, type OxxoVoucherResultProps, type PayButtonFunctionProps, PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, type PayPalConfiguration, type PayloadJSON, type PaymentAction, type PaymentActionsType, type PaymentAmount, type PaymentAmountExtended, type PaymentCompletedData, type PaymentData, type PaymentFailedData, type PaymentMethod, type PaymentMethodData, type PaymentMethodGroup, type PaymentMethodOptions, type PaymentMethods, type PaymentMethodsConfiguration, type PaymentMethodsRequestData, type PaymentMethodsResponse, type PaymentResponseData, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, type PersonalDetailsSchema, PixElement as Pix, type PixConfiguration, type PixElementData, type PostMsgParseErrorObject, type ProcessedResponse, PromptPayElement as PromptPay, type QRLoaderConfiguration, RatePay, RatePayDirectDebit, type RawPaymentResponse, type RecurringMetadata, RedirectElement as Redirect, type RedirectConfiguration, type Region, type ResultCode, type ResultObject, type ResultValue, Riverty, type SepaConfiguration, SepaElement as SepaDirectDebit, type SepaElementData, type SessionsResponse, type SignOutButtonProps, type SocialSecurityMode, type StatusObject, type StoredPaymentMethod, type SubmitActions, type SubmitData, type SupportedLocale, SwishElement as Swish, ThreeDS2Challenge, type ThreeDS2ChallengeConfiguration, ThreeDS2DeviceFingerprint, type ThreeDS2DeviceFingerprintConfiguration, type ThreeDS2FingerprintResponse, type ThreeDS2FlowObject, type ThreeDS2Token, TrustlyElement as Trustly, TwintElement as Twint, UIElement, type UIElementProps, type UIElementStatus, UPI, type UPIConfiguration, type UpdateAmazonCheckoutSessionRequest, type UpiMode, type UpiPaymentData, type ValidationError, VippsElement as Vipps, type VoucherConfiguration, type VoucherDetail, type VoucherProps, WalletINElement as WalletIN, WeChatPayElement as WeChat, type balanceCheckResponseType, index_d as components, type onBalanceCheckCallbackType, type onOrderCancelData, type onOrderCancelType, type onOrderRequestCallbackType, type onRequiringConfirmationCallbackType };
|
|
6212
|
+
export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type AdditionalDetailsActions, type AdditionalDetailsData, AddressElement as Address, type AddressData, type AddressField, AdyenCheckout, AdyenCheckoutError, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, type AmazonPayBackendConfiguration, type AmazonPayButtonProps, type AmazonPayButtonSettings, type AmazonPayComponentProps, type AmazonPayConfiguration, type AmazonPayElementData, type AnalyticsModule, type App, ApplePayElement as ApplePay, type ApplePayButtonType, type ApplePayConfiguration, type ApplePayElementData, type ApplePayPaymentAuthorizationResult, type ApplePayPaymentOrderDetails, type ApplePaySessionRequest, Atome, type AwaitComponentProps, type AwaitConfiguration, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, type BankDetailsSchema, BankTransferElement as BankTransfer, type BankTransferConfiguration, type BankTransferSchema, type BankTransferState, BCMCMobileElement as BcmcMobile, type BeforeSubmitActions, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, type BinLookupResponse, type BinLookupResponseRaw, BlikElement as Blik, BoletoElement as Boleto, type BoletoElementProps, type BoletoInputDataState, type BoletoInputErrorState, type BoletoInputValidState, type BrandConfiguration, type BrandObject, type BrowserInfo, type CReqData, CardElement as Card, type CardBackendConfiguration, type CardBrandsConfiguration, type CardConfiguration, type CardElementData, CashAppPay, type CashAppPayConfiguration, type CashAppPayElementData, type CashAppPayEventData, type ChallengeData, type ChallengeResolveData, type ChangeActionOptions, type ChangePaymentDetailsButtonProps, type ChargeAmount, type CheckoutAdvancedFlowResponse, type CheckoutDetailsRequest, type CheckoutSessionConfig, ClickToPayElement as ClickToPay, type ClickToPayConfiguration, type ClickToPayPaymentData, type ClickToPayProps, type ClickToPayScheme, type ComponentFocusObject, type ComponentMethodsRef, type CoreConfiguration, type Currency, CustomCard, type CustomCardConfiguration, type DecodeObject, type DeliverySpecifications, DokuElement as Doku, type DokuVoucherResultProps, DonationElement as Donation, type DonationConfiguration, DotpayElement as Dotpay, DragonpayElement as Dragonpay, type DragonpayConfiguraton, type DragonpayInputData, type DragonpayInputIssuerItem, type DragonpayInputProps, type DragonpayVoucherResultProps, DropinElement as Dropin, type DropinComponentProps, type DropinComponentState, type DropinConfiguration, type DropinStatusProps, type DualBrandSelectElement, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, type EcontextConfiguration, type EcontextInputSchema, type EcontextVoucherResultProps, type ErrorCodeObject, type ExtendedMerchantInfo, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, type FieldsetVisibility, type FingerPrintData, type FingerprintResolveData, type FundingSource, type GiftCardConfiguration, type GiftCardElementData, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, type GooglePayConfiguration, type GooglePaymentDataRequest, type ICore, type IDropin, type InstantPaymentTypes, type Intent, type IssuerListConfiguration, type IssuerListData, type KlarnConfiguration, KlarnaPayments as Klarna, type KlarnaSdkData, type KlarnaWidgetAuthorizeResponse, type KlarnaWidgetProps, type LedgerCurrencies, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, type MultibancoVoucherResultProps, type OnChangeData, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, type OpenInvoiceActiveFieldsets, type OpenInvoiceConfiguration, type OpenInvoiceFieldsetsRefs, type OpenInvoiceProps, type OpenInvoiceStateData, type OpenInvoiceStateError, type OpenInvoiceStateValid, type OpenInvoiceVisibility, type Order, type OrderButtonProps, type OrderStatus, OxxoElement as Oxxo, type OxxoVoucherResultProps, type PayButtonFunctionProps, PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, type PayPalConfiguration, type PayloadJSON, type PaymentAction, type PaymentActionsType, type PaymentAmount, type PaymentAmountExtended, type PaymentCompletedData, type PaymentData, type PaymentFailedData, type PaymentMethod, type PaymentMethodData, type PaymentMethodGroup, type PaymentMethodOptions, type PaymentMethods$1 as PaymentMethods, type PaymentMethodsConfiguration, type PaymentMethodsRequestData, type PaymentMethodsResponse, type PaymentResponseData, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, type PersonalDetailsSchema, PixElement as Pix, type PixConfiguration, type PixElementData, type PostMsgParseErrorObject, type ProcessedResponse, PromptPayElement as PromptPay, type QRLoaderConfiguration, RatePay, RatePayDirectDebit, type RawPaymentResponse, type RecurringMetadata, RedirectElement as Redirect, type RedirectConfiguration, type Region, type ResultCode, type ResultObject, type ResultValue, Riverty, type SepaConfiguration, SepaElement as SepaDirectDebit, type SepaElementData, type SessionsResponse, type SignOutButtonProps, type SocialSecurityMode, type StatusObject, type StoredPaymentMethod, type SubmitActions, type SubmitData, type SupportedLocale, SwishElement as Swish, ThreeDS2Challenge, type ThreeDS2ChallengeConfiguration, ThreeDS2DeviceFingerprint, type ThreeDS2DeviceFingerprintConfiguration, type ThreeDS2FingerprintResponse, type ThreeDS2FlowObject, type ThreeDS2Token, TrustlyElement as Trustly, TwintElement as Twint, UIElement, type UIElementProps, type UIElementStatus, UPI, type UPIConfiguration, type UpdateAmazonCheckoutSessionRequest, type UpiMode, type UpiPaymentData, type UpiType, type ValidationError, VippsElement as Vipps, type VoucherConfiguration, type VoucherDetail, type VoucherProps, WalletINElement as WalletIN, WeChatPayElement as WeChat, type balanceCheckResponseType, index_d as components, type onBalanceCheckCallbackType, type onOrderCancelData, type onOrderCancelType, type onOrderRequestCallbackType, type onRequiringConfirmationCallbackType };
|