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