@adyen/adyen-web 6.27.1 → 6.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/adyen.css +10 -8
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +1344 -1169
- package/dist/es/adyen.css +10 -8
- package/dist/es/adyen.css.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/Installments/Installments.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/Installments/Installments.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/types.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 +1 -1
- package/dist/es/components/Econtext/components/EcontextInput/EcontextInput.js.map +1 -1
- package/dist/es/components/Econtext/components/EcontextVoucherResult/EcontextVoucherResult.js +1 -1
- package/dist/es/components/Econtext/components/EcontextVoucherResult/EcontextVoucherResult.js.map +1 -1
- package/dist/es/components/Iris/Iris.js +2 -0
- package/dist/es/components/Iris/Iris.js.map +1 -0
- package/dist/es/components/Iris/components/IrisComponent.js +2 -0
- package/dist/es/components/Iris/components/IrisComponent.js.map +1 -0
- package/dist/es/components/Iris/components/IrisComponent.module.scss.js +2 -0
- package/dist/es/components/Iris/components/IrisComponent.module.scss.js.map +1 -0
- package/dist/es/components/Iris/components/IrisGenerateQRCode.js +2 -0
- package/dist/es/components/Iris/components/IrisGenerateQRCode.js.map +1 -0
- package/dist/es/components/Iris/components/IrisGenerateQRCode.module.scss.js +2 -0
- package/dist/es/components/Iris/components/IrisGenerateQRCode.module.scss.js.map +1 -0
- package/dist/es/components/Iris/components/IrisQrCodeInstructions.js +2 -0
- package/dist/es/components/Iris/components/IrisQrCodeInstructions.js.map +1 -0
- package/dist/es/components/Iris/constants.js +2 -0
- package/dist/es/components/Iris/constants.js.map +1 -0
- package/dist/es/components/Iris/types.js +2 -0
- package/dist/es/components/Iris/types.js.map +1 -0
- package/dist/es/components/Iris/utils.js +2 -0
- package/dist/es/components/Iris/utils.js.map +1 -0
- package/dist/es/components/PayTo/components/PayToComponent.js +1 -1
- package/dist/es/components/PayTo/components/PayToComponent.js.map +1 -1
- package/dist/es/components/ThreeDS2/ThreeDS2Challenge.js.map +1 -1
- package/dist/es/components/ThreeDS2/ThreeDS2DeviceFingerprint.js.map +1 -1
- package/dist/es/components/ThreeDS2/components/utils.js +1 -1
- package/dist/es/components/ThreeDS2/components/utils.js.map +1 -1
- package/dist/es/components/UPI/components/UPIComponent/UPIComponent.js +1 -1
- package/dist/es/components/UPI/components/UPIComponent/UPIComponent.js.map +1 -1
- package/dist/es/components/components-name-map.js +1 -1
- package/dist/es/components/components-name-map.js.map +1 -1
- package/dist/es/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
- package/dist/es/components/index.js +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/constants.js +1 -1
- package/dist/es/components/internal/Address/constants.js.map +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es/components/internal/Button/Button.js +1 -1
- package/dist/es/components/internal/Button/Button.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.js +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.js.map +1 -1
- package/dist/es/components/internal/FormFields/Select/Select.js +1 -1
- package/dist/es/components/internal/FormFields/Select/Select.js.map +1 -1
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +1 -1
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js.map +1 -1
- package/dist/es/components/internal/PersonalDetails/PersonalDetails.js +1 -1
- package/dist/es/components/internal/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es/components/internal/QRLoader/QRLoader.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/SegmentedControl/SegmentedControlRegion.js +2 -0
- package/dist/es/components/internal/SegmentedControl/SegmentedControlRegion.js.map +1 -0
- package/dist/es/components/internal/Voucher/Voucher.js +1 -1
- package/dist/es/components/internal/Voucher/Voucher.js.map +1 -1
- package/dist/es/components/internal/Voucher/utils.js.map +1 -1
- package/dist/es/components/tx-variants.js +1 -1
- package/dist/es/components/tx-variants.js.map +1 -1
- package/dist/es/core/Analytics/events/AnalyticsInfoEvent.js +1 -1
- package/dist/es/core/Analytics/events/AnalyticsInfoEvent.js.map +1 -1
- package/dist/es/core/ProcessResponse/PaymentAction/actionTypes.js.map +1 -1
- package/dist/es/core/ProcessResponse/PaymentMethods/PaymentMethods.js +1 -1
- package/dist/es/core/ProcessResponse/PaymentMethods/PaymentMethods.js.map +1 -1
- package/dist/es/core/ProcessResponse/PaymentMethods/utils.js +1 -1
- package/dist/es/core/ProcessResponse/PaymentMethods/utils.js.map +1 -1
- package/dist/es/core/config.js +1 -1
- package/dist/es/index.d.ts +1344 -1169
- package/dist/es/index.js +1 -1
- package/dist/es/language/Language.js.map +1 -1
- package/dist/es/utils/createSdkData.js +2 -0
- package/dist/es/utils/createSdkData.js.map +1 -0
- package/dist/es-legacy/adyen.css +10 -8
- package/dist/es-legacy/adyen.css.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/utils/payment-request.js +1 -1
- package/dist/es-legacy/components/ApplePay/utils/payment-request.js.map +1 -1
- package/dist/es-legacy/components/BankTransfer/components/BankTransferResult/BankTransferVoucher.js +1 -1
- package/dist/es-legacy/components/BankTransfer/components/BankTransferResult/BankTransferVoucher.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/BrandIcon.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/BrandIcon.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/Installments/Installments.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/Installments/Installments.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/types.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/useSRPanelForCardInputErrors.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/utils.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/utils.js.map +1 -1
- package/dist/es-legacy/components/Card/components/ClickToPayWrapper.js +1 -1
- package/dist/es-legacy/components/Card/components/ClickToPayWrapper.js.map +1 -1
- package/dist/es-legacy/components/CustomCard/CustomCard.js +1 -1
- package/dist/es-legacy/components/CustomCard/CustomCard.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/Dropin.js +1 -1
- package/dist/es-legacy/components/Dropin/Dropin.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodItem/PaymentMethodItem.js +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodItem/PaymentMethodItem.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodList.js +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodList.js.map +1 -1
- package/dist/es-legacy/components/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 +1 -1
- package/dist/es-legacy/components/Econtext/components/EcontextInput/EcontextInput.js.map +1 -1
- package/dist/es-legacy/components/Econtext/components/EcontextVoucherResult/EcontextVoucherResult.js +1 -1
- package/dist/es-legacy/components/Econtext/components/EcontextVoucherResult/EcontextVoucherResult.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/requests.js +1 -1
- package/dist/es-legacy/components/GooglePay/requests.js.map +1 -1
- package/dist/es-legacy/components/Iris/Iris.js +2 -0
- package/dist/es-legacy/components/Iris/Iris.js.map +1 -0
- package/dist/es-legacy/components/Iris/components/IrisComponent.js +2 -0
- package/dist/es-legacy/components/Iris/components/IrisComponent.js.map +1 -0
- package/dist/es-legacy/components/Iris/components/IrisComponent.module.scss.js +2 -0
- package/dist/es-legacy/components/Iris/components/IrisComponent.module.scss.js.map +1 -0
- package/dist/es-legacy/components/Iris/components/IrisGenerateQRCode.js +2 -0
- package/dist/es-legacy/components/Iris/components/IrisGenerateQRCode.js.map +1 -0
- package/dist/es-legacy/components/Iris/components/IrisGenerateQRCode.module.scss.js +2 -0
- package/dist/es-legacy/components/Iris/components/IrisGenerateQRCode.module.scss.js.map +1 -0
- package/dist/es-legacy/components/Iris/components/IrisQrCodeInstructions.js +2 -0
- package/dist/es-legacy/components/Iris/components/IrisQrCodeInstructions.js.map +1 -0
- package/dist/es-legacy/components/Iris/constants.js +2 -0
- package/dist/es-legacy/components/Iris/constants.js.map +1 -0
- package/dist/es-legacy/components/Iris/types.js +2 -0
- package/dist/es-legacy/components/Iris/types.js.map +1 -0
- package/dist/es-legacy/components/Iris/utils.js +2 -0
- package/dist/es-legacy/components/Iris/utils.js.map +1 -0
- package/dist/es-legacy/components/Klarna/components/KlarnaContainer/KlarnaContainer.js +1 -1
- package/dist/es-legacy/components/Klarna/components/KlarnaContainer/KlarnaContainer.js.map +1 -1
- package/dist/es-legacy/components/Klarna/components/KlarnaWidget/KlarnaWidget.js +1 -1
- package/dist/es-legacy/components/Klarna/components/KlarnaWidget/KlarnaWidget.js.map +1 -1
- package/dist/es-legacy/components/PayByBankPix/PayByBankPix.js +1 -1
- package/dist/es-legacy/components/PayByBankPix/PayByBankPix.js.map +1 -1
- package/dist/es-legacy/components/PayPal/Paypal.js +1 -1
- package/dist/es-legacy/components/PayPal/Paypal.js.map +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalButtons.js +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalButtons.js.map +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalComponent.js +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalComponent.js.map +1 -1
- package/dist/es-legacy/components/PayTo/components/PayToComponent.js +1 -1
- package/dist/es-legacy/components/PayTo/components/PayToComponent.js.map +1 -1
- package/dist/es-legacy/components/PreAuthorizedDebitCanada/PreAuthorizedDebitCanada.js +1 -1
- package/dist/es-legacy/components/PreAuthorizedDebitCanada/PreAuthorizedDebitCanada.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/ThreeDS2Challenge.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/ThreeDS2DeviceFingerprint.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/callSubmit3DS2Fingerprint.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/callSubmit3DS2Fingerprint.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/utils.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/utils.js.map +1 -1
- package/dist/es-legacy/components/UPI/components/UPIComponent/UPIComponent.js +1 -1
- package/dist/es-legacy/components/UPI/components/UPIComponent/UPIComponent.js.map +1 -1
- package/dist/es-legacy/components/components-name-map.js +1 -1
- package/dist/es-legacy/components/components-name-map.js.map +1 -1
- package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
- package/dist/es-legacy/components/index.js +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/constants.js +1 -1
- package/dist/es-legacy/components/internal/Address/constants.js.map +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es-legacy/components/internal/Button/Button.js +1 -1
- package/dist/es-legacy/components/internal/Button/Button.js.map +1 -1
- package/dist/es-legacy/components/internal/Button/CopyButton.js +1 -1
- package/dist/es-legacy/components/internal/Button/CopyButton.js.map +1 -1
- package/dist/es-legacy/components/internal/Button/CopyIconButton.js +1 -1
- package/dist/es-legacy/components/internal/Button/CopyIconButton.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Checkbox/Checkbox.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/Checkbox/Checkbox.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputBase.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputBase.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/Select.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/Select.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectButton.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectButton.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectList.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectList.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectListItem.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectListItem.js.map +1 -1
- package/dist/es-legacy/components/internal/IssuerList/IssuerList.js +1 -1
- package/dist/es-legacy/components/internal/IssuerList/IssuerList.js.map +1 -1
- package/dist/es-legacy/components/internal/Modal/Modal.js +1 -1
- package/dist/es-legacy/components/internal/Modal/Modal.js.map +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js.map +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/useSRPanelForOpenInvoiceErrors.js +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/useSRPanelForOpenInvoiceErrors.js.map +1 -1
- package/dist/es-legacy/components/internal/PayButton/PayButton.js +1 -1
- package/dist/es-legacy/components/internal/PayButton/PayButton.js.map +1 -1
- package/dist/es-legacy/components/internal/PersonalDetails/PersonalDetails.js +1 -1
- package/dist/es-legacy/components/internal/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/es-legacy/components/internal/PhoneInput/PhoneInputFields.js +1 -1
- package/dist/es-legacy/components/internal/PhoneInput/PhoneInputFields.js.map +1 -1
- package/dist/es-legacy/components/internal/PhoneInput/PhoneInputForm.js +1 -1
- package/dist/es-legacy/components/internal/PhoneInput/PhoneInputForm.js.map +1 -1
- package/dist/es-legacy/components/internal/QRLoader/QRLoader.js.map +1 -1
- package/dist/es-legacy/components/internal/QRLoader/QRLoaderDetailsProvider.js +1 -1
- package/dist/es-legacy/components/internal/QRLoader/QRLoaderDetailsProvider.js.map +1 -1
- package/dist/es-legacy/components/internal/RedirectButton/RedirectButton.js +1 -1
- package/dist/es-legacy/components/internal/RedirectButton/RedirectButton.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleBrandFromBinLookup.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleBrandFromBinLookup.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleConfig.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleConfig.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleIOSTouchEvents.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleIOSTouchEvents.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/utils/processPlaceholders.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/SegmentedControl/SegmentedControlRegion.js +2 -0
- package/dist/es-legacy/components/internal/SegmentedControl/SegmentedControlRegion.js.map +1 -0
- package/dist/es-legacy/components/internal/StoreDetails/StoreDetails.js +1 -1
- package/dist/es-legacy/components/internal/StoreDetails/StoreDetails.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/Voucher/Voucher.js +1 -1
- package/dist/es-legacy/components/internal/Voucher/Voucher.js.map +1 -1
- package/dist/es-legacy/components/internal/Voucher/utils.js.map +1 -1
- package/dist/es-legacy/components/tx-variants.js +1 -1
- package/dist/es-legacy/components/tx-variants.js.map +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsInfoEvent.js +1 -1
- package/dist/es-legacy/core/Analytics/events/AnalyticsInfoEvent.js.map +1 -1
- package/dist/es-legacy/core/Analytics/utils.js +1 -1
- package/dist/es-legacy/core/Analytics/utils.js.map +1 -1
- package/dist/es-legacy/core/Context/Resources.js +1 -1
- package/dist/es-legacy/core/Context/Resources.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentAction/actionTypes.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentMethods/PaymentMethods.js +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentMethods/PaymentMethods.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentMethods/utils.js +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentMethods/utils.js.map +1 -1
- package/dist/es-legacy/core/config.js +1 -1
- package/dist/es-legacy/core/core.js +1 -1
- package/dist/es-legacy/core/core.js.map +1 -1
- package/dist/es-legacy/hooks/usePaymentStatusTimer/usePaymentStatusTimer.js +1 -1
- package/dist/es-legacy/hooks/usePaymentStatusTimer/usePaymentStatusTimer.js.map +1 -1
- package/dist/es-legacy/index.js +1 -1
- package/dist/es-legacy/language/Language.js.map +1 -1
- package/dist/es-legacy/utils/Validator/Validator.js.map +1 -1
- package/dist/es-legacy/utils/commonUtils.js.map +1 -1
- package/dist/es-legacy/utils/createSdkData.js +2 -0
- package/dist/es-legacy/utils/createSdkData.js.map +1 -0
- package/dist/es-legacy/utils/useForm/reducer.js +1 -1
- package/dist/es-legacy/utils/useForm/reducer.js.map +1 -1
- package/package.json +22 -22
- package/styles/adyen.css +10 -8
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="applepayjs" />
|
|
2
2
|
/// <reference types="googlepay" />
|
|
3
3
|
import * as preact from 'preact';
|
|
4
|
-
import { h,
|
|
4
|
+
import { h, Ref, FunctionComponent, ComponentChild, Component } from 'preact';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Holds the result of a validation
|
|
@@ -200,9 +200,9 @@ declare class Language {
|
|
|
200
200
|
/**
|
|
201
201
|
* Returns a localized string for a date
|
|
202
202
|
* @param date - Date to be localized
|
|
203
|
-
* @param options - Options for {@link
|
|
203
|
+
* @param options - Options for {@link Intl.DateTimeFormatOptions}
|
|
204
204
|
*/
|
|
205
|
-
date(date: string, options?:
|
|
205
|
+
date(date: string, options?: Intl.DateTimeFormatOptions): string;
|
|
206
206
|
/**
|
|
207
207
|
* Returns a localized string for a date and time
|
|
208
208
|
* @param date - Date to be localized
|
|
@@ -494,368 +494,6 @@ type SetupSessionOptions = {
|
|
|
494
494
|
order?: Order;
|
|
495
495
|
};
|
|
496
496
|
|
|
497
|
-
interface RiskModuleOptions {
|
|
498
|
-
enabled: boolean;
|
|
499
|
-
onComplete?: (data: any) => void;
|
|
500
|
-
onError?: (error: any) => void;
|
|
501
|
-
node?: string;
|
|
502
|
-
}
|
|
503
|
-
interface RiskModuleProps extends BaseElementProps {
|
|
504
|
-
risk: RiskModuleOptions;
|
|
505
|
-
loadingContext: string;
|
|
506
|
-
}
|
|
507
|
-
declare class RiskElement extends BaseElement<RiskModuleProps> {
|
|
508
|
-
static type: string;
|
|
509
|
-
static defaultProps: {
|
|
510
|
-
risk: {
|
|
511
|
-
enabled: boolean;
|
|
512
|
-
onComplete: () => void;
|
|
513
|
-
onError: () => void;
|
|
514
|
-
node: string;
|
|
515
|
-
};
|
|
516
|
-
};
|
|
517
|
-
private nodeRiskContainer;
|
|
518
|
-
constructor(checkout: ICore, props?: any);
|
|
519
|
-
formatProps(props: any): any;
|
|
520
|
-
onComplete: (result: any) => void;
|
|
521
|
-
onError: (error: any) => void;
|
|
522
|
-
get isValid(): any;
|
|
523
|
-
get data(): any;
|
|
524
|
-
get enabled(): boolean;
|
|
525
|
-
cleanUp: () => void;
|
|
526
|
-
componentWillUnmount(): void;
|
|
527
|
-
render(): h.JSX.Element;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
interface DisclaimerMsgObject {
|
|
531
|
-
message: string;
|
|
532
|
-
linkText: string;
|
|
533
|
-
link: string;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
interface AnalyticsOptions {
|
|
537
|
-
/**
|
|
538
|
-
* Enable/Disable all analytics
|
|
539
|
-
*/
|
|
540
|
-
enabled?: boolean;
|
|
541
|
-
/**
|
|
542
|
-
* A wrapper to pass data needed when analytics is setup
|
|
543
|
-
*/
|
|
544
|
-
analyticsData?: {
|
|
545
|
-
/**
|
|
546
|
-
* Relates to PMs used within Plugins
|
|
547
|
-
* https://docs.adyen.com/development-resources/application-information/?tab=integrator_built_2#application-information-fields
|
|
548
|
-
* @internal
|
|
549
|
-
*/
|
|
550
|
-
applicationInfo?: ApplicationInfo;
|
|
551
|
-
/**
|
|
552
|
-
* Use a checkoutAttemptId from a previous page
|
|
553
|
-
*/
|
|
554
|
-
checkoutAttemptId?: string;
|
|
555
|
-
};
|
|
556
|
-
}
|
|
557
|
-
interface ApplicationInfo {
|
|
558
|
-
externalPlatform: {
|
|
559
|
-
name: string;
|
|
560
|
-
version: string;
|
|
561
|
-
integrator: string;
|
|
562
|
-
};
|
|
563
|
-
merchantApplication: {
|
|
564
|
-
name: string;
|
|
565
|
-
version: string;
|
|
566
|
-
};
|
|
567
|
-
merchantDevice?: {
|
|
568
|
-
os: string;
|
|
569
|
-
osVersion: string;
|
|
570
|
-
};
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
/**
|
|
574
|
-
* PayPal Fastlane Reference:
|
|
575
|
-
* https://developer.paypal.com/docs/checkout/fastlane/reference/#link-customizeyourintegration
|
|
576
|
-
*/
|
|
577
|
-
/**
|
|
578
|
-
* Fastlane object available in the window
|
|
579
|
-
*/
|
|
580
|
-
interface FastlaneWindowInstance {
|
|
581
|
-
identity: {
|
|
582
|
-
lookupCustomerByEmail: (email: string) => Promise<{
|
|
583
|
-
customerContextId: string;
|
|
584
|
-
}>;
|
|
585
|
-
triggerAuthenticationFlow: (customerContextId: string, options?: AuthenticationFlowOptions) => Promise<FastlaneAuthenticatedCustomerResult>;
|
|
586
|
-
getSession: () => Promise<{
|
|
587
|
-
sessionId: string;
|
|
588
|
-
}>;
|
|
589
|
-
};
|
|
590
|
-
profile: {
|
|
591
|
-
showShippingAddressSelector: () => Promise<FastlaneShippingAddressSelectorResult>;
|
|
592
|
-
};
|
|
593
|
-
setLocale: (locale: string) => void;
|
|
594
|
-
ConsentComponent: () => Promise<{
|
|
595
|
-
getRenderState: () => Promise<FastlaneConsentRenderState>;
|
|
596
|
-
}>;
|
|
597
|
-
FastlaneWatermarkComponent: (options: {
|
|
598
|
-
includeAdditionalInfo: boolean;
|
|
599
|
-
}) => Promise<{
|
|
600
|
-
render: (container: any) => null;
|
|
601
|
-
}>;
|
|
602
|
-
}
|
|
603
|
-
interface FastlaneConsentRenderState {
|
|
604
|
-
showConsent: boolean;
|
|
605
|
-
defaultToggleState?: boolean;
|
|
606
|
-
termsAndConditionsLink?: string;
|
|
607
|
-
termsAndConditionsVersion?: string;
|
|
608
|
-
privacyPolicyLink?: string;
|
|
609
|
-
}
|
|
610
|
-
interface FastlaneOptions {
|
|
611
|
-
intendedExperience: 'externalProcessorCustomConsent';
|
|
612
|
-
metadata?: {
|
|
613
|
-
geoLocOverride?: string;
|
|
614
|
-
};
|
|
615
|
-
}
|
|
616
|
-
interface AuthenticationFlowOptions {
|
|
617
|
-
}
|
|
618
|
-
interface CardPaymentSource {
|
|
619
|
-
brand: string;
|
|
620
|
-
expiry: string;
|
|
621
|
-
lastDigits: string;
|
|
622
|
-
name: string;
|
|
623
|
-
billingAddress: FastlaneAddress;
|
|
624
|
-
}
|
|
625
|
-
/**
|
|
626
|
-
* External types
|
|
627
|
-
*/
|
|
628
|
-
interface FastlaneShippingAddressSelectorResult {
|
|
629
|
-
selectionChanged: boolean;
|
|
630
|
-
selectedAddress: FastlaneShipping;
|
|
631
|
-
}
|
|
632
|
-
interface FastlaneAuthenticatedCustomerSucceeded {
|
|
633
|
-
authenticationState: 'succeeded';
|
|
634
|
-
profileData: FastlaneProfile;
|
|
635
|
-
}
|
|
636
|
-
interface FastlaneAuthenticatedCustomerFailed {
|
|
637
|
-
authenticationState: 'failed' | 'canceled' | 'not_found';
|
|
638
|
-
profileData: undefined;
|
|
639
|
-
}
|
|
640
|
-
type FastlaneAuthenticatedCustomerResult = FastlaneAuthenticatedCustomerSucceeded | FastlaneAuthenticatedCustomerFailed;
|
|
641
|
-
interface FastlaneAddress {
|
|
642
|
-
addressLine1: string;
|
|
643
|
-
addressLine2: string;
|
|
644
|
-
adminArea1: string;
|
|
645
|
-
adminArea2: string;
|
|
646
|
-
postalCode: string;
|
|
647
|
-
countryCode: string;
|
|
648
|
-
phone: {
|
|
649
|
-
nationalNumber: string;
|
|
650
|
-
countryCode: string;
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
interface FastlaneShipping {
|
|
654
|
-
name: {
|
|
655
|
-
firstName: string;
|
|
656
|
-
lastName: string;
|
|
657
|
-
fullName: string;
|
|
658
|
-
};
|
|
659
|
-
address: FastlaneAddress;
|
|
660
|
-
phoneNumber: {
|
|
661
|
-
nationalNumber: string;
|
|
662
|
-
countryCode: string;
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
interface FastlaneProfile {
|
|
666
|
-
name: {
|
|
667
|
-
firstName: string;
|
|
668
|
-
lastName: string;
|
|
669
|
-
fullName: string;
|
|
670
|
-
};
|
|
671
|
-
shippingAddress: FastlaneShipping;
|
|
672
|
-
card?: {
|
|
673
|
-
id: string;
|
|
674
|
-
paymentSource: {
|
|
675
|
-
card: CardPaymentSource;
|
|
676
|
-
};
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
type FastlaneComponentConfiguration = {
|
|
680
|
-
paymentType: 'fastlane';
|
|
681
|
-
configuration: {
|
|
682
|
-
fastlaneSessionId: string;
|
|
683
|
-
email: string;
|
|
684
|
-
tokenId: string;
|
|
685
|
-
lastFour: string;
|
|
686
|
-
brand: string;
|
|
687
|
-
};
|
|
688
|
-
};
|
|
689
|
-
type FastlaneCardComponentConfiguration = {
|
|
690
|
-
paymentType: 'card';
|
|
691
|
-
configuration: {
|
|
692
|
-
fastlaneConfiguration?: FastlaneSignupConfiguration;
|
|
693
|
-
};
|
|
694
|
-
};
|
|
695
|
-
type FastlaneSignupConfiguration = FastlaneConsentRenderState & {
|
|
696
|
-
fastlaneSessionId?: string;
|
|
697
|
-
telephoneNumber?: string;
|
|
698
|
-
};
|
|
699
|
-
type FastlanePaymentMethodConfiguration = FastlaneComponentConfiguration | FastlaneCardComponentConfiguration;
|
|
700
|
-
interface FastlaneSDKConfiguration {
|
|
701
|
-
clientKey: string;
|
|
702
|
-
environment: CoreConfiguration['environment'];
|
|
703
|
-
locale?: 'en-US' | 'es-US' | 'fr-RS' | 'zh-US';
|
|
704
|
-
analytics?: Pick<AnalyticsOptions, 'enabled'>;
|
|
705
|
-
/**
|
|
706
|
-
* Used to force the Fastlane SDK to return the consent details in case the shopper is not recognized.
|
|
707
|
-
* Use-case: Developer is testing the flow in another country outside US, which would not get consent details.
|
|
708
|
-
*
|
|
709
|
-
* This configuration should not be used for 'live' environment
|
|
710
|
-
*/
|
|
711
|
-
forceConsentDetails?: boolean;
|
|
712
|
-
}
|
|
713
|
-
interface FastlaneConfiguration extends UIElementProps {
|
|
714
|
-
/**
|
|
715
|
-
* Card token ID, used to process the payment
|
|
716
|
-
*/
|
|
717
|
-
tokenId: string;
|
|
718
|
-
/**
|
|
719
|
-
* Fastlane session ID
|
|
720
|
-
*/
|
|
721
|
-
fastlaneSessionId: string;
|
|
722
|
-
/**
|
|
723
|
-
* Initial last four digits displayed once the Component is rendered
|
|
724
|
-
*/
|
|
725
|
-
lastFour: string;
|
|
726
|
-
/**
|
|
727
|
-
* Initial brand displayed once the Component is rendered
|
|
728
|
-
*/
|
|
729
|
-
brand: string;
|
|
730
|
-
/**
|
|
731
|
-
* Shopper's email (it will be used in the future to re-authenticate using Fastlane SDK within the Component)
|
|
732
|
-
*/
|
|
733
|
-
email: string;
|
|
734
|
-
/**
|
|
735
|
-
* Used internally by Drop-in. Displays the brand images inside the Drop-in payment method header
|
|
736
|
-
* @internal
|
|
737
|
-
*/
|
|
738
|
-
keepBrandsVisible?: boolean;
|
|
739
|
-
/**
|
|
740
|
-
* Property returned by the backend. Contains the list of brands supported by Fastlane component
|
|
741
|
-
* @internal
|
|
742
|
-
*/
|
|
743
|
-
brands?: string[];
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
declare enum AnalyticsEventCategory {
|
|
747
|
-
info = "info",
|
|
748
|
-
error = "error",
|
|
749
|
-
log = "log"
|
|
750
|
-
}
|
|
751
|
-
declare abstract class AbstractAnalyticsEvent {
|
|
752
|
-
private readonly timestamp;
|
|
753
|
-
private readonly id;
|
|
754
|
-
/**
|
|
755
|
-
* Component tx variant or identifier
|
|
756
|
-
* @private
|
|
757
|
-
*/
|
|
758
|
-
private readonly component;
|
|
759
|
-
abstract getEventCategory(): AnalyticsEventCategory;
|
|
760
|
-
protected constructor(component: string);
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
interface IAnalytics {
|
|
764
|
-
setUp({ sessionId, checkoutStage, locale }: {
|
|
765
|
-
sessionId?: string;
|
|
766
|
-
checkoutStage?: 'precheckout' | 'checkout';
|
|
767
|
-
locale?: string;
|
|
768
|
-
}): Promise<void>;
|
|
769
|
-
sendFlavor(flavor: 'dropin' | 'components'): Promise<void>;
|
|
770
|
-
sendAnalytics(event: AbstractAnalyticsEvent): void;
|
|
771
|
-
flush(): void;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
interface SFError {
|
|
775
|
-
isValid?: boolean;
|
|
776
|
-
errorMessage?: string;
|
|
777
|
-
errorI18n?: string;
|
|
778
|
-
error: string;
|
|
779
|
-
rootNode: HTMLElement;
|
|
780
|
-
detectedBrands?: string[];
|
|
781
|
-
}
|
|
782
|
-
interface SFStateErrorObj {
|
|
783
|
-
[key: string]: SFError;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
interface ValidationRuleErrorObj {
|
|
787
|
-
[key: string]: ValidationRuleResult;
|
|
788
|
-
}
|
|
789
|
-
interface AriaAttributes {
|
|
790
|
-
'aria-relevant'?: 'additions' | 'all' | 'removals' | 'text' | 'additions text';
|
|
791
|
-
'aria-live'?: 'off' | 'polite' | 'assertive';
|
|
792
|
-
'aria-atomic'?: 'true' | 'false';
|
|
793
|
-
}
|
|
794
|
-
interface SRPanelProps extends BaseElementProps {
|
|
795
|
-
enabled?: boolean;
|
|
796
|
-
node?: string;
|
|
797
|
-
showPanel?: boolean;
|
|
798
|
-
moveFocus?: boolean;
|
|
799
|
-
id?: string;
|
|
800
|
-
ariaAttributes?: AriaAttributes;
|
|
801
|
-
}
|
|
802
|
-
type SRPanelConfig = Pick<SRPanelProps, 'enabled' | 'node' | 'showPanel' | 'moveFocus' | 'id' | 'ariaAttributes'>;
|
|
803
|
-
interface GenericError {
|
|
804
|
-
isValid: boolean;
|
|
805
|
-
errorMessage: string;
|
|
806
|
-
error: string;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* A panel meant to hold messages that will be read out by ScreenReaders on an aria-live="polite" basis
|
|
811
|
-
* Expects a string or string array of message to add to the panel to be read out
|
|
812
|
-
* For testing purposes can be made visible
|
|
813
|
-
*/
|
|
814
|
-
declare class SRPanel extends BaseElement<SRPanelProps> {
|
|
815
|
-
static type: string;
|
|
816
|
-
static defaultProps: Partial<SRPanelProps>;
|
|
817
|
-
private readonly srPanelContainer;
|
|
818
|
-
private readonly id;
|
|
819
|
-
private readonly showPanel;
|
|
820
|
-
private readonly _enabled;
|
|
821
|
-
private readonly _moveFocus;
|
|
822
|
-
private componentRef;
|
|
823
|
-
constructor(checkout: ICore, props?: SRPanelProps);
|
|
824
|
-
setComponentRef: (ref: any) => void;
|
|
825
|
-
get enabled(): boolean;
|
|
826
|
-
get moveFocus(): boolean;
|
|
827
|
-
setAriaProps(ariaAttributes: AriaAttributes): void;
|
|
828
|
-
setMessages: (messages: string[] | string) => void;
|
|
829
|
-
render(): h.JSX.Element;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
interface BaseElementProps {
|
|
833
|
-
order?: Order;
|
|
834
|
-
modules?: {
|
|
835
|
-
srPanel?: SRPanel;
|
|
836
|
-
analytics?: IAnalytics;
|
|
837
|
-
resources?: Resources;
|
|
838
|
-
risk?: RiskElement;
|
|
839
|
-
};
|
|
840
|
-
/**
|
|
841
|
-
* Identifies if the Element is the DropIn element
|
|
842
|
-
*/
|
|
843
|
-
isDropin?: boolean;
|
|
844
|
-
}
|
|
845
|
-
interface IBaseElement {
|
|
846
|
-
data: object;
|
|
847
|
-
state: any;
|
|
848
|
-
props: any;
|
|
849
|
-
_id: string;
|
|
850
|
-
_component: any;
|
|
851
|
-
render(): ComponentChild | Error;
|
|
852
|
-
mount(domNode: HTMLElement | string): IBaseElement;
|
|
853
|
-
update(props: any): IBaseElement;
|
|
854
|
-
unmount(): IBaseElement;
|
|
855
|
-
remove(): void;
|
|
856
|
-
activate(): void;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
497
|
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'action' | 'link' | 'iconOnly';
|
|
860
498
|
interface ButtonProps {
|
|
861
499
|
status?: string;
|
|
@@ -902,191 +540,56 @@ interface PayButtonProps extends ButtonProps {
|
|
|
902
540
|
onClick?: (e: h.JSX.TargetedMouseEvent<HTMLButtonElement>) => void;
|
|
903
541
|
}
|
|
904
542
|
|
|
905
|
-
type
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
isInstantPayment?: boolean;
|
|
916
|
-
/**
|
|
917
|
-
* Flags if the element is Stored payment method
|
|
918
|
-
* @internal
|
|
919
|
-
*/
|
|
920
|
-
isStoredPaymentMethod?: boolean;
|
|
543
|
+
type AchForm = {
|
|
544
|
+
selectedAccountType: string;
|
|
545
|
+
ownerName: string;
|
|
546
|
+
routingNumber: string;
|
|
547
|
+
accountNumber: string;
|
|
548
|
+
accountNumberVerification: string;
|
|
549
|
+
};
|
|
550
|
+
type AchFormPrefillData = Partial<Pick<AchForm, 'ownerName'>>;
|
|
551
|
+
|
|
552
|
+
interface AchConfiguration extends UIElementProps {
|
|
921
553
|
/**
|
|
922
|
-
*
|
|
923
|
-
* Perhaps can be deprecated and we use the one above?
|
|
924
|
-
* @internal
|
|
554
|
+
* Pre-fill ACH form with shopper data
|
|
925
555
|
*/
|
|
926
|
-
|
|
556
|
+
data?: AchFormPrefillData;
|
|
927
557
|
/**
|
|
928
|
-
*
|
|
929
|
-
* @internal
|
|
558
|
+
* Adds placeholder text to the input fields
|
|
930
559
|
*/
|
|
931
|
-
|
|
560
|
+
placeholders?: AchPlaceholders;
|
|
932
561
|
/**
|
|
933
|
-
*
|
|
934
|
-
* @
|
|
562
|
+
* Set to false to hide the "Account Holder Name" field if you want to pass the data yourself
|
|
563
|
+
* @default true
|
|
935
564
|
*/
|
|
936
|
-
|
|
937
|
-
type?: string;
|
|
938
|
-
name?: string;
|
|
939
|
-
icon?: string;
|
|
940
|
-
amount?: PaymentAmount;
|
|
941
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
565
|
+
hasHolderName?: boolean;
|
|
942
566
|
/**
|
|
943
|
-
*
|
|
944
|
-
* @
|
|
567
|
+
* Enables storing the payment method using the Checkbox
|
|
568
|
+
* @default false
|
|
945
569
|
*/
|
|
946
|
-
|
|
947
|
-
/** @internal */
|
|
948
|
-
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
949
|
-
/** @internal */
|
|
950
|
-
loadingContext?: string;
|
|
951
|
-
/** @internal */
|
|
952
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
953
|
-
/** @internal */
|
|
954
|
-
clientKey?: string;
|
|
955
|
-
/** @internal */
|
|
956
|
-
elementRef?: any;
|
|
957
|
-
/** @internal */
|
|
958
|
-
i18n?: Language;
|
|
570
|
+
enableStoreDetails?: boolean;
|
|
959
571
|
/**
|
|
960
|
-
*
|
|
572
|
+
* storedPaymentMethodId coming from a stored ACH in /paymentMethods response
|
|
961
573
|
* @internal
|
|
962
574
|
*/
|
|
963
|
-
|
|
575
|
+
storedPaymentMethodId?: string;
|
|
964
576
|
/**
|
|
965
|
-
*
|
|
966
|
-
* that was used for the payment
|
|
577
|
+
* bankAccountNumber coming from a stored ACH in /paymentMethods response
|
|
967
578
|
* @internal
|
|
968
579
|
*/
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* Reference to the action object found in a /payments response. This, in most cases, is passed on to the onActionHandled callback
|
|
972
|
-
*/
|
|
973
|
-
originalAction?: PaymentAction;
|
|
974
|
-
};
|
|
975
|
-
type UIElementStatus = 'ready' | 'loading' | 'error' | 'success';
|
|
976
|
-
interface ComponentMethodsRef {
|
|
977
|
-
showValidation?: () => void;
|
|
978
|
-
setStatus?(status: UIElementStatus): void;
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
type NewableComponent = new (checkout: ICore, props?: any) => UIElement;
|
|
982
|
-
interface IRegistry {
|
|
983
|
-
add(...items: NewableComponent[]): void;
|
|
984
|
-
getComponent(type: string): NewableComponent | undefined;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
interface CompanyDetailsSchema {
|
|
988
|
-
name?: string;
|
|
989
|
-
registrationNumber?: string;
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
type OpenInvoiceAddressSpecification = AddressSpecifications & {
|
|
993
|
-
allowedCountries?: string[];
|
|
994
|
-
};
|
|
995
|
-
interface OpenInvoiceVisibility {
|
|
996
|
-
companyDetails?: FieldsetVisibility;
|
|
997
|
-
personalDetails?: FieldsetVisibility;
|
|
998
|
-
billingAddress?: FieldsetVisibility;
|
|
999
|
-
deliveryAddress?: FieldsetVisibility;
|
|
1000
|
-
bankAccount?: FieldsetVisibility;
|
|
1001
|
-
}
|
|
1002
|
-
interface BankDetailsSchema {
|
|
1003
|
-
countryCode?: string;
|
|
1004
|
-
ibanNumber?: any;
|
|
1005
|
-
ownerName?: string;
|
|
1006
|
-
}
|
|
1007
|
-
interface OpenInvoiceProps extends UIElementProps {
|
|
1008
|
-
allowedCountries?: string[];
|
|
1009
|
-
consentCheckboxLabel: any;
|
|
1010
|
-
countryCode?: string;
|
|
1011
|
-
data: {
|
|
1012
|
-
companyDetails?: CompanyDetailsSchema;
|
|
1013
|
-
personalDetails?: PersonalDetailsSchema;
|
|
1014
|
-
billingAddress?: AddressData;
|
|
1015
|
-
deliveryAddress?: AddressData;
|
|
1016
|
-
bankAccount?: BankDetailsSchema;
|
|
1017
|
-
};
|
|
1018
|
-
onChange: (state: any, element?: UIElement) => void;
|
|
1019
|
-
payButton: any;
|
|
1020
|
-
visibility?: OpenInvoiceVisibility;
|
|
1021
|
-
personalDetailsRequiredFields?: string[];
|
|
1022
|
-
billingAddressRequiredFields?: string[];
|
|
1023
|
-
billingAddressSpecification?: OpenInvoiceAddressSpecification;
|
|
1024
|
-
deliveryAddressRequiredFields?: string[];
|
|
1025
|
-
deliveryAddressSpecification?: OpenInvoiceAddressSpecification;
|
|
1026
|
-
setComponentRef?: (ref: any) => void;
|
|
1027
|
-
}
|
|
1028
|
-
interface OpenInvoiceStateData {
|
|
1029
|
-
companyDetails?: CompanyDetailsSchema;
|
|
1030
|
-
personalDetails?: PersonalDetailsSchema;
|
|
1031
|
-
billingAddress?: AddressData;
|
|
1032
|
-
deliveryAddress?: AddressData;
|
|
1033
|
-
bankAccount?: BankDetailsSchema;
|
|
1034
|
-
consentCheckbox?: boolean;
|
|
1035
|
-
}
|
|
1036
|
-
interface OpenInvoiceStateError {
|
|
1037
|
-
consentCheckbox?: boolean | GenericError;
|
|
1038
|
-
companyDetails?: boolean | ValidationRuleErrorObj;
|
|
1039
|
-
billingAddress?: boolean | ValidationRuleErrorObj;
|
|
1040
|
-
deliveryAddress?: boolean | ValidationRuleErrorObj;
|
|
1041
|
-
personalDetails?: boolean | ValidationRuleErrorObj;
|
|
1042
|
-
bankAccount?: boolean | object;
|
|
1043
|
-
}
|
|
1044
|
-
interface OpenInvoiceStateValid {
|
|
1045
|
-
consentCheckbox?: boolean;
|
|
1046
|
-
companyDetails?: boolean;
|
|
1047
|
-
billingAddress?: boolean;
|
|
1048
|
-
deliveryAddress?: boolean;
|
|
1049
|
-
personalDetails?: boolean;
|
|
1050
|
-
bankAccount?: boolean;
|
|
1051
|
-
}
|
|
1052
|
-
interface OpenInvoiceActiveFieldsets {
|
|
1053
|
-
companyDetails: boolean;
|
|
1054
|
-
personalDetails: boolean;
|
|
1055
|
-
billingAddress: boolean;
|
|
1056
|
-
deliveryAddress: boolean;
|
|
1057
|
-
bankAccount: boolean;
|
|
1058
|
-
}
|
|
1059
|
-
interface OpenInvoiceFieldsetsRefs {
|
|
1060
|
-
companyDetails?: any;
|
|
1061
|
-
personalDetails?: any;
|
|
1062
|
-
billingAddress?: any;
|
|
1063
|
-
deliveryAddress?: any;
|
|
1064
|
-
bankAccount?: any;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
interface OpenInvoiceConfiguration extends Partial<OpenInvoiceProps> {
|
|
1068
|
-
consentCheckboxLabel?: h.JSX.Element;
|
|
1069
|
-
billingAddressRequiredFields?: string[];
|
|
1070
|
-
billingAddressSpecification?: AddressSpecifications;
|
|
580
|
+
bankAccountNumber?: string;
|
|
1071
581
|
}
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
get isValid(): boolean;
|
|
1079
|
-
/**
|
|
1080
|
-
* Formats props on construction time
|
|
1081
|
-
*/
|
|
1082
|
-
formatProps(props: any): any;
|
|
1083
|
-
/**
|
|
1084
|
-
* Formats the component data output
|
|
1085
|
-
*/
|
|
1086
|
-
formatData(): any;
|
|
1087
|
-
protected componentToRender(): h.JSX.Element;
|
|
582
|
+
interface AchPlaceholders {
|
|
583
|
+
accountTypeSelector?: string;
|
|
584
|
+
ownerName?: string;
|
|
585
|
+
routingNumber?: string;
|
|
586
|
+
accountNumber?: string;
|
|
587
|
+
accountNumberVerification?: string;
|
|
1088
588
|
}
|
|
1089
589
|
|
|
590
|
+
declare const SUPPORTED_LOCALES_EU: readonly ["en_GB", "de_DE", "fr_FR", "it_IT", "es_ES"];
|
|
591
|
+
declare const SUPPORTED_LOCALES_US: readonly ["en_US"];
|
|
592
|
+
|
|
1090
593
|
declare enum TxVariants {
|
|
1091
594
|
/** internal */
|
|
1092
595
|
address = "address",
|
|
@@ -1188,6 +691,7 @@ declare enum TxVariants {
|
|
|
1188
691
|
billdesk_wallet = "billdesk_wallet",
|
|
1189
692
|
dotpay = "dotpay",
|
|
1190
693
|
eps = "eps",
|
|
694
|
+
iris = "iris",
|
|
1191
695
|
molpay_ebanking_fpx_MY = "molpay_ebanking_fpx_MY",
|
|
1192
696
|
molpay_ebanking_TH = "molpay_ebanking_TH",
|
|
1193
697
|
molpay_ebanking_VN = "molpay_ebanking_VN",
|
|
@@ -1261,21 +765,23 @@ declare enum TxVariants {
|
|
|
1261
765
|
/** Giftcard */
|
|
1262
766
|
}
|
|
1263
767
|
|
|
1264
|
-
declare class
|
|
1265
|
-
static type: TxVariants;
|
|
1266
|
-
static txVariants: TxVariants[];
|
|
1267
|
-
formatProps(props: any): any;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
declare class AfterPayB2B extends OpenInvoiceContainer {
|
|
768
|
+
declare class AmazonPayElement extends UIElement<AmazonPayConfiguration> {
|
|
1271
769
|
static type: TxVariants;
|
|
1272
|
-
protected static defaultProps: Partial<
|
|
770
|
+
protected static defaultProps: Partial<AmazonPayConfiguration>;
|
|
1273
771
|
formatProps(props: any): any;
|
|
772
|
+
/**
|
|
773
|
+
* Formats the component data output
|
|
774
|
+
*/
|
|
775
|
+
formatData(): AmazonPayElementData;
|
|
776
|
+
protected beforeRender(configSetByMerchant?: AmazonPayConfiguration): void;
|
|
777
|
+
getShopperDetails(): void | Promise<any>;
|
|
778
|
+
handleDeclineFlow(): void;
|
|
779
|
+
get isValid(): boolean;
|
|
780
|
+
get browserInfo(): BrowserInfo;
|
|
781
|
+
submit(): void;
|
|
782
|
+
protected componentToRender(): h.JSX.Element;
|
|
1274
783
|
}
|
|
1275
784
|
|
|
1276
|
-
declare const SUPPORTED_LOCALES_EU: readonly ["en_GB", "de_DE", "fr_FR", "it_IT", "es_ES"];
|
|
1277
|
-
declare const SUPPORTED_LOCALES_US: readonly ["en_US"];
|
|
1278
|
-
|
|
1279
785
|
declare global {
|
|
1280
786
|
interface Window {
|
|
1281
787
|
amazon: object;
|
|
@@ -1520,23 +1026,6 @@ interface Restrictions {
|
|
|
1520
1026
|
};
|
|
1521
1027
|
}
|
|
1522
1028
|
|
|
1523
|
-
declare class AmazonPayElement extends UIElement<AmazonPayConfiguration> {
|
|
1524
|
-
static type: TxVariants;
|
|
1525
|
-
protected static defaultProps: Partial<AmazonPayConfiguration>;
|
|
1526
|
-
formatProps(props: any): any;
|
|
1527
|
-
/**
|
|
1528
|
-
* Formats the component data output
|
|
1529
|
-
*/
|
|
1530
|
-
formatData(): AmazonPayElementData;
|
|
1531
|
-
protected beforeRender(configSetByMerchant?: AmazonPayConfiguration): void;
|
|
1532
|
-
getShopperDetails(): void | Promise<any>;
|
|
1533
|
-
handleDeclineFlow(): void;
|
|
1534
|
-
get isValid(): boolean;
|
|
1535
|
-
get browserInfo(): BrowserInfo;
|
|
1536
|
-
submit(): void;
|
|
1537
|
-
protected componentToRender(): h.JSX.Element;
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
1029
|
interface ANCVConfiguration extends UIElementProps {
|
|
1541
1030
|
paymentData?: any;
|
|
1542
1031
|
data: ANCVDataState;
|
|
@@ -1547,30 +1036,6 @@ interface ANCVDataState {
|
|
|
1547
1036
|
beneficiaryId: string;
|
|
1548
1037
|
}
|
|
1549
1038
|
|
|
1550
|
-
declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
1551
|
-
static type: string;
|
|
1552
|
-
/**
|
|
1553
|
-
* Formats the component data output
|
|
1554
|
-
*/
|
|
1555
|
-
formatData(): {
|
|
1556
|
-
paymentMethod: {
|
|
1557
|
-
type: string;
|
|
1558
|
-
beneficiaryId: any;
|
|
1559
|
-
};
|
|
1560
|
-
};
|
|
1561
|
-
private onOrderRequest;
|
|
1562
|
-
/**
|
|
1563
|
-
* Check if order exists, if it does Resolve.
|
|
1564
|
-
* Otherwise createOrder and then Resolve.
|
|
1565
|
-
*/
|
|
1566
|
-
createOrder: () => Promise<void>;
|
|
1567
|
-
submit(): boolean;
|
|
1568
|
-
payButton: (props: any) => h.JSX.Element;
|
|
1569
|
-
get isValid(): boolean;
|
|
1570
|
-
get displayName(): string;
|
|
1571
|
-
protected componentToRender(): h.JSX.Element;
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
1039
|
type Initiative = 'web' | 'messaging';
|
|
1575
1040
|
type ApplePayPaymentOrderDetails = {
|
|
1576
1041
|
orderTypeIdentifier: string;
|
|
@@ -1760,191 +1225,11 @@ interface ApplePaySessionRequest {
|
|
|
1760
1225
|
displayName: string;
|
|
1761
1226
|
domainName: string;
|
|
1762
1227
|
initiative: Initiative;
|
|
1763
|
-
merchantIdentifier: string;
|
|
1764
|
-
}
|
|
1765
|
-
interface ApplePayWebConfiguration {
|
|
1766
|
-
renderApplePayCodeAs?: 'modal' | 'window';
|
|
1767
|
-
onApplePayCodeClose?(): void;
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
declare class ApplePayElement extends UIElement<ApplePayConfiguration> {
|
|
1771
|
-
static type: TxVariants;
|
|
1772
|
-
protected static defaultProps: ApplePayConfiguration;
|
|
1773
|
-
private sdkLoader;
|
|
1774
|
-
private applePayVersionNumber;
|
|
1775
|
-
constructor(checkout: ICore, props?: ApplePayConfiguration);
|
|
1776
|
-
/**
|
|
1777
|
-
* Formats the component props
|
|
1778
|
-
*/
|
|
1779
|
-
protected formatProps(props: ApplePayConfiguration): ApplePayConfiguration;
|
|
1780
|
-
/**
|
|
1781
|
-
* Formats the component data output
|
|
1782
|
-
*/
|
|
1783
|
-
protected formatData(): ApplePayElementData;
|
|
1784
|
-
protected beforeRender(configSetByMerchant?: ApplePayConfiguration): void;
|
|
1785
|
-
submit: () => void;
|
|
1786
|
-
get isValid(): boolean;
|
|
1787
|
-
/**
|
|
1788
|
-
* This API is only intended for upstreaming or defaulting to Apple Pay, all other scenarios should continue to
|
|
1789
|
-
* use canMakePayments(). For Safari browsers, this API will indicate whether there is a card available to make
|
|
1790
|
-
* payments. For third-party browsers a new status of paymentCredentialStatusUnknown will be returned. This does
|
|
1791
|
-
* not mean there are no cards available, it means the status cannot be determined and as such defaulting
|
|
1792
|
-
* and upstreaming should still be considered.
|
|
1793
|
-
*
|
|
1794
|
-
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/4440085-applepaycapabilities}
|
|
1795
|
-
* @param merchantIdentifier
|
|
1796
|
-
*/
|
|
1797
|
-
applePayCapabilities(merchantIdentifier?: string): Promise<ApplePayJS.PaymentCredentialStatusResponse>;
|
|
1798
|
-
/**
|
|
1799
|
-
* Determines if Apple Pay component can be displayed or not
|
|
1800
|
-
*/
|
|
1801
|
-
isAvailable(): Promise<void>;
|
|
1802
|
-
/**
|
|
1803
|
-
* Sets the Apple Pay version available for the shopper.
|
|
1804
|
-
* This code needs to be executed once the Apple Pay SDK is fully loaded
|
|
1805
|
-
* @private
|
|
1806
|
-
*/
|
|
1807
|
-
private defineApplePayVersionNumber;
|
|
1808
|
-
/**
|
|
1809
|
-
* Sets the configuration/callbacks that pertain to the Apple Pay code overlay/modal.
|
|
1810
|
-
* @private
|
|
1811
|
-
*/
|
|
1812
|
-
private configureApplePayWebOptions;
|
|
1813
|
-
private startSession;
|
|
1814
|
-
/**
|
|
1815
|
-
* Call the 'onAuthorized' callback if available.
|
|
1816
|
-
* Must be resolved/reject for the payment flow to continue
|
|
1817
|
-
*
|
|
1818
|
-
* @private
|
|
1819
|
-
*/
|
|
1820
|
-
private handleAuthorization;
|
|
1821
|
-
/**
|
|
1822
|
-
* Verify if the 'onOrderTrackingRequest' is provided. If so, triggers the callback expecting an
|
|
1823
|
-
* Apple Pay order details back
|
|
1824
|
-
*
|
|
1825
|
-
* @private
|
|
1826
|
-
*/
|
|
1827
|
-
private collectOrderTrackingDetailsIfNeeded;
|
|
1828
|
-
private validateMerchant;
|
|
1829
|
-
protected componentToRender(): h.JSX.Element;
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
declare class Atome extends OpenInvoiceContainer {
|
|
1833
|
-
static type: TxVariants;
|
|
1834
|
-
formatProps(props: any): any;
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
interface IssuerItem {
|
|
1838
|
-
id: string;
|
|
1839
|
-
name: string;
|
|
1840
|
-
icon?: string;
|
|
1841
|
-
}
|
|
1842
|
-
interface TermsAndConditions {
|
|
1843
|
-
translationKey: string;
|
|
1844
|
-
urls: string[];
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
interface IssuerListConfiguration extends UIElementProps {
|
|
1848
|
-
showImage?: boolean;
|
|
1849
|
-
placeholder?: string;
|
|
1850
|
-
issuers?: IssuerItem[];
|
|
1851
|
-
highlightedIssuers?: string[];
|
|
1852
|
-
showPaymentMethodItemImages?: boolean;
|
|
1853
|
-
termsAndConditions?: TermsAndConditions;
|
|
1854
|
-
showContextualElement?: boolean;
|
|
1855
|
-
}
|
|
1856
|
-
interface IssuerListData {
|
|
1857
|
-
paymentMethod: {
|
|
1858
|
-
type: string;
|
|
1859
|
-
issuer: string;
|
|
1860
|
-
};
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
declare class IssuerListContainer extends UIElement<IssuerListConfiguration> {
|
|
1864
|
-
protected static defaultProps: {
|
|
1865
|
-
showImage: boolean;
|
|
1866
|
-
issuers: any[];
|
|
1867
|
-
highlightedIssuers: any[];
|
|
1868
|
-
loadingContext: string;
|
|
1869
|
-
showPaymentMethodItemImages: boolean;
|
|
1870
|
-
};
|
|
1871
|
-
constructor(checkout: ICore, props?: IssuerListConfiguration);
|
|
1872
|
-
formatProps(props: any): any;
|
|
1873
|
-
/**
|
|
1874
|
-
* Formats the component data output
|
|
1875
|
-
*/
|
|
1876
|
-
formatData(): IssuerListData;
|
|
1877
|
-
/**
|
|
1878
|
-
* Returns whether the component state is valid or not
|
|
1879
|
-
*/
|
|
1880
|
-
get isValid(): boolean;
|
|
1881
|
-
/**
|
|
1882
|
-
* Returns brands array (similar to card) depending on showPaymentMethodItemImages
|
|
1883
|
-
* This is used to show the brands in the PaymentMethodItem
|
|
1884
|
-
* Requires brands icons to be loaded in the payment method
|
|
1885
|
-
*/
|
|
1886
|
-
get brands(): {
|
|
1887
|
-
icon: any;
|
|
1888
|
-
name: string;
|
|
1889
|
-
}[];
|
|
1890
|
-
protected componentToRender(): h.JSX.Element;
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
declare class BillDeskOnlineElement extends IssuerListContainer {
|
|
1894
|
-
static type: TxVariants;
|
|
1895
|
-
formatProps(props: any): any;
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
declare class BillDeskWalletElement extends IssuerListContainer {
|
|
1899
|
-
static type: TxVariants;
|
|
1900
|
-
formatProps(props: any): any;
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
|
-
type AchForm = {
|
|
1904
|
-
selectedAccountType: string;
|
|
1905
|
-
ownerName: string;
|
|
1906
|
-
routingNumber: string;
|
|
1907
|
-
accountNumber: string;
|
|
1908
|
-
accountNumberVerification: string;
|
|
1909
|
-
};
|
|
1910
|
-
type AchFormPrefillData = Partial<Pick<AchForm, 'ownerName'>>;
|
|
1911
|
-
|
|
1912
|
-
interface AchConfiguration extends UIElementProps {
|
|
1913
|
-
/**
|
|
1914
|
-
* Pre-fill ACH form with shopper data
|
|
1915
|
-
*/
|
|
1916
|
-
data?: AchFormPrefillData;
|
|
1917
|
-
/**
|
|
1918
|
-
* Adds placeholder text to the input fields
|
|
1919
|
-
*/
|
|
1920
|
-
placeholders?: AchPlaceholders;
|
|
1921
|
-
/**
|
|
1922
|
-
* Set to false to hide the "Account Holder Name" field if you want to pass the data yourself
|
|
1923
|
-
* @default true
|
|
1924
|
-
*/
|
|
1925
|
-
hasHolderName?: boolean;
|
|
1926
|
-
/**
|
|
1927
|
-
* Enables storing the payment method using the Checkbox
|
|
1928
|
-
* @default false
|
|
1929
|
-
*/
|
|
1930
|
-
enableStoreDetails?: boolean;
|
|
1931
|
-
/**
|
|
1932
|
-
* storedPaymentMethodId coming from a stored ACH in /paymentMethods response
|
|
1933
|
-
* @internal
|
|
1934
|
-
*/
|
|
1935
|
-
storedPaymentMethodId?: string;
|
|
1936
|
-
/**
|
|
1937
|
-
* bankAccountNumber coming from a stored ACH in /paymentMethods response
|
|
1938
|
-
* @internal
|
|
1939
|
-
*/
|
|
1940
|
-
bankAccountNumber?: string;
|
|
1941
|
-
}
|
|
1942
|
-
interface AchPlaceholders {
|
|
1943
|
-
accountTypeSelector?: string;
|
|
1944
|
-
ownerName?: string;
|
|
1945
|
-
routingNumber?: string;
|
|
1946
|
-
accountNumber?: string;
|
|
1947
|
-
accountNumberVerification?: string;
|
|
1228
|
+
merchantIdentifier: string;
|
|
1229
|
+
}
|
|
1230
|
+
interface ApplePayWebConfiguration {
|
|
1231
|
+
renderApplePayCodeAs?: 'modal' | 'window';
|
|
1232
|
+
onApplePayCodeClose?(): void;
|
|
1948
1233
|
}
|
|
1949
1234
|
|
|
1950
1235
|
interface BankTransferResultProps {
|
|
@@ -1987,34 +1272,71 @@ interface VoucherDetail {
|
|
|
1987
1272
|
value: string;
|
|
1988
1273
|
}
|
|
1989
1274
|
interface VoucherProps {
|
|
1990
|
-
/**
|
|
1275
|
+
/**
|
|
1276
|
+
* Payment method used to generate the voucher.
|
|
1277
|
+
*/
|
|
1991
1278
|
paymentMethodType: string;
|
|
1992
|
-
/**
|
|
1279
|
+
/**
|
|
1280
|
+
* Payment method image to be displayed on the voucher.
|
|
1281
|
+
*/
|
|
1993
1282
|
imageUrl?: string;
|
|
1994
|
-
/**
|
|
1283
|
+
/**
|
|
1284
|
+
* If applicable, it will render an issuer image next to the payment method image.
|
|
1285
|
+
*/
|
|
1995
1286
|
issuerImageUrl?: string;
|
|
1996
|
-
/**
|
|
1287
|
+
/**
|
|
1288
|
+
* Voucher instructions URL.
|
|
1289
|
+
*/
|
|
1997
1290
|
instructionsUrl?: string;
|
|
1998
|
-
/**
|
|
1291
|
+
/**
|
|
1292
|
+
* Download URL for the voucher. It will display a button allowing the shopper to download it.
|
|
1293
|
+
*/
|
|
1999
1294
|
downloadUrl?: string;
|
|
2000
|
-
/**
|
|
1295
|
+
/**
|
|
1296
|
+
* Text that will be displayed on the above Download button.
|
|
1297
|
+
*/
|
|
2001
1298
|
downloadButtonText?: string;
|
|
2002
|
-
/**
|
|
1299
|
+
/**
|
|
1300
|
+
* Introduction text on the voucher.
|
|
1301
|
+
*/
|
|
2003
1302
|
introduction?: string;
|
|
2004
|
-
/**
|
|
1303
|
+
/**
|
|
1304
|
+
* Payment reference.
|
|
1305
|
+
*/
|
|
2005
1306
|
reference?: string;
|
|
2006
|
-
/**
|
|
1307
|
+
/**
|
|
1308
|
+
* URL to a barcode image representing the payment reference.
|
|
1309
|
+
*/
|
|
2007
1310
|
barcode?: string;
|
|
2008
|
-
/**
|
|
1311
|
+
/**
|
|
1312
|
+
* Total amount displayed on the voucher.
|
|
1313
|
+
*/
|
|
2009
1314
|
amount?: string;
|
|
2010
|
-
/**
|
|
1315
|
+
/**
|
|
1316
|
+
* Any additional surcharge to the amount.
|
|
1317
|
+
*/
|
|
2011
1318
|
surcharge?: any;
|
|
2012
|
-
/**
|
|
1319
|
+
/**
|
|
1320
|
+
* List of details that will be rendered on the voucher.
|
|
1321
|
+
*/
|
|
2013
1322
|
voucherDetails?: VoucherDetail[];
|
|
2014
|
-
/**
|
|
1323
|
+
/**
|
|
1324
|
+
* Additional CSS classes.
|
|
1325
|
+
*/
|
|
2015
1326
|
className?: string;
|
|
2016
|
-
/**
|
|
1327
|
+
/**
|
|
1328
|
+
* Show/Hide a button to copy the payment reference. It will only show if a reference is available.
|
|
1329
|
+
*/
|
|
2017
1330
|
copyBtn?: boolean;
|
|
1331
|
+
/**
|
|
1332
|
+
* Show/Hide payment reference value.
|
|
1333
|
+
* @default true
|
|
1334
|
+
*/
|
|
1335
|
+
showReferenceValue?: boolean;
|
|
1336
|
+
/**
|
|
1337
|
+
* Label for the payment reference.
|
|
1338
|
+
*/
|
|
1339
|
+
paymentReferenceLabel?: string;
|
|
2018
1340
|
onActionHandled?: (rtnObj: ActionHandledReturnObject) => void;
|
|
2019
1341
|
}
|
|
2020
1342
|
interface VoucherConfiguration extends UIElementProps {
|
|
@@ -2205,6 +1527,71 @@ declare global {
|
|
|
2205
1527
|
}
|
|
2206
1528
|
}
|
|
2207
1529
|
|
|
1530
|
+
declare enum AnalyticsEventCategory {
|
|
1531
|
+
info = "info",
|
|
1532
|
+
error = "error",
|
|
1533
|
+
log = "log"
|
|
1534
|
+
}
|
|
1535
|
+
declare abstract class AbstractAnalyticsEvent {
|
|
1536
|
+
private readonly timestamp;
|
|
1537
|
+
private readonly id;
|
|
1538
|
+
/**
|
|
1539
|
+
* Component tx variant or identifier
|
|
1540
|
+
* @private
|
|
1541
|
+
*/
|
|
1542
|
+
private readonly component;
|
|
1543
|
+
abstract getEventCategory(): AnalyticsEventCategory;
|
|
1544
|
+
protected constructor(component: string);
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
interface AnalyticsOptions {
|
|
1548
|
+
/**
|
|
1549
|
+
* Enable/Disable all analytics
|
|
1550
|
+
*/
|
|
1551
|
+
enabled?: boolean;
|
|
1552
|
+
/**
|
|
1553
|
+
* A wrapper to pass data needed when analytics is setup
|
|
1554
|
+
*/
|
|
1555
|
+
analyticsData?: {
|
|
1556
|
+
/**
|
|
1557
|
+
* Relates to PMs used within Plugins
|
|
1558
|
+
* https://docs.adyen.com/development-resources/application-information/?tab=integrator_built_2#application-information-fields
|
|
1559
|
+
* @internal
|
|
1560
|
+
*/
|
|
1561
|
+
applicationInfo?: ApplicationInfo;
|
|
1562
|
+
/**
|
|
1563
|
+
* Use a checkoutAttemptId from a previous page
|
|
1564
|
+
*/
|
|
1565
|
+
checkoutAttemptId?: string;
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
interface ApplicationInfo {
|
|
1569
|
+
externalPlatform: {
|
|
1570
|
+
name: string;
|
|
1571
|
+
version: string;
|
|
1572
|
+
integrator: string;
|
|
1573
|
+
};
|
|
1574
|
+
merchantApplication: {
|
|
1575
|
+
name: string;
|
|
1576
|
+
version: string;
|
|
1577
|
+
};
|
|
1578
|
+
merchantDevice?: {
|
|
1579
|
+
os: string;
|
|
1580
|
+
osVersion: string;
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
interface IAnalytics {
|
|
1585
|
+
setUp({ sessionId, checkoutStage, locale }: {
|
|
1586
|
+
sessionId?: string;
|
|
1587
|
+
checkoutStage?: 'precheckout' | 'checkout';
|
|
1588
|
+
locale?: string;
|
|
1589
|
+
}): Promise<void>;
|
|
1590
|
+
sendFlavor(flavor: 'dropin' | 'components'): Promise<void>;
|
|
1591
|
+
sendAnalytics(event: AbstractAnalyticsEvent): void;
|
|
1592
|
+
flush(): void;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
2208
1595
|
type MastercardCheckout = {
|
|
2209
1596
|
srcDigitalCardId: string;
|
|
2210
1597
|
srcCorrelationId: string;
|
|
@@ -2228,17 +1615,221 @@ type ClickToPayConfiguration = UIElementProps & ClickToPayProps & {
|
|
|
2228
1615
|
visaSrcInitiatorId?: string;
|
|
2229
1616
|
visaSrciDpaId?: string;
|
|
2230
1617
|
};
|
|
2231
|
-
};
|
|
2232
|
-
type ClickToPayPaymentData = {
|
|
2233
|
-
paymentMethod: ClickToPayCheckoutPayload & {
|
|
2234
|
-
type: string;
|
|
1618
|
+
};
|
|
1619
|
+
type ClickToPayPaymentData = {
|
|
1620
|
+
paymentMethod: ClickToPayCheckoutPayload & {
|
|
1621
|
+
type: string;
|
|
1622
|
+
};
|
|
1623
|
+
origin: string;
|
|
1624
|
+
browserInfo: BrowserInfo;
|
|
1625
|
+
};
|
|
1626
|
+
|
|
1627
|
+
declare enum ErrorEventCode {
|
|
1628
|
+
REDIRECT = "600",
|
|
1629
|
+
/** Missing 'paymentData' property from threeDS2 action */
|
|
1630
|
+
THREEDS2_ACTION_IS_MISSING_PAYMENT_DATA = "700",
|
|
1631
|
+
/** Missing 'token' property from threeDS2 action */
|
|
1632
|
+
THREEDS2_ACTION_IS_MISSING_TOKEN = "701",
|
|
1633
|
+
/** Decoded token is missing a valid threeDSMethodURL property */
|
|
1634
|
+
THREEDS2_TOKEN_IS_MISSING_THREEDSMETHODURL = "702",
|
|
1635
|
+
/**
|
|
1636
|
+
* Decoded token is missing one or more of the following properties:
|
|
1637
|
+
* fingerprint: (threeDSMethodNotificationURL | postMessageDomain | threeDSServerTransID)
|
|
1638
|
+
* challenge: (acsTransID | messageVersion | threeDSServerTransID)
|
|
1639
|
+
*/
|
|
1640
|
+
THREEDS2_TOKEN_IS_MISSING_OTHER_PROPS = "703",
|
|
1641
|
+
/** Token decoding or parsing has failed. ('not base64', 'malformed URI sequence' or 'Could not JSON parse token') */
|
|
1642
|
+
THREEDS2_TOKEN_DECODE_OR_PARSING_FAILED = "704",
|
|
1643
|
+
/** 3DS2 process has timed out */
|
|
1644
|
+
THREEDS2_TIMEOUT = "705",
|
|
1645
|
+
/** Decoded token is missing a valid acsURL property */
|
|
1646
|
+
THREEDS2_TOKEN_IS_MISSING_ACSURL = "800",
|
|
1647
|
+
/** Challenge has resulted in an error (no transStatus could be retrieved by the backend) */
|
|
1648
|
+
THREEDS2_NO_TRANSSTATUS = "801",
|
|
1649
|
+
/** callSubmit3DS2Fingerprint has received a response indicating either a "frictionless" flow, or a "refused" response, but without a details object */
|
|
1650
|
+
THREEDS2_NO_DETAILS_FOR_FRICTIONLESS_OR_REFUSED = "802",
|
|
1651
|
+
/** callSubmit3DS2Fingerprint cannot find a component to handle the action response */
|
|
1652
|
+
THREEDS2_NO_COMPONENT_FOR_ACTION = "803",
|
|
1653
|
+
/** callSubmit3DS2Fingerprint has received a response indicating a "challenge" but without an action object */
|
|
1654
|
+
THREEDS2_NO_ACTION_FOR_CHALLENGE = "804",
|
|
1655
|
+
/** The challenge process has happened, an object has been returned, parsed & accepted as legit, but the result prop on that object is either missing or doesn't have a transStatus prop */
|
|
1656
|
+
THREEDS2_CHALLENGE_RESOLVED_WITHOUT_RESULT_PROP = "805"
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Defines the size of the challenge Component
|
|
1661
|
+
*
|
|
1662
|
+
* 01: [250px, 400px]
|
|
1663
|
+
* 02: [390px, 400px]
|
|
1664
|
+
* 03: [500px, 600px]
|
|
1665
|
+
* 04: [600px, 400px]
|
|
1666
|
+
* 05: [100%, 100%]
|
|
1667
|
+
*
|
|
1668
|
+
* @defaultValue '02'
|
|
1669
|
+
*
|
|
1670
|
+
* - merchant set config option
|
|
1671
|
+
*/
|
|
1672
|
+
type ChallengeWindowSize = '01' | '02' | '03' | '04' | '05';
|
|
1673
|
+
interface ThreeDS2Configuration extends UIElementProps {
|
|
1674
|
+
dataKey?: string;
|
|
1675
|
+
environment?: string;
|
|
1676
|
+
isMDFlow?: boolean;
|
|
1677
|
+
loadingContext?: string;
|
|
1678
|
+
modules?: {
|
|
1679
|
+
analytics: IAnalytics;
|
|
1680
|
+
};
|
|
1681
|
+
notificationURL?: string;
|
|
1682
|
+
onActionHandled?: (rtnObj: ActionHandledReturnObject) => void;
|
|
1683
|
+
onError?: (error: AdyenCheckoutError, element?: UIElement) => void;
|
|
1684
|
+
paymentData?: string;
|
|
1685
|
+
token?: string;
|
|
1686
|
+
type?: string;
|
|
1687
|
+
challengeWindowSize?: ChallengeWindowSize;
|
|
1688
|
+
}
|
|
1689
|
+
interface ThreeDS2DeviceFingerprintConfiguration extends ThreeDS2Configuration {
|
|
1690
|
+
clientKey?: string;
|
|
1691
|
+
elementRef?: UIElement;
|
|
1692
|
+
showSpinner: boolean;
|
|
1693
|
+
}
|
|
1694
|
+
interface ThreeDS2ChallengeConfiguration extends ThreeDS2Configuration {
|
|
1695
|
+
i18n?: Language;
|
|
1696
|
+
size?: string;
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* See
|
|
1700
|
+
* https://docs.adyen.com/checkout/3d-secure/api-reference#threeds2result
|
|
1701
|
+
* Indicates whether a transaction was authenticated, or whether additional verification is required.
|
|
1702
|
+
*/
|
|
1703
|
+
type ResultValue = 'Y' | 'N' | 'U' | 'A' | 'C' | 'R';
|
|
1704
|
+
interface CReqData {
|
|
1705
|
+
acsTransID: string;
|
|
1706
|
+
messageVersion: string;
|
|
1707
|
+
threeDSServerTransID: string;
|
|
1708
|
+
messageType: string;
|
|
1709
|
+
challengeWindowSize: string;
|
|
1710
|
+
}
|
|
1711
|
+
interface ChallengeData {
|
|
1712
|
+
acsURL: string;
|
|
1713
|
+
cReqData: CReqData;
|
|
1714
|
+
iframeSizeArr: string[];
|
|
1715
|
+
postMessageDomain: string;
|
|
1716
|
+
}
|
|
1717
|
+
interface ResultObject {
|
|
1718
|
+
threeDSCompInd?: ResultValue;
|
|
1719
|
+
transStatus?: ResultValue;
|
|
1720
|
+
errorCode?: string;
|
|
1721
|
+
errorDescription?: string;
|
|
1722
|
+
}
|
|
1723
|
+
interface ThreeDS2FlowObject {
|
|
1724
|
+
result: ResultObject;
|
|
1725
|
+
type: 'ChallengeShopper' | 'IdentifyShopper' | 'challengeResult' | 'fingerPrintResult';
|
|
1726
|
+
errorCode?: string;
|
|
1727
|
+
threeDSServerTransID?: string;
|
|
1728
|
+
}
|
|
1729
|
+
interface PostMsgParseErrorObject {
|
|
1730
|
+
type?: string;
|
|
1731
|
+
comment?: string;
|
|
1732
|
+
extraInfo?: string;
|
|
1733
|
+
eventDataRaw?: string;
|
|
1734
|
+
}
|
|
1735
|
+
interface ThreeDS2Token {
|
|
1736
|
+
acsTransID?: string;
|
|
1737
|
+
acsURL?: string;
|
|
1738
|
+
messageVersion?: string;
|
|
1739
|
+
threeDSNotificationURL?: string;
|
|
1740
|
+
threeDSServerTransID?: string;
|
|
1741
|
+
threeDSMethodNotificationURL?: string;
|
|
1742
|
+
threeDSMethodUrl?: string;
|
|
1743
|
+
}
|
|
1744
|
+
interface FingerPrintData {
|
|
1745
|
+
threeDSServerTransID: string;
|
|
1746
|
+
threeDSMethodURL: string;
|
|
1747
|
+
threeDSMethodNotificationURL: string;
|
|
1748
|
+
postMessageDomain: string;
|
|
1749
|
+
}
|
|
1750
|
+
type ThreeDS2FingerprintResponse = {
|
|
1751
|
+
type: 'action' | 'completed';
|
|
1752
|
+
action?: CheckoutRedirectAction | CheckoutThreeDS2Action;
|
|
1753
|
+
details?: Record<string, string>;
|
|
1754
|
+
};
|
|
1755
|
+
type CheckoutRedirectAction = {
|
|
1756
|
+
type: 'redirect';
|
|
1757
|
+
data: Record<string, string>;
|
|
1758
|
+
method: string;
|
|
1759
|
+
paymentData: string;
|
|
1760
|
+
};
|
|
1761
|
+
type CheckoutThreeDS2Action = {
|
|
1762
|
+
type: 'threeDS2';
|
|
1763
|
+
token: string;
|
|
1764
|
+
subtype: string;
|
|
1765
|
+
authorisationToken: string;
|
|
1766
|
+
};
|
|
1767
|
+
interface FingerprintResolveData {
|
|
1768
|
+
data: {
|
|
1769
|
+
[key: string]: string;
|
|
1770
|
+
paymentData: string;
|
|
1771
|
+
};
|
|
1772
|
+
}
|
|
1773
|
+
interface LegacyFingerprintResolveData {
|
|
1774
|
+
data: {
|
|
1775
|
+
details: {
|
|
1776
|
+
[key: string]: string;
|
|
1777
|
+
};
|
|
1778
|
+
paymentData: string;
|
|
1779
|
+
};
|
|
1780
|
+
}
|
|
1781
|
+
interface ChallengeResolveData {
|
|
1782
|
+
data: {
|
|
1783
|
+
details: {
|
|
1784
|
+
[key: string]: string;
|
|
1785
|
+
};
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1788
|
+
interface LegacyChallengeResolveData {
|
|
1789
|
+
data: {
|
|
1790
|
+
details: {
|
|
1791
|
+
[key: string]: string;
|
|
1792
|
+
};
|
|
1793
|
+
paymentData: string;
|
|
2235
1794
|
};
|
|
2236
|
-
|
|
2237
|
-
|
|
1795
|
+
}
|
|
1796
|
+
interface ErrorCodeObject {
|
|
1797
|
+
errorCode: string | ErrorEventCode;
|
|
1798
|
+
message: string;
|
|
1799
|
+
}
|
|
1800
|
+
type ThreeDS2FlowProps = {
|
|
1801
|
+
statusType: StatusFromAction;
|
|
1802
|
+
showSpinner?: boolean;
|
|
1803
|
+
elementRef?: UIElement;
|
|
1804
|
+
i18n?: Language;
|
|
1805
|
+
};
|
|
1806
|
+
type ThreeDS2ConfigProps = {
|
|
1807
|
+
readonly core: ICore;
|
|
1808
|
+
readonly token: string;
|
|
1809
|
+
readonly paymentData: string;
|
|
1810
|
+
readonly onActionHandled?: (rtnObj: ActionHandledReturnObject) => void;
|
|
1811
|
+
readonly onComplete?: (state: LegacyChallengeResolveData | ChallengeResolveData, component: UIElement) => void;
|
|
1812
|
+
readonly onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
1813
|
+
readonly onError?: (error: AdyenCheckoutError, element?: UIElement) => void;
|
|
1814
|
+
readonly isDropin?: boolean;
|
|
1815
|
+
readonly loadingContext?: string;
|
|
1816
|
+
readonly clientKey: string;
|
|
1817
|
+
readonly paymentMethodType: string;
|
|
1818
|
+
readonly challengeWindowSize?: ChallengeWindowSize;
|
|
1819
|
+
readonly isMDFlow?: boolean;
|
|
1820
|
+
readonly modules?: {
|
|
1821
|
+
readonly analytics?: IAnalytics;
|
|
1822
|
+
readonly resources?: Resources;
|
|
1823
|
+
};
|
|
1824
|
+
readonly showSpinner?: boolean;
|
|
1825
|
+
readonly statusType?: StatusFromAction;
|
|
1826
|
+
readonly elementRef?: UIElement;
|
|
1827
|
+
readonly i18n?: Language;
|
|
2238
1828
|
};
|
|
1829
|
+
type ThreeDS2ActionProps = CardConfiguration & Pick<ThreeDS2ConfigProps, 'isMDFlow'>;
|
|
2239
1830
|
|
|
2240
|
-
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
2241
|
-
type CustomCardConfiguration = CoreCallbacks & {
|
|
1831
|
+
type CoreCallbacks$1 = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
1832
|
+
type CustomCardConfiguration = CoreCallbacks$1 & {
|
|
2242
1833
|
/**
|
|
2243
1834
|
* Automatically shift the focus from one field to another. Usually happens from a valid Expiry Date field to the Security Code field,
|
|
2244
1835
|
* but some BINS also allow us to know that the PAN is complete, in which case we can shift focus to the date field
|
|
@@ -2271,7 +1862,7 @@ type CustomCardConfiguration = CoreCallbacks & {
|
|
|
2271
1862
|
*
|
|
2272
1863
|
* - merchant set config option
|
|
2273
1864
|
*/
|
|
2274
|
-
challengeWindowSize?:
|
|
1865
|
+
challengeWindowSize?: ChallengeWindowSize;
|
|
2275
1866
|
/**
|
|
2276
1867
|
* Turn on the procedure to force the arrow keys on an iOS soft keyboard to always be disabled
|
|
2277
1868
|
* @defaultValue `false`
|
|
@@ -2509,7 +2100,7 @@ interface EcontextVoucherResultProps {
|
|
|
2509
2100
|
paymentMethodType?: string;
|
|
2510
2101
|
maskedTelephoneNumber?: string;
|
|
2511
2102
|
instructionsUrl?: string;
|
|
2512
|
-
|
|
2103
|
+
alternativeReference?: string;
|
|
2513
2104
|
collectionInstitutionNumber?: string;
|
|
2514
2105
|
onActionHandled?: (rtnObj: ActionHandledReturnObject) => void;
|
|
2515
2106
|
}
|
|
@@ -2520,9 +2111,40 @@ interface EcontextInputSchema {
|
|
|
2520
2111
|
shopperEmail?: string;
|
|
2521
2112
|
}
|
|
2522
2113
|
interface EcontextConfiguration extends UIElementProps {
|
|
2523
|
-
reference?: string;
|
|
2524
2114
|
personalDetailsRequired?: boolean;
|
|
2525
2115
|
data?: PersonalDetailsSchema;
|
|
2116
|
+
/**
|
|
2117
|
+
* @internal
|
|
2118
|
+
*/
|
|
2119
|
+
instructionsUrl?: string;
|
|
2120
|
+
/**
|
|
2121
|
+
* @internal
|
|
2122
|
+
*/
|
|
2123
|
+
reference?: string;
|
|
2124
|
+
/**
|
|
2125
|
+
* @internal
|
|
2126
|
+
*/
|
|
2127
|
+
totalAmount?: PaymentAmount;
|
|
2128
|
+
/**
|
|
2129
|
+
* @internal
|
|
2130
|
+
*/
|
|
2131
|
+
expiresAt?: string;
|
|
2132
|
+
/**
|
|
2133
|
+
* @internal
|
|
2134
|
+
*/
|
|
2135
|
+
paymentMethodType?: string;
|
|
2136
|
+
/**
|
|
2137
|
+
* @internal
|
|
2138
|
+
*/
|
|
2139
|
+
maskedTelephoneNumber?: string;
|
|
2140
|
+
/**
|
|
2141
|
+
* @internal
|
|
2142
|
+
*/
|
|
2143
|
+
alternativeReference?: string;
|
|
2144
|
+
/**
|
|
2145
|
+
* @internal
|
|
2146
|
+
*/
|
|
2147
|
+
collectionInstitutionNumber?: string;
|
|
2526
2148
|
}
|
|
2527
2149
|
|
|
2528
2150
|
interface GiftCardElementData {
|
|
@@ -2595,7 +2217,7 @@ interface GooglePayConfiguration extends UIElementProps {
|
|
|
2595
2217
|
*
|
|
2596
2218
|
* @defaultValue '02'
|
|
2597
2219
|
*/
|
|
2598
|
-
challengeWindowSize?:
|
|
2220
|
+
challengeWindowSize?: ChallengeWindowSize;
|
|
2599
2221
|
/**
|
|
2600
2222
|
* @see https://developers.google.com/pay/api/web/reference/request-objects#IsReadyToPayRequest
|
|
2601
2223
|
* @defaultValue false
|
|
@@ -2758,6 +2380,26 @@ interface ExtendedMerchantInfo extends google.payments.api.MerchantInfo {
|
|
|
2758
2380
|
merchantOrigin?: string;
|
|
2759
2381
|
}
|
|
2760
2382
|
|
|
2383
|
+
type IrisConfiguration = IssuerListConfiguration & Pick<QRLoaderConfiguration, 'countdownTime' | 'qrCodeData' | 'paymentData' | 'delay'>;
|
|
2384
|
+
/**
|
|
2385
|
+
* Iris data format for /payment request
|
|
2386
|
+
* @internal
|
|
2387
|
+
*/
|
|
2388
|
+
interface IrisData {
|
|
2389
|
+
paymentMethod: {
|
|
2390
|
+
type: string;
|
|
2391
|
+
issuer?: string;
|
|
2392
|
+
};
|
|
2393
|
+
}
|
|
2394
|
+
/**
|
|
2395
|
+
* Iris component display modes
|
|
2396
|
+
* @internal
|
|
2397
|
+
*/
|
|
2398
|
+
declare enum IrisMode {
|
|
2399
|
+
QR_CODE = "qrCode",
|
|
2400
|
+
BANK_LIST = "bankList"
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2761
2403
|
declare global {
|
|
2762
2404
|
interface Window {
|
|
2763
2405
|
Klarna: any;
|
|
@@ -3008,82 +2650,267 @@ interface PayPalConfiguration extends UIElementProps {
|
|
|
3008
2650
|
tagline?: boolean;
|
|
3009
2651
|
};
|
|
3010
2652
|
/**
|
|
3011
|
-
* 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.
|
|
3012
|
-
* @see {@link https://developer.paypal.com/sdk/js/reference/#oninitonclick}
|
|
3013
|
-
*/
|
|
3014
|
-
onInit?: (data?: any, actions?: any) => void;
|
|
3015
|
-
/**
|
|
3016
|
-
* @see {@link https://developer.paypal.com/sdk/js/reference/#oninitonclick}
|
|
2653
|
+
* 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.
|
|
2654
|
+
* @see {@link https://developer.paypal.com/sdk/js/reference/#oninitonclick}
|
|
2655
|
+
*/
|
|
2656
|
+
onInit?: (data?: any, actions?: any) => void;
|
|
2657
|
+
/**
|
|
2658
|
+
* @see {@link https://developer.paypal.com/sdk/js/reference/#oninitonclick}
|
|
2659
|
+
*/
|
|
2660
|
+
onClick?: () => void;
|
|
2661
|
+
/**
|
|
2662
|
+
* The commit status of the transaction. Determines whether to show a Pay Now or Continue button in the Checkout flow.
|
|
2663
|
+
*
|
|
2664
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#commit}
|
|
2665
|
+
* @default true
|
|
2666
|
+
*/
|
|
2667
|
+
commit?: boolean;
|
|
2668
|
+
/**
|
|
2669
|
+
* Whether the payment information in the transaction will be saved. Save your customers' payment information for billing agreements, subscriptions, or recurring payments.
|
|
2670
|
+
*
|
|
2671
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#vault}
|
|
2672
|
+
* @default false
|
|
2673
|
+
*/
|
|
2674
|
+
vault?: boolean;
|
|
2675
|
+
/**
|
|
2676
|
+
* The locale renders components. By default PayPal detects the correct locale for the buyer based on their geolocation and browser preferences.
|
|
2677
|
+
*
|
|
2678
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#locale}
|
|
2679
|
+
* @default undefined
|
|
2680
|
+
*/
|
|
2681
|
+
locale?: string;
|
|
2682
|
+
/**
|
|
2683
|
+
* Determines whether the funds are captured immediately on checkout or if the buyer authorizes the funds to be captured later.
|
|
2684
|
+
* If set, it will override the intent passed inside the 'configuration' object
|
|
2685
|
+
*
|
|
2686
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#intent}
|
|
2687
|
+
* @default undefined
|
|
2688
|
+
*/
|
|
2689
|
+
intent?: Intent;
|
|
2690
|
+
/**
|
|
2691
|
+
* Pass a Content Security Policy single-use token if you use them on your site
|
|
2692
|
+
*
|
|
2693
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#data-csp-nonce}
|
|
2694
|
+
* @default undefined
|
|
2695
|
+
*/
|
|
2696
|
+
cspNonce?: string;
|
|
2697
|
+
enableMessages?: boolean;
|
|
2698
|
+
/**
|
|
2699
|
+
* Set to true to enable debug mode. Defaults to false.
|
|
2700
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#debug}
|
|
2701
|
+
* @default undefined
|
|
2702
|
+
*/
|
|
2703
|
+
debug?: boolean;
|
|
2704
|
+
/**
|
|
2705
|
+
* A two-letter ISO 3166 country code which will be passed to the PayPal SDK as the buyer-country.
|
|
2706
|
+
* Note: The buyer country is only used in the sandbox. Don't pass this query parameter in production.
|
|
2707
|
+
*
|
|
2708
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#buyer-country}
|
|
2709
|
+
* @default undefined
|
|
2710
|
+
*/
|
|
2711
|
+
countryCode?: string;
|
|
2712
|
+
}
|
|
2713
|
+
/**
|
|
2714
|
+
* The intent for the transaction. This determines whether the funds are captured immediately, or later.
|
|
2715
|
+
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#intent}
|
|
2716
|
+
*/
|
|
2717
|
+
type Intent = 'sale' | 'capture' | 'authorize' | 'order' | 'tokenize';
|
|
2718
|
+
type FundingSource = 'paypal' | 'credit' | 'paylater' | 'venmo';
|
|
2719
|
+
|
|
2720
|
+
/**
|
|
2721
|
+
* PayPal Fastlane Reference:
|
|
2722
|
+
* https://developer.paypal.com/docs/checkout/fastlane/reference/#link-customizeyourintegration
|
|
2723
|
+
*/
|
|
2724
|
+
/**
|
|
2725
|
+
* Fastlane object available in the window
|
|
2726
|
+
*/
|
|
2727
|
+
interface FastlaneWindowInstance {
|
|
2728
|
+
identity: {
|
|
2729
|
+
lookupCustomerByEmail: (email: string) => Promise<{
|
|
2730
|
+
customerContextId: string;
|
|
2731
|
+
}>;
|
|
2732
|
+
triggerAuthenticationFlow: (customerContextId: string, options?: AuthenticationFlowOptions) => Promise<FastlaneAuthenticatedCustomerResult>;
|
|
2733
|
+
getSession: () => Promise<{
|
|
2734
|
+
sessionId: string;
|
|
2735
|
+
}>;
|
|
2736
|
+
};
|
|
2737
|
+
profile: {
|
|
2738
|
+
showShippingAddressSelector: () => Promise<FastlaneShippingAddressSelectorResult>;
|
|
2739
|
+
};
|
|
2740
|
+
setLocale: (locale: string) => void;
|
|
2741
|
+
ConsentComponent: () => Promise<{
|
|
2742
|
+
getRenderState: () => Promise<FastlaneConsentRenderState>;
|
|
2743
|
+
}>;
|
|
2744
|
+
FastlaneWatermarkComponent: (options: {
|
|
2745
|
+
includeAdditionalInfo: boolean;
|
|
2746
|
+
}) => Promise<{
|
|
2747
|
+
render: (container: any) => null;
|
|
2748
|
+
}>;
|
|
2749
|
+
}
|
|
2750
|
+
interface FastlaneConsentRenderState {
|
|
2751
|
+
showConsent: boolean;
|
|
2752
|
+
defaultToggleState?: boolean;
|
|
2753
|
+
termsAndConditionsLink?: string;
|
|
2754
|
+
termsAndConditionsVersion?: string;
|
|
2755
|
+
privacyPolicyLink?: string;
|
|
2756
|
+
}
|
|
2757
|
+
interface FastlaneOptions {
|
|
2758
|
+
intendedExperience: 'externalProcessorCustomConsent';
|
|
2759
|
+
metadata?: {
|
|
2760
|
+
geoLocOverride?: string;
|
|
2761
|
+
};
|
|
2762
|
+
}
|
|
2763
|
+
interface AuthenticationFlowOptions {
|
|
2764
|
+
}
|
|
2765
|
+
interface CardPaymentSource {
|
|
2766
|
+
brand: string;
|
|
2767
|
+
expiry: string;
|
|
2768
|
+
lastDigits: string;
|
|
2769
|
+
name: string;
|
|
2770
|
+
billingAddress: FastlaneAddress;
|
|
2771
|
+
}
|
|
2772
|
+
/**
|
|
2773
|
+
* External types
|
|
2774
|
+
*/
|
|
2775
|
+
interface FastlaneShippingAddressSelectorResult {
|
|
2776
|
+
selectionChanged: boolean;
|
|
2777
|
+
selectedAddress: FastlaneShipping;
|
|
2778
|
+
}
|
|
2779
|
+
interface FastlaneAuthenticatedCustomerSucceeded {
|
|
2780
|
+
authenticationState: 'succeeded';
|
|
2781
|
+
profileData: FastlaneProfile;
|
|
2782
|
+
}
|
|
2783
|
+
interface FastlaneAuthenticatedCustomerFailed {
|
|
2784
|
+
authenticationState: 'failed' | 'canceled' | 'not_found';
|
|
2785
|
+
profileData: undefined;
|
|
2786
|
+
}
|
|
2787
|
+
type FastlaneAuthenticatedCustomerResult = FastlaneAuthenticatedCustomerSucceeded | FastlaneAuthenticatedCustomerFailed;
|
|
2788
|
+
interface FastlaneAddress {
|
|
2789
|
+
addressLine1: string;
|
|
2790
|
+
addressLine2: string;
|
|
2791
|
+
adminArea1: string;
|
|
2792
|
+
adminArea2: string;
|
|
2793
|
+
postalCode: string;
|
|
2794
|
+
countryCode: string;
|
|
2795
|
+
phone: {
|
|
2796
|
+
nationalNumber: string;
|
|
2797
|
+
countryCode: string;
|
|
2798
|
+
};
|
|
2799
|
+
}
|
|
2800
|
+
interface FastlaneShipping {
|
|
2801
|
+
name: {
|
|
2802
|
+
firstName: string;
|
|
2803
|
+
lastName: string;
|
|
2804
|
+
fullName: string;
|
|
2805
|
+
};
|
|
2806
|
+
address: FastlaneAddress;
|
|
2807
|
+
phoneNumber: {
|
|
2808
|
+
nationalNumber: string;
|
|
2809
|
+
countryCode: string;
|
|
2810
|
+
};
|
|
2811
|
+
}
|
|
2812
|
+
interface FastlaneProfile {
|
|
2813
|
+
name: {
|
|
2814
|
+
firstName: string;
|
|
2815
|
+
lastName: string;
|
|
2816
|
+
fullName: string;
|
|
2817
|
+
};
|
|
2818
|
+
shippingAddress: FastlaneShipping;
|
|
2819
|
+
card?: {
|
|
2820
|
+
id: string;
|
|
2821
|
+
paymentSource: {
|
|
2822
|
+
card: CardPaymentSource;
|
|
2823
|
+
};
|
|
2824
|
+
};
|
|
2825
|
+
}
|
|
2826
|
+
type FastlaneComponentConfiguration = {
|
|
2827
|
+
paymentType: 'fastlane';
|
|
2828
|
+
configuration: {
|
|
2829
|
+
fastlaneSessionId: string;
|
|
2830
|
+
email: string;
|
|
2831
|
+
tokenId: string;
|
|
2832
|
+
lastFour: string;
|
|
2833
|
+
brand: string;
|
|
2834
|
+
};
|
|
2835
|
+
};
|
|
2836
|
+
type FastlaneCardComponentConfiguration = {
|
|
2837
|
+
paymentType: 'card';
|
|
2838
|
+
configuration: {
|
|
2839
|
+
fastlaneConfiguration?: FastlaneSignupConfiguration;
|
|
2840
|
+
};
|
|
2841
|
+
};
|
|
2842
|
+
type FastlaneSignupConfiguration = FastlaneConsentRenderState & {
|
|
2843
|
+
fastlaneSessionId?: string;
|
|
2844
|
+
telephoneNumber?: string;
|
|
2845
|
+
};
|
|
2846
|
+
type FastlanePaymentMethodConfiguration = FastlaneComponentConfiguration | FastlaneCardComponentConfiguration;
|
|
2847
|
+
interface FastlaneSDKConfiguration {
|
|
2848
|
+
clientKey: string;
|
|
2849
|
+
environment: CoreConfiguration['environment'];
|
|
2850
|
+
locale?: 'en-US' | 'es-US' | 'fr-RS' | 'zh-US';
|
|
2851
|
+
analytics?: Pick<AnalyticsOptions, 'enabled'>;
|
|
2852
|
+
/**
|
|
2853
|
+
* Used to force the Fastlane SDK to return the consent details in case the shopper is not recognized.
|
|
2854
|
+
* Use-case: Developer is testing the flow in another country outside US, which would not get consent details.
|
|
2855
|
+
*
|
|
2856
|
+
* This configuration should not be used for 'live' environment
|
|
3017
2857
|
*/
|
|
3018
|
-
|
|
2858
|
+
forceConsentDetails?: boolean;
|
|
2859
|
+
}
|
|
2860
|
+
interface FastlaneConfiguration extends UIElementProps {
|
|
3019
2861
|
/**
|
|
3020
|
-
*
|
|
3021
|
-
*
|
|
3022
|
-
* @see {@link https://developer.paypal.com/sdk/js/configuration/#commit}
|
|
3023
|
-
* @default true
|
|
2862
|
+
* Card token ID, used to process the payment
|
|
3024
2863
|
*/
|
|
3025
|
-
|
|
2864
|
+
tokenId: string;
|
|
3026
2865
|
/**
|
|
3027
|
-
*
|
|
3028
|
-
*
|
|
3029
|
-
* @see {@link https://developer.paypal.com/sdk/js/configuration/#vault}
|
|
3030
|
-
* @default false
|
|
2866
|
+
* Fastlane session ID
|
|
3031
2867
|
*/
|
|
3032
|
-
|
|
2868
|
+
fastlaneSessionId: string;
|
|
3033
2869
|
/**
|
|
3034
|
-
*
|
|
3035
|
-
*
|
|
3036
|
-
* @see {@link https://developer.paypal.com/sdk/js/configuration/#locale}
|
|
3037
|
-
* @default undefined
|
|
2870
|
+
* Initial last four digits displayed once the Component is rendered
|
|
3038
2871
|
*/
|
|
3039
|
-
|
|
2872
|
+
lastFour: string;
|
|
3040
2873
|
/**
|
|
3041
|
-
*
|
|
3042
|
-
* If set, it will override the intent passed inside the 'configuration' object
|
|
3043
|
-
*
|
|
3044
|
-
* @see {@link https://developer.paypal.com/sdk/js/configuration/#intent}
|
|
3045
|
-
* @default undefined
|
|
2874
|
+
* Initial brand displayed once the Component is rendered
|
|
3046
2875
|
*/
|
|
3047
|
-
|
|
2876
|
+
brand: string;
|
|
3048
2877
|
/**
|
|
3049
|
-
*
|
|
3050
|
-
*
|
|
3051
|
-
* @see {@link https://developer.paypal.com/sdk/js/configuration/#data-csp-nonce}
|
|
3052
|
-
* @default undefined
|
|
2878
|
+
* Shopper's email (it will be used in the future to re-authenticate using Fastlane SDK within the Component)
|
|
3053
2879
|
*/
|
|
3054
|
-
|
|
3055
|
-
enableMessages?: boolean;
|
|
2880
|
+
email: string;
|
|
3056
2881
|
/**
|
|
3057
|
-
*
|
|
3058
|
-
* @
|
|
3059
|
-
* @default undefined
|
|
2882
|
+
* Used internally by Drop-in. Displays the brand images inside the Drop-in payment method header
|
|
2883
|
+
* @internal
|
|
3060
2884
|
*/
|
|
3061
|
-
|
|
2885
|
+
keepBrandsVisible?: boolean;
|
|
3062
2886
|
/**
|
|
3063
|
-
*
|
|
3064
|
-
*
|
|
3065
|
-
*
|
|
3066
|
-
* @see {@link https://developer.paypal.com/sdk/js/configuration/#buyer-country}
|
|
3067
|
-
* @default undefined
|
|
2887
|
+
* Property returned by the backend. Contains the list of brands supported by Fastlane component
|
|
2888
|
+
* @internal
|
|
3068
2889
|
*/
|
|
3069
|
-
|
|
2890
|
+
brands?: string[];
|
|
3070
2891
|
}
|
|
3071
|
-
/**
|
|
3072
|
-
* The intent for the transaction. This determines whether the funds are captured immediately, or later.
|
|
3073
|
-
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#intent}
|
|
3074
|
-
*/
|
|
3075
|
-
type Intent = 'sale' | 'capture' | 'authorize' | 'order' | 'tokenize';
|
|
3076
|
-
type FundingSource = 'paypal' | 'credit' | 'paylater' | 'venmo';
|
|
3077
2892
|
|
|
3078
2893
|
interface QRLoaderConfiguration extends UIElementProps {
|
|
3079
2894
|
/**
|
|
3080
2895
|
* Number of milliseconds that the component will wait in between status calls
|
|
2896
|
+
* @default 2_000
|
|
3081
2897
|
*/
|
|
3082
2898
|
delay?: number;
|
|
3083
2899
|
/**
|
|
3084
2900
|
* Number of minutes that the component should keep on loading
|
|
2901
|
+
* @default 15
|
|
3085
2902
|
*/
|
|
3086
2903
|
countdownTime?: number;
|
|
2904
|
+
/**
|
|
2905
|
+
* Number of milliseconds that the component will switch to throttled mode
|
|
2906
|
+
* @default 60_000
|
|
2907
|
+
*/
|
|
2908
|
+
throttleTime?: number;
|
|
2909
|
+
/**
|
|
2910
|
+
* Number of milliseconds that the component will wait in between status calls when in throttled mode
|
|
2911
|
+
* @default 10_000
|
|
2912
|
+
*/
|
|
2913
|
+
throttleInterval?: number;
|
|
3087
2914
|
type?: string;
|
|
3088
2915
|
brandLogo?: string;
|
|
3089
2916
|
buttonLabel?: string;
|
|
@@ -3100,369 +2927,681 @@ interface QRLoaderConfiguration extends UIElementProps {
|
|
|
3100
2927
|
interface PixConfiguration extends QRLoaderConfiguration {
|
|
3101
2928
|
personalDetailsRequired?: boolean;
|
|
3102
2929
|
}
|
|
3103
|
-
interface PixElementData {
|
|
3104
|
-
paymentMethod: {
|
|
3105
|
-
type: 'pix';
|
|
3106
|
-
};
|
|
3107
|
-
shopperName?: {
|
|
3108
|
-
firstName: string;
|
|
3109
|
-
lastName: string;
|
|
3110
|
-
};
|
|
3111
|
-
socialSecurityNumber?: string;
|
|
2930
|
+
interface PixElementData {
|
|
2931
|
+
paymentMethod: {
|
|
2932
|
+
type: 'pix';
|
|
2933
|
+
};
|
|
2934
|
+
shopperName?: {
|
|
2935
|
+
firstName: string;
|
|
2936
|
+
lastName: string;
|
|
2937
|
+
};
|
|
2938
|
+
socialSecurityNumber?: string;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
interface PreAuthorizedDebitCanadaConfiguration extends UIElementProps {
|
|
2942
|
+
/**
|
|
2943
|
+
* Adds placeholder text to the input fields
|
|
2944
|
+
*/
|
|
2945
|
+
placeholders?: PreAuthorizedDebitCanadaPlaceholders;
|
|
2946
|
+
/**
|
|
2947
|
+
* Display the contextual text underneath the input field. Disable it if you are using placeholders instead
|
|
2948
|
+
* @default true
|
|
2949
|
+
*/
|
|
2950
|
+
showContextualElement?: boolean;
|
|
2951
|
+
/**
|
|
2952
|
+
* Enables storing the payment method using the Checkbox. Used for Advanced flow only
|
|
2953
|
+
* @default false
|
|
2954
|
+
*/
|
|
2955
|
+
enableStoreDetails?: boolean;
|
|
2956
|
+
/**
|
|
2957
|
+
* 'storedPaymentMethodId' coming from a stored PreAuthorizedDebitCanada in /paymentMethods response
|
|
2958
|
+
* @internal
|
|
2959
|
+
*/
|
|
2960
|
+
storedPaymentMethodId?: string;
|
|
2961
|
+
/**
|
|
2962
|
+
* 'lastFour' coming from a stored PreAuthorizedDebitCanada in /paymentMethods response
|
|
2963
|
+
* @internal
|
|
2964
|
+
*/
|
|
2965
|
+
lastFour?: string;
|
|
2966
|
+
/**
|
|
2967
|
+
* 'label' coming from a stored PreAuthorizedDebitCanada in /paymentMethods response
|
|
2968
|
+
* @internal
|
|
2969
|
+
*/
|
|
2970
|
+
label?: string;
|
|
2971
|
+
}
|
|
2972
|
+
interface PreAuthorizedDebitCanadaPlaceholders {
|
|
2973
|
+
ownerName?: string;
|
|
2974
|
+
bankAccountNumber?: string;
|
|
2975
|
+
bankCode?: string;
|
|
2976
|
+
bankLocationId?: string;
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
interface RedirectConfiguration extends UIElementProps {
|
|
2980
|
+
type?: string;
|
|
2981
|
+
url?: string;
|
|
2982
|
+
data?: {
|
|
2983
|
+
[key: string]: any;
|
|
2984
|
+
};
|
|
2985
|
+
method?: 'GET' | 'POST';
|
|
2986
|
+
beforeRedirect?: (resolve: any, reject: any, url: any) => Promise<void>;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
interface SepaElementData {
|
|
2990
|
+
paymentMethod: {
|
|
2991
|
+
type: string;
|
|
2992
|
+
iban: string;
|
|
2993
|
+
ownerName: string;
|
|
2994
|
+
};
|
|
2995
|
+
}
|
|
2996
|
+
interface SepaConfiguration extends UIElementProps {
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
interface SegmentedControlOption<T> {
|
|
3000
|
+
label: string;
|
|
3001
|
+
value: T;
|
|
3002
|
+
id: string;
|
|
3003
|
+
controls: string;
|
|
3004
|
+
htmlProps?: {};
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
type Mandate = {
|
|
3008
|
+
amount: string;
|
|
3009
|
+
frequency: 'monthly' | 'weekly' | 'adhoc';
|
|
3010
|
+
amountRule: 'max' | 'exact';
|
|
3011
|
+
};
|
|
3012
|
+
|
|
3013
|
+
type UpiType = TxVariants.upi_qr | TxVariants.upi_intent | TxVariants.upi_collect;
|
|
3014
|
+
type UpiMode = 'vpa' | 'qrCode' | 'intent';
|
|
3015
|
+
type App = {
|
|
3016
|
+
id: string;
|
|
3017
|
+
name: string;
|
|
3018
|
+
type?: UpiType;
|
|
3019
|
+
};
|
|
3020
|
+
type UpiPaymentData = {
|
|
3021
|
+
paymentMethod: {
|
|
3022
|
+
type: UpiType;
|
|
3023
|
+
virtualPaymentAddress?: string;
|
|
3024
|
+
appId?: string;
|
|
3025
|
+
};
|
|
3026
|
+
};
|
|
3027
|
+
interface UPIConfiguration extends UIElementProps {
|
|
3028
|
+
defaultMode?: UpiMode;
|
|
3029
|
+
mandate?: Mandate;
|
|
3030
|
+
apps?: Array<App>;
|
|
3031
|
+
/**
|
|
3032
|
+
* Redirect url for upi intent apps
|
|
3033
|
+
* @internal
|
|
3034
|
+
*/
|
|
3035
|
+
url?: string;
|
|
3036
|
+
/**
|
|
3037
|
+
* @internal
|
|
3038
|
+
*/
|
|
3039
|
+
segmentedControlOptions?: Array<SegmentedControlOption<UpiMode>>;
|
|
3040
|
+
paymentData?: string;
|
|
3041
|
+
qrCodeData?: string;
|
|
3042
|
+
brandLogo?: string;
|
|
3043
|
+
/**
|
|
3044
|
+
* The duration in minutes before the await/QR code expires.
|
|
3045
|
+
*/
|
|
3046
|
+
countdownTime?: number;
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
declare enum PayToIdentifierEnum {
|
|
3050
|
+
phone = "phone",
|
|
3051
|
+
email = "email",
|
|
3052
|
+
abn = "abn",
|
|
3053
|
+
orgid = "orgid"
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
interface PayIdFormData {
|
|
3057
|
+
email: string;
|
|
3058
|
+
phone: string;
|
|
3059
|
+
abn: string;
|
|
3060
|
+
orgid: string;
|
|
3061
|
+
firstName: string;
|
|
3062
|
+
lastName: string;
|
|
3063
|
+
phoneNumber?: string;
|
|
3064
|
+
phonePrefix?: string;
|
|
3065
|
+
selectedIdentifier: PayToIdentifierEnum;
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
interface BSBFormData {
|
|
3069
|
+
bsb: string;
|
|
3070
|
+
bankAccountNumber: string;
|
|
3071
|
+
firstName: string;
|
|
3072
|
+
lastName: string;
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
type PayToInputOption = 'payid-option' | 'bsb-option';
|
|
3076
|
+
type PayToComponentData = {
|
|
3077
|
+
selectedInput: PayToInputOption;
|
|
3078
|
+
};
|
|
3079
|
+
|
|
3080
|
+
type MandateFrequencyType = 'adhoc' | 'daily' | 'weekly' | 'biWeekly' | 'monthly' | 'quarterly' | 'halfYearly' | 'yearly';
|
|
3081
|
+
interface MandateType {
|
|
3082
|
+
amount: string;
|
|
3083
|
+
amountRule: string;
|
|
3084
|
+
frequency: MandateFrequencyType;
|
|
3085
|
+
startsAt?: string;
|
|
3086
|
+
endsAt: string;
|
|
3087
|
+
remarks: string;
|
|
3088
|
+
count?: string;
|
|
3089
|
+
}
|
|
3090
|
+
type PayToPlaceholdersType = {
|
|
3091
|
+
[K in keyof PayToData]: string;
|
|
3092
|
+
};
|
|
3093
|
+
interface PayToConfiguration extends UIElementProps {
|
|
3094
|
+
paymentData?: any;
|
|
3095
|
+
data?: PayToData;
|
|
3096
|
+
placeholders?: PayToPlaceholdersType;
|
|
3097
|
+
mandate?: MandateType;
|
|
3098
|
+
payee?: string;
|
|
3099
|
+
}
|
|
3100
|
+
interface PayToData extends PayIdFormData, BSBFormData, PayToComponentData {
|
|
3101
|
+
shopperAccountIdentifier: string;
|
|
3112
3102
|
}
|
|
3113
3103
|
|
|
3114
|
-
interface
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
placeholders?: PreAuthorizedDebitCanadaPlaceholders;
|
|
3119
|
-
/**
|
|
3120
|
-
* Display the contextual text underneath the input field. Disable it if you are using placeholders instead
|
|
3121
|
-
* @default true
|
|
3122
|
-
*/
|
|
3123
|
-
showContextualElement?: boolean;
|
|
3124
|
-
/**
|
|
3125
|
-
* Enables storing the payment method using the Checkbox. Used for Advanced flow only
|
|
3126
|
-
* @default false
|
|
3127
|
-
*/
|
|
3128
|
-
enableStoreDetails?: boolean;
|
|
3129
|
-
/**
|
|
3130
|
-
* 'storedPaymentMethodId' coming from a stored PreAuthorizedDebitCanada in /paymentMethods response
|
|
3131
|
-
* @internal
|
|
3132
|
-
*/
|
|
3133
|
-
storedPaymentMethodId?: string;
|
|
3134
|
-
/**
|
|
3135
|
-
* 'lastFour' coming from a stored PreAuthorizedDebitCanada in /paymentMethods response
|
|
3136
|
-
* @internal
|
|
3137
|
-
*/
|
|
3138
|
-
lastFour?: string;
|
|
3139
|
-
/**
|
|
3140
|
-
* 'label' coming from a stored PreAuthorizedDebitCanada in /paymentMethods response
|
|
3141
|
-
* @internal
|
|
3142
|
-
*/
|
|
3143
|
-
label?: string;
|
|
3104
|
+
interface IssuerItem {
|
|
3105
|
+
id: string;
|
|
3106
|
+
name: string;
|
|
3107
|
+
icon?: string;
|
|
3144
3108
|
}
|
|
3145
|
-
interface
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
bankCode?: string;
|
|
3149
|
-
bankLocationId?: string;
|
|
3109
|
+
interface TermsAndConditions {
|
|
3110
|
+
translationKey: string;
|
|
3111
|
+
urls: string[];
|
|
3150
3112
|
}
|
|
3151
3113
|
|
|
3152
|
-
interface
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3114
|
+
interface IssuerListConfiguration extends UIElementProps {
|
|
3115
|
+
showImage?: boolean;
|
|
3116
|
+
placeholder?: string;
|
|
3117
|
+
issuers?: IssuerItem[];
|
|
3118
|
+
highlightedIssuers?: string[];
|
|
3119
|
+
showPaymentMethodItemImages?: boolean;
|
|
3120
|
+
termsAndConditions?: TermsAndConditions;
|
|
3121
|
+
showContextualElement?: boolean;
|
|
3160
3122
|
}
|
|
3161
|
-
|
|
3162
|
-
interface SepaElementData {
|
|
3123
|
+
interface IssuerListData {
|
|
3163
3124
|
paymentMethod: {
|
|
3164
3125
|
type: string;
|
|
3165
|
-
|
|
3166
|
-
ownerName: string;
|
|
3126
|
+
issuer: string;
|
|
3167
3127
|
};
|
|
3168
3128
|
}
|
|
3169
|
-
interface SepaConfiguration extends UIElementProps {
|
|
3170
|
-
}
|
|
3171
3129
|
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
THREEDS2_ACTION_IS_MISSING_PAYMENT_DATA = "700",
|
|
3176
|
-
/** Missing 'token' property from threeDS2 action */
|
|
3177
|
-
THREEDS2_ACTION_IS_MISSING_TOKEN = "701",
|
|
3178
|
-
/** Decoded token is missing a valid threeDSMethodURL property */
|
|
3179
|
-
THREEDS2_TOKEN_IS_MISSING_THREEDSMETHODURL = "702",
|
|
3180
|
-
/**
|
|
3181
|
-
* Decoded token is missing one or more of the following properties:
|
|
3182
|
-
* fingerprint: (threeDSMethodNotificationURL | postMessageDomain | threeDSServerTransID)
|
|
3183
|
-
* challenge: (acsTransID | messageVersion | threeDSServerTransID)
|
|
3184
|
-
*/
|
|
3185
|
-
THREEDS2_TOKEN_IS_MISSING_OTHER_PROPS = "703",
|
|
3186
|
-
/** Token decoding or parsing has failed. ('not base64', 'malformed URI sequence' or 'Could not JSON parse token') */
|
|
3187
|
-
THREEDS2_TOKEN_DECODE_OR_PARSING_FAILED = "704",
|
|
3188
|
-
/** 3DS2 process has timed out */
|
|
3189
|
-
THREEDS2_TIMEOUT = "705",
|
|
3190
|
-
/** Decoded token is missing a valid acsURL property */
|
|
3191
|
-
THREEDS2_TOKEN_IS_MISSING_ACSURL = "800",
|
|
3192
|
-
/** Challenge has resulted in an error (no transStatus could be retrieved by the backend) */
|
|
3193
|
-
THREEDS2_NO_TRANSSTATUS = "801",
|
|
3194
|
-
/** callSubmit3DS2Fingerprint has received a response indicating either a "frictionless" flow, or a "refused" response, but without a details object */
|
|
3195
|
-
THREEDS2_NO_DETAILS_FOR_FRICTIONLESS_OR_REFUSED = "802",
|
|
3196
|
-
/** callSubmit3DS2Fingerprint cannot find a component to handle the action response */
|
|
3197
|
-
THREEDS2_NO_COMPONENT_FOR_ACTION = "803",
|
|
3198
|
-
/** callSubmit3DS2Fingerprint has received a response indicating a "challenge" but without an action object */
|
|
3199
|
-
THREEDS2_NO_ACTION_FOR_CHALLENGE = "804",
|
|
3200
|
-
/** The challenge process has happened, an object has been returned, parsed & accepted as legit, but the result prop on that object is either missing or doesn't have a transStatus prop */
|
|
3201
|
-
THREEDS2_CHALLENGE_RESOLVED_WITHOUT_RESULT_PROP = "805"
|
|
3130
|
+
interface CompanyDetailsSchema {
|
|
3131
|
+
name?: string;
|
|
3132
|
+
registrationNumber?: string;
|
|
3202
3133
|
}
|
|
3203
3134
|
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3135
|
+
type OpenInvoiceAddressSpecification = AddressSpecifications & {
|
|
3136
|
+
allowedCountries?: string[];
|
|
3137
|
+
};
|
|
3138
|
+
interface OpenInvoiceVisibility {
|
|
3139
|
+
companyDetails?: FieldsetVisibility;
|
|
3140
|
+
personalDetails?: FieldsetVisibility;
|
|
3141
|
+
billingAddress?: FieldsetVisibility;
|
|
3142
|
+
deliveryAddress?: FieldsetVisibility;
|
|
3143
|
+
bankAccount?: FieldsetVisibility;
|
|
3144
|
+
}
|
|
3145
|
+
interface BankDetailsSchema {
|
|
3146
|
+
countryCode?: string;
|
|
3147
|
+
ibanNumber?: any;
|
|
3148
|
+
ownerName?: string;
|
|
3149
|
+
}
|
|
3150
|
+
interface OpenInvoiceProps extends UIElementProps {
|
|
3151
|
+
allowedCountries?: string[];
|
|
3152
|
+
consentCheckboxLabel: any;
|
|
3153
|
+
countryCode?: string;
|
|
3154
|
+
data: {
|
|
3155
|
+
companyDetails?: CompanyDetailsSchema;
|
|
3156
|
+
personalDetails?: PersonalDetailsSchema;
|
|
3157
|
+
billingAddress?: AddressData;
|
|
3158
|
+
deliveryAddress?: AddressData;
|
|
3159
|
+
bankAccount?: BankDetailsSchema;
|
|
3211
3160
|
};
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3161
|
+
onChange: (state: any, element?: UIElement) => void;
|
|
3162
|
+
payButton: any;
|
|
3163
|
+
visibility?: OpenInvoiceVisibility;
|
|
3164
|
+
personalDetailsRequiredFields?: string[];
|
|
3165
|
+
billingAddressRequiredFields?: string[];
|
|
3166
|
+
billingAddressSpecification?: OpenInvoiceAddressSpecification;
|
|
3167
|
+
deliveryAddressRequiredFields?: string[];
|
|
3168
|
+
deliveryAddressSpecification?: OpenInvoiceAddressSpecification;
|
|
3169
|
+
setComponentRef?: (ref: any) => void;
|
|
3219
3170
|
}
|
|
3220
|
-
interface
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3171
|
+
interface OpenInvoiceStateData {
|
|
3172
|
+
companyDetails?: CompanyDetailsSchema;
|
|
3173
|
+
personalDetails?: PersonalDetailsSchema;
|
|
3174
|
+
billingAddress?: AddressData;
|
|
3175
|
+
deliveryAddress?: AddressData;
|
|
3176
|
+
bankAccount?: BankDetailsSchema;
|
|
3177
|
+
consentCheckbox?: boolean;
|
|
3224
3178
|
}
|
|
3225
|
-
interface
|
|
3226
|
-
|
|
3227
|
-
|
|
3179
|
+
interface OpenInvoiceStateError {
|
|
3180
|
+
consentCheckbox?: boolean | GenericError;
|
|
3181
|
+
companyDetails?: boolean | ValidationRuleErrorObj;
|
|
3182
|
+
billingAddress?: boolean | ValidationRuleErrorObj;
|
|
3183
|
+
deliveryAddress?: boolean | ValidationRuleErrorObj;
|
|
3184
|
+
personalDetails?: boolean | ValidationRuleErrorObj;
|
|
3185
|
+
bankAccount?: boolean | object;
|
|
3228
3186
|
}
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
acsTransID: string;
|
|
3237
|
-
messageVersion: string;
|
|
3238
|
-
threeDSServerTransID: string;
|
|
3239
|
-
messageType: string;
|
|
3240
|
-
challengeWindowSize: string;
|
|
3187
|
+
interface OpenInvoiceStateValid {
|
|
3188
|
+
consentCheckbox?: boolean;
|
|
3189
|
+
companyDetails?: boolean;
|
|
3190
|
+
billingAddress?: boolean;
|
|
3191
|
+
deliveryAddress?: boolean;
|
|
3192
|
+
personalDetails?: boolean;
|
|
3193
|
+
bankAccount?: boolean;
|
|
3241
3194
|
}
|
|
3242
|
-
interface
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3195
|
+
interface OpenInvoiceActiveFieldsets {
|
|
3196
|
+
companyDetails: boolean;
|
|
3197
|
+
personalDetails: boolean;
|
|
3198
|
+
billingAddress: boolean;
|
|
3199
|
+
deliveryAddress: boolean;
|
|
3200
|
+
bankAccount: boolean;
|
|
3247
3201
|
}
|
|
3248
|
-
interface
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3202
|
+
interface OpenInvoiceFieldsetsRefs {
|
|
3203
|
+
companyDetails?: any;
|
|
3204
|
+
personalDetails?: any;
|
|
3205
|
+
billingAddress?: any;
|
|
3206
|
+
deliveryAddress?: any;
|
|
3207
|
+
bankAccount?: any;
|
|
3253
3208
|
}
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3209
|
+
|
|
3210
|
+
interface OpenInvoiceConfiguration extends Partial<OpenInvoiceProps> {
|
|
3211
|
+
consentCheckboxLabel?: h.JSX.Element;
|
|
3212
|
+
billingAddressRequiredFields?: string[];
|
|
3213
|
+
billingAddressSpecification?: AddressSpecifications;
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
interface AwaitComponentProps {
|
|
3217
|
+
type: string;
|
|
3218
|
+
delay?: number;
|
|
3219
|
+
countdownTime: number;
|
|
3220
|
+
throttleTime: number;
|
|
3221
|
+
showCountdownTimer: boolean;
|
|
3222
|
+
shouldRedirectAutomatically?: boolean;
|
|
3223
|
+
throttleInterval: number;
|
|
3224
|
+
paymentData?: string;
|
|
3225
|
+
url?: string;
|
|
3226
|
+
classNameModifiers?: string[];
|
|
3227
|
+
clientKey: string;
|
|
3228
|
+
onError: (error: AdyenCheckoutError) => void;
|
|
3229
|
+
onComplete: (status: AdditionalDetailsData) => void;
|
|
3230
|
+
brandLogo?: string;
|
|
3231
|
+
messageText?: string;
|
|
3232
|
+
awaitText: string;
|
|
3233
|
+
onActionHandled?: (rtnObj: ActionHandledReturnObject) => void;
|
|
3234
|
+
pollStatus?: () => Promise<RawPaymentResponse | RawPaymentStatusResponse>;
|
|
3235
|
+
instructions?: string | (() => h.JSX.Element);
|
|
3236
|
+
endSlot?: () => h.JSX.Element;
|
|
3237
|
+
amount?: PaymentAmount;
|
|
3238
|
+
showAmount?: boolean;
|
|
3259
3239
|
}
|
|
3260
|
-
interface
|
|
3240
|
+
interface AwaitConfiguration extends UIElementProps {
|
|
3241
|
+
paymentData?: string;
|
|
3242
|
+
paymentMethoType?: string;
|
|
3261
3243
|
type?: string;
|
|
3262
|
-
|
|
3263
|
-
extraInfo?: string;
|
|
3264
|
-
eventDataRaw?: string;
|
|
3265
|
-
}
|
|
3266
|
-
interface ThreeDS2Token {
|
|
3267
|
-
acsTransID?: string;
|
|
3268
|
-
acsURL?: string;
|
|
3269
|
-
messageVersion?: string;
|
|
3270
|
-
threeDSNotificationURL?: string;
|
|
3271
|
-
threeDSServerTransID?: string;
|
|
3272
|
-
threeDSMethodNotificationURL?: string;
|
|
3273
|
-
threeDSMethodUrl?: string;
|
|
3244
|
+
url?: string;
|
|
3274
3245
|
}
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3246
|
+
|
|
3247
|
+
interface RiskModuleOptions {
|
|
3248
|
+
enabled: boolean;
|
|
3249
|
+
onComplete?: (data: any) => void;
|
|
3250
|
+
onError?: (error: any) => void;
|
|
3251
|
+
node?: string;
|
|
3280
3252
|
}
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
details?: Record<string, string>;
|
|
3285
|
-
};
|
|
3286
|
-
type CheckoutRedirectAction = {
|
|
3287
|
-
type: 'redirect';
|
|
3288
|
-
data: Record<string, string>;
|
|
3289
|
-
method: string;
|
|
3290
|
-
paymentData: string;
|
|
3291
|
-
};
|
|
3292
|
-
type CheckoutThreeDS2Action = {
|
|
3293
|
-
type: 'threeDS2';
|
|
3294
|
-
token: string;
|
|
3295
|
-
subtype: string;
|
|
3296
|
-
authorisationToken: string;
|
|
3297
|
-
};
|
|
3298
|
-
interface FingerprintResolveData {
|
|
3299
|
-
data: {
|
|
3300
|
-
[key: string]: string;
|
|
3301
|
-
paymentData: string;
|
|
3302
|
-
};
|
|
3253
|
+
interface RiskModuleProps extends BaseElementProps {
|
|
3254
|
+
risk: RiskModuleOptions;
|
|
3255
|
+
loadingContext: string;
|
|
3303
3256
|
}
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3257
|
+
declare class RiskElement extends BaseElement<RiskModuleProps> {
|
|
3258
|
+
static type: string;
|
|
3259
|
+
static defaultProps: {
|
|
3260
|
+
risk: {
|
|
3261
|
+
enabled: boolean;
|
|
3262
|
+
onComplete: () => void;
|
|
3263
|
+
onError: () => void;
|
|
3264
|
+
node: string;
|
|
3308
3265
|
};
|
|
3309
|
-
paymentData: string;
|
|
3310
3266
|
};
|
|
3267
|
+
private nodeRiskContainer;
|
|
3268
|
+
constructor(checkout: ICore, props?: any);
|
|
3269
|
+
formatProps(props: any): any;
|
|
3270
|
+
onComplete: (result: any) => void;
|
|
3271
|
+
onError: (error: any) => void;
|
|
3272
|
+
get isValid(): any;
|
|
3273
|
+
get data(): any;
|
|
3274
|
+
get enabled(): boolean;
|
|
3275
|
+
cleanUp: () => void;
|
|
3276
|
+
componentWillUnmount(): void;
|
|
3277
|
+
render(): h.JSX.Element;
|
|
3311
3278
|
}
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
};
|
|
3279
|
+
|
|
3280
|
+
interface DisclaimerMsgObject {
|
|
3281
|
+
message: string;
|
|
3282
|
+
linkText: string;
|
|
3283
|
+
link: string;
|
|
3318
3284
|
}
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3285
|
+
|
|
3286
|
+
interface SFError {
|
|
3287
|
+
isValid?: boolean;
|
|
3288
|
+
errorMessage?: string;
|
|
3289
|
+
errorI18n?: string;
|
|
3290
|
+
error: string;
|
|
3291
|
+
rootNode: HTMLElement;
|
|
3292
|
+
detectedBrands?: string[];
|
|
3326
3293
|
}
|
|
3327
|
-
interface
|
|
3328
|
-
|
|
3329
|
-
message: string;
|
|
3294
|
+
interface SFStateErrorObj {
|
|
3295
|
+
[key: string]: SFError;
|
|
3330
3296
|
}
|
|
3331
3297
|
|
|
3332
|
-
interface
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3298
|
+
interface ValidationRuleErrorObj {
|
|
3299
|
+
[key: string]: ValidationRuleResult;
|
|
3300
|
+
}
|
|
3301
|
+
interface AriaAttributes {
|
|
3302
|
+
'aria-relevant'?: 'additions' | 'all' | 'removals' | 'text' | 'additions text';
|
|
3303
|
+
'aria-live'?: 'off' | 'polite' | 'assertive';
|
|
3304
|
+
'aria-atomic'?: 'true' | 'false';
|
|
3305
|
+
}
|
|
3306
|
+
interface SRPanelProps extends BaseElementProps {
|
|
3307
|
+
enabled?: boolean;
|
|
3308
|
+
node?: string;
|
|
3309
|
+
showPanel?: boolean;
|
|
3310
|
+
moveFocus?: boolean;
|
|
3311
|
+
id?: string;
|
|
3312
|
+
ariaAttributes?: AriaAttributes;
|
|
3313
|
+
}
|
|
3314
|
+
type SRPanelConfig = Pick<SRPanelProps, 'enabled' | 'node' | 'showPanel' | 'moveFocus' | 'id' | 'ariaAttributes'>;
|
|
3315
|
+
interface GenericError {
|
|
3316
|
+
isValid: boolean;
|
|
3317
|
+
errorMessage: string;
|
|
3318
|
+
error: string;
|
|
3338
3319
|
}
|
|
3339
3320
|
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3321
|
+
/**
|
|
3322
|
+
* A panel meant to hold messages that will be read out by ScreenReaders on an aria-live="polite" basis
|
|
3323
|
+
* Expects a string or string array of message to add to the panel to be read out
|
|
3324
|
+
* For testing purposes can be made visible
|
|
3325
|
+
*/
|
|
3326
|
+
declare class SRPanel extends BaseElement<SRPanelProps> {
|
|
3327
|
+
static type: string;
|
|
3328
|
+
static defaultProps: Partial<SRPanelProps>;
|
|
3329
|
+
private readonly srPanelContainer;
|
|
3330
|
+
private readonly id;
|
|
3331
|
+
private readonly showPanel;
|
|
3332
|
+
private readonly _enabled;
|
|
3333
|
+
private readonly _moveFocus;
|
|
3334
|
+
private componentRef;
|
|
3335
|
+
constructor(checkout: ICore, props?: SRPanelProps);
|
|
3336
|
+
setComponentRef: (ref: any) => void;
|
|
3337
|
+
get enabled(): boolean;
|
|
3338
|
+
get moveFocus(): boolean;
|
|
3339
|
+
setAriaProps(ariaAttributes: AriaAttributes): void;
|
|
3340
|
+
setMessages: (messages: string[] | string) => void;
|
|
3341
|
+
render(): h.JSX.Element;
|
|
3342
|
+
}
|
|
3345
3343
|
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
type UpiPaymentData = {
|
|
3354
|
-
paymentMethod: {
|
|
3355
|
-
type: UpiType;
|
|
3356
|
-
virtualPaymentAddress?: string;
|
|
3357
|
-
appId?: string;
|
|
3344
|
+
interface BaseElementProps {
|
|
3345
|
+
order?: Order;
|
|
3346
|
+
modules?: {
|
|
3347
|
+
srPanel?: SRPanel;
|
|
3348
|
+
analytics?: IAnalytics;
|
|
3349
|
+
resources?: Resources;
|
|
3350
|
+
risk?: RiskElement;
|
|
3358
3351
|
};
|
|
3359
|
-
};
|
|
3360
|
-
interface UPIConfiguration extends UIElementProps {
|
|
3361
|
-
defaultMode?: UpiMode;
|
|
3362
|
-
mandate?: Mandate;
|
|
3363
|
-
apps?: Array<App>;
|
|
3364
3352
|
/**
|
|
3365
|
-
*
|
|
3353
|
+
* Identifies if the Element is the DropIn element
|
|
3354
|
+
*/
|
|
3355
|
+
isDropin?: boolean;
|
|
3356
|
+
}
|
|
3357
|
+
interface IBaseElement {
|
|
3358
|
+
data: object;
|
|
3359
|
+
state: any;
|
|
3360
|
+
props: any;
|
|
3361
|
+
_id: string;
|
|
3362
|
+
_component: any;
|
|
3363
|
+
render(): ComponentChild | Error;
|
|
3364
|
+
mount(domNode: HTMLElement | string): IBaseElement;
|
|
3365
|
+
update(props: any): IBaseElement;
|
|
3366
|
+
unmount(): IBaseElement;
|
|
3367
|
+
remove(): void;
|
|
3368
|
+
activate(): void;
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
type PayButtonFunctionProps = Omit<PayButtonProps, 'amount'>;
|
|
3372
|
+
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
3373
|
+
type StatusFromAction = 'redirect' | 'loading' | 'custom';
|
|
3374
|
+
type UIElementProps = {
|
|
3375
|
+
paymentMethodId?: string;
|
|
3376
|
+
storedPaymentMethodId?: string;
|
|
3377
|
+
} & BaseElementProps & CoreCallbacks & {
|
|
3378
|
+
environment?: string;
|
|
3379
|
+
session?: Session;
|
|
3380
|
+
onComplete?: (state: any, element: UIElement) => void;
|
|
3381
|
+
isInstantPayment?: boolean;
|
|
3382
|
+
/**
|
|
3383
|
+
* Flags if the element is Stored payment method
|
|
3384
|
+
* @internal
|
|
3385
|
+
*/
|
|
3386
|
+
isStoredPaymentMethod?: boolean;
|
|
3387
|
+
/**
|
|
3388
|
+
* Flag if the element is Stored payment method.
|
|
3389
|
+
* Perhaps can be deprecated and we use the one above?
|
|
3390
|
+
* @internal
|
|
3391
|
+
*/
|
|
3392
|
+
oneClick?: boolean;
|
|
3393
|
+
/**
|
|
3394
|
+
* Stored payment method id
|
|
3395
|
+
* @internal
|
|
3396
|
+
*/
|
|
3397
|
+
storedPaymentMethodId?: string;
|
|
3398
|
+
/**
|
|
3399
|
+
* Status set when creating the Component from action
|
|
3400
|
+
* @internal
|
|
3401
|
+
*/
|
|
3402
|
+
statusType?: StatusFromAction;
|
|
3403
|
+
type?: string;
|
|
3404
|
+
name?: string;
|
|
3405
|
+
icon?: string;
|
|
3406
|
+
amount?: PaymentAmount;
|
|
3407
|
+
secondaryAmount?: PaymentAmountExtended;
|
|
3408
|
+
/**
|
|
3409
|
+
* Show/Hide pay button
|
|
3410
|
+
* @defaultValue true
|
|
3411
|
+
*/
|
|
3412
|
+
showPayButton?: boolean;
|
|
3413
|
+
/** @internal */
|
|
3414
|
+
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
3415
|
+
/** @internal */
|
|
3416
|
+
loadingContext?: string;
|
|
3417
|
+
/** @internal */
|
|
3418
|
+
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
3419
|
+
/** @internal */
|
|
3420
|
+
clientKey?: string;
|
|
3421
|
+
/** @internal */
|
|
3422
|
+
elementRef?: any;
|
|
3423
|
+
/** @internal */
|
|
3424
|
+
i18n?: Language;
|
|
3425
|
+
/**
|
|
3426
|
+
* The shopper’s issuer account label. It can be available for stored payment method
|
|
3366
3427
|
* @internal
|
|
3367
3428
|
*/
|
|
3368
|
-
|
|
3429
|
+
label?: string;
|
|
3369
3430
|
/**
|
|
3431
|
+
* Returned after the payments call, when an action is returned. It represents the payment method tx variant
|
|
3432
|
+
* that was used for the payment
|
|
3370
3433
|
* @internal
|
|
3371
3434
|
*/
|
|
3372
|
-
|
|
3373
|
-
paymentData?: string;
|
|
3374
|
-
qrCodeData?: string;
|
|
3375
|
-
brandLogo?: string;
|
|
3435
|
+
paymentMethodType?: string;
|
|
3376
3436
|
/**
|
|
3377
|
-
*
|
|
3437
|
+
* Reference to the action object found in a /payments response. This, in most cases, is passed on to the onActionHandled callback
|
|
3378
3438
|
*/
|
|
3379
|
-
|
|
3439
|
+
originalAction?: PaymentAction;
|
|
3440
|
+
};
|
|
3441
|
+
type UIElementStatus = 'ready' | 'loading' | 'error' | 'success';
|
|
3442
|
+
interface ComponentMethodsRef {
|
|
3443
|
+
showValidation?: () => void;
|
|
3444
|
+
setStatus?(status: UIElementStatus): void;
|
|
3380
3445
|
}
|
|
3381
3446
|
|
|
3382
|
-
declare
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3447
|
+
declare class OpenInvoiceContainer extends UIElement<OpenInvoiceConfiguration> {
|
|
3448
|
+
protected static defaultProps: Partial<OpenInvoiceConfiguration>;
|
|
3449
|
+
/**
|
|
3450
|
+
* Returns whether the component state is valid or not
|
|
3451
|
+
*/
|
|
3452
|
+
get isValid(): boolean;
|
|
3453
|
+
/**
|
|
3454
|
+
* Formats props on construction time
|
|
3455
|
+
*/
|
|
3456
|
+
formatProps(props: any): any;
|
|
3457
|
+
/**
|
|
3458
|
+
* Formats the component data output
|
|
3459
|
+
*/
|
|
3460
|
+
formatData(): any;
|
|
3461
|
+
protected componentToRender(): h.JSX.Element;
|
|
3387
3462
|
}
|
|
3388
3463
|
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
orgid: string;
|
|
3394
|
-
firstName: string;
|
|
3395
|
-
lastName: string;
|
|
3396
|
-
phoneNumber?: string;
|
|
3397
|
-
phonePrefix?: string;
|
|
3398
|
-
selectedIdentifier: PayToIdentifierEnum;
|
|
3464
|
+
declare class AfterPay extends OpenInvoiceContainer {
|
|
3465
|
+
static type: TxVariants;
|
|
3466
|
+
static txVariants: TxVariants[];
|
|
3467
|
+
formatProps(props: any): any;
|
|
3399
3468
|
}
|
|
3400
3469
|
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
lastName: string;
|
|
3470
|
+
declare class AfterPayB2B extends OpenInvoiceContainer {
|
|
3471
|
+
static type: TxVariants;
|
|
3472
|
+
protected static defaultProps: Partial<OpenInvoiceConfiguration>;
|
|
3473
|
+
formatProps(props: any): any;
|
|
3406
3474
|
}
|
|
3407
3475
|
|
|
3408
|
-
|
|
3409
|
-
type
|
|
3410
|
-
|
|
3411
|
-
|
|
3476
|
+
declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
3477
|
+
static type: string;
|
|
3478
|
+
/**
|
|
3479
|
+
* Formats the component data output
|
|
3480
|
+
*/
|
|
3481
|
+
formatData(): {
|
|
3482
|
+
paymentMethod: {
|
|
3483
|
+
type: string;
|
|
3484
|
+
beneficiaryId: any;
|
|
3485
|
+
};
|
|
3486
|
+
};
|
|
3487
|
+
private onOrderRequest;
|
|
3488
|
+
/**
|
|
3489
|
+
* Check if order exists, if it does Resolve.
|
|
3490
|
+
* Otherwise createOrder and then Resolve.
|
|
3491
|
+
*/
|
|
3492
|
+
createOrder: () => Promise<void>;
|
|
3493
|
+
submit(): boolean;
|
|
3494
|
+
payButton: (props: any) => h.JSX.Element;
|
|
3495
|
+
get isValid(): boolean;
|
|
3496
|
+
get displayName(): string;
|
|
3497
|
+
protected componentToRender(): h.JSX.Element;
|
|
3498
|
+
}
|
|
3412
3499
|
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3500
|
+
declare class ApplePayElement extends UIElement<ApplePayConfiguration> {
|
|
3501
|
+
static type: TxVariants;
|
|
3502
|
+
protected static defaultProps: ApplePayConfiguration;
|
|
3503
|
+
private sdkLoader;
|
|
3504
|
+
private applePayVersionNumber;
|
|
3505
|
+
constructor(checkout: ICore, props?: ApplePayConfiguration);
|
|
3506
|
+
/**
|
|
3507
|
+
* Formats the component props
|
|
3508
|
+
*/
|
|
3509
|
+
protected formatProps(props: ApplePayConfiguration): ApplePayConfiguration;
|
|
3510
|
+
/**
|
|
3511
|
+
* Formats the component data output
|
|
3512
|
+
*/
|
|
3513
|
+
protected formatData(): ApplePayElementData;
|
|
3514
|
+
protected beforeRender(configSetByMerchant?: ApplePayConfiguration): void;
|
|
3515
|
+
submit: () => void;
|
|
3516
|
+
get isValid(): boolean;
|
|
3517
|
+
/**
|
|
3518
|
+
* This API is only intended for upstreaming or defaulting to Apple Pay, all other scenarios should continue to
|
|
3519
|
+
* use canMakePayments(). For Safari browsers, this API will indicate whether there is a card available to make
|
|
3520
|
+
* payments. For third-party browsers a new status of paymentCredentialStatusUnknown will be returned. This does
|
|
3521
|
+
* not mean there are no cards available, it means the status cannot be determined and as such defaulting
|
|
3522
|
+
* and upstreaming should still be considered.
|
|
3523
|
+
*
|
|
3524
|
+
* {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/4440085-applepaycapabilities}
|
|
3525
|
+
* @param merchantIdentifier
|
|
3526
|
+
*/
|
|
3527
|
+
applePayCapabilities(merchantIdentifier?: string): Promise<ApplePayJS.PaymentCredentialStatusResponse>;
|
|
3528
|
+
/**
|
|
3529
|
+
* Determines if Apple Pay component can be displayed or not
|
|
3530
|
+
*/
|
|
3531
|
+
isAvailable(): Promise<void>;
|
|
3532
|
+
/**
|
|
3533
|
+
* Sets the Apple Pay version available for the shopper.
|
|
3534
|
+
* This code needs to be executed once the Apple Pay SDK is fully loaded
|
|
3535
|
+
* @private
|
|
3536
|
+
*/
|
|
3537
|
+
private defineApplePayVersionNumber;
|
|
3538
|
+
/**
|
|
3539
|
+
* Sets the configuration/callbacks that pertain to the Apple Pay code overlay/modal.
|
|
3540
|
+
* @private
|
|
3541
|
+
*/
|
|
3542
|
+
private configureApplePayWebOptions;
|
|
3543
|
+
private startSession;
|
|
3544
|
+
/**
|
|
3545
|
+
* Call the 'onAuthorized' callback if available.
|
|
3546
|
+
* Must be resolved/reject for the payment flow to continue
|
|
3547
|
+
*
|
|
3548
|
+
* @private
|
|
3549
|
+
*/
|
|
3550
|
+
private handleAuthorization;
|
|
3551
|
+
/**
|
|
3552
|
+
* Verify if the 'onOrderTrackingRequest' is provided. If so, triggers the callback expecting an
|
|
3553
|
+
* Apple Pay order details back
|
|
3554
|
+
*
|
|
3555
|
+
* @private
|
|
3556
|
+
*/
|
|
3557
|
+
private collectOrderTrackingDetailsIfNeeded;
|
|
3558
|
+
private validateMerchant;
|
|
3559
|
+
protected componentToRender(): h.JSX.Element;
|
|
3422
3560
|
}
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
paymentData?: any;
|
|
3428
|
-
data?: PayToData;
|
|
3429
|
-
placeholders?: PayToPlaceholdersType;
|
|
3430
|
-
mandate?: MandateType;
|
|
3431
|
-
payee?: string;
|
|
3561
|
+
|
|
3562
|
+
declare class Atome extends OpenInvoiceContainer {
|
|
3563
|
+
static type: TxVariants;
|
|
3564
|
+
formatProps(props: any): any;
|
|
3432
3565
|
}
|
|
3433
|
-
|
|
3434
|
-
|
|
3566
|
+
|
|
3567
|
+
declare class IssuerListContainer<TProps extends IssuerListConfiguration = IssuerListConfiguration, TData = IssuerListData> extends UIElement<TProps> {
|
|
3568
|
+
protected static defaultProps: {
|
|
3569
|
+
showImage: boolean;
|
|
3570
|
+
issuers: any[];
|
|
3571
|
+
highlightedIssuers: any[];
|
|
3572
|
+
loadingContext: string;
|
|
3573
|
+
showPaymentMethodItemImages: boolean;
|
|
3574
|
+
};
|
|
3575
|
+
constructor(checkout: ICore, props?: TProps);
|
|
3576
|
+
formatProps(props: any): any;
|
|
3577
|
+
/**
|
|
3578
|
+
* Formats the component data output
|
|
3579
|
+
*/
|
|
3580
|
+
formatData(): TData;
|
|
3581
|
+
/**
|
|
3582
|
+
* Returns whether the component state is valid or not
|
|
3583
|
+
*/
|
|
3584
|
+
get isValid(): boolean;
|
|
3585
|
+
/**
|
|
3586
|
+
* Returns brands array (similar to card) depending on showPaymentMethodItemImages
|
|
3587
|
+
* This is used to show the brands in the PaymentMethodItem
|
|
3588
|
+
* Requires brands icons to be loaded in the payment method
|
|
3589
|
+
*/
|
|
3590
|
+
get brands(): {
|
|
3591
|
+
icon: any;
|
|
3592
|
+
name: string;
|
|
3593
|
+
}[];
|
|
3594
|
+
protected componentToRender(): h.JSX.Element;
|
|
3435
3595
|
}
|
|
3436
3596
|
|
|
3437
|
-
|
|
3438
|
-
type:
|
|
3439
|
-
|
|
3440
|
-
countdownTime: number;
|
|
3441
|
-
throttleTime: number;
|
|
3442
|
-
showCountdownTimer: boolean;
|
|
3443
|
-
shouldRedirectAutomatically?: boolean;
|
|
3444
|
-
throttleInterval: number;
|
|
3445
|
-
paymentData?: string;
|
|
3446
|
-
url?: string;
|
|
3447
|
-
classNameModifiers?: string[];
|
|
3448
|
-
clientKey: string;
|
|
3449
|
-
onError: (error: AdyenCheckoutError) => void;
|
|
3450
|
-
onComplete: (status: AdditionalDetailsData) => void;
|
|
3451
|
-
brandLogo?: string;
|
|
3452
|
-
messageText?: string;
|
|
3453
|
-
awaitText: string;
|
|
3454
|
-
onActionHandled?: (rtnObj: ActionHandledReturnObject) => void;
|
|
3455
|
-
pollStatus?: () => Promise<RawPaymentResponse | RawPaymentStatusResponse>;
|
|
3456
|
-
instructions?: string | (() => h.JSX.Element);
|
|
3457
|
-
endSlot?: () => h.JSX.Element;
|
|
3458
|
-
amount?: PaymentAmount;
|
|
3459
|
-
showAmount?: boolean;
|
|
3597
|
+
declare class BillDeskOnlineElement extends IssuerListContainer {
|
|
3598
|
+
static type: TxVariants;
|
|
3599
|
+
formatProps(props: any): any;
|
|
3460
3600
|
}
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
url?: string;
|
|
3601
|
+
|
|
3602
|
+
declare class BillDeskWalletElement extends IssuerListContainer {
|
|
3603
|
+
static type: TxVariants;
|
|
3604
|
+
formatProps(props: any): any;
|
|
3466
3605
|
}
|
|
3467
3606
|
|
|
3468
3607
|
declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
@@ -3671,7 +3810,7 @@ declare class BancontactElement extends CardElement {
|
|
|
3671
3810
|
billingAddressRequiredFields?: string[];
|
|
3672
3811
|
brands?: string[];
|
|
3673
3812
|
brandsConfiguration?: CardBrandsConfiguration;
|
|
3674
|
-
challengeWindowSize?:
|
|
3813
|
+
challengeWindowSize?: ChallengeWindowSize;
|
|
3675
3814
|
clickToPayConfiguration?: ClickToPayProps;
|
|
3676
3815
|
fastlaneConfiguration?: FastlaneSignupConfiguration;
|
|
3677
3816
|
configuration?: CardBackendConfiguration;
|
|
@@ -3688,7 +3827,7 @@ declare class BancontactElement extends CardElement {
|
|
|
3688
3827
|
expiryMonth?: string;
|
|
3689
3828
|
exposeExpiryDate?: boolean;
|
|
3690
3829
|
forceCompat?: boolean;
|
|
3691
|
-
fundingSource?: "debit" | "credit";
|
|
3830
|
+
fundingSource?: "debit" | "credit" | "prepaid";
|
|
3692
3831
|
hasCVC?: boolean;
|
|
3693
3832
|
hasHolderName?: boolean;
|
|
3694
3833
|
holderName?: string;
|
|
@@ -3881,8 +4020,8 @@ declare class GooglePay extends UIElement<GooglePayConfiguration> {
|
|
|
3881
4020
|
}
|
|
3882
4021
|
|
|
3883
4022
|
declare class EcontextElement extends UIElement<EcontextConfiguration> {
|
|
3884
|
-
static type
|
|
3885
|
-
static txVariants: TxVariants[];
|
|
4023
|
+
static readonly type = TxVariants.econtext;
|
|
4024
|
+
static readonly txVariants: TxVariants[];
|
|
3886
4025
|
protected static defaultProps: {
|
|
3887
4026
|
personalDetailsRequired: boolean;
|
|
3888
4027
|
};
|
|
@@ -3945,7 +4084,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3945
4084
|
autoFocus?: boolean;
|
|
3946
4085
|
brands?: string[];
|
|
3947
4086
|
brandsConfiguration?: CardBrandsConfiguration;
|
|
3948
|
-
challengeWindowSize?:
|
|
4087
|
+
challengeWindowSize?: ChallengeWindowSize;
|
|
3949
4088
|
disableIOSArrowKeys?: boolean;
|
|
3950
4089
|
doBinLookup?: boolean;
|
|
3951
4090
|
i18n?: Language;
|
|
@@ -4027,6 +4166,8 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
4027
4166
|
formatProps(props: any): {
|
|
4028
4167
|
delay: number;
|
|
4029
4168
|
countdownTime: number;
|
|
4169
|
+
throttleTime?: number;
|
|
4170
|
+
throttleInterval?: number;
|
|
4030
4171
|
type?: string;
|
|
4031
4172
|
brandLogo?: string;
|
|
4032
4173
|
buttonLabel?: string;
|
|
@@ -4098,6 +4239,8 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
4098
4239
|
formatProps(props: any): {
|
|
4099
4240
|
delay: number;
|
|
4100
4241
|
countdownTime: number;
|
|
4242
|
+
throttleTime?: number;
|
|
4243
|
+
throttleInterval?: number;
|
|
4101
4244
|
type?: string;
|
|
4102
4245
|
brandLogo?: string;
|
|
4103
4246
|
buttonLabel?: string;
|
|
@@ -4170,6 +4313,8 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
4170
4313
|
formatProps(props: any): {
|
|
4171
4314
|
delay: number;
|
|
4172
4315
|
countdownTime: number;
|
|
4316
|
+
throttleTime?: number;
|
|
4317
|
+
throttleInterval?: number;
|
|
4173
4318
|
type?: string;
|
|
4174
4319
|
brandLogo?: string;
|
|
4175
4320
|
buttonLabel?: string;
|
|
@@ -4564,6 +4709,18 @@ declare class GiftcardElement extends UIElement<GiftCardConfiguration> {
|
|
|
4564
4709
|
protected componentToRender(): h.JSX.Element;
|
|
4565
4710
|
}
|
|
4566
4711
|
|
|
4712
|
+
declare class Iris extends IssuerListContainer<IrisConfiguration, IrisData> {
|
|
4713
|
+
static readonly type = TxVariants.iris;
|
|
4714
|
+
private mode;
|
|
4715
|
+
constructor(checkout: ICore, props: IrisConfiguration);
|
|
4716
|
+
private readonly onUpdateMode;
|
|
4717
|
+
private renderIssuerList;
|
|
4718
|
+
formatData(): IrisData;
|
|
4719
|
+
formatProps(props: IrisConfiguration): IrisConfiguration;
|
|
4720
|
+
get isValid(): boolean;
|
|
4721
|
+
protected componentToRender(): h.JSX.Element;
|
|
4722
|
+
}
|
|
4723
|
+
|
|
4567
4724
|
declare class VippsElement extends RedirectElement {
|
|
4568
4725
|
static type: TxVariants;
|
|
4569
4726
|
static defaultProps: {
|
|
@@ -4592,6 +4749,8 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4592
4749
|
formatProps(props: any): {
|
|
4593
4750
|
delay: number;
|
|
4594
4751
|
countdownTime: number;
|
|
4752
|
+
throttleTime?: number;
|
|
4753
|
+
throttleInterval?: number;
|
|
4595
4754
|
type?: string;
|
|
4596
4755
|
brandLogo?: string;
|
|
4597
4756
|
buttonLabel?: string;
|
|
@@ -4963,6 +5122,8 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
4963
5122
|
formatProps(props: any): {
|
|
4964
5123
|
delay: number;
|
|
4965
5124
|
countdownTime: number;
|
|
5125
|
+
throttleTime?: number;
|
|
5126
|
+
throttleInterval?: number;
|
|
4966
5127
|
type?: string;
|
|
4967
5128
|
brandLogo?: string;
|
|
4968
5129
|
buttonLabel?: string;
|
|
@@ -5034,6 +5195,8 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
5034
5195
|
formatProps(props: any): {
|
|
5035
5196
|
delay: number;
|
|
5036
5197
|
countdownTime: number;
|
|
5198
|
+
throttleTime?: number;
|
|
5199
|
+
throttleInterval?: number;
|
|
5037
5200
|
type?: string;
|
|
5038
5201
|
brandLogo?: string;
|
|
5039
5202
|
buttonLabel?: string;
|
|
@@ -5558,6 +5721,7 @@ declare const ComponentsMap: {
|
|
|
5558
5721
|
billdesk_wallet: typeof BillDeskWalletElement;
|
|
5559
5722
|
dotpay: typeof DotpayElement;
|
|
5560
5723
|
eps: typeof EPSElement;
|
|
5724
|
+
iris: typeof Iris;
|
|
5561
5725
|
molpay_ebanking_fpx_MY: typeof MolPayEBankingMYElement;
|
|
5562
5726
|
molpay_ebanking_TH: typeof MolPayEBankingTHElement;
|
|
5563
5727
|
molpay_ebanking_VN: typeof MolPayEbankingVNElement;
|
|
@@ -6312,14 +6476,20 @@ declare abstract class UIElement<P extends UIElementProps = UIElementProps> exte
|
|
|
6312
6476
|
render(): h.JSX.Element;
|
|
6313
6477
|
}
|
|
6314
6478
|
|
|
6479
|
+
type NewableComponent = new (checkout: ICore, props?: any) => UIElement;
|
|
6480
|
+
interface IRegistry {
|
|
6481
|
+
add(...items: NewableComponent[]): void;
|
|
6482
|
+
getComponent(type: string): NewableComponent | undefined;
|
|
6483
|
+
}
|
|
6484
|
+
|
|
6315
6485
|
declare const actionTypes: {
|
|
6316
|
-
readonly redirect: (core: ICore, registry: any, action: PaymentAction, props:
|
|
6317
|
-
readonly threeDS2: (core: ICore, registry: any, action: PaymentAction, props:
|
|
6318
|
-
readonly voucher: (core: ICore, registry: IRegistry, action: PaymentAction, props:
|
|
6319
|
-
readonly qrCode: (core: ICore, registry: IRegistry, action: PaymentAction, props:
|
|
6320
|
-
readonly await: (core: ICore, registry: IRegistry, action: PaymentAction, props:
|
|
6321
|
-
readonly bankTransfer: (core: ICore, registry: IRegistry, action: PaymentAction, props:
|
|
6322
|
-
readonly sdk: (core: ICore, registry: IRegistry, action: PaymentAction, props:
|
|
6486
|
+
readonly redirect: (core: ICore, registry: any, action: PaymentAction, props: UIElementProps) => UIElement;
|
|
6487
|
+
readonly threeDS2: (core: ICore, registry: any, action: PaymentAction, props: ThreeDS2ActionProps) => UIElement;
|
|
6488
|
+
readonly voucher: (core: ICore, registry: IRegistry, action: PaymentAction, props: UIElementProps) => UIElement;
|
|
6489
|
+
readonly qrCode: (core: ICore, registry: IRegistry, action: PaymentAction, props: UIElementProps) => UIElement;
|
|
6490
|
+
readonly await: (core: ICore, registry: IRegistry, action: PaymentAction, props: UIElementProps) => UIElement;
|
|
6491
|
+
readonly bankTransfer: (core: ICore, registry: IRegistry, action: PaymentAction, props: UIElementProps) => UIElement;
|
|
6492
|
+
readonly sdk: (core: ICore, registry: IRegistry, action: PaymentAction, props: UIElementProps) => UIElement;
|
|
6323
6493
|
};
|
|
6324
6494
|
|
|
6325
6495
|
type PaymentActionsType = keyof typeof actionTypes;
|
|
@@ -6412,7 +6582,7 @@ interface RawPaymentMethod {
|
|
|
6412
6582
|
/**
|
|
6413
6583
|
* The funding source of the payment method.
|
|
6414
6584
|
*/
|
|
6415
|
-
fundingSource?: 'debit' | 'credit';
|
|
6585
|
+
fundingSource?: 'debit' | 'credit' | 'prepaid';
|
|
6416
6586
|
/**
|
|
6417
6587
|
* The group where this payment method belongs to.
|
|
6418
6588
|
*/
|
|
@@ -6692,7 +6862,7 @@ interface CardConfiguration extends UIElementProps {
|
|
|
6692
6862
|
*
|
|
6693
6863
|
* - merchant set config option
|
|
6694
6864
|
*/
|
|
6695
|
-
challengeWindowSize?:
|
|
6865
|
+
challengeWindowSize?: ChallengeWindowSize;
|
|
6696
6866
|
/**
|
|
6697
6867
|
* Configuration for Click to Pay
|
|
6698
6868
|
* - merchant set config option
|
|
@@ -6769,7 +6939,7 @@ interface CardConfiguration extends UIElementProps {
|
|
|
6769
6939
|
* Funding source field populated when 'splitCardFundingSources' is used
|
|
6770
6940
|
* @internal
|
|
6771
6941
|
*/
|
|
6772
|
-
fundingSource?: 'debit' | 'credit';
|
|
6942
|
+
fundingSource?: 'debit' | 'credit' | 'prepaid';
|
|
6773
6943
|
/**
|
|
6774
6944
|
* Decides whether the CVC (Security Code) component will even be rendered.
|
|
6775
6945
|
* Always true except when hideCVC set to false by merchant OR in the case of a *stored* BCMC card.
|
|
@@ -6998,7 +7168,7 @@ interface CardPaymentMethodData {
|
|
|
6998
7168
|
type: string;
|
|
6999
7169
|
brand?: string;
|
|
7000
7170
|
storedPaymentMethodId?: string;
|
|
7001
|
-
fundingSource?: 'debit' | 'credit';
|
|
7171
|
+
fundingSource?: 'debit' | 'credit' | 'prepaid';
|
|
7002
7172
|
holderName?: string;
|
|
7003
7173
|
encryptedCardNumber?: string;
|
|
7004
7174
|
encryptedExpiryMonth?: string;
|
|
@@ -7136,6 +7306,8 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
7136
7306
|
formatProps(props: any): {
|
|
7137
7307
|
delay: number;
|
|
7138
7308
|
countdownTime: number;
|
|
7309
|
+
throttleTime?: number;
|
|
7310
|
+
throttleInterval?: number;
|
|
7139
7311
|
type?: string;
|
|
7140
7312
|
brandLogo?: string;
|
|
7141
7313
|
buttonLabel: string;
|
|
@@ -7333,6 +7505,8 @@ type index_d_Fastlane = Fastlane;
|
|
|
7333
7505
|
declare const index_d_Fastlane: typeof Fastlane;
|
|
7334
7506
|
type index_d_GooglePay = GooglePay;
|
|
7335
7507
|
declare const index_d_GooglePay: typeof GooglePay;
|
|
7508
|
+
type index_d_Iris = Iris;
|
|
7509
|
+
declare const index_d_Iris: typeof Iris;
|
|
7336
7510
|
type index_d_OnlineBankingFI = OnlineBankingFI;
|
|
7337
7511
|
declare const index_d_OnlineBankingFI: typeof OnlineBankingFI;
|
|
7338
7512
|
type index_d_OnlineBankingPL = OnlineBankingPL;
|
|
@@ -7395,6 +7569,7 @@ declare namespace index_d {
|
|
|
7395
7569
|
GiftcardElement as Giftcard,
|
|
7396
7570
|
GiropayElement as Giropay,
|
|
7397
7571
|
index_d_GooglePay as GooglePay,
|
|
7572
|
+
index_d_Iris as Iris,
|
|
7398
7573
|
KlarnaPayments as Klarna,
|
|
7399
7574
|
MBWayElement as MBWay,
|
|
7400
7575
|
MealVoucherFRElement as MealVoucherFR,
|
|
@@ -7611,5 +7786,5 @@ declare namespace AdyenCheckout {
|
|
|
7611
7786
|
var setBundleType: (type: string) => void;
|
|
7612
7787
|
}
|
|
7613
7788
|
|
|
7614
|
-
export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, AdyenCheckout, AdyenCheckoutError, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, Atome, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, BankTransferElement as BankTransfer, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, BlikElement as Blik, BoletoElement as Boleto, CardElement as Card, CashAppPay, ClickToPayElement as ClickToPay, Core, CustomCard, DokuElement as Doku, DonationElement as Donation, DotpayElement as Dotpay, DragonpayElement as Dragonpay, DropinElement as Dropin, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, Fastlane, FastlaneSDK, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, KlarnaPayments as Klarna, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, OxxoElement as Oxxo, PayByBank, PayByBankPixElement as PayByBankPix, PayByBankUS, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, PayToElement as PayTo, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, PixElement as Pix, PreAuthorizedDebitCanada, PromptPayElement as PromptPay, RatePay, RatePayDirectDebit, RedirectElement as Redirect, Riverty, SepaElement as SepaDirectDebit, SwishElement as Swish, ThreeDS2Challenge, ThreeDS2DeviceFingerprint, TrustlyElement as Trustly, TwintElement as Twint, UIElement, UPI, VippsElement as Vipps, WalletINElement as WalletIN, WeChatPayElement as WeChat, index_d as components, initializeFastlane };
|
|
7615
|
-
export type { ANCVConfiguration, ANCVDataState, AchConfiguration, AchPlaceholders, ActionDescriptionType, ActionHandledReturnObject, AdditionalDetailsActions, AdditionalDetailsData, AddressData, AddressField, AmazonPayBackendConfiguration, AmazonPayButtonProps, AmazonPayButtonSettings, AmazonPayComponentProps, AmazonPayConfiguration, AmazonPayElementData, App, ApplePayButtonStyle, ApplePayButtonType, ApplePayConfiguration, ApplePayElementData, ApplePayPaymentAuthorizationResult, ApplePayPaymentOrderDetails, ApplePaySessionRequest, ApplePayWebConfiguration, AwaitComponentProps, AwaitConfiguration, BankDetailsSchema, BankTransferConfiguration, BankTransferSchema, BankTransferState, BeforeSubmitActions, BinLookupResponse, BinLookupResponseRaw, BoletoConfiguration, BoletoElementProps, BoletoInputDataState, BoletoInputErrorState, BoletoInputValidState, BrandConfiguration, BrandObject, BrowserInfo, CReqData, CardAllValidData, CardAutoCompleteData, CardBackendConfiguration, CardBinLookupData, CardBinValueData, CardBrandData, CardBrandsConfiguration, CardConfigSuccessData, CardConfiguration, CardElementData, CardErrorData, CardFieldValidData, CardFocusData, CardLoadData, CardPlaceholders, CashAppPayConfiguration, CashAppPayElementData, CashAppPayEventData, ChallengeData, ChallengeResolveData, ChangeActionOptions, ChangePaymentDetailsButtonProps, ChargeAmount, CheckoutAdvancedFlowResponse, CheckoutDetailsRequest, CheckoutSessionConfig, ClickToPayConfiguration, ClickToPayPaymentData, ClickToPayProps, ClickToPayScheme, CommonVoucherProps, ComponentFocusObject, ComponentMethodsRef, CoreConfiguration, CoreModules, Currency, CustomCardConfiguration, CustomTranslations, DecodeObject, DeliverySpecifications, DokuVoucherResultProps, DonationConfiguration, DragonpayConfiguraton, DragonpayInputData, DragonpayInputIssuerItem, DragonpayInputProps, DragonpayVoucherResultProps, DropinComponentProps, DropinComponentState, DropinConfiguration, DropinStatus, DropinStatusProps, DualBrandSelectElement, EcontextConfiguration, EcontextInputSchema, EcontextVoucherResultProps, ErrorCodeObject, ExtendedMerchantInfo, FastlaneAddress, FastlaneAuthenticatedCustomerResult, FastlaneConfiguration, FastlaneConsentRenderState, FastlaneOptions, FastlanePaymentMethodConfiguration, FastlaneProfile, FastlaneSDKConfiguration, FastlaneShipping, FastlaneShippingAddressSelectorResult, FastlaneSignupConfiguration, FastlaneWindowInstance, FieldsetVisibility, FingerPrintData, FingerprintResolveData, FundingSource, GiftCardBalanceCheckErrorType, GiftCardConfiguration, GiftCardElementData, GiftCardValidationError, GooglePayConfiguration, GooglePaymentDataRequest, ICore, IDropin, InstantPaymentTypes, Intent, IssuerListConfiguration, IssuerListData, KlarnaAction, KlarnaAdditionalDetailsData, KlarnaComponentRef, KlarnaConfiguration, KlarnaSdkData, KlarnaWidgetAuthorizeResponse, KlarnaWidgetProps, LedgerCurrencies, LegacyChallengeResolveData, LegacyFingerprintResolveData, MandateFrequencyType, MandateType, MultibancoVoucherResultProps, OnChangeData, OpenInvoiceActiveFieldsets, OpenInvoiceConfiguration, OpenInvoiceFieldsetsRefs, OpenInvoiceProps, OpenInvoiceStateData, OpenInvoiceStateError, OpenInvoiceStateValid, OpenInvoiceVisibility, Order, OrderButtonProps, OrderStatus, OxxoVoucherResultProps, PayButtonFunctionProps, PayPalConfiguration, PayToConfiguration, PayToData, PayToPlaceholdersType, PayloadJSON, PaymentAction, PaymentActionsType, PaymentAmount, PaymentAmountExtended, PaymentCompletedData, PaymentData, PaymentFailedData, PaymentMethodData, PaymentMethodGroup, PaymentMethodOptions, PaymentMethods, PaymentMethodsConfiguration, PaymentMethodsRequestData, PaymentMethodsResponse, PaymentResponseData, PersonalDetailsSchema, PixConfiguration, PixElementData, PostMsgParseErrorObject, PreAuthorizedDebitCanadaConfiguration, PreAuthorizedDebitCanadaPlaceholders, ProcessedPaymentStatusResponse, QRLoaderConfiguration, RawPaymentMethod, RawPaymentResponse, RawPaymentStatusResponse, RawStoredPaymentMethod, RecurringMetadata, RedirectConfiguration, Region, ResultCode, ResultObject, ResultValue, SepaConfiguration, SepaElementData, SessionsResponse, SignOutButtonProps, SocialSecurityMode, StatusFromAction, SubmitActions, SubmitData, SupportedLocale, ThreeDS2ChallengeConfiguration, ThreeDS2DeviceFingerprintConfiguration, ThreeDS2FingerprintResponse, ThreeDS2FlowObject, ThreeDS2Token, UIElementProps, UIElementStatus, UPIConfiguration, UpdateAmazonCheckoutSessionRequest, UpiMode, UpiPaymentData, UpiType, ValidationError, VoucherConfiguration, VoucherDetail, VoucherProps, balanceCheckResponseType, onBalanceCheckCallbackType, onOrderCancelData, onOrderCancelType, onOrderRequestCallbackType, onRequiringConfirmationCallbackType };
|
|
7789
|
+
export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, AdyenCheckout, AdyenCheckoutError, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, Atome, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, BankTransferElement as BankTransfer, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, BlikElement as Blik, BoletoElement as Boleto, CardElement as Card, CashAppPay, ClickToPayElement as ClickToPay, Core, CustomCard, DokuElement as Doku, DonationElement as Donation, DotpayElement as Dotpay, DragonpayElement as Dragonpay, DropinElement as Dropin, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, Fastlane, FastlaneSDK, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, Iris, IrisMode, KlarnaPayments as Klarna, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, OxxoElement as Oxxo, PayByBank, PayByBankPixElement as PayByBankPix, PayByBankUS, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, PayToElement as PayTo, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, PixElement as Pix, PreAuthorizedDebitCanada, PromptPayElement as PromptPay, RatePay, RatePayDirectDebit, RedirectElement as Redirect, Riverty, SepaElement as SepaDirectDebit, SwishElement as Swish, ThreeDS2Challenge, ThreeDS2DeviceFingerprint, TrustlyElement as Trustly, TwintElement as Twint, UIElement, UPI, VippsElement as Vipps, WalletINElement as WalletIN, WeChatPayElement as WeChat, index_d as components, initializeFastlane };
|
|
7790
|
+
export type { ANCVConfiguration, ANCVDataState, AchConfiguration, AchPlaceholders, ActionDescriptionType, ActionHandledReturnObject, AdditionalDetailsActions, AdditionalDetailsData, AddressData, AddressField, AmazonPayBackendConfiguration, AmazonPayButtonProps, AmazonPayButtonSettings, AmazonPayComponentProps, AmazonPayConfiguration, AmazonPayElementData, App, ApplePayButtonStyle, ApplePayButtonType, ApplePayConfiguration, ApplePayElementData, ApplePayPaymentAuthorizationResult, ApplePayPaymentOrderDetails, ApplePaySessionRequest, ApplePayWebConfiguration, AwaitComponentProps, AwaitConfiguration, BankDetailsSchema, BankTransferConfiguration, BankTransferSchema, BankTransferState, BeforeSubmitActions, BinLookupResponse, BinLookupResponseRaw, BoletoConfiguration, BoletoElementProps, BoletoInputDataState, BoletoInputErrorState, BoletoInputValidState, BrandConfiguration, BrandObject, BrowserInfo, CReqData, CardAllValidData, CardAutoCompleteData, CardBackendConfiguration, CardBinLookupData, CardBinValueData, CardBrandData, CardBrandsConfiguration, CardConfigSuccessData, CardConfiguration, CardElementData, CardErrorData, CardFieldValidData, CardFocusData, CardLoadData, CardPlaceholders, CashAppPayConfiguration, CashAppPayElementData, CashAppPayEventData, ChallengeData, ChallengeResolveData, ChallengeWindowSize, ChangeActionOptions, ChangePaymentDetailsButtonProps, ChargeAmount, CheckoutAdvancedFlowResponse, CheckoutDetailsRequest, CheckoutSessionConfig, ClickToPayConfiguration, ClickToPayPaymentData, ClickToPayProps, ClickToPayScheme, CommonVoucherProps, ComponentFocusObject, ComponentMethodsRef, CoreConfiguration, CoreModules, Currency, CustomCardConfiguration, CustomTranslations, DecodeObject, DeliverySpecifications, DokuVoucherResultProps, DonationConfiguration, DragonpayConfiguraton, DragonpayInputData, DragonpayInputIssuerItem, DragonpayInputProps, DragonpayVoucherResultProps, DropinComponentProps, DropinComponentState, DropinConfiguration, DropinStatus, DropinStatusProps, DualBrandSelectElement, EcontextConfiguration, EcontextInputSchema, EcontextVoucherResultProps, ErrorCodeObject, ExtendedMerchantInfo, FastlaneAddress, FastlaneAuthenticatedCustomerResult, FastlaneConfiguration, FastlaneConsentRenderState, FastlaneOptions, FastlanePaymentMethodConfiguration, FastlaneProfile, FastlaneSDKConfiguration, FastlaneShipping, FastlaneShippingAddressSelectorResult, FastlaneSignupConfiguration, FastlaneWindowInstance, FieldsetVisibility, FingerPrintData, FingerprintResolveData, FundingSource, GiftCardBalanceCheckErrorType, GiftCardConfiguration, GiftCardElementData, GiftCardValidationError, GooglePayConfiguration, GooglePaymentDataRequest, ICore, IDropin, InstantPaymentTypes, Intent, IrisConfiguration, IrisData, IssuerListConfiguration, IssuerListData, KlarnaAction, KlarnaAdditionalDetailsData, KlarnaComponentRef, KlarnaConfiguration, KlarnaSdkData, KlarnaWidgetAuthorizeResponse, KlarnaWidgetProps, LedgerCurrencies, LegacyChallengeResolveData, LegacyFingerprintResolveData, MandateFrequencyType, MandateType, MultibancoVoucherResultProps, OnChangeData, OpenInvoiceActiveFieldsets, OpenInvoiceConfiguration, OpenInvoiceFieldsetsRefs, OpenInvoiceProps, OpenInvoiceStateData, OpenInvoiceStateError, OpenInvoiceStateValid, OpenInvoiceVisibility, Order, OrderButtonProps, OrderStatus, OxxoVoucherResultProps, PayButtonFunctionProps, PayPalConfiguration, PayToConfiguration, PayToData, PayToPlaceholdersType, PayloadJSON, PaymentAction, PaymentActionsType, PaymentAmount, PaymentAmountExtended, PaymentCompletedData, PaymentData, PaymentFailedData, PaymentMethodData, PaymentMethodGroup, PaymentMethodOptions, PaymentMethods, PaymentMethodsConfiguration, PaymentMethodsRequestData, PaymentMethodsResponse, PaymentResponseData, PersonalDetailsSchema, PixConfiguration, PixElementData, PostMsgParseErrorObject, PreAuthorizedDebitCanadaConfiguration, PreAuthorizedDebitCanadaPlaceholders, ProcessedPaymentStatusResponse, QRLoaderConfiguration, RawPaymentMethod, RawPaymentResponse, RawPaymentStatusResponse, RawStoredPaymentMethod, RecurringMetadata, RedirectConfiguration, Region, ResultCode, ResultObject, ResultValue, SepaConfiguration, SepaElementData, SessionsResponse, SignOutButtonProps, SocialSecurityMode, StatusFromAction, SubmitActions, SubmitData, SupportedLocale, ThreeDS2ActionProps, ThreeDS2ChallengeConfiguration, ThreeDS2ConfigProps, ThreeDS2DeviceFingerprintConfiguration, ThreeDS2FingerprintResponse, ThreeDS2FlowObject, ThreeDS2FlowProps, ThreeDS2Token, UIElementProps, UIElementStatus, UPIConfiguration, UpdateAmazonCheckoutSessionRequest, UpiMode, UpiPaymentData, UpiType, ValidationError, VoucherConfiguration, VoucherDetail, VoucherProps, balanceCheckResponseType, onBalanceCheckCallbackType, onOrderCancelData, onOrderCancelType, onOrderRequestCallbackType, onRequiringConfirmationCallbackType };
|