@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.
Files changed (354) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +62 -0
  3. package/build/@types/authenticate.d.ts +138 -0
  4. package/build/@types/authenticate.js +1 -0
  5. package/build/@types/cardButtonProps.d.ts +11 -0
  6. package/build/@types/cardButtonProps.js +1 -0
  7. package/build/@types/cardWeb.d.ts +161 -0
  8. package/build/@types/cardWeb.js +1 -0
  9. package/build/@types/click2pay.d.ts +11 -0
  10. package/build/@types/click2pay.js +11 -0
  11. package/build/@types/clickToPay/checkoutResponseData.d.ts +14 -0
  12. package/build/@types/clickToPay/checkoutResponseData.js +1 -0
  13. package/build/@types/clickToPay/click2PayCard.d.ts +56 -0
  14. package/build/@types/clickToPay/click2PayCard.js +1 -0
  15. package/build/@types/clickToPay/complianceSettings.d.ts +12 -0
  16. package/build/@types/clickToPay/complianceSettings.js +1 -0
  17. package/build/@types/clickToPay/consumer.d.ts +9 -0
  18. package/build/@types/clickToPay/consumer.js +1 -0
  19. package/build/@types/clickToPay/dpaData.d.ts +7 -0
  20. package/build/@types/clickToPay/dpaData.js +1 -0
  21. package/build/@types/clickToPay/dpaTransactionOptions.d.ts +31 -0
  22. package/build/@types/clickToPay/dpaTransactionOptions.js +1 -0
  23. package/build/@types/clickToPay/events/checkoutWithCard.d.ts +24 -0
  24. package/build/@types/clickToPay/events/checkoutWithCard.js +1 -0
  25. package/build/@types/clickToPay/events/checkoutWithNewCard.d.ts +26 -0
  26. package/build/@types/clickToPay/events/checkoutWithNewCard.js +1 -0
  27. package/build/@types/clickToPay/events/encryptCard.d.ts +26 -0
  28. package/build/@types/clickToPay/events/encryptCard.js +1 -0
  29. package/build/@types/clickToPay/events/errors.d.ts +15 -0
  30. package/build/@types/clickToPay/events/errors.js +12 -0
  31. package/build/@types/clickToPay/events/getCards.d.ts +4 -0
  32. package/build/@types/clickToPay/events/getCards.js +1 -0
  33. package/build/@types/clickToPay/events/idLookup.d.ts +16 -0
  34. package/build/@types/clickToPay/events/idLookup.js +1 -0
  35. package/build/@types/clickToPay/events/index.d.ts +23 -0
  36. package/build/@types/clickToPay/events/index.js +1 -0
  37. package/build/@types/clickToPay/events/init.d.ts +20 -0
  38. package/build/@types/clickToPay/events/init.js +1 -0
  39. package/build/@types/clickToPay/events/initiateValidation.d.ts +19 -0
  40. package/build/@types/clickToPay/events/initiateValidation.js +1 -0
  41. package/build/@types/clickToPay/events/signOut.d.ts +8 -0
  42. package/build/@types/clickToPay/events/signOut.js +1 -0
  43. package/build/@types/clickToPay/events/validate.d.ts +8 -0
  44. package/build/@types/clickToPay/events/validate.js +1 -0
  45. package/build/@types/clickToPay/maskedCard.d.ts +16 -0
  46. package/build/@types/clickToPay/maskedCard.js +1 -0
  47. package/build/@types/clickToPay/maskedConsumer.d.ts +21 -0
  48. package/build/@types/clickToPay/maskedConsumer.js +1 -0
  49. package/build/@types/clickToPay/mastercardCheckoutServicesObject.d.ts +61 -0
  50. package/build/@types/clickToPay/mastercardCheckoutServicesObject.js +1 -0
  51. package/build/@types/enum.d.ts +19 -0
  52. package/build/@types/enum.js +23 -0
  53. package/build/@types/error.d.ts +14 -0
  54. package/build/@types/error.js +1 -0
  55. package/build/@types/index.d.ts +6 -0
  56. package/build/@types/index.js +6 -0
  57. package/build/@types/tapCountry.d.ts +30 -0
  58. package/build/@types/tapCountry.js +1 -0
  59. package/build/@types/tapLocalisation.d.ts +193 -0
  60. package/build/@types/tapLocalisation.js +1 -0
  61. package/build/@types/tapTheme.d.ts +842 -0
  62. package/build/@types/tapTheme.js +1 -0
  63. package/build/@types/utils.d.ts +6 -0
  64. package/build/@types/utils.js +1 -0
  65. package/build/api.d.ts +3 -0
  66. package/build/api.js +30 -0
  67. package/build/assets/gif/error-black.gif +0 -0
  68. package/build/assets/gif/error-white.gif +0 -0
  69. package/build/assets/gif/success-black.gif +0 -0
  70. package/build/assets/gif/success-white.gif +0 -0
  71. package/build/assets/locales/locale.json +517 -0
  72. package/build/components/ActionButton/ActionButton.d.ts +20 -0
  73. package/build/components/ActionButton/ActionButton.js +35 -0
  74. package/build/components/ActionButton/index.d.ts +2 -0
  75. package/build/components/ActionButton/index.js +2 -0
  76. package/build/components/Banner/BannerError.d.ts +6 -0
  77. package/build/components/Banner/BannerError.js +36 -0
  78. package/build/components/Banner/index.d.ts +1 -0
  79. package/build/components/Banner/index.js +1 -0
  80. package/build/components/Button/Button.d.ts +5 -0
  81. package/build/components/Button/Button.js +23 -0
  82. package/build/components/Button/index.d.ts +2 -0
  83. package/build/components/Button/index.js +2 -0
  84. package/build/components/ChipButton/ChipButton.d.ts +15 -0
  85. package/build/components/ChipButton/ChipButton.js +49 -0
  86. package/build/components/ChipButton/index.d.ts +2 -0
  87. package/build/components/ChipButton/index.js +2 -0
  88. package/build/components/CountrySelect/CountrySelect.d.ts +8 -0
  89. package/build/components/CountrySelect/CountrySelect.js +27 -0
  90. package/build/components/CountrySelect/index.d.ts +2 -0
  91. package/build/components/CountrySelect/index.js +2 -0
  92. package/build/components/DragScrollableImageList/DragScrollableImageList.d.ts +6 -0
  93. package/build/components/DragScrollableImageList/DragScrollableImageList.js +27 -0
  94. package/build/components/DragScrollableImageList/index.d.ts +2 -0
  95. package/build/components/DragScrollableImageList/index.js +2 -0
  96. package/build/components/Icons/AnimatedCheckIcon.d.ts +8 -0
  97. package/build/components/Icons/AnimatedCheckIcon.js +33 -0
  98. package/build/components/Icons/CheckboxCheckedIcon.d.ts +7 -0
  99. package/build/components/Icons/CheckboxCheckedIcon.js +19 -0
  100. package/build/components/Icons/CheckboxIcon.d.ts +7 -0
  101. package/build/components/Icons/CheckboxIcon.js +19 -0
  102. package/build/components/Icons/ExclamationIcon.d.ts +8 -0
  103. package/build/components/Icons/ExclamationIcon.js +19 -0
  104. package/build/components/Icons/InfoIcon.d.ts +7 -0
  105. package/build/components/Icons/InfoIcon.js +10 -0
  106. package/build/components/Icons/MemoIcon.d.ts +8 -0
  107. package/build/components/Icons/MemoIcon.js +23 -0
  108. package/build/components/Icons/index.d.ts +6 -0
  109. package/build/components/Icons/index.js +6 -0
  110. package/build/components/Loader/Loader.d.ts +13 -0
  111. package/build/components/Loader/Loader.js +24 -0
  112. package/build/components/Loader/index.d.ts +2 -0
  113. package/build/components/Loader/index.js +2 -0
  114. package/build/components/OTPInput/OTPInput.d.ts +13 -0
  115. package/build/components/OTPInput/OTPInput.js +97 -0
  116. package/build/components/OTPInput/index.d.ts +2 -0
  117. package/build/components/OTPInput/index.js +2 -0
  118. package/build/components/OTPInputAdapter/OTPInputAdapter.d.ts +14 -0
  119. package/build/components/OTPInputAdapter/OTPInputAdapter.js +146 -0
  120. package/build/components/OTPInputAdapter/index.d.ts +3 -0
  121. package/build/components/OTPInputAdapter/index.js +3 -0
  122. package/build/components/OTPTimer/OTPTimer.d.ts +11 -0
  123. package/build/components/OTPTimer/OTPTimer.js +58 -0
  124. package/build/components/OTPTimer/hooks/useTimer.d.ts +8 -0
  125. package/build/components/OTPTimer/hooks/useTimer.js +28 -0
  126. package/build/components/OTPTimer/index.d.ts +1 -0
  127. package/build/components/OTPTimer/index.js +1 -0
  128. package/build/components/PhoneInput/PhoneInput.d.ts +8 -0
  129. package/build/components/PhoneInput/PhoneInput.js +71 -0
  130. package/build/components/PhoneInput/index.d.ts +2 -0
  131. package/build/components/PhoneInput/index.js +2 -0
  132. package/build/components/SkeletonLoader/SkeletonLoader.d.ts +4 -0
  133. package/build/components/SkeletonLoader/SkeletonLoader.js +50 -0
  134. package/build/components/SkeletonLoader/index.d.ts +2 -0
  135. package/build/components/SkeletonLoader/index.js +2 -0
  136. package/build/components/Text/Text.d.ts +5 -0
  137. package/build/components/Text/Text.js +17 -0
  138. package/build/components/Text/index.d.ts +2 -0
  139. package/build/components/Text/index.js +2 -0
  140. package/build/components/TooltipAdapter/TooltipAdapter.d.ts +7 -0
  141. package/build/components/TooltipAdapter/TooltipAdapter.js +63 -0
  142. package/build/components/TooltipAdapter/index.d.ts +2 -0
  143. package/build/components/TooltipAdapter/index.js +2 -0
  144. package/build/configs/dark.d.ts +958 -0
  145. package/build/configs/dark.js +958 -0
  146. package/build/configs/light.d.ts +960 -0
  147. package/build/configs/light.js +960 -0
  148. package/build/configs/locale.d.ts +517 -0
  149. package/build/configs/locale.js +517 -0
  150. package/build/constants/baseConfigs.d.ts +2 -0
  151. package/build/constants/baseConfigs.js +4 -0
  152. package/build/constants/click2pay.d.ts +16 -0
  153. package/build/constants/click2pay.js +16 -0
  154. package/build/constants/countries.d.ts +366 -0
  155. package/build/constants/countries.js +374 -0
  156. package/build/constants/index.d.ts +3 -0
  157. package/build/constants/index.js +3 -0
  158. package/build/context/Click2PayContext.d.ts +196 -0
  159. package/build/context/Click2PayContext.js +274 -0
  160. package/build/context/utils/chargeCall.d.ts +11 -0
  161. package/build/context/utils/chargeCall.js +82 -0
  162. package/build/features/CheckoutShell/CheckoutShell.css +76 -0
  163. package/build/features/CheckoutShell/CheckoutShell.d.ts +6 -0
  164. package/build/features/CheckoutShell/CheckoutShell.js +73 -0
  165. package/build/features/CheckoutShell/index.d.ts +1 -0
  166. package/build/features/CheckoutShell/index.js +1 -0
  167. package/build/features/Click2Pay/CardWeb/CardWeb.d.ts +7 -0
  168. package/build/features/Click2Pay/CardWeb/CardWeb.js +47 -0
  169. package/build/features/Click2Pay/CardWeb/index.d.ts +2 -0
  170. package/build/features/Click2Pay/CardWeb/index.js +2 -0
  171. package/build/features/Click2Pay/Click2PayBackButton/Click2PayBackButton.d.ts +8 -0
  172. package/build/features/Click2Pay/Click2PayBackButton/Click2PayBackButton.js +42 -0
  173. package/build/features/Click2Pay/Click2PayBackButton/index.d.ts +1 -0
  174. package/build/features/Click2Pay/Click2PayBackButton/index.js +1 -0
  175. package/build/features/Click2Pay/Click2PayCardAuthentication/hooks/useCheckoutWithCard.d.ts +7 -0
  176. package/build/features/Click2Pay/Click2PayCardAuthentication/hooks/useCheckoutWithCard.js +351 -0
  177. package/build/features/Click2Pay/Click2PayCardAuthentication/utils/index.d.ts +4 -0
  178. package/build/features/Click2Pay/Click2PayCardAuthentication/utils/index.js +18 -0
  179. package/build/features/Click2Pay/Click2PayCardButton/Click2PayCardButton.d.ts +13 -0
  180. package/build/features/Click2Pay/Click2PayCardButton/Click2PayCardButton.js +43 -0
  181. package/build/features/Click2Pay/Click2PayCardButton/index.d.ts +2 -0
  182. package/build/features/Click2Pay/Click2PayCardButton/index.js +2 -0
  183. package/build/features/Click2Pay/Click2PayChips/BackIcon.d.ts +2 -0
  184. package/build/features/Click2Pay/Click2PayChips/BackIcon.js +11 -0
  185. package/build/features/Click2Pay/Click2PayChips/Click2PayChips.d.ts +3 -0
  186. package/build/features/Click2Pay/Click2PayChips/Click2PayChips.js +88 -0
  187. package/build/features/Click2Pay/Click2PayChips/index.d.ts +2 -0
  188. package/build/features/Click2Pay/Click2PayChips/index.js +2 -0
  189. package/build/features/Click2Pay/Click2PayChipsContainer/Click2PayChipsContainer.d.ts +3 -0
  190. package/build/features/Click2Pay/Click2PayChipsContainer/Click2PayChipsContainer.js +16 -0
  191. package/build/features/Click2Pay/Click2PayChipsContainer/index.d.ts +2 -0
  192. package/build/features/Click2Pay/Click2PayChipsContainer/index.js +2 -0
  193. package/build/features/Click2Pay/Click2PaySignOutButton/Click2PaySignOutButton.d.ts +3 -0
  194. package/build/features/Click2Pay/Click2PaySignOutButton/Click2PaySignOutButton.js +24 -0
  195. package/build/features/Click2Pay/Click2PaySignOutButton/index.d.ts +1 -0
  196. package/build/features/Click2Pay/Click2PaySignOutButton/index.js +1 -0
  197. package/build/features/Click2Pay/Click2PaySupportedCardsList/Click2PaySupportedCardsList.d.ts +7 -0
  198. package/build/features/Click2Pay/Click2PaySupportedCardsList/Click2PaySupportedCardsList.js +53 -0
  199. package/build/features/Click2Pay/Click2PaySupportedCardsList/index.d.ts +1 -0
  200. package/build/features/Click2Pay/Click2PaySupportedCardsList/index.js +1 -0
  201. package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltip.d.ts +9 -0
  202. package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltip.js +23 -0
  203. package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/Click2PayTooltipButton.d.ts +9 -0
  204. package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/Click2PayTooltipButton.js +39 -0
  205. package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/Click2PayTooltipButtonExclamation.d.ts +6 -0
  206. package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/Click2PayTooltipButtonExclamation.js +24 -0
  207. package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/index.d.ts +2 -0
  208. package/build/features/Click2Pay/Click2PayTooltip/Click2PayTooltipButtons/index.js +2 -0
  209. package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/InformationUsageContent.d.ts +3 -0
  210. package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/InformationUsageContent.js +43 -0
  211. package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/InformationUsageTooltip.d.ts +3 -0
  212. package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/InformationUsageTooltip.js +12 -0
  213. package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/index.d.ts +1 -0
  214. package/build/features/Click2Pay/Click2PayTooltip/InformationUsageTooltip/index.js +1 -0
  215. package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/LearnMoreContent.d.ts +3 -0
  216. package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/LearnMoreContent.js +68 -0
  217. package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/LearnMoreTooltip.d.ts +3 -0
  218. package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/LearnMoreTooltip.js +12 -0
  219. package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/index.d.ts +1 -0
  220. package/build/features/Click2Pay/Click2PayTooltip/LearnMoreTooltip/index.js +1 -0
  221. package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/RememberMeContent.d.ts +3 -0
  222. package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/RememberMeContent.js +42 -0
  223. package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/RememberMeTooltip.d.ts +3 -0
  224. package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/RememberMeTooltip.js +13 -0
  225. package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/index.d.ts +1 -0
  226. package/build/features/Click2Pay/Click2PayTooltip/RememberMeTooltip/index.js +1 -0
  227. package/build/features/Click2Pay/Click2PayTooltip/index.d.ts +5 -0
  228. package/build/features/Click2Pay/Click2PayTooltip/index.js +5 -0
  229. package/build/features/Click2Pay/DefaultPayButton/DefaultPayButton.d.ts +16 -0
  230. package/build/features/Click2Pay/DefaultPayButton/DefaultPayButton.js +67 -0
  231. package/build/features/Click2Pay/DefaultPayButton/index.d.ts +3 -0
  232. package/build/features/Click2Pay/DefaultPayButton/index.js +2 -0
  233. package/build/features/Click2Pay/LockedView/LockedView.d.ts +3 -0
  234. package/build/features/Click2Pay/LockedView/LockedView.js +22 -0
  235. package/build/features/Click2Pay/LockedView/index.d.ts +1 -0
  236. package/build/features/Click2Pay/LockedView/index.js +1 -0
  237. package/build/features/Click2Pay/LoginForm/LoginForm.d.ts +7 -0
  238. package/build/features/Click2Pay/LoginForm/LoginForm.js +39 -0
  239. package/build/features/Click2Pay/LoginForm/components/Email.d.ts +6 -0
  240. package/build/features/Click2Pay/LoginForm/components/Email.js +91 -0
  241. package/build/features/Click2Pay/LoginForm/components/LoginFormFooter.d.ts +3 -0
  242. package/build/features/Click2Pay/LoginForm/components/LoginFormFooter.js +25 -0
  243. package/build/features/Click2Pay/LoginForm/components/MobileNumber.d.ts +6 -0
  244. package/build/features/Click2Pay/LoginForm/components/MobileNumber.js +103 -0
  245. package/build/features/Click2Pay/LoginForm/components/OTP/ChangePaymentMethodButton/ChangePaymentMethodButton.d.ts +9 -0
  246. package/build/features/Click2Pay/LoginForm/components/OTP/ChangePaymentMethodButton/ChangePaymentMethodButton.js +29 -0
  247. package/build/features/Click2Pay/LoginForm/components/OTP/ChangePaymentMethodButton/index.d.ts +2 -0
  248. package/build/features/Click2Pay/LoginForm/components/OTP/ChangePaymentMethodButton/index.js +2 -0
  249. package/build/features/Click2Pay/LoginForm/components/OTP/HeaderMessage.d.ts +7 -0
  250. package/build/features/Click2Pay/LoginForm/components/OTP/HeaderMessage.js +29 -0
  251. package/build/features/Click2Pay/LoginForm/components/OTP/LoginFormOTP.d.ts +3 -0
  252. package/build/features/Click2Pay/LoginForm/components/OTP/LoginFormOTP.js +190 -0
  253. package/build/features/Click2Pay/LoginForm/components/OTP/OTPActionButton/OTPActionButton.d.ts +10 -0
  254. package/build/features/Click2Pay/LoginForm/components/OTP/OTPActionButton/OTPActionButton.js +24 -0
  255. package/build/features/Click2Pay/LoginForm/components/OTP/OTPButton/OTPButton.d.ts +6 -0
  256. package/build/features/Click2Pay/LoginForm/components/OTP/OTPButton/OTPButton.js +23 -0
  257. package/build/features/Click2Pay/LoginForm/index.d.ts +2 -0
  258. package/build/features/Click2Pay/LoginForm/index.js +2 -0
  259. package/build/features/Click2Pay/LoginForm/useClick2PayLoginForm.d.ts +10 -0
  260. package/build/features/Click2Pay/LoginForm/useClick2PayLoginForm.js +233 -0
  261. package/build/features/Click2Pay/LoginForm/utils/assert/getCards.d.ts +3 -0
  262. package/build/features/Click2Pay/LoginForm/utils/assert/getCards.js +8 -0
  263. package/build/features/Click2Pay/LoginForm/utils/assert/idLookup.d.ts +3 -0
  264. package/build/features/Click2Pay/LoginForm/utils/assert/idLookup.js +8 -0
  265. package/build/features/Click2Pay/LoginForm/utils/assert/init.d.ts +3 -0
  266. package/build/features/Click2Pay/LoginForm/utils/assert/init.js +8 -0
  267. package/build/features/Click2Pay/LoginForm/utils/assert/initialValidationResponse.d.ts +3 -0
  268. package/build/features/Click2Pay/LoginForm/utils/assert/initialValidationResponse.js +8 -0
  269. package/build/features/Click2Pay/LoginForm/utils/assert/validateOTP.d.ts +3 -0
  270. package/build/features/Click2Pay/LoginForm/utils/assert/validateOTP.js +9 -0
  271. package/build/features/Click2Pay/LoginForm/utils/index.d.ts +5 -0
  272. package/build/features/Click2Pay/LoginForm/utils/index.js +5 -0
  273. package/build/features/Click2Pay/PaymentButton/CardList/CardList.d.ts +7 -0
  274. package/build/features/Click2Pay/PaymentButton/CardList/CardList.js +55 -0
  275. package/build/features/Click2Pay/PaymentButton/CardList/CardList.module.css +13 -0
  276. package/build/features/Click2Pay/PaymentButton/Click2PayPaymentButton.d.ts +16 -0
  277. package/build/features/Click2Pay/PaymentButton/Click2PayPaymentButton.js +22 -0
  278. package/build/features/Click2Pay/PaymentButton/animation/animationFeatures.d.ts +2 -0
  279. package/build/features/Click2Pay/PaymentButton/animation/animationFeatures.js +2 -0
  280. package/build/features/Click2Pay/PaymentButton/useClick2PayPaymentButton.d.ts +15 -0
  281. package/build/features/Click2Pay/PaymentButton/useClick2PayPaymentButton.js +30 -0
  282. package/build/features/Click2Pay/WidgetHints/ExclamationMarkIcon.d.ts +2 -0
  283. package/build/features/Click2Pay/WidgetHints/ExclamationMarkIcon.js +5 -0
  284. package/build/features/Click2Pay/WidgetHints/PopupNotEnabledHint.d.ts +2 -0
  285. package/build/features/Click2Pay/WidgetHints/PopupNotEnabledHint.js +51 -0
  286. package/build/features/Click2Pay/WidgetHints/SeeHowArrow.d.ts +3 -0
  287. package/build/features/Click2Pay/WidgetHints/SeeHowArrow.js +6 -0
  288. package/build/features/Click2Pay/WidgetHints/WidgetHints.d.ts +5 -0
  289. package/build/features/Click2Pay/WidgetHints/WidgetHints.js +44 -0
  290. package/build/features/Click2Pay/WidgetHints/index.d.ts +1 -0
  291. package/build/features/Click2Pay/WidgetHints/index.js +1 -0
  292. package/build/features/Click2Pay/index.d.ts +1 -0
  293. package/build/features/Click2Pay/index.js +1 -0
  294. package/build/hooks/index.d.ts +6 -0
  295. package/build/hooks/index.js +6 -0
  296. package/build/hooks/useAppTheme.d.ts +12 -0
  297. package/build/hooks/useAppTheme.js +27 -0
  298. package/build/hooks/useCard.d.ts +23 -0
  299. package/build/hooks/useCard.js +136 -0
  300. package/build/hooks/useCardWeb.d.ts +12 -0
  301. package/build/hooks/useCardWeb.js +143 -0
  302. package/build/hooks/useClick2Pay.d.ts +42 -0
  303. package/build/hooks/useClick2Pay.js +244 -0
  304. package/build/hooks/useClickToPayStatus.d.ts +4 -0
  305. package/build/hooks/useClickToPayStatus.js +13 -0
  306. package/build/hooks/useGetEvents.d.ts +5 -0
  307. package/build/hooks/useGetEvents.js +16 -0
  308. package/build/hooks/usePreLoadScripts.d.ts +6 -0
  309. package/build/hooks/usePreLoadScripts.js +23 -0
  310. package/build/hooks/useResizeObserver.d.ts +3 -0
  311. package/build/hooks/useResizeObserver.js +19 -0
  312. package/build/hooks/useScript.d.ts +4 -0
  313. package/build/hooks/useScript.js +39 -0
  314. package/build/hooks/useTranslation.d.ts +7 -0
  315. package/build/hooks/useTranslation.js +5 -0
  316. package/build/hooks/utils/initialCall.d.ts +13 -0
  317. package/build/hooks/utils/initialCall.js +83 -0
  318. package/build/i18n.d.ts +11 -0
  319. package/build/i18n.js +26 -0
  320. package/build/index.d.ts +4 -0
  321. package/build/index.js +11 -0
  322. package/build/theme/index.d.ts +1 -0
  323. package/build/theme/index.js +1 -0
  324. package/build/theme/palette.d.ts +3 -0
  325. package/build/theme/palette.js +75 -0
  326. package/build/theme/shadows.d.ts +2 -0
  327. package/build/theme/shadows.js +27 -0
  328. package/build/theme/theme.d.ts +3 -0
  329. package/build/theme/theme.js +45 -0
  330. package/build/theme/typography.d.ts +3 -0
  331. package/build/theme/typography.js +40 -0
  332. package/build/utils/baseConfigs.d.ts +11 -0
  333. package/build/utils/baseConfigs.js +64 -0
  334. package/build/utils/charge.d.ts +14 -0
  335. package/build/utils/charge.js +19 -0
  336. package/build/utils/click2Pay.d.ts +1 -0
  337. package/build/utils/click2Pay.js +7 -0
  338. package/build/utils/font.d.ts +1 -0
  339. package/build/utils/font.js +1 -0
  340. package/build/utils/form/email.d.ts +3 -0
  341. package/build/utils/form/email.js +4 -0
  342. package/build/utils/form/phone.d.ts +4 -0
  343. package/build/utils/form/phone.js +3 -0
  344. package/build/utils/index.d.ts +8 -0
  345. package/build/utils/index.js +8 -0
  346. package/build/utils/object.d.ts +1 -0
  347. package/build/utils/object.js +7 -0
  348. package/build/utils/paymentMethod.d.ts +2 -0
  349. package/build/utils/paymentMethod.js +3 -0
  350. package/build/utils/strings.d.ts +13 -0
  351. package/build/utils/strings.js +52 -0
  352. package/build/utils/window.d.ts +10 -0
  353. package/build/utils/window.js +36 -0
  354. 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
+ [![Build Status](https://img.shields.io/badge/npm-CB3837?style=for-the-badge&logo=npm&logoColor=white)](https://www.npmjs.com/package/@tap-payments/card-button-web?activeTab=versions)
5
+
6
+ [![NPM version](https://img.shields.io/npm/v/[NPM-MODULE-NAME].svg?style=flat)](https://www.npmjs.com/package/@tap-payments/card-button-web?activeTab=versions)
7
+ [![NPM downloads](https://img.shields.io/npm/dm/[NPM-MODULE-NAME].svg?style=flat)](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
+ ![image](https://github.com/Tap-Payments/card-button-element/assets/27288406/a55416a7-dde3-4687-8560-f59dbda093cd)
38
+
39
+ </td>
40
+ <td>
41
+
42
+ ![image](https://github.com/Tap-Payments/card-button-element/assets/27288406/b10418fa-912f-490b-925c-0165e8951680)
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
+ ![image](https://github.com/Tap-Payments/card-button-element/assets/27288406/1d793fef-7bcf-4e84-bacb-23719445d6ef)
54
+
55
+ </td>
56
+ <td>
57
+
58
+ ![image](https://github.com/Tap-Payments/card-button-element/assets/27288406/bd80713a-40aa-40e9-9dea-3fc5c6260185)
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,9 @@
1
+ export interface Consumer {
2
+ firstName?: string | null;
3
+ lastName?: string | null;
4
+ emailAddress?: string | null;
5
+ mobileNumber?: {
6
+ countryCode: string;
7
+ phoneNumber: string;
8
+ } | null;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface DpaData {
2
+ dpaName: string;
3
+ dpaUri?: string;
4
+ dpaLogoUri?: string;
5
+ applicationType?: string;
6
+ dpaPresentationName?: string;
7
+ }
@@ -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,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 {};