@adyen/adyen-web 6.0.0-alpha.2 → 6.0.0-alpha.3
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 +166 -0
- package/dist/cjs/adyen.css +2 -2
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +1932 -1968
- package/dist/es/adyen.css +2 -2
- package/dist/es/components/AmazonPay/AmazonPay.js +1 -1
- package/dist/es/components/AmazonPay/AmazonPay.js.map +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayComponent.js +1 -1
- package/dist/es/components/AmazonPay/components/AmazonPayComponent.js.map +1 -1
- package/dist/es/components/ApplePay/ApplePay.js +1 -1
- package/dist/es/components/ApplePay/ApplePay.js.map +1 -1
- package/dist/es/components/ApplePay/defaultProps.js +1 -1
- package/dist/es/components/ApplePay/defaultProps.js.map +1 -1
- package/dist/es/components/ApplePay/payment-request.js.map +1 -1
- package/dist/es/components/Boleto/components/BoletoInput/validate.js +1 -1
- package/dist/es/components/Boleto/components/BoletoInput/validate.js.map +1 -1
- package/dist/es/components/Card/Card.js +1 -1
- package/dist/es/components/Card/Card.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/CardInput.js +1 -1
- package/dist/es/components/Card/components/CardInput/CardInput.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardFieldsWrapper.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardFieldsWrapper.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardHolderName.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardHolderName.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/types.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/utils.js +1 -1
- package/dist/es/components/Card/components/CardInput/utils.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/validate.js +1 -1
- package/dist/es/components/Card/components/CardInput/validate.js.map +1 -1
- package/dist/es/components/CashAppPay/defaultProps.js +1 -1
- package/dist/es/components/CashAppPay/defaultProps.js.map +1 -1
- package/dist/es/components/Donation/Donation.js.map +1 -1
- package/dist/es/components/Dragonpay/Dragonpay.js +1 -1
- package/dist/es/components/Dragonpay/Dragonpay.js.map +1 -1
- package/dist/es/components/Dropin/components/DropinComponent.js +1 -1
- package/dist/es/components/Dropin/components/DropinComponent.js.map +1 -1
- package/dist/es/components/Econtext/Econtext.js +1 -1
- package/dist/es/components/Econtext/Econtext.js.map +1 -1
- package/dist/es/components/Econtext/components/EcontextInput/EcontextInput.js.map +1 -1
- package/dist/es/components/Giftcard/Giftcard.js +1 -1
- package/dist/es/components/Giftcard/Giftcard.js.map +1 -1
- package/dist/es/components/Giftcard/components/GiftcardComponent.js.map +1 -1
- package/dist/es/components/Giropay/Giropay.js +1 -1
- package/dist/es/components/Giropay/Giropay.js.map +1 -1
- package/dist/es/components/GooglePay/GooglePay.js +1 -1
- package/dist/es/components/GooglePay/GooglePay.js.map +1 -1
- package/dist/es/components/GooglePay/GooglePayService.js +1 -1
- package/dist/es/components/GooglePay/GooglePayService.js.map +1 -1
- package/dist/es/components/GooglePay/defaultProps.js +1 -1
- package/dist/es/components/GooglePay/defaultProps.js.map +1 -1
- package/dist/es/components/GooglePay/requests.js.map +1 -1
- package/dist/es/components/Multibanco/Multibanco.js +1 -1
- package/dist/es/components/Multibanco/Multibanco.js.map +1 -1
- package/dist/es/components/Pix/Pix.js +1 -1
- package/dist/es/components/Pix/Pix.js.map +1 -1
- package/dist/es/components/Pix/PixInput/PixInput.js +1 -1
- package/dist/es/components/Pix/PixInput/PixInput.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/components/Challenge/DoChallenge3DS2.js +1 -1
- package/dist/es/components/ThreeDS2/components/Challenge/DoChallenge3DS2.js.map +1 -1
- package/dist/es/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js +1 -1
- package/dist/es/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js.map +1 -1
- package/dist/es/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.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/helpers/IssuerListContainer/IssuerListContainer.js +1 -1
- package/dist/es/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
- package/dist/es/components/internal/Address/Address.js +1 -1
- package/dist/es/components/internal/Address/Address.js.map +1 -1
- package/dist/es/components/internal/Address/validate.js +1 -1
- package/dist/es/components/internal/Address/validate.js.map +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es/components/internal/CompanyDetails/validate.js +1 -1
- package/dist/es/components/internal/CompanyDetails/validate.js.map +1 -1
- package/dist/es/components/internal/IbanInput/IbanInput.js.map +1 -1
- package/dist/es/components/internal/Img/Img.js +1 -1
- package/dist/es/components/internal/Img/Img.js.map +1 -1
- package/dist/es/components/internal/PersonalDetails/PersonalDetails.js +1 -1
- package/dist/es/components/internal/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es/components/internal/PersonalDetails/validate.js +1 -1
- package/dist/es/components/internal/PersonalDetails/validate.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SFPUtils.js +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SFPUtils.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/binLookup/triggerBinLookUp.js +1 -1
- package/dist/es/components/internal/SecuredFields/binLookup/triggerBinLookUp.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/cardType.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/cardType.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/processErrors.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/processErrors.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/configuration/constants.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/configuration/constants.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/SecuredField.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/utils/processAriaConfig.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/utils/processPlaceholders.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/utilities/addContextTranslations.js.map +1 -1
- package/dist/es/components/internal/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/es/components/internal/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es/components/internal/UIElement/utils.js +1 -1
- package/dist/es/components/internal/UIElement/utils.js.map +1 -1
- package/dist/es/core/Analytics/Analytics.js +1 -1
- package/dist/es/core/Analytics/Analytics.js.map +1 -1
- package/dist/es/core/Analytics/constants.js +1 -1
- package/dist/es/core/Analytics/constants.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/Errors/constants.js +1 -1
- package/dist/es/core/Errors/constants.js.map +1 -1
- package/dist/es/core/Errors/utils.js +1 -1
- package/dist/es/core/Errors/utils.js.map +1 -1
- package/dist/es/core/ProcessResponse/PaymentAction/actionTypes.js +1 -1
- package/dist/es/core/ProcessResponse/PaymentAction/actionTypes.js.map +1 -1
- package/dist/es/core/Services/analytics/collect-id.js +1 -1
- package/dist/es/core/Services/analytics/log-event.js +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/core/core.js.map +1 -1
- package/dist/es/core/utils.js +1 -1
- package/dist/es/core/utils.js.map +1 -1
- package/dist/es/index.d.ts +1932 -1968
- package/dist/es/language/locales/ar.json.js +1 -1
- package/dist/es/language/locales/cs-CZ.json.js +1 -1
- package/dist/es/language/locales/da-DK.json.js +1 -1
- package/dist/es/language/locales/de-DE.json.js +1 -1
- package/dist/es/language/locales/el-GR.json.js +1 -1
- package/dist/es/language/locales/en-US.json.js +1 -1
- package/dist/es/language/locales/es-ES.json.js +1 -1
- package/dist/es/language/locales/fi-FI.json.js +1 -1
- package/dist/es/language/locales/fr-FR.json.js +1 -1
- package/dist/es/language/locales/hr-HR.json.js +1 -1
- package/dist/es/language/locales/hu-HU.json.js +1 -1
- package/dist/es/language/locales/it-IT.json.js +1 -1
- package/dist/es/language/locales/ja-JP.json.js +1 -1
- package/dist/es/language/locales/ko-KR.json.js +1 -1
- package/dist/es/language/locales/nl-NL.json.js +1 -1
- package/dist/es/language/locales/no-NO.json.js +1 -1
- package/dist/es/language/locales/pl-PL.json.js +1 -1
- package/dist/es/language/locales/pt-BR.json.js +1 -1
- package/dist/es/language/locales/pt-PT.json.js +1 -1
- package/dist/es/language/locales/ro-RO.json.js +1 -1
- package/dist/es/language/locales/ru-RU.json.js +1 -1
- package/dist/es/language/locales/sk-SK.json.js +1 -1
- package/dist/es/language/locales/sl-SI.json.js +1 -1
- package/dist/es/language/locales/sv-SE.json.js +1 -1
- package/dist/es/language/locales/zh-CN.json.js +1 -1
- package/dist/es/language/locales/zh-TW.json.js +1 -1
- package/dist/es/utils/Formatters/formatters.js.map +1 -1
- package/dist/es/utils/Validator/defaultRules.js +1 -1
- package/dist/es/utils/Validator/defaultRules.js.map +1 -1
- package/dist/es/utils/base64.js +1 -1
- package/dist/es/utils/base64.js.map +1 -1
- package/dist/es/utils/getErrorMessage.js +1 -1
- package/dist/es/utils/getErrorMessage.js.map +1 -1
- package/dist/es-legacy/adyen.css +2 -2
- 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/AmazonPayComponent.js +1 -1
- package/dist/es-legacy/components/AmazonPay/components/AmazonPayComponent.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/ApplePay/defaultProps.js +1 -1
- package/dist/es-legacy/components/ApplePay/defaultProps.js.map +1 -1
- package/dist/es-legacy/components/ApplePay/payment-request.js.map +1 -1
- package/dist/es-legacy/components/Boleto/components/BoletoInput/validate.js +1 -1
- package/dist/es-legacy/components/Boleto/components/BoletoInput/validate.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/CardFieldsWrapper.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardFieldsWrapper.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardHolderName.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardHolderName.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/types.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/utils.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/utils.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/validate.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/validate.js.map +1 -1
- package/dist/es-legacy/components/CashAppPay/defaultProps.js +1 -1
- package/dist/es-legacy/components/CashAppPay/defaultProps.js.map +1 -1
- package/dist/es-legacy/components/Donation/Donation.js.map +1 -1
- 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/Dropin/components/DropinComponent.js +1 -1
- package/dist/es-legacy/components/Dropin/components/DropinComponent.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/Econtext/components/EcontextInput/EcontextInput.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/Giftcard.js +1 -1
- package/dist/es-legacy/components/Giftcard/Giftcard.js.map +1 -1
- package/dist/es-legacy/components/Giftcard/components/GiftcardComponent.js.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/GooglePayService.js +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePayService.js.map +1 -1
- package/dist/es-legacy/components/GooglePay/defaultProps.js +1 -1
- package/dist/es-legacy/components/GooglePay/defaultProps.js.map +1 -1
- package/dist/es-legacy/components/GooglePay/requests.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/Pix/Pix.js +1 -1
- package/dist/es-legacy/components/Pix/Pix.js.map +1 -1
- package/dist/es-legacy/components/Pix/PixInput/PixInput.js +1 -1
- package/dist/es-legacy/components/Pix/PixInput/PixInput.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/components/Challenge/DoChallenge3DS2.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/Challenge/DoChallenge3DS2.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.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/helpers/IssuerListContainer/IssuerListContainer.js +1 -1
- package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.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/validate.js +1 -1
- package/dist/es-legacy/components/internal/Address/validate.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/CompanyDetails/validate.js +1 -1
- package/dist/es-legacy/components/internal/CompanyDetails/validate.js.map +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/PersonalDetails/PersonalDetails.js +1 -1
- package/dist/es-legacy/components/internal/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es-legacy/components/internal/PersonalDetails/validate.js +1 -1
- package/dist/es-legacy/components/internal/PersonalDetails/validate.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SFPUtils.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SFPUtils.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/binLookup/triggerBinLookUp.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/binLookup/triggerBinLookUp.js.map +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/utils/cardType.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/cardType.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/processErrors.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/processErrors.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/configuration/constants.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/configuration/constants.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/SecuredField.js.map +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/securedField/utils/processPlaceholders.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/utilities/addContextTranslations.js.map +1 -1
- package/dist/es-legacy/components/internal/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/es-legacy/components/internal/SegmentedControl/SegmentedControl.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/internal/UIElement/utils.js +1 -1
- package/dist/es-legacy/components/internal/UIElement/utils.js.map +1 -1
- package/dist/es-legacy/core/Analytics/Analytics.js +1 -1
- package/dist/es-legacy/core/Analytics/Analytics.js.map +1 -1
- package/dist/es-legacy/core/Analytics/constants.js +1 -1
- package/dist/es-legacy/core/Analytics/constants.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/Errors/constants.js +1 -1
- package/dist/es-legacy/core/Errors/constants.js.map +1 -1
- package/dist/es-legacy/core/Errors/utils.js +1 -1
- package/dist/es-legacy/core/Errors/utils.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/Services/analytics/collect-id.js +1 -1
- package/dist/es-legacy/core/Services/analytics/log-event.js +1 -1
- package/dist/es-legacy/core/core.js +1 -1
- package/dist/es-legacy/core/core.js.map +1 -1
- package/dist/es-legacy/core/utils.js +1 -1
- package/dist/es-legacy/core/utils.js.map +1 -1
- package/dist/es-legacy/language/locales/ar.json.js +1 -1
- package/dist/es-legacy/language/locales/cs-CZ.json.js +1 -1
- package/dist/es-legacy/language/locales/da-DK.json.js +1 -1
- package/dist/es-legacy/language/locales/de-DE.json.js +1 -1
- package/dist/es-legacy/language/locales/el-GR.json.js +1 -1
- package/dist/es-legacy/language/locales/en-US.json.js +1 -1
- package/dist/es-legacy/language/locales/es-ES.json.js +1 -1
- package/dist/es-legacy/language/locales/fi-FI.json.js +1 -1
- package/dist/es-legacy/language/locales/fr-FR.json.js +1 -1
- package/dist/es-legacy/language/locales/hr-HR.json.js +1 -1
- package/dist/es-legacy/language/locales/hu-HU.json.js +1 -1
- package/dist/es-legacy/language/locales/it-IT.json.js +1 -1
- package/dist/es-legacy/language/locales/ja-JP.json.js +1 -1
- package/dist/es-legacy/language/locales/ko-KR.json.js +1 -1
- package/dist/es-legacy/language/locales/nl-NL.json.js +1 -1
- package/dist/es-legacy/language/locales/no-NO.json.js +1 -1
- package/dist/es-legacy/language/locales/pl-PL.json.js +1 -1
- package/dist/es-legacy/language/locales/pt-BR.json.js +1 -1
- package/dist/es-legacy/language/locales/pt-PT.json.js +1 -1
- package/dist/es-legacy/language/locales/ro-RO.json.js +1 -1
- package/dist/es-legacy/language/locales/ru-RU.json.js +1 -1
- package/dist/es-legacy/language/locales/sk-SK.json.js +1 -1
- package/dist/es-legacy/language/locales/sl-SI.json.js +1 -1
- package/dist/es-legacy/language/locales/sv-SE.json.js +1 -1
- package/dist/es-legacy/language/locales/zh-CN.json.js +1 -1
- package/dist/es-legacy/language/locales/zh-TW.json.js +1 -1
- package/dist/es-legacy/utils/Formatters/formatters.js.map +1 -1
- package/dist/es-legacy/utils/Validator/defaultRules.js +1 -1
- package/dist/es-legacy/utils/Validator/defaultRules.js.map +1 -1
- package/dist/es-legacy/utils/base64.js +1 -1
- package/dist/es-legacy/utils/base64.js.map +1 -1
- package/dist/es-legacy/utils/getErrorMessage.js +1 -1
- package/dist/es-legacy/utils/getErrorMessage.js.map +1 -1
- package/dist/umd/adyen.css +2 -2
- package/dist/umd/adyen.js +2 -2
- package/dist/umd/adyen.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="googlepay" />
|
|
2
1
|
/// <reference types="applepayjs" />
|
|
2
|
+
/// <reference types="googlepay" />
|
|
3
3
|
import * as preact from 'preact';
|
|
4
4
|
import { h, ComponentChild, FunctionComponent } from 'preact';
|
|
5
5
|
|
|
@@ -200,6 +200,10 @@ interface SFPValid {
|
|
|
200
200
|
encryptedBankLocationId?: boolean;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
declare const REQUIRED = "required";
|
|
204
|
+
declare const OPTIONAL = "optional";
|
|
205
|
+
declare const HIDDEN = "hidden";
|
|
206
|
+
|
|
203
207
|
declare global {
|
|
204
208
|
interface Window {
|
|
205
209
|
_b$dl: boolean;
|
|
@@ -299,8 +303,8 @@ interface CbObjOnConfigSuccess {
|
|
|
299
303
|
type: string;
|
|
300
304
|
rootNode: HTMLElement;
|
|
301
305
|
}
|
|
302
|
-
type CVCPolicyType =
|
|
303
|
-
type DatePolicyType =
|
|
306
|
+
type CVCPolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
307
|
+
type DatePolicyType = typeof REQUIRED | typeof OPTIONAL | typeof HIDDEN;
|
|
304
308
|
|
|
305
309
|
declare class TimeoutError extends Error {
|
|
306
310
|
constructor(message: string);
|
|
@@ -402,9 +406,15 @@ interface CardConfiguration extends UIElementProps {
|
|
|
402
406
|
* @defaultValue `true`
|
|
403
407
|
*/
|
|
404
408
|
showContextualElement?: boolean;
|
|
405
|
-
/**
|
|
409
|
+
/** Config option related to whether we set storePaymentMethod in the card data, and showing/hiding the "store details" checkbox */
|
|
406
410
|
enableStoreDetails?: boolean;
|
|
407
411
|
/** Show/hide the Security Code field - merchant set config option */
|
|
412
|
+
/**
|
|
413
|
+
* Show/hide the "store details" checkbox
|
|
414
|
+
* @internal
|
|
415
|
+
*/
|
|
416
|
+
showStoreDetailsCheckbox?: boolean;
|
|
417
|
+
/** Show/hide the CVC field - merchant set config option */
|
|
408
418
|
hideCVC?: boolean;
|
|
409
419
|
/**
|
|
410
420
|
* Decides whether the CVC (Security Code) component will even be rendered.
|
|
@@ -461,7 +471,7 @@ interface CardConfiguration extends UIElementProps {
|
|
|
461
471
|
*/
|
|
462
472
|
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
463
473
|
/**
|
|
464
|
-
* Called when a field
|
|
474
|
+
* Called when a field loses focus.
|
|
465
475
|
*/
|
|
466
476
|
onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
467
477
|
/**
|
|
@@ -828,1788 +838,1068 @@ declare class PaymentMethods$1 {
|
|
|
828
838
|
find(paymentMethod: string): PaymentMethod;
|
|
829
839
|
}
|
|
830
840
|
|
|
831
|
-
interface
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
update(options: CoreConfiguration): Promise<ICore>;
|
|
835
|
-
remove(component: any): ICore;
|
|
836
|
-
submitDetails(details: any): void;
|
|
837
|
-
getCorePropsForComponent(): any;
|
|
838
|
-
getComponent(txVariant: string): NewableComponent | undefined;
|
|
839
|
-
createFromAction(action: PaymentAction, options: any): any;
|
|
840
|
-
storeElementReference(element: UIElement): void;
|
|
841
|
-
options: CoreConfiguration;
|
|
842
|
-
paymentMethodsResponse: PaymentMethods$1;
|
|
843
|
-
session?: Session;
|
|
841
|
+
interface CompanyDetailsSchema {
|
|
842
|
+
name?: string;
|
|
843
|
+
registrationNumber?: string;
|
|
844
844
|
}
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
environmentUrls?: {
|
|
858
|
-
api?: string;
|
|
859
|
-
analytics?: string;
|
|
860
|
-
};
|
|
861
|
-
/**
|
|
862
|
-
* Show or hides a Pay Button for each payment method
|
|
863
|
-
*/
|
|
864
|
-
showPayButton?: boolean;
|
|
865
|
-
/**
|
|
866
|
-
* A public key linked to your web service user, used for {@link https://docs.adyen.com/user-management/client-side-authentication | client-side authentication}.
|
|
867
|
-
*/
|
|
868
|
-
clientKey?: string;
|
|
869
|
-
/**
|
|
870
|
-
* The shopper's locale. This is used to set the language rendered in the UI.
|
|
871
|
-
* For a list of supported locales, see {@link https://docs.adyen.com/checkout/components-web/localization-components | Localization}.
|
|
872
|
-
* For adding a custom locale, see {@link https://docs.adyen.com/checkout/components-web/localization-components#create-localization | Create localization}.*
|
|
873
|
-
*/
|
|
874
|
-
locale?: string;
|
|
875
|
-
/**
|
|
876
|
-
* Translation file which contains the translations to a certain locale.
|
|
877
|
-
* @default en_US
|
|
878
|
-
*/
|
|
879
|
-
translationFile?: Translation;
|
|
880
|
-
/**
|
|
881
|
-
* Custom translations and localizations
|
|
882
|
-
* See {@link https://docs.adyen.com/checkout/components-web/localization-components | Localizing Components}
|
|
883
|
-
*/
|
|
884
|
-
translations?: CustomTranslations;
|
|
885
|
-
/**
|
|
886
|
-
* The full `/paymentMethods` response
|
|
887
|
-
*/
|
|
888
|
-
paymentMethodsResponse?: PaymentMethodsResponse;
|
|
889
|
-
/**
|
|
890
|
-
* Amount of the payment
|
|
891
|
-
*/
|
|
892
|
-
amount?: PaymentAmountExtended;
|
|
893
|
-
/**
|
|
894
|
-
* Secondary amount of the payment - alternative currency & value converted according to rate
|
|
895
|
-
*/
|
|
896
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
897
|
-
/**
|
|
898
|
-
* The shopper's country code. A valid value is an ISO two-character country code (e.g. 'NL').
|
|
899
|
-
*/
|
|
845
|
+
|
|
846
|
+
type OpenInvoiceAddressSpecification = AddressSpecifications & {
|
|
847
|
+
allowedCountries?: string[];
|
|
848
|
+
};
|
|
849
|
+
interface OpenInvoiceVisibility {
|
|
850
|
+
companyDetails?: FieldsetVisibility;
|
|
851
|
+
personalDetails?: FieldsetVisibility;
|
|
852
|
+
billingAddress?: FieldsetVisibility;
|
|
853
|
+
deliveryAddress?: FieldsetVisibility;
|
|
854
|
+
bankAccount?: FieldsetVisibility;
|
|
855
|
+
}
|
|
856
|
+
interface BankDetailsSchema {
|
|
900
857
|
countryCode?: string;
|
|
858
|
+
ibanNumber?: any;
|
|
859
|
+
ownerName?: string;
|
|
860
|
+
}
|
|
861
|
+
interface OpenInvoiceProps extends UIElementProps {
|
|
862
|
+
allowedCountries?: string[];
|
|
863
|
+
consentCheckboxLabel: any;
|
|
864
|
+
countryCode?: string;
|
|
865
|
+
data: {
|
|
866
|
+
companyDetails?: CompanyDetailsSchema;
|
|
867
|
+
personalDetails?: PersonalDetailsSchema;
|
|
868
|
+
billingAddress?: AddressData;
|
|
869
|
+
deliveryAddress?: AddressData;
|
|
870
|
+
bankAccount?: BankDetailsSchema;
|
|
871
|
+
};
|
|
872
|
+
onChange: (state: any, element?: UIElement) => void;
|
|
873
|
+
payButton: any;
|
|
874
|
+
visibility?: OpenInvoiceVisibility;
|
|
875
|
+
personalDetailsRequiredFields?: string[];
|
|
876
|
+
billingAddressRequiredFields?: string[];
|
|
877
|
+
billingAddressSpecification?: OpenInvoiceAddressSpecification;
|
|
878
|
+
deliveryAddressRequiredFields?: string[];
|
|
879
|
+
deliveryAddressSpecification?: OpenInvoiceAddressSpecification;
|
|
880
|
+
setComponentRef?: (ref: any) => void;
|
|
881
|
+
showFormInstruction?: boolean;
|
|
882
|
+
}
|
|
883
|
+
interface OpenInvoiceStateData {
|
|
884
|
+
companyDetails?: CompanyDetailsSchema;
|
|
885
|
+
personalDetails?: PersonalDetailsSchema;
|
|
886
|
+
billingAddress?: AddressData;
|
|
887
|
+
deliveryAddress?: AddressData;
|
|
888
|
+
bankAccount?: BankDetailsSchema;
|
|
889
|
+
consentCheckbox?: boolean;
|
|
890
|
+
}
|
|
891
|
+
interface OpenInvoiceStateError {
|
|
892
|
+
consentCheckbox?: boolean | GenericError;
|
|
893
|
+
companyDetails?: boolean | ValidationRuleErrorObj;
|
|
894
|
+
billingAddress?: boolean | ValidationRuleErrorObj;
|
|
895
|
+
deliveryAddress?: boolean | ValidationRuleErrorObj;
|
|
896
|
+
personalDetails?: boolean | ValidationRuleErrorObj;
|
|
897
|
+
bankAccount?: boolean | object;
|
|
898
|
+
}
|
|
899
|
+
interface OpenInvoiceStateValid {
|
|
900
|
+
consentCheckbox?: boolean;
|
|
901
|
+
companyDetails?: boolean;
|
|
902
|
+
billingAddress?: boolean;
|
|
903
|
+
deliveryAddress?: boolean;
|
|
904
|
+
personalDetails?: boolean;
|
|
905
|
+
bankAccount?: boolean;
|
|
906
|
+
}
|
|
907
|
+
interface OpenInvoiceActiveFieldsets {
|
|
908
|
+
companyDetails: boolean;
|
|
909
|
+
personalDetails: boolean;
|
|
910
|
+
billingAddress: boolean;
|
|
911
|
+
deliveryAddress: boolean;
|
|
912
|
+
bankAccount: boolean;
|
|
913
|
+
}
|
|
914
|
+
interface OpenInvoiceFieldsetsRefs {
|
|
915
|
+
companyDetails?: any;
|
|
916
|
+
personalDetails?: any;
|
|
917
|
+
billingAddress?: any;
|
|
918
|
+
deliveryAddress?: any;
|
|
919
|
+
bankAccount?: any;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
interface OpenInvoiceConfiguration extends Partial<OpenInvoiceProps> {
|
|
923
|
+
consentCheckboxLabel?: h.JSX.Element;
|
|
924
|
+
billingAddressRequiredFields?: string[];
|
|
925
|
+
billingAddressSpecification?: AddressSpecifications;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
declare class OpenInvoiceContainer extends UIElement<OpenInvoiceConfiguration> {
|
|
929
|
+
protected static defaultProps: Partial<OpenInvoiceConfiguration>;
|
|
901
930
|
/**
|
|
902
|
-
*
|
|
903
|
-
*/
|
|
904
|
-
allowPaymentMethods?: string[];
|
|
905
|
-
/**
|
|
906
|
-
* Never display these payment methods
|
|
907
|
-
*/
|
|
908
|
-
removePaymentMethods?: string[];
|
|
909
|
-
/**
|
|
910
|
-
* Screen Reader configuration
|
|
911
|
-
*/
|
|
912
|
-
srConfig?: SRPanelConfig;
|
|
913
|
-
/**
|
|
914
|
-
* @internal
|
|
915
|
-
*/
|
|
916
|
-
cdnContext?: string;
|
|
917
|
-
resourceEnvironment?: string;
|
|
918
|
-
analytics?: AnalyticsOptions;
|
|
919
|
-
risk?: RiskModuleOptions;
|
|
920
|
-
order?: Order;
|
|
921
|
-
/**
|
|
922
|
-
* Add @adyen/web metadata to the window object.
|
|
923
|
-
* It helps to identify version number and bundle type in the merchant environment
|
|
924
|
-
*
|
|
925
|
-
* @default true
|
|
926
|
-
*/
|
|
927
|
-
exposeLibraryMetadata?: boolean;
|
|
928
|
-
beforeRedirect?(resolve: () => void, reject: () => void, redirectData: {
|
|
929
|
-
url: string;
|
|
930
|
-
method: string;
|
|
931
|
-
data?: any;
|
|
932
|
-
}): void;
|
|
933
|
-
beforeSubmit?(state: any, element: UIElement, actions: {
|
|
934
|
-
resolve: (data: any) => void;
|
|
935
|
-
reject: () => void;
|
|
936
|
-
}): void;
|
|
937
|
-
/**
|
|
938
|
-
* Called when the payment succeeds.
|
|
939
|
-
*
|
|
940
|
-
* The first parameter is the sessions response (when using sessions flow), or the result code.
|
|
941
|
-
*
|
|
942
|
-
* @param data
|
|
943
|
-
* @param element
|
|
944
|
-
*/
|
|
945
|
-
onPaymentCompleted?(data: SessionsResponse | {
|
|
946
|
-
resultCode: ResultCode;
|
|
947
|
-
donationToken?: string;
|
|
948
|
-
}, element?: UIElement): void;
|
|
949
|
-
/**
|
|
950
|
-
* Called when the payment fails.
|
|
951
|
-
*
|
|
952
|
-
* The first parameter is populated when merchant is using sessions, or when the payment was rejected
|
|
953
|
-
* with an object. (Ex: 'action.reject(obj)' ). Otherwise, it will be empty.
|
|
954
|
-
*
|
|
955
|
-
* @param data - session response or resultCode. It can also be undefined if payment was rejected without argument ('action.reject()')
|
|
956
|
-
* @param element
|
|
957
|
-
*/
|
|
958
|
-
onPaymentFailed?(data?: SessionsResponse | {
|
|
959
|
-
resultCode: ResultCode;
|
|
960
|
-
}, element?: UIElement): void;
|
|
961
|
-
onSubmit?(state: any, element: UIElement, actions: {
|
|
962
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
963
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, 'error'>) => void;
|
|
964
|
-
}): void;
|
|
965
|
-
/**
|
|
966
|
-
* Callback used in the Advanced flow to perform the /payments/details API call.
|
|
967
|
-
*
|
|
968
|
-
* @param state
|
|
969
|
-
* @param element - Component submitting details. It is undefined when using checkout.submitDetails()
|
|
970
|
-
* @param actions
|
|
931
|
+
* Returns whether the component state is valid or not
|
|
971
932
|
*/
|
|
972
|
-
|
|
973
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
974
|
-
reject: () => void;
|
|
975
|
-
}): void;
|
|
976
|
-
onActionHandled?(data: ActionHandledReturnObject): void;
|
|
977
|
-
onChange?(state: any, element: UIElement): void;
|
|
978
|
-
onError?(error: AdyenCheckoutError, element?: UIElement): void;
|
|
979
|
-
onBalanceCheck?: onBalanceCheckCallbackType;
|
|
980
|
-
onOrderRequest?: onOrderRequestCallbackType;
|
|
981
|
-
onPaymentMethodsRequest?(data: PaymentMethodsRequestData, actions: {
|
|
982
|
-
resolve: (response: PaymentMethodsResponse) => void;
|
|
983
|
-
reject: () => void;
|
|
984
|
-
}): void;
|
|
985
|
-
onOrderCancel?(order: Order): void;
|
|
933
|
+
get isValid(): boolean;
|
|
986
934
|
/**
|
|
987
|
-
*
|
|
988
|
-
* Returns an Order object that includes the remaining amount to be paid.
|
|
989
|
-
* https://docs.adyen.com/payment-methods/gift-cards/web-component?tab=config-sessions_1
|
|
935
|
+
* Formats props on construction time
|
|
990
936
|
*/
|
|
991
|
-
|
|
992
|
-
order: Order;
|
|
993
|
-
}): void;
|
|
937
|
+
formatProps(props: any): any;
|
|
994
938
|
/**
|
|
995
|
-
*
|
|
939
|
+
* Formats the component data output
|
|
996
940
|
*/
|
|
997
|
-
|
|
941
|
+
formatData(): any;
|
|
942
|
+
render(): h.JSX.Element;
|
|
998
943
|
}
|
|
999
944
|
|
|
1000
|
-
declare
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
/**
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
945
|
+
declare enum TxVariants {
|
|
946
|
+
/** internal */
|
|
947
|
+
address = "address",
|
|
948
|
+
bankTransfer_IBAN = "bankTransfer_IBAN",
|
|
949
|
+
donation = "donation",
|
|
950
|
+
personal_details = "personal_details",
|
|
951
|
+
/** internal */
|
|
952
|
+
/** Card */
|
|
953
|
+
bcmc = "bcmc",
|
|
954
|
+
card = "card",
|
|
955
|
+
scheme = "scheme",
|
|
956
|
+
storedCard = "storedCard",
|
|
957
|
+
customCard = "customcard",
|
|
958
|
+
/** Card */
|
|
959
|
+
/** ThreeDS */
|
|
960
|
+
threeDS2Challenge = "threeDS2Challenge",
|
|
961
|
+
threeDS2Fingerprint = "threeDS2Fingerprint",
|
|
962
|
+
threeDS2DeviceFingerprint = "threeDS2DeviceFingerprint",
|
|
963
|
+
/** ThreeDS */
|
|
964
|
+
/** Direct debit */
|
|
965
|
+
ach = "ach",
|
|
966
|
+
directdebit_GB = "directdebit_GB",
|
|
967
|
+
sepadirectdebit = "sepadirectdebit",
|
|
968
|
+
/** Direct debit */
|
|
969
|
+
/** Open Invoice */
|
|
970
|
+
affirm = "affirm",
|
|
971
|
+
afterpay = "afterpay",
|
|
972
|
+
afterpay_default = "afterpay_default",
|
|
973
|
+
afterpay_b2b = "afterpay_b2b",
|
|
974
|
+
atome = "atome",
|
|
975
|
+
facilypay_3x = "facilypay_3x",
|
|
976
|
+
facilypay_4x = "facilypay_4x",
|
|
977
|
+
facilypay_6x = "facilypay_6x",
|
|
978
|
+
facilypay_10x = "facilypay_10x",
|
|
979
|
+
facilypay_12x = "facilypay_12x",
|
|
980
|
+
ratepay = "ratepay",
|
|
981
|
+
ratepay_directdebit = "ratepay_directdebit",
|
|
982
|
+
/** Open Invoice */
|
|
983
|
+
/** Wallets */
|
|
984
|
+
amazonpay = "amazonpay",
|
|
985
|
+
applepay = "applepay",
|
|
986
|
+
cashapp = "cashapp",
|
|
987
|
+
clicktopay = "clicktopay",
|
|
988
|
+
googlepay = "googlepay",
|
|
989
|
+
paypal = "paypal",
|
|
990
|
+
paywithgoogle = "paywithgoogle",
|
|
991
|
+
/** Wallets */
|
|
992
|
+
/** Voucher */
|
|
993
|
+
boletobancario = "boletobancario",
|
|
994
|
+
boletobancario_itau = "boletobancario_itau",
|
|
995
|
+
boletobancario_santander = "boletobancario_santander",
|
|
996
|
+
primeiropay_boleto = "primeiropay_boleto",
|
|
997
|
+
doku = "doku",
|
|
998
|
+
doku_alfamart = "doku_alfamart",
|
|
999
|
+
doku_permata_lite_atm = "doku_permata_lite_atm",
|
|
1000
|
+
doku_indomaret = "doku_indomaret",
|
|
1001
|
+
doku_atm_mandiri_va = "doku_atm_mandiri_va",
|
|
1002
|
+
doku_sinarmas_va = "doku_sinarmas_va",
|
|
1003
|
+
doku_mandiri_va = "doku_mandiri_va",
|
|
1004
|
+
doku_cimb_va = "doku_cimb_va",
|
|
1005
|
+
doku_danamon_va = "doku_danamon_va",
|
|
1006
|
+
doku_bri_va = "doku_bri_va",
|
|
1007
|
+
doku_bni_va = "doku_bni_va",
|
|
1008
|
+
doku_bca_va = "doku_bca_va",
|
|
1009
|
+
doku_wallet = "doku_wallet",
|
|
1010
|
+
oxxo = "oxxo",
|
|
1011
|
+
/** Voucher */
|
|
1012
|
+
/** issuerList */
|
|
1013
|
+
billdesk_online = "billdesk_online",
|
|
1014
|
+
billdesk_wallet = "billdesk_wallet",
|
|
1015
|
+
dotpay = "dotpay",
|
|
1016
|
+
eps = "eps",
|
|
1017
|
+
ideal = "ideal",
|
|
1018
|
+
molpay_ebanking_fpx_MY = "molpay_ebanking_fpx_MY",
|
|
1019
|
+
molpay_ebanking_TH = "molpay_ebanking_TH",
|
|
1020
|
+
molpay_ebanking_VN = "molpay_ebanking_VN",
|
|
1021
|
+
onlineBanking_CZ = "onlineBanking_CZ",
|
|
1022
|
+
onlinebanking_IN = "onlinebanking_IN",
|
|
1023
|
+
onlineBanking_PL = "onlineBanking_PL",
|
|
1024
|
+
onlineBanking_SK = "onlineBanking_SK",
|
|
1025
|
+
paybybank = "paybybank",
|
|
1026
|
+
payu_IN_cashcard = "payu_IN_cashcard",
|
|
1027
|
+
payu_IN_nb = "payu_IN_nb",
|
|
1028
|
+
wallet_IN = "wallet_IN",
|
|
1029
|
+
/** issuerList */
|
|
1030
|
+
/** Dragonpay */
|
|
1031
|
+
dragonpay = "dragonpay",
|
|
1032
|
+
dragonpay_ebanking = "dragonpay_ebanking",
|
|
1033
|
+
dragonpay_otc_banking = "dragonpay_otc_banking",
|
|
1034
|
+
dragonpay_otc_non_banking = "dragonpay_otc_non_banking",
|
|
1035
|
+
dragonpay_otc_philippines = "dragonpay_otc_philippines",
|
|
1036
|
+
/** Dragonpay */
|
|
1037
|
+
/** Econtext */
|
|
1038
|
+
econtext = "econtext",
|
|
1039
|
+
econtext_atm = "econtext_atm",
|
|
1040
|
+
econtext_online = "econtext_online",
|
|
1041
|
+
econtext_seven_eleven = "econtext_seven_eleven",
|
|
1042
|
+
econtext_stores = "econtext_stores",
|
|
1043
|
+
/** Econtext */
|
|
1044
|
+
/** Redirect */
|
|
1045
|
+
giropay = "giropay",
|
|
1046
|
+
multibanco = "multibanco",
|
|
1047
|
+
redirect = "redirect",
|
|
1048
|
+
twint = "twint",
|
|
1049
|
+
vipps = "vipps",
|
|
1050
|
+
trustly = "trustly",
|
|
1051
|
+
/** Redirect */
|
|
1052
|
+
/** Klarna */
|
|
1053
|
+
klarna = "klarna",
|
|
1054
|
+
klarna_account = "klarna_account",
|
|
1055
|
+
klarna_paynow = "klarna_paynow",
|
|
1056
|
+
/** Klarna */
|
|
1057
|
+
/** QRLoader */
|
|
1058
|
+
bcmc_mobile = "bcmc_mobile",
|
|
1059
|
+
bcmc_mobile_QR = "bcmc_mobile_QR",
|
|
1060
|
+
pix = "pix",
|
|
1061
|
+
swish = "swish",
|
|
1062
|
+
wechatpay = "wechatpay",
|
|
1063
|
+
wechatpayQR = "wechatpayQR",
|
|
1064
|
+
promptpay = "promptpay",
|
|
1065
|
+
paynow = "paynow",
|
|
1066
|
+
duitnow = "duitnow",
|
|
1067
|
+
/** QRLoader */
|
|
1068
|
+
/** Await */
|
|
1069
|
+
blik = "blik",
|
|
1070
|
+
mbway = "mbway",
|
|
1071
|
+
upi = "upi",// also QR
|
|
1072
|
+
upi_qr = "upi_qr",// also QR
|
|
1073
|
+
upi_collect = "upi_collect",// also QR
|
|
1074
|
+
/** Await */
|
|
1075
|
+
/** Giftcard */
|
|
1076
|
+
giftcard = "giftcard",
|
|
1077
|
+
mealVoucher_FR = "mealVoucher_FR",
|
|
1078
|
+
mealVoucher_FR_natixis = "mealVoucher_FR_natixis",
|
|
1079
|
+
mealVoucher_FR_sodexo = "mealVoucher_FR_sodexo",
|
|
1080
|
+
mealVoucher_FR_groupeup = "mealVoucher_FR_groupeup"
|
|
1081
|
+
/** Giftcard */
|
|
1054
1082
|
}
|
|
1055
1083
|
|
|
1056
|
-
declare
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
static type: any;
|
|
1061
|
-
/**
|
|
1062
|
-
* Defines all txVariants that the Component supports (in case it support multiple ones besides the 'type' one)
|
|
1063
|
-
*/
|
|
1064
|
-
static txVariants: string[];
|
|
1065
|
-
constructor(checkout: ICore, props?: P);
|
|
1066
|
-
protected buildElementProps(componentProps?: P): void;
|
|
1067
|
-
protected storeElementRefOnCore(props?: P): void;
|
|
1068
|
-
isAvailable(): Promise<void>;
|
|
1069
|
-
setState(newState: object): void;
|
|
1070
|
-
showValidation(): this;
|
|
1071
|
-
setElementStatus(status: UIElementStatus, props?: any): this;
|
|
1072
|
-
setStatus(status: UIElementStatus, props?: any): this;
|
|
1073
|
-
protected onChange(): object;
|
|
1074
|
-
protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): Promise<any>;
|
|
1075
|
-
/**
|
|
1076
|
-
* A function for all UIElements, or BaseElement, to use to create an analytics action for when it's been:
|
|
1077
|
-
* - mounted,
|
|
1078
|
-
* - a PM has been selected
|
|
1079
|
-
* - onSubmit has been called (as a result of the pay button being pressed)
|
|
1080
|
-
*
|
|
1081
|
-
* In some other cases e.g. 3DS2 components, this function is overridden to allow more specific analytics actions to be created
|
|
1082
|
-
*/
|
|
1083
|
-
protected submitAnalytics(analyticsObj: SendAnalyticsObject): void;
|
|
1084
|
-
submit(): void;
|
|
1085
|
-
protected makePaymentsCall(): Promise<CheckoutAdvancedFlowResponse | CheckoutSessionPaymentResponse>;
|
|
1086
|
-
private submitUsingAdvancedFlow;
|
|
1087
|
-
private submitUsingSessionsFlow;
|
|
1088
|
-
protected onComplete(state: any): void;
|
|
1089
|
-
protected handleError: (error: AdyenCheckoutError) => void;
|
|
1090
|
-
protected handleAdditionalDetails(state: AdditionalDetailsStateData): void;
|
|
1091
|
-
private makeAdditionalDetailsCall;
|
|
1092
|
-
private submitAdditionalDetailsUsingSessionsFlow;
|
|
1093
|
-
handleAction(action: PaymentAction, props?: {}): UIElement<P> | null;
|
|
1094
|
-
protected handleOrder: (response: PaymentResponseData) => void;
|
|
1095
|
-
/**
|
|
1096
|
-
* Handles when the payment fails. The payment fails when:
|
|
1097
|
-
* - adv flow: the merchant rejects the payment due to a critical error
|
|
1098
|
-
* - adv flow: the merchant resolves the payment with a failed resultCode
|
|
1099
|
-
* - sessions: a network error occurs when making the payment
|
|
1100
|
-
* - sessions: the payment fails with a failed resultCode
|
|
1101
|
-
*
|
|
1102
|
-
* @param result
|
|
1103
|
-
*/
|
|
1104
|
-
protected handleFailedResult: (result?: PaymentResponseData) => void;
|
|
1105
|
-
protected handleSuccessResult: (result: PaymentResponseData) => void;
|
|
1106
|
-
/**
|
|
1107
|
-
* Handles a session /payments or /payments/details response.
|
|
1108
|
-
* The component will handle automatically actions, orders, and final results.
|
|
1109
|
-
*
|
|
1110
|
-
* @param rawResponse -
|
|
1111
|
-
*/
|
|
1112
|
-
protected handleResponse(rawResponse: RawPaymentResponse): void;
|
|
1113
|
-
/**
|
|
1114
|
-
* Call update on parent instance
|
|
1115
|
-
* This function exist to make safe access to the protect _parentInstance
|
|
1116
|
-
* @param options - CoreOptions
|
|
1117
|
-
*/
|
|
1118
|
-
updateParent(options?: CoreConfiguration): Promise<ICore>;
|
|
1119
|
-
setComponentRef: (ref: ComponentMethodsRef) => void;
|
|
1120
|
-
/**
|
|
1121
|
-
* Get the current validation status of the element
|
|
1122
|
-
*/
|
|
1123
|
-
get isValid(): boolean;
|
|
1124
|
-
/**
|
|
1125
|
-
* Get the element icon URL for the current environment
|
|
1126
|
-
*/
|
|
1127
|
-
get icon(): string;
|
|
1128
|
-
/**
|
|
1129
|
-
* Get the element's displayable name
|
|
1130
|
-
*/
|
|
1131
|
-
get displayName(): string;
|
|
1132
|
-
/**
|
|
1133
|
-
* Get the element accessible name, used in the aria-label of the button that controls selected payment method
|
|
1134
|
-
*/
|
|
1135
|
-
get accessibleName(): string;
|
|
1136
|
-
/**
|
|
1137
|
-
* Used to display the second line of a payment method item
|
|
1138
|
-
*/
|
|
1139
|
-
get additionalInfo(): string;
|
|
1140
|
-
/**
|
|
1141
|
-
* Return the type of an element
|
|
1142
|
-
*/
|
|
1143
|
-
get type(): string;
|
|
1144
|
-
/**
|
|
1145
|
-
* Get the payButton component for the current element
|
|
1146
|
-
*/
|
|
1147
|
-
protected payButton: (props: PayButtonFunctionProps) => h.JSX.Element;
|
|
1148
|
-
/**
|
|
1149
|
-
* Used in the Partial Orders flow.
|
|
1150
|
-
* When the Order is updated, the merchant can request new payment methods based on the new remaining amount
|
|
1151
|
-
*
|
|
1152
|
-
* @private
|
|
1153
|
-
*/
|
|
1154
|
-
private handleAdvanceFlowPaymentMethodsUpdate;
|
|
1084
|
+
declare class AfterPay extends OpenInvoiceContainer {
|
|
1085
|
+
static type: TxVariants;
|
|
1086
|
+
static txVariants: TxVariants[];
|
|
1087
|
+
formatProps(props: any): any;
|
|
1155
1088
|
}
|
|
1156
1089
|
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
1162
|
-
*/
|
|
1163
|
-
classNameModifiers?: string[];
|
|
1164
|
-
variant?: ButtonVariant;
|
|
1165
|
-
disabled?: boolean;
|
|
1166
|
-
label?: string;
|
|
1167
|
-
secondaryLabel?: string;
|
|
1168
|
-
icon?: string;
|
|
1169
|
-
inline?: boolean;
|
|
1170
|
-
href?: string;
|
|
1171
|
-
target?: string;
|
|
1172
|
-
rel?: string;
|
|
1173
|
-
onClick?: (e: any, callbacks: any) => void;
|
|
1090
|
+
declare class AfterPayB2B extends OpenInvoiceContainer {
|
|
1091
|
+
static type: TxVariants;
|
|
1092
|
+
protected static defaultProps: Partial<OpenInvoiceConfiguration>;
|
|
1093
|
+
formatProps(props: any): any;
|
|
1174
1094
|
}
|
|
1175
1095
|
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
1179
|
-
*/
|
|
1180
|
-
classNameModifiers?: string[];
|
|
1181
|
-
label?: string;
|
|
1182
|
-
amount: PaymentAmountExtended;
|
|
1183
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
1184
|
-
status?: string;
|
|
1185
|
-
disabled?: boolean;
|
|
1186
|
-
icon?: string;
|
|
1187
|
-
onClick?(): void;
|
|
1188
|
-
}
|
|
1096
|
+
declare const SUPPORTED_LOCALES_EU: readonly ["en_GB", "de_DE", "fr_FR", "it_IT", "es_ES"];
|
|
1097
|
+
declare const SUPPORTED_LOCALES_US: readonly ["en_US"];
|
|
1189
1098
|
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1099
|
+
declare global {
|
|
1100
|
+
interface Window {
|
|
1101
|
+
amazon: object;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
type ButtonColor = 'Gold' | 'LightGray' | 'DarkGray';
|
|
1105
|
+
type Placement = 'Home' | 'Product' | 'Cart' | 'Checkout' | 'Other';
|
|
1106
|
+
type ProductType = 'PayOnly' | 'PayAndShip';
|
|
1107
|
+
type ChargePermissionType = 'OneTime' | 'Recurring';
|
|
1108
|
+
type FrequencyUnit = 'Year' | 'Month' | 'Week' | 'Day' | 'Variable';
|
|
1109
|
+
type Currency = 'EUR' | 'GBP' | 'USD';
|
|
1110
|
+
type Region = 'EU' | 'UK' | 'US';
|
|
1111
|
+
type SupportedLocale = (typeof SUPPORTED_LOCALES_EU)[number] | (typeof SUPPORTED_LOCALES_US)[number];
|
|
1112
|
+
interface RecurringMetadata {
|
|
1113
|
+
frequency: {
|
|
1114
|
+
unit: string;
|
|
1115
|
+
value: FrequencyUnit;
|
|
1116
|
+
};
|
|
1117
|
+
amount: {
|
|
1118
|
+
amount: string;
|
|
1119
|
+
currencyCode: Currency;
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
interface AmazonPayBackendConfiguration {
|
|
1123
|
+
merchantId?: string;
|
|
1124
|
+
publicKeyId?: string;
|
|
1125
|
+
region?: Region;
|
|
1126
|
+
storeId?: string;
|
|
1127
|
+
}
|
|
1128
|
+
interface AmazonPayConfiguration extends UIElementProps {
|
|
1129
|
+
addressDetails?: AddressDetails;
|
|
1130
|
+
amazonPayToken?: string;
|
|
1131
|
+
amazonCheckoutSessionId?: string;
|
|
1132
|
+
amount?: PaymentAmount;
|
|
1133
|
+
buttonColor?: ButtonColor;
|
|
1134
|
+
cancelUrl?: string;
|
|
1135
|
+
chargePermissionType?: ChargePermissionType;
|
|
1136
|
+
clientKey?: string;
|
|
1137
|
+
configuration?: AmazonPayBackendConfiguration;
|
|
1138
|
+
currency?: Currency;
|
|
1139
|
+
deliverySpecifications?: DeliverySpecifications;
|
|
1193
1140
|
environment?: string;
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1141
|
+
loadingContext?: string;
|
|
1142
|
+
locale?: string;
|
|
1143
|
+
merchantMetadata?: MerchantMetadata;
|
|
1144
|
+
onSubmit?(state: any, element: AmazonPayElement, actions: {
|
|
1145
|
+
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
1146
|
+
reject: () => void;
|
|
1147
|
+
}): void;
|
|
1148
|
+
payButton?: any;
|
|
1149
|
+
placement?: Placement;
|
|
1150
|
+
productType?: ProductType;
|
|
1151
|
+
recurringMetadata?: RecurringMetadata;
|
|
1152
|
+
returnUrl?: string;
|
|
1153
|
+
showChangePaymentDetailsButton?: boolean;
|
|
1154
|
+
showOrderButton?: boolean;
|
|
1155
|
+
showSignOutButton?: boolean;
|
|
1156
|
+
signature?: string;
|
|
1157
|
+
onClick?: (resolve: any, reject: any) => Promise<void>;
|
|
1158
|
+
onError?: (error: any, component: any) => void;
|
|
1159
|
+
onSignOut?: (resolve: any, reject: any) => Promise<void>;
|
|
1160
|
+
}
|
|
1161
|
+
interface AmazonPayComponentProps extends AmazonPayConfiguration {
|
|
1162
|
+
showSignOutButton?: boolean;
|
|
1163
|
+
amazonCheckoutSessionId?: string;
|
|
1164
|
+
showOrderButton?: boolean;
|
|
1165
|
+
showChangePaymentDetailsButton?: boolean;
|
|
1166
|
+
onClick: (resolve: any, reject: any) => Promise<void>;
|
|
1167
|
+
onError: (error: any, component: any) => void;
|
|
1168
|
+
onSignOut: (resolve: any, reject: any) => Promise<void>;
|
|
1169
|
+
ref: any;
|
|
1170
|
+
}
|
|
1171
|
+
interface AmazonPayButtonProps {
|
|
1172
|
+
amount?: PaymentAmount;
|
|
1173
|
+
amazonRef: any;
|
|
1174
|
+
buttonColor?: ButtonColor;
|
|
1175
|
+
cancelUrl?: string;
|
|
1176
|
+
chargePermissionType?: ChargePermissionType;
|
|
1177
|
+
clientKey?: string;
|
|
1178
|
+
configuration?: AmazonPayBackendConfiguration;
|
|
1179
|
+
currency?: Currency;
|
|
1180
|
+
deliverySpecifications?: DeliverySpecifications;
|
|
1181
|
+
design?: string;
|
|
1182
|
+
environment?: string;
|
|
1183
|
+
locale?: string;
|
|
1184
|
+
onClick: (resolve: any, reject: any) => Promise<void>;
|
|
1185
|
+
onError: (error: any, component: any) => void;
|
|
1186
|
+
placement?: Placement;
|
|
1187
|
+
productType?: ProductType;
|
|
1188
|
+
recurringMetadata?: RecurringMetadata;
|
|
1189
|
+
ref: any;
|
|
1190
|
+
returnUrl?: string;
|
|
1191
|
+
showPayButton: boolean;
|
|
1192
|
+
}
|
|
1193
|
+
interface SignOutButtonProps {
|
|
1194
|
+
amazonRef: any;
|
|
1195
|
+
onSignOut: (resolve: any, reject: any) => Promise<void>;
|
|
1196
|
+
}
|
|
1197
|
+
interface ChangePaymentDetailsButtonProps {
|
|
1198
|
+
amazonCheckoutSessionId: string;
|
|
1199
|
+
amazonRef: any;
|
|
1200
|
+
}
|
|
1201
|
+
interface ChangeActionOptions {
|
|
1202
|
+
amazonCheckoutSessionId: string;
|
|
1203
|
+
changeAction: 'changeAddress' | 'changePayment';
|
|
1204
|
+
}
|
|
1205
|
+
interface OrderButtonProps {
|
|
1206
|
+
amazonCheckoutSessionId: string;
|
|
1207
|
+
amount: PaymentAmount;
|
|
1208
|
+
clientKey: string;
|
|
1209
|
+
chargePermissionType?: ChargePermissionType;
|
|
1210
|
+
onError: (error: any, component: any) => void;
|
|
1211
|
+
recurringMetadata: RecurringMetadata;
|
|
1212
|
+
ref: any;
|
|
1213
|
+
region: Region;
|
|
1214
|
+
returnUrl: string;
|
|
1215
|
+
publicKeyId: string;
|
|
1216
|
+
}
|
|
1217
|
+
interface AmazonPayElementData {
|
|
1218
|
+
paymentMethod: {
|
|
1219
|
+
type: string;
|
|
1220
|
+
checkoutSessionId?: string;
|
|
1221
|
+
};
|
|
1222
|
+
browserInfo: BrowserInfo;
|
|
1223
|
+
}
|
|
1224
|
+
interface AmazonPayButtonSettings {
|
|
1225
|
+
buttonColor?: ButtonColor;
|
|
1226
|
+
design?: string;
|
|
1197
1227
|
/**
|
|
1198
|
-
*
|
|
1199
|
-
* @internal
|
|
1228
|
+
* Amazon Pay merchant account identifier
|
|
1200
1229
|
*/
|
|
1201
|
-
|
|
1230
|
+
merchantId: string;
|
|
1202
1231
|
/**
|
|
1203
|
-
*
|
|
1204
|
-
* Perhaps can be deprecated and we use the one above?
|
|
1205
|
-
* @internal
|
|
1232
|
+
* Sets button to Sandbox environment
|
|
1206
1233
|
*/
|
|
1207
|
-
|
|
1234
|
+
sandbox: boolean;
|
|
1208
1235
|
/**
|
|
1209
|
-
*
|
|
1210
|
-
* @internal
|
|
1236
|
+
* Product type selected for checkout
|
|
1211
1237
|
*/
|
|
1212
|
-
|
|
1238
|
+
productType: ProductType;
|
|
1213
1239
|
/**
|
|
1214
|
-
*
|
|
1215
|
-
* @internal
|
|
1240
|
+
* Placement of the Amazon Pay button on your website
|
|
1216
1241
|
*/
|
|
1217
|
-
|
|
1218
|
-
type?: string;
|
|
1219
|
-
name?: string;
|
|
1220
|
-
icon?: string;
|
|
1221
|
-
amount?: PaymentAmount;
|
|
1222
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
1242
|
+
placement: Placement;
|
|
1223
1243
|
/**
|
|
1224
|
-
*
|
|
1225
|
-
* @defaultValue true
|
|
1244
|
+
* Language used to render the button and text on Amazon Pay hosted pages. Please note that supported language(s) is dependent on the region that your Amazon Pay account was registered for
|
|
1226
1245
|
*/
|
|
1227
|
-
|
|
1228
|
-
/** @internal */
|
|
1229
|
-
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
1230
|
-
/** @internal */
|
|
1231
|
-
loadingContext?: string;
|
|
1232
|
-
/** @internal */
|
|
1233
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
1234
|
-
/** @internal */
|
|
1235
|
-
clientKey?: string;
|
|
1236
|
-
/** @internal */
|
|
1237
|
-
elementRef?: any;
|
|
1238
|
-
/** @internal */
|
|
1239
|
-
i18n?: Language;
|
|
1246
|
+
checkoutLanguage: SupportedLocale;
|
|
1240
1247
|
/**
|
|
1241
|
-
*
|
|
1242
|
-
* @internal
|
|
1248
|
+
* Ledger currency provided during registration for the given merchant identifier
|
|
1243
1249
|
*/
|
|
1244
|
-
|
|
1245
|
-
/**
|
|
1246
|
-
* Returned after the payments call, when an action is returned. It represents the payment method tx variant
|
|
1247
|
-
* that was used for the payment
|
|
1248
|
-
* @internal
|
|
1249
|
-
*/
|
|
1250
|
-
paymentMethodType?: string;
|
|
1251
|
-
};
|
|
1252
|
-
interface IUIElement extends IBaseElement {
|
|
1253
|
-
isValid: boolean;
|
|
1254
|
-
displayName: string;
|
|
1255
|
-
accessibleName: string;
|
|
1256
|
-
type: string;
|
|
1257
|
-
icon: string;
|
|
1258
|
-
elementRef: IUIElement;
|
|
1259
|
-
submit(): void;
|
|
1260
|
-
setComponentRef(ref: any): void;
|
|
1261
|
-
updateParent(options?: CoreConfiguration): Promise<ICore>;
|
|
1262
|
-
setElementStatus(status: UIElementStatus, props: any): UIElement;
|
|
1263
|
-
setStatus(status: UIElementStatus, props?: {
|
|
1264
|
-
message?: string;
|
|
1265
|
-
[key: string]: any;
|
|
1266
|
-
}): UIElement;
|
|
1267
|
-
handleAction(action: PaymentAction): UIElement | null;
|
|
1268
|
-
showValidation(): void;
|
|
1269
|
-
setState(newState: object): void;
|
|
1270
|
-
isAvailable(): Promise<void>;
|
|
1250
|
+
ledgerCurrency: Currency;
|
|
1271
1251
|
}
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1252
|
+
interface MerchantMetadata {
|
|
1253
|
+
customInformation?: string;
|
|
1254
|
+
merchantReferenceId?: string;
|
|
1255
|
+
merchantStoreName?: string;
|
|
1256
|
+
noteToBuyer?: string;
|
|
1276
1257
|
}
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1258
|
+
interface AddressDetails {
|
|
1259
|
+
name?: string;
|
|
1260
|
+
addressLine1?: string;
|
|
1261
|
+
addressLine2?: string;
|
|
1262
|
+
addressLine3?: string;
|
|
1263
|
+
city?: string;
|
|
1264
|
+
districtOrCounty?: string;
|
|
1265
|
+
stateOrRegion?: string;
|
|
1266
|
+
postalCode?: string;
|
|
1267
|
+
countryCode?: string;
|
|
1268
|
+
phoneNumber?: string;
|
|
1269
|
+
}
|
|
1270
|
+
interface ChargeAmount {
|
|
1271
|
+
amount: string;
|
|
1272
|
+
currencyCode: Currency;
|
|
1273
|
+
}
|
|
1274
|
+
type LedgerCurrencies = {
|
|
1275
|
+
[key in Region]: Currency;
|
|
1286
1276
|
};
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1277
|
+
interface PayloadJSON {
|
|
1278
|
+
addressDetails?: AddressDetails;
|
|
1279
|
+
chargePermissionType?: ChargePermissionType;
|
|
1280
|
+
deliverySpecifications?: DeliverySpecifications;
|
|
1281
|
+
merchantMetadata?: MerchantMetadata;
|
|
1282
|
+
paymentDetails?: {
|
|
1283
|
+
chargeAmount: ChargeAmount;
|
|
1284
|
+
paymentIntent: 'Confirm';
|
|
1285
|
+
presentmentCurrency: Currency;
|
|
1286
|
+
totalOrderAmount: ChargeAmount;
|
|
1287
|
+
};
|
|
1288
|
+
recurringMetadata?: RecurringMetadata;
|
|
1289
|
+
storeId: string;
|
|
1290
|
+
webCheckoutDetails: {
|
|
1291
|
+
checkoutCancelUrl?: string;
|
|
1292
|
+
checkoutMode?: 'ProcessOrder';
|
|
1293
|
+
checkoutResultReturnUrl?: string;
|
|
1294
|
+
checkoutReviewReturnUrl?: string;
|
|
1295
|
+
};
|
|
1294
1296
|
}
|
|
1295
|
-
interface
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1297
|
+
interface CheckoutDetailsRequest {
|
|
1298
|
+
checkoutSessionId: string;
|
|
1299
|
+
getDeliveryAddress?: boolean;
|
|
1300
|
+
getDeclineFlowUrl?: boolean;
|
|
1301
|
+
publicKeyId: string;
|
|
1302
|
+
region: Region;
|
|
1303
|
+
}
|
|
1304
|
+
interface UpdateAmazonCheckoutSessionRequest {
|
|
1305
|
+
amount: PaymentAmount;
|
|
1306
|
+
chargePermissionType?: ChargePermissionType;
|
|
1307
|
+
checkoutCancelUrl?: string;
|
|
1308
|
+
checkoutResultReturnUrl: string;
|
|
1309
|
+
checkoutSessionId: string;
|
|
1310
|
+
publicKeyId: string;
|
|
1311
|
+
recurringMetadata?: RecurringMetadata;
|
|
1312
|
+
region: Region;
|
|
1313
|
+
}
|
|
1314
|
+
interface CheckoutSessionConfig {
|
|
1315
|
+
payloadJSON: string;
|
|
1316
|
+
signature: string;
|
|
1317
|
+
publicKeyId: string;
|
|
1318
|
+
}
|
|
1319
|
+
interface DeliverySpecifications {
|
|
1320
|
+
specialRestrictions?: string[];
|
|
1321
|
+
addressRestrictions?: AddressRestrictions;
|
|
1322
|
+
}
|
|
1323
|
+
interface AddressRestrictions {
|
|
1324
|
+
type?: 'Allowed' | 'NotAllowed';
|
|
1325
|
+
restrictions?: Restrictions;
|
|
1326
|
+
}
|
|
1327
|
+
interface Restrictions {
|
|
1328
|
+
[key: string]: {
|
|
1329
|
+
zipCodes?: string[];
|
|
1330
|
+
statesOrRegions?: string[];
|
|
1331
|
+
};
|
|
1299
1332
|
}
|
|
1300
1333
|
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
interface PaymentAction {
|
|
1334
|
+
declare class AmazonPayElement extends UIElement<AmazonPayConfiguration> {
|
|
1335
|
+
static type: TxVariants;
|
|
1336
|
+
protected static defaultProps: Partial<AmazonPayConfiguration>;
|
|
1337
|
+
formatProps(props: any): any;
|
|
1306
1338
|
/**
|
|
1307
|
-
*
|
|
1339
|
+
* Formats the component data output
|
|
1308
1340
|
*/
|
|
1309
|
-
|
|
1341
|
+
formatData(): AmazonPayElementData;
|
|
1342
|
+
getShopperDetails(): void | Promise<any>;
|
|
1343
|
+
handleDeclineFlow(): void;
|
|
1344
|
+
get isValid(): boolean;
|
|
1345
|
+
get browserInfo(): BrowserInfo;
|
|
1346
|
+
submit(): void;
|
|
1347
|
+
render(): h.JSX.Element;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
declare global {
|
|
1351
|
+
interface Window {
|
|
1352
|
+
ApplePaySession: ApplePaySession;
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
type Initiative = 'web' | 'messaging';
|
|
1356
|
+
type ApplePayPaymentOrderDetails = {
|
|
1357
|
+
orderTypeIdentifier: string;
|
|
1358
|
+
orderIdentifier: string;
|
|
1359
|
+
webServiceURL: string;
|
|
1360
|
+
authenticationToken: string;
|
|
1361
|
+
};
|
|
1362
|
+
type ApplePayPaymentAuthorizationResult = ApplePayJS.ApplePayPaymentAuthorizationResult & {
|
|
1363
|
+
orderDetails?: ApplePayPaymentOrderDetails;
|
|
1364
|
+
};
|
|
1365
|
+
type ApplePayButtonType = 'plain' | 'buy' | 'donate' | 'check-out' | 'book' | 'subscribe' | 'add-money' | 'contribute' | 'order' | 'reload' | 'rent' | 'support' | 'tip' | 'top-up';
|
|
1366
|
+
interface ApplePayConfiguration extends UIElementProps {
|
|
1310
1367
|
/**
|
|
1311
|
-
*
|
|
1368
|
+
* Enables the ApplePay Express Flow
|
|
1369
|
+
* @defaultValue false
|
|
1312
1370
|
*/
|
|
1313
|
-
|
|
1371
|
+
isExpress?: boolean;
|
|
1314
1372
|
/**
|
|
1315
|
-
*
|
|
1373
|
+
* The Apple Pay version number your website supports.
|
|
1374
|
+
* @default highest supported version by the shopper device
|
|
1375
|
+
* @see {@link https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_on_the_web_version_history Apple Pay on the Web Version History}
|
|
1316
1376
|
*/
|
|
1317
|
-
|
|
1377
|
+
version?: number;
|
|
1318
1378
|
/**
|
|
1319
|
-
*
|
|
1379
|
+
* Part of the 'ApplePayLineItem' object, which sets the label of the payment request
|
|
1380
|
+
* @see {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaylineitem ApplePayLineItem docs}
|
|
1320
1381
|
*/
|
|
1321
|
-
|
|
1322
|
-
authorisationToken?: string;
|
|
1382
|
+
totalPriceLabel?: string;
|
|
1323
1383
|
/**
|
|
1324
|
-
*
|
|
1384
|
+
* @default 'final'
|
|
1325
1385
|
*/
|
|
1326
|
-
|
|
1386
|
+
totalPriceStatus?: ApplePayJS.ApplePayLineItemType;
|
|
1327
1387
|
/**
|
|
1328
|
-
*
|
|
1388
|
+
* ApplePay configuration sent by the /paymentMethods response
|
|
1329
1389
|
*/
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
issuer?: string;
|
|
1337
|
-
maskedTelephoneNumber?: string;
|
|
1338
|
-
merchantName?: string;
|
|
1339
|
-
merchantReference?: string;
|
|
1340
|
-
reference?: string;
|
|
1341
|
-
shopperEmail?: string;
|
|
1342
|
-
shopperName?: string;
|
|
1343
|
-
qrCodeData?: string;
|
|
1390
|
+
configuration?: {
|
|
1391
|
+
merchantName?: string;
|
|
1392
|
+
merchantId?: string;
|
|
1393
|
+
};
|
|
1394
|
+
clientKey?: string;
|
|
1395
|
+
initiative?: Initiative;
|
|
1344
1396
|
/**
|
|
1345
|
-
* A
|
|
1397
|
+
* A set of line items that explain recurring payments and/or additional charges.
|
|
1346
1398
|
*/
|
|
1347
|
-
|
|
1399
|
+
lineItems?: ApplePayJS.ApplePayLineItem[];
|
|
1348
1400
|
/**
|
|
1349
|
-
*
|
|
1401
|
+
* The payment capabilities supported by the merchant.
|
|
1402
|
+
* The value must at least contain ApplePayMerchantCapability.supports3DS.
|
|
1403
|
+
* @default ['supports3DS']
|
|
1350
1404
|
*/
|
|
1351
|
-
|
|
1352
|
-
[key: string]: any;
|
|
1353
|
-
};
|
|
1354
|
-
}
|
|
1355
|
-
type Issuer = {
|
|
1356
|
-
id: string;
|
|
1357
|
-
name: string;
|
|
1358
|
-
disabled?: boolean;
|
|
1359
|
-
};
|
|
1360
|
-
interface PaymentMethod {
|
|
1405
|
+
merchantCapabilities?: ApplePayJS.ApplePayMerchantCapability[];
|
|
1361
1406
|
/**
|
|
1362
|
-
*
|
|
1407
|
+
* A set of shipping method objects that describe the available shipping methods.
|
|
1363
1408
|
*/
|
|
1364
|
-
|
|
1409
|
+
shippingMethods?: ApplePayJS.ApplePayShippingMethod[];
|
|
1365
1410
|
/**
|
|
1366
|
-
*
|
|
1411
|
+
* How the items are to be shipped.
|
|
1367
1412
|
*/
|
|
1368
|
-
|
|
1413
|
+
shippingType?: ApplePayJS.ApplePayShippingType;
|
|
1369
1414
|
/**
|
|
1370
|
-
* A list of
|
|
1415
|
+
* A list of ISO 3166 country codes for limiting payments to cards from specific countries.
|
|
1371
1416
|
*/
|
|
1372
|
-
|
|
1417
|
+
supportedCountries?: string[];
|
|
1373
1418
|
/**
|
|
1374
|
-
*
|
|
1419
|
+
* The payment networks supported by the merchant.
|
|
1375
1420
|
*/
|
|
1376
|
-
|
|
1421
|
+
supportedNetworks?: string[];
|
|
1377
1422
|
/**
|
|
1378
|
-
*
|
|
1423
|
+
* ApplePayRecurringPaymentRequest - Represents a request to set up a recurring payment, typically a subscription.
|
|
1424
|
+
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepayrecurringpaymentrequest}
|
|
1379
1425
|
*/
|
|
1380
|
-
|
|
1426
|
+
recurringPaymentRequest?: ApplePayJS.ApplePayRecurringPaymentRequest;
|
|
1381
1427
|
/**
|
|
1382
|
-
*
|
|
1428
|
+
* The billing information that you require from the user in order to process the transaction.
|
|
1383
1429
|
*/
|
|
1384
|
-
|
|
1430
|
+
requiredBillingContactFields?: ApplePayJS.ApplePayContactField[];
|
|
1385
1431
|
/**
|
|
1386
|
-
* The
|
|
1432
|
+
* The shipping information that you require from the user in order to fulfill the order.
|
|
1387
1433
|
*/
|
|
1388
|
-
|
|
1434
|
+
requiredShippingContactFields?: ApplePayJS.ApplePayContactField[];
|
|
1389
1435
|
/**
|
|
1390
|
-
*
|
|
1436
|
+
* Billing contact information for the user.
|
|
1391
1437
|
*/
|
|
1392
|
-
|
|
1393
|
-
}
|
|
1394
|
-
/**
|
|
1395
|
-
* List of the available payment methods
|
|
1396
|
-
* {@link https://docs.adyen.com/api-explorer/Checkout/70/post/paymentMethods API Explorer /paymentMethods}.
|
|
1397
|
-
*/
|
|
1398
|
-
interface PaymentMethodsResponse {
|
|
1438
|
+
billingContact?: ApplePayJS.ApplePayPaymentContact;
|
|
1399
1439
|
/**
|
|
1400
|
-
*
|
|
1440
|
+
* Shipping contact information for the user.
|
|
1401
1441
|
*/
|
|
1402
|
-
|
|
1442
|
+
shippingContact?: ApplePayJS.ApplePayPaymentContact;
|
|
1403
1443
|
/**
|
|
1404
|
-
*
|
|
1444
|
+
* Optional user-defined data.
|
|
1405
1445
|
*/
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
interface StoredPaymentMethod extends PaymentMethod {
|
|
1409
|
-
id: string;
|
|
1410
|
-
name: string;
|
|
1411
|
-
supportedShopperInteractions: string[];
|
|
1412
|
-
expiryMonth?: string;
|
|
1413
|
-
expiryYear?: string;
|
|
1414
|
-
holderName?: string;
|
|
1415
|
-
iban?: string;
|
|
1416
|
-
lastFour?: string;
|
|
1417
|
-
networkTxReference?: string;
|
|
1418
|
-
ownerName?: string;
|
|
1419
|
-
shopperEmail?: string;
|
|
1420
|
-
/** The shopper’s issuer account label */
|
|
1421
|
-
label?: string;
|
|
1446
|
+
applicationData?: string;
|
|
1447
|
+
onClick?: (resolve: any, reject: any) => void;
|
|
1422
1448
|
/**
|
|
1423
|
-
*
|
|
1424
|
-
*
|
|
1449
|
+
* Callback called when ApplePay authorize the payment.
|
|
1450
|
+
* Must be resolved/rejected with the action object.
|
|
1451
|
+
*
|
|
1452
|
+
* @param data - Authorization event from ApplePay, along with formatted billingAddress and deliveryAddress
|
|
1453
|
+
* @param actions - Object to continue/stop with the payment flow
|
|
1454
|
+
*
|
|
1455
|
+
* @remarks
|
|
1456
|
+
* If actions.resolve() is called, the payment flow will be triggered.
|
|
1457
|
+
* If actions.reject() is called, the overlay will display an error
|
|
1425
1458
|
*/
|
|
1426
|
-
|
|
1459
|
+
onAuthorized?: (data: {
|
|
1460
|
+
authorizedEvent: ApplePayJS.ApplePayPaymentAuthorizedEvent;
|
|
1461
|
+
billingAddress?: Partial<AddressData>;
|
|
1462
|
+
deliveryAddress?: Partial<AddressData>;
|
|
1463
|
+
}, actions: {
|
|
1464
|
+
resolve: () => void;
|
|
1465
|
+
reject: (error?: ApplePayJS.ApplePayError) => void;
|
|
1466
|
+
}) => void;
|
|
1427
1467
|
/**
|
|
1428
|
-
*
|
|
1429
|
-
*
|
|
1468
|
+
* Collect the order tracking details if available.
|
|
1469
|
+
* This callback is invoked when a successfull payment is resolved
|
|
1470
|
+
*
|
|
1471
|
+
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentorderdetails}
|
|
1472
|
+
* @param resolve - Must be called with the orderDetails fields
|
|
1473
|
+
* @param reject - Must be called if something failed during the order creation. Calling 'reject' won't cancel the payment flow
|
|
1430
1474
|
*/
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
/**
|
|
1434
|
-
* The group where this payment method belongs to.
|
|
1435
|
-
*/
|
|
1436
|
-
interface PaymentMethodGroup {
|
|
1475
|
+
onOrderTrackingRequest?: (resolve: (orderDetails: ApplePayPaymentOrderDetails) => void, reject: () => void) => void;
|
|
1476
|
+
onValidateMerchant?: (resolve: any, reject: any, validationURL: string) => void;
|
|
1437
1477
|
/**
|
|
1438
|
-
*
|
|
1478
|
+
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778013-onpaymentmethodselected}
|
|
1479
|
+
* @param resolve(ApplePayPaymentMethodUpdate update) Completes the selection of a payment method with an update.
|
|
1480
|
+
* @param reject() Completes the selection of a payment method with no update.
|
|
1481
|
+
* @param event The event parameter contains the paymentMethod attribute.
|
|
1439
1482
|
*/
|
|
1440
|
-
|
|
1483
|
+
onPaymentMethodSelected?: (resolve: any, reject: any, event: ApplePayJS.ApplePayPaymentMethodSelectedEvent) => void;
|
|
1441
1484
|
/**
|
|
1442
|
-
*
|
|
1485
|
+
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778009-onshippingcontactselected}
|
|
1486
|
+
* @param resolve(ApplePayShippingContactUpdate update) Completes the selection of a shipping contact with an update.
|
|
1487
|
+
* @param reject() Completes the selection of a shipping contact with no update.
|
|
1488
|
+
* @param event The event parameter contains the shippingContact attribute.
|
|
1443
1489
|
*/
|
|
1444
|
-
|
|
1490
|
+
onShippingContactSelected?: (resolve: any, reject: any, event: ApplePayJS.ApplePayShippingContactSelectedEvent) => void;
|
|
1445
1491
|
/**
|
|
1446
|
-
*
|
|
1492
|
+
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778028-onshippingmethodselected}
|
|
1493
|
+
* @param resolve(ApplePayShippingMethodUpdate update) Completes the selection of a shipping method with an update.
|
|
1494
|
+
* @param reject() Completes the selection of a shipping method with no update.
|
|
1495
|
+
* @param event The event parameter contains the shippingMethod attribute.
|
|
1447
1496
|
*/
|
|
1448
|
-
|
|
1497
|
+
onShippingMethodSelected?: (resolve: any, reject: any, event: ApplePayJS.ApplePayShippingMethodSelectedEvent) => void;
|
|
1498
|
+
buttonColor?: 'black' | 'white' | 'white-with-line';
|
|
1499
|
+
buttonType?: ApplePayButtonType;
|
|
1449
1500
|
}
|
|
1450
|
-
interface
|
|
1451
|
-
|
|
1452
|
-
|
|
1501
|
+
interface ApplePayElementData {
|
|
1502
|
+
paymentMethod: {
|
|
1503
|
+
type: string;
|
|
1504
|
+
applePayToken: string;
|
|
1505
|
+
isExpress?: boolean;
|
|
1506
|
+
};
|
|
1507
|
+
billingAddress?: AddressData;
|
|
1508
|
+
deliveryAddress?: AddressData;
|
|
1453
1509
|
}
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
currency: string;
|
|
1510
|
+
interface ApplePaySessionRequest {
|
|
1511
|
+
displayName: string;
|
|
1512
|
+
domainName: string;
|
|
1513
|
+
initiative: Initiative;
|
|
1514
|
+
merchantIdentifier: string;
|
|
1460
1515
|
}
|
|
1461
|
-
|
|
1516
|
+
|
|
1517
|
+
declare class ApplePayElement extends UIElement<ApplePayConfiguration> {
|
|
1518
|
+
static type: TxVariants;
|
|
1519
|
+
protected static defaultProps: ApplePayConfiguration;
|
|
1520
|
+
constructor(checkout: ICore, props?: ApplePayConfiguration);
|
|
1462
1521
|
/**
|
|
1463
|
-
*
|
|
1464
|
-
* Defaults to 'symbol'.
|
|
1465
|
-
* see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currencydisplay
|
|
1522
|
+
* Formats the component props
|
|
1466
1523
|
*/
|
|
1467
|
-
|
|
1468
|
-
}
|
|
1469
|
-
type AddressField = (typeof ADDRESS_SCHEMA)[number];
|
|
1470
|
-
type AddressData = {
|
|
1471
|
-
[key in AddressField]?: string;
|
|
1472
|
-
};
|
|
1473
|
-
interface PersonalDetailsSchema {
|
|
1474
|
-
firstName?: string;
|
|
1475
|
-
lastName?: string;
|
|
1476
|
-
gender?: string;
|
|
1477
|
-
dateOfBirth?: string;
|
|
1478
|
-
shopperEmail?: string;
|
|
1479
|
-
telephoneNumber?: string;
|
|
1480
|
-
}
|
|
1481
|
-
interface Order {
|
|
1524
|
+
protected formatProps(props: any): any;
|
|
1482
1525
|
/**
|
|
1483
|
-
*
|
|
1526
|
+
* Formats the component data output
|
|
1484
1527
|
*/
|
|
1485
|
-
|
|
1528
|
+
protected formatData(): ApplePayElementData;
|
|
1529
|
+
submit: () => void;
|
|
1530
|
+
private startSession;
|
|
1486
1531
|
/**
|
|
1487
|
-
*
|
|
1532
|
+
* Call the 'onAuthorized' callback if available.
|
|
1533
|
+
* Must be resolved/reject for the payment flow to continue
|
|
1534
|
+
*
|
|
1535
|
+
* @private
|
|
1488
1536
|
*/
|
|
1489
|
-
|
|
1537
|
+
private handleAuthorization;
|
|
1490
1538
|
/**
|
|
1491
|
-
*
|
|
1539
|
+
* Verify if the 'onOrderTrackingRequest' is provided. If so, triggers the callback expecting an
|
|
1540
|
+
* Apple Pay order details back
|
|
1541
|
+
*
|
|
1542
|
+
* @private
|
|
1492
1543
|
*/
|
|
1493
|
-
|
|
1544
|
+
private collectOrderTrackingDetailsIfNeeded;
|
|
1545
|
+
private validateMerchant;
|
|
1546
|
+
/**
|
|
1547
|
+
* Validation
|
|
1548
|
+
*
|
|
1549
|
+
* @remarks
|
|
1550
|
+
* Apple Pay does not require any specific validation
|
|
1551
|
+
*/
|
|
1552
|
+
get isValid(): boolean;
|
|
1553
|
+
/**
|
|
1554
|
+
* Determine a shopper's ability to return a form of payment from Apple Pay.
|
|
1555
|
+
* @returns Promise Resolve/Reject whether the shopper can use Apple Pay
|
|
1556
|
+
*/
|
|
1557
|
+
isAvailable(): Promise<void>;
|
|
1558
|
+
/**
|
|
1559
|
+
* Renders the Apple Pay button or nothing in the Dropin
|
|
1560
|
+
*/
|
|
1561
|
+
render(): h.JSX.Element;
|
|
1494
1562
|
}
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
lastFour: string;
|
|
1500
|
-
type: string;
|
|
1501
|
-
}[];
|
|
1502
|
-
pspReference: string;
|
|
1503
|
-
reference: string;
|
|
1504
|
-
remainingAmount: PaymentAmount;
|
|
1563
|
+
|
|
1564
|
+
declare class Atome extends OpenInvoiceContainer {
|
|
1565
|
+
static type: TxVariants;
|
|
1566
|
+
formatProps(props: any): any;
|
|
1505
1567
|
}
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1568
|
+
|
|
1569
|
+
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'action';
|
|
1570
|
+
interface ButtonProps {
|
|
1571
|
+
status?: string;
|
|
1572
|
+
/**
|
|
1573
|
+
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
1574
|
+
*/
|
|
1575
|
+
classNameModifiers?: string[];
|
|
1576
|
+
variant?: ButtonVariant;
|
|
1577
|
+
disabled?: boolean;
|
|
1578
|
+
label?: string;
|
|
1579
|
+
secondaryLabel?: string;
|
|
1580
|
+
icon?: string;
|
|
1581
|
+
inline?: boolean;
|
|
1582
|
+
href?: string;
|
|
1583
|
+
target?: string;
|
|
1584
|
+
rel?: string;
|
|
1585
|
+
onClick?: (e: any, callbacks: any) => void;
|
|
1518
1586
|
}
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
language: string;
|
|
1533
|
-
screenHeight: number;
|
|
1534
|
-
screenWidth: number;
|
|
1535
|
-
timeZoneOffset: number;
|
|
1536
|
-
userAgent: string;
|
|
1537
|
-
};
|
|
1587
|
+
|
|
1588
|
+
interface PayButtonProps extends ButtonProps {
|
|
1589
|
+
/**
|
|
1590
|
+
* Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
|
|
1591
|
+
*/
|
|
1592
|
+
classNameModifiers?: string[];
|
|
1593
|
+
label?: string;
|
|
1594
|
+
amount: PaymentAmountExtended;
|
|
1595
|
+
secondaryAmount?: PaymentAmountExtended;
|
|
1596
|
+
status?: string;
|
|
1597
|
+
disabled?: boolean;
|
|
1598
|
+
icon?: string;
|
|
1599
|
+
onClick?(): void;
|
|
1538
1600
|
}
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
clientData: string;
|
|
1545
|
-
};
|
|
1546
|
-
order?: {
|
|
1547
|
-
orderData: string;
|
|
1548
|
-
pspReference: string;
|
|
1549
|
-
};
|
|
1550
|
-
clientStateDataIndicator: boolean;
|
|
1551
|
-
sessionData?: string;
|
|
1552
|
-
storePaymentMethod?: boolean;
|
|
1553
|
-
}
|
|
1554
|
-
type ResultCode = 'AuthenticationFinished' | 'AuthenticationNotRequired' | 'Authorised' | 'Cancelled' | 'ChallengeShopper' | 'Error' | 'IdentifyShopper' | 'PartiallyAuthorised' | 'Pending' | 'PresentToShopper' | 'Received' | 'RedirectShopper' | 'Refused';
|
|
1555
|
-
type SessionsResponse = {
|
|
1556
|
-
sessionData: string;
|
|
1557
|
-
sessionResult: string;
|
|
1558
|
-
resultCode: ResultCode;
|
|
1559
|
-
};
|
|
1560
|
-
interface PaymentMethodsRequestData {
|
|
1561
|
-
order?: Order;
|
|
1562
|
-
locale?: string;
|
|
1563
|
-
countryCode?: string;
|
|
1564
|
-
}
|
|
1565
|
-
interface CheckoutAdvancedFlowResponse {
|
|
1566
|
-
resultCode: ResultCode;
|
|
1567
|
-
action?: PaymentAction;
|
|
1568
|
-
order?: Order;
|
|
1569
|
-
donationToken?: string;
|
|
1570
|
-
error?: {
|
|
1571
|
-
googlePayError?: google.payments.api.PaymentDataError | string;
|
|
1572
|
-
applePayError?: ApplePayJS.ApplePayError[] | ApplePayJS.ApplePayError;
|
|
1573
|
-
};
|
|
1601
|
+
|
|
1602
|
+
interface IssuerItem {
|
|
1603
|
+
id: string;
|
|
1604
|
+
name: string;
|
|
1605
|
+
icon?: string;
|
|
1574
1606
|
}
|
|
1575
|
-
interface
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
action?: PaymentAction;
|
|
1579
|
-
sessionData?: string;
|
|
1580
|
-
sessionResult?: string;
|
|
1581
|
-
order?: Order;
|
|
1582
|
-
donationToken?: string;
|
|
1607
|
+
interface TermsAndConditions {
|
|
1608
|
+
translationKey: string;
|
|
1609
|
+
urls: string[];
|
|
1583
1610
|
}
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1611
|
+
|
|
1612
|
+
interface IssuerListConfiguration extends UIElementProps {
|
|
1613
|
+
showImage?: boolean;
|
|
1614
|
+
placeholder?: string;
|
|
1615
|
+
issuers?: IssuerItem[];
|
|
1616
|
+
highlightedIssuers?: string[];
|
|
1617
|
+
showPaymentMethodItemImages?: boolean;
|
|
1618
|
+
termsAndConditions?: TermsAndConditions;
|
|
1619
|
+
showContextualElement?: boolean;
|
|
1591
1620
|
}
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
threeDSResult?: string;
|
|
1597
|
-
[key: string]: any;
|
|
1598
|
-
};
|
|
1599
|
-
paymentData?: string;
|
|
1600
|
-
sessionData?: string;
|
|
1621
|
+
interface IssuerListData {
|
|
1622
|
+
paymentMethod: {
|
|
1623
|
+
type: string;
|
|
1624
|
+
issuer: string;
|
|
1601
1625
|
};
|
|
1602
|
-
};
|
|
1603
|
-
interface AnalyticsModule {
|
|
1604
|
-
setUp: (a: AnalyticsInitialEvent) => Promise<any>;
|
|
1605
|
-
getCheckoutAttemptId: () => string;
|
|
1606
|
-
getEventsQueue: () => EventsQueueModule;
|
|
1607
|
-
createAnalyticsEvent: (a: CreateAnalyticsEventObject) => void;
|
|
1608
|
-
getEnabled: () => boolean;
|
|
1609
|
-
sendAnalytics: (component: string, analyticsObj: SendAnalyticsObject) => void;
|
|
1610
1626
|
}
|
|
1611
|
-
type ComponentFocusObject = {
|
|
1612
|
-
fieldType: string;
|
|
1613
|
-
event: Event | CbObjOnFocus;
|
|
1614
|
-
};
|
|
1615
1627
|
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1628
|
+
declare class IssuerListContainer extends UIElement<IssuerListConfiguration> {
|
|
1629
|
+
protected static defaultProps: {
|
|
1630
|
+
showImage: boolean;
|
|
1631
|
+
issuers: any[];
|
|
1632
|
+
highlightedIssuers: any[];
|
|
1633
|
+
loadingContext: string;
|
|
1634
|
+
showPaymentMethodItemImages: boolean;
|
|
1635
|
+
showPayButton: boolean;
|
|
1621
1636
|
};
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
type CheckoutSession = {
|
|
1625
|
-
id: string;
|
|
1626
|
-
sessionData: string;
|
|
1627
|
-
shopperLocale?: string;
|
|
1628
|
-
shopperEmail?: string;
|
|
1629
|
-
telephoneNumber?: string;
|
|
1630
|
-
};
|
|
1631
|
-
type SessionConfiguration = {
|
|
1632
|
-
installmentOptions?: InstallmentOptions;
|
|
1633
|
-
enableStoreDetails?: boolean;
|
|
1634
|
-
};
|
|
1635
|
-
type CheckoutSessionSetupResponse = {
|
|
1636
|
-
id: string;
|
|
1637
|
-
sessionData: string;
|
|
1638
|
-
countryCode?: string;
|
|
1639
|
-
amount: PaymentAmount;
|
|
1640
|
-
expiresAt: string;
|
|
1641
|
-
paymentMethods: any;
|
|
1642
|
-
returnUrl: string;
|
|
1643
|
-
configuration: SessionConfiguration;
|
|
1637
|
+
constructor(checkout: ICore, props?: IssuerListConfiguration);
|
|
1638
|
+
formatProps(props: any): any;
|
|
1644
1639
|
/**
|
|
1645
|
-
*
|
|
1646
|
-
* @defaultValue en-US
|
|
1640
|
+
* Formats the component data output
|
|
1647
1641
|
*/
|
|
1648
|
-
|
|
1649
|
-
};
|
|
1650
|
-
type CheckoutSessionPaymentResponse = {
|
|
1651
|
-
sessionData: string;
|
|
1652
|
-
sessionResult: string;
|
|
1653
|
-
status?: string;
|
|
1654
|
-
resultCode: ResultCode;
|
|
1655
|
-
action?: PaymentAction;
|
|
1656
|
-
};
|
|
1657
|
-
type CheckoutSessionDetailsResponse = {
|
|
1658
|
-
sessionData: string;
|
|
1659
|
-
sessionResult: string;
|
|
1660
|
-
resultCode: ResultCode;
|
|
1661
|
-
status?: string;
|
|
1662
|
-
action?: PaymentAction;
|
|
1663
|
-
};
|
|
1664
|
-
type CheckoutSessionBalanceResponse = {
|
|
1665
|
-
sessionData: string;
|
|
1666
|
-
balance?: PaymentAmount;
|
|
1667
|
-
transactionLimit?: PaymentAmount;
|
|
1668
|
-
};
|
|
1669
|
-
type CheckoutSessionOrdersResponse = {
|
|
1670
|
-
sessionData: string;
|
|
1671
|
-
orderData: string;
|
|
1672
|
-
pspReference: string;
|
|
1673
|
-
};
|
|
1674
|
-
|
|
1675
|
-
interface CompanyDetailsSchema {
|
|
1676
|
-
name?: string;
|
|
1677
|
-
registrationNumber?: string;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
type OpenInvoiceAddressSpecification = AddressSpecifications & {
|
|
1681
|
-
allowedCountries?: string[];
|
|
1682
|
-
};
|
|
1683
|
-
interface OpenInvoiceVisibility {
|
|
1684
|
-
companyDetails?: FieldsetVisibility;
|
|
1685
|
-
personalDetails?: FieldsetVisibility;
|
|
1686
|
-
billingAddress?: FieldsetVisibility;
|
|
1687
|
-
deliveryAddress?: FieldsetVisibility;
|
|
1688
|
-
bankAccount?: FieldsetVisibility;
|
|
1689
|
-
}
|
|
1690
|
-
interface BankDetailsSchema {
|
|
1691
|
-
countryCode?: string;
|
|
1692
|
-
ibanNumber?: any;
|
|
1693
|
-
ownerName?: string;
|
|
1694
|
-
}
|
|
1695
|
-
interface OpenInvoiceProps extends UIElementProps {
|
|
1696
|
-
allowedCountries?: string[];
|
|
1697
|
-
consentCheckboxLabel: any;
|
|
1698
|
-
countryCode?: string;
|
|
1699
|
-
data: {
|
|
1700
|
-
companyDetails?: CompanyDetailsSchema;
|
|
1701
|
-
personalDetails?: PersonalDetailsSchema;
|
|
1702
|
-
billingAddress?: AddressData;
|
|
1703
|
-
deliveryAddress?: AddressData;
|
|
1704
|
-
bankAccount?: BankDetailsSchema;
|
|
1705
|
-
};
|
|
1706
|
-
onChange: (state: any, element?: UIElement) => void;
|
|
1707
|
-
payButton: any;
|
|
1708
|
-
showPayButton?: boolean;
|
|
1709
|
-
visibility?: OpenInvoiceVisibility;
|
|
1710
|
-
personalDetailsRequiredFields?: string[];
|
|
1711
|
-
billingAddressRequiredFields?: string[];
|
|
1712
|
-
billingAddressSpecification?: OpenInvoiceAddressSpecification;
|
|
1713
|
-
deliveryAddressRequiredFields?: string[];
|
|
1714
|
-
deliveryAddressSpecification?: OpenInvoiceAddressSpecification;
|
|
1715
|
-
setComponentRef?: (ref: any) => void;
|
|
1716
|
-
showFormInstruction?: boolean;
|
|
1717
|
-
}
|
|
1718
|
-
interface OpenInvoiceStateData {
|
|
1719
|
-
companyDetails?: CompanyDetailsSchema;
|
|
1720
|
-
personalDetails?: PersonalDetailsSchema;
|
|
1721
|
-
billingAddress?: AddressData;
|
|
1722
|
-
deliveryAddress?: AddressData;
|
|
1723
|
-
bankAccount?: BankDetailsSchema;
|
|
1724
|
-
consentCheckbox?: boolean;
|
|
1725
|
-
}
|
|
1726
|
-
interface OpenInvoiceStateError {
|
|
1727
|
-
consentCheckbox?: boolean | GenericError;
|
|
1728
|
-
companyDetails?: boolean | ValidationRuleErrorObj;
|
|
1729
|
-
billingAddress?: boolean | ValidationRuleErrorObj;
|
|
1730
|
-
deliveryAddress?: boolean | ValidationRuleErrorObj;
|
|
1731
|
-
personalDetails?: boolean | ValidationRuleErrorObj;
|
|
1732
|
-
bankAccount?: boolean | object;
|
|
1733
|
-
}
|
|
1734
|
-
interface OpenInvoiceStateValid {
|
|
1735
|
-
consentCheckbox?: boolean;
|
|
1736
|
-
companyDetails?: boolean;
|
|
1737
|
-
billingAddress?: boolean;
|
|
1738
|
-
deliveryAddress?: boolean;
|
|
1739
|
-
personalDetails?: boolean;
|
|
1740
|
-
bankAccount?: boolean;
|
|
1741
|
-
}
|
|
1742
|
-
interface OpenInvoiceActiveFieldsets {
|
|
1743
|
-
companyDetails: boolean;
|
|
1744
|
-
personalDetails: boolean;
|
|
1745
|
-
billingAddress: boolean;
|
|
1746
|
-
deliveryAddress: boolean;
|
|
1747
|
-
bankAccount: boolean;
|
|
1748
|
-
}
|
|
1749
|
-
interface OpenInvoiceFieldsetsRefs {
|
|
1750
|
-
companyDetails?: any;
|
|
1751
|
-
personalDetails?: any;
|
|
1752
|
-
billingAddress?: any;
|
|
1753
|
-
deliveryAddress?: any;
|
|
1754
|
-
bankAccount?: any;
|
|
1755
|
-
}
|
|
1756
|
-
|
|
1757
|
-
interface OpenInvoiceConfiguration extends Partial<OpenInvoiceProps> {
|
|
1758
|
-
consentCheckboxLabel?: h.JSX.Element;
|
|
1759
|
-
billingAddressRequiredFields?: string[];
|
|
1760
|
-
billingAddressSpecification?: AddressSpecifications;
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
|
-
declare class OpenInvoiceContainer extends UIElement<OpenInvoiceConfiguration> {
|
|
1764
|
-
protected static defaultProps: Partial<OpenInvoiceConfiguration>;
|
|
1642
|
+
formatData(): IssuerListData;
|
|
1765
1643
|
/**
|
|
1766
1644
|
* Returns whether the component state is valid or not
|
|
1767
1645
|
*/
|
|
1768
1646
|
get isValid(): boolean;
|
|
1769
1647
|
/**
|
|
1770
|
-
*
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
/**
|
|
1774
|
-
* Formats the component data output
|
|
1648
|
+
* Returns brands array (similar to card) depending on showPaymentMethodItemImages
|
|
1649
|
+
* This is used to show the brands in the PaymentMethodItem
|
|
1650
|
+
* Requires brands icons to be loaded in the payment method
|
|
1775
1651
|
*/
|
|
1776
|
-
|
|
1652
|
+
get brands(): {
|
|
1653
|
+
icon: any;
|
|
1654
|
+
name: string;
|
|
1655
|
+
}[];
|
|
1777
1656
|
render(): h.JSX.Element;
|
|
1778
1657
|
}
|
|
1779
1658
|
|
|
1780
|
-
declare
|
|
1781
|
-
/** internal */
|
|
1782
|
-
address = "address",
|
|
1783
|
-
bankTransfer_IBAN = "bankTransfer_IBAN",
|
|
1784
|
-
donation = "donation",
|
|
1785
|
-
personal_details = "personal_details",
|
|
1786
|
-
/** internal */
|
|
1787
|
-
/** Card */
|
|
1788
|
-
bcmc = "bcmc",
|
|
1789
|
-
card = "card",
|
|
1790
|
-
scheme = "scheme",
|
|
1791
|
-
storedCard = "storedCard",
|
|
1792
|
-
customCard = "customcard",
|
|
1793
|
-
/** Card */
|
|
1794
|
-
/** ThreeDS */
|
|
1795
|
-
threeDS2Challenge = "threeDS2Challenge",
|
|
1796
|
-
threeDS2Fingerprint = "threeDS2Fingerprint",
|
|
1797
|
-
threeDS2DeviceFingerprint = "threeDS2DeviceFingerprint",
|
|
1798
|
-
/** ThreeDS */
|
|
1799
|
-
/** Direct debit */
|
|
1800
|
-
ach = "ach",
|
|
1801
|
-
directdebit_GB = "directdebit_GB",
|
|
1802
|
-
sepadirectdebit = "sepadirectdebit",
|
|
1803
|
-
/** Direct debit */
|
|
1804
|
-
/** Open Invoice */
|
|
1805
|
-
affirm = "affirm",
|
|
1806
|
-
afterpay = "afterpay",
|
|
1807
|
-
afterpay_default = "afterpay_default",
|
|
1808
|
-
afterpay_b2b = "afterpay_b2b",
|
|
1809
|
-
atome = "atome",
|
|
1810
|
-
facilypay_3x = "facilypay_3x",
|
|
1811
|
-
facilypay_4x = "facilypay_4x",
|
|
1812
|
-
facilypay_6x = "facilypay_6x",
|
|
1813
|
-
facilypay_10x = "facilypay_10x",
|
|
1814
|
-
facilypay_12x = "facilypay_12x",
|
|
1815
|
-
ratepay = "ratepay",
|
|
1816
|
-
ratepay_directdebit = "ratepay_directdebit",
|
|
1817
|
-
/** Open Invoice */
|
|
1818
|
-
/** Wallets */
|
|
1819
|
-
amazonpay = "amazonpay",
|
|
1820
|
-
applepay = "applepay",
|
|
1821
|
-
cashapp = "cashapp",
|
|
1822
|
-
clicktopay = "clicktopay",
|
|
1823
|
-
googlepay = "googlepay",
|
|
1824
|
-
paypal = "paypal",
|
|
1825
|
-
paywithgoogle = "paywithgoogle",
|
|
1826
|
-
/** Wallets */
|
|
1827
|
-
/** Voucher */
|
|
1828
|
-
boletobancario = "boletobancario",
|
|
1829
|
-
boletobancario_itau = "boletobancario_itau",
|
|
1830
|
-
boletobancario_santander = "boletobancario_santander",
|
|
1831
|
-
primeiropay_boleto = "primeiropay_boleto",
|
|
1832
|
-
doku = "doku",
|
|
1833
|
-
doku_alfamart = "doku_alfamart",
|
|
1834
|
-
doku_permata_lite_atm = "doku_permata_lite_atm",
|
|
1835
|
-
doku_indomaret = "doku_indomaret",
|
|
1836
|
-
doku_atm_mandiri_va = "doku_atm_mandiri_va",
|
|
1837
|
-
doku_sinarmas_va = "doku_sinarmas_va",
|
|
1838
|
-
doku_mandiri_va = "doku_mandiri_va",
|
|
1839
|
-
doku_cimb_va = "doku_cimb_va",
|
|
1840
|
-
doku_danamon_va = "doku_danamon_va",
|
|
1841
|
-
doku_bri_va = "doku_bri_va",
|
|
1842
|
-
doku_bni_va = "doku_bni_va",
|
|
1843
|
-
doku_bca_va = "doku_bca_va",
|
|
1844
|
-
doku_wallet = "doku_wallet",
|
|
1845
|
-
oxxo = "oxxo",
|
|
1846
|
-
/** Voucher */
|
|
1847
|
-
/** issuerList */
|
|
1848
|
-
billdesk_online = "billdesk_online",
|
|
1849
|
-
billdesk_wallet = "billdesk_wallet",
|
|
1850
|
-
dotpay = "dotpay",
|
|
1851
|
-
eps = "eps",
|
|
1852
|
-
ideal = "ideal",
|
|
1853
|
-
molpay_ebanking_fpx_MY = "molpay_ebanking_fpx_MY",
|
|
1854
|
-
molpay_ebanking_TH = "molpay_ebanking_TH",
|
|
1855
|
-
molpay_ebanking_VN = "molpay_ebanking_VN",
|
|
1856
|
-
onlineBanking_CZ = "onlineBanking_CZ",
|
|
1857
|
-
onlinebanking_IN = "onlinebanking_IN",
|
|
1858
|
-
onlineBanking_PL = "onlineBanking_PL",
|
|
1859
|
-
onlineBanking_SK = "onlineBanking_SK",
|
|
1860
|
-
paybybank = "paybybank",
|
|
1861
|
-
payu_IN_cashcard = "payu_IN_cashcard",
|
|
1862
|
-
payu_IN_nb = "payu_IN_nb",
|
|
1863
|
-
wallet_IN = "wallet_IN",
|
|
1864
|
-
/** issuerList */
|
|
1865
|
-
/** Dragonpay */
|
|
1866
|
-
dragonpay = "dragonpay",
|
|
1867
|
-
dragonpay_ebanking = "dragonpay_ebanking",
|
|
1868
|
-
dragonpay_otc_banking = "dragonpay_otc_banking",
|
|
1869
|
-
dragonpay_otc_non_banking = "dragonpay_otc_non_banking",
|
|
1870
|
-
dragonpay_otc_philippines = "dragonpay_otc_philippines",
|
|
1871
|
-
/** Dragonpay */
|
|
1872
|
-
/** Econtext */
|
|
1873
|
-
econtext = "econtext",
|
|
1874
|
-
econtext_atm = "econtext_atm",
|
|
1875
|
-
econtext_online = "econtext_online",
|
|
1876
|
-
econtext_seven_eleven = "econtext_seven_eleven",
|
|
1877
|
-
econtext_stores = "econtext_stores",
|
|
1878
|
-
/** Econtext */
|
|
1879
|
-
/** Redirect */
|
|
1880
|
-
giropay = "giropay",
|
|
1881
|
-
multibanco = "multibanco",
|
|
1882
|
-
redirect = "redirect",
|
|
1883
|
-
twint = "twint",
|
|
1884
|
-
vipps = "vipps",
|
|
1885
|
-
trustly = "trustly",
|
|
1886
|
-
/** Redirect */
|
|
1887
|
-
/** Klarna */
|
|
1888
|
-
klarna = "klarna",
|
|
1889
|
-
klarna_account = "klarna_account",
|
|
1890
|
-
klarna_paynow = "klarna_paynow",
|
|
1891
|
-
/** Klarna */
|
|
1892
|
-
/** QRLoader */
|
|
1893
|
-
bcmc_mobile = "bcmc_mobile",
|
|
1894
|
-
bcmc_mobile_QR = "bcmc_mobile_QR",
|
|
1895
|
-
pix = "pix",
|
|
1896
|
-
swish = "swish",
|
|
1897
|
-
wechatpay = "wechatpay",
|
|
1898
|
-
wechatpayQR = "wechatpayQR",
|
|
1899
|
-
promptpay = "promptpay",
|
|
1900
|
-
paynow = "paynow",
|
|
1901
|
-
duitnow = "duitnow",
|
|
1902
|
-
/** QRLoader */
|
|
1903
|
-
/** Await */
|
|
1904
|
-
blik = "blik",
|
|
1905
|
-
mbway = "mbway",
|
|
1906
|
-
upi = "upi",// also QR
|
|
1907
|
-
upi_qr = "upi_qr",// also QR
|
|
1908
|
-
upi_collect = "upi_collect",// also QR
|
|
1909
|
-
/** Await */
|
|
1910
|
-
/** Giftcard */
|
|
1911
|
-
giftcard = "giftcard",
|
|
1912
|
-
mealVoucher_FR = "mealVoucher_FR",
|
|
1913
|
-
mealVoucher_FR_natixis = "mealVoucher_FR_natixis",
|
|
1914
|
-
mealVoucher_FR_sodexo = "mealVoucher_FR_sodexo",
|
|
1915
|
-
mealVoucher_FR_groupeup = "mealVoucher_FR_groupeup"
|
|
1916
|
-
/** Giftcard */
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
declare class AfterPay extends OpenInvoiceContainer {
|
|
1659
|
+
declare class BillDeskOnlineElement extends IssuerListContainer {
|
|
1920
1660
|
static type: TxVariants;
|
|
1921
|
-
static txVariants: TxVariants[];
|
|
1922
1661
|
formatProps(props: any): any;
|
|
1923
1662
|
}
|
|
1924
1663
|
|
|
1925
|
-
declare class
|
|
1664
|
+
declare class BillDeskWalletElement extends IssuerListContainer {
|
|
1926
1665
|
static type: TxVariants;
|
|
1927
|
-
protected static defaultProps: Partial<OpenInvoiceConfiguration>;
|
|
1928
1666
|
formatProps(props: any): any;
|
|
1929
1667
|
}
|
|
1930
1668
|
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1669
|
+
interface CashAppPayConfiguration extends UIElementProps {
|
|
1670
|
+
/**
|
|
1671
|
+
* Indicates that the payment must be stored (Ex: in case there is no checkbox but merchant wants to store it)
|
|
1672
|
+
*/
|
|
1673
|
+
storePaymentMethod?: boolean;
|
|
1674
|
+
/**
|
|
1675
|
+
* Enables storing the payment method using the Checkbox
|
|
1676
|
+
*/
|
|
1677
|
+
enableStoreDetails?: boolean;
|
|
1678
|
+
/**
|
|
1679
|
+
* Callback triggered before starting the CashAppPay flow. Use case: Validate customer data, check product availability
|
|
1680
|
+
*/
|
|
1681
|
+
onClick?(actions: {
|
|
1682
|
+
resolve: () => void;
|
|
1683
|
+
reject: () => void;
|
|
1684
|
+
}): void;
|
|
1685
|
+
/**
|
|
1686
|
+
* A reference to your system (for example, a cart or checkout identifier). Maximum length 1024 characters.
|
|
1687
|
+
* https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/technical-reference#parameters-3
|
|
1688
|
+
*/
|
|
1689
|
+
referenceId?: string;
|
|
1690
|
+
/**
|
|
1691
|
+
* The destination for the customer after approving (or declining) in Cash App for mobile redirect flow.
|
|
1692
|
+
* https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/technical-reference#customerrequest
|
|
1693
|
+
* @defaultValue window.location.ref
|
|
1694
|
+
*/
|
|
1695
|
+
redirectURL?: string;
|
|
1696
|
+
/**
|
|
1697
|
+
* Button customization
|
|
1698
|
+
* https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/use-cases#customize-the-cash-app-pay-button
|
|
1699
|
+
*/
|
|
1700
|
+
button?: {
|
|
1701
|
+
shape?: 'semiround' | 'round';
|
|
1702
|
+
size?: 'medium' | 'small';
|
|
1703
|
+
theme?: 'dark' | 'light';
|
|
1704
|
+
width?: 'static' | 'full';
|
|
1951
1705
|
};
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1706
|
+
/**
|
|
1707
|
+
* CashAppPay configuration sent by the /paymentMethods response
|
|
1708
|
+
*/
|
|
1709
|
+
configuration?: {
|
|
1710
|
+
clientId: string;
|
|
1711
|
+
scopeId: string;
|
|
1955
1712
|
};
|
|
1713
|
+
/**
|
|
1714
|
+
* If payment is tokenized, then API will return its ID
|
|
1715
|
+
* @internal
|
|
1716
|
+
*/
|
|
1717
|
+
storedPaymentMethodId?: string;
|
|
1718
|
+
/**
|
|
1719
|
+
* If payment is tokenized, then API will return this value
|
|
1720
|
+
* @internal
|
|
1721
|
+
*/
|
|
1722
|
+
cashtag?: string;
|
|
1956
1723
|
}
|
|
1957
|
-
|
|
1958
|
-
merchantId?: string;
|
|
1959
|
-
publicKeyId?: string;
|
|
1960
|
-
region?: Region;
|
|
1961
|
-
storeId?: string;
|
|
1962
|
-
}
|
|
1963
|
-
interface AmazonPayConfiguration extends UIElementProps {
|
|
1964
|
-
addressDetails?: AddressDetails;
|
|
1965
|
-
amazonPayToken?: string;
|
|
1966
|
-
amazonCheckoutSessionId?: string;
|
|
1967
|
-
amount?: PaymentAmount;
|
|
1968
|
-
buttonColor?: ButtonColor;
|
|
1969
|
-
cancelUrl?: string;
|
|
1970
|
-
chargePermissionType?: ChargePermissionType;
|
|
1971
|
-
clientKey?: string;
|
|
1972
|
-
configuration?: AmazonPayBackendConfiguration;
|
|
1973
|
-
currency?: Currency;
|
|
1974
|
-
deliverySpecifications?: DeliverySpecifications;
|
|
1975
|
-
environment?: string;
|
|
1976
|
-
loadingContext?: string;
|
|
1977
|
-
locale?: string;
|
|
1978
|
-
merchantMetadata?: MerchantMetadata;
|
|
1979
|
-
onSubmit?: (state: any, element: AmazonPayElement) => void;
|
|
1980
|
-
payButton?: any;
|
|
1981
|
-
placement?: Placement;
|
|
1982
|
-
productType?: ProductType;
|
|
1983
|
-
recurringMetadata?: RecurringMetadata;
|
|
1984
|
-
returnUrl?: string;
|
|
1985
|
-
showChangePaymentDetailsButton?: boolean;
|
|
1986
|
-
showOrderButton?: boolean;
|
|
1987
|
-
showPayButton?: boolean;
|
|
1988
|
-
showSignOutButton?: boolean;
|
|
1989
|
-
signature?: string;
|
|
1990
|
-
onClick?: (resolve: any, reject: any) => Promise<void>;
|
|
1991
|
-
onError?: (error: any, component: any) => void;
|
|
1992
|
-
onSignOut?: (resolve: any, reject: any) => Promise<void>;
|
|
1993
|
-
}
|
|
1994
|
-
interface AmazonPayComponentProps extends AmazonPayConfiguration {
|
|
1995
|
-
showPayButton: boolean;
|
|
1996
|
-
showSignOutButton?: boolean;
|
|
1997
|
-
amazonCheckoutSessionId?: string;
|
|
1998
|
-
showOrderButton?: boolean;
|
|
1999
|
-
showChangePaymentDetailsButton?: boolean;
|
|
2000
|
-
onClick: (resolve: any, reject: any) => Promise<void>;
|
|
2001
|
-
onError: (error: any, component: any) => void;
|
|
2002
|
-
onSignOut: (resolve: any, reject: any) => Promise<void>;
|
|
2003
|
-
ref: any;
|
|
2004
|
-
}
|
|
2005
|
-
interface AmazonPayButtonProps {
|
|
2006
|
-
amount?: PaymentAmount;
|
|
2007
|
-
amazonRef: any;
|
|
2008
|
-
buttonColor?: ButtonColor;
|
|
2009
|
-
cancelUrl?: string;
|
|
2010
|
-
chargePermissionType?: ChargePermissionType;
|
|
2011
|
-
clientKey?: string;
|
|
2012
|
-
configuration?: AmazonPayBackendConfiguration;
|
|
2013
|
-
currency?: Currency;
|
|
2014
|
-
deliverySpecifications?: DeliverySpecifications;
|
|
2015
|
-
design?: string;
|
|
2016
|
-
environment?: string;
|
|
2017
|
-
locale?: string;
|
|
2018
|
-
onClick: (resolve: any, reject: any) => Promise<void>;
|
|
2019
|
-
onError: (error: any, component: any) => void;
|
|
2020
|
-
placement?: Placement;
|
|
2021
|
-
productType?: ProductType;
|
|
2022
|
-
recurringMetadata?: RecurringMetadata;
|
|
2023
|
-
ref: any;
|
|
2024
|
-
returnUrl?: string;
|
|
2025
|
-
showPayButton: boolean;
|
|
2026
|
-
}
|
|
2027
|
-
interface SignOutButtonProps {
|
|
2028
|
-
amazonRef: any;
|
|
2029
|
-
onSignOut: (resolve: any, reject: any) => Promise<void>;
|
|
2030
|
-
}
|
|
2031
|
-
interface ChangePaymentDetailsButtonProps {
|
|
2032
|
-
amazonCheckoutSessionId: string;
|
|
2033
|
-
amazonRef: any;
|
|
2034
|
-
}
|
|
2035
|
-
interface ChangeActionOptions {
|
|
2036
|
-
amazonCheckoutSessionId: string;
|
|
2037
|
-
changeAction: 'changeAddress' | 'changePayment';
|
|
2038
|
-
}
|
|
2039
|
-
interface OrderButtonProps {
|
|
2040
|
-
amazonCheckoutSessionId: string;
|
|
2041
|
-
amount: PaymentAmount;
|
|
2042
|
-
clientKey: string;
|
|
2043
|
-
chargePermissionType?: ChargePermissionType;
|
|
2044
|
-
onError: (error: any, component: any) => void;
|
|
2045
|
-
recurringMetadata: RecurringMetadata;
|
|
2046
|
-
ref: any;
|
|
2047
|
-
region: Region;
|
|
2048
|
-
returnUrl: string;
|
|
2049
|
-
publicKeyId: string;
|
|
2050
|
-
}
|
|
2051
|
-
interface AmazonPayElementData {
|
|
1724
|
+
type CashAppPayElementData = {
|
|
2052
1725
|
paymentMethod: {
|
|
2053
1726
|
type: string;
|
|
2054
|
-
|
|
1727
|
+
grantId?: string;
|
|
1728
|
+
storedPaymentMethodId?: string;
|
|
2055
1729
|
};
|
|
2056
|
-
|
|
2057
|
-
}
|
|
2058
|
-
interface AmazonPayButtonSettings {
|
|
2059
|
-
buttonColor?: ButtonColor;
|
|
2060
|
-
design?: string;
|
|
2061
|
-
/**
|
|
2062
|
-
* Amazon Pay merchant account identifier
|
|
2063
|
-
*/
|
|
2064
|
-
merchantId: string;
|
|
2065
|
-
/**
|
|
2066
|
-
* Sets button to Sandbox environment
|
|
2067
|
-
*/
|
|
2068
|
-
sandbox: boolean;
|
|
2069
|
-
/**
|
|
2070
|
-
* Product type selected for checkout
|
|
2071
|
-
*/
|
|
2072
|
-
productType: ProductType;
|
|
2073
|
-
/**
|
|
2074
|
-
* Placement of the Amazon Pay button on your website
|
|
2075
|
-
*/
|
|
2076
|
-
placement: Placement;
|
|
2077
|
-
/**
|
|
2078
|
-
* Language used to render the button and text on Amazon Pay hosted pages. Please note that supported language(s) is dependent on the region that your Amazon Pay account was registered for
|
|
2079
|
-
*/
|
|
2080
|
-
checkoutLanguage: SupportedLocale;
|
|
2081
|
-
/**
|
|
2082
|
-
* Ledger currency provided during registration for the given merchant identifier
|
|
2083
|
-
*/
|
|
2084
|
-
ledgerCurrency: Currency;
|
|
2085
|
-
}
|
|
2086
|
-
interface MerchantMetadata {
|
|
2087
|
-
customInformation?: string;
|
|
2088
|
-
merchantReferenceId?: string;
|
|
2089
|
-
merchantStoreName?: string;
|
|
2090
|
-
noteToBuyer?: string;
|
|
2091
|
-
}
|
|
2092
|
-
interface AddressDetails {
|
|
2093
|
-
name?: string;
|
|
2094
|
-
addressLine1?: string;
|
|
2095
|
-
addressLine2?: string;
|
|
2096
|
-
addressLine3?: string;
|
|
2097
|
-
city?: string;
|
|
2098
|
-
districtOrCounty?: string;
|
|
2099
|
-
stateOrRegion?: string;
|
|
2100
|
-
postalCode?: string;
|
|
2101
|
-
countryCode?: string;
|
|
2102
|
-
phoneNumber?: string;
|
|
2103
|
-
}
|
|
2104
|
-
interface ChargeAmount {
|
|
2105
|
-
amount: string;
|
|
2106
|
-
currencyCode: Currency;
|
|
2107
|
-
}
|
|
2108
|
-
type LedgerCurrencies = {
|
|
2109
|
-
[key in Region]: Currency;
|
|
1730
|
+
storePaymentMethod?: boolean;
|
|
2110
1731
|
};
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
1732
|
+
type CashAppPayEventData = {
|
|
1733
|
+
cashTag?: string;
|
|
1734
|
+
customerId?: string;
|
|
1735
|
+
grantId?: string;
|
|
1736
|
+
onFileGrantId?: string;
|
|
1737
|
+
};
|
|
1738
|
+
|
|
1739
|
+
declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
1740
|
+
static type: TxVariants;
|
|
1741
|
+
private readonly cashAppService;
|
|
1742
|
+
protected static defaultProps: {
|
|
1743
|
+
onClick: (actions: any) => void;
|
|
1744
|
+
enableStoreDetails: boolean;
|
|
1745
|
+
storePaymentMethod: boolean;
|
|
2121
1746
|
};
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
1747
|
+
constructor(checkout: ICore, props?: CashAppPayConfiguration);
|
|
1748
|
+
formatProps(props: CashAppPayConfiguration): {
|
|
1749
|
+
enableStoreDetails: boolean;
|
|
1750
|
+
storePaymentMethod?: boolean;
|
|
1751
|
+
onClick?(actions: {
|
|
1752
|
+
resolve: () => void;
|
|
1753
|
+
reject: () => void;
|
|
1754
|
+
}): void;
|
|
1755
|
+
referenceId?: string;
|
|
1756
|
+
redirectURL?: string;
|
|
1757
|
+
button?: {
|
|
1758
|
+
shape?: "semiround" | "round";
|
|
1759
|
+
size?: "small" | "medium";
|
|
1760
|
+
theme?: "dark" | "light";
|
|
1761
|
+
width?: "full" | "static";
|
|
1762
|
+
};
|
|
1763
|
+
configuration?: {
|
|
1764
|
+
clientId: string;
|
|
1765
|
+
scopeId: string;
|
|
1766
|
+
};
|
|
1767
|
+
storedPaymentMethodId?: string;
|
|
1768
|
+
cashtag?: string;
|
|
1769
|
+
order?: Order;
|
|
1770
|
+
modules?: {
|
|
1771
|
+
srPanel?: SRPanel;
|
|
1772
|
+
analytics?: AnalyticsModule;
|
|
1773
|
+
resources?: Resources;
|
|
1774
|
+
risk?: RiskElement;
|
|
1775
|
+
};
|
|
1776
|
+
isDropin?: boolean;
|
|
1777
|
+
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
1778
|
+
url: string;
|
|
1779
|
+
method: string;
|
|
1780
|
+
data?: any;
|
|
1781
|
+
}) => void;
|
|
1782
|
+
beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
1783
|
+
resolve: (data: any) => void;
|
|
1784
|
+
reject: () => void;
|
|
1785
|
+
}) => void;
|
|
1786
|
+
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
1787
|
+
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
1788
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
1789
|
+
}) => void;
|
|
1790
|
+
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
1791
|
+
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
1792
|
+
reject: () => void;
|
|
1793
|
+
}) => void;
|
|
1794
|
+
onPaymentFailed?: (data?: SessionsResponse | {
|
|
1795
|
+
resultCode: ResultCode;
|
|
1796
|
+
}, element?: UIElement<UIElementProps>) => void;
|
|
1797
|
+
onPaymentCompleted?: (data: SessionsResponse | {
|
|
1798
|
+
resultCode: ResultCode;
|
|
1799
|
+
donationToken?: string;
|
|
1800
|
+
}, element?: UIElement<UIElementProps>) => void;
|
|
1801
|
+
onOrderUpdated?: (data: {
|
|
1802
|
+
order: Order;
|
|
1803
|
+
}) => void;
|
|
1804
|
+
onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
|
|
1805
|
+
resolve: (response: PaymentMethodsResponse) => void;
|
|
1806
|
+
reject: () => void;
|
|
1807
|
+
}) => void;
|
|
1808
|
+
onChange?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
1809
|
+
onActionHandled?: (data: ActionHandledReturnObject) => void;
|
|
1810
|
+
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
1811
|
+
environment?: string;
|
|
1812
|
+
session?: Session;
|
|
1813
|
+
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
1814
|
+
isInstantPayment?: boolean;
|
|
1815
|
+
isStoredPaymentMethod?: boolean;
|
|
1816
|
+
oneClick?: boolean;
|
|
1817
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
1818
|
+
type?: string;
|
|
1819
|
+
name?: string;
|
|
1820
|
+
icon?: string;
|
|
1821
|
+
amount?: PaymentAmount;
|
|
1822
|
+
secondaryAmount?: PaymentAmountExtended;
|
|
1823
|
+
showPayButton?: boolean;
|
|
1824
|
+
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
1825
|
+
loadingContext?: string;
|
|
1826
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
1827
|
+
clientKey?: string;
|
|
1828
|
+
elementRef?: any;
|
|
1829
|
+
i18n?: Language;
|
|
1830
|
+
label?: string;
|
|
1831
|
+
paymentMethodType?: string;
|
|
2129
1832
|
};
|
|
1833
|
+
formatData(): CashAppPayElementData;
|
|
1834
|
+
get displayName(): string;
|
|
1835
|
+
get additionalInfo(): "" | "Cash App Pay";
|
|
1836
|
+
submit: () => void;
|
|
1837
|
+
get isValid(): boolean;
|
|
1838
|
+
private handleOnChangeStoreDetails;
|
|
1839
|
+
private handleAuthorize;
|
|
1840
|
+
render(): h.JSX.Element;
|
|
2130
1841
|
}
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
}
|
|
2138
|
-
|
|
2139
|
-
amount: PaymentAmount;
|
|
2140
|
-
chargePermissionType?: ChargePermissionType;
|
|
2141
|
-
checkoutCancelUrl?: string;
|
|
2142
|
-
checkoutResultReturnUrl: string;
|
|
2143
|
-
checkoutSessionId: string;
|
|
2144
|
-
publicKeyId: string;
|
|
2145
|
-
recurringMetadata?: RecurringMetadata;
|
|
2146
|
-
region: Region;
|
|
2147
|
-
}
|
|
2148
|
-
interface CheckoutSessionConfig {
|
|
2149
|
-
payloadJSON: string;
|
|
2150
|
-
signature: string;
|
|
2151
|
-
publicKeyId: string;
|
|
2152
|
-
}
|
|
2153
|
-
interface DeliverySpecifications {
|
|
2154
|
-
specialRestrictions?: string[];
|
|
2155
|
-
addressRestrictions?: AddressRestrictions;
|
|
2156
|
-
}
|
|
2157
|
-
interface AddressRestrictions {
|
|
2158
|
-
type?: 'Allowed' | 'NotAllowed';
|
|
2159
|
-
restrictions?: Restrictions;
|
|
2160
|
-
}
|
|
2161
|
-
interface Restrictions {
|
|
2162
|
-
[key: string]: {
|
|
2163
|
-
zipCodes?: string[];
|
|
2164
|
-
statesOrRegions?: string[];
|
|
2165
|
-
};
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
declare class AmazonPayElement extends UIElement<AmazonPayConfiguration> {
|
|
2169
|
-
static type: TxVariants;
|
|
2170
|
-
protected static defaultProps: Partial<AmazonPayConfiguration>;
|
|
2171
|
-
formatProps(props: any): any;
|
|
2172
|
-
/**
|
|
2173
|
-
* Formats the component data output
|
|
2174
|
-
*/
|
|
2175
|
-
formatData(): AmazonPayElementData;
|
|
2176
|
-
getShopperDetails(): void | Promise<any>;
|
|
2177
|
-
handleDeclineFlow(): void;
|
|
2178
|
-
get isValid(): boolean;
|
|
2179
|
-
get browserInfo(): BrowserInfo;
|
|
2180
|
-
submit(): any;
|
|
2181
|
-
render(): h.JSX.Element;
|
|
1842
|
+
|
|
1843
|
+
declare global {
|
|
1844
|
+
interface Window {
|
|
1845
|
+
SRCSDK_MASTERCARD?: object;
|
|
1846
|
+
vAdapters: {
|
|
1847
|
+
VisaSRCI?: object;
|
|
1848
|
+
};
|
|
1849
|
+
}
|
|
2182
1850
|
}
|
|
2183
1851
|
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
}
|
|
2189
|
-
type Initiative = 'web' | 'messaging';
|
|
2190
|
-
type ApplePayPaymentOrderDetails = {
|
|
2191
|
-
orderTypeIdentifier: string;
|
|
2192
|
-
orderIdentifier: string;
|
|
2193
|
-
webServiceURL: string;
|
|
2194
|
-
authenticationToken: string;
|
|
1852
|
+
type MastercardCheckout = {
|
|
1853
|
+
srcDigitalCardId: string;
|
|
1854
|
+
srcCorrelationId: string;
|
|
1855
|
+
srcScheme: string;
|
|
2195
1856
|
};
|
|
2196
|
-
type
|
|
2197
|
-
|
|
1857
|
+
type VisaCheckout = {
|
|
1858
|
+
srcCheckoutPayload?: string;
|
|
1859
|
+
srcTokenReference?: string;
|
|
1860
|
+
srcCorrelationId: string;
|
|
1861
|
+
srcScheme: string;
|
|
2198
1862
|
};
|
|
2199
|
-
type
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
* The Apple Pay version number your website supports.
|
|
2203
|
-
* @default highest supported version by the shopper device
|
|
2204
|
-
* @see {@link https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_on_the_web_version_history Apple Pay on the Web Version History}
|
|
2205
|
-
*/
|
|
2206
|
-
version?: number;
|
|
2207
|
-
/**
|
|
2208
|
-
* Part of the 'ApplePayLineItem' object, which sets the label of the payment request
|
|
2209
|
-
* @see {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaylineitem ApplePayLineItem docs}
|
|
2210
|
-
*/
|
|
2211
|
-
totalPriceLabel?: string;
|
|
2212
|
-
/**
|
|
2213
|
-
* @default 'final'
|
|
2214
|
-
*/
|
|
2215
|
-
totalPriceStatus?: ApplePayJS.ApplePayLineItemType;
|
|
1863
|
+
type ClickToPayCheckoutPayload = VisaCheckout | MastercardCheckout;
|
|
1864
|
+
|
|
1865
|
+
type ClickToPayConfiguration = UIElementProps & ClickToPayProps & {
|
|
2216
1866
|
/**
|
|
2217
|
-
*
|
|
1867
|
+
* ClickToPay configuration sent by the /paymentMethods response
|
|
2218
1868
|
*/
|
|
2219
1869
|
configuration?: {
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
initiative?: Initiative;
|
|
2225
|
-
/**
|
|
2226
|
-
* A set of line items that explain recurring payments and/or additional charges.
|
|
2227
|
-
*/
|
|
2228
|
-
lineItems?: ApplePayJS.ApplePayLineItem[];
|
|
2229
|
-
/**
|
|
2230
|
-
* The payment capabilities supported by the merchant.
|
|
2231
|
-
* The value must at least contain ApplePayMerchantCapability.supports3DS.
|
|
2232
|
-
* @default ['supports3DS']
|
|
2233
|
-
*/
|
|
2234
|
-
merchantCapabilities?: ApplePayJS.ApplePayMerchantCapability[];
|
|
2235
|
-
/**
|
|
2236
|
-
* A set of shipping method objects that describe the available shipping methods.
|
|
2237
|
-
*/
|
|
2238
|
-
shippingMethods?: ApplePayJS.ApplePayShippingMethod[];
|
|
2239
|
-
/**
|
|
2240
|
-
* How the items are to be shipped.
|
|
2241
|
-
*/
|
|
2242
|
-
shippingType?: ApplePayJS.ApplePayShippingType;
|
|
2243
|
-
/**
|
|
2244
|
-
* A list of ISO 3166 country codes for limiting payments to cards from specific countries.
|
|
2245
|
-
*/
|
|
2246
|
-
supportedCountries?: string[];
|
|
2247
|
-
/**
|
|
2248
|
-
* The payment networks supported by the merchant.
|
|
2249
|
-
*/
|
|
2250
|
-
supportedNetworks?: string[];
|
|
2251
|
-
/**
|
|
2252
|
-
* ApplePayRecurringPaymentRequest - Represents a request to set up a recurring payment, typically a subscription.
|
|
2253
|
-
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepayrecurringpaymentrequest}
|
|
2254
|
-
*/
|
|
2255
|
-
recurringPaymentRequest?: {
|
|
2256
|
-
paymentDescription: string;
|
|
2257
|
-
regularBilling: ApplePayJS.ApplePayLineItem;
|
|
2258
|
-
trialBilling?: ApplePayJS.ApplePayLineItem;
|
|
2259
|
-
billingAgreement?: string;
|
|
2260
|
-
managementURL: string;
|
|
2261
|
-
tokenNotificationURL?: string;
|
|
1870
|
+
mcDpaId?: string;
|
|
1871
|
+
mcSrcClientId?: string;
|
|
1872
|
+
visaSrcInitiatorId?: string;
|
|
1873
|
+
visaSrciDpaId?: string;
|
|
2262
1874
|
};
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
requiredBillingContactFields?: ApplePayJS.ApplePayContactField[];
|
|
2267
|
-
/**
|
|
2268
|
-
* The shipping information that you require from the user in order to fulfill the order.
|
|
2269
|
-
*/
|
|
2270
|
-
requiredShippingContactFields?: ApplePayJS.ApplePayContactField[];
|
|
2271
|
-
/**
|
|
2272
|
-
* Billing contact information for the user.
|
|
2273
|
-
*/
|
|
2274
|
-
billingContact?: ApplePayJS.ApplePayPaymentContact;
|
|
2275
|
-
/**
|
|
2276
|
-
* Shipping contact information for the user.
|
|
2277
|
-
*/
|
|
2278
|
-
shippingContact?: ApplePayJS.ApplePayPaymentContact;
|
|
2279
|
-
/**
|
|
2280
|
-
* Optional user-defined data.
|
|
2281
|
-
*/
|
|
2282
|
-
applicationData?: string;
|
|
2283
|
-
onClick?: (resolve: any, reject: any) => void;
|
|
2284
|
-
/**
|
|
2285
|
-
* Callback called when ApplePay authorize the payment.
|
|
2286
|
-
* Must be resolved/rejected with the action object.
|
|
2287
|
-
*
|
|
2288
|
-
* @param data - Authorization event from ApplePay, along with formatted billingAddress and deliveryAddress
|
|
2289
|
-
* @param actions - Object to continue/stop with the payment flow
|
|
2290
|
-
*
|
|
2291
|
-
* @remarks
|
|
2292
|
-
* If actions.resolve() is called, the payment flow will be triggered.
|
|
2293
|
-
* If actions.reject() is called, the overlay will display an error
|
|
2294
|
-
*/
|
|
2295
|
-
onAuthorized?: (data: {
|
|
2296
|
-
authorizedEvent: ApplePayJS.ApplePayPaymentAuthorizedEvent;
|
|
2297
|
-
billingAddress?: Partial<AddressData>;
|
|
2298
|
-
deliveryAddress?: Partial<AddressData>;
|
|
2299
|
-
}, actions: {
|
|
2300
|
-
resolve: () => void;
|
|
2301
|
-
reject: (error?: ApplePayJS.ApplePayError) => void;
|
|
2302
|
-
}) => void;
|
|
2303
|
-
/**
|
|
2304
|
-
* Collect the order tracking details if available.
|
|
2305
|
-
* This callback is invoked when a successfull payment is resolved
|
|
2306
|
-
*
|
|
2307
|
-
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentorderdetails}
|
|
2308
|
-
* @param resolve - Must be called with the orderDetails fields
|
|
2309
|
-
* @param reject - Must be called if something failed during the order creation. Calling 'reject' won't cancel the payment flow
|
|
2310
|
-
*/
|
|
2311
|
-
onOrderTrackingRequest?: (resolve: (orderDetails: ApplePayPaymentOrderDetails) => void, reject: () => void) => void;
|
|
2312
|
-
onValidateMerchant?: (resolve: any, reject: any, validationURL: string) => void;
|
|
2313
|
-
/**
|
|
2314
|
-
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778013-onpaymentmethodselected}
|
|
2315
|
-
* @param resolve(ApplePayPaymentMethodUpdate update) Completes the selection of a payment method with an update.
|
|
2316
|
-
* @param reject() Completes the selection of a payment method with no update.
|
|
2317
|
-
* @param event The event parameter contains the paymentMethod attribute.
|
|
2318
|
-
*/
|
|
2319
|
-
onPaymentMethodSelected?: (resolve: any, reject: any, event: ApplePayJS.ApplePayPaymentMethodSelectedEvent) => void;
|
|
2320
|
-
/**
|
|
2321
|
-
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778009-onshippingcontactselected}
|
|
2322
|
-
* @param resolve(ApplePayShippingContactUpdate update) Completes the selection of a shipping contact with an update.
|
|
2323
|
-
* @param reject() Completes the selection of a shipping contact with no update.
|
|
2324
|
-
* @param event The event parameter contains the shippingContact attribute.
|
|
2325
|
-
*/
|
|
2326
|
-
onShippingContactSelected?: (resolve: any, reject: any, event: ApplePayJS.ApplePayShippingContactSelectedEvent) => void;
|
|
2327
|
-
/**
|
|
2328
|
-
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778028-onshippingmethodselected}
|
|
2329
|
-
* @param resolve(ApplePayShippingMethodUpdate update) Completes the selection of a shipping method with an update.
|
|
2330
|
-
* @param reject() Completes the selection of a shipping method with no update.
|
|
2331
|
-
* @param event The event parameter contains the shippingMethod attribute.
|
|
2332
|
-
*/
|
|
2333
|
-
onShippingMethodSelected?: (resolve: any, reject: any, event: ApplePayJS.ApplePayShippingMethodSelectedEvent) => void;
|
|
2334
|
-
buttonColor?: 'black' | 'white' | 'white-with-line';
|
|
2335
|
-
buttonType?: ApplePayButtonType;
|
|
2336
|
-
/**
|
|
2337
|
-
* Show or hide the Apple Pay button
|
|
2338
|
-
*/
|
|
2339
|
-
showPayButton?: boolean;
|
|
2340
|
-
}
|
|
2341
|
-
interface ApplePayElementData {
|
|
2342
|
-
paymentMethod: {
|
|
1875
|
+
};
|
|
1876
|
+
type ClickToPayPaymentData = {
|
|
1877
|
+
paymentMethod: ClickToPayCheckoutPayload & {
|
|
2343
1878
|
type: string;
|
|
2344
|
-
applePayToken: string;
|
|
2345
|
-
billingAddress?: AddressData;
|
|
2346
|
-
deliveryAddress?: AddressData;
|
|
2347
1879
|
};
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
domainName: string;
|
|
2352
|
-
initiative: Initiative;
|
|
2353
|
-
merchantIdentifier: string;
|
|
2354
|
-
}
|
|
1880
|
+
origin: string;
|
|
1881
|
+
browserInfo: BrowserInfo;
|
|
1882
|
+
};
|
|
2355
1883
|
|
|
2356
|
-
declare class
|
|
1884
|
+
declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
2357
1885
|
static type: TxVariants;
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
supportedCountries: any;
|
|
2376
|
-
supportedNetworks: string[];
|
|
2377
|
-
requiredBillingContactFields: any;
|
|
2378
|
-
requiredShippingContactFields: any;
|
|
2379
|
-
billingContact: any;
|
|
2380
|
-
shippingContact: any;
|
|
2381
|
-
applicationData: any;
|
|
2382
|
-
onClick: (resolve: any) => any;
|
|
2383
|
-
onPaymentMethodSelected: any;
|
|
2384
|
-
onShippingContactSelected: any;
|
|
2385
|
-
onShippingMethodSelected: any;
|
|
2386
|
-
buttonType: string;
|
|
2387
|
-
buttonColor: string;
|
|
2388
|
-
showPayButton: boolean;
|
|
2389
|
-
};
|
|
2390
|
-
constructor(checkout: ICore, props?: ApplePayConfiguration);
|
|
2391
|
-
/**
|
|
2392
|
-
* Formats the component props
|
|
2393
|
-
*/
|
|
2394
|
-
protected formatProps(props: any): any;
|
|
2395
|
-
/**
|
|
2396
|
-
* Formats the component data output
|
|
2397
|
-
*/
|
|
2398
|
-
protected formatData(): ApplePayElementData;
|
|
2399
|
-
submit: () => void;
|
|
2400
|
-
private startSession;
|
|
2401
|
-
/**
|
|
2402
|
-
* Call the 'onAuthorized' callback if available.
|
|
2403
|
-
* Must be resolved/reject for the payment flow to continue
|
|
2404
|
-
*
|
|
2405
|
-
* @private
|
|
2406
|
-
*/
|
|
2407
|
-
private handleAuthorization;
|
|
2408
|
-
/**
|
|
2409
|
-
* Verify if the 'onOrderTrackingRequest' is provided. If so, triggers the callback expecting an
|
|
2410
|
-
* Apple Pay order details back
|
|
2411
|
-
*
|
|
2412
|
-
* @private
|
|
2413
|
-
*/
|
|
2414
|
-
private collectOrderTrackingDetailsIfNeeded;
|
|
2415
|
-
private validateMerchant;
|
|
2416
|
-
/**
|
|
2417
|
-
* Validation
|
|
2418
|
-
*
|
|
2419
|
-
* @remarks
|
|
2420
|
-
* Apple Pay does not require any specific validation
|
|
2421
|
-
*/
|
|
2422
|
-
get isValid(): boolean;
|
|
2423
|
-
/**
|
|
2424
|
-
* Determine a shopper's ability to return a form of payment from Apple Pay.
|
|
2425
|
-
* @returns Promise Resolve/Reject whether the shopper can use Apple Pay
|
|
2426
|
-
*/
|
|
2427
|
-
isAvailable(): Promise<void>;
|
|
2428
|
-
/**
|
|
2429
|
-
* Renders the Apple Pay button or nothing in the Dropin
|
|
2430
|
-
*/
|
|
2431
|
-
render(): h.JSX.Element;
|
|
2432
|
-
}
|
|
2433
|
-
|
|
2434
|
-
declare class Atome extends OpenInvoiceContainer {
|
|
2435
|
-
static type: TxVariants;
|
|
2436
|
-
formatProps(props: any): any;
|
|
2437
|
-
}
|
|
2438
|
-
|
|
2439
|
-
interface IssuerItem {
|
|
2440
|
-
id: string;
|
|
2441
|
-
name: string;
|
|
2442
|
-
icon?: string;
|
|
2443
|
-
}
|
|
2444
|
-
interface TermsAndConditions {
|
|
2445
|
-
translationKey: string;
|
|
2446
|
-
urls: string[];
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
interface IssuerListConfiguration extends UIElementProps {
|
|
2450
|
-
showImage?: boolean;
|
|
2451
|
-
placeholder?: string;
|
|
2452
|
-
issuers?: IssuerItem[];
|
|
2453
|
-
highlightedIssuers?: string[];
|
|
2454
|
-
showPaymentMethodItemImages?: boolean;
|
|
2455
|
-
showPayButton?: boolean;
|
|
2456
|
-
termsAndConditions?: TermsAndConditions;
|
|
2457
|
-
showContextualElement?: boolean;
|
|
2458
|
-
}
|
|
2459
|
-
interface IssuerListData {
|
|
2460
|
-
paymentMethod: {
|
|
2461
|
-
type: string;
|
|
2462
|
-
issuer: string;
|
|
2463
|
-
};
|
|
2464
|
-
}
|
|
2465
|
-
|
|
2466
|
-
declare class IssuerListContainer extends UIElement<IssuerListConfiguration> {
|
|
2467
|
-
protected static defaultProps: {
|
|
2468
|
-
showImage: boolean;
|
|
2469
|
-
issuers: any[];
|
|
2470
|
-
highlightedIssuers: any[];
|
|
2471
|
-
loadingContext: string;
|
|
2472
|
-
showPaymentMethodItemImages: boolean;
|
|
2473
|
-
};
|
|
2474
|
-
constructor(checkout: ICore, props?: IssuerListConfiguration);
|
|
2475
|
-
formatProps(props: any): any;
|
|
2476
|
-
/**
|
|
2477
|
-
* Formats the component data output
|
|
2478
|
-
*/
|
|
2479
|
-
formatData(): IssuerListData;
|
|
2480
|
-
/**
|
|
2481
|
-
* Returns whether the component state is valid or not
|
|
2482
|
-
*/
|
|
2483
|
-
get isValid(): boolean;
|
|
2484
|
-
/**
|
|
2485
|
-
* Returns brands array (similar to card) depending on showPaymentMethodItemImages
|
|
2486
|
-
* This is used to show the brands in the PaymentMethodItem
|
|
2487
|
-
* Requires brands icons to be loaded in the payment method
|
|
2488
|
-
*/
|
|
2489
|
-
get brands(): {
|
|
2490
|
-
icon: any;
|
|
2491
|
-
name: string;
|
|
2492
|
-
}[];
|
|
2493
|
-
render(): h.JSX.Element;
|
|
2494
|
-
}
|
|
2495
|
-
|
|
2496
|
-
declare class BillDeskOnlineElement extends IssuerListContainer {
|
|
2497
|
-
static type: TxVariants;
|
|
2498
|
-
formatProps(props: any): any;
|
|
2499
|
-
}
|
|
2500
|
-
|
|
2501
|
-
declare class BillDeskWalletElement extends IssuerListContainer {
|
|
2502
|
-
static type: TxVariants;
|
|
2503
|
-
formatProps(props: any): any;
|
|
2504
|
-
}
|
|
2505
|
-
|
|
2506
|
-
interface CashAppPayConfiguration extends UIElementProps {
|
|
2507
|
-
/**
|
|
2508
|
-
* Indicates that the payment must be stored (Ex: in case there is no checkbox but merchant wants to store it)
|
|
2509
|
-
*/
|
|
2510
|
-
storePaymentMethod?: boolean;
|
|
2511
|
-
/**
|
|
2512
|
-
* Enables storing the payment method using the Checkbox
|
|
2513
|
-
*/
|
|
2514
|
-
enableStoreDetails?: boolean;
|
|
2515
|
-
/**
|
|
2516
|
-
* Callback triggered before starting the CashAppPay flow. Use case: Validate customer data, check product availability
|
|
2517
|
-
*/
|
|
2518
|
-
onClick?(actions: {
|
|
2519
|
-
resolve: () => void;
|
|
2520
|
-
reject: () => void;
|
|
2521
|
-
}): void;
|
|
2522
|
-
/**
|
|
2523
|
-
* A reference to your system (for example, a cart or checkout identifier). Maximum length 1024 characters.
|
|
2524
|
-
* https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/technical-reference#parameters-3
|
|
2525
|
-
*/
|
|
2526
|
-
referenceId?: string;
|
|
2527
|
-
/**
|
|
2528
|
-
* The destination for the customer after approving (or declining) in Cash App for mobile redirect flow.
|
|
2529
|
-
* https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/technical-reference#customerrequest
|
|
2530
|
-
* @defaultValue window.location.ref
|
|
2531
|
-
*/
|
|
2532
|
-
redirectURL?: string;
|
|
2533
|
-
/**
|
|
2534
|
-
* Button customization
|
|
2535
|
-
* https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/use-cases#customize-the-cash-app-pay-button
|
|
2536
|
-
*/
|
|
2537
|
-
button?: {
|
|
2538
|
-
shape?: 'semiround' | 'round';
|
|
2539
|
-
size?: 'medium' | 'small';
|
|
2540
|
-
theme?: 'dark' | 'light';
|
|
2541
|
-
width?: 'static' | 'full';
|
|
2542
|
-
};
|
|
2543
|
-
/**
|
|
2544
|
-
* CashAppPay configuration sent by the /paymentMethods response
|
|
2545
|
-
*/
|
|
2546
|
-
configuration?: {
|
|
2547
|
-
clientId: string;
|
|
2548
|
-
scopeId: string;
|
|
2549
|
-
};
|
|
2550
|
-
/**
|
|
2551
|
-
* If payment is tokenized, then API will return its ID
|
|
2552
|
-
* @internal
|
|
2553
|
-
*/
|
|
2554
|
-
storedPaymentMethodId?: string;
|
|
2555
|
-
/**
|
|
2556
|
-
* If payment is tokenized, then API will return this value
|
|
2557
|
-
* @internal
|
|
2558
|
-
*/
|
|
2559
|
-
cashtag?: string;
|
|
2560
|
-
}
|
|
2561
|
-
type CashAppPayElementData = {
|
|
2562
|
-
paymentMethod: {
|
|
2563
|
-
type: string;
|
|
2564
|
-
grantId?: string;
|
|
2565
|
-
storedPaymentMethodId?: string;
|
|
2566
|
-
};
|
|
2567
|
-
storePaymentMethod?: boolean;
|
|
2568
|
-
};
|
|
2569
|
-
type CashAppPayEventData = {
|
|
2570
|
-
cashTag?: string;
|
|
2571
|
-
customerId?: string;
|
|
2572
|
-
grantId?: string;
|
|
2573
|
-
onFileGrantId?: string;
|
|
2574
|
-
};
|
|
2575
|
-
|
|
2576
|
-
declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
2577
|
-
static type: TxVariants;
|
|
2578
|
-
private readonly cashAppService;
|
|
2579
|
-
protected static defaultProps: {
|
|
2580
|
-
onClick: (actions: any) => void;
|
|
2581
|
-
showPayButton: boolean;
|
|
2582
|
-
enableStoreDetails: boolean;
|
|
2583
|
-
storePaymentMethod: boolean;
|
|
2584
|
-
};
|
|
2585
|
-
constructor(checkout: ICore, props?: CashAppPayConfiguration);
|
|
2586
|
-
formatProps(props: CashAppPayConfiguration): {
|
|
2587
|
-
enableStoreDetails: boolean;
|
|
2588
|
-
storePaymentMethod?: boolean;
|
|
2589
|
-
onClick?(actions: {
|
|
2590
|
-
resolve: () => void;
|
|
2591
|
-
reject: () => void;
|
|
2592
|
-
}): void;
|
|
2593
|
-
referenceId?: string;
|
|
2594
|
-
redirectURL?: string;
|
|
2595
|
-
button?: {
|
|
2596
|
-
shape?: "semiround" | "round";
|
|
2597
|
-
size?: "small" | "medium";
|
|
2598
|
-
theme?: "dark" | "light";
|
|
2599
|
-
width?: "full" | "static";
|
|
2600
|
-
};
|
|
2601
|
-
configuration?: {
|
|
2602
|
-
clientId: string;
|
|
2603
|
-
scopeId: string;
|
|
2604
|
-
};
|
|
2605
|
-
storedPaymentMethodId?: string;
|
|
2606
|
-
cashtag?: string;
|
|
2607
|
-
order?: Order;
|
|
2608
|
-
modules?: {
|
|
2609
|
-
srPanel?: SRPanel;
|
|
2610
|
-
analytics?: AnalyticsModule;
|
|
2611
|
-
resources?: Resources;
|
|
2612
|
-
risk?: RiskElement;
|
|
1886
|
+
private readonly clickToPayService;
|
|
1887
|
+
private readonly ctpConfiguration;
|
|
1888
|
+
constructor(checkout: ICore, props?: ClickToPayConfiguration);
|
|
1889
|
+
get isValid(): boolean;
|
|
1890
|
+
get browserInfo(): BrowserInfo;
|
|
1891
|
+
formatData(): ClickToPayPaymentData;
|
|
1892
|
+
protected formatProps(props: ClickToPayConfiguration): {
|
|
1893
|
+
disableOtpAutoFocus: boolean;
|
|
1894
|
+
shopperEmail: any;
|
|
1895
|
+
telephoneNumber: any;
|
|
1896
|
+
locale: string;
|
|
1897
|
+
order?: Order;
|
|
1898
|
+
modules?: {
|
|
1899
|
+
srPanel?: SRPanel;
|
|
1900
|
+
analytics?: AnalyticsModule;
|
|
1901
|
+
resources?: Resources;
|
|
1902
|
+
risk?: RiskElement;
|
|
2613
1903
|
};
|
|
2614
1904
|
isDropin?: boolean;
|
|
2615
1905
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -2652,7 +1942,8 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
2652
1942
|
isInstantPayment?: boolean;
|
|
2653
1943
|
isStoredPaymentMethod?: boolean;
|
|
2654
1944
|
oneClick?: boolean;
|
|
2655
|
-
|
|
1945
|
+
storedPaymentMethodId?: string;
|
|
1946
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
2656
1947
|
type?: string;
|
|
2657
1948
|
name?: string;
|
|
2658
1949
|
icon?: string;
|
|
@@ -2667,153 +1958,24 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
2667
1958
|
i18n?: Language;
|
|
2668
1959
|
label?: string;
|
|
2669
1960
|
paymentMethodType?: string;
|
|
1961
|
+
merchantDisplayName?: string;
|
|
1962
|
+
onReady?(): void;
|
|
1963
|
+
onTimeout?(error: TimeoutError): void;
|
|
1964
|
+
configuration?: {
|
|
1965
|
+
mcDpaId?: string;
|
|
1966
|
+
mcSrcClientId?: string;
|
|
1967
|
+
visaSrcInitiatorId?: string;
|
|
1968
|
+
visaSrciDpaId?: string;
|
|
1969
|
+
};
|
|
2670
1970
|
};
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
}
|
|
2680
|
-
|
|
2681
|
-
declare global {
|
|
2682
|
-
interface Window {
|
|
2683
|
-
SRCSDK_MASTERCARD?: object;
|
|
2684
|
-
vAdapters: {
|
|
2685
|
-
VisaSRCI?: object;
|
|
2686
|
-
};
|
|
2687
|
-
}
|
|
2688
|
-
}
|
|
2689
|
-
|
|
2690
|
-
type MastercardCheckout = {
|
|
2691
|
-
srcDigitalCardId: string;
|
|
2692
|
-
srcCorrelationId: string;
|
|
2693
|
-
srcScheme: string;
|
|
2694
|
-
};
|
|
2695
|
-
type VisaCheckout = {
|
|
2696
|
-
srcCheckoutPayload?: string;
|
|
2697
|
-
srcTokenReference?: string;
|
|
2698
|
-
srcCorrelationId: string;
|
|
2699
|
-
srcScheme: string;
|
|
2700
|
-
};
|
|
2701
|
-
type ClickToPayCheckoutPayload = VisaCheckout | MastercardCheckout;
|
|
2702
|
-
|
|
2703
|
-
type ClickToPayConfiguration = UIElementProps & ClickToPayProps & {
|
|
2704
|
-
/**
|
|
2705
|
-
* ClickToPay configuration sent by the /paymentMethods response
|
|
2706
|
-
*/
|
|
2707
|
-
configuration?: {
|
|
2708
|
-
mcDpaId?: string;
|
|
2709
|
-
mcSrcClientId?: string;
|
|
2710
|
-
visaSrcInitiatorId?: string;
|
|
2711
|
-
visaSrciDpaId?: string;
|
|
2712
|
-
};
|
|
2713
|
-
};
|
|
2714
|
-
type ClickToPayPaymentData = {
|
|
2715
|
-
paymentMethod: ClickToPayCheckoutPayload & {
|
|
2716
|
-
type: string;
|
|
2717
|
-
};
|
|
2718
|
-
origin: string;
|
|
2719
|
-
browserInfo: BrowserInfo;
|
|
2720
|
-
};
|
|
2721
|
-
|
|
2722
|
-
declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
2723
|
-
static type: TxVariants;
|
|
2724
|
-
private readonly clickToPayService;
|
|
2725
|
-
private readonly ctpConfiguration;
|
|
2726
|
-
constructor(checkout: ICore, props?: ClickToPayConfiguration);
|
|
2727
|
-
get isValid(): boolean;
|
|
2728
|
-
get browserInfo(): BrowserInfo;
|
|
2729
|
-
formatData(): ClickToPayPaymentData;
|
|
2730
|
-
protected formatProps(props: ClickToPayConfiguration): {
|
|
2731
|
-
disableOtpAutoFocus: boolean;
|
|
2732
|
-
shopperEmail: any;
|
|
2733
|
-
telephoneNumber: any;
|
|
2734
|
-
locale: string;
|
|
2735
|
-
order?: Order;
|
|
2736
|
-
modules?: {
|
|
2737
|
-
srPanel?: SRPanel;
|
|
2738
|
-
analytics?: AnalyticsModule;
|
|
2739
|
-
resources?: Resources;
|
|
2740
|
-
risk?: RiskElement;
|
|
2741
|
-
};
|
|
2742
|
-
isDropin?: boolean;
|
|
2743
|
-
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
2744
|
-
url: string;
|
|
2745
|
-
method: string;
|
|
2746
|
-
data?: any;
|
|
2747
|
-
}) => void;
|
|
2748
|
-
beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
2749
|
-
resolve: (data: any) => void;
|
|
2750
|
-
reject: () => void;
|
|
2751
|
-
}) => void;
|
|
2752
|
-
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
2753
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
2754
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
2755
|
-
}) => void;
|
|
2756
|
-
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
2757
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
2758
|
-
reject: () => void;
|
|
2759
|
-
}) => void;
|
|
2760
|
-
onPaymentFailed?: (data?: SessionsResponse | {
|
|
2761
|
-
resultCode: ResultCode;
|
|
2762
|
-
}, element?: UIElement<UIElementProps>) => void;
|
|
2763
|
-
onPaymentCompleted?: (data: SessionsResponse | {
|
|
2764
|
-
resultCode: ResultCode;
|
|
2765
|
-
donationToken?: string;
|
|
2766
|
-
}, element?: UIElement<UIElementProps>) => void;
|
|
2767
|
-
onOrderUpdated?: (data: {
|
|
2768
|
-
order: Order;
|
|
2769
|
-
}) => void;
|
|
2770
|
-
onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
|
|
2771
|
-
resolve: (response: PaymentMethodsResponse) => void;
|
|
2772
|
-
reject: () => void;
|
|
2773
|
-
}) => void;
|
|
2774
|
-
onChange?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
2775
|
-
onActionHandled?: (data: ActionHandledReturnObject) => void;
|
|
2776
|
-
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
2777
|
-
environment?: string;
|
|
2778
|
-
session?: Session;
|
|
2779
|
-
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
2780
|
-
isInstantPayment?: boolean;
|
|
2781
|
-
isStoredPaymentMethod?: boolean;
|
|
2782
|
-
oneClick?: boolean;
|
|
2783
|
-
storedPaymentMethodId?: string;
|
|
2784
|
-
statusType?: "loading" | "redirect" | "custom";
|
|
2785
|
-
type?: string;
|
|
2786
|
-
name?: string;
|
|
2787
|
-
icon?: string;
|
|
2788
|
-
amount?: PaymentAmount;
|
|
2789
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
2790
|
-
showPayButton?: boolean;
|
|
2791
|
-
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
2792
|
-
loadingContext?: string;
|
|
2793
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
2794
|
-
clientKey?: string;
|
|
2795
|
-
elementRef?: any;
|
|
2796
|
-
i18n?: Language;
|
|
2797
|
-
label?: string;
|
|
2798
|
-
paymentMethodType?: string;
|
|
2799
|
-
merchantDisplayName?: string;
|
|
2800
|
-
onReady?(): void;
|
|
2801
|
-
onTimeout?(error: TimeoutError): void;
|
|
2802
|
-
configuration?: {
|
|
2803
|
-
mcDpaId?: string;
|
|
2804
|
-
mcSrcClientId?: string;
|
|
2805
|
-
visaSrcInitiatorId?: string;
|
|
2806
|
-
visaSrciDpaId?: string;
|
|
2807
|
-
};
|
|
2808
|
-
};
|
|
2809
|
-
/**
|
|
2810
|
-
* Method used to let the merchant know if the shopper have a valid CtP accoubt
|
|
2811
|
-
*
|
|
2812
|
-
* Resolves Promise if the Shopper has cookies OR has valid CtP account
|
|
2813
|
-
* Rejects Promise if account isn't found or if Login screen is triggered
|
|
2814
|
-
*/
|
|
2815
|
-
isAvailable(): Promise<void>;
|
|
2816
|
-
private handleClickToPaySubmit;
|
|
1971
|
+
/**
|
|
1972
|
+
* Method used to let the merchant know if the shopper have a valid CtP accoubt
|
|
1973
|
+
*
|
|
1974
|
+
* Resolves Promise if the Shopper has cookies OR has valid CtP account
|
|
1975
|
+
* Rejects Promise if account isn't found or if Login screen is triggered
|
|
1976
|
+
*/
|
|
1977
|
+
isAvailable(): Promise<void>;
|
|
1978
|
+
private handleClickToPaySubmit;
|
|
2817
1979
|
render(): h.JSX.Element;
|
|
2818
1980
|
}
|
|
2819
1981
|
|
|
@@ -2868,6 +2030,7 @@ declare class BancontactElement extends CardElement {
|
|
|
2868
2030
|
icon: string;
|
|
2869
2031
|
installmentOptions: InstallmentOptions;
|
|
2870
2032
|
enableStoreDetails: boolean;
|
|
2033
|
+
showStoreDetailsCheckbox: boolean;
|
|
2871
2034
|
clickToPayConfiguration: {
|
|
2872
2035
|
disableOtpAutoFocus: boolean;
|
|
2873
2036
|
shopperEmail: any;
|
|
@@ -2965,7 +2128,7 @@ declare class BancontactElement extends CardElement {
|
|
|
2965
2128
|
isInstantPayment?: boolean;
|
|
2966
2129
|
isStoredPaymentMethod?: boolean;
|
|
2967
2130
|
oneClick?: boolean;
|
|
2968
|
-
statusType?: "
|
|
2131
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
2969
2132
|
name?: string;
|
|
2970
2133
|
amount?: PaymentAmount;
|
|
2971
2134
|
secondaryAmount?: PaymentAmountExtended;
|
|
@@ -3065,41 +2228,17 @@ declare class RedirectElement extends UIElement<RedirectConfiguration> {
|
|
|
3065
2228
|
|
|
3066
2229
|
declare class GiropayElement extends RedirectElement {
|
|
3067
2230
|
static type: TxVariants;
|
|
3068
|
-
formatProps(props: any): any;
|
|
3069
2231
|
get displayName(): any;
|
|
3070
2232
|
render(): h.JSX.Element;
|
|
3071
2233
|
}
|
|
3072
2234
|
|
|
3073
|
-
interface GooglePayPropsConfiguration {
|
|
3074
|
-
/**
|
|
3075
|
-
* Adyen's merchant account name
|
|
3076
|
-
* @see https://developers.google.com/pay/api/web/reference/request-objects#gateway
|
|
3077
|
-
*/
|
|
3078
|
-
gatewayMerchantId: string;
|
|
3079
|
-
/**
|
|
3080
|
-
* A Google merchant identifier issued after registration with the {@link https://pay.google.com/business/console | Google Pay Business Console}.
|
|
3081
|
-
* Required when PaymentsClient is initialized with an environment property of PRODUCTION.
|
|
3082
|
-
* @see https://developers.google.com/pay/api/web/reference/request-objects#MerchantInfo
|
|
3083
|
-
*/
|
|
3084
|
-
merchantId?: string;
|
|
3085
|
-
/**
|
|
3086
|
-
* Merchant name is rendered in the payment sheet.
|
|
3087
|
-
* @see https://developers.google.com/pay/api/web/reference/request-objects#MerchantInfo
|
|
3088
|
-
*/
|
|
3089
|
-
merchantName?: string;
|
|
3090
|
-
/**
|
|
3091
|
-
* Merchant fully qualified domain name.
|
|
3092
|
-
*/
|
|
3093
|
-
merchantOrigin?: string;
|
|
3094
|
-
/**
|
|
3095
|
-
* Google JWT solution for platforms
|
|
3096
|
-
* To request Google Pay credentials, you can enable platforms to send requests that are authenticated with the platform credentials. You don't need to register individual domain names to call Google Pay APIs.
|
|
3097
|
-
*/
|
|
3098
|
-
authJwt?: string;
|
|
3099
|
-
}
|
|
3100
2235
|
interface GooglePayConfiguration extends UIElementProps {
|
|
3101
2236
|
type?: 'googlepay' | 'paywithgoogle';
|
|
3102
|
-
|
|
2237
|
+
/**
|
|
2238
|
+
* Enables the GooglePay Express Flow
|
|
2239
|
+
* @defaultValue false
|
|
2240
|
+
*/
|
|
2241
|
+
isExpress?: boolean;
|
|
3103
2242
|
/**
|
|
3104
2243
|
* @see https://developers.google.com/pay/api/web/reference/request-objects#IsReadyToPayRequest
|
|
3105
2244
|
* @defaultValue false
|
|
@@ -3179,9 +2318,12 @@ interface GooglePayConfiguration extends UIElementProps {
|
|
|
3179
2318
|
*/
|
|
3180
2319
|
callbackIntents?: google.payments.api.CallbackIntent[];
|
|
3181
2320
|
/**
|
|
2321
|
+
* Disclaimer: 'onPaymentAuthorized' is not exposed as we are using our own method internally to
|
|
2322
|
+
* handle the authorization part
|
|
2323
|
+
*
|
|
3182
2324
|
* @see https://developers.google.com/pay/api/web/reference/request-objects#PaymentDataCallbacks
|
|
3183
2325
|
*/
|
|
3184
|
-
paymentDataCallbacks?: google.payments.api.PaymentDataCallbacks
|
|
2326
|
+
paymentDataCallbacks?: Pick<google.payments.api.PaymentDataCallbacks, 'onPaymentDataChanged'>;
|
|
3185
2327
|
/**
|
|
3186
2328
|
* @see https://developers.google.com/pay/api/web/reference/request-objects#TransactionInfo
|
|
3187
2329
|
*/
|
|
@@ -3204,6 +2346,33 @@ interface GooglePayConfiguration extends UIElementProps {
|
|
|
3204
2346
|
resolve: () => void;
|
|
3205
2347
|
reject: (error?: google.payments.api.PaymentDataError | string) => void;
|
|
3206
2348
|
}) => void;
|
|
2349
|
+
configuration?: {
|
|
2350
|
+
/**
|
|
2351
|
+
* Adyen's merchant account name
|
|
2352
|
+
* @see https://developers.google.com/pay/api/web/reference/request-objects#gateway
|
|
2353
|
+
*/
|
|
2354
|
+
gatewayMerchantId: string;
|
|
2355
|
+
/**
|
|
2356
|
+
* A Google merchant identifier issued after registration with the {@link https://pay.google.com/business/console | Google Pay Business Console}.
|
|
2357
|
+
* Required when PaymentsClient is initialized with an environment property of PRODUCTION.
|
|
2358
|
+
* @see https://developers.google.com/pay/api/web/reference/request-objects#MerchantInfo
|
|
2359
|
+
*/
|
|
2360
|
+
merchantId?: string;
|
|
2361
|
+
/**
|
|
2362
|
+
* Merchant name is rendered in the payment sheet.
|
|
2363
|
+
* @see https://developers.google.com/pay/api/web/reference/request-objects#MerchantInfo
|
|
2364
|
+
*/
|
|
2365
|
+
merchantName?: string;
|
|
2366
|
+
/**
|
|
2367
|
+
* Merchant fully qualified domain name.
|
|
2368
|
+
*/
|
|
2369
|
+
merchantOrigin?: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* Google JWT solution for platforms
|
|
2372
|
+
* To request Google Pay credentials, you can enable platforms to send requests that are authenticated with the platform credentials. You don't need to register individual domain names to call Google Pay APIs.
|
|
2373
|
+
*/
|
|
2374
|
+
authJwt?: string;
|
|
2375
|
+
};
|
|
3207
2376
|
}
|
|
3208
2377
|
interface GooglePaymentDataRequest extends google.payments.api.PaymentDataRequest {
|
|
3209
2378
|
merchantInfo: ExtendedMerchantInfo;
|
|
@@ -3215,48 +2384,18 @@ interface ExtendedMerchantInfo extends google.payments.api.MerchantInfo {
|
|
|
3215
2384
|
declare class GooglePay extends UIElement<GooglePayConfiguration> {
|
|
3216
2385
|
static type: TxVariants;
|
|
3217
2386
|
static txVariants: TxVariants[];
|
|
3218
|
-
static defaultProps:
|
|
3219
|
-
environment: string;
|
|
3220
|
-
existingPaymentMethodRequired: boolean;
|
|
3221
|
-
buttonColor: google.payments.api.ButtonColor;
|
|
3222
|
-
buttonType: google.payments.api.ButtonType;
|
|
3223
|
-
buttonSizeMode: any;
|
|
3224
|
-
configuration: {
|
|
3225
|
-
gatewayMerchantId: string;
|
|
3226
|
-
merchantId: string;
|
|
3227
|
-
merchantName: string;
|
|
3228
|
-
};
|
|
3229
|
-
amount: {
|
|
3230
|
-
value: number;
|
|
3231
|
-
currency: string;
|
|
3232
|
-
};
|
|
3233
|
-
totalPriceStatus: google.payments.api.TotalPriceStatus;
|
|
3234
|
-
onClick: (resolve: any) => any;
|
|
3235
|
-
allowedAuthMethods: google.payments.api.CardAuthMethod[];
|
|
3236
|
-
allowedCardNetworks: google.payments.api.CardNetwork[];
|
|
3237
|
-
allowCreditCards: boolean;
|
|
3238
|
-
allowPrepaidCards: boolean;
|
|
3239
|
-
billingAddressRequired: boolean;
|
|
3240
|
-
billingAddressParameters: any;
|
|
3241
|
-
assuranceDetailsRequired: boolean;
|
|
3242
|
-
emailRequired: boolean;
|
|
3243
|
-
shippingAddressRequired: boolean;
|
|
3244
|
-
shippingAddressParameters: any;
|
|
3245
|
-
shippingOptionRequired: boolean;
|
|
3246
|
-
shippingOptionParameters: any;
|
|
3247
|
-
paymentMethods: any[];
|
|
3248
|
-
callbackIntents: any[];
|
|
3249
|
-
};
|
|
2387
|
+
static defaultProps: GooglePayConfiguration;
|
|
3250
2388
|
protected readonly googlePay: any;
|
|
3251
2389
|
constructor(checkout: ICore, props?: GooglePayConfiguration);
|
|
3252
|
-
formatProps(props: any): GooglePayConfiguration;
|
|
2390
|
+
protected formatProps(props: any): GooglePayConfiguration;
|
|
3253
2391
|
/**
|
|
3254
2392
|
* Formats the component data output
|
|
3255
2393
|
*/
|
|
3256
|
-
formatData(): {
|
|
2394
|
+
protected formatData(): {
|
|
3257
2395
|
deliveryAddress: any;
|
|
3258
2396
|
billingAddress: any;
|
|
3259
2397
|
paymentMethod: {
|
|
2398
|
+
subtype: string;
|
|
3260
2399
|
type: string;
|
|
3261
2400
|
googlePayCardNetwork: any;
|
|
3262
2401
|
googlePayToken: any;
|
|
@@ -3461,7 +2600,6 @@ interface PayPalConfiguration extends UIElementProps {
|
|
|
3461
2600
|
label?: 'paypal' | 'checkout' | 'buynow' | 'pay';
|
|
3462
2601
|
tagline?: boolean;
|
|
3463
2602
|
};
|
|
3464
|
-
showPayButton?: boolean;
|
|
3465
2603
|
/**
|
|
3466
2604
|
* Called when the button first renders. You can use it for validations on your page if you are unable to do so prior to rendering.
|
|
3467
2605
|
* @see {@link https://developer.paypal.com/sdk/js/reference/#link-oninitonclick}
|
|
@@ -3684,6 +2822,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3684
2822
|
disclaimerMessage?: DisclaimerMsgObject;
|
|
3685
2823
|
brandsConfiguration?: CardBrandsConfiguration;
|
|
3686
2824
|
brands?: string[];
|
|
2825
|
+
showStoreDetailsCheckbox?: boolean;
|
|
3687
2826
|
keypadFix?: boolean;
|
|
3688
2827
|
styles?: StylesObject;
|
|
3689
2828
|
disableIOSArrowKeys?: boolean;
|
|
@@ -3699,7 +2838,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3699
2838
|
doBinLookup?: boolean;
|
|
3700
2839
|
isInstantPayment?: boolean;
|
|
3701
2840
|
oneClick?: boolean;
|
|
3702
|
-
statusType?: "
|
|
2841
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3703
2842
|
paymentMethodType?: string;
|
|
3704
2843
|
onValidationError?: (validationErrors: ValidationError[]) => void;
|
|
3705
2844
|
};
|
|
@@ -3859,7 +2998,7 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3859
2998
|
isStoredPaymentMethod?: boolean;
|
|
3860
2999
|
oneClick?: boolean;
|
|
3861
3000
|
storedPaymentMethodId?: string;
|
|
3862
|
-
statusType?: "
|
|
3001
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3863
3002
|
name?: string;
|
|
3864
3003
|
icon?: string;
|
|
3865
3004
|
amount?: PaymentAmount;
|
|
@@ -3940,7 +3079,7 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
3940
3079
|
isStoredPaymentMethod?: boolean;
|
|
3941
3080
|
oneClick?: boolean;
|
|
3942
3081
|
storedPaymentMethodId?: string;
|
|
3943
|
-
statusType?: "
|
|
3082
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
3944
3083
|
name?: string;
|
|
3945
3084
|
icon?: string;
|
|
3946
3085
|
amount?: PaymentAmount;
|
|
@@ -4022,7 +3161,7 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
4022
3161
|
isStoredPaymentMethod?: boolean;
|
|
4023
3162
|
oneClick?: boolean;
|
|
4024
3163
|
storedPaymentMethodId?: string;
|
|
4025
|
-
statusType?: "
|
|
3164
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4026
3165
|
name?: string;
|
|
4027
3166
|
icon?: string;
|
|
4028
3167
|
amount?: PaymentAmount;
|
|
@@ -4076,7 +3215,7 @@ interface DragonpayInputProps {
|
|
|
4076
3215
|
type?: string;
|
|
4077
3216
|
onChange: (state: any) => void;
|
|
4078
3217
|
onSubmit?: (state: any, component: any) => void;
|
|
4079
|
-
showPayButton
|
|
3218
|
+
showPayButton: boolean;
|
|
4080
3219
|
payButton: any;
|
|
4081
3220
|
ref?: any;
|
|
4082
3221
|
}
|
|
@@ -4163,7 +3302,7 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4163
3302
|
isStoredPaymentMethod?: boolean;
|
|
4164
3303
|
oneClick?: boolean;
|
|
4165
3304
|
storedPaymentMethodId?: string;
|
|
4166
|
-
statusType?: "
|
|
3305
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4167
3306
|
name?: string;
|
|
4168
3307
|
icon?: string;
|
|
4169
3308
|
amount?: PaymentAmount;
|
|
@@ -4285,9 +3424,6 @@ declare class OxxoElement extends UIElement<VoucherConfiguration> {
|
|
|
4285
3424
|
|
|
4286
3425
|
declare class MultibancoElement extends UIElement<VoucherConfiguration> {
|
|
4287
3426
|
static type: TxVariants;
|
|
4288
|
-
static defaultProps: {
|
|
4289
|
-
showPayButton: boolean;
|
|
4290
|
-
};
|
|
4291
3427
|
get isValid(): boolean;
|
|
4292
3428
|
formatProps(props: any): any;
|
|
4293
3429
|
/**
|
|
@@ -4416,7 +3552,7 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4416
3552
|
isStoredPaymentMethod?: boolean;
|
|
4417
3553
|
oneClick?: boolean;
|
|
4418
3554
|
storedPaymentMethodId?: string;
|
|
4419
|
-
statusType?: "
|
|
3555
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4420
3556
|
name?: string;
|
|
4421
3557
|
icon?: string;
|
|
4422
3558
|
amount?: PaymentAmount;
|
|
@@ -4501,7 +3637,7 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4501
3637
|
isInstantPayment?: boolean;
|
|
4502
3638
|
isStoredPaymentMethod?: boolean;
|
|
4503
3639
|
oneClick?: boolean;
|
|
4504
|
-
statusType?: "
|
|
3640
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4505
3641
|
type?: string;
|
|
4506
3642
|
name?: string;
|
|
4507
3643
|
icon?: string;
|
|
@@ -4666,7 +3802,6 @@ declare class PixElement extends QRLoaderContainer<PixConfiguration> {
|
|
|
4666
3802
|
onError: () => void;
|
|
4667
3803
|
onComplete: () => void;
|
|
4668
3804
|
onActionHandled: () => void;
|
|
4669
|
-
showPayButton: boolean;
|
|
4670
3805
|
personalDetailsRequired: boolean;
|
|
4671
3806
|
countdownTime: number;
|
|
4672
3807
|
delay: number;
|
|
@@ -4978,7 +4113,7 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
4978
4113
|
isStoredPaymentMethod?: boolean;
|
|
4979
4114
|
oneClick?: boolean;
|
|
4980
4115
|
storedPaymentMethodId?: string;
|
|
4981
|
-
statusType?: "
|
|
4116
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
4982
4117
|
name?: string;
|
|
4983
4118
|
icon?: string;
|
|
4984
4119
|
amount?: PaymentAmount;
|
|
@@ -5059,7 +4194,7 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
5059
4194
|
isStoredPaymentMethod?: boolean;
|
|
5060
4195
|
oneClick?: boolean;
|
|
5061
4196
|
storedPaymentMethodId?: string;
|
|
5062
|
-
statusType?: "
|
|
4197
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
5063
4198
|
name?: string;
|
|
5064
4199
|
icon?: string;
|
|
5065
4200
|
amount?: PaymentAmount;
|
|
@@ -5222,120 +4357,945 @@ declare const ComponentsMap: {
|
|
|
5222
4357
|
};
|
|
5223
4358
|
|
|
5224
4359
|
/**
|
|
5225
|
-
* Available components
|
|
5226
|
-
*/
|
|
5227
|
-
type PaymentMethods = typeof ComponentsMap;
|
|
5228
|
-
/**
|
|
5229
|
-
* Options for a component
|
|
4360
|
+
* Available components
|
|
4361
|
+
*/
|
|
4362
|
+
type PaymentMethods = typeof ComponentsMap;
|
|
4363
|
+
/**
|
|
4364
|
+
* Options for a component
|
|
4365
|
+
*/
|
|
4366
|
+
type PaymentMethodOptions<P extends keyof PaymentMethods> = InstanceType<PaymentMethods[P]>['props'];
|
|
4367
|
+
type PaymentMethodsConfigurationMap = {
|
|
4368
|
+
[key in keyof PaymentMethods]?: Partial<PaymentMethodOptions<key>>;
|
|
4369
|
+
};
|
|
4370
|
+
type PaymentActionTypesMap = {
|
|
4371
|
+
[key in PaymentActionsType]?: Partial<UIElementProps>;
|
|
4372
|
+
};
|
|
4373
|
+
/**
|
|
4374
|
+
* Type must be loose, otherwise it will take priority over the rest
|
|
4375
|
+
*/
|
|
4376
|
+
type NonMappedPaymentMethodsMap = {
|
|
4377
|
+
[key: string]: any;
|
|
4378
|
+
};
|
|
4379
|
+
type PaymentMethodsConfiguration = PaymentMethodsConfigurationMap & PaymentActionTypesMap & NonMappedPaymentMethodsMap;
|
|
4380
|
+
type InstantPaymentTypes = 'paywithgoogle' | 'googlepay' | 'applepay';
|
|
4381
|
+
interface DropinConfiguration extends UIElementProps {
|
|
4382
|
+
/**
|
|
4383
|
+
* Configure each payment method displayed on the Drop-in
|
|
4384
|
+
*/
|
|
4385
|
+
paymentMethodsConfiguration?: PaymentMethodsConfiguration;
|
|
4386
|
+
/**
|
|
4387
|
+
* Pass the payment method classes that are going to be used as part of the Drop-in.
|
|
4388
|
+
*/
|
|
4389
|
+
paymentMethodComponents?: NewableComponent[];
|
|
4390
|
+
order?: Order;
|
|
4391
|
+
/**
|
|
4392
|
+
* Show/Hide stored payment methods
|
|
4393
|
+
* @defaultValue true
|
|
4394
|
+
*/
|
|
4395
|
+
showStoredPaymentMethods?: boolean;
|
|
4396
|
+
/**
|
|
4397
|
+
* Disable the final animation when the payment is successful or if it fails.
|
|
4398
|
+
* @defaultValue false
|
|
4399
|
+
*/
|
|
4400
|
+
disableFinalAnimation?: boolean;
|
|
4401
|
+
/**
|
|
4402
|
+
* Show/Hide regular (non-stored) payment methods
|
|
4403
|
+
* @defaultValue true
|
|
4404
|
+
*/
|
|
4405
|
+
showPaymentMethods?: boolean;
|
|
4406
|
+
/**
|
|
4407
|
+
* Show wallet payment methods to show on top of the regular payment
|
|
4408
|
+
* method list.
|
|
4409
|
+
*
|
|
4410
|
+
* @defaultValue []
|
|
4411
|
+
*/
|
|
4412
|
+
instantPaymentTypes?: InstantPaymentTypes[];
|
|
4413
|
+
openFirstStoredPaymentMethod?: boolean;
|
|
4414
|
+
openFirstPaymentMethod?: boolean;
|
|
4415
|
+
onSubmit?: (data: any, component: any) => void;
|
|
4416
|
+
onReady?: () => void;
|
|
4417
|
+
onSelect?: (paymentMethod: UIElement) => void;
|
|
4418
|
+
/**
|
|
4419
|
+
* Show/Hide the remove payment method button on stored payment methods
|
|
4420
|
+
* Requires {@link DropinConfiguration.onDisableStoredPaymentMethod}
|
|
4421
|
+
* @defaultValue false
|
|
4422
|
+
*/
|
|
4423
|
+
showRemovePaymentMethodButton?: boolean;
|
|
4424
|
+
/**
|
|
4425
|
+
* Show/Hide the radio in the payment method list
|
|
4426
|
+
* @defaultValue false
|
|
4427
|
+
*/
|
|
4428
|
+
showRadioButton?: boolean;
|
|
4429
|
+
/**
|
|
4430
|
+
* Called when a shopper clicks Remove on a stored payment method
|
|
4431
|
+
* Use this to call the {@link https://docs.adyen.com/api-explorer/#/Recurring/v49/post/disable /disable endpoint}
|
|
4432
|
+
* Call resolve() if the removal was successful, or call reject() if there was an error
|
|
4433
|
+
* @defaultValue false
|
|
4434
|
+
*/
|
|
4435
|
+
onDisableStoredPaymentMethod?: (storedPaymentMethod: any, resolve: any, reject: any) => void;
|
|
4436
|
+
}
|
|
4437
|
+
interface onOrderCancelData {
|
|
4438
|
+
order: {
|
|
4439
|
+
orderData: string;
|
|
4440
|
+
pspReference: string;
|
|
4441
|
+
};
|
|
4442
|
+
}
|
|
4443
|
+
type onOrderCancelType = (data: onOrderCancelData, actions: {
|
|
4444
|
+
resolve: (data: {
|
|
4445
|
+
amount: PaymentAmount;
|
|
4446
|
+
}) => void;
|
|
4447
|
+
reject: (error: string) => void;
|
|
4448
|
+
}) => void;
|
|
4449
|
+
interface DropinComponentProps extends DropinConfiguration {
|
|
4450
|
+
core: ICore;
|
|
4451
|
+
onCreateElements: any;
|
|
4452
|
+
onChange: (newState?: object) => void;
|
|
4453
|
+
onOrderCancel?: onOrderCancelType;
|
|
4454
|
+
}
|
|
4455
|
+
interface DropinStatus {
|
|
4456
|
+
type: UIElementStatus;
|
|
4457
|
+
props?: DropinStatusProps;
|
|
4458
|
+
}
|
|
4459
|
+
interface DropinStatusProps {
|
|
4460
|
+
component?: UIElement;
|
|
4461
|
+
}
|
|
4462
|
+
interface DropinComponentState {
|
|
4463
|
+
elements: any[];
|
|
4464
|
+
instantPaymentElements: UIElement[];
|
|
4465
|
+
storedPaymentElements: UIElement[];
|
|
4466
|
+
status: DropinStatus;
|
|
4467
|
+
activePaymentMethod: UIElement;
|
|
4468
|
+
cachedPaymentMethods: object;
|
|
4469
|
+
isDisabling: boolean;
|
|
4470
|
+
orderStatus: OrderStatus;
|
|
4471
|
+
}
|
|
4472
|
+
interface IDropin {
|
|
4473
|
+
/**
|
|
4474
|
+
* Used to make the Dropin display the final animation
|
|
4475
|
+
*
|
|
4476
|
+
* @internal
|
|
4477
|
+
* @param type - animation type
|
|
4478
|
+
*/
|
|
4479
|
+
displayFinalAnimation(type: 'success' | 'error'): void;
|
|
4480
|
+
activePaymentMethod: () => null;
|
|
4481
|
+
closeActivePaymentMethod: () => void;
|
|
4482
|
+
}
|
|
4483
|
+
|
|
4484
|
+
interface ICore {
|
|
4485
|
+
initialize(): Promise<ICore>;
|
|
4486
|
+
register(...items: NewableComponent[]): void;
|
|
4487
|
+
update(options: CoreConfiguration): Promise<ICore>;
|
|
4488
|
+
remove(component: any): ICore;
|
|
4489
|
+
submitDetails(details: any): void;
|
|
4490
|
+
getCorePropsForComponent(): any;
|
|
4491
|
+
getComponent(txVariant: string): NewableComponent | undefined;
|
|
4492
|
+
createFromAction(action: PaymentAction, options: any): any;
|
|
4493
|
+
storeElementReference(element: UIElement): void;
|
|
4494
|
+
options: CoreConfiguration;
|
|
4495
|
+
paymentMethodsResponse: PaymentMethods$1;
|
|
4496
|
+
session?: Session;
|
|
4497
|
+
}
|
|
4498
|
+
type AdyenEnvironment = 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in' | string;
|
|
4499
|
+
interface CoreConfiguration {
|
|
4500
|
+
session?: any;
|
|
4501
|
+
/**
|
|
4502
|
+
* Use test. When you're ready to accept live payments, change the value to one of our {@link https://docs.adyen.com/checkout/drop-in-web#testing-your-integration | live environments}.
|
|
4503
|
+
*/
|
|
4504
|
+
environment?: AdyenEnvironment;
|
|
4505
|
+
/**
|
|
4506
|
+
* Used internally by Pay By Link in order to set its own URL's instead of using the ones mapped in our codebase.
|
|
4507
|
+
*
|
|
4508
|
+
* @internal
|
|
4509
|
+
*/
|
|
4510
|
+
environmentUrls?: {
|
|
4511
|
+
api?: string;
|
|
4512
|
+
analytics?: string;
|
|
4513
|
+
};
|
|
4514
|
+
/**
|
|
4515
|
+
* Show or hides a Pay Button for each payment method
|
|
4516
|
+
*/
|
|
4517
|
+
showPayButton?: boolean;
|
|
4518
|
+
/**
|
|
4519
|
+
* A public key linked to your web service user, used for {@link https://docs.adyen.com/user-management/client-side-authentication | client-side authentication}.
|
|
4520
|
+
*/
|
|
4521
|
+
clientKey?: string;
|
|
4522
|
+
/**
|
|
4523
|
+
* The shopper's locale. This is used to set the language rendered in the UI.
|
|
4524
|
+
* For a list of supported locales, see {@link https://docs.adyen.com/checkout/components-web/localization-components | Localization}.
|
|
4525
|
+
* For adding a custom locale, see {@link https://docs.adyen.com/checkout/components-web/localization-components#create-localization | Create localization}.*
|
|
4526
|
+
*/
|
|
4527
|
+
locale?: string;
|
|
4528
|
+
/**
|
|
4529
|
+
* Translation file which contains the translations to a certain locale.
|
|
4530
|
+
* @default en_US
|
|
4531
|
+
*/
|
|
4532
|
+
translationFile?: Translation;
|
|
4533
|
+
/**
|
|
4534
|
+
* Custom translations and localizations
|
|
4535
|
+
* See {@link https://docs.adyen.com/checkout/components-web/localization-components | Localizing Components}
|
|
4536
|
+
*/
|
|
4537
|
+
translations?: CustomTranslations;
|
|
4538
|
+
/**
|
|
4539
|
+
* The full `/paymentMethods` response
|
|
4540
|
+
*/
|
|
4541
|
+
paymentMethodsResponse?: PaymentMethodsResponse;
|
|
4542
|
+
/**
|
|
4543
|
+
* Amount of the payment
|
|
4544
|
+
*/
|
|
4545
|
+
amount?: PaymentAmountExtended;
|
|
4546
|
+
/**
|
|
4547
|
+
* Secondary amount of the payment - alternative currency & value converted according to rate
|
|
4548
|
+
*/
|
|
4549
|
+
secondaryAmount?: PaymentAmountExtended;
|
|
4550
|
+
/**
|
|
4551
|
+
* The shopper's country code. A valid value is an ISO two-character country code (e.g. 'NL').
|
|
4552
|
+
*/
|
|
4553
|
+
countryCode?: string;
|
|
4554
|
+
/**
|
|
4555
|
+
* Display only these payment methods
|
|
4556
|
+
*/
|
|
4557
|
+
allowPaymentMethods?: string[];
|
|
4558
|
+
/**
|
|
4559
|
+
* Never display these payment methods
|
|
4560
|
+
*/
|
|
4561
|
+
removePaymentMethods?: string[];
|
|
4562
|
+
/**
|
|
4563
|
+
* Screen Reader configuration
|
|
4564
|
+
*/
|
|
4565
|
+
srConfig?: SRPanelConfig;
|
|
4566
|
+
/**
|
|
4567
|
+
* @internal
|
|
4568
|
+
*/
|
|
4569
|
+
cdnContext?: string;
|
|
4570
|
+
resourceEnvironment?: string;
|
|
4571
|
+
analytics?: AnalyticsOptions;
|
|
4572
|
+
risk?: RiskModuleOptions;
|
|
4573
|
+
order?: Order;
|
|
4574
|
+
/**
|
|
4575
|
+
* Add @adyen/web metadata to the window object.
|
|
4576
|
+
* It helps to identify version number and bundle type in the merchant environment
|
|
4577
|
+
*
|
|
4578
|
+
* @default true
|
|
4579
|
+
*/
|
|
4580
|
+
exposeLibraryMetadata?: boolean;
|
|
4581
|
+
beforeRedirect?(resolve: () => void, reject: () => void, redirectData: {
|
|
4582
|
+
url: string;
|
|
4583
|
+
method: string;
|
|
4584
|
+
data?: any;
|
|
4585
|
+
}): void;
|
|
4586
|
+
beforeSubmit?(state: any, element: UIElement, actions: {
|
|
4587
|
+
resolve: (data: any) => void;
|
|
4588
|
+
reject: () => void;
|
|
4589
|
+
}): void;
|
|
4590
|
+
/**
|
|
4591
|
+
* Called when the payment succeeds.
|
|
4592
|
+
*
|
|
4593
|
+
* The first parameter is the sessions response (when using sessions flow), or the result code.
|
|
4594
|
+
*
|
|
4595
|
+
* @param data
|
|
4596
|
+
* @param element
|
|
4597
|
+
*/
|
|
4598
|
+
onPaymentCompleted?(data: SessionsResponse | {
|
|
4599
|
+
resultCode: ResultCode;
|
|
4600
|
+
donationToken?: string;
|
|
4601
|
+
}, element?: UIElement): void;
|
|
4602
|
+
/**
|
|
4603
|
+
* Called when the payment fails.
|
|
4604
|
+
*
|
|
4605
|
+
* The first parameter is populated when merchant is using sessions, or when the payment was rejected
|
|
4606
|
+
* with an object. (Ex: 'action.reject(obj)' ). Otherwise, it will be empty.
|
|
4607
|
+
*
|
|
4608
|
+
* @param data - session response or resultCode. It can also be undefined if payment was rejected without argument ('action.reject()')
|
|
4609
|
+
* @param element
|
|
4610
|
+
*/
|
|
4611
|
+
onPaymentFailed?(data?: SessionsResponse | {
|
|
4612
|
+
resultCode: ResultCode;
|
|
4613
|
+
}, element?: UIElement): void;
|
|
4614
|
+
onSubmit?(state: any, element: UIElement, actions: {
|
|
4615
|
+
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4616
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, 'error'>) => void;
|
|
4617
|
+
}): void;
|
|
4618
|
+
/**
|
|
4619
|
+
* Callback used in the Advanced flow to perform the /payments/details API call.
|
|
4620
|
+
*
|
|
4621
|
+
* @param state
|
|
4622
|
+
* @param element - Component submitting details. It is undefined when using checkout.submitDetails()
|
|
4623
|
+
* @param actions
|
|
4624
|
+
*/
|
|
4625
|
+
onAdditionalDetails?(state: AdditionalDetailsStateData, element: UIElement, actions: {
|
|
4626
|
+
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4627
|
+
reject: () => void;
|
|
4628
|
+
}): void;
|
|
4629
|
+
onActionHandled?(data: ActionHandledReturnObject): void;
|
|
4630
|
+
onChange?(state: any, element: UIElement): void;
|
|
4631
|
+
onError?(error: AdyenCheckoutError, element?: UIElement): void;
|
|
4632
|
+
onBalanceCheck?: onBalanceCheckCallbackType;
|
|
4633
|
+
onOrderRequest?: onOrderRequestCallbackType;
|
|
4634
|
+
onPaymentMethodsRequest?(data: PaymentMethodsRequestData, actions: {
|
|
4635
|
+
resolve: (response: PaymentMethodsResponse) => void;
|
|
4636
|
+
reject: () => void;
|
|
4637
|
+
}): void;
|
|
4638
|
+
onOrderCancel?: onOrderCancelType;
|
|
4639
|
+
/**
|
|
4640
|
+
* Called when the gift card balance is less than the transaction amount.
|
|
4641
|
+
* Returns an Order object that includes the remaining amount to be paid.
|
|
4642
|
+
* https://docs.adyen.com/payment-methods/gift-cards/web-component?tab=config-sessions_1
|
|
4643
|
+
*/
|
|
4644
|
+
onOrderUpdated?(data: {
|
|
4645
|
+
order: Order;
|
|
4646
|
+
}): void;
|
|
4647
|
+
/**
|
|
4648
|
+
* @internal
|
|
4649
|
+
*/
|
|
4650
|
+
loadingContext?: string;
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4653
|
+
declare class BaseElement<P extends BaseElementProps> implements IBaseElement {
|
|
4654
|
+
readonly _id: string;
|
|
4655
|
+
props: P;
|
|
4656
|
+
state: any;
|
|
4657
|
+
_component: any;
|
|
4658
|
+
protected _node: HTMLElement;
|
|
4659
|
+
protected readonly core: ICore;
|
|
4660
|
+
protected static defaultProps: {};
|
|
4661
|
+
constructor(checkout: ICore, props?: P);
|
|
4662
|
+
protected buildElementProps(componentProps?: P): void;
|
|
4663
|
+
/**
|
|
4664
|
+
* Executed during creation of any payment element.
|
|
4665
|
+
* Gives a chance to any paymentMethod to format the props we're receiving.
|
|
4666
|
+
*/
|
|
4667
|
+
protected formatProps(props: P): P;
|
|
4668
|
+
/**
|
|
4669
|
+
* Executed on the `data` getter.
|
|
4670
|
+
* Returns the component data necessary for the /payments request
|
|
4671
|
+
*
|
|
4672
|
+
* TODO: Replace 'any' by type PaymentMethodData<T> - this change requires updating all payment methods,
|
|
4673
|
+
* properly adding the type of the formatData function
|
|
4674
|
+
*/
|
|
4675
|
+
protected formatData(): any;
|
|
4676
|
+
protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): any;
|
|
4677
|
+
protected submitAnalytics(analyticsObj?: SendAnalyticsObject): any;
|
|
4678
|
+
protected setState(newState: object): void;
|
|
4679
|
+
/**
|
|
4680
|
+
* Returns the component payment data ready to submit to the Checkout API
|
|
4681
|
+
* Note: this does not ensure validity, check isValid first
|
|
4682
|
+
*/
|
|
4683
|
+
get data(): PaymentData;
|
|
4684
|
+
render(): ComponentChild | Error;
|
|
4685
|
+
/**
|
|
4686
|
+
* Mounts an element into the dom
|
|
4687
|
+
* @param domNode - Node (or selector) where we will mount the payment element
|
|
4688
|
+
* @returns this - the payment element instance we mounted
|
|
4689
|
+
*/
|
|
4690
|
+
mount(domNode: HTMLElement | string): this;
|
|
4691
|
+
/**
|
|
4692
|
+
* Updates props, resets the internal state and remounts the element.
|
|
4693
|
+
*
|
|
4694
|
+
* @param props - props to update
|
|
4695
|
+
* @returns this - the element instance
|
|
4696
|
+
*/
|
|
4697
|
+
update(props: Partial<P>): this;
|
|
4698
|
+
/**
|
|
4699
|
+
* Unmounts a payment element from the DOM
|
|
4700
|
+
*/
|
|
4701
|
+
unmount(): this;
|
|
4702
|
+
/**
|
|
4703
|
+
* Unmounts an element and removes it from the parent instance
|
|
4704
|
+
* For "destroy" type cleanup - when you don't intend to use the component again
|
|
4705
|
+
*/
|
|
4706
|
+
remove(): void;
|
|
4707
|
+
}
|
|
4708
|
+
|
|
4709
|
+
declare abstract class UIElement<P extends UIElementProps = UIElementProps> extends BaseElement<P> implements IUIElement {
|
|
4710
|
+
protected componentRef: any;
|
|
4711
|
+
protected resources: Resources;
|
|
4712
|
+
elementRef: UIElement;
|
|
4713
|
+
static type: any;
|
|
4714
|
+
/**
|
|
4715
|
+
* Defines all txVariants that the Component supports (in case it support multiple ones besides the 'type' one)
|
|
4716
|
+
*/
|
|
4717
|
+
static txVariants: string[];
|
|
4718
|
+
constructor(checkout: ICore, props?: P);
|
|
4719
|
+
protected buildElementProps(componentProps?: P): void;
|
|
4720
|
+
protected storeElementRefOnCore(props?: P): void;
|
|
4721
|
+
isAvailable(): Promise<void>;
|
|
4722
|
+
setState(newState: object): void;
|
|
4723
|
+
showValidation(): this;
|
|
4724
|
+
setElementStatus(status: UIElementStatus, props?: any): this;
|
|
4725
|
+
setStatus(status: UIElementStatus, props?: any): this;
|
|
4726
|
+
protected onChange(): object;
|
|
4727
|
+
protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): Promise<any>;
|
|
4728
|
+
/**
|
|
4729
|
+
* A function for all UIElements, or BaseElement, to use to create an analytics action for when it's been:
|
|
4730
|
+
* - mounted,
|
|
4731
|
+
* - a PM has been selected
|
|
4732
|
+
* - onSubmit has been called (as a result of the pay button being pressed)
|
|
4733
|
+
*
|
|
4734
|
+
* In some other cases e.g. 3DS2 components, this function is overridden to allow more specific analytics actions to be created
|
|
4735
|
+
*/
|
|
4736
|
+
protected submitAnalytics(analyticsObj: SendAnalyticsObject): void;
|
|
4737
|
+
submit(): void;
|
|
4738
|
+
protected makePaymentsCall(): Promise<CheckoutAdvancedFlowResponse | CheckoutSessionPaymentResponse>;
|
|
4739
|
+
private submitUsingAdvancedFlow;
|
|
4740
|
+
private submitUsingSessionsFlow;
|
|
4741
|
+
protected onComplete(state: any): void;
|
|
4742
|
+
protected handleError: (error: AdyenCheckoutError) => void;
|
|
4743
|
+
protected handleAdditionalDetails(state: AdditionalDetailsStateData): void;
|
|
4744
|
+
private makeAdditionalDetailsCall;
|
|
4745
|
+
private submitAdditionalDetailsUsingSessionsFlow;
|
|
4746
|
+
handleAction(action: PaymentAction, props?: {}): UIElement<P> | null;
|
|
4747
|
+
protected handleOrder: (response: PaymentResponseData) => void;
|
|
4748
|
+
/**
|
|
4749
|
+
* Handles when the payment fails. The payment fails when:
|
|
4750
|
+
* - adv flow: the merchant rejects the payment due to a critical error
|
|
4751
|
+
* - adv flow: the merchant resolves the payment with a failed resultCode
|
|
4752
|
+
* - sessions: a network error occurs when making the payment
|
|
4753
|
+
* - sessions: the payment fails with a failed resultCode
|
|
4754
|
+
*
|
|
4755
|
+
* @param result
|
|
4756
|
+
*/
|
|
4757
|
+
protected handleFailedResult: (result?: PaymentResponseData) => void;
|
|
4758
|
+
protected handleSuccessResult: (result: PaymentResponseData) => void;
|
|
4759
|
+
/**
|
|
4760
|
+
* Handles a session /payments or /payments/details response.
|
|
4761
|
+
* The component will handle automatically actions, orders, and final results.
|
|
4762
|
+
*
|
|
4763
|
+
* @param rawResponse -
|
|
4764
|
+
*/
|
|
4765
|
+
protected handleResponse(rawResponse: RawPaymentResponse): void;
|
|
4766
|
+
/**
|
|
4767
|
+
* Call update on parent instance
|
|
4768
|
+
* This function exist to make safe access to the protect _parentInstance
|
|
4769
|
+
* @param options - CoreOptions
|
|
4770
|
+
*/
|
|
4771
|
+
updateParent(options?: CoreConfiguration): Promise<ICore>;
|
|
4772
|
+
setComponentRef: (ref: ComponentMethodsRef) => void;
|
|
4773
|
+
/**
|
|
4774
|
+
* Get the current validation status of the element
|
|
4775
|
+
*/
|
|
4776
|
+
get isValid(): boolean;
|
|
4777
|
+
/**
|
|
4778
|
+
* Get the element icon URL for the current environment
|
|
4779
|
+
*/
|
|
4780
|
+
get icon(): string;
|
|
4781
|
+
/**
|
|
4782
|
+
* Get the element's displayable name
|
|
4783
|
+
*/
|
|
4784
|
+
get displayName(): string;
|
|
4785
|
+
/**
|
|
4786
|
+
* Get the element accessible name, used in the aria-label of the button that controls selected payment method
|
|
4787
|
+
*/
|
|
4788
|
+
get accessibleName(): string;
|
|
4789
|
+
/**
|
|
4790
|
+
* Used to display the second line of a payment method item
|
|
4791
|
+
*/
|
|
4792
|
+
get additionalInfo(): string;
|
|
4793
|
+
/**
|
|
4794
|
+
* Return the type of an element
|
|
4795
|
+
*/
|
|
4796
|
+
get type(): string;
|
|
4797
|
+
/**
|
|
4798
|
+
* Get the payButton component for the current element
|
|
4799
|
+
*/
|
|
4800
|
+
protected payButton: (props: PayButtonFunctionProps) => h.JSX.Element;
|
|
4801
|
+
/**
|
|
4802
|
+
* Used in the Partial Orders flow.
|
|
4803
|
+
* When the Order is updated, the merchant can request new payment methods based on the new remaining amount
|
|
4804
|
+
*
|
|
4805
|
+
* @private
|
|
4806
|
+
*/
|
|
4807
|
+
protected handleAdvanceFlowPaymentMethodsUpdate(order: Order | null, amount?: PaymentAmount): Promise<ICore>;
|
|
4808
|
+
}
|
|
4809
|
+
|
|
4810
|
+
type PayButtonFunctionProps = Omit<PayButtonProps, 'amount'>;
|
|
4811
|
+
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError'>;
|
|
4812
|
+
type UIElementProps = BaseElementProps & CoreCallbacks & {
|
|
4813
|
+
environment?: string;
|
|
4814
|
+
session?: Session;
|
|
4815
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
4816
|
+
isInstantPayment?: boolean;
|
|
4817
|
+
/**
|
|
4818
|
+
* Flags if the element is Stored payment method
|
|
4819
|
+
* @internal
|
|
4820
|
+
*/
|
|
4821
|
+
isStoredPaymentMethod?: boolean;
|
|
4822
|
+
/**
|
|
4823
|
+
* Flag if the element is Stored payment method.
|
|
4824
|
+
* Perhaps can be deprecated and we use the one above?
|
|
4825
|
+
* @internal
|
|
4826
|
+
*/
|
|
4827
|
+
oneClick?: boolean;
|
|
4828
|
+
/**
|
|
4829
|
+
* Stored payment method id
|
|
4830
|
+
* @internal
|
|
4831
|
+
*/
|
|
4832
|
+
storedPaymentMethodId?: string;
|
|
4833
|
+
/**
|
|
4834
|
+
* Status set when creating the Component from action
|
|
4835
|
+
* @internal
|
|
4836
|
+
*/
|
|
4837
|
+
statusType?: 'redirect' | 'loading' | 'custom';
|
|
4838
|
+
type?: string;
|
|
4839
|
+
name?: string;
|
|
4840
|
+
icon?: string;
|
|
4841
|
+
amount?: PaymentAmount;
|
|
4842
|
+
secondaryAmount?: PaymentAmountExtended;
|
|
4843
|
+
/**
|
|
4844
|
+
* Show/Hide pay button
|
|
4845
|
+
* @defaultValue true
|
|
4846
|
+
*/
|
|
4847
|
+
showPayButton?: boolean;
|
|
4848
|
+
/** @internal */
|
|
4849
|
+
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
4850
|
+
/** @internal */
|
|
4851
|
+
loadingContext?: string;
|
|
4852
|
+
/** @internal */
|
|
4853
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4854
|
+
/** @internal */
|
|
4855
|
+
clientKey?: string;
|
|
4856
|
+
/** @internal */
|
|
4857
|
+
elementRef?: any;
|
|
4858
|
+
/** @internal */
|
|
4859
|
+
i18n?: Language;
|
|
4860
|
+
/**
|
|
4861
|
+
* The shopper’s issuer account label. It can be available for stored payment method
|
|
4862
|
+
* @internal
|
|
4863
|
+
*/
|
|
4864
|
+
label?: string;
|
|
4865
|
+
/**
|
|
4866
|
+
* Returned after the payments call, when an action is returned. It represents the payment method tx variant
|
|
4867
|
+
* that was used for the payment
|
|
4868
|
+
* @internal
|
|
4869
|
+
*/
|
|
4870
|
+
paymentMethodType?: string;
|
|
4871
|
+
};
|
|
4872
|
+
interface IUIElement extends IBaseElement {
|
|
4873
|
+
isValid: boolean;
|
|
4874
|
+
displayName: string;
|
|
4875
|
+
accessibleName: string;
|
|
4876
|
+
type: string;
|
|
4877
|
+
icon: string;
|
|
4878
|
+
elementRef: IUIElement;
|
|
4879
|
+
submit(): void;
|
|
4880
|
+
setComponentRef(ref: any): void;
|
|
4881
|
+
updateParent(options?: CoreConfiguration): Promise<ICore>;
|
|
4882
|
+
setElementStatus(status: UIElementStatus, props: any): UIElement;
|
|
4883
|
+
setStatus(status: UIElementStatus, props?: {
|
|
4884
|
+
message?: string;
|
|
4885
|
+
[key: string]: any;
|
|
4886
|
+
}): UIElement;
|
|
4887
|
+
handleAction(action: PaymentAction): UIElement | null;
|
|
4888
|
+
showValidation(): void;
|
|
4889
|
+
setState(newState: object): void;
|
|
4890
|
+
isAvailable(): Promise<void>;
|
|
4891
|
+
}
|
|
4892
|
+
type UIElementStatus = 'ready' | 'loading' | 'error' | 'success';
|
|
4893
|
+
interface ComponentMethodsRef {
|
|
4894
|
+
showValidation?: () => void;
|
|
4895
|
+
setStatus?(status: UIElementStatus): void;
|
|
4896
|
+
}
|
|
4897
|
+
|
|
4898
|
+
declare const actionTypes: {
|
|
4899
|
+
readonly redirect: (core: ICore, registry: any, action: PaymentAction, props: any) => IUIElement;
|
|
4900
|
+
readonly threeDS2: (core: ICore, registry: any, action: PaymentAction, props: any) => IUIElement;
|
|
4901
|
+
readonly voucher: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => IUIElement;
|
|
4902
|
+
readonly qrCode: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => IUIElement;
|
|
4903
|
+
readonly await: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => IUIElement;
|
|
4904
|
+
readonly bankTransfer: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => IUIElement;
|
|
4905
|
+
readonly sdk: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => IUIElement;
|
|
4906
|
+
};
|
|
4907
|
+
|
|
4908
|
+
interface CAActions {
|
|
4909
|
+
channel: 'Web';
|
|
4910
|
+
platform: 'Web';
|
|
4911
|
+
info: AnalyticsObject[];
|
|
4912
|
+
errors: AnalyticsObject[];
|
|
4913
|
+
logs: AnalyticsObject[];
|
|
4914
|
+
}
|
|
4915
|
+
interface EventsQueueModule {
|
|
4916
|
+
add: (t: string, o: AnalyticsObject) => void;
|
|
4917
|
+
run: (id: string) => Promise<any>;
|
|
4918
|
+
getQueue: () => CAActions;
|
|
4919
|
+
}
|
|
4920
|
+
|
|
4921
|
+
type PaymentActionsType = keyof typeof actionTypes;
|
|
4922
|
+
/**
|
|
4923
|
+
* {@link https://docs.adyen.com/api-explorer/#/PaymentSetupAndVerificationService/v51/payments__resParam_action API Explorer /payments action}
|
|
5230
4924
|
*/
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
type
|
|
5236
|
-
|
|
4925
|
+
interface PaymentAction {
|
|
4926
|
+
/**
|
|
4927
|
+
* General type of action that needs to be taken by the client
|
|
4928
|
+
*/
|
|
4929
|
+
type: PaymentActionsType | string;
|
|
4930
|
+
/**
|
|
4931
|
+
* Refinement of type of action that needs to be taken by the client (currently only applies to the new 'threeDS2' type)
|
|
4932
|
+
*/
|
|
4933
|
+
subtype?: string;
|
|
4934
|
+
/**
|
|
4935
|
+
* Specifies the payment method.
|
|
4936
|
+
*/
|
|
4937
|
+
paymentMethodType: string;
|
|
4938
|
+
/**
|
|
4939
|
+
* When non-empty, contains a value that you must submit to the /payments/details endpoint. In some cases, required for polling.
|
|
4940
|
+
*/
|
|
4941
|
+
paymentData?: string;
|
|
4942
|
+
authorisationToken?: string;
|
|
4943
|
+
/**
|
|
4944
|
+
* Specifies the HTTP method, for example GET or POST.
|
|
4945
|
+
*/
|
|
4946
|
+
method?: string;
|
|
4947
|
+
/**
|
|
4948
|
+
* Specifies the URL to redirect to.
|
|
4949
|
+
*/
|
|
4950
|
+
url?: string;
|
|
4951
|
+
alternativeReference?: string;
|
|
4952
|
+
downloadUrl?: string;
|
|
4953
|
+
entity?: string;
|
|
4954
|
+
expiresAt?: string;
|
|
4955
|
+
instructionsUrl?: string;
|
|
4956
|
+
issuer?: string;
|
|
4957
|
+
maskedTelephoneNumber?: string;
|
|
4958
|
+
merchantName?: string;
|
|
4959
|
+
merchantReference?: string;
|
|
4960
|
+
reference?: string;
|
|
4961
|
+
shopperEmail?: string;
|
|
4962
|
+
shopperName?: string;
|
|
4963
|
+
qrCodeData?: string;
|
|
4964
|
+
/**
|
|
4965
|
+
* A token to pass to the 3DS2 Component to get the fingerprint/challenge.
|
|
4966
|
+
*/
|
|
4967
|
+
token?: string;
|
|
4968
|
+
/**
|
|
4969
|
+
* An object containing data to be used in external SDKs like PayPal Buttons SDK.
|
|
4970
|
+
*/
|
|
4971
|
+
sdkData?: {
|
|
4972
|
+
[key: string]: any;
|
|
4973
|
+
};
|
|
4974
|
+
}
|
|
4975
|
+
type Issuer = {
|
|
4976
|
+
id: string;
|
|
4977
|
+
name: string;
|
|
4978
|
+
disabled?: boolean;
|
|
5237
4979
|
};
|
|
4980
|
+
interface PaymentMethod {
|
|
4981
|
+
/**
|
|
4982
|
+
* The unique payment method code.
|
|
4983
|
+
*/
|
|
4984
|
+
type: string;
|
|
4985
|
+
/**
|
|
4986
|
+
* The displayable name of this payment method.
|
|
4987
|
+
*/
|
|
4988
|
+
name: string;
|
|
4989
|
+
/**
|
|
4990
|
+
* A list of issuers for this payment method.
|
|
4991
|
+
*/
|
|
4992
|
+
issuers?: Issuer[];
|
|
4993
|
+
/**
|
|
4994
|
+
* Configuration props as set by the merchant in the CA and received in the PM object in the /paymentMethods response
|
|
4995
|
+
*/
|
|
4996
|
+
configuration?: object;
|
|
4997
|
+
/**
|
|
4998
|
+
* Brand for the selected gift card. For example: plastix, hmclub.
|
|
4999
|
+
*/
|
|
5000
|
+
brand?: string;
|
|
5001
|
+
/**
|
|
5002
|
+
* List of possible brands. For example: visa, mc.
|
|
5003
|
+
*/
|
|
5004
|
+
brands?: string[];
|
|
5005
|
+
/**
|
|
5006
|
+
* The funding source of the payment method.
|
|
5007
|
+
*/
|
|
5008
|
+
fundingSource?: 'debit' | 'credit';
|
|
5009
|
+
/**
|
|
5010
|
+
* The group where this payment method belongs to.
|
|
5011
|
+
*/
|
|
5012
|
+
group?: PaymentMethodGroup;
|
|
5013
|
+
}
|
|
5238
5014
|
/**
|
|
5239
|
-
*
|
|
5015
|
+
* List of the available payment methods
|
|
5016
|
+
* {@link https://docs.adyen.com/api-explorer/Checkout/70/post/paymentMethods API Explorer /paymentMethods}.
|
|
5240
5017
|
*/
|
|
5241
|
-
|
|
5242
|
-
[key: string]: any;
|
|
5243
|
-
};
|
|
5244
|
-
type PaymentMethodsConfiguration = PaymentMethodsConfigurationMap & PaymentActionTypesMap & NonMappedPaymentMethodsMap;
|
|
5245
|
-
type InstantPaymentTypes = 'paywithgoogle' | 'googlepay' | 'applepay';
|
|
5246
|
-
interface DropinConfiguration extends UIElementProps {
|
|
5018
|
+
interface PaymentMethodsResponse {
|
|
5247
5019
|
/**
|
|
5248
|
-
*
|
|
5020
|
+
* Detailed list of payment methods required to generate payment forms.
|
|
5249
5021
|
*/
|
|
5250
|
-
|
|
5022
|
+
paymentMethods?: PaymentMethod[];
|
|
5251
5023
|
/**
|
|
5252
|
-
*
|
|
5024
|
+
* List of all stored payment methods.
|
|
5253
5025
|
*/
|
|
5254
|
-
|
|
5255
|
-
|
|
5026
|
+
storedPaymentMethods?: StoredPaymentMethod[];
|
|
5027
|
+
}
|
|
5028
|
+
interface StoredPaymentMethod extends PaymentMethod {
|
|
5029
|
+
id: string;
|
|
5030
|
+
name: string;
|
|
5031
|
+
supportedShopperInteractions: string[];
|
|
5032
|
+
expiryMonth?: string;
|
|
5033
|
+
expiryYear?: string;
|
|
5034
|
+
holderName?: string;
|
|
5035
|
+
iban?: string;
|
|
5036
|
+
lastFour?: string;
|
|
5037
|
+
networkTxReference?: string;
|
|
5038
|
+
ownerName?: string;
|
|
5039
|
+
shopperEmail?: string;
|
|
5040
|
+
/** The shopper’s issuer account label */
|
|
5041
|
+
label?: string;
|
|
5256
5042
|
/**
|
|
5257
|
-
*
|
|
5258
|
-
* @
|
|
5043
|
+
* A unique identifier of this stored payment method. Mapped from 'storedPaymentMethod.id'
|
|
5044
|
+
* @internal
|
|
5259
5045
|
*/
|
|
5260
|
-
|
|
5046
|
+
storedPaymentMethodId?: string;
|
|
5261
5047
|
/**
|
|
5262
|
-
*
|
|
5263
|
-
* @
|
|
5048
|
+
* Internal flag
|
|
5049
|
+
* @internal
|
|
5264
5050
|
*/
|
|
5265
|
-
|
|
5051
|
+
isStoredPaymentMethod?: boolean;
|
|
5052
|
+
}
|
|
5053
|
+
/**
|
|
5054
|
+
* The group where this payment method belongs to.
|
|
5055
|
+
*/
|
|
5056
|
+
interface PaymentMethodGroup {
|
|
5266
5057
|
/**
|
|
5267
|
-
*
|
|
5268
|
-
* @defaultValue true
|
|
5058
|
+
* The name of the group.
|
|
5269
5059
|
*/
|
|
5270
|
-
|
|
5060
|
+
name: string;
|
|
5061
|
+
/**
|
|
5062
|
+
* Echo data to be used if the payment method is displayed as part of this group.
|
|
5063
|
+
*/
|
|
5064
|
+
paymentMethodData: string;
|
|
5065
|
+
/**
|
|
5066
|
+
* The unique code of the group.
|
|
5067
|
+
*/
|
|
5068
|
+
type: string;
|
|
5069
|
+
}
|
|
5070
|
+
interface ProcessedResponse {
|
|
5071
|
+
type: string;
|
|
5072
|
+
props?: object;
|
|
5073
|
+
}
|
|
5074
|
+
/**
|
|
5075
|
+
* {@link https://docs.adyen.com/api-explorer/#/PaymentSetupAndVerificationService/v52/payments__reqParam_amount API Explorer /payments amount}
|
|
5076
|
+
*/
|
|
5077
|
+
interface PaymentAmount {
|
|
5078
|
+
value: number;
|
|
5079
|
+
currency: string;
|
|
5080
|
+
}
|
|
5081
|
+
interface PaymentAmountExtended extends PaymentAmount {
|
|
5271
5082
|
/**
|
|
5272
|
-
*
|
|
5273
|
-
*
|
|
5274
|
-
*
|
|
5275
|
-
* @defaultValue []
|
|
5083
|
+
* Adds currencyDisplay prop - as a way for the merchant to influence the final display of the amount on the pay button.
|
|
5084
|
+
* Defaults to 'symbol'.
|
|
5085
|
+
* see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currencydisplay
|
|
5276
5086
|
*/
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5087
|
+
currencyDisplay?: string;
|
|
5088
|
+
}
|
|
5089
|
+
type AddressField = (typeof ADDRESS_SCHEMA)[number];
|
|
5090
|
+
type AddressData = {
|
|
5091
|
+
[key in AddressField]?: string;
|
|
5092
|
+
};
|
|
5093
|
+
interface PersonalDetailsSchema {
|
|
5094
|
+
firstName?: string;
|
|
5095
|
+
lastName?: string;
|
|
5096
|
+
gender?: string;
|
|
5097
|
+
dateOfBirth?: string;
|
|
5098
|
+
shopperEmail?: string;
|
|
5099
|
+
telephoneNumber?: string;
|
|
5100
|
+
}
|
|
5101
|
+
interface Order {
|
|
5283
5102
|
/**
|
|
5284
|
-
*
|
|
5285
|
-
* Requires {@link DropinConfiguration.onDisableStoredPaymentMethod}
|
|
5286
|
-
* @defaultValue false
|
|
5103
|
+
* The encrypted order data.
|
|
5287
5104
|
*/
|
|
5288
|
-
|
|
5105
|
+
orderData: string;
|
|
5289
5106
|
/**
|
|
5290
|
-
*
|
|
5291
|
-
* @defaultValue false
|
|
5107
|
+
* The pspReference that belongs to the order.
|
|
5292
5108
|
*/
|
|
5293
|
-
|
|
5109
|
+
pspReference: string;
|
|
5294
5110
|
/**
|
|
5295
|
-
*
|
|
5296
|
-
* Use this to call the {@link https://docs.adyen.com/api-explorer/#/Recurring/v49/post/disable /disable endpoint}
|
|
5297
|
-
* Call resolve() if the removal was successful, or call reject() if there was an error
|
|
5298
|
-
* @defaultValue false
|
|
5111
|
+
* The remaining amount to complete the order.
|
|
5299
5112
|
*/
|
|
5300
|
-
|
|
5113
|
+
remainingAmount?: PaymentAmount;
|
|
5301
5114
|
}
|
|
5302
|
-
interface
|
|
5303
|
-
|
|
5115
|
+
interface OrderStatus {
|
|
5116
|
+
expiresAt: string;
|
|
5117
|
+
paymentMethods: {
|
|
5118
|
+
amount?: PaymentAmount;
|
|
5119
|
+
lastFour: string;
|
|
5120
|
+
type: string;
|
|
5121
|
+
}[];
|
|
5122
|
+
pspReference: string;
|
|
5123
|
+
reference: string;
|
|
5124
|
+
remainingAmount: PaymentAmount;
|
|
5304
5125
|
}
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5126
|
+
/**
|
|
5127
|
+
* {@link https://docs.adyen.com/api-explorer/#/PaymentSetupAndVerificationService/v52/post/payments__reqParam_browserInfo API Explorer /payments browserInfo}
|
|
5128
|
+
*/
|
|
5129
|
+
interface BrowserInfo {
|
|
5130
|
+
acceptHeader: string;
|
|
5131
|
+
colorDepth: number;
|
|
5132
|
+
language: string;
|
|
5133
|
+
javaEnabled: boolean;
|
|
5134
|
+
screenHeight: number;
|
|
5135
|
+
screenWidth: number;
|
|
5136
|
+
userAgent: string;
|
|
5137
|
+
timeZoneOffset: number;
|
|
5310
5138
|
}
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5139
|
+
/**
|
|
5140
|
+
* Visibility options for a fieldset
|
|
5141
|
+
*/
|
|
5142
|
+
type FieldsetVisibility = 'editable' | 'hidden' | 'readOnly';
|
|
5143
|
+
interface PaymentMethodData {
|
|
5144
|
+
paymentMethod: {
|
|
5145
|
+
[key: string]: any;
|
|
5146
|
+
checkoutAttemptId?: string;
|
|
5147
|
+
};
|
|
5148
|
+
browserInfo?: {
|
|
5149
|
+
acceptHeader: string;
|
|
5150
|
+
colorDepth: number;
|
|
5151
|
+
javaEnabled: boolean;
|
|
5152
|
+
language: string;
|
|
5153
|
+
screenHeight: number;
|
|
5154
|
+
screenWidth: number;
|
|
5155
|
+
timeZoneOffset: number;
|
|
5156
|
+
userAgent: string;
|
|
5157
|
+
};
|
|
5314
5158
|
}
|
|
5315
|
-
|
|
5316
|
-
|
|
5159
|
+
/**
|
|
5160
|
+
* Represents the payment data that will be submitted to the /payments endpoint
|
|
5161
|
+
*/
|
|
5162
|
+
interface PaymentData extends PaymentMethodData {
|
|
5163
|
+
riskData?: {
|
|
5164
|
+
clientData: string;
|
|
5165
|
+
};
|
|
5166
|
+
order?: {
|
|
5167
|
+
orderData: string;
|
|
5168
|
+
pspReference: string;
|
|
5169
|
+
};
|
|
5170
|
+
clientStateDataIndicator: boolean;
|
|
5171
|
+
sessionData?: string;
|
|
5172
|
+
storePaymentMethod?: boolean;
|
|
5317
5173
|
}
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5174
|
+
type ResultCode = 'AuthenticationFinished' | 'AuthenticationNotRequired' | 'Authorised' | 'Cancelled' | 'ChallengeShopper' | 'Error' | 'IdentifyShopper' | 'PartiallyAuthorised' | 'Pending' | 'PresentToShopper' | 'Received' | 'RedirectShopper' | 'Refused';
|
|
5175
|
+
type SessionsResponse = {
|
|
5176
|
+
sessionData: string;
|
|
5177
|
+
sessionResult: string;
|
|
5178
|
+
resultCode: ResultCode;
|
|
5179
|
+
};
|
|
5180
|
+
interface PaymentMethodsRequestData {
|
|
5181
|
+
order?: Order;
|
|
5182
|
+
locale?: string;
|
|
5183
|
+
countryCode?: string;
|
|
5327
5184
|
}
|
|
5328
|
-
interface
|
|
5185
|
+
interface CheckoutAdvancedFlowResponse {
|
|
5186
|
+
resultCode: ResultCode;
|
|
5187
|
+
action?: PaymentAction;
|
|
5188
|
+
order?: Order;
|
|
5189
|
+
donationToken?: string;
|
|
5190
|
+
error?: {
|
|
5191
|
+
googlePayError?: google.payments.api.PaymentDataError | string;
|
|
5192
|
+
applePayError?: ApplePayJS.ApplePayError[] | ApplePayJS.ApplePayError;
|
|
5193
|
+
};
|
|
5194
|
+
}
|
|
5195
|
+
interface PaymentResponseData {
|
|
5196
|
+
resultCode: ResultCode;
|
|
5197
|
+
type?: string;
|
|
5198
|
+
action?: PaymentAction;
|
|
5199
|
+
sessionData?: string;
|
|
5200
|
+
sessionResult?: string;
|
|
5201
|
+
order?: Order;
|
|
5202
|
+
donationToken?: string;
|
|
5203
|
+
}
|
|
5204
|
+
type RawPaymentResponse = PaymentResponseData & CheckoutAdvancedFlowResponse & {
|
|
5205
|
+
[key: string]: any;
|
|
5206
|
+
};
|
|
5207
|
+
type ActionDescriptionType = 'qr-code-loaded' | 'polling-started' | 'fingerprint-iframe-loaded' | string;
|
|
5208
|
+
interface ActionHandledReturnObject {
|
|
5209
|
+
componentType: string;
|
|
5210
|
+
actionDescription: ActionDescriptionType;
|
|
5211
|
+
}
|
|
5212
|
+
type AdditionalDetailsStateData = {
|
|
5213
|
+
data: {
|
|
5214
|
+
details: {
|
|
5215
|
+
redirectResult?: string;
|
|
5216
|
+
threeDSResult?: string;
|
|
5217
|
+
[key: string]: any;
|
|
5218
|
+
};
|
|
5219
|
+
paymentData?: string;
|
|
5220
|
+
sessionData?: string;
|
|
5221
|
+
};
|
|
5222
|
+
};
|
|
5223
|
+
interface AnalyticsModule {
|
|
5224
|
+
setUp: (a: AnalyticsInitialEvent) => Promise<any>;
|
|
5225
|
+
getCheckoutAttemptId: () => string;
|
|
5226
|
+
getEventsQueue: () => EventsQueueModule;
|
|
5227
|
+
createAnalyticsEvent: (a: CreateAnalyticsEventObject) => AnalyticsObject;
|
|
5228
|
+
getEnabled: () => boolean;
|
|
5229
|
+
sendAnalytics: (component: string, analyticsObj: SendAnalyticsObject) => void;
|
|
5230
|
+
}
|
|
5231
|
+
type ComponentFocusObject = {
|
|
5232
|
+
fieldType: string;
|
|
5233
|
+
event: Event | CbObjOnFocus;
|
|
5234
|
+
};
|
|
5235
|
+
type DecodeObject = {
|
|
5236
|
+
success: boolean;
|
|
5237
|
+
error?: string;
|
|
5238
|
+
data?: string;
|
|
5239
|
+
};
|
|
5240
|
+
|
|
5241
|
+
interface InstallmentOptions {
|
|
5242
|
+
[key: string]: {
|
|
5243
|
+
values: number[];
|
|
5244
|
+
plans?: string[];
|
|
5245
|
+
preselectedValue?: number;
|
|
5246
|
+
};
|
|
5247
|
+
}
|
|
5248
|
+
|
|
5249
|
+
type CheckoutSession = {
|
|
5250
|
+
id: string;
|
|
5251
|
+
sessionData: string;
|
|
5252
|
+
shopperLocale?: string;
|
|
5253
|
+
shopperEmail?: string;
|
|
5254
|
+
telephoneNumber?: string;
|
|
5255
|
+
};
|
|
5256
|
+
type SessionConfiguration = {
|
|
5257
|
+
installmentOptions?: InstallmentOptions;
|
|
5258
|
+
enableStoreDetails?: boolean;
|
|
5259
|
+
};
|
|
5260
|
+
type CheckoutSessionSetupResponse = {
|
|
5261
|
+
id: string;
|
|
5262
|
+
sessionData: string;
|
|
5263
|
+
countryCode?: string;
|
|
5264
|
+
amount: PaymentAmount;
|
|
5265
|
+
expiresAt: string;
|
|
5266
|
+
paymentMethods: any;
|
|
5267
|
+
returnUrl: string;
|
|
5268
|
+
configuration: SessionConfiguration;
|
|
5329
5269
|
/**
|
|
5330
|
-
*
|
|
5331
|
-
*
|
|
5332
|
-
* @internal
|
|
5333
|
-
* @param type - animation type
|
|
5270
|
+
* 'shopperLocale' set during session creation.
|
|
5271
|
+
* @defaultValue en-US
|
|
5334
5272
|
*/
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5273
|
+
shopperLocale: string;
|
|
5274
|
+
};
|
|
5275
|
+
type CheckoutSessionPaymentResponse = {
|
|
5276
|
+
sessionData: string;
|
|
5277
|
+
sessionResult: string;
|
|
5278
|
+
status?: string;
|
|
5279
|
+
resultCode: ResultCode;
|
|
5280
|
+
action?: PaymentAction;
|
|
5281
|
+
};
|
|
5282
|
+
type CheckoutSessionDetailsResponse = {
|
|
5283
|
+
sessionData: string;
|
|
5284
|
+
sessionResult: string;
|
|
5285
|
+
resultCode: ResultCode;
|
|
5286
|
+
status?: string;
|
|
5287
|
+
action?: PaymentAction;
|
|
5288
|
+
};
|
|
5289
|
+
type CheckoutSessionBalanceResponse = {
|
|
5290
|
+
sessionData: string;
|
|
5291
|
+
balance?: PaymentAmount;
|
|
5292
|
+
transactionLimit?: PaymentAmount;
|
|
5293
|
+
};
|
|
5294
|
+
type CheckoutSessionOrdersResponse = {
|
|
5295
|
+
sessionData: string;
|
|
5296
|
+
orderData: string;
|
|
5297
|
+
pspReference: string;
|
|
5298
|
+
};
|
|
5339
5299
|
|
|
5340
5300
|
declare class Session {
|
|
5341
5301
|
private readonly session;
|
|
@@ -5434,6 +5394,7 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5434
5394
|
icon: string;
|
|
5435
5395
|
installmentOptions: InstallmentOptions;
|
|
5436
5396
|
enableStoreDetails: boolean;
|
|
5397
|
+
showStoreDetailsCheckbox: boolean;
|
|
5437
5398
|
/**
|
|
5438
5399
|
* Click to Pay configuration
|
|
5439
5400
|
* - If email is set explicitly in the configuration, then it can override the one used in the session creation
|
|
@@ -5473,7 +5434,10 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5473
5434
|
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
5474
5435
|
lastFour?: string;
|
|
5475
5436
|
billingAddressMode?: "none" | "full" | "partial";
|
|
5476
|
-
billingAddressRequiredFields?: string[];
|
|
5437
|
+
billingAddressRequiredFields?: string[]; /**
|
|
5438
|
+
* Click to Pay configuration
|
|
5439
|
+
* - If email is set explicitly in the configuration, then it can override the one used in the session creation
|
|
5440
|
+
*/
|
|
5477
5441
|
billingAddressAllowedCountries?: string[];
|
|
5478
5442
|
id?: string;
|
|
5479
5443
|
showInstallmentAmounts?: boolean;
|
|
@@ -5517,19 +5481,14 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5517
5481
|
resultCode: ResultCode;
|
|
5518
5482
|
}, element?: UIElement<UIElementProps>) => void;
|
|
5519
5483
|
onPaymentCompleted?: (data: SessionsResponse | {
|
|
5520
|
-
resultCode: ResultCode;
|
|
5484
|
+
resultCode: ResultCode; /** props.brand will be specified in the case of a StoredCard or a Bancontact component, for a regular Card we default it to 'card' */
|
|
5521
5485
|
donationToken?: string;
|
|
5522
5486
|
}, element?: UIElement<UIElementProps>) => void;
|
|
5523
5487
|
onOrderUpdated?: (data: {
|
|
5524
5488
|
order: Order;
|
|
5525
5489
|
}) => void;
|
|
5526
5490
|
onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
|
|
5527
|
-
resolve: (response: PaymentMethodsResponse) => void;
|
|
5528
|
-
* this.state.selectedBrandValue will be set when:
|
|
5529
|
-
* - /binLookup detects a single brand,
|
|
5530
|
-
* - when /binLookup detects a dual-branded card and the shopper makes a brand selection
|
|
5531
|
-
* - or, in the case of a storedCard
|
|
5532
|
-
*/
|
|
5491
|
+
resolve: (response: PaymentMethodsResponse) => void;
|
|
5533
5492
|
reject: () => void;
|
|
5534
5493
|
}) => void;
|
|
5535
5494
|
onChange?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
@@ -5541,7 +5500,7 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5541
5500
|
isInstantPayment?: boolean;
|
|
5542
5501
|
isStoredPaymentMethod?: boolean;
|
|
5543
5502
|
oneClick?: boolean;
|
|
5544
|
-
statusType?: "
|
|
5503
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
5545
5504
|
name?: string;
|
|
5546
5505
|
amount?: PaymentAmount;
|
|
5547
5506
|
secondaryAmount?: PaymentAmountExtended;
|
|
@@ -5570,8 +5529,13 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5570
5529
|
private onConfigSuccess;
|
|
5571
5530
|
private onFocus;
|
|
5572
5531
|
private onBlur;
|
|
5573
|
-
private
|
|
5532
|
+
private onValidationErrorAnalytics;
|
|
5574
5533
|
onBinValue: (callbackObj: CbObjOnBinValue) => void;
|
|
5534
|
+
get storePaymentMethodPayload(): {
|
|
5535
|
+
storePaymentMethod?: undefined;
|
|
5536
|
+
} | {
|
|
5537
|
+
storePaymentMethod: boolean;
|
|
5538
|
+
};
|
|
5575
5539
|
get isValid(): boolean;
|
|
5576
5540
|
get icon(): string;
|
|
5577
5541
|
get brands(): {
|
|
@@ -5792,7 +5756,6 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
5792
5756
|
};
|
|
5793
5757
|
onChange?: (state: any, element?: UIElement<UIElementProps>) => void;
|
|
5794
5758
|
payButton?: any;
|
|
5795
|
-
showPayButton?: boolean;
|
|
5796
5759
|
visibility?: OpenInvoiceVisibility;
|
|
5797
5760
|
personalDetailsRequiredFields: string[];
|
|
5798
5761
|
deliveryAddressRequiredFields?: string[];
|
|
@@ -5847,12 +5810,13 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
5847
5810
|
isStoredPaymentMethod?: boolean;
|
|
5848
5811
|
oneClick?: boolean;
|
|
5849
5812
|
storedPaymentMethodId?: string;
|
|
5850
|
-
statusType?: "
|
|
5813
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
5851
5814
|
type?: string;
|
|
5852
5815
|
name?: string;
|
|
5853
5816
|
icon?: string;
|
|
5854
5817
|
amount?: PaymentAmount;
|
|
5855
5818
|
secondaryAmount?: PaymentAmountExtended;
|
|
5819
|
+
showPayButton?: boolean;
|
|
5856
5820
|
loadingContext?: string;
|
|
5857
5821
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
5858
5822
|
clientKey?: string;
|
|
@@ -5934,7 +5898,7 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
5934
5898
|
isStoredPaymentMethod?: boolean;
|
|
5935
5899
|
oneClick?: boolean;
|
|
5936
5900
|
storedPaymentMethodId?: string;
|
|
5937
|
-
statusType?: "
|
|
5901
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
5938
5902
|
name?: string;
|
|
5939
5903
|
icon?: string;
|
|
5940
5904
|
amount?: PaymentAmount;
|
|
@@ -6040,7 +6004,7 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6040
6004
|
isStoredPaymentMethod?: boolean;
|
|
6041
6005
|
oneClick?: boolean;
|
|
6042
6006
|
storedPaymentMethodId?: string;
|
|
6043
|
-
statusType?: "
|
|
6007
|
+
statusType?: "redirect" | "loading" | "custom";
|
|
6044
6008
|
type: string;
|
|
6045
6009
|
name?: string;
|
|
6046
6010
|
icon?: string;
|
|
@@ -6260,4 +6224,4 @@ declare namespace AdyenCheckout {
|
|
|
6260
6224
|
var setBundleType: (type: string) => void;
|
|
6261
6225
|
}
|
|
6262
6226
|
|
|
6263
|
-
export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type AdditionalDetailsStateData, AddressElement as Address, type AddressData, type AddressField, AdyenCheckout, type AdyenEnvironment, 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, 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 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 CoreConfiguration, type Currency, CustomCard, type CustomCardConfiguration, 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 ExtendedMerchantInfo, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, type FieldsetVisibility, type FingerPrintData, type FundingSource, type GiftCardConfiguration, type GiftCardElementData, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, type GooglePayConfiguration, type
|
|
6227
|
+
export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type AdditionalDetailsStateData, AddressElement as Address, type AddressData, type AddressField, AdyenCheckout, type AdyenEnvironment, 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, 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 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 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 ExtendedMerchantInfo, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, type FieldsetVisibility, type FingerPrintData, type FundingSource, type GiftCardConfiguration, type GiftCardElementData, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, type GooglePayConfiguration, type GooglePaymentDataRequest, type ICore, type IDropin, IdealElement as Ideal, 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, 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 OxxoElementData, type OxxoVoucherResultProps, PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, type PayPalConfiguration, type PayloadJSON, type PaymentAction, type PaymentActionsType, type PaymentAmount, type PaymentAmountExtended, type PaymentData, 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 SupportedLocale, SwishElement as Swish, ThreeDS2Challenge, type ThreeDS2ChallengeConfiguration, ThreeDS2DeviceFingerprint, type ThreeDS2DeviceFingerprintConfiguration, type ThreeDS2FingerprintResponse, type ThreeDS2FlowObject, type ThreeDS2Token, TrustlyElement as Trustly, TwintElement as Twint, 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, _default$p as ar, type balanceCheckResponseType, index_d as components, _default$o as cs_CZ, _default$n as da_DK, _default$m as de_DE, _default$l as el_GR, _default$k as en_US, _default$j as es_ES, _default$i as fi_FI, _default$h as fr_FR, _default$g as hr_HR, _default$f as hu_HU, _default$e as it_IT, _default$d as ja_JP, _default$c as ko_KR, _default$b as nl_NL, _default$a as no_NO, type onBalanceCheckCallbackType, type onOrderCancelData, type onOrderCancelType, type onOrderRequestCallbackType, _default$9 as pl_PL, _default$8 as pt_BR, _default$7 as pt_PT, _default$6 as ro_RO, _default$5 as ru_RU, _default$4 as sk_SK, _default$3 as sl_SI, _default$2 as sv_SE, _default$1 as zh_CN, _default as zh_TW };
|