@tap-payments/click-to-pay-button-web 0.0.1-test
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/LICENSE +21 -0
- package/README.md +62 -0
- package/build/@types/authenticate.d.ts +138 -0
- package/build/@types/authenticate.js +1 -0
- package/build/@types/cardButtonProps.d.ts +11 -0
- package/build/@types/cardButtonProps.js +1 -0
- package/build/@types/cardWeb.d.ts +161 -0
- package/build/@types/cardWeb.js +1 -0
- package/build/@types/click2pay.d.ts +11 -0
- package/build/@types/click2pay.js +11 -0
- package/build/@types/clickToPay/checkoutResponseData.d.ts +14 -0
- package/build/@types/clickToPay/checkoutResponseData.js +1 -0
- package/build/@types/clickToPay/click2PayCard.d.ts +56 -0
- package/build/@types/clickToPay/click2PayCard.js +1 -0
- package/build/@types/clickToPay/complianceSettings.d.ts +12 -0
- package/build/@types/clickToPay/complianceSettings.js +1 -0
- package/build/@types/clickToPay/consumer.d.ts +9 -0
- package/build/@types/clickToPay/consumer.js +1 -0
- package/build/@types/clickToPay/dpaData.d.ts +7 -0
- package/build/@types/clickToPay/dpaData.js +1 -0
- package/build/@types/clickToPay/dpaTransactionOptions.d.ts +31 -0
- package/build/@types/clickToPay/dpaTransactionOptions.js +1 -0
- package/build/@types/clickToPay/events/checkoutWithCard.d.ts +24 -0
- package/build/@types/clickToPay/events/checkoutWithCard.js +1 -0
- package/build/@types/clickToPay/events/checkoutWithNewCard.d.ts +26 -0
- package/build/@types/clickToPay/events/checkoutWithNewCard.js +1 -0
- package/build/@types/clickToPay/events/encryptCard.d.ts +26 -0
- package/build/@types/clickToPay/events/encryptCard.js +1 -0
- package/build/@types/clickToPay/events/errors.d.ts +15 -0
- package/build/@types/clickToPay/events/errors.js +12 -0
- package/build/@types/clickToPay/events/getCards.d.ts +4 -0
- package/build/@types/clickToPay/events/getCards.js +1 -0
- package/build/@types/clickToPay/events/idLookup.d.ts +16 -0
- package/build/@types/clickToPay/events/idLookup.js +1 -0
- package/build/@types/clickToPay/events/index.d.ts +23 -0
- package/build/@types/clickToPay/events/index.js +1 -0
- package/build/@types/clickToPay/events/init.d.ts +20 -0
- package/build/@types/clickToPay/events/init.js +1 -0
- package/build/@types/clickToPay/events/initiateValidation.d.ts +19 -0
- package/build/@types/clickToPay/events/initiateValidation.js +1 -0
- package/build/@types/clickToPay/events/signOut.d.ts +8 -0
- package/build/@types/clickToPay/events/signOut.js +1 -0
- package/build/@types/clickToPay/events/validate.d.ts +8 -0
- package/build/@types/clickToPay/events/validate.js +1 -0
- package/build/@types/clickToPay/maskedCard.d.ts +16 -0
- package/build/@types/clickToPay/maskedCard.js +1 -0
- package/build/@types/clickToPay/maskedConsumer.d.ts +21 -0
- package/build/@types/clickToPay/maskedConsumer.js +1 -0
- package/build/@types/clickToPay/mastercardCheckoutServicesObject.d.ts +61 -0
- package/build/@types/clickToPay/mastercardCheckoutServicesObject.js +1 -0
- package/build/@types/enum.d.ts +19 -0
- package/build/@types/enum.js +23 -0
- package/build/@types/error.d.ts +14 -0
- package/build/@types/error.js +1 -0
- package/build/@types/index.d.ts +6 -0
- package/build/@types/index.js +6 -0
- package/build/@types/tapCountry.d.ts +30 -0
- package/build/@types/tapCountry.js +1 -0
- package/build/@types/tapLocalisation.d.ts +193 -0
- package/build/@types/tapLocalisation.js +1 -0
- package/build/@types/tapTheme.d.ts +842 -0
- package/build/@types/tapTheme.js +1 -0
- package/build/@types/utils.d.ts +6 -0
- package/build/@types/utils.js +1 -0
- package/build/api.d.ts +3 -0
- package/build/api.js +30 -0
- package/build/assets/gif/error-black.gif +0 -0
- package/build/assets/gif/error-white.gif +0 -0
- package/build/assets/gif/success-black.gif +0 -0
- package/build/assets/gif/success-white.gif +0 -0
- package/build/assets/locales/locale.json +517 -0
- package/build/components/ActionButton/ActionButton.d.ts +20 -0
- package/build/components/ActionButton/ActionButton.js +35 -0
- package/build/components/ActionButton/index.d.ts +2 -0
- package/build/components/ActionButton/index.js +2 -0
- package/build/components/Banner/BannerError.d.ts +6 -0
- package/build/components/Banner/BannerError.js +36 -0
- package/build/components/Banner/index.d.ts +1 -0
- package/build/components/Banner/index.js +1 -0
- package/build/components/Button/Button.d.ts +5 -0
- package/build/components/Button/Button.js +23 -0
- package/build/components/Button/index.d.ts +2 -0
- package/build/components/Button/index.js +2 -0
- package/build/components/ChipButton/ChipButton.d.ts +15 -0
- package/build/components/ChipButton/ChipButton.js +49 -0
- package/build/components/ChipButton/index.d.ts +2 -0
- package/build/components/ChipButton/index.js +2 -0
- package/build/components/CountrySelect/CountrySelect.d.ts +8 -0
- package/build/components/CountrySelect/CountrySelect.js +27 -0
- package/build/components/CountrySelect/index.d.ts +2 -0
- package/build/components/CountrySelect/index.js +2 -0
- package/build/components/DragScrollableImageList/DragScrollableImageList.d.ts +6 -0
- package/build/components/DragScrollableImageList/DragScrollableImageList.js +27 -0
- package/build/components/DragScrollableImageList/index.d.ts +2 -0
- package/build/components/DragScrollableImageList/index.js +2 -0
- package/build/components/Icons/AnimatedCheckIcon.d.ts +8 -0
- package/build/components/Icons/AnimatedCheckIcon.js +33 -0
- package/build/components/Icons/CheckboxCheckedIcon.d.ts +7 -0
- package/build/components/Icons/CheckboxCheckedIcon.js +19 -0
- package/build/components/Icons/CheckboxIcon.d.ts +7 -0
- package/build/components/Icons/CheckboxIcon.js +19 -0
- package/build/components/Icons/ExclamationIcon.d.ts +8 -0
- package/build/components/Icons/ExclamationIcon.js +19 -0
- package/build/components/Icons/InfoIcon.d.ts +7 -0
- package/build/components/Icons/InfoIcon.js +10 -0
- package/build/components/Icons/MemoIcon.d.ts +8 -0
- package/build/components/Icons/MemoIcon.js +23 -0
- package/build/components/Icons/index.d.ts +6 -0
- package/build/components/Icons/index.js +6 -0
- package/build/components/Loader/Loader.d.ts +13 -0
- package/build/components/Loader/Loader.js +24 -0
- package/build/components/Loader/index.d.ts +2 -0
- package/build/components/Loader/index.js +2 -0
- package/build/components/OTPInput/OTPInput.d.ts +13 -0
- package/build/components/OTPInput/OTPInput.js +97 -0
- package/build/components/OTPInput/index.d.ts +2 -0
- package/build/components/OTPInput/index.js +2 -0
- package/build/components/OTPInputAdapter/OTPInputAdapter.d.ts +14 -0
- package/build/components/OTPInputAdapter/OTPInputAdapter.js +146 -0
- package/build/components/OTPInputAdapter/index.d.ts +3 -0
- package/build/components/OTPInputAdapter/index.js +3 -0
- package/build/components/OTPTimer/OTPTimer.d.ts +11 -0
- package/build/components/OTPTimer/OTPTimer.js +58 -0
- package/build/components/OTPTimer/hooks/useTimer.d.ts +8 -0
- package/build/components/OTPTimer/hooks/useTimer.js +28 -0
- package/build/components/OTPTimer/index.d.ts +1 -0
- package/build/components/OTPTimer/index.js +1 -0
- package/build/components/PhoneInput/PhoneInput.d.ts +8 -0
- package/build/components/PhoneInput/PhoneInput.js +71 -0
- package/build/components/PhoneInput/index.d.ts +2 -0
- package/build/components/PhoneInput/index.js +2 -0
- package/build/components/SkeletonLoader/SkeletonLoader.d.ts +4 -0
- package/build/components/SkeletonLoader/SkeletonLoader.js +50 -0
- package/build/components/SkeletonLoader/index.d.ts +2 -0
- package/build/components/SkeletonLoader/index.js +2 -0
- package/build/components/Text/Text.d.ts +5 -0
- package/build/components/Text/Text.js +17 -0
- package/build/components/Text/index.d.ts +2 -0
- package/build/components/Text/index.js +2 -0
- package/build/components/TooltipAdapter/TooltipAdapter.d.ts +7 -0
- package/build/components/TooltipAdapter/TooltipAdapter.js +63 -0
- package/build/components/TooltipAdapter/index.d.ts +2 -0
- package/build/components/TooltipAdapter/index.js +2 -0
- package/build/configs/dark.d.ts +958 -0
- package/build/configs/dark.js +958 -0
- package/build/configs/light.d.ts +960 -0
- package/build/configs/light.js +960 -0
- package/build/configs/locale.d.ts +517 -0
- package/build/configs/locale.js +517 -0
- package/build/constants/baseConfigs.d.ts +2 -0
- package/build/constants/baseConfigs.js +4 -0
- package/build/constants/click2pay.d.ts +16 -0
- package/build/constants/click2pay.js +16 -0
- package/build/constants/countries.d.ts +366 -0
- package/build/constants/countries.js +374 -0
- package/build/constants/index.d.ts +3 -0
- package/build/constants/index.js +3 -0
- package/build/context/Click2PayContext.d.ts +196 -0
- package/build/context/Click2PayContext.js +274 -0
- package/build/context/utils/chargeCall.d.ts +11 -0
- package/build/context/utils/chargeCall.js +82 -0
- package/build/features/CheckoutShell/CheckoutShell.css +76 -0
- package/build/features/CheckoutShell/CheckoutShell.d.ts +6 -0
- package/build/features/CheckoutShell/CheckoutShell.js +73 -0
- package/build/features/CheckoutShell/index.d.ts +1 -0
- package/build/features/CheckoutShell/index.js +1 -0
- package/build/features/Click2Pay/CardWeb/CardWeb.d.ts +7 -0
- package/build/features/Click2Pay/CardWeb/CardWeb.js +47 -0
- package/build/features/Click2Pay/CardWeb/index.d.ts +2 -0
- package/build/features/Click2Pay/CardWeb/index.js +2 -0
- package/build/features/Click2Pay/Click2PayBackButton/Click2PayBackButton.d.ts +8 -0
- package/build/features/Click2Pay/Click2PayBackButton/Click2PayBackButton.js +42 -0
- package/build/features/Click2Pay/Click2PayBackButton/index.d.ts +1 -0
- package/build/features/Click2Pay/Click2PayBackButton/index.js +1 -0
- package/build/features/Click2Pay/Click2PayCardAuthentication/hooks/useCheckoutWithCard.d.ts +7 -0
- package/build/features/Click2Pay/Click2PayCardAuthentication/hooks/useCheckoutWithCard.js +351 -0
- package/build/features/Click2Pay/Click2PayCardAuthentication/utils/index.d.ts +4 -0
- package/build/features/Click2Pay/Click2PayCardAuthentication/utils/index.js +18 -0
- package/build/features/Click2Pay/Click2PayCardButton/Click2PayCardButton.d.ts +13 -0
- package/build/features/Click2Pay/Click2PayCardButton/Click2PayCardButton.js +43 -0
- package/build/features/Click2Pay/Click2PayCardButton/index.d.ts +2 -0
- package/build/features/Click2Pay/Click2PayCardButton/index.js +2 -0
- package/build/features/Click2Pay/Click2PayChips/BackIcon.d.ts +2 -0
- package/build/features/Click2Pay/Click2PayChips/BackIcon.js +11 -0
- package/build/features/Click2Pay/Click2PayChips/Click2PayChips.d.ts +3 -0
- package/build/features/Click2Pay/Click2PayChips/Click2PayChips.js +88 -0
- package/build/features/Click2Pay/Click2PayChips/index.d.ts +2 -0
- package/build/features/Click2Pay/Click2PayChips/index.js +2 -0
- package/build/features/Click2Pay/Click2PayChipsContainer/Click2PayChipsContainer.d.ts +3 -0
- package/build/features/Click2Pay/Click2PayChipsContainer/Click2PayChipsContainer.js +16 -0
- package/build/features/Click2Pay/Click2PayChipsContainer/index.d.ts +2 -0
- package/build/features/Click2Pay/Click2PayChipsContainer/index.js +2 -0
- package/build/features/Click2Pay/Click2PaySignOutButton/Click2PaySignOutButton.d.ts +3 -0
- package/build/features/Click2Pay/Click2PaySignOutButton/Click2PaySignOutButton.js +24 -0
- package/build/features/Click2Pay/Click2PaySignOutButton/index.d.ts +1 -0
- package/build/features/Click2Pay/Click2PaySignOutButton/index.js +1 -0
- package/build/features/Click2Pay/Click2PaySupportedCardsList/Click2PaySupportedCardsList.d.ts +7 -0
- package/build/features/Click2Pay/Click2PaySupportedCardsList/Click2PaySupportedCardsList.js +53 -0
- package/build/features/Click2Pay/Click2PaySupportedCardsList/index.d.ts +1 -0
- package/build/features/Click2Pay/Click2PaySupportedCardsList/index.js +1 -0
- package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltip.d.ts +9 -0
- package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltip.js +23 -0
- package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/Click2PayTooltipButton.d.ts +9 -0
- package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/Click2PayTooltipButton.js +39 -0
- package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/Click2PayTooltipButtonExclamation.d.ts +6 -0
- package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/Click2PayTooltipButtonExclamation.js +24 -0
- package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/index.d.ts +2 -0
- package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/index.js +2 -0
- package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/InformationUsageContent.d.ts +3 -0
- package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/InformationUsageContent.js +43 -0
- package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/InformationUsageTooltip.d.ts +3 -0
- package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/InformationUsageTooltip.js +12 -0
- package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/index.d.ts +1 -0
- package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/index.js +1 -0
- package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/LearnMoreContent.d.ts +3 -0
- package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/LearnMoreContent.js +68 -0
- package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/LearnMoreTooltip.d.ts +3 -0
- package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/LearnMoreTooltip.js +12 -0
- package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/index.d.ts +1 -0
- package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/index.js +1 -0
- package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/RememberMeContent.d.ts +3 -0
- package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/RememberMeContent.js +42 -0
- package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/RememberMeTooltip.d.ts +3 -0
- package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/RememberMeTooltip.js +13 -0
- package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/index.d.ts +1 -0
- package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/index.js +1 -0
- package/build/features/Click2Pay/Click2PayTooltip/index.d.ts +5 -0
- package/build/features/Click2Pay/Click2PayTooltip/index.js +5 -0
- package/build/features/Click2Pay/DefaultPayButton/DefaultPayButton.d.ts +16 -0
- package/build/features/Click2Pay/DefaultPayButton/DefaultPayButton.js +67 -0
- package/build/features/Click2Pay/DefaultPayButton/index.d.ts +3 -0
- package/build/features/Click2Pay/DefaultPayButton/index.js +2 -0
- package/build/features/Click2Pay/LockedView/LockedView.d.ts +3 -0
- package/build/features/Click2Pay/LockedView/LockedView.js +22 -0
- package/build/features/Click2Pay/LockedView/index.d.ts +1 -0
- package/build/features/Click2Pay/LockedView/index.js +1 -0
- package/build/features/Click2Pay/LoginForm/LoginForm.d.ts +7 -0
- package/build/features/Click2Pay/LoginForm/LoginForm.js +39 -0
- package/build/features/Click2Pay/LoginForm/components/Email.d.ts +6 -0
- package/build/features/Click2Pay/LoginForm/components/Email.js +91 -0
- package/build/features/Click2Pay/LoginForm/components/LoginFormFooter.d.ts +3 -0
- package/build/features/Click2Pay/LoginForm/components/LoginFormFooter.js +25 -0
- package/build/features/Click2Pay/LoginForm/components/MobileNumber.d.ts +6 -0
- package/build/features/Click2Pay/LoginForm/components/MobileNumber.js +103 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/ChangePaymentMethodButton/ChangePaymentMethodButton.d.ts +9 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/ChangePaymentMethodButton/ChangePaymentMethodButton.js +29 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/ChangePaymentMethodButton/index.d.ts +2 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/ChangePaymentMethodButton/index.js +2 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/HeaderMessage.d.ts +7 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/HeaderMessage.js +29 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/LoginFormOTP.d.ts +3 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/LoginFormOTP.js +190 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/OTPActionButton/OTPActionButton.d.ts +10 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/OTPActionButton/OTPActionButton.js +24 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/OTPButton/OTPButton.d.ts +6 -0
- package/build/features/Click2Pay/LoginForm/components/OTP/OTPButton/OTPButton.js +23 -0
- package/build/features/Click2Pay/LoginForm/index.d.ts +2 -0
- package/build/features/Click2Pay/LoginForm/index.js +2 -0
- package/build/features/Click2Pay/LoginForm/useClick2PayLoginForm.d.ts +10 -0
- package/build/features/Click2Pay/LoginForm/useClick2PayLoginForm.js +233 -0
- package/build/features/Click2Pay/LoginForm/utils/assert/getCards.d.ts +3 -0
- package/build/features/Click2Pay/LoginForm/utils/assert/getCards.js +8 -0
- package/build/features/Click2Pay/LoginForm/utils/assert/idLookup.d.ts +3 -0
- package/build/features/Click2Pay/LoginForm/utils/assert/idLookup.js +8 -0
- package/build/features/Click2Pay/LoginForm/utils/assert/init.d.ts +3 -0
- package/build/features/Click2Pay/LoginForm/utils/assert/init.js +8 -0
- package/build/features/Click2Pay/LoginForm/utils/assert/initialValidationResponse.d.ts +3 -0
- package/build/features/Click2Pay/LoginForm/utils/assert/initialValidationResponse.js +8 -0
- package/build/features/Click2Pay/LoginForm/utils/assert/validateOTP.d.ts +3 -0
- package/build/features/Click2Pay/LoginForm/utils/assert/validateOTP.js +9 -0
- package/build/features/Click2Pay/LoginForm/utils/index.d.ts +5 -0
- package/build/features/Click2Pay/LoginForm/utils/index.js +5 -0
- package/build/features/Click2Pay/PaymentButton/CardList/CardList.d.ts +7 -0
- package/build/features/Click2Pay/PaymentButton/CardList/CardList.js +55 -0
- package/build/features/Click2Pay/PaymentButton/CardList/CardList.module.css +13 -0
- package/build/features/Click2Pay/PaymentButton/Click2PayPaymentButton.d.ts +16 -0
- package/build/features/Click2Pay/PaymentButton/Click2PayPaymentButton.js +22 -0
- package/build/features/Click2Pay/PaymentButton/animation/animationFeatures.d.ts +2 -0
- package/build/features/Click2Pay/PaymentButton/animation/animationFeatures.js +2 -0
- package/build/features/Click2Pay/PaymentButton/useClick2PayPaymentButton.d.ts +15 -0
- package/build/features/Click2Pay/PaymentButton/useClick2PayPaymentButton.js +30 -0
- package/build/features/Click2Pay/WidgetHints/ExclamationMarkIcon.d.ts +2 -0
- package/build/features/Click2Pay/WidgetHints/ExclamationMarkIcon.js +5 -0
- package/build/features/Click2Pay/WidgetHints/PopupNotEnabledHint.d.ts +2 -0
- package/build/features/Click2Pay/WidgetHints/PopupNotEnabledHint.js +51 -0
- package/build/features/Click2Pay/WidgetHints/SeeHowArrow.d.ts +3 -0
- package/build/features/Click2Pay/WidgetHints/SeeHowArrow.js +6 -0
- package/build/features/Click2Pay/WidgetHints/WidgetHints.d.ts +5 -0
- package/build/features/Click2Pay/WidgetHints/WidgetHints.js +44 -0
- package/build/features/Click2Pay/WidgetHints/index.d.ts +1 -0
- package/build/features/Click2Pay/WidgetHints/index.js +1 -0
- package/build/features/Click2Pay/index.d.ts +1 -0
- package/build/features/Click2Pay/index.js +1 -0
- package/build/hooks/index.d.ts +6 -0
- package/build/hooks/index.js +6 -0
- package/build/hooks/useAppTheme.d.ts +12 -0
- package/build/hooks/useAppTheme.js +27 -0
- package/build/hooks/useCard.d.ts +23 -0
- package/build/hooks/useCard.js +136 -0
- package/build/hooks/useCardWeb.d.ts +12 -0
- package/build/hooks/useCardWeb.js +143 -0
- package/build/hooks/useClick2Pay.d.ts +42 -0
- package/build/hooks/useClick2Pay.js +244 -0
- package/build/hooks/useClickToPayStatus.d.ts +4 -0
- package/build/hooks/useClickToPayStatus.js +13 -0
- package/build/hooks/useGetEvents.d.ts +5 -0
- package/build/hooks/useGetEvents.js +16 -0
- package/build/hooks/usePreLoadScripts.d.ts +6 -0
- package/build/hooks/usePreLoadScripts.js +23 -0
- package/build/hooks/useResizeObserver.d.ts +3 -0
- package/build/hooks/useResizeObserver.js +19 -0
- package/build/hooks/useScript.d.ts +4 -0
- package/build/hooks/useScript.js +39 -0
- package/build/hooks/useTranslation.d.ts +7 -0
- package/build/hooks/useTranslation.js +5 -0
- package/build/hooks/utils/initialCall.d.ts +13 -0
- package/build/hooks/utils/initialCall.js +83 -0
- package/build/i18n.d.ts +11 -0
- package/build/i18n.js +26 -0
- package/build/index.d.ts +4 -0
- package/build/index.js +11 -0
- package/build/theme/index.d.ts +1 -0
- package/build/theme/index.js +1 -0
- package/build/theme/palette.d.ts +3 -0
- package/build/theme/palette.js +75 -0
- package/build/theme/shadows.d.ts +2 -0
- package/build/theme/shadows.js +27 -0
- package/build/theme/theme.d.ts +3 -0
- package/build/theme/theme.js +45 -0
- package/build/theme/typography.d.ts +3 -0
- package/build/theme/typography.js +40 -0
- package/build/utils/baseConfigs.d.ts +11 -0
- package/build/utils/baseConfigs.js +64 -0
- package/build/utils/charge.d.ts +14 -0
- package/build/utils/charge.js +19 -0
- package/build/utils/click2Pay.d.ts +1 -0
- package/build/utils/click2Pay.js +7 -0
- package/build/utils/font.d.ts +1 -0
- package/build/utils/font.js +1 -0
- package/build/utils/form/email.d.ts +3 -0
- package/build/utils/form/email.js +4 -0
- package/build/utils/form/phone.d.ts +4 -0
- package/build/utils/form/phone.js +3 -0
- package/build/utils/index.d.ts +8 -0
- package/build/utils/index.js +8 -0
- package/build/utils/object.d.ts +1 -0
- package/build/utils/object.js +7 -0
- package/build/utils/paymentMethod.d.ts +2 -0
- package/build/utils/paymentMethod.js +3 -0
- package/build/utils/strings.d.ts +13 -0
- package/build/utils/strings.js +52 -0
- package/build/utils/window.d.ts +10 -0
- package/build/utils/window.js +36 -0
- package/package.json +121 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Tap Payments
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<h1 align="center">card-button-element</h1>
|
|
2
|
+
<h3 align="center">
|
|
3
|
+
|
|
4
|
+
[](https://www.npmjs.com/package/@tap-payments/card-button-web?activeTab=versions)
|
|
5
|
+
|
|
6
|
+
[](https://www.npmjs.com/package/@tap-payments/card-button-web?activeTab=versions)
|
|
7
|
+
[](https://www.npmjs.com/package/@tap-payments/card-button-web?activeTab=versions)
|
|
8
|
+
</h3>
|
|
9
|
+
|
|
10
|
+
# Installation
|
|
11
|
+
|
|
12
|
+
`npm`
|
|
13
|
+
```bash
|
|
14
|
+
npm i @tap-payments/card-button-web
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
or `yarn`
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
yarn add @tap-payments/card-button-web
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
or `pnpm`
|
|
24
|
+
```bash
|
|
25
|
+
pnpm add @tap-payments/card-button-web
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<table>
|
|
30
|
+
<tr>
|
|
31
|
+
<th>Loading</th>
|
|
32
|
+
<th>Button passed all data</th>
|
|
33
|
+
</tr>
|
|
34
|
+
<tr>
|
|
35
|
+
<td>
|
|
36
|
+
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
</td>
|
|
40
|
+
<td>
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
</td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<th>Button with missing passed data</th>
|
|
48
|
+
<th>Button with missing passed data card info filled</th>
|
|
49
|
+
</tr>
|
|
50
|
+
<tr>
|
|
51
|
+
<td>
|
|
52
|
+
|
|
53
|
+

|
|
54
|
+
|
|
55
|
+
</td>
|
|
56
|
+
<td>
|
|
57
|
+
|
|
58
|
+

|
|
59
|
+
|
|
60
|
+
</td>
|
|
61
|
+
</tr>
|
|
62
|
+
</table>
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export interface AuthenticateResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
object: string;
|
|
4
|
+
live_mode: boolean;
|
|
5
|
+
api_version: string;
|
|
6
|
+
status: string;
|
|
7
|
+
created: string;
|
|
8
|
+
response: Response;
|
|
9
|
+
threeDSecure: ThreeDsecure;
|
|
10
|
+
order: Order;
|
|
11
|
+
purpose: string;
|
|
12
|
+
customer: Customer;
|
|
13
|
+
source: Source;
|
|
14
|
+
card: Card;
|
|
15
|
+
device: Device;
|
|
16
|
+
auth_provider: AuthProvider;
|
|
17
|
+
redirect: Redirect;
|
|
18
|
+
}
|
|
19
|
+
export interface Response {
|
|
20
|
+
code: string;
|
|
21
|
+
message: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ThreeDsecure {
|
|
24
|
+
acs_eci: string;
|
|
25
|
+
card_enrolled: string;
|
|
26
|
+
authentication_token: string;
|
|
27
|
+
transaction_id: string;
|
|
28
|
+
version: string;
|
|
29
|
+
trans_status: string;
|
|
30
|
+
mode: string;
|
|
31
|
+
type: string;
|
|
32
|
+
}
|
|
33
|
+
export interface Order {
|
|
34
|
+
id: string;
|
|
35
|
+
created: number;
|
|
36
|
+
object: string;
|
|
37
|
+
live_mode: string;
|
|
38
|
+
api_version: string;
|
|
39
|
+
feature_version: string;
|
|
40
|
+
status: string;
|
|
41
|
+
amount: number;
|
|
42
|
+
currency: string;
|
|
43
|
+
items_count: number;
|
|
44
|
+
items: Item[];
|
|
45
|
+
}
|
|
46
|
+
export interface Item {
|
|
47
|
+
id: string;
|
|
48
|
+
quantity: number;
|
|
49
|
+
product: Product;
|
|
50
|
+
}
|
|
51
|
+
export interface Product {
|
|
52
|
+
amount: number;
|
|
53
|
+
currency: string;
|
|
54
|
+
profile: Profile;
|
|
55
|
+
}
|
|
56
|
+
export interface Profile {
|
|
57
|
+
name: Name[];
|
|
58
|
+
description: Description[];
|
|
59
|
+
}
|
|
60
|
+
export interface Name {
|
|
61
|
+
text: string;
|
|
62
|
+
locale: string;
|
|
63
|
+
}
|
|
64
|
+
export interface Description {
|
|
65
|
+
text: string;
|
|
66
|
+
locale: string;
|
|
67
|
+
}
|
|
68
|
+
export interface Customer {
|
|
69
|
+
id: string;
|
|
70
|
+
name: Name2[];
|
|
71
|
+
contact: Contact;
|
|
72
|
+
}
|
|
73
|
+
export interface Name2 {
|
|
74
|
+
first_name: string;
|
|
75
|
+
last_name: string;
|
|
76
|
+
middle_name: string;
|
|
77
|
+
locale: string;
|
|
78
|
+
}
|
|
79
|
+
export interface Contact {
|
|
80
|
+
email: string;
|
|
81
|
+
phone: Phone;
|
|
82
|
+
}
|
|
83
|
+
export interface Phone {
|
|
84
|
+
country_code: string;
|
|
85
|
+
number: string;
|
|
86
|
+
}
|
|
87
|
+
export interface Source {
|
|
88
|
+
id: string;
|
|
89
|
+
object: string;
|
|
90
|
+
payment_method: string;
|
|
91
|
+
}
|
|
92
|
+
export interface Card {
|
|
93
|
+
first_six: string;
|
|
94
|
+
scheme: string;
|
|
95
|
+
brand: string;
|
|
96
|
+
category: string;
|
|
97
|
+
last_four: string;
|
|
98
|
+
name: string;
|
|
99
|
+
expiry: Expiry;
|
|
100
|
+
funding: string;
|
|
101
|
+
}
|
|
102
|
+
export interface Expiry {
|
|
103
|
+
month: string;
|
|
104
|
+
year: string;
|
|
105
|
+
}
|
|
106
|
+
export interface Device {
|
|
107
|
+
type: string;
|
|
108
|
+
location: Location;
|
|
109
|
+
browser: Browser;
|
|
110
|
+
}
|
|
111
|
+
export interface Location {
|
|
112
|
+
ip: string;
|
|
113
|
+
city: string;
|
|
114
|
+
time_zone: string;
|
|
115
|
+
country: string;
|
|
116
|
+
region: Region;
|
|
117
|
+
}
|
|
118
|
+
export interface Region {
|
|
119
|
+
code: string;
|
|
120
|
+
name: string;
|
|
121
|
+
}
|
|
122
|
+
export interface Browser {
|
|
123
|
+
language: string;
|
|
124
|
+
screen_height: string;
|
|
125
|
+
screen_width: string;
|
|
126
|
+
color_depth: string;
|
|
127
|
+
java_enabled: boolean;
|
|
128
|
+
java_script_enabled: boolean;
|
|
129
|
+
accept_headers: string;
|
|
130
|
+
'3ds_challenge_window_size': string;
|
|
131
|
+
user_agent: string;
|
|
132
|
+
}
|
|
133
|
+
export interface AuthProvider {
|
|
134
|
+
name: string;
|
|
135
|
+
}
|
|
136
|
+
export interface Redirect {
|
|
137
|
+
url: string;
|
|
138
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonSDKProps } from "@tap-payments/acceptance-sdk";
|
|
2
|
+
import { BinIdentificationResponse } from "./cardWeb";
|
|
3
|
+
export interface ClickToPayButtonProps extends ButtonSDKProps {
|
|
4
|
+
styles?: {
|
|
5
|
+
layoutBackgroundColor?: string;
|
|
6
|
+
};
|
|
7
|
+
onHeightChange?: (height: number) => void;
|
|
8
|
+
onScannerClick?: () => void;
|
|
9
|
+
onNfcClick?: () => void;
|
|
10
|
+
onBinIdentification?: (data: BinIdentificationResponse) => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { CardElementProps } from '@tap-payments/card-web/build/types';
|
|
2
|
+
import { CardType } from '.';
|
|
3
|
+
import { CheckoutProfileResponse } from '@tap-payments/acceptance-sdk';
|
|
4
|
+
export type CheckoutCardElementProps = CardElementProps & {
|
|
5
|
+
config: CardElementProps['config'] & {
|
|
6
|
+
checkoutProfileResponse?: CheckoutProfileResponse;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export interface BinIdentificationResponse {
|
|
10
|
+
bin: string;
|
|
11
|
+
bank: string;
|
|
12
|
+
brand: CardType;
|
|
13
|
+
card_brand: CardType;
|
|
14
|
+
card_scheme: CardType;
|
|
15
|
+
card_type: 'CREDIT' | 'DEBIT';
|
|
16
|
+
card_category: string;
|
|
17
|
+
country: string;
|
|
18
|
+
api_version: string;
|
|
19
|
+
issuer_id: string;
|
|
20
|
+
address_required: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface CardWebSuccessResponse {
|
|
23
|
+
id: string;
|
|
24
|
+
object: string;
|
|
25
|
+
live_mode: boolean;
|
|
26
|
+
api_version: string;
|
|
27
|
+
save_card: boolean;
|
|
28
|
+
status: string;
|
|
29
|
+
created: string;
|
|
30
|
+
response: Response;
|
|
31
|
+
threeDSecure: ThreeDSecure;
|
|
32
|
+
order: Order;
|
|
33
|
+
purpose: string;
|
|
34
|
+
customer: Customer;
|
|
35
|
+
source: Source;
|
|
36
|
+
card: Card;
|
|
37
|
+
merchant: Merchant;
|
|
38
|
+
device: Device;
|
|
39
|
+
auth_provider: Authprovider;
|
|
40
|
+
redirect: Redirect;
|
|
41
|
+
}
|
|
42
|
+
interface Redirect {
|
|
43
|
+
url: string;
|
|
44
|
+
}
|
|
45
|
+
interface Authprovider {
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
interface Device {
|
|
49
|
+
type: string;
|
|
50
|
+
location: Location;
|
|
51
|
+
browser: Browser;
|
|
52
|
+
}
|
|
53
|
+
interface Browser {
|
|
54
|
+
language: string;
|
|
55
|
+
screen_height: string;
|
|
56
|
+
screen_width: string;
|
|
57
|
+
color_depth: string;
|
|
58
|
+
java_enabled: boolean;
|
|
59
|
+
java_script_enabled: boolean;
|
|
60
|
+
accept_headers: string;
|
|
61
|
+
'3ds_challenge_window_size': string;
|
|
62
|
+
user_agent: string;
|
|
63
|
+
}
|
|
64
|
+
interface Location {
|
|
65
|
+
ip: string;
|
|
66
|
+
city: string;
|
|
67
|
+
time_zone: string;
|
|
68
|
+
country: string;
|
|
69
|
+
region: Region;
|
|
70
|
+
}
|
|
71
|
+
interface Region {
|
|
72
|
+
code: string;
|
|
73
|
+
name: string;
|
|
74
|
+
}
|
|
75
|
+
interface Card {
|
|
76
|
+
first_six: string;
|
|
77
|
+
scheme: string;
|
|
78
|
+
brand: string;
|
|
79
|
+
category: string;
|
|
80
|
+
last_four: string;
|
|
81
|
+
name: string;
|
|
82
|
+
expiry: Expiry;
|
|
83
|
+
funding: string;
|
|
84
|
+
}
|
|
85
|
+
interface Expiry {
|
|
86
|
+
month: string;
|
|
87
|
+
year: string;
|
|
88
|
+
}
|
|
89
|
+
interface Source {
|
|
90
|
+
id: string;
|
|
91
|
+
object: string;
|
|
92
|
+
payment_method: string;
|
|
93
|
+
}
|
|
94
|
+
interface Customer {
|
|
95
|
+
id: string;
|
|
96
|
+
name: Name2[];
|
|
97
|
+
contact: Contact;
|
|
98
|
+
}
|
|
99
|
+
interface Contact {
|
|
100
|
+
email: string;
|
|
101
|
+
phone: Phone;
|
|
102
|
+
}
|
|
103
|
+
interface Phone {
|
|
104
|
+
number: string;
|
|
105
|
+
}
|
|
106
|
+
interface Name2 {
|
|
107
|
+
first_name: string;
|
|
108
|
+
last_name: string;
|
|
109
|
+
middle_name: string;
|
|
110
|
+
locale: string;
|
|
111
|
+
}
|
|
112
|
+
interface Order {
|
|
113
|
+
id: string;
|
|
114
|
+
object: string;
|
|
115
|
+
live_mode: string;
|
|
116
|
+
api_version: string;
|
|
117
|
+
feature_version: string;
|
|
118
|
+
status: string;
|
|
119
|
+
amount: number;
|
|
120
|
+
currency: string;
|
|
121
|
+
items_count: number;
|
|
122
|
+
items: Item[];
|
|
123
|
+
merchant: Merchant;
|
|
124
|
+
}
|
|
125
|
+
interface Merchant {
|
|
126
|
+
id: string;
|
|
127
|
+
}
|
|
128
|
+
interface Item {
|
|
129
|
+
id: string;
|
|
130
|
+
quantity: number;
|
|
131
|
+
product: Product;
|
|
132
|
+
}
|
|
133
|
+
interface Product {
|
|
134
|
+
id: string;
|
|
135
|
+
amount: number;
|
|
136
|
+
currency: string;
|
|
137
|
+
profile: Profile;
|
|
138
|
+
}
|
|
139
|
+
interface Profile {
|
|
140
|
+
name: Name[];
|
|
141
|
+
description: Name[];
|
|
142
|
+
}
|
|
143
|
+
interface Name {
|
|
144
|
+
text: string;
|
|
145
|
+
locale: string;
|
|
146
|
+
}
|
|
147
|
+
interface ThreeDSecure {
|
|
148
|
+
acs_eci: string;
|
|
149
|
+
card_enrolled: string;
|
|
150
|
+
authentication_token: string;
|
|
151
|
+
transaction_id: string;
|
|
152
|
+
version: string;
|
|
153
|
+
trans_status: string;
|
|
154
|
+
mode: string;
|
|
155
|
+
type: string;
|
|
156
|
+
}
|
|
157
|
+
interface Response {
|
|
158
|
+
code: string;
|
|
159
|
+
message: string;
|
|
160
|
+
}
|
|
161
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './clickToPay/dpaData';
|
|
2
|
+
export * from './clickToPay/click2PayCard';
|
|
3
|
+
export * from './clickToPay/dpaTransactionOptions';
|
|
4
|
+
export * from './clickToPay/mastercardCheckoutServicesObject';
|
|
5
|
+
export * from './clickToPay/events/index';
|
|
6
|
+
export * from './clickToPay/events/init';
|
|
7
|
+
export * from './clickToPay/events/getCards';
|
|
8
|
+
export * from './clickToPay/events/idLookup';
|
|
9
|
+
export * from './clickToPay/events/initiateValidation';
|
|
10
|
+
export * from './clickToPay/events/validate';
|
|
11
|
+
export * from './clickToPay/events/signOut';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './clickToPay/dpaData';
|
|
2
|
+
export * from './clickToPay/click2PayCard';
|
|
3
|
+
export * from './clickToPay/dpaTransactionOptions';
|
|
4
|
+
export * from './clickToPay/mastercardCheckoutServicesObject';
|
|
5
|
+
export * from './clickToPay/events/index';
|
|
6
|
+
export * from './clickToPay/events/init';
|
|
7
|
+
export * from './clickToPay/events/getCards';
|
|
8
|
+
export * from './clickToPay/events/idLookup';
|
|
9
|
+
export * from './clickToPay/events/initiateValidation';
|
|
10
|
+
export * from './clickToPay/events/validate';
|
|
11
|
+
export * from './clickToPay/events/signOut';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MaskedCard } from './maskedCard';
|
|
2
|
+
import type { MaskedConsumer } from './maskedConsumer';
|
|
3
|
+
export type CheckoutActionCode = 'CANCEL' | 'COMPLETE' | 'SWITCH_CONSUMER' | 'CHANGE_CARD' | (string & {});
|
|
4
|
+
export interface CheckoutResponseData {
|
|
5
|
+
srcCorrelationId?: string;
|
|
6
|
+
srciTransactionId?: string;
|
|
7
|
+
maskedCard?: MaskedCard;
|
|
8
|
+
maskedConsumer?: MaskedConsumer;
|
|
9
|
+
assuranceData?: {
|
|
10
|
+
cardVerificationEntity: string;
|
|
11
|
+
cardVerificationMethod: string;
|
|
12
|
+
cardVerificationResults: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type CARD_BRAND = 'visa' | 'amex' | 'maestro' | 'mastercard' | 'discover';
|
|
2
|
+
export interface DigitalCardData {
|
|
3
|
+
status: 'ACTIVE' | (string & {});
|
|
4
|
+
descriptorName: string;
|
|
5
|
+
artUri: string;
|
|
6
|
+
presentationName?: string;
|
|
7
|
+
artHeight?: string;
|
|
8
|
+
artWidth?: string;
|
|
9
|
+
pendingEvents?: Array<'PENDING_AVS' | 'PENDING_SCA' | 'PENDING_CONSUMER_IDV'>;
|
|
10
|
+
coBrandedName?: string;
|
|
11
|
+
isCoBranded?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface MaskedBillingAddress {
|
|
14
|
+
name?: string;
|
|
15
|
+
line1?: string;
|
|
16
|
+
line2?: string;
|
|
17
|
+
line3?: string;
|
|
18
|
+
city?: string;
|
|
19
|
+
state?: string;
|
|
20
|
+
countryCode?: string;
|
|
21
|
+
zip?: string;
|
|
22
|
+
addressId: string;
|
|
23
|
+
createTime?: string;
|
|
24
|
+
lastUsedTime?: string;
|
|
25
|
+
}
|
|
26
|
+
interface Dcf {
|
|
27
|
+
type: string;
|
|
28
|
+
uri: string;
|
|
29
|
+
logoUri: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
export interface Click2PayCard {
|
|
33
|
+
dcf: Dcf;
|
|
34
|
+
panBin: string;
|
|
35
|
+
countryCode: string;
|
|
36
|
+
panLastFour: string;
|
|
37
|
+
tokenLastFour?: string;
|
|
38
|
+
tokenBinRange?: any;
|
|
39
|
+
srcPaymentCardId?: string;
|
|
40
|
+
srcDigitalCardId?: string;
|
|
41
|
+
digitalCardFeatures: any[];
|
|
42
|
+
panExpirationMonth: string;
|
|
43
|
+
panExpirationYear: string;
|
|
44
|
+
paymentCardDescriptor: string;
|
|
45
|
+
paymentCardType: string;
|
|
46
|
+
digitalCardData: DigitalCardData;
|
|
47
|
+
cardholderFirstName: string;
|
|
48
|
+
cardholderLastName: string;
|
|
49
|
+
cardholderFullName: string;
|
|
50
|
+
dateOfCardCreated: string;
|
|
51
|
+
dateOfCardLastUsed: string;
|
|
52
|
+
maskedBillingAddress?: MaskedBillingAddress;
|
|
53
|
+
maskedShippingAddress?: MaskedBillingAddress;
|
|
54
|
+
digitalCardRelatedData?: any;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ComplianceSettings {
|
|
2
|
+
privacy?: {
|
|
3
|
+
acceptedVersion?: 'LATEST' | (string & {});
|
|
4
|
+
latestVersion?: 'LATEST' | (string & {});
|
|
5
|
+
latestVersionUri?: string;
|
|
6
|
+
};
|
|
7
|
+
tnc?: {
|
|
8
|
+
acceptedVersion: 'LATEST' | (string & {});
|
|
9
|
+
latestVersion: 'LATEST' | (string & {});
|
|
10
|
+
latestVersionUri: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { CountryCode, currencyCode } from '@tap-payments/acceptance-sdk';
|
|
2
|
+
interface TransactionAmount {
|
|
3
|
+
transactionAmount: number;
|
|
4
|
+
transactionCurrencyCode: currencyCode;
|
|
5
|
+
}
|
|
6
|
+
interface AuthenticationPreferences {
|
|
7
|
+
payloadRequested?: 'AUTHENTICATED' | 'NON_AUTHENTICATED';
|
|
8
|
+
}
|
|
9
|
+
interface PaymentOptions {
|
|
10
|
+
dynamicDataType?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DpaTransactionOptions {
|
|
13
|
+
dpaAcceptedBillingCountries?: CountryCode[];
|
|
14
|
+
transactionAmount?: TransactionAmount;
|
|
15
|
+
dpaBillingPreference?: 'NONE' | 'FULL' | 'POSTAL_COUNTRY';
|
|
16
|
+
dpaLocale: string;
|
|
17
|
+
authenticationPreferences?: AuthenticationPreferences;
|
|
18
|
+
consumerEmailAddressRequested?: boolean;
|
|
19
|
+
consumerPhoneNumberRequested?: boolean;
|
|
20
|
+
consumerNameRequested?: boolean;
|
|
21
|
+
paymentOptions?: PaymentOptions[];
|
|
22
|
+
merchantCategoryCode?: string;
|
|
23
|
+
merchantCountryCode?: CountryCode;
|
|
24
|
+
acquirerBIN?: string;
|
|
25
|
+
acquirerMerchantId?: string;
|
|
26
|
+
merchantOrderId?: string;
|
|
27
|
+
orderType?: 'SPLIT_SHIPMENT' | 'PREFERRED_CARD';
|
|
28
|
+
threeDsPreference?: 'NONE' | (string & {});
|
|
29
|
+
confirmPayment?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CheckoutActionCode, CheckoutResponseData } from '../checkoutResponseData';
|
|
2
|
+
import type { ComplianceSettings } from '../complianceSettings';
|
|
3
|
+
import type { DpaTransactionOptions } from '../dpaTransactionOptions';
|
|
4
|
+
import type { ClickToPayError } from './errors';
|
|
5
|
+
export type ClickToPay_Event_CheckoutWithCard_Request_params = {
|
|
6
|
+
srcDigitalCardId: string;
|
|
7
|
+
windowRef: Window | object | null;
|
|
8
|
+
complianceSettings?: ComplianceSettings;
|
|
9
|
+
dpaTransactionOptions?: DpaTransactionOptions;
|
|
10
|
+
rememberMe?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type ClickToPay_Event_CheckoutWithCard_Response_Error = ClickToPayError<'INVALID_PARAMETER' | 'CARD_INVALID'>;
|
|
13
|
+
export type ClickToPay_Event_CheckoutWithCard_Response_Success = {
|
|
14
|
+
checkoutActionCode: CheckoutActionCode;
|
|
15
|
+
checkoutResponse?: string;
|
|
16
|
+
idToken?: string;
|
|
17
|
+
network?: string;
|
|
18
|
+
headers?: {
|
|
19
|
+
'x-src-cx-flow-id'?: string;
|
|
20
|
+
'merchant-transaction-id'?: string;
|
|
21
|
+
};
|
|
22
|
+
checkoutResponseData?: CheckoutResponseData;
|
|
23
|
+
};
|
|
24
|
+
export type ClickToPay_Event_CheckoutWithCard_Response = ClickToPay_Event_CheckoutWithCard_Response_Success | ClickToPay_Event_CheckoutWithCard_Response_Error;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CheckoutActionCode, CheckoutResponseData } from '../checkoutResponseData';
|
|
2
|
+
import type { ComplianceSettings } from '../complianceSettings';
|
|
3
|
+
import type { Consumer } from '../consumer';
|
|
4
|
+
import type { DpaTransactionOptions } from '../dpaTransactionOptions';
|
|
5
|
+
import type { ClickToPay_Event_EncryptCard_Response_Success } from './encryptCard';
|
|
6
|
+
import type { ClickToPayError } from './errors';
|
|
7
|
+
export type ClickToPay_Event_CheckoutWithNewCard_Request_params = ClickToPay_Event_EncryptCard_Response_Success & {
|
|
8
|
+
consumer?: Consumer;
|
|
9
|
+
windowRef: Window | object | null;
|
|
10
|
+
complianceSettings?: ComplianceSettings;
|
|
11
|
+
dpaTransactionOptions?: DpaTransactionOptions;
|
|
12
|
+
rememberMe?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type ClickToPay_Event_CheckoutWithNewCard_Response_Error = ClickToPayError<'INVALID_PARAMETER' | 'CARD_INVALID'>;
|
|
15
|
+
export type ClickToPay_Event_CheckoutWithNewCard_Response_Success = {
|
|
16
|
+
checkoutActionCode: CheckoutActionCode;
|
|
17
|
+
checkoutResponse?: string;
|
|
18
|
+
idToken?: string;
|
|
19
|
+
network?: string;
|
|
20
|
+
headers?: {
|
|
21
|
+
'x-src-cx-flow-id'?: string;
|
|
22
|
+
'merchant-transaction-id'?: string;
|
|
23
|
+
};
|
|
24
|
+
checkoutResponseData?: CheckoutResponseData;
|
|
25
|
+
};
|
|
26
|
+
export type ClickToPay_Event_CheckoutWithNewCard_Response = ClickToPay_Event_CheckoutWithNewCard_Response_Success | ClickToPay_Event_CheckoutWithNewCard_Response_Error;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CARD_BRAND } from '../click2PayCard';
|
|
2
|
+
import type { ClickToPayError } from './errors';
|
|
3
|
+
export type ClickToPay_Event_EncryptCard_Request_params = {
|
|
4
|
+
primaryAccountNumber: string;
|
|
5
|
+
panExpirationMonth: string;
|
|
6
|
+
panExpirationYear: string;
|
|
7
|
+
cardSecurityCode: string;
|
|
8
|
+
cardholderFirstName?: string;
|
|
9
|
+
cardholderLastName?: string;
|
|
10
|
+
billingAddress?: {
|
|
11
|
+
name?: string;
|
|
12
|
+
line1?: string;
|
|
13
|
+
line2?: string;
|
|
14
|
+
line3?: string;
|
|
15
|
+
city?: string;
|
|
16
|
+
state?: string;
|
|
17
|
+
zip?: string;
|
|
18
|
+
countryCode?: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export type ClickToPay_Event_EncryptCard_Response_Error = ClickToPayError<'INVALID_PARAMETER' | 'UNKNOWN_ERROR'>;
|
|
22
|
+
export type ClickToPay_Event_EncryptCard_Response_Success = {
|
|
23
|
+
encryptedCard: string;
|
|
24
|
+
cardBrand: CARD_BRAND;
|
|
25
|
+
};
|
|
26
|
+
export type ClickToPay_Event_EncryptCard_Response = ClickToPay_Event_EncryptCard_Response_Success | ClickToPay_Event_EncryptCard_Response_Error;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|