@adyen/adyen-web 6.0.0-alpha.7 → 6.0.0-beta.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 (271) hide show
  1. package/dist/cjs/adyen.css +65 -65
  2. package/dist/cjs/adyen.css.map +1 -1
  3. package/dist/cjs/index.cjs +2 -2
  4. package/dist/cjs/index.cjs.map +1 -1
  5. package/dist/cjs/index.d.cts +1767 -1832
  6. package/dist/es/adyen.css +65 -65
  7. package/dist/es/adyen.css.map +1 -1
  8. package/dist/es/components/ANCV/ANCV.js +1 -1
  9. package/dist/es/components/ANCV/ANCV.js.map +1 -1
  10. package/dist/es/components/ANCV/components/ANCVInput.js.map +1 -1
  11. package/dist/es/components/Ach/Ach.js +1 -1
  12. package/dist/es/components/Ach/Ach.js.map +1 -1
  13. package/dist/es/components/Ach/components/AchInput/AchInput.js +1 -1
  14. package/dist/es/components/Ach/components/AchInput/AchInput.js.map +1 -1
  15. package/dist/es/components/Ach/components/AchInput/defaultProps.js +1 -1
  16. package/dist/es/components/Ach/components/AchInput/defaultProps.js.map +1 -1
  17. package/dist/es/components/AfterPay/AfterPayB2B.js +1 -1
  18. package/dist/es/components/AfterPay/AfterPayB2B.js.map +1 -1
  19. package/dist/es/components/BacsDD/BacsDD.js +1 -1
  20. package/dist/es/components/BacsDD/BacsDD.js.map +1 -1
  21. package/dist/es/components/BacsDD/components/BacsInput.js +1 -1
  22. package/dist/es/components/BacsDD/components/BacsInput.js.map +1 -1
  23. package/dist/es/components/BankTransfer/BankTransfer.js +1 -1
  24. package/dist/es/components/BankTransfer/BankTransfer.js.map +1 -1
  25. package/dist/es/components/Blik/Blik.js +1 -1
  26. package/dist/es/components/Blik/Blik.js.map +1 -1
  27. package/dist/es/components/Blik/components/BlikInput.js.map +1 -1
  28. package/dist/es/components/Boleto/components/BoletoInput/BoletoInput.js +1 -1
  29. package/dist/es/components/Boleto/components/BoletoInput/BoletoInput.js.map +1 -1
  30. package/dist/es/components/Card/Card.js +1 -1
  31. package/dist/es/components/Card/Card.js.map +1 -1
  32. package/dist/es/components/Card/components/CardInput/CardInput.js +1 -1
  33. package/dist/es/components/Card/components/CardInput/CardInput.js.map +1 -1
  34. package/dist/es/components/Card/components/CardInput/handlers.js +1 -1
  35. package/dist/es/components/Card/components/CardInput/types.js.map +1 -1
  36. package/dist/es/components/Card/components/CardInput/useSRPanelForCardInputErrors.js +2 -0
  37. package/dist/es/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -0
  38. package/dist/es/components/CashAppPay/CashAppPay.js +1 -1
  39. package/dist/es/components/CashAppPay/CashAppPay.js.map +1 -1
  40. package/dist/es/components/Doku/Doku.js +1 -1
  41. package/dist/es/components/Doku/Doku.js.map +1 -1
  42. package/dist/es/components/Doku/components/DokuInput/DokuInput.js +1 -1
  43. package/dist/es/components/Doku/components/DokuInput/DokuInput.js.map +1 -1
  44. package/dist/es/components/Dropin/Dropin.js +1 -1
  45. package/dist/es/components/Dropin/Dropin.js.map +1 -1
  46. package/dist/es/components/Dropin/components/DropinComponent.js +1 -1
  47. package/dist/es/components/Dropin/components/DropinComponent.js.map +1 -1
  48. package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodList.js +1 -1
  49. package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodList.js.map +1 -1
  50. package/dist/es/components/Dropin/elements/createElements.js.map +1 -1
  51. package/dist/es/components/Dropin/elements/createInstantPaymentElements.js.map +1 -1
  52. package/dist/es/components/Dropin/elements/createStoredElements.js.map +1 -1
  53. package/dist/es/components/Dropin/elements/filters.js.map +1 -1
  54. package/dist/es/components/Econtext/Econtext.js +1 -1
  55. package/dist/es/components/Econtext/Econtext.js.map +1 -1
  56. package/dist/es/components/Econtext/components/EcontextInput/EcontextInput.js +1 -1
  57. package/dist/es/components/Econtext/components/EcontextInput/EcontextInput.js.map +1 -1
  58. package/dist/es/components/Giropay/Giropay.js +1 -1
  59. package/dist/es/components/Giropay/Giropay.js.map +1 -1
  60. package/dist/es/components/GooglePay/GooglePay.js.map +1 -1
  61. package/dist/es/components/Multibanco/Multibanco.js +1 -1
  62. package/dist/es/components/Multibanco/Multibanco.js.map +1 -1
  63. package/dist/es/components/PersonalDetails/PersonalDetails.js +1 -1
  64. package/dist/es/components/PersonalDetails/PersonalDetails.js.map +1 -1
  65. package/dist/es/components/Redirect/Redirect.js +1 -1
  66. package/dist/es/components/Redirect/Redirect.js.map +1 -1
  67. package/dist/es/components/Sepa/Sepa.js +1 -1
  68. package/dist/es/components/Sepa/Sepa.js.map +1 -1
  69. package/dist/es/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js +1 -1
  70. package/dist/es/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js.map +1 -1
  71. package/dist/es/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.js +1 -1
  72. package/dist/es/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.js.map +1 -1
  73. package/dist/es/components/Trustly/Trustly.js +1 -1
  74. package/dist/es/components/Trustly/Trustly.js.map +1 -1
  75. package/dist/es/components/WeChat/config.js +1 -1
  76. package/dist/es/components/WeChat/config.js.map +1 -1
  77. package/dist/es/components/components-name-map.js +1 -1
  78. package/dist/es/components/components-name-map.js.map +1 -1
  79. package/dist/es/components/helpers/IssuerListContainer/IssuerListContainer.js +1 -1
  80. package/dist/es/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
  81. package/dist/es/components/helpers/OpenInvoiceContainer/OpenInvoiceContainer.js +1 -1
  82. package/dist/es/components/helpers/OpenInvoiceContainer/OpenInvoiceContainer.js.map +1 -1
  83. package/dist/es/components/helpers/QRLoaderContainer/QRLoaderContainer.js +1 -1
  84. package/dist/es/components/helpers/QRLoaderContainer/QRLoaderContainer.js.map +1 -1
  85. package/dist/es/components/index.js +1 -1
  86. package/dist/es/components/internal/BaseElement/BaseElement.js +1 -1
  87. package/dist/es/components/internal/BaseElement/BaseElement.js.map +1 -1
  88. package/dist/es/components/internal/ClickToPay/components/CtPCards/CtPCards.js.map +1 -1
  89. package/dist/es/components/internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPResendOtpLink.js.map +1 -1
  90. package/dist/es/components/internal/ClickToPay/models/ShopperCard.js +1 -1
  91. package/dist/es/components/internal/ClickToPay/models/ShopperCard.js.map +1 -1
  92. package/dist/es/components/internal/ClickToPay/services/sdks/SrciError.js +1 -1
  93. package/dist/es/components/internal/ClickToPay/services/sdks/SrciError.js.map +1 -1
  94. package/dist/es/components/internal/ClickToPay/services/utils.js +1 -1
  95. package/dist/es/components/internal/ClickToPay/services/utils.js.map +1 -1
  96. package/dist/es/components/internal/OpenInvoice/OpenInvoice.js +1 -1
  97. package/dist/es/components/internal/OpenInvoice/OpenInvoice.js.map +1 -1
  98. package/dist/es/components/internal/RedirectButton/RedirectButton.js +1 -1
  99. package/dist/es/components/internal/RedirectButton/RedirectButton.js.map +1 -1
  100. package/dist/es/components/internal/UIElement/UIElement.js +1 -1
  101. package/dist/es/components/internal/UIElement/UIElement.js.map +1 -1
  102. package/dist/es/components/tx-variants.js +1 -1
  103. package/dist/es/components/tx-variants.js.map +1 -1
  104. package/dist/es/core/AdyenCheckout.js.map +1 -1
  105. package/dist/es/core/Analytics/Analytics.js +1 -1
  106. package/dist/es/core/Analytics/Analytics.js.map +1 -1
  107. package/dist/es/core/Analytics/analyticsPreProcessor.js +1 -1
  108. package/dist/es/core/Analytics/analyticsPreProcessor.js.map +1 -1
  109. package/dist/es/core/Analytics/constants.js +1 -1
  110. package/dist/es/core/Analytics/constants.js.map +1 -1
  111. package/dist/es/core/Analytics/utils.js +1 -1
  112. package/dist/es/core/Analytics/utils.js.map +1 -1
  113. package/dist/es/core/CheckoutSession/CheckoutSession.js.map +1 -1
  114. package/dist/es/core/ProcessResponse/PaymentAction/PaymentAction.js.map +1 -1
  115. package/dist/es/core/ProcessResponse/PaymentAction/actionTypes.js +1 -1
  116. package/dist/es/core/ProcessResponse/PaymentAction/actionTypes.js.map +1 -1
  117. package/dist/es/core/Services/analytics/collect-id.js +1 -1
  118. package/dist/es/core/Services/analytics/collect-id.js.map +1 -1
  119. package/dist/es/core/Services/http.js +1 -1
  120. package/dist/es/core/Services/http.js.map +1 -1
  121. package/dist/es/core/Services/sessions/setup-session.js +1 -1
  122. package/dist/es/core/Services/sessions/setup-session.js.map +1 -1
  123. package/dist/es/core/config.js +1 -1
  124. package/dist/es/core/config.js.map +1 -1
  125. package/dist/es/core/core.js +1 -1
  126. package/dist/es/core/core.js.map +1 -1
  127. package/dist/es/core/core.registry.js +1 -1
  128. package/dist/es/core/core.registry.js.map +1 -1
  129. package/dist/es/external/preact/dist/preact.js +1 -1
  130. package/dist/es/external/preact/dist/preact.js.map +1 -1
  131. package/dist/es/index.d.ts +1767 -1832
  132. package/dist/es/index.js +1 -1
  133. package/dist/es/language/constants.js +1 -1
  134. package/dist/es/language/constants.js.map +1 -1
  135. package/dist/es-legacy/adyen.css +65 -65
  136. package/dist/es-legacy/adyen.css.map +1 -1
  137. package/dist/es-legacy/components/ANCV/ANCV.js +1 -1
  138. package/dist/es-legacy/components/ANCV/ANCV.js.map +1 -1
  139. package/dist/es-legacy/components/ANCV/components/ANCVInput.js.map +1 -1
  140. package/dist/es-legacy/components/Ach/Ach.js +1 -1
  141. package/dist/es-legacy/components/Ach/Ach.js.map +1 -1
  142. package/dist/es-legacy/components/Ach/components/AchInput/AchInput.js +1 -1
  143. package/dist/es-legacy/components/Ach/components/AchInput/AchInput.js.map +1 -1
  144. package/dist/es-legacy/components/Ach/components/AchInput/defaultProps.js +1 -1
  145. package/dist/es-legacy/components/Ach/components/AchInput/defaultProps.js.map +1 -1
  146. package/dist/es-legacy/components/AfterPay/AfterPayB2B.js +1 -1
  147. package/dist/es-legacy/components/AfterPay/AfterPayB2B.js.map +1 -1
  148. package/dist/es-legacy/components/BacsDD/BacsDD.js +1 -1
  149. package/dist/es-legacy/components/BacsDD/BacsDD.js.map +1 -1
  150. package/dist/es-legacy/components/BacsDD/components/BacsInput.js +1 -1
  151. package/dist/es-legacy/components/BacsDD/components/BacsInput.js.map +1 -1
  152. package/dist/es-legacy/components/BankTransfer/BankTransfer.js +1 -1
  153. package/dist/es-legacy/components/BankTransfer/BankTransfer.js.map +1 -1
  154. package/dist/es-legacy/components/Blik/Blik.js +1 -1
  155. package/dist/es-legacy/components/Blik/Blik.js.map +1 -1
  156. package/dist/es-legacy/components/Blik/components/BlikInput.js.map +1 -1
  157. package/dist/es-legacy/components/Boleto/components/BoletoInput/BoletoInput.js +1 -1
  158. package/dist/es-legacy/components/Boleto/components/BoletoInput/BoletoInput.js.map +1 -1
  159. package/dist/es-legacy/components/Card/Card.js +1 -1
  160. package/dist/es-legacy/components/Card/Card.js.map +1 -1
  161. package/dist/es-legacy/components/Card/components/CardInput/CardInput.js +1 -1
  162. package/dist/es-legacy/components/Card/components/CardInput/CardInput.js.map +1 -1
  163. package/dist/es-legacy/components/Card/components/CardInput/handlers.js +1 -1
  164. package/dist/es-legacy/components/Card/components/CardInput/types.js.map +1 -1
  165. package/dist/es-legacy/components/Card/components/CardInput/useSRPanelForCardInputErrors.js +2 -0
  166. package/dist/es-legacy/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -0
  167. package/dist/es-legacy/components/CashAppPay/CashAppPay.js +1 -1
  168. package/dist/es-legacy/components/CashAppPay/CashAppPay.js.map +1 -1
  169. package/dist/es-legacy/components/Doku/Doku.js +1 -1
  170. package/dist/es-legacy/components/Doku/Doku.js.map +1 -1
  171. package/dist/es-legacy/components/Doku/components/DokuInput/DokuInput.js +1 -1
  172. package/dist/es-legacy/components/Doku/components/DokuInput/DokuInput.js.map +1 -1
  173. package/dist/es-legacy/components/Dropin/Dropin.js +1 -1
  174. package/dist/es-legacy/components/Dropin/Dropin.js.map +1 -1
  175. package/dist/es-legacy/components/Dropin/components/DropinComponent.js +1 -1
  176. package/dist/es-legacy/components/Dropin/components/DropinComponent.js.map +1 -1
  177. package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodList.js +1 -1
  178. package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodList.js.map +1 -1
  179. package/dist/es-legacy/components/Dropin/elements/createElements.js.map +1 -1
  180. package/dist/es-legacy/components/Dropin/elements/createInstantPaymentElements.js.map +1 -1
  181. package/dist/es-legacy/components/Dropin/elements/createStoredElements.js.map +1 -1
  182. package/dist/es-legacy/components/Dropin/elements/filters.js.map +1 -1
  183. package/dist/es-legacy/components/Econtext/Econtext.js +1 -1
  184. package/dist/es-legacy/components/Econtext/Econtext.js.map +1 -1
  185. package/dist/es-legacy/components/Econtext/components/EcontextInput/EcontextInput.js +1 -1
  186. package/dist/es-legacy/components/Econtext/components/EcontextInput/EcontextInput.js.map +1 -1
  187. package/dist/es-legacy/components/Giropay/Giropay.js +1 -1
  188. package/dist/es-legacy/components/Giropay/Giropay.js.map +1 -1
  189. package/dist/es-legacy/components/GooglePay/GooglePay.js.map +1 -1
  190. package/dist/es-legacy/components/Multibanco/Multibanco.js +1 -1
  191. package/dist/es-legacy/components/Multibanco/Multibanco.js.map +1 -1
  192. package/dist/es-legacy/components/PersonalDetails/PersonalDetails.js +1 -1
  193. package/dist/es-legacy/components/PersonalDetails/PersonalDetails.js.map +1 -1
  194. package/dist/es-legacy/components/Redirect/Redirect.js +1 -1
  195. package/dist/es-legacy/components/Redirect/Redirect.js.map +1 -1
  196. package/dist/es-legacy/components/Sepa/Sepa.js +1 -1
  197. package/dist/es-legacy/components/Sepa/Sepa.js.map +1 -1
  198. package/dist/es-legacy/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js +1 -1
  199. package/dist/es-legacy/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js.map +1 -1
  200. package/dist/es-legacy/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.js +1 -1
  201. package/dist/es-legacy/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.js.map +1 -1
  202. package/dist/es-legacy/components/Trustly/Trustly.js +1 -1
  203. package/dist/es-legacy/components/Trustly/Trustly.js.map +1 -1
  204. package/dist/es-legacy/components/WeChat/config.js +1 -1
  205. package/dist/es-legacy/components/WeChat/config.js.map +1 -1
  206. package/dist/es-legacy/components/components-name-map.js +1 -1
  207. package/dist/es-legacy/components/components-name-map.js.map +1 -1
  208. package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.js +1 -1
  209. package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
  210. package/dist/es-legacy/components/helpers/OpenInvoiceContainer/OpenInvoiceContainer.js +1 -1
  211. package/dist/es-legacy/components/helpers/OpenInvoiceContainer/OpenInvoiceContainer.js.map +1 -1
  212. package/dist/es-legacy/components/helpers/QRLoaderContainer/QRLoaderContainer.js +1 -1
  213. package/dist/es-legacy/components/helpers/QRLoaderContainer/QRLoaderContainer.js.map +1 -1
  214. package/dist/es-legacy/components/index.js +1 -1
  215. package/dist/es-legacy/components/internal/BaseElement/BaseElement.js +1 -1
  216. package/dist/es-legacy/components/internal/BaseElement/BaseElement.js.map +1 -1
  217. package/dist/es-legacy/components/internal/ClickToPay/components/CtPCards/CtPCards.js.map +1 -1
  218. package/dist/es-legacy/components/internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPResendOtpLink.js.map +1 -1
  219. package/dist/es-legacy/components/internal/ClickToPay/models/ShopperCard.js +1 -1
  220. package/dist/es-legacy/components/internal/ClickToPay/models/ShopperCard.js.map +1 -1
  221. package/dist/es-legacy/components/internal/ClickToPay/services/sdks/SrciError.js +1 -1
  222. package/dist/es-legacy/components/internal/ClickToPay/services/sdks/SrciError.js.map +1 -1
  223. package/dist/es-legacy/components/internal/ClickToPay/services/utils.js +1 -1
  224. package/dist/es-legacy/components/internal/ClickToPay/services/utils.js.map +1 -1
  225. package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js +1 -1
  226. package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js.map +1 -1
  227. package/dist/es-legacy/components/internal/RedirectButton/RedirectButton.js +1 -1
  228. package/dist/es-legacy/components/internal/RedirectButton/RedirectButton.js.map +1 -1
  229. package/dist/es-legacy/components/internal/UIElement/UIElement.js +1 -1
  230. package/dist/es-legacy/components/internal/UIElement/UIElement.js.map +1 -1
  231. package/dist/es-legacy/components/tx-variants.js +1 -1
  232. package/dist/es-legacy/components/tx-variants.js.map +1 -1
  233. package/dist/es-legacy/core/AdyenCheckout.js.map +1 -1
  234. package/dist/es-legacy/core/Analytics/Analytics.js +1 -1
  235. package/dist/es-legacy/core/Analytics/Analytics.js.map +1 -1
  236. package/dist/es-legacy/core/Analytics/analyticsPreProcessor.js +1 -1
  237. package/dist/es-legacy/core/Analytics/analyticsPreProcessor.js.map +1 -1
  238. package/dist/es-legacy/core/Analytics/constants.js +1 -1
  239. package/dist/es-legacy/core/Analytics/constants.js.map +1 -1
  240. package/dist/es-legacy/core/Analytics/utils.js +1 -1
  241. package/dist/es-legacy/core/Analytics/utils.js.map +1 -1
  242. package/dist/es-legacy/core/CheckoutSession/CheckoutSession.js.map +1 -1
  243. package/dist/es-legacy/core/ProcessResponse/PaymentAction/PaymentAction.js.map +1 -1
  244. package/dist/es-legacy/core/ProcessResponse/PaymentAction/actionTypes.js +1 -1
  245. package/dist/es-legacy/core/ProcessResponse/PaymentAction/actionTypes.js.map +1 -1
  246. package/dist/es-legacy/core/Services/analytics/collect-id.js +1 -1
  247. package/dist/es-legacy/core/Services/analytics/collect-id.js.map +1 -1
  248. package/dist/es-legacy/core/Services/http.js +1 -1
  249. package/dist/es-legacy/core/Services/http.js.map +1 -1
  250. package/dist/es-legacy/core/Services/sessions/setup-session.js +1 -1
  251. package/dist/es-legacy/core/Services/sessions/setup-session.js.map +1 -1
  252. package/dist/es-legacy/core/config.js +1 -1
  253. package/dist/es-legacy/core/config.js.map +1 -1
  254. package/dist/es-legacy/core/core.js +1 -1
  255. package/dist/es-legacy/core/core.js.map +1 -1
  256. package/dist/es-legacy/core/core.registry.js +1 -1
  257. package/dist/es-legacy/core/core.registry.js.map +1 -1
  258. package/dist/es-legacy/external/preact/dist/preact.js +1 -1
  259. package/dist/es-legacy/external/preact/dist/preact.js.map +1 -1
  260. package/dist/es-legacy/index.js +1 -1
  261. package/dist/es-legacy/language/constants.js +1 -1
  262. package/dist/es-legacy/language/constants.js.map +1 -1
  263. package/package.json +30 -30
  264. package/dist/es/components/Ideal/index.js +0 -2
  265. package/dist/es/components/Ideal/index.js.map +0 -1
  266. package/dist/es/core/Services/analytics/log-event.js +0 -2
  267. package/dist/es/core/Services/analytics/log-event.js.map +0 -1
  268. package/dist/es-legacy/components/Ideal/index.js +0 -2
  269. package/dist/es-legacy/components/Ideal/index.js.map +0 -1
  270. package/dist/es-legacy/core/Services/analytics/log-event.js +0 -2
  271. package/dist/es-legacy/core/Services/analytics/log-event.js.map +0 -1
@@ -90,6 +90,39 @@ interface AddressSpecifications {
90
90
 
91
91
  declare const ADDRESS_SCHEMA: readonly ["street", "houseNumberOrName", "postalCode", "city", "stateOrProvince", "country", "firstName", "lastName"];
92
92
 
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;
100
+ }
101
+
102
+ interface CheckoutErrorOptions {
103
+ cause?: any;
104
+ }
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);
124
+ }
125
+
93
126
  interface Experiment {
94
127
  controlGroup: boolean;
95
128
  experimentId: string;
@@ -126,10 +159,6 @@ interface AnalyticsOptions {
126
159
  * Enable/Disable all analytics
127
160
  */
128
161
  enabled?: boolean;
129
- /**
130
- * Enable/Disable telemetry data
131
- */
132
- telemetry?: boolean;
133
162
  /**
134
163
  * Data to be sent along with the event data
135
164
  */
@@ -161,6 +190,7 @@ interface AnalyticsObject {
161
190
  issuer?: string;
162
191
  isExpress?: boolean;
163
192
  expressPage?: string;
193
+ result?: string;
164
194
  }
165
195
  type ANALYTICS_EVENT = 'log' | 'error' | 'info';
166
196
  type AnalyticsInitialEvent = {
@@ -393,82 +423,157 @@ interface DisclaimerMsgObject {
393
423
  link: string;
394
424
  }
395
425
 
396
- interface CardConfiguration extends UIElementProps {
426
+ type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'action';
427
+ interface ButtonProps {
428
+ status?: string;
397
429
  /**
398
- * Only set for a stored card,
399
- * brand is never set for a generic card component OR a single-branded card
430
+ * Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
400
431
  */
401
- brand?: string;
432
+ classNameModifiers?: string[];
433
+ variant?: ButtonVariant;
434
+ disabled?: boolean;
435
+ label?: string;
436
+ secondaryLabel?: string;
437
+ icon?: string;
438
+ inline?: boolean;
439
+ href?: string;
440
+ target?: string;
441
+ rel?: string;
442
+ onClick?: (e: any, callbacks: any) => void;
443
+ }
444
+
445
+ interface PayButtonProps extends ButtonProps {
402
446
  /**
403
- * Configuration specific to brands
447
+ * Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
404
448
  */
405
- brandsConfiguration?: CardBrandsConfiguration;
449
+ classNameModifiers?: string[];
450
+ label?: string;
451
+ amount: PaymentAmountExtended;
452
+ secondaryAmount?: PaymentAmountExtended;
453
+ status?: string;
454
+ disabled?: boolean;
455
+ icon?: string;
456
+ onClick?(): void;
457
+ }
458
+
459
+ type PayButtonFunctionProps = Omit<PayButtonProps, 'amount'>;
460
+ type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError'>;
461
+ type UIElementProps = BaseElementProps & CoreCallbacks & {
462
+ environment?: string;
463
+ session?: Session;
464
+ onComplete?: (state: any, element: UIElement) => void;
465
+ isInstantPayment?: boolean;
406
466
  /**
407
- * Configuration for Click to Pay
467
+ * Flags if the element is Stored payment method
468
+ * @internal
408
469
  */
409
- clickToPayConfiguration?: ClickToPayProps;
470
+ isStoredPaymentMethod?: boolean;
410
471
  /**
411
- * Disable Click to Pay for testing purposes
412
- * @defaultValue false
472
+ * Flag if the element is Stored payment method.
473
+ * Perhaps can be deprecated and we use the one above?
413
474
  * @internal
414
475
  */
415
- _disableClickToPay?: boolean;
476
+ oneClick?: boolean;
416
477
  /**
417
- * Funding source field populated when 'splitCardFundingSources' is used
478
+ * Stored payment method id
418
479
  * @internal
419
480
  */
420
- fundingSource?: 'debit' | 'credit';
481
+ storedPaymentMethodId?: string;
421
482
  /**
422
- * type will always be "card" (generic card, stored card)
423
- * except for a single branded card when it will be the same as the brand prop
483
+ * Status set when creating the Component from action
484
+ * @internal
424
485
  */
486
+ statusType?: 'redirect' | 'loading' | 'custom';
425
487
  type?: string;
426
- /** List of brands accepted by the component */
427
- brands?: string[];
488
+ name?: string;
489
+ icon?: string;
490
+ amount?: PaymentAmount;
491
+ secondaryAmount?: PaymentAmountExtended;
428
492
  /**
429
- * Position holder name above card number field (instead of having it after the security code field)
430
- * @defaultValue `false`
493
+ * Show/Hide pay button
494
+ * @defaultValue true
431
495
  */
432
- positionHolderNameOnTop?: boolean;
496
+ showPayButton?: boolean;
497
+ /** @internal */
498
+ payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
499
+ /** @internal */
500
+ loadingContext?: string;
501
+ /** @internal */
502
+ createFromAction?: (action: PaymentAction, props: object) => UIElement;
503
+ /** @internal */
504
+ clientKey?: string;
505
+ /** @internal */
506
+ elementRef?: any;
507
+ /** @internal */
508
+ i18n?: Language;
433
509
  /**
434
- * Show/hide the brand logo when the card brand has been recognized
435
- * @defaultValue `true`
510
+ * The shopper’s issuer account label. It can be available for stored payment method
511
+ * @internal
436
512
  */
437
- showBrandIcon?: boolean;
513
+ label?: string;
438
514
  /**
439
- * Show/hide the sentence 'All fields are required unless marked otherwise.' on the top of the form
440
- * @defaultValue `true`
515
+ * Returned after the payments call, when an action is returned. It represents the payment method tx variant
516
+ * that was used for the payment
517
+ * @internal
441
518
  */
442
- showFormInstruction?: boolean;
519
+ paymentMethodType?: string;
520
+ };
521
+ type UIElementStatus = 'ready' | 'loading' | 'error' | 'success';
522
+ interface ComponentMethodsRef {
523
+ showValidation?: () => void;
524
+ setStatus?(status: UIElementStatus): void;
525
+ }
526
+
527
+ interface CardConfiguration extends UIElementProps {
443
528
  /**
444
- * Show/hide the contextual text under each form field. The contextual text is to assist shoppers filling in the payment form.
529
+ * Automatically shift the focus from one field to another. Usually happens from a valid Expiry Date field to the Security Code field,
530
+ * but some BINS also allow us to know that the PAN is complete, in which case we can shift focus to the date field
445
531
  * @defaultValue `true`
532
+ *
533
+ * - merchant set config option
446
534
  */
447
- showContextualElement?: boolean;
448
- /** Config option related to whether we set storePaymentMethod in the card data, and showing/hiding the "store details" checkbox */
449
- enableStoreDetails?: boolean;
450
- /** Show/hide the Security Code field - merchant set config option */
535
+ autoFocus?: boolean;
451
536
  /**
452
- * Show/hide the "store details" checkbox
537
+ * Config t olimit the countries that will show in the country dropdown
538
+ * - merchant set config option
539
+ */
540
+ billingAddressAllowedCountries?: string[];
541
+ /**
542
+ * If billingAddressRequired is set to true, you can set this to partial to require the shopper's postal code instead of the full address.
543
+ * @defaultValue full
544
+ *
545
+ * - merchant set config option
546
+ */
547
+ billingAddressMode?: 'full' | 'partial' | 'none';
548
+ /**
549
+ * Show Address fields
550
+ * @defaultValue `false`
551
+ *
552
+ * - merchant set config option
553
+ */
554
+ billingAddressRequired?: boolean;
555
+ /**
556
+ * Config to specify which address field are required
557
+ * - merchant set config option
558
+ */
559
+ billingAddressRequiredFields?: string[];
560
+ /**
561
+ * Only set for a stored card,
562
+ * brand is never set for a generic card component OR a single-branded card
453
563
  * @internal
454
564
  */
455
- showStoreDetailsCheckbox?: boolean;
456
- /** Show/hide the CVC field - merchant set config option */
457
- hideCVC?: boolean;
565
+ brand?: string;
458
566
  /**
459
- * Decides whether the CVC (Security Code) component will even be rendered.
460
- * Always true except when hideCVC set to false by merchant OR in the case of a *stored* BCMC card.
461
- * (For the Bancontact card comp this is set to true since dual-branding possibilities mean the BCMC card can now end up needing to show a CVC field)
567
+ * List of brands accepted by the component
568
+ * @internal
569
+ * - but can also be overwritten by merchant config option
462
570
  */
463
- hasCVC?: boolean;
464
- /** Show/hide the card holder name field */
465
- hasHolderName?: boolean;
466
- /** Whether the card holder name field will be required */
467
- holderNameRequired?: boolean;
468
- /** An object sent in the /paymentMethods response */
469
- configuration?: CardBackendConfiguration;
470
- /** Configure placeholder text for holderName, cardNumber, expirationDate, securityCode and password. */
471
- placeholders?: Placeholders;
571
+ brands?: string[];
572
+ /**
573
+ * Configuration specific to brands
574
+ * - merchant set config option
575
+ */
576
+ brandsConfiguration?: CardBrandsConfiguration;
472
577
  /**
473
578
  * Defines the size of the challenge Component
474
579
  *
@@ -479,142 +584,253 @@ interface CardConfiguration extends UIElementProps {
479
584
  * 05: [100%, 100%]
480
585
  *
481
586
  * @defaultValue '02'
587
+ *
588
+ * - merchant set config option
482
589
  */
483
590
  challengeWindowSize?: '01' | '02' | '03' | '04' | '05';
591
+ /**
592
+ * Configuration for Click to Pay
593
+ * - merchant set config option
594
+ */
595
+ clickToPayConfiguration?: ClickToPayProps;
596
+ /**
597
+ * An object sent in the /paymentMethods response
598
+ * @internal
599
+ */
600
+ configuration?: CardBackendConfiguration;
601
+ /**
602
+ * Mostly used in relation to KCP cards
603
+ * @internal
604
+ */
605
+ countryCode?: string;
484
606
  /**
485
607
  * Object that contains placeholder information that you can use to prefill fields.
608
+ * - merchant set config option
486
609
  */
487
610
  data?: {
488
611
  holderName?: string;
489
612
  billingAddress?: Partial<AddressData>;
490
613
  };
491
614
  /**
492
- * Called once all the card input fields have been created but are not yet ready to use.
615
+ * Disable Click to Pay for testing purposes
616
+ * @defaultValue false
617
+ * @internal
493
618
  */
494
- onLoad?: (event: CbObjOnLoad) => void;
619
+ _disableClickToPay?: boolean;
495
620
  /**
496
- * Called once the card input fields are ready to use.
621
+ * Turn on the procedure to force the arrow keys on an iOS soft keyboard to always be disabled
622
+ * @defaultValue `false`
623
+ *
624
+ * - merchant set config option
497
625
  */
498
- onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
626
+ disableIOSArrowKeys?: boolean;
499
627
  /**
500
- * Called when a field becomes valid and also if a valid field changes and becomes invalid.
501
- * For the card number field, it returns the last 4 digits of the card number.
628
+ * Object to configure the message and text for a disclaimer message, added after the Card input fields
629
+ * - merchant set config option
502
630
  */
503
- onFieldValid?: (event: CbObjOnFieldValid) => void;
631
+ disclaimerMessage?: DisclaimerMsgObject;
504
632
  /**
505
- * Called once we detect the card brand.
633
+ * Allow binLookup process to occur
634
+ * @defaultValue `true`
635
+ *
636
+ * - merchant set config option
506
637
  */
507
- onBrand?: (event: CbObjOnBrand) => void;
638
+ doBinLookup?: boolean;
508
639
  /**
509
- * Called when a field gains focus.
640
+ * Config option related to whether we set storePaymentMethod in the card data, and showing/hiding the "store details" checkbox
641
+ * - merchant set config option
510
642
  */
511
- onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
643
+ enableStoreDetails?: boolean;
512
644
  /**
513
- * Called when a field loses focus.
645
+ * Comes from Stored payment method object
646
+ * @internal
514
647
  */
515
- onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
648
+ expiryMonth?: string;
516
649
  /**
517
- * Provides the BIN Number of the card (up to 6 digits), called as the user types in the PAN.
650
+ * Allows SF to return an unencrypted expiryDate
651
+ * - merchant set config option
518
652
  */
519
- onBinValue?: (event: CbObjOnBinValue) => void;
653
+ exposeExpiryDate?: boolean;
520
654
  /**
521
- * After binLookup call - provides the brand(s) we detect the user is entering, and if we support the brand(s)
655
+ * Force securedFields to use the 'compat' version of JWE. (Use case: running custom http:// test environment
656
+ * - merchant set config option
522
657
  */
523
- onBinLookup?: (event: CbObjOnBinLookup) => void;
658
+ forceCompat?: boolean;
524
659
  /**
525
- * Related to storedCards - this information comes from the storedCardData once we process it
660
+ * Funding source field populated when 'splitCardFundingSources' is used
526
661
  * @internal
527
662
  */
528
- storedPaymentMethodId?: string;
529
- lastFour?: string;
663
+ fundingSource?: 'debit' | 'credit';
530
664
  /**
531
- * Mostly used in relation to KCP cards
665
+ * Decides whether the CVC (Security Code) component will even be rendered.
666
+ * Always true except when hideCVC set to false by merchant OR in the case of a *stored* BCMC card.
667
+ * (For the Bancontact card comp this is set to true since dual-branding possibilities mean the BCMC card can now end up needing to show a CVC field)
668
+ * @internal
532
669
  */
533
- countryCode?: string;
670
+ hasCVC?: boolean;
534
671
  /**
535
- * Show Address fields
536
- * @defaultValue `false`
672
+ * Show/hide the card holder name field
673
+ * - merchant set config option
537
674
  */
538
- billingAddressRequired?: boolean;
675
+ hasHolderName?: boolean;
539
676
  /**
540
- * If billingAddressRequired is set to true, you can set this to partial to require the shopper's postal code instead of the full address.
541
- * @defaultValue full
677
+ * Show/hide the Security Code field
678
+ * - merchant set config option
542
679
  */
543
- billingAddressMode?: 'full' | 'partial' | 'none';
680
+ hideCVC?: boolean;
544
681
  /**
545
- * Config to specify which address field are required | limit the countries that will show in the country dropdown
682
+ * Whether the card holder name field will be required
683
+ * - merchant set config option
546
684
  */
547
- billingAddressRequiredFields?: string[];
548
- billingAddressAllowedCountries?: string[];
685
+ holderNameRequired?: boolean;
549
686
  /**
550
687
  * Relates to storedCards
688
+ * @internal
551
689
  */
552
690
  id?: string;
553
691
  /**
554
692
  * Configure the installment options for the card
693
+ * - merchant set config option
555
694
  */
556
695
  installmentOptions?: InstallmentOptions;
557
696
  /**
558
- * Set whether to show installments broken down into amounts or months
697
+ * Implements a workaround for iOS/Safari bug where keypad doesn't retract when SF paymentMethod is no longer active
559
698
  * @defaultValue `true`
699
+ *
700
+ * - merchant set config option
560
701
  */
561
- showInstallmentAmounts?: boolean;
702
+ keypadFix?: boolean;
703
+ /**
704
+ * Related to storedCards - this information comes from the storedCardData once we process it
705
+ * @internal
706
+ */
707
+ lastFour?: string;
562
708
  /**
563
709
  * For some scenarios make the card input fields (PAN, Expiry Date, Security Code) have type="tel" rather than type="text" inputmode="numeric"
564
710
  * @defaultValue `false`
711
+ *
712
+ * - merchant set config option
565
713
  */
566
714
  legacyInputMode?: boolean;
715
+ /**
716
+ * Adds type="password" to the Security code input field, causing its value to be masked
717
+ * @defaultValue `false`
718
+ *
719
+ * - merchant set config option
720
+ */
721
+ maskSecurityCode?: boolean;
567
722
  /**
568
723
  * Specify the minimum expiry date that will be considered valid
724
+ *
725
+ * - merchant set config option
569
726
  */
570
727
  minimumExpiryDate?: string[];
571
728
  /**
572
- * Automatically shift the focus from one field to another. Usually happens from a valid Expiry Date field to the Security Code field,
573
- * but some BINS also allow us to know that the PAN is complete, in which case we can shift focus to the date field
574
- * @defaultValue `true`
729
+ * When in Dropin this is the name shown in the paymentMethods list
730
+ * @defaultValue - derived from PaymentMethods response
731
+ * @internal - but can also be overwritten by merchant config option
575
732
  */
576
- autoFocus?: boolean;
733
+ name?: string;
577
734
  /**
578
- * Adds type="password" to the Security code input field, causing its value to be masked
735
+ * After binLookup call - provides the brand(s) we detect the user is entering, and if we support the brand(s)
736
+ * - merchant set config option
737
+ */
738
+ onBinLookup?: (event: CbObjOnBinLookup) => void;
739
+ /**
740
+ * Provides the BIN Number of the card (up to 6 digits), called as the user types in the PAN.
741
+ * - merchant set config option
742
+ */
743
+ onBinValue?: (event: CbObjOnBinValue) => void;
744
+ /**
745
+ * Called when a field loses focus.
746
+ * - merchant set config option
747
+ */
748
+ onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
749
+ /**
750
+ * Called once we detect the card brand.
751
+ * - merchant set config option
752
+ */
753
+ onBrand?: (event: CbObjOnBrand) => void;
754
+ /**
755
+ * Called once the card input fields are ready to use.
756
+ * - merchant set config option
757
+ */
758
+ onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
759
+ /**
760
+ * Called when a field becomes valid and also if a valid field changes and becomes invalid.
761
+ * For the card number field, it returns the last 4 digits of the card number.
762
+ * - merchant set config option
763
+ */
764
+ onFieldValid?: (event: CbObjOnFieldValid) => void;
765
+ /**
766
+ * Called when a field gains focus.
767
+ * - merchant set config option
768
+ */
769
+ onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
770
+ /**
771
+ * Called once all the card input fields have been created but are not yet ready to use.
772
+ * - merchant set config option
773
+ */
774
+ onLoad?: (event: CbObjOnLoad) => void;
775
+ /**
776
+ * Configure placeholder text for holderName, cardNumber, expirationDate, securityCode and password.
777
+ * - merchant set config option
778
+ */
779
+ placeholders?: Placeholders;
780
+ /**
781
+ * Position holder name above card number field (instead of having it after the security code field)
579
782
  * @defaultValue `false`
783
+ *
784
+ * - merchant set config option
580
785
  */
581
- maskSecurityCode?: boolean;
786
+ positionHolderNameOnTop?: boolean;
582
787
  /**
583
- * Allow binLookup process to occur
788
+ * Show/hide the brand logo when the card brand has been recognized
584
789
  * @defaultValue `true`
790
+ *
791
+ * - merchant set config option
585
792
  */
586
- doBinLookup?: boolean;
793
+ showBrandIcon?: boolean;
587
794
  /**
588
- * Turn on the procedure to force the arrow keys on an iOS soft keyboard to always be disabled
589
- * @defaultValue `false`
795
+ * Show/hide the contextual text under each form field. The contextual text is to assist shoppers filling in the payment form.
796
+ * @defaultValue `true`
797
+ *
798
+ * - merchant set config option
590
799
  */
591
- disableIOSArrowKeys?: boolean;
800
+ showContextualElement?: boolean;
592
801
  /**
593
- * Object to configure the message and text for a disclaimer message, added after the Card input fields
802
+ * Set whether to show installments broken down into amounts or months
803
+ * @defaultValue `true`
804
+ *
805
+ * - merchant set config option
594
806
  */
595
- disclaimerMessage?: DisclaimerMsgObject;
807
+ showInstallmentAmounts?: boolean;
596
808
  /**
597
- * Object to configure the styling of the inputs in the iframes that are used to present the PAN, Expiry Date & Security Code fields
809
+ * Related to storedCards - this information comes from the storedCardData once we process it
810
+ * @internal
598
811
  */
599
- styles?: StylesObject;
812
+ storedPaymentMethodId?: string;
600
813
  /**
601
- * Relates to storedCards and the type of interactions they support e.g. "Ecommerce", "ContAuth" etc
814
+ * Show/hide the "store details" checkbox
815
+ * @internal
602
816
  */
603
- supportedShopperInteractions?: string[];
817
+ showStoreDetailsCheckbox?: boolean;
604
818
  /**
605
- * Implements a workaround for iOS/Safari bug where keypad doesn't retract when SF paymentMethod is no longer active
606
- * @defaultValue `true`
819
+ * Object to configure the styling of the inputs in the iframes that are used to present the PAN, Expiry Date & Security Code fields
820
+ * - merchant set config option
607
821
  */
608
- keypadFix?: boolean;
822
+ styles?: StylesObject;
609
823
  /**
610
- * Comes from Stored payment method object
824
+ * Relates to storedCards and the type of interactions they support e.g. "Ecommerce", "ContAuth" etc
611
825
  * @internal
612
826
  */
613
- expiryMonth?: string;
827
+ supportedShopperInteractions?: string[];
614
828
  /**
615
- * Allows SF to return an unencrypted expiryDate
829
+ * type will always be "card" (generic card, stored card)
830
+ * except for a single branded card when it will be the same as the brand prop
831
+ * @internal
616
832
  */
617
- exposeExpiryDate?: boolean;
833
+ type?: string;
618
834
  }
619
835
  type SocialSecurityMode = 'show' | 'hide' | 'auto';
620
836
  /** If the merchant wishes to set any of these properties in their local config they should do so via a "configuration" object */
@@ -811,30 +1027,6 @@ declare class RiskElement extends BaseElement<RiskModuleProps> {
811
1027
  render(): h.JSX.Element;
812
1028
  }
813
1029
 
814
- interface CheckoutErrorOptions {
815
- cause?: any;
816
- }
817
- declare class AdyenCheckoutError extends Error {
818
- protected static errorTypes: {
819
- /** Network error. */
820
- NETWORK_ERROR: string;
821
- /** Shopper canceled the current transaction. */
822
- CANCEL: string;
823
- /** Implementation error. The method or parameter are incorrect or are not supported. */
824
- IMPLEMENTATION_ERROR: string;
825
- /** API error. The API has not returned the expected data */
826
- API_ERROR: string;
827
- /** Generic error. */
828
- ERROR: string;
829
- /** Script error. The browser failed to load 3rd party script */
830
- SCRIPT_ERROR: string;
831
- /** Something has gone wrong internally */
832
- SDK_ERROR: string;
833
- };
834
- cause: unknown;
835
- constructor(type: keyof typeof AdyenCheckoutError.errorTypes, message?: string, options?: CheckoutErrorOptions);
836
- }
837
-
838
1030
  interface GiftCardElementData {
839
1031
  paymentMethod: {
840
1032
  type: 'giftcard';
@@ -868,21 +1060,12 @@ interface GiftCardConfiguration extends UIElementProps {
868
1060
  fieldsLayoutComponent?: FunctionComponent<GiftcardFieldsProps>;
869
1061
  }
870
1062
 
871
- type NewableComponent = new (checkout: ICore, props?: any) => IUIElement;
1063
+ type NewableComponent = new (checkout: ICore, props?: any) => UIElement;
872
1064
  interface IRegistry {
873
1065
  add(...items: NewableComponent[]): void;
874
1066
  getComponent(type: string): NewableComponent | undefined;
875
1067
  }
876
1068
 
877
- declare class PaymentMethods$1 {
878
- paymentMethods: PaymentMethod[];
879
- storedPaymentMethods: StoredPaymentMethod[];
880
- constructor(response: PaymentMethodsResponse, options?: {});
881
- private mapCreatedComponentType;
882
- has(paymentMethod: string): boolean;
883
- find(paymentMethod: string): PaymentMethod;
884
- }
885
-
886
1069
  interface CompanyDetailsSchema {
887
1070
  name?: string;
888
1071
  registrationNumber?: string;
@@ -923,7 +1106,6 @@ interface OpenInvoiceProps extends UIElementProps {
923
1106
  deliveryAddressRequiredFields?: string[];
924
1107
  deliveryAddressSpecification?: OpenInvoiceAddressSpecification;
925
1108
  setComponentRef?: (ref: any) => void;
926
- showFormInstruction?: boolean;
927
1109
  }
928
1110
  interface OpenInvoiceStateData {
929
1111
  companyDetails?: CompanyDetailsSchema;
@@ -993,6 +1175,7 @@ declare enum TxVariants {
993
1175
  bankTransfer_IBAN = "bankTransfer_IBAN",
994
1176
  donation = "donation",
995
1177
  personal_details = "personal_details",
1178
+ dropin = "dropin",
996
1179
  /** internal */
997
1180
  /** Card */
998
1181
  bcmc = "bcmc",
@@ -1060,7 +1243,6 @@ declare enum TxVariants {
1060
1243
  billdesk_wallet = "billdesk_wallet",
1061
1244
  dotpay = "dotpay",
1062
1245
  eps = "eps",
1063
- ideal = "ideal",
1064
1246
  molpay_ebanking_fpx_MY = "molpay_ebanking_fpx_MY",
1065
1247
  molpay_ebanking_TH = "molpay_ebanking_TH",
1066
1248
  molpay_ebanking_VN = "molpay_ebanking_VN",
@@ -1114,6 +1296,7 @@ declare enum TxVariants {
1114
1296
  /** Await */
1115
1297
  blik = "blik",
1116
1298
  mbway = "mbway",
1299
+ ancv = "ancv",
1117
1300
  upi = "upi",// also QR
1118
1301
  upi_qr = "upi_qr",// also QR
1119
1302
  upi_collect = "upi_collect",// also QR
@@ -1403,6 +1586,40 @@ declare class AmazonPayElement extends UIElement<AmazonPayConfiguration> {
1403
1586
  render(): h.JSX.Element;
1404
1587
  }
1405
1588
 
1589
+ interface ANCVConfiguration extends UIElementProps {
1590
+ paymentData?: any;
1591
+ data: ANCVDataState;
1592
+ onOrderRequest?: any;
1593
+ onOrderUpdated?: any;
1594
+ }
1595
+ interface ANCVDataState {
1596
+ beneficiaryId: string;
1597
+ }
1598
+
1599
+ declare class ANCVElement extends UIElement<ANCVConfiguration> {
1600
+ static type: string;
1601
+ /**
1602
+ * Formats the component data output
1603
+ */
1604
+ formatData(): {
1605
+ paymentMethod: {
1606
+ type: string;
1607
+ beneficiaryId: any;
1608
+ };
1609
+ };
1610
+ private onOrderRequest;
1611
+ /**
1612
+ * Check if order exists, if it does Resolve.
1613
+ * Otherwise createOrder and then Resolve.
1614
+ */
1615
+ createOrder: () => Promise<void>;
1616
+ submit(): boolean;
1617
+ payButton: (props: any) => h.JSX.Element;
1618
+ get isValid(): boolean;
1619
+ get displayName(): string;
1620
+ render(): h.JSX.Element;
1621
+ }
1622
+
1406
1623
  declare global {
1407
1624
  interface Window {
1408
1625
  ApplePaySession: ApplePaySession;
@@ -1627,39 +1844,6 @@ declare class Atome extends OpenInvoiceContainer {
1627
1844
  formatProps(props: any): any;
1628
1845
  }
1629
1846
 
1630
- type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'action';
1631
- interface ButtonProps {
1632
- status?: string;
1633
- /**
1634
- * Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
1635
- */
1636
- classNameModifiers?: string[];
1637
- variant?: ButtonVariant;
1638
- disabled?: boolean;
1639
- label?: string;
1640
- secondaryLabel?: string;
1641
- icon?: string;
1642
- inline?: boolean;
1643
- href?: string;
1644
- target?: string;
1645
- rel?: string;
1646
- onClick?: (e: any, callbacks: any) => void;
1647
- }
1648
-
1649
- interface PayButtonProps extends ButtonProps {
1650
- /**
1651
- * Class name modifiers will be used as: `adyen-checkout__image--${modifier}`
1652
- */
1653
- classNameModifiers?: string[];
1654
- label?: string;
1655
- amount: PaymentAmountExtended;
1656
- secondaryAmount?: PaymentAmountExtended;
1657
- status?: string;
1658
- disabled?: boolean;
1659
- icon?: string;
1660
- onClick?(): void;
1661
- }
1662
-
1663
1847
  interface IssuerItem {
1664
1848
  id: string;
1665
1849
  name: string;
@@ -1726,45 +1910,99 @@ declare class BillDeskWalletElement extends IssuerListContainer {
1726
1910
  formatProps(props: any): any;
1727
1911
  }
1728
1912
 
1729
- interface CashAppPayConfiguration extends UIElementProps {
1730
- /**
1731
- * Indicates that the payment must be stored (Ex: in case there is no checkbox but merchant wants to store it)
1732
- */
1733
- storePaymentMethod?: boolean;
1734
- /**
1735
- * Enables storing the payment method using the Checkbox
1736
- */
1737
- enableStoreDetails?: boolean;
1738
- /**
1739
- * Callback triggered before starting the CashAppPay flow. Use case: Validate customer data, check product availability
1740
- */
1741
- onClick?(actions: {
1742
- resolve: () => void;
1743
- reject: () => void;
1744
- }): void;
1745
- /**
1746
- * A reference to your system (for example, a cart or checkout identifier). Maximum length 1024 characters.
1747
- * https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/technical-reference#parameters-3
1748
- */
1749
- referenceId?: string;
1750
- /**
1751
- * The destination for the customer after approving (or declining) in Cash App for mobile redirect flow.
1752
- * https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/technical-reference#customerrequest
1753
- * @defaultValue window.location.ref
1754
- */
1755
- redirectURL?: string;
1913
+ interface AchConfiguration extends UIElementProps {
1914
+ storedPaymentMethodId?: string;
1915
+ holderNameRequired?: boolean;
1916
+ hasHolderName?: boolean;
1917
+ enableStoreDetails: boolean;
1918
+ bankAccountNumber: string;
1919
+ placeholders?: Placeholders$1;
1920
+ }
1921
+
1922
+ interface BankTransferConfiguration extends UIElementProps {
1923
+ reference?: string;
1756
1924
  /**
1757
- * Button customization
1758
- * https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/use-cases#customize-the-cash-app-pay-button
1925
+ * Show/hide email address field
1926
+ * @default true
1759
1927
  */
1760
- button?: {
1761
- shape?: 'semiround' | 'round';
1762
- size?: 'medium' | 'small';
1763
- theme?: 'dark' | 'light';
1764
- width?: 'static' | 'full';
1765
- };
1766
- /**
1767
- * CashAppPay configuration sent by the /paymentMethods response
1928
+ showEmailAddress?: boolean;
1929
+ }
1930
+ interface BankTransferState extends UIElementProps {
1931
+ data: {
1932
+ shopperEmail?: string;
1933
+ };
1934
+ isValid: boolean;
1935
+ }
1936
+ interface BankTransferSchema {
1937
+ shopperEmail?: string;
1938
+ }
1939
+
1940
+ interface BoletoElementProps {
1941
+ type: string;
1942
+ i18n: Language;
1943
+ loadingContext: string;
1944
+ reference?: string;
1945
+ }
1946
+ interface BoletoInputDataState {
1947
+ firstName?: string;
1948
+ lastName?: string;
1949
+ shopperEmail?: string;
1950
+ socialSecurityNumber?: string;
1951
+ billingAddress?: AddressData;
1952
+ }
1953
+ interface BoletoInputValidState {
1954
+ firstName?: boolean;
1955
+ lastName?: boolean;
1956
+ shopperEmail?: boolean;
1957
+ socialSecurityNumber?: boolean;
1958
+ billingAddress?: boolean;
1959
+ }
1960
+ interface BoletoInputErrorState {
1961
+ firstName?: boolean;
1962
+ lastName?: boolean;
1963
+ shopperEmail?: boolean;
1964
+ socialSecurityNumber?: boolean;
1965
+ }
1966
+
1967
+ interface CashAppPayConfiguration extends UIElementProps {
1968
+ /**
1969
+ * Indicates that the payment must be stored (Ex: in case there is no checkbox but merchant wants to store it)
1970
+ */
1971
+ storePaymentMethod?: boolean;
1972
+ /**
1973
+ * Enables storing the payment method using the Checkbox
1974
+ */
1975
+ enableStoreDetails?: boolean;
1976
+ /**
1977
+ * Callback triggered before starting the CashAppPay flow. Use case: Validate customer data, check product availability
1978
+ */
1979
+ onClick?(actions: {
1980
+ resolve: () => void;
1981
+ reject: () => void;
1982
+ }): void;
1983
+ /**
1984
+ * A reference to your system (for example, a cart or checkout identifier). Maximum length 1024 characters.
1985
+ * https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/technical-reference#parameters-3
1986
+ */
1987
+ referenceId?: string;
1988
+ /**
1989
+ * The destination for the customer after approving (or declining) in Cash App for mobile redirect flow.
1990
+ * https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/technical-reference#customerrequest
1991
+ * @defaultValue window.location.ref
1992
+ */
1993
+ redirectURL?: string;
1994
+ /**
1995
+ * Button customization
1996
+ * https://developers.cash.app/docs/api/technical-documentation/sdks/pay-kit/use-cases#customize-the-cash-app-pay-button
1997
+ */
1998
+ button?: {
1999
+ shape?: 'semiround' | 'round';
2000
+ size?: 'medium' | 'small';
2001
+ theme?: 'dark' | 'light';
2002
+ width?: 'static' | 'full';
2003
+ };
2004
+ /**
2005
+ * CashAppPay configuration sent by the /paymentMethods response
1768
2006
  */
1769
2007
  configuration?: {
1770
2008
  clientId: string;
@@ -1796,110 +2034,6 @@ type CashAppPayEventData = {
1796
2034
  onFileGrantId?: string;
1797
2035
  };
1798
2036
 
1799
- declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
1800
- static type: TxVariants;
1801
- private readonly cashAppService;
1802
- protected static defaultProps: {
1803
- onClick: (actions: any) => void;
1804
- enableStoreDetails: boolean;
1805
- storePaymentMethod: boolean;
1806
- };
1807
- constructor(checkout: ICore, props?: CashAppPayConfiguration);
1808
- formatProps(props: CashAppPayConfiguration): {
1809
- enableStoreDetails: boolean;
1810
- storePaymentMethod?: boolean;
1811
- onClick?(actions: {
1812
- resolve: () => void;
1813
- reject: () => void;
1814
- }): void;
1815
- referenceId?: string;
1816
- redirectURL?: string;
1817
- button?: {
1818
- shape?: "semiround" | "round";
1819
- size?: "small" | "medium";
1820
- theme?: "dark" | "light";
1821
- width?: "full" | "static";
1822
- };
1823
- configuration?: {
1824
- clientId: string;
1825
- scopeId: string;
1826
- };
1827
- storedPaymentMethodId?: string;
1828
- cashtag?: string;
1829
- order?: Order;
1830
- modules?: {
1831
- srPanel?: SRPanel;
1832
- analytics?: AnalyticsModule;
1833
- resources?: Resources;
1834
- risk?: RiskElement;
1835
- };
1836
- isDropin?: boolean;
1837
- beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
1838
- url: string;
1839
- method: string;
1840
- data?: any;
1841
- }) => void;
1842
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
1843
- resolve: (data: any) => void;
1844
- reject: () => void;
1845
- }) => void;
1846
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
1847
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
1848
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
1849
- }) => void;
1850
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
1851
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
1852
- reject: () => void;
1853
- }) => void;
1854
- onPaymentFailed?: (data?: SessionsResponse | {
1855
- resultCode: ResultCode;
1856
- }, element?: UIElement<UIElementProps>) => void;
1857
- onPaymentCompleted?: (data: SessionsResponse | {
1858
- resultCode: ResultCode;
1859
- donationToken?: string;
1860
- }, element?: UIElement<UIElementProps>) => void;
1861
- onOrderUpdated?: (data: {
1862
- order: Order;
1863
- }) => void;
1864
- onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
1865
- resolve: (response: PaymentMethodsResponse) => void;
1866
- reject: () => void;
1867
- }) => void;
1868
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
1869
- onActionHandled?: (data: ActionHandledReturnObject) => void;
1870
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
1871
- environment?: string;
1872
- session?: Session;
1873
- onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
1874
- isInstantPayment?: boolean;
1875
- isStoredPaymentMethod?: boolean;
1876
- oneClick?: boolean;
1877
- statusType?: "redirect" | "custom" | "loading";
1878
- type?: string;
1879
- name?: string;
1880
- icon?: string;
1881
- amount?: PaymentAmount;
1882
- secondaryAmount?: PaymentAmountExtended;
1883
- showPayButton?: boolean;
1884
- payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
1885
- loadingContext?: string;
1886
- createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
1887
- clientKey?: string;
1888
- elementRef?: any;
1889
- i18n?: Language;
1890
- label?: string;
1891
- paymentMethodType?: string;
1892
- };
1893
- formatData(): CashAppPayElementData;
1894
- get displayName(): string;
1895
- get additionalInfo(): "" | "Cash App Pay";
1896
- submit: () => void;
1897
- get isValid(): boolean;
1898
- private handleOnChangeStoreDetails;
1899
- private handleAuthorize;
1900
- render(): h.JSX.Element;
1901
- }
1902
-
1903
2037
  declare global {
1904
2038
  interface Window {
1905
2039
  SRCSDK_MASTERCARD?: object;
@@ -1941,269 +2075,45 @@ type ClickToPayPaymentData = {
1941
2075
  browserInfo: BrowserInfo;
1942
2076
  };
1943
2077
 
1944
- declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
2078
+ type CustomCardConfiguration = Omit<CardConfiguration, 'clickToPayConfiguration' | '_disableClickToPay' | 'fundingSource' | 'positionHolderNameOnTop' | 'showBrandIcon' | 'enableStoreDetails' | 'hideCVC' | 'hasCVC' | 'hasHolderName' | 'holderNameRequired' | 'billingAddressRequired' | 'billingAddressRequiredFields' | 'billingAddressAllowedCountries' | 'installmentOptions' | 'showInstallmentAmounts' | 'configuration'> & {
2079
+ onValidationError?: (validationErrors: ValidationError[]) => void;
2080
+ };
2081
+ type ValidationError = SFError & {
2082
+ fieldType: string;
2083
+ };
2084
+
2085
+ interface DokuVoucherResultProps {
2086
+ reference?: string;
2087
+ totalAmount?: PaymentAmount;
2088
+ expiresAt?: string;
2089
+ paymentMethodType?: string;
2090
+ maskedTelephoneNumber?: string;
2091
+ instructionsUrl?: string;
2092
+ shopperName?: string;
2093
+ merchantName?: string;
2094
+ outputDetails?: any;
2095
+ ref?: any;
2096
+ }
2097
+
2098
+ declare class DonationElement extends UIElement<DonationConfiguration> {
1945
2099
  static type: TxVariants;
1946
- private readonly clickToPayService;
1947
- private readonly ctpConfiguration;
1948
- constructor(checkout: ICore, props?: ClickToPayConfiguration);
1949
- get isValid(): boolean;
1950
- get browserInfo(): BrowserInfo;
1951
- formatData(): ClickToPayPaymentData;
1952
- protected formatProps(props: ClickToPayConfiguration): {
1953
- disableOtpAutoFocus: boolean;
1954
- shopperEmail: any;
1955
- telephoneNumber: any;
1956
- locale: string;
1957
- order?: Order;
1958
- modules?: {
1959
- srPanel?: SRPanel;
1960
- analytics?: AnalyticsModule;
1961
- resources?: Resources;
1962
- risk?: RiskElement;
1963
- };
1964
- isDropin?: boolean;
1965
- beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
1966
- url: string;
1967
- method: string;
1968
- data?: any;
1969
- }) => void;
1970
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
1971
- resolve: (data: any) => void;
1972
- reject: () => void;
1973
- }) => void;
1974
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
1975
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
1976
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
1977
- }) => void;
1978
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
1979
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
1980
- reject: () => void;
1981
- }) => void;
1982
- onPaymentFailed?: (data?: SessionsResponse | {
1983
- resultCode: ResultCode;
1984
- }, element?: UIElement<UIElementProps>) => void;
1985
- onPaymentCompleted?: (data: SessionsResponse | {
1986
- resultCode: ResultCode;
1987
- donationToken?: string;
1988
- }, element?: UIElement<UIElementProps>) => void;
1989
- onOrderUpdated?: (data: {
1990
- order: Order;
1991
- }) => void;
1992
- onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
1993
- resolve: (response: PaymentMethodsResponse) => void;
1994
- reject: () => void;
1995
- }) => void;
1996
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
1997
- onActionHandled?: (data: ActionHandledReturnObject) => void;
1998
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
1999
- environment?: string;
2000
- session?: Session;
2001
- onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
2002
- isInstantPayment?: boolean;
2003
- isStoredPaymentMethod?: boolean;
2004
- oneClick?: boolean;
2005
- storedPaymentMethodId?: string;
2006
- statusType?: "redirect" | "custom" | "loading";
2007
- type?: string;
2008
- name?: string;
2009
- icon?: string;
2010
- amount?: PaymentAmount;
2011
- secondaryAmount?: PaymentAmountExtended;
2012
- showPayButton?: boolean;
2013
- payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
2014
- loadingContext?: string;
2015
- createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
2016
- clientKey?: string;
2017
- elementRef?: any;
2018
- i18n?: Language;
2019
- label?: string;
2020
- paymentMethodType?: string;
2021
- merchantDisplayName?: string;
2022
- onReady?(): void;
2023
- onTimeout?(error: TimeoutError): void;
2024
- configuration?: {
2025
- mcDpaId?: string;
2026
- mcSrcClientId?: string;
2027
- visaSrcInitiatorId?: string;
2028
- visaSrciDpaId?: string;
2029
- };
2100
+ constructor(checkout: ICore, props?: DonationConfiguration);
2101
+ static defaultProps: {
2102
+ onCancel: () => void;
2103
+ onDonate: () => void;
2030
2104
  };
2031
2105
  /**
2032
- * Method used to let the merchant know if the shopper have a valid CtP accoubt
2033
- *
2034
- * Resolves Promise if the Shopper has cookies OR has valid CtP account
2035
- * Rejects Promise if account isn't found or if Login screen is triggered
2106
+ * Returns the component payment data ready to submit to the Checkout API
2036
2107
  */
2037
- isAvailable(): Promise<void>;
2038
- private handleClickToPaySubmit;
2039
- render(): h.JSX.Element;
2040
- }
2041
-
2042
- declare class BancontactElement extends CardElement {
2043
- static type: TxVariants;
2044
- constructor(checkout: ICore, props?: CardConfiguration);
2045
- protected static defaultProps: {
2046
- brands: string[];
2047
- onBinLookup: () => void;
2048
- showFormInstruction: boolean;
2049
- _disableClickToPay: boolean;
2050
- };
2051
- formatData(): CardElementData;
2108
+ get data(): any;
2052
2109
  /**
2053
- * 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
2054
- * at creation time (no automatic removing of the CVC securedField).
2055
- * At the same time we can't treat it as a regular 'card' component - because it needs to hide the CVC field at at startup,
2056
- * as well as show the BCMC logo in the number field and ignore any of the internal, regEx driven, brand detection.
2110
+ * Returns whether the component state is valid or not
2057
2111
  */
2058
- formatProps(props: CardConfiguration): {
2059
- /**
2060
- * Force type (only for the Dropin is type automatically set to 'bcmc')
2061
- * - this will bypass the regEx brand detection that SF normally tries to carry out when the first few digits are entered in the PAN
2062
- */
2063
- type: TxVariants;
2064
- brand: TxVariants;
2065
- cvcPolicy: CVCPolicyType;
2066
- storedPaymentMethodId: string;
2067
- holderNameRequired: boolean;
2068
- hasCVC: boolean;
2069
- billingAddressRequired: boolean;
2070
- countryCode: string;
2071
- configuration: {
2072
- socialSecurityNumberMode: SocialSecurityMode;
2073
- visaSrciDpaId?: string;
2074
- visaSrcInitiatorId?: string;
2075
- mcSrcClientId?: string;
2076
- mcDpaId?: string;
2077
- merchantIdentifier?: string;
2078
- merchantOrigin?: string;
2079
- gatewayMerchantId?: string;
2080
- publicKeyId?: string;
2081
- region?: string;
2082
- merchantName?: string;
2083
- merchantId?: string;
2084
- intent?: string;
2085
- koreanAuthenticationRequired?: boolean;
2086
- icon?: string;
2087
- brandsConfiguration?: CardBrandsConfiguration;
2088
- };
2089
- brandsConfiguration: CardBrandsConfiguration;
2090
- icon: string;
2091
- installmentOptions: InstallmentOptions;
2092
- enableStoreDetails: boolean;
2093
- showStoreDetailsCheckbox: boolean;
2094
- clickToPayConfiguration: {
2095
- disableOtpAutoFocus: boolean;
2096
- shopperEmail: any;
2097
- telephoneNumber: any;
2098
- locale: string;
2099
- merchantDisplayName?: string;
2100
- onReady?(): void;
2101
- onTimeout?(error: TimeoutError): void;
2102
- };
2103
- _disableClickToPay?: boolean;
2104
- fundingSource?: "debit" | "credit";
2105
- brands?: string[];
2106
- positionHolderNameOnTop?: boolean;
2107
- showBrandIcon?: boolean;
2108
- showFormInstruction?: boolean;
2109
- showContextualElement?: boolean;
2110
- hideCVC?: boolean;
2111
- hasHolderName?: boolean;
2112
- placeholders?: Partial<Record<"holderName" | "cardNumber" | "expiryDate" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
2113
- challengeWindowSize?: "01" | "02" | "03" | "04" | "05";
2114
- data?: {
2115
- holderName?: string;
2116
- billingAddress?: Partial<AddressData>;
2117
- };
2118
- onLoad?: (event: CbObjOnLoad) => void;
2119
- onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
2120
- onFieldValid?: (event: CbObjOnFieldValid) => void;
2121
- onBrand?: (event: CbObjOnBrand) => void;
2122
- onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
2123
- onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
2124
- onBinValue?: (event: CbObjOnBinValue) => void;
2125
- onBinLookup?: (event: CbObjOnBinLookup) => void;
2126
- lastFour?: string;
2127
- billingAddressMode?: "none" | "full" | "partial";
2128
- billingAddressRequiredFields?: string[];
2129
- billingAddressAllowedCountries?: string[];
2130
- id?: string;
2131
- showInstallmentAmounts?: boolean;
2132
- legacyInputMode?: boolean;
2133
- minimumExpiryDate?: string[];
2134
- autoFocus?: boolean;
2135
- maskSecurityCode?: boolean;
2136
- doBinLookup?: boolean;
2137
- disableIOSArrowKeys?: boolean;
2138
- disclaimerMessage?: DisclaimerMsgObject;
2139
- styles?: StylesObject;
2140
- supportedShopperInteractions?: string[];
2141
- keypadFix?: boolean;
2142
- expiryMonth?: string;
2143
- exposeExpiryDate?: boolean;
2144
- order?: Order;
2145
- modules?: {
2146
- srPanel?: SRPanel;
2147
- analytics?: AnalyticsModule;
2148
- resources?: Resources;
2149
- risk?: RiskElement;
2150
- };
2151
- isDropin?: boolean;
2152
- beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
2153
- url: string;
2154
- method: string;
2155
- data?: any;
2156
- }) => void;
2157
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
2158
- resolve: (data: any) => void;
2159
- reject: () => void;
2160
- }) => void;
2161
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
2162
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
2163
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
2164
- }) => void;
2165
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
2166
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
2167
- reject: () => void;
2168
- }) => void;
2169
- onPaymentFailed?: (data?: SessionsResponse | {
2170
- resultCode: ResultCode;
2171
- }, element?: UIElement<UIElementProps>) => void;
2172
- onPaymentCompleted?: (data: SessionsResponse | {
2173
- resultCode: ResultCode;
2174
- donationToken?: string;
2175
- }, element?: UIElement<UIElementProps>) => void;
2176
- onOrderUpdated?: (data: {
2177
- order: Order;
2178
- }) => void;
2179
- onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
2180
- resolve: (response: PaymentMethodsResponse) => void;
2181
- reject: () => void;
2182
- }) => void;
2183
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
2184
- onActionHandled?: (data: ActionHandledReturnObject) => void;
2185
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
2186
- environment?: string;
2187
- session?: Session;
2188
- onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
2189
- isInstantPayment?: boolean;
2190
- isStoredPaymentMethod?: boolean;
2191
- oneClick?: boolean;
2192
- statusType?: "redirect" | "custom" | "loading";
2193
- name?: string;
2194
- amount?: PaymentAmount;
2195
- secondaryAmount?: PaymentAmountExtended;
2196
- showPayButton?: boolean;
2197
- payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
2198
- loadingContext?: string;
2199
- createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
2200
- clientKey?: string;
2201
- elementRef?: any;
2202
- i18n?: Language;
2203
- label?: string;
2204
- paymentMethodType?: string;
2205
- };
2206
- onBrand: (event: any) => void;
2112
+ get isValid(): any;
2113
+ setState(newState: any): void;
2114
+ donate(): void;
2115
+ handleRef: (ref: any) => void;
2116
+ render(): h.JSX.Element;
2207
2117
  }
2208
2118
 
2209
2119
  interface CampaignContentProps {
@@ -2243,54 +2153,68 @@ type DonationConfiguration = UIElementProps & Omit<DonationComponentProps, 'onDo
2243
2153
  onCancel(data: DonationPayload): void;
2244
2154
  };
2245
2155
 
2246
- declare class DonationElement extends UIElement<DonationConfiguration> {
2247
- static type: TxVariants;
2248
- constructor(checkout: ICore, props?: DonationConfiguration);
2249
- static defaultProps: {
2250
- onCancel: () => void;
2251
- onDonate: () => void;
2252
- };
2253
- /**
2254
- * Returns the component payment data ready to submit to the Checkout API
2255
- */
2256
- get data(): any;
2257
- /**
2258
- * Returns whether the component state is valid or not
2259
- */
2260
- get isValid(): any;
2261
- setState(newState: any): void;
2262
- donate(): void;
2263
- handleRef: (ref: any) => void;
2264
- render(): h.JSX.Element;
2156
+ interface DragonpayInputIssuerItem {
2157
+ id: string;
2158
+ name: string;
2159
+ icon?: string;
2265
2160
  }
2266
-
2267
- interface RedirectConfiguration extends UIElementProps {
2161
+ interface DragonpayConfiguraton extends UIElementProps {
2268
2162
  type?: string;
2269
- url?: string;
2270
- method?: 'GET' | 'POST';
2271
- beforeRedirect?: (resolve: any, reject: any, url: any) => Promise<void>;
2163
+ issuers?: DragonpayInputIssuerItem[];
2164
+ /** @deprecated use issuers */
2165
+ details?: any;
2166
+ loadingContext?: string;
2167
+ reference?: string;
2168
+ i18n?: Language;
2272
2169
  }
2273
-
2274
- declare class RedirectElement extends UIElement<RedirectConfiguration> {
2275
- static type: TxVariants;
2276
- static defaultProps: {
2277
- type: TxVariants;
2278
- };
2279
- formatData(): {
2280
- paymentMethod: {
2281
- type: string;
2282
- };
2283
- browserInfo: BrowserInfo;
2284
- };
2285
- get isValid(): boolean;
2286
- get browserInfo(): BrowserInfo;
2287
- render(): h.JSX.Element;
2170
+ interface DragonpayInputData {
2171
+ issuer?: string;
2172
+ shopperEmail?: string;
2173
+ }
2174
+ interface DragonpayInputProps {
2175
+ data: DragonpayInputData;
2176
+ issuer?: string;
2177
+ items?: DragonpayInputIssuerItem[];
2178
+ type?: string;
2179
+ onChange: (state: any) => void;
2180
+ onSubmit?: (state: any, component: any) => void;
2181
+ showPayButton: boolean;
2182
+ payButton: any;
2183
+ ref?: any;
2184
+ }
2185
+ interface DragonpayVoucherResultProps {
2186
+ reference?: string;
2187
+ totalAmount?: PaymentAmount;
2188
+ expiresAt?: string;
2189
+ paymentMethodType?: string;
2190
+ instructionsUrl?: string;
2191
+ surcharge?: PaymentAmount;
2192
+ alternativeReference?: string;
2193
+ icon?: string;
2194
+ issuer?: string;
2195
+ ref?: any;
2288
2196
  }
2289
2197
 
2290
- declare class GiropayElement extends RedirectElement {
2291
- static type: TxVariants;
2292
- get displayName(): any;
2293
- render(): h.JSX.Element;
2198
+ interface EcontextVoucherResultProps {
2199
+ reference?: string;
2200
+ totalAmount?: PaymentAmount;
2201
+ expiresAt?: string;
2202
+ paymentMethodType?: string;
2203
+ maskedTelephoneNumber?: string;
2204
+ instructionsUrl?: string;
2205
+ ref?: any;
2206
+ collectionInstitutionNumber?: string;
2207
+ }
2208
+ interface EcontextInputSchema {
2209
+ firstName?: string;
2210
+ lastName?: string;
2211
+ telephoneNumber?: string;
2212
+ shopperEmail?: string;
2213
+ }
2214
+ interface EcontextConfiguration extends UIElementProps {
2215
+ reference?: string;
2216
+ personalDetailsRequired?: boolean;
2217
+ data?: PersonalDetailsSchema;
2294
2218
  }
2295
2219
 
2296
2220
  interface GooglePayConfiguration extends UIElementProps {
@@ -2458,129 +2382,136 @@ interface ExtendedMerchantInfo extends google.payments.api.MerchantInfo {
2458
2382
  merchantOrigin?: string;
2459
2383
  }
2460
2384
 
2461
- declare class GooglePay extends UIElement<GooglePayConfiguration> {
2462
- static type: TxVariants;
2463
- static txVariants: TxVariants[];
2464
- static defaultProps: GooglePayConfiguration;
2465
- protected readonly googlePay: any;
2466
- constructor(checkout: ICore, props?: GooglePayConfiguration);
2467
- protected formatProps(props: any): GooglePayConfiguration;
2468
- /**
2469
- * Formats the component data output
2470
- */
2471
- protected formatData(): {
2472
- deliveryAddress: any;
2473
- billingAddress: any;
2474
- paymentMethod: {
2475
- subtype: string;
2476
- type: string;
2477
- googlePayCardNetwork: any;
2478
- googlePayToken: any;
2479
- };
2480
- browserInfo: BrowserInfo;
2481
- origin: string;
2482
- };
2483
- protected submitAnalytics(analyticsObj: SendAnalyticsObject): void;
2484
- submit: () => void;
2485
- /**
2486
- * Method called when the payment is authorized in the payment sheet
2487
- *
2488
- * @see https://developers.google.com/pay/api/web/reference/client#onPaymentAuthorized
2489
- **/
2490
- private onPaymentAuthorized;
2491
- /**
2492
- * Call the 'onAuthorized' callback if available.
2493
- * Must be resolved/reject for the payment flow to continue
2494
- */
2495
- private handleAuthorization;
2496
- /**
2497
- * Validation
2498
- */
2499
- get isValid(): boolean;
2500
- /**
2501
- * Determine a shopper's ability to return a form of payment from the Google Pay API.
2502
- */
2503
- isAvailable(): Promise<void>;
2385
+ declare global {
2386
+ interface Window {
2387
+ Klarna: any;
2388
+ klarnaAsyncCallback: any;
2389
+ }
2390
+ }
2391
+ /** sdkData present in Klarna `action`objects. */
2392
+ type KlarnaSdkData = {
2504
2393
  /**
2505
- * Determine a shopper's ability to return a form of payment from the Google Pay API.
2506
- */
2507
- isReadyToPay: () => Promise<google.payments.api.IsReadyToPayResponse>;
2394
+ * Klarna client_token
2395
+ * @see https://developers.klarna.com/documentation/klarna-payments/single-call-descriptions/create-session/
2396
+ * */
2397
+ client_token: string;
2508
2398
  /**
2509
- * Use this method to prefetch a PaymentDataRequest configuration to improve loadPaymentData execution time on later user interaction. No value is returned.
2510
- */
2511
- prefetch: () => void;
2512
- get browserInfo(): BrowserInfo;
2513
- get icon(): string;
2514
- render(): h.JSX.Element;
2399
+ * `payment_method_category` specifies which of Klarna’s customer offerings (e.g. Pay now, Pay later or Slice it)
2400
+ * that is being shown in the widget
2401
+ * @see https://developers.klarna.com/documentation/klarna-payments/single-call-descriptions/create-session/
2402
+ * */
2403
+ payment_method_category: string;
2404
+ };
2405
+ interface KlarnaPaymentsShared {
2406
+ sdkData?: KlarnaSdkData;
2407
+ paymentData?: string;
2408
+ paymentMethodType?: string;
2409
+ }
2410
+ interface KlarnaWidgetProps extends KlarnaPaymentsShared {
2411
+ /** @internal */
2412
+ payButton: (options: any) => any;
2413
+ /** @internal */
2414
+ onLoaded: () => void;
2415
+ onComplete: (detailsData: any) => void;
2416
+ onError: (error: any) => void;
2417
+ }
2418
+ type KlarnConfiguration = UIElementProps & KlarnaPaymentsShared & {
2419
+ useKlarnaWidget?: boolean;
2420
+ };
2421
+ interface KlarnaWidgetAuthorizeResponse {
2422
+ approved: boolean;
2423
+ show_form: boolean;
2424
+ authorization_token: string;
2425
+ error?: any;
2515
2426
  }
2516
2427
 
2517
- interface EcontextVoucherResultProps {
2428
+ interface MultibancoVoucherResultProps {
2429
+ entity?: string;
2518
2430
  reference?: string;
2519
- totalAmount?: PaymentAmount;
2520
2431
  expiresAt?: string;
2432
+ merchantReference?: string;
2433
+ totalAmount?: PaymentAmount;
2521
2434
  paymentMethodType?: string;
2522
- maskedTelephoneNumber?: string;
2523
- instructionsUrl?: string;
2435
+ downloadUrl?: string;
2524
2436
  ref?: any;
2525
- collectionInstitutionNumber?: string;
2526
- }
2527
- interface EcontextInputSchema {
2528
- firstName?: string;
2529
- lastName?: string;
2530
- telephoneNumber?: string;
2531
- shopperEmail?: string;
2532
2437
  }
2533
- interface EcontextConfiguration extends UIElementProps {
2438
+
2439
+ interface OxxoVoucherResultProps {
2440
+ alternativeReference?: string;
2534
2441
  reference?: string;
2535
- personalDetailsRequired?: boolean;
2536
- data?: PersonalDetailsSchema;
2537
- showFormInstruction?: boolean;
2442
+ expiresAt?: string;
2443
+ merchantReference?: string;
2444
+ totalAmount?: PaymentAmount;
2445
+ paymentMethodType?: string;
2446
+ downloadUrl?: string;
2447
+ ref?: any;
2538
2448
  }
2449
+ type OxxoElementData = {
2450
+ paymentMethod: {
2451
+ type: 'oxxo' | string;
2452
+ };
2453
+ };
2539
2454
 
2540
- declare class EcontextElement extends UIElement<EcontextConfiguration> {
2455
+ declare class PaypalElement extends UIElement<PayPalConfiguration> {
2541
2456
  static type: TxVariants;
2542
- static txVariants: TxVariants[];
2543
- protected static defaultProps: {
2544
- personalDetailsRequired: boolean;
2545
- showFormInstruction: boolean;
2457
+ static subtype: string;
2458
+ paymentData: string;
2459
+ private resolve;
2460
+ private reject;
2461
+ protected static defaultProps: Partial<PayPalConfiguration>;
2462
+ constructor(checkout: ICore, props?: PayPalConfiguration);
2463
+ formatProps(props: PayPalConfiguration): PayPalConfiguration;
2464
+ protected submitAnalytics(analyticsObj: SendAnalyticsObject): void;
2465
+ submit: () => void;
2466
+ /**
2467
+ * Updates the paymentData value. It must be used in the PayPal Express flow, when patching the amount
2468
+ * @param paymentData - Payment data value
2469
+ */
2470
+ updatePaymentData(paymentData: string): void;
2471
+ /**
2472
+ * Formats the component data output
2473
+ */
2474
+ protected formatData(): {
2475
+ paymentMethod: {
2476
+ type: TxVariants;
2477
+ userAction: "pay" | "continue";
2478
+ subtype: string;
2479
+ };
2546
2480
  };
2481
+ handleAction: (action: PaymentAction) => any;
2482
+ updateWithAction: (action: PaymentAction) => any;
2483
+ /**
2484
+ * Dropin Validation
2485
+ *
2486
+ * @remarks
2487
+ * Paypal does not require any specific Dropin validation
2488
+ */
2547
2489
  get isValid(): boolean;
2490
+ private handleOnApprove;
2491
+ handleResolve(token: string): void;
2492
+ handleReject(errorMessage: string): void;
2493
+ private handleSubmit;
2548
2494
  /**
2549
- * Formats the component data output
2495
+ * If the merchant provides the 'onShippingAddressChange' callback, then this method is used as a wrapper to it, in order
2496
+ * to expose to the merchant the 'component' instance. The merchant needs the 'component' in order to manipulate the
2497
+ * paymentData
2498
+ *
2499
+ * @param data - PayPal data
2500
+ * @param actions - PayPal actions.
2550
2501
  */
2551
- formatData(): any;
2502
+ private handleOnShippingAddressChange;
2503
+ /**
2504
+ * If the merchant provides the 'onShippingOptionsChange' callback, then this method is used as a wrapper to it, in order
2505
+ * to expose to the merchant the 'component' instance. The merchant needs the 'component' in order to manipulate the
2506
+ * paymentData
2507
+ *
2508
+ * @param data - PayPal data
2509
+ * @param actions - PayPal actions.
2510
+ */
2511
+ private handleOnShippingOptionsChange;
2552
2512
  render(): h.JSX.Element;
2553
2513
  }
2554
2514
 
2555
- declare class FacilyPay3x extends OpenInvoiceContainer {
2556
- static type: TxVariants;
2557
- formatProps(props: any): any;
2558
- }
2559
-
2560
- declare class FacilyPay4x extends OpenInvoiceContainer {
2561
- static type: TxVariants;
2562
- formatProps(props: any): any;
2563
- }
2564
-
2565
- declare class FacilyPay6x extends OpenInvoiceContainer {
2566
- static type: TxVariants;
2567
- formatProps(props: any): any;
2568
- }
2569
-
2570
- declare class FacilyPay10x extends OpenInvoiceContainer {
2571
- static type: TxVariants;
2572
- formatProps(props: any): any;
2573
- }
2574
-
2575
- declare class FacilyPay12x extends OpenInvoiceContainer {
2576
- static type: TxVariants;
2577
- formatProps(props: any): any;
2578
- }
2579
-
2580
- declare class IdealElement extends IssuerListContainer {
2581
- static type: TxVariants;
2582
- }
2583
-
2584
2515
  declare global {
2585
2516
  interface Window {
2586
2517
  paypal: object;
@@ -2743,79 +2674,738 @@ interface PayPalConfiguration extends UIElementProps {
2743
2674
  */
2744
2675
  countryCode?: string;
2745
2676
  }
2746
- /**
2747
- * The intent for the transaction. This determines whether the funds are captured immediately, or later.
2748
- * @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#intent}
2749
- */
2750
- type Intent = 'sale' | 'capture' | 'authorize' | 'order' | 'tokenize';
2751
- type FundingSource = 'paypal' | 'credit' | 'paylater' | 'venmo';
2677
+ /**
2678
+ * The intent for the transaction. This determines whether the funds are captured immediately, or later.
2679
+ * @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#intent}
2680
+ */
2681
+ type Intent = 'sale' | 'capture' | 'authorize' | 'order' | 'tokenize';
2682
+ type FundingSource = 'paypal' | 'credit' | 'paylater' | 'venmo';
2683
+
2684
+ interface QRLoaderConfiguration extends UIElementProps {
2685
+ /**
2686
+ * Number of miliseconds that the component will wait in between status calls
2687
+ */
2688
+ delay?: number;
2689
+ /**
2690
+ * Number of minutes that the component should keep on loading
2691
+ */
2692
+ countdownTime?: number;
2693
+ type?: string;
2694
+ brandLogo?: string;
2695
+ buttonLabel?: string;
2696
+ qrCodeImage?: string;
2697
+ paymentData?: string;
2698
+ introduction?: string;
2699
+ redirectIntroduction?: string;
2700
+ timeToPay?: string;
2701
+ instructions?: string | (() => h.JSX.Element);
2702
+ copyBtn?: boolean;
2703
+ }
2704
+
2705
+ interface PixConfiguration extends QRLoaderConfiguration {
2706
+ personalDetailsRequired?: boolean;
2707
+ }
2708
+ interface PixElementData {
2709
+ paymentMethod: {
2710
+ type: 'pix';
2711
+ };
2712
+ shopperName?: {
2713
+ firstName: string;
2714
+ lastName: string;
2715
+ };
2716
+ socialSecurityNumber?: string;
2717
+ }
2718
+
2719
+ interface RedirectConfiguration extends UIElementProps {
2720
+ type?: string;
2721
+ url?: string;
2722
+ data?: {
2723
+ [key: string]: any;
2724
+ };
2725
+ method?: 'GET' | 'POST';
2726
+ beforeRedirect?: (resolve: any, reject: any, url: any) => Promise<void>;
2727
+ }
2728
+
2729
+ interface SepaElementData {
2730
+ paymentMethod: {
2731
+ type: string;
2732
+ iban: string;
2733
+ ownerName: string;
2734
+ };
2735
+ }
2736
+ interface SepaConfiguration extends UIElementProps {
2737
+ }
2738
+
2739
+ declare enum Analytics3DS2Errors {
2740
+ ACTION_IS_MISSING_PAYMENT_DATA = "700",// Missing 'paymentData' property from threeDS2 action
2741
+ ACTION_IS_MISSING_TOKEN = "701",// Missing 'token' property from threeDS2 action
2742
+ TOKEN_IS_MISSING_THREEDSMETHODURL = "702",// Decoded token is missing a valid threeDSMethodURL property
2743
+ /**
2744
+ * Decoded token is missing one or more of the following properties:
2745
+ * fingerprint: (threeDSMethodNotificationURL | postMessageDomain | threeDSServerTransID)
2746
+ * challenge: (acsTransID | messageVersion | threeDSServerTransID)
2747
+ */
2748
+ TOKEN_IS_MISSING_OTHER_PROPS = "703",
2749
+ TOKEN_DECODE_OR_PARSING_FAILED = "704",// token decoding or parsing has failed. ('not base64', 'malformed URI sequence' or 'Could not JSON parse token')
2750
+ THREEDS2_TIMEOUT = "705",// 3DS2 process has timed out
2751
+ TOKEN_IS_MISSING_ACSURL = "800",// Decoded token is missing a valid acsURL property
2752
+ NO_TRANSSTATUS = "801",// Challenge has resulted in an error (no transStatus could be retrieved by the backend)
2753
+ NO_DETAILS_FOR_FRICTIONLESS_OR_REFUSED = "802",// callSubmit3DS2Fingerprint has received a response indicating either a "frictionless" flow, or a "refused" response, but without a details object
2754
+ NO_COMPONENT_FOR_ACTION = "803",// callSubmit3DS2Fingerprint cannot find a component to handle the action response
2755
+ NO_ACTION_FOR_CHALLENGE = "804",// callSubmit3DS2Fingerprint has received a response indicating a "challenge" but without an action object
2756
+ CHALLENGE_RESOLVED_WITHOUT_RESULT_PROP = "805"
2757
+ }
2758
+
2759
+ interface ThreeDS2Configuration extends UIElementProps {
2760
+ dataKey?: string;
2761
+ environment?: string;
2762
+ isMDFlow?: boolean;
2763
+ loadingContext?: string;
2764
+ modules?: {
2765
+ analytics: AnalyticsModule;
2766
+ };
2767
+ notificationURL?: string;
2768
+ onActionHandled: (rtnObj: ActionHandledReturnObject) => void;
2769
+ onError?: (error: AdyenCheckoutError, element?: UIElement) => void;
2770
+ paymentData?: string;
2771
+ token?: string;
2772
+ type?: string;
2773
+ challengeWindowSize?: '01' | '02' | '03' | '04' | '05';
2774
+ }
2775
+ interface ThreeDS2DeviceFingerprintConfiguration extends ThreeDS2Configuration {
2776
+ clientKey?: string;
2777
+ elementRef?: UIElement;
2778
+ showSpinner: boolean;
2779
+ }
2780
+ interface ThreeDS2ChallengeConfiguration extends ThreeDS2Configuration {
2781
+ i18n?: Language;
2782
+ size?: string;
2783
+ }
2784
+ /**
2785
+ * See
2786
+ * https://docs.adyen.com/checkout/3d-secure/api-reference#threeds2result
2787
+ * Indicates whether a transaction was authenticated, or whether additional verification is required.
2788
+ */
2789
+ type ResultValue = 'Y' | 'N' | 'U' | 'A' | 'C' | 'R';
2790
+ interface CReqData {
2791
+ acsTransID: string;
2792
+ messageVersion: string;
2793
+ threeDSServerTransID: string;
2794
+ messageType: string;
2795
+ challengeWindowSize: string;
2796
+ }
2797
+ interface ChallengeData {
2798
+ acsURL: string;
2799
+ cReqData: CReqData;
2800
+ iframeSizeArr: string[];
2801
+ postMessageDomain: string;
2802
+ }
2803
+ interface ResultObject {
2804
+ threeDSCompInd?: ResultValue;
2805
+ transStatus?: ResultValue;
2806
+ errorCode?: string;
2807
+ errorDescription?: string;
2808
+ }
2809
+ interface ThreeDS2FlowObject {
2810
+ result: ResultObject;
2811
+ type: 'ChallengeShopper' | 'IdentifyShopper' | 'challengeResult' | 'fingerPrintResult';
2812
+ errorCode?: string;
2813
+ threeDSServerTransID?: string;
2814
+ }
2815
+ interface PostMsgParseErrorObject {
2816
+ type?: string;
2817
+ comment?: string;
2818
+ extraInfo?: string;
2819
+ eventDataRaw?: string;
2820
+ }
2821
+ interface ThreeDS2Token {
2822
+ acsTransID?: string;
2823
+ acsURL?: string;
2824
+ messageVersion?: string;
2825
+ threeDSNotificationURL?: string;
2826
+ threeDSServerTransID?: string;
2827
+ threeDSMethodNotificationURL?: string;
2828
+ threeDSMethodUrl?: string;
2829
+ }
2830
+ interface FingerPrintData {
2831
+ threeDSServerTransID: string;
2832
+ threeDSMethodURL: string;
2833
+ threeDSMethodNotificationURL: string;
2834
+ postMessageDomain: string;
2835
+ }
2836
+ type ThreeDS2FingerprintResponse = {
2837
+ type: 'action' | 'completed';
2838
+ action?: CheckoutRedirectAction | CheckoutThreeDS2Action;
2839
+ details?: Record<string, string>;
2840
+ };
2841
+ type CheckoutRedirectAction = {
2842
+ type: 'redirect';
2843
+ data: Record<string, string>;
2844
+ method: string;
2845
+ paymentData: string;
2846
+ };
2847
+ type CheckoutThreeDS2Action = {
2848
+ type: 'threeDS2';
2849
+ token: string;
2850
+ subtype: string;
2851
+ authorisationToken: string;
2852
+ };
2853
+ interface FingerprintResolveData {
2854
+ data: {
2855
+ [key: string]: string;
2856
+ paymentData: string;
2857
+ };
2858
+ }
2859
+ interface ChallengeResolveData {
2860
+ data: {
2861
+ details: {
2862
+ [key: string]: string;
2863
+ };
2864
+ };
2865
+ }
2866
+ interface ErrorCodeObject {
2867
+ errorCode: string | Analytics3DS2Errors;
2868
+ message: string;
2869
+ }
2870
+
2871
+ type UpiPaymentData = {
2872
+ paymentMethod: {
2873
+ type: 'upi_qr' | 'upi_collect';
2874
+ virtualPaymentAddress?: string;
2875
+ };
2876
+ };
2877
+ type UpiMode = 'vpa' | 'qrCode';
2878
+ interface UPIConfiguration extends UIElementProps {
2879
+ /**
2880
+ * Define which view is displayed initially when the Component renders
2881
+ * @defaultValue vpa
2882
+ */
2883
+ defaultMode?: UpiMode;
2884
+ paymentData?: string;
2885
+ qrCodeData?: string;
2886
+ brandLogo?: string;
2887
+ }
2888
+
2889
+ interface StatusObjectProps {
2890
+ payload: string;
2891
+ resultCode: string;
2892
+ type: string;
2893
+ }
2894
+ interface StatusObject {
2895
+ type: string;
2896
+ props: StatusObjectProps;
2897
+ }
2898
+ interface AwaitComponentProps {
2899
+ type: string;
2900
+ delay?: number;
2901
+ countdownTime: number;
2902
+ throttleTime: number;
2903
+ showCountdownTimer: boolean;
2904
+ throttleInterval: number;
2905
+ paymentData: string;
2906
+ url?: string;
2907
+ classNameModifiers?: string[];
2908
+ clientKey: string;
2909
+ onError: (error: any) => void;
2910
+ onComplete: (status: any, component: any) => void;
2911
+ brandLogo: string;
2912
+ messageText: string;
2913
+ awaitText: string;
2914
+ ref: any;
2915
+ onActionHandled: (rtnObj: ActionHandledReturnObject) => void;
2916
+ }
2917
+ interface AwaitConfiguration extends UIElementProps {
2918
+ paymentData?: string;
2919
+ paymentMethoType?: string;
2920
+ type?: string;
2921
+ url?: string;
2922
+ }
2923
+
2924
+ interface VoucherDetail {
2925
+ label: string;
2926
+ value: string;
2927
+ }
2928
+ interface VoucherProps {
2929
+ /** Payment method used to generate the voucher. */
2930
+ paymentMethodType: string;
2931
+ /** Payment method image to be displayed on the voucher. */
2932
+ imageUrl?: string;
2933
+ /** If applicable, it will render an issuer image next to the payment method image. */
2934
+ issuerImageUrl?: string;
2935
+ /** Voucher instructions URL. */
2936
+ instructionsUrl?: string;
2937
+ /** Download URL for the voucher. It will display a button allowing the shopper to download it. */
2938
+ downloadUrl?: string;
2939
+ /** Text that will be displayed on the above Download button. */
2940
+ downloadButtonText?: string;
2941
+ /** Introduction text on the voucher. */
2942
+ introduction?: string;
2943
+ /** Payment reference. */
2944
+ reference?: string;
2945
+ /** URL to a barcode image representing the payment reference. */
2946
+ barcode?: string;
2947
+ /** Total amount displayed on the voucher. */
2948
+ amount?: string;
2949
+ /** Any additional surcharge to the amount. */
2950
+ surcharge?: any;
2951
+ /** List of details that will be rendered on the voucher. */
2952
+ voucherDetails?: VoucherDetail[];
2953
+ /** Additional CSS classes. */
2954
+ className?: string;
2955
+ /** Show/Hide a button to copy the payment reference. It will only show if a reference is available. */
2956
+ copyBtn?: boolean;
2957
+ }
2958
+ interface VoucherConfiguration extends UIElementProps {
2959
+ reference?: string;
2960
+ url?: string;
2961
+ paymentMethodType?: string;
2962
+ }
2963
+
2964
+ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
2965
+ static type: TxVariants;
2966
+ private readonly cashAppService;
2967
+ protected static defaultProps: {
2968
+ onClick: (actions: any) => void;
2969
+ enableStoreDetails: boolean;
2970
+ storePaymentMethod: boolean;
2971
+ };
2972
+ constructor(checkout: ICore, props?: CashAppPayConfiguration);
2973
+ formatProps(props: CashAppPayConfiguration): {
2974
+ enableStoreDetails: boolean;
2975
+ storePaymentMethod?: boolean;
2976
+ onClick?(actions: {
2977
+ resolve: () => void;
2978
+ reject: () => void;
2979
+ }): void;
2980
+ referenceId?: string;
2981
+ redirectURL?: string;
2982
+ button?: {
2983
+ shape?: "semiround" | "round";
2984
+ size?: "small" | "medium";
2985
+ theme?: "dark" | "light";
2986
+ width?: "static" | "full";
2987
+ };
2988
+ configuration?: {
2989
+ clientId: string;
2990
+ scopeId: string;
2991
+ };
2992
+ storedPaymentMethodId?: string;
2993
+ cashtag?: string;
2994
+ order?: Order;
2995
+ modules?: {
2996
+ srPanel?: SRPanel;
2997
+ analytics?: AnalyticsModule;
2998
+ resources?: Resources;
2999
+ risk?: RiskElement;
3000
+ };
3001
+ isDropin?: boolean;
3002
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
3003
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
3004
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
3005
+ beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
3006
+ url: string;
3007
+ method: string;
3008
+ data?: any;
3009
+ }) => void;
3010
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
3011
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
3012
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
3013
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
3014
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
3015
+ onOrderUpdated?: (data: {
3016
+ order: Order;
3017
+ }) => void;
3018
+ onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
3019
+ resolve: (response: PaymentMethodsResponse) => void;
3020
+ reject: () => void;
3021
+ }) => void;
3022
+ environment?: string;
3023
+ session?: Session;
3024
+ onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
3025
+ isInstantPayment?: boolean;
3026
+ isStoredPaymentMethod?: boolean;
3027
+ oneClick?: boolean;
3028
+ statusType?: "custom" | "loading" | "redirect";
3029
+ type?: string;
3030
+ name?: string;
3031
+ icon?: string;
3032
+ amount?: PaymentAmount;
3033
+ secondaryAmount?: PaymentAmountExtended;
3034
+ showPayButton?: boolean;
3035
+ payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
3036
+ loadingContext?: string;
3037
+ createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
3038
+ clientKey?: string;
3039
+ elementRef?: any;
3040
+ i18n?: Language;
3041
+ label?: string;
3042
+ paymentMethodType?: string;
3043
+ };
3044
+ formatData(): CashAppPayElementData;
3045
+ get displayName(): string;
3046
+ get additionalInfo(): "" | "Cash App Pay";
3047
+ submit: () => void;
3048
+ get isValid(): boolean;
3049
+ private handleOnChangeStoreDetails;
3050
+ private handleAuthorize;
3051
+ render(): h.JSX.Element;
3052
+ }
3053
+
3054
+ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
3055
+ static type: TxVariants;
3056
+ private readonly clickToPayService;
3057
+ private readonly ctpConfiguration;
3058
+ constructor(checkout: ICore, props?: ClickToPayConfiguration);
3059
+ get isValid(): boolean;
3060
+ get browserInfo(): BrowserInfo;
3061
+ formatData(): ClickToPayPaymentData;
3062
+ protected formatProps(props: ClickToPayConfiguration): {
3063
+ disableOtpAutoFocus: boolean;
3064
+ shopperEmail: string;
3065
+ telephoneNumber: string;
3066
+ locale: string;
3067
+ order?: Order;
3068
+ modules?: {
3069
+ srPanel?: SRPanel;
3070
+ analytics?: AnalyticsModule;
3071
+ resources?: Resources;
3072
+ risk?: RiskElement;
3073
+ };
3074
+ isDropin?: boolean;
3075
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
3076
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
3077
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
3078
+ beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
3079
+ url: string;
3080
+ method: string;
3081
+ data?: any;
3082
+ }) => void;
3083
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
3084
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
3085
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
3086
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
3087
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
3088
+ onOrderUpdated?: (data: {
3089
+ order: Order;
3090
+ }) => void;
3091
+ onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
3092
+ resolve: (response: PaymentMethodsResponse) => void;
3093
+ reject: () => void;
3094
+ }) => void;
3095
+ environment?: string;
3096
+ session?: Session;
3097
+ onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
3098
+ isInstantPayment?: boolean;
3099
+ isStoredPaymentMethod?: boolean;
3100
+ oneClick?: boolean;
3101
+ storedPaymentMethodId?: string;
3102
+ statusType?: "custom" | "loading" | "redirect";
3103
+ type?: string;
3104
+ name?: string;
3105
+ icon?: string;
3106
+ amount?: PaymentAmount;
3107
+ secondaryAmount?: PaymentAmountExtended;
3108
+ showPayButton?: boolean;
3109
+ payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
3110
+ loadingContext?: string;
3111
+ createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
3112
+ clientKey?: string;
3113
+ elementRef?: any;
3114
+ i18n?: Language;
3115
+ label?: string;
3116
+ paymentMethodType?: string;
3117
+ merchantDisplayName?: string;
3118
+ onReady?(): void;
3119
+ onTimeout?(error: TimeoutError): void;
3120
+ configuration?: {
3121
+ mcDpaId?: string;
3122
+ mcSrcClientId?: string;
3123
+ visaSrcInitiatorId?: string;
3124
+ visaSrciDpaId?: string;
3125
+ };
3126
+ };
3127
+ /**
3128
+ * Method used to let the merchant know if the shopper have a valid CtP accoubt
3129
+ *
3130
+ * Resolves Promise if the Shopper has cookies OR has valid CtP account
3131
+ * Rejects Promise if account isn't found or if Login screen is triggered
3132
+ */
3133
+ isAvailable(): Promise<void>;
3134
+ private handleClickToPaySubmit;
3135
+ render(): h.JSX.Element;
3136
+ }
3137
+
3138
+ declare class BancontactElement extends CardElement {
3139
+ static type: TxVariants;
3140
+ constructor(checkout: ICore, props?: CardConfiguration);
3141
+ protected static defaultProps: {
3142
+ brands: string[];
3143
+ onBinLookup: () => void;
3144
+ _disableClickToPay: boolean;
3145
+ };
3146
+ formatData(): CardElementData;
3147
+ /**
3148
+ * 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
3149
+ * at creation time (no automatic removing of the CVC securedField).
3150
+ * At the same time we can't treat it as a regular 'card' component - because it needs to hide the CVC field at at startup,
3151
+ * as well as show the BCMC logo in the number field and ignore any of the internal, regEx driven, brand detection.
3152
+ */
3153
+ formatProps(props: CardConfiguration): {
3154
+ /**
3155
+ * Force type (only for the Dropin is type automatically set to 'bcmc')
3156
+ * - this will bypass the regEx brand detection that SF normally tries to carry out when the first few digits are entered in the PAN
3157
+ */
3158
+ type: TxVariants;
3159
+ brand: TxVariants;
3160
+ 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
+ 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";
3204
+ billingAddressRequiredFields?: string[];
3205
+ brands?: string[];
3206
+ challengeWindowSize?: "02" | "01" | "03" | "04" | "05";
3207
+ data?: {
3208
+ holderName?: string;
3209
+ billingAddress?: Partial<AddressData>;
3210
+ };
3211
+ _disableClickToPay?: boolean;
3212
+ disableIOSArrowKeys?: boolean;
3213
+ disclaimerMessage?: DisclaimerMsgObject;
3214
+ doBinLookup?: boolean;
3215
+ expiryMonth?: string;
3216
+ exposeExpiryDate?: boolean;
3217
+ forceCompat?: boolean;
3218
+ fundingSource?: "debit" | "credit";
3219
+ hasHolderName?: boolean;
3220
+ hideCVC?: boolean;
3221
+ id?: string;
3222
+ keypadFix?: boolean;
3223
+ lastFour?: string;
3224
+ legacyInputMode?: boolean;
3225
+ maskSecurityCode?: boolean;
3226
+ minimumExpiryDate?: string[];
3227
+ name?: string;
3228
+ onBinLookup?: (event: CbObjOnBinLookup) => void;
3229
+ onBinValue?: (event: CbObjOnBinValue) => void;
3230
+ onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
3231
+ onBrand?: (event: CbObjOnBrand) => void;
3232
+ onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
3233
+ onFieldValid?: (event: CbObjOnFieldValid) => void;
3234
+ onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
3235
+ onLoad?: (event: CbObjOnLoad) => void;
3236
+ placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
3237
+ positionHolderNameOnTop?: boolean;
3238
+ showBrandIcon?: boolean;
3239
+ showContextualElement?: boolean;
3240
+ showInstallmentAmounts?: boolean;
3241
+ styles?: StylesObject;
3242
+ supportedShopperInteractions?: string[];
3243
+ order?: Order;
3244
+ modules?: {
3245
+ srPanel?: SRPanel;
3246
+ analytics?: AnalyticsModule;
3247
+ resources?: Resources;
3248
+ risk?: RiskElement;
3249
+ };
3250
+ 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;
3254
+ beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
3255
+ url: string;
3256
+ method: string;
3257
+ data?: any;
3258
+ }) => void;
3259
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
3260
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
3261
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
3262
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
3263
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
3264
+ onOrderUpdated?: (data: {
3265
+ order: Order;
3266
+ }) => void;
3267
+ onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
3268
+ resolve: (response: PaymentMethodsResponse) => void;
3269
+ reject: () => void;
3270
+ }) => void;
3271
+ environment?: string;
3272
+ session?: Session;
3273
+ onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
3274
+ isInstantPayment?: boolean;
3275
+ isStoredPaymentMethod?: boolean;
3276
+ oneClick?: boolean;
3277
+ statusType?: "custom" | "loading" | "redirect";
3278
+ amount?: PaymentAmount;
3279
+ secondaryAmount?: PaymentAmountExtended;
3280
+ showPayButton?: boolean;
3281
+ payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
3282
+ loadingContext?: string;
3283
+ createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
3284
+ clientKey?: string;
3285
+ elementRef?: any;
3286
+ i18n?: Language;
3287
+ label?: string;
3288
+ paymentMethodType?: string;
3289
+ };
3290
+ onBrand: (event: any) => void;
3291
+ }
3292
+
3293
+ declare class RedirectElement extends UIElement<RedirectConfiguration> {
3294
+ static type: TxVariants;
3295
+ static defaultProps: {
3296
+ type: TxVariants;
3297
+ };
3298
+ formatData(): {
3299
+ paymentMethod: {
3300
+ type: string;
3301
+ };
3302
+ browserInfo: BrowserInfo;
3303
+ };
3304
+ get isValid(): boolean;
3305
+ get browserInfo(): BrowserInfo;
3306
+ render(): h.JSX.Element;
3307
+ }
3308
+
3309
+ declare class GiropayElement extends RedirectElement {
3310
+ static type: TxVariants;
3311
+ get displayName(): any;
3312
+ render(): h.JSX.Element;
3313
+ }
2752
3314
 
2753
- declare class PaypalElement extends UIElement<PayPalConfiguration> {
3315
+ declare class GooglePay extends UIElement<GooglePayConfiguration> {
2754
3316
  static type: TxVariants;
2755
- static subtype: string;
2756
- paymentData: string;
2757
- private resolve;
2758
- private reject;
2759
- protected static defaultProps: Partial<PayPalConfiguration>;
2760
- constructor(checkout: ICore, props?: PayPalConfiguration);
2761
- formatProps(props: PayPalConfiguration): PayPalConfiguration;
2762
- protected submitAnalytics(analyticsObj: SendAnalyticsObject): void;
2763
- submit: () => void;
2764
- /**
2765
- * Updates the paymentData value. It must be used in the PayPal Express flow, when patching the amount
2766
- * @param paymentData - Payment data value
2767
- */
2768
- updatePaymentData(paymentData: string): void;
3317
+ static txVariants: TxVariants[];
3318
+ static defaultProps: GooglePayConfiguration;
3319
+ protected readonly googlePay: any;
3320
+ constructor(checkout: ICore, props?: GooglePayConfiguration);
3321
+ protected formatProps(props: any): GooglePayConfiguration;
2769
3322
  /**
2770
3323
  * Formats the component data output
2771
3324
  */
2772
3325
  protected formatData(): {
3326
+ deliveryAddress: any;
3327
+ billingAddress: any;
2773
3328
  paymentMethod: {
2774
- type: TxVariants;
2775
- userAction: "continue" | "pay";
2776
3329
  subtype: string;
3330
+ type: string;
3331
+ googlePayCardNetwork: any;
3332
+ googlePayToken: any;
2777
3333
  };
3334
+ browserInfo: BrowserInfo;
3335
+ origin: string;
2778
3336
  };
2779
- handleAction: (action: PaymentAction) => any;
2780
- updateWithAction: (action: PaymentAction) => any;
3337
+ protected submitAnalytics(analyticsObj: SendAnalyticsObject): void;
3338
+ submit: () => void;
2781
3339
  /**
2782
- * Dropin Validation
3340
+ * Method called when the payment is authorized in the payment sheet
2783
3341
  *
2784
- * @remarks
2785
- * Paypal does not require any specific Dropin validation
3342
+ * @see https://developers.google.com/pay/api/web/reference/client#onPaymentAuthorized
3343
+ **/
3344
+ private onPaymentAuthorized;
3345
+ /**
3346
+ * Call the 'onAuthorized' callback if available.
3347
+ * Must be resolved/reject for the payment flow to continue
3348
+ */
3349
+ private handleAuthorization;
3350
+ /**
3351
+ * Validation
2786
3352
  */
2787
3353
  get isValid(): boolean;
2788
- private handleOnApprove;
2789
- handleResolve(token: string): void;
2790
- handleReject(errorMessage: string): void;
2791
- private handleSubmit;
2792
3354
  /**
2793
- * If the merchant provides the 'onShippingAddressChange' callback, then this method is used as a wrapper to it, in order
2794
- * to expose to the merchant the 'component' instance. The merchant needs the 'component' in order to manipulate the
2795
- * paymentData
2796
- *
2797
- * @param data - PayPal data
2798
- * @param actions - PayPal actions.
3355
+ * Determine a shopper's ability to return a form of payment from the Google Pay API.
2799
3356
  */
2800
- private handleOnShippingAddressChange;
3357
+ isAvailable(): Promise<void>;
2801
3358
  /**
2802
- * If the merchant provides the 'onShippingOptionsChange' callback, then this method is used as a wrapper to it, in order
2803
- * to expose to the merchant the 'component' instance. The merchant needs the 'component' in order to manipulate the
2804
- * paymentData
2805
- *
2806
- * @param data - PayPal data
2807
- * @param actions - PayPal actions.
3359
+ * Determine a shopper's ability to return a form of payment from the Google Pay API.
2808
3360
  */
2809
- private handleOnShippingOptionsChange;
3361
+ isReadyToPay: () => Promise<google.payments.api.IsReadyToPayResponse>;
3362
+ /**
3363
+ * Use this method to prefetch a PaymentDataRequest configuration to improve loadPaymentData execution time on later user interaction. No value is returned.
3364
+ */
3365
+ prefetch: () => void;
3366
+ get browserInfo(): BrowserInfo;
3367
+ get icon(): string;
2810
3368
  render(): h.JSX.Element;
2811
3369
  }
2812
3370
 
2813
- type CustomCardConfiguration = Omit<CardConfiguration, 'clickToPayConfiguration' | '_disableClickToPay' | 'fundingSource' | 'positionHolderNameOnTop' | 'showBrandIcon' | 'showFormInstruction' | 'enableStoreDetails' | 'hideCVC' | 'hasCVC' | 'hasHolderName' | 'holderNameRequired' | 'billingAddressRequired' | 'billingAddressRequiredFields' | 'billingAddressAllowedCountries' | 'installmentOptions' | 'showInstallmentAmounts' | 'configuration'> & {
2814
- onValidationError?: (validationErrors: ValidationError[]) => void;
2815
- };
2816
- type ValidationError = SFError & {
2817
- fieldType: string;
2818
- };
3371
+ declare class EcontextElement extends UIElement<EcontextConfiguration> {
3372
+ static type: TxVariants;
3373
+ static txVariants: TxVariants[];
3374
+ protected static defaultProps: {
3375
+ personalDetailsRequired: boolean;
3376
+ };
3377
+ get isValid(): boolean;
3378
+ /**
3379
+ * Formats the component data output
3380
+ */
3381
+ formatData(): any;
3382
+ render(): h.JSX.Element;
3383
+ }
3384
+
3385
+ declare class FacilyPay3x extends OpenInvoiceContainer {
3386
+ static type: TxVariants;
3387
+ formatProps(props: any): any;
3388
+ }
3389
+
3390
+ declare class FacilyPay4x extends OpenInvoiceContainer {
3391
+ static type: TxVariants;
3392
+ formatProps(props: any): any;
3393
+ }
3394
+
3395
+ declare class FacilyPay6x extends OpenInvoiceContainer {
3396
+ static type: TxVariants;
3397
+ formatProps(props: any): any;
3398
+ }
3399
+
3400
+ declare class FacilyPay10x extends OpenInvoiceContainer {
3401
+ static type: TxVariants;
3402
+ formatProps(props: any): any;
3403
+ }
3404
+
3405
+ declare class FacilyPay12x extends OpenInvoiceContainer {
3406
+ static type: TxVariants;
3407
+ formatProps(props: any): any;
3408
+ }
2819
3409
 
2820
3410
  declare class CustomCard extends UIElement<CustomCardConfiguration> {
2821
3411
  static type: TxVariants;
@@ -2836,30 +3426,36 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
2836
3426
  countryCode?: string;
2837
3427
  i18n?: Language;
2838
3428
  loadingContext?: string;
3429
+ showContextualElement?: boolean;
3430
+ onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
3431
+ onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
3432
+ order?: Order;
3433
+ id?: string;
3434
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
3435
+ amount?: PaymentAmount;
3436
+ secondaryAmount?: PaymentAmountExtended;
3437
+ environment?: string;
3438
+ modules?: {
3439
+ srPanel?: SRPanel;
3440
+ analytics?: AnalyticsModule;
3441
+ resources?: Resources;
3442
+ risk?: RiskElement;
3443
+ };
3444
+ session?: Session;
3445
+ clientKey?: string;
3446
+ showPayButton?: boolean;
3447
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
3448
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
2839
3449
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
2840
3450
  url: string;
2841
3451
  method: string;
2842
3452
  data?: any;
2843
3453
  }) => void;
2844
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
2845
- resolve: (data: any) => void;
2846
- reject: () => void;
2847
- }) => void;
2848
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
2849
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
2850
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
2851
- }) => void;
2852
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
2853
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
2854
- reject: () => void;
2855
- }) => void;
2856
- onPaymentFailed?: (data?: SessionsResponse | {
2857
- resultCode: ResultCode;
2858
- }, element?: UIElement<UIElementProps>) => void;
2859
- onPaymentCompleted?: (data: SessionsResponse | {
2860
- resultCode: ResultCode;
2861
- donationToken?: string;
2862
- }, element?: UIElement<UIElementProps>) => void;
3454
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
3455
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
3456
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
3457
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
3458
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
2863
3459
  onOrderUpdated?: (data: {
2864
3460
  order: Order;
2865
3461
  }) => void;
@@ -2867,63 +3463,44 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
2867
3463
  resolve: (response: PaymentMethodsResponse) => void;
2868
3464
  reject: () => void;
2869
3465
  }) => void;
2870
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
2871
- onActionHandled?: (data: ActionHandledReturnObject) => void;
2872
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
2873
- order?: Order;
2874
- onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
2875
- id?: string;
2876
- modules?: {
2877
- srPanel?: SRPanel;
2878
- analytics?: AnalyticsModule;
2879
- resources?: Resources;
2880
- risk?: RiskElement;
2881
- };
2882
- isDropin?: boolean;
2883
- amount?: PaymentAmount;
2884
- secondaryAmount?: PaymentAmountExtended;
2885
- environment?: string;
2886
- session?: Session;
2887
- clientKey?: string;
2888
- showPayButton?: boolean;
2889
3466
  elementRef?: any;
2890
3467
  createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
2891
- expiryMonth?: string;
2892
- showContextualElement?: boolean;
2893
- placeholders?: Partial<Record<"holderName" | "cardNumber" | "expiryDate" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
2894
- onLoad?: (event: CbObjOnLoad) => void;
2895
- onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
2896
- onFieldValid?: (event: CbObjOnFieldValid) => void;
2897
- onBrand?: (event: CbObjOnBrand) => void;
2898
- onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
2899
- onBinValue?: (event: CbObjOnBinValue) => void;
2900
- autoFocus?: boolean;
2901
- icon?: string;
2902
- onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
2903
- lastFour?: string;
2904
- disclaimerMessage?: DisclaimerMsgObject;
2905
3468
  brandsConfiguration?: CardBrandsConfiguration;
2906
- brands?: string[];
2907
- showStoreDetailsCheckbox?: boolean;
2908
- payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
2909
- keypadFix?: boolean;
2910
- styles?: StylesObject;
2911
- disableIOSArrowKeys?: boolean;
2912
3469
  isStoredPaymentMethod?: boolean;
2913
- supportedShopperInteractions?: string[];
3470
+ onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
3471
+ challengeWindowSize?: "02" | "01" | "03" | "04" | "05";
3472
+ isDropin?: boolean;
3473
+ isInstantPayment?: boolean;
3474
+ oneClick?: boolean;
3475
+ storedPaymentMethodId?: string;
3476
+ statusType?: "custom" | "loading" | "redirect";
3477
+ icon?: string;
3478
+ payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
3479
+ paymentMethodType?: string;
3480
+ autoFocus?: boolean;
3481
+ onLoad?: (event: CbObjOnLoad) => void;
3482
+ placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
3483
+ expiryMonth?: string;
2914
3484
  billingAddressMode?: "none" | "full" | "partial";
3485
+ brands?: string[];
3486
+ disableIOSArrowKeys?: boolean;
3487
+ disclaimerMessage?: DisclaimerMsgObject;
3488
+ doBinLookup?: boolean;
3489
+ exposeExpiryDate?: boolean;
3490
+ forceCompat?: boolean;
3491
+ keypadFix?: boolean;
3492
+ lastFour?: string;
2915
3493
  legacyInputMode?: boolean;
2916
- minimumExpiryDate?: string[];
2917
- storedPaymentMethodId?: string;
2918
3494
  maskSecurityCode?: boolean;
2919
- exposeExpiryDate?: boolean;
2920
- challengeWindowSize?: "01" | "02" | "03" | "04" | "05";
3495
+ minimumExpiryDate?: string[];
2921
3496
  onBinLookup?: (event: CbObjOnBinLookup) => void;
2922
- doBinLookup?: boolean;
2923
- isInstantPayment?: boolean;
2924
- oneClick?: boolean;
2925
- statusType?: "redirect" | "custom" | "loading";
2926
- paymentMethodType?: string;
3497
+ onBinValue?: (event: CbObjOnBinValue) => void;
3498
+ onBrand?: (event: CbObjOnBrand) => void;
3499
+ onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
3500
+ onFieldValid?: (event: CbObjOnFieldValid) => void;
3501
+ showStoreDetailsCheckbox?: boolean;
3502
+ styles?: StylesObject;
3503
+ supportedShopperInteractions?: string[];
2927
3504
  onValidationError?: (validationErrors: ValidationError[]) => void;
2928
3505
  };
2929
3506
  /**
@@ -2946,22 +3523,8 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
2946
3523
  render(): h.JSX.Element;
2947
3524
  }
2948
3525
 
2949
- interface SepaElementData {
2950
- paymentMethod: {
2951
- type: string;
2952
- iban: string;
2953
- ownerName: string;
2954
- };
2955
- }
2956
- interface SepaConfiguration extends UIElementProps {
2957
- showFormInstruction?: boolean;
2958
- }
2959
-
2960
3526
  declare class SepaElement extends UIElement<SepaConfiguration> {
2961
3527
  static type: TxVariants;
2962
- protected static defaultProps: {
2963
- showFormInstruction: boolean;
2964
- };
2965
3528
  constructor(checkout: ICore, props?: SepaConfiguration);
2966
3529
  /**
2967
3530
  * Formats props on construction time
@@ -2978,27 +3541,6 @@ declare class SepaElement extends UIElement<SepaConfiguration> {
2978
3541
  render(): h.JSX.Element;
2979
3542
  }
2980
3543
 
2981
- interface QRLoaderConfiguration extends UIElementProps {
2982
- /**
2983
- * Number of miliseconds that the component will wait in between status calls
2984
- */
2985
- delay?: number;
2986
- /**
2987
- * Number of minutes that the component should keep on loading
2988
- */
2989
- countdownTime?: number;
2990
- type?: string;
2991
- brandLogo?: string;
2992
- buttonLabel?: string;
2993
- qrCodeImage?: string;
2994
- paymentData?: string;
2995
- introduction?: string;
2996
- redirectIntroduction?: string;
2997
- timeToPay?: string;
2998
- instructions?: string | (() => h.JSX.Element);
2999
- copyBtn?: boolean;
3000
- }
3001
-
3002
3544
  declare class QRLoaderContainer<T extends QRLoaderConfiguration = QRLoaderConfiguration> extends UIElement<T> {
3003
3545
  protected static defaultProps: {
3004
3546
  qrCodeImage: string;
@@ -3041,30 +3583,19 @@ declare class WeChatPayElement extends QRLoaderContainer {
3041
3583
  risk?: RiskElement;
3042
3584
  };
3043
3585
  isDropin?: boolean;
3586
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
3587
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
3588
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
3044
3589
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
3045
3590
  url: string;
3046
3591
  method: string;
3047
3592
  data?: any;
3048
3593
  }) => void;
3049
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3050
- resolve: (data: any) => void;
3051
- reject: () => void;
3052
- }) => void;
3053
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3054
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3055
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
3056
- }) => void;
3057
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
3058
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3059
- reject: () => void;
3060
- }) => void;
3061
- onPaymentFailed?: (data?: SessionsResponse | {
3062
- resultCode: ResultCode;
3063
- }, element?: UIElement<UIElementProps>) => void;
3064
- onPaymentCompleted?: (data: SessionsResponse | {
3065
- resultCode: ResultCode;
3066
- donationToken?: string;
3067
- }, element?: UIElement<UIElementProps>) => void;
3594
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
3595
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
3596
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
3597
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
3598
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
3068
3599
  onOrderUpdated?: (data: {
3069
3600
  order: Order;
3070
3601
  }) => void;
@@ -3072,9 +3603,6 @@ declare class WeChatPayElement extends QRLoaderContainer {
3072
3603
  resolve: (response: PaymentMethodsResponse) => void;
3073
3604
  reject: () => void;
3074
3605
  }) => void;
3075
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
3076
- onActionHandled?: (data: ActionHandledReturnObject) => void;
3077
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
3078
3606
  environment?: string;
3079
3607
  session?: Session;
3080
3608
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
@@ -3082,7 +3610,7 @@ declare class WeChatPayElement extends QRLoaderContainer {
3082
3610
  isStoredPaymentMethod?: boolean;
3083
3611
  oneClick?: boolean;
3084
3612
  storedPaymentMethodId?: string;
3085
- statusType?: "redirect" | "custom" | "loading";
3613
+ statusType?: "custom" | "loading" | "redirect";
3086
3614
  name?: string;
3087
3615
  icon?: string;
3088
3616
  amount?: PaymentAmount;
@@ -3122,30 +3650,19 @@ declare class PayNowElement extends QRLoaderContainer {
3122
3650
  risk?: RiskElement;
3123
3651
  };
3124
3652
  isDropin?: boolean;
3653
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
3654
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
3655
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
3125
3656
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
3126
3657
  url: string;
3127
3658
  method: string;
3128
3659
  data?: any;
3129
3660
  }) => void;
3130
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3131
- resolve: (data: any) => void;
3132
- reject: () => void;
3133
- }) => void;
3134
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3135
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3136
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
3137
- }) => void;
3138
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
3139
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3140
- reject: () => void;
3141
- }) => void;
3142
- onPaymentFailed?: (data?: SessionsResponse | {
3143
- resultCode: ResultCode;
3144
- }, element?: UIElement<UIElementProps>) => void;
3145
- onPaymentCompleted?: (data: SessionsResponse | {
3146
- resultCode: ResultCode;
3147
- donationToken?: string;
3148
- }, element?: UIElement<UIElementProps>) => void;
3661
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
3662
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
3663
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
3664
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
3665
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
3149
3666
  onOrderUpdated?: (data: {
3150
3667
  order: Order;
3151
3668
  }) => void;
@@ -3153,9 +3670,6 @@ declare class PayNowElement extends QRLoaderContainer {
3153
3670
  resolve: (response: PaymentMethodsResponse) => void;
3154
3671
  reject: () => void;
3155
3672
  }) => void;
3156
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
3157
- onActionHandled?: (data: ActionHandledReturnObject) => void;
3158
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
3159
3673
  environment?: string;
3160
3674
  session?: Session;
3161
3675
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
@@ -3163,7 +3677,7 @@ declare class PayNowElement extends QRLoaderContainer {
3163
3677
  isStoredPaymentMethod?: boolean;
3164
3678
  oneClick?: boolean;
3165
3679
  storedPaymentMethodId?: string;
3166
- statusType?: "redirect" | "custom" | "loading";
3680
+ statusType?: "custom" | "loading" | "redirect";
3167
3681
  name?: string;
3168
3682
  icon?: string;
3169
3683
  amount?: PaymentAmount;
@@ -3204,30 +3718,19 @@ declare class BCMCMobileElement extends QRLoaderContainer {
3204
3718
  risk?: RiskElement;
3205
3719
  };
3206
3720
  isDropin?: boolean;
3721
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
3722
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
3723
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
3207
3724
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
3208
3725
  url: string;
3209
3726
  method: string;
3210
3727
  data?: any;
3211
3728
  }) => void;
3212
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3213
- resolve: (data: any) => void;
3214
- reject: () => void;
3215
- }) => void;
3216
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3217
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3218
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
3219
- }) => void;
3220
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
3221
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3222
- reject: () => void;
3223
- }) => void;
3224
- onPaymentFailed?: (data?: SessionsResponse | {
3225
- resultCode: ResultCode;
3226
- }, element?: UIElement<UIElementProps>) => void;
3227
- onPaymentCompleted?: (data: SessionsResponse | {
3228
- resultCode: ResultCode;
3229
- donationToken?: string;
3230
- }, element?: UIElement<UIElementProps>) => void;
3729
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
3730
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
3731
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
3732
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
3733
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
3231
3734
  onOrderUpdated?: (data: {
3232
3735
  order: Order;
3233
3736
  }) => void;
@@ -3235,9 +3738,6 @@ declare class BCMCMobileElement extends QRLoaderContainer {
3235
3738
  resolve: (response: PaymentMethodsResponse) => void;
3236
3739
  reject: () => void;
3237
3740
  }) => void;
3238
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
3239
- onActionHandled?: (data: ActionHandledReturnObject) => void;
3240
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
3241
3741
  environment?: string;
3242
3742
  session?: Session;
3243
3743
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
@@ -3245,7 +3745,7 @@ declare class BCMCMobileElement extends QRLoaderContainer {
3245
3745
  isStoredPaymentMethod?: boolean;
3246
3746
  oneClick?: boolean;
3247
3747
  storedPaymentMethodId?: string;
3248
- statusType?: "redirect" | "custom" | "loading";
3748
+ statusType?: "custom" | "loading" | "redirect";
3249
3749
  name?: string;
3250
3750
  icon?: string;
3251
3751
  amount?: PaymentAmount;
@@ -3274,48 +3774,6 @@ declare class MolPayEbankingVNElement extends IssuerListContainer {
3274
3774
  static type: TxVariants;
3275
3775
  }
3276
3776
 
3277
- interface DragonpayInputIssuerItem {
3278
- id: string;
3279
- name: string;
3280
- icon?: string;
3281
- }
3282
- interface DragonpayConfiguraton extends UIElementProps {
3283
- type?: string;
3284
- issuers?: DragonpayInputIssuerItem[];
3285
- /** @deprecated use issuers */
3286
- details?: any;
3287
- loadingContext?: string;
3288
- reference?: string;
3289
- i18n?: Language;
3290
- }
3291
- interface DragonpayInputData {
3292
- issuer?: string;
3293
- shopperEmail?: string;
3294
- }
3295
- interface DragonpayInputProps {
3296
- data: DragonpayInputData;
3297
- issuer?: string;
3298
- items?: DragonpayInputIssuerItem[];
3299
- type?: string;
3300
- onChange: (state: any) => void;
3301
- onSubmit?: (state: any, component: any) => void;
3302
- showPayButton: boolean;
3303
- payButton: any;
3304
- ref?: any;
3305
- }
3306
- interface DragonpayVoucherResultProps {
3307
- reference?: string;
3308
- totalAmount?: PaymentAmount;
3309
- expiresAt?: string;
3310
- paymentMethodType?: string;
3311
- instructionsUrl?: string;
3312
- surcharge?: PaymentAmount;
3313
- alternativeReference?: string;
3314
- icon?: string;
3315
- issuer?: string;
3316
- ref?: any;
3317
- }
3318
-
3319
3777
  declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
3320
3778
  static type: TxVariants;
3321
3779
  static txVariants: TxVariants[];
@@ -3345,30 +3803,19 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
3345
3803
  risk?: RiskElement;
3346
3804
  };
3347
3805
  isDropin?: boolean;
3806
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
3807
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
3808
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
3348
3809
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
3349
3810
  url: string;
3350
3811
  method: string;
3351
3812
  data?: any;
3352
3813
  }) => void;
3353
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3354
- resolve: (data: any) => void;
3355
- reject: () => void;
3356
- }) => void;
3357
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3358
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3359
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
3360
- }) => void;
3361
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
3362
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3363
- reject: () => void;
3364
- }) => void;
3365
- onPaymentFailed?: (data?: SessionsResponse | {
3366
- resultCode: ResultCode;
3367
- }, element?: UIElement<UIElementProps>) => void;
3368
- onPaymentCompleted?: (data: SessionsResponse | {
3369
- resultCode: ResultCode;
3370
- donationToken?: string;
3371
- }, element?: UIElement<UIElementProps>) => void;
3814
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
3815
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
3816
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
3817
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
3818
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
3372
3819
  onOrderUpdated?: (data: {
3373
3820
  order: Order;
3374
3821
  }) => void;
@@ -3376,9 +3823,6 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
3376
3823
  resolve: (response: PaymentMethodsResponse) => void;
3377
3824
  reject: () => void;
3378
3825
  }) => void;
3379
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
3380
- onActionHandled?: (data: ActionHandledReturnObject) => void;
3381
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
3382
3826
  environment?: string;
3383
3827
  session?: Session;
3384
3828
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
@@ -3386,7 +3830,7 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
3386
3830
  isStoredPaymentMethod?: boolean;
3387
3831
  oneClick?: boolean;
3388
3832
  storedPaymentMethodId?: string;
3389
- statusType?: "redirect" | "custom" | "loading";
3833
+ statusType?: "custom" | "loading" | "redirect";
3390
3834
  name?: string;
3391
3835
  icon?: string;
3392
3836
  amount?: PaymentAmount;
@@ -3402,52 +3846,9 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
3402
3846
  render(): h.JSX.Element;
3403
3847
  }
3404
3848
 
3405
- interface VoucherDetail {
3406
- label: string;
3407
- value: string;
3408
- }
3409
- interface VoucherProps {
3410
- /** Payment method used to generate the voucher. */
3411
- paymentMethodType: string;
3412
- /** Payment method image to be displayed on the voucher. */
3413
- imageUrl?: string;
3414
- /** If applicable, it will render an issuer image next to the payment method image. */
3415
- issuerImageUrl?: string;
3416
- /** Voucher instructions URL. */
3417
- instructionsUrl?: string;
3418
- /** Download URL for the voucher. It will display a button allowing the shopper to download it. */
3419
- downloadUrl?: string;
3420
- /** Text that will be displayed on the above Download button. */
3421
- downloadButtonText?: string;
3422
- /** Introduction text on the voucher. */
3423
- introduction?: string;
3424
- /** Payment reference. */
3425
- reference?: string;
3426
- /** URL to a barcode image representing the payment reference. */
3427
- barcode?: string;
3428
- /** Total amount displayed on the voucher. */
3429
- amount?: string;
3430
- /** Any additional surcharge to the amount. */
3431
- surcharge?: any;
3432
- /** List of details that will be rendered on the voucher. */
3433
- voucherDetails?: VoucherDetail[];
3434
- /** Additional CSS classes. */
3435
- className?: string;
3436
- /** Show/Hide a button to copy the payment reference. It will only show if a reference is available. */
3437
- copyBtn?: boolean;
3438
- }
3439
- interface VoucherConfiguration extends UIElementProps {
3440
- reference?: string;
3441
- url?: string;
3442
- paymentMethodType?: string;
3443
- }
3444
-
3445
3849
  declare class DokuElement extends UIElement<VoucherConfiguration> {
3446
3850
  static type: TxVariants;
3447
3851
  static txVariants: TxVariants[];
3448
- protected static defaultProps: {
3449
- showFormInstruction: boolean;
3450
- };
3451
3852
  get isValid(): boolean;
3452
3853
  /**
3453
3854
  * Formats the component data output
@@ -3479,22 +3880,6 @@ declare class BoletoElement extends UIElement<VoucherConfiguration> {
3479
3880
  render(): h.JSX.Element;
3480
3881
  }
3481
3882
 
3482
- interface OxxoVoucherResultProps {
3483
- alternativeReference?: string;
3484
- reference?: string;
3485
- expiresAt?: string;
3486
- merchantReference?: string;
3487
- totalAmount?: PaymentAmount;
3488
- paymentMethodType?: string;
3489
- downloadUrl?: string;
3490
- ref?: any;
3491
- }
3492
- type OxxoElementData = {
3493
- paymentMethod: {
3494
- type: 'oxxo' | string;
3495
- };
3496
- };
3497
-
3498
3883
  declare class OxxoElement extends UIElement<VoucherConfiguration> {
3499
3884
  static type: TxVariants;
3500
3885
  protected static defaultProps: {
@@ -3595,30 +3980,19 @@ declare class SwishElement extends QRLoaderContainer {
3595
3980
  risk?: RiskElement;
3596
3981
  };
3597
3982
  isDropin?: boolean;
3983
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
3984
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
3985
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
3598
3986
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
3599
3987
  url: string;
3600
3988
  method: string;
3601
3989
  data?: any;
3602
3990
  }) => void;
3603
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3604
- resolve: (data: any) => void;
3605
- reject: () => void;
3606
- }) => void;
3607
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3608
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3609
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
3610
- }) => void;
3611
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
3612
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3613
- reject: () => void;
3614
- }) => void;
3615
- onPaymentFailed?: (data?: SessionsResponse | {
3616
- resultCode: ResultCode;
3617
- }, element?: UIElement<UIElementProps>) => void;
3618
- onPaymentCompleted?: (data: SessionsResponse | {
3619
- resultCode: ResultCode;
3620
- donationToken?: string;
3621
- }, element?: UIElement<UIElementProps>) => void;
3991
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
3992
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
3993
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
3994
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
3995
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
3622
3996
  onOrderUpdated?: (data: {
3623
3997
  order: Order;
3624
3998
  }) => void;
@@ -3626,9 +4000,6 @@ declare class SwishElement extends QRLoaderContainer {
3626
4000
  resolve: (response: PaymentMethodsResponse) => void;
3627
4001
  reject: () => void;
3628
4002
  }) => void;
3629
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
3630
- onActionHandled?: (data: ActionHandledReturnObject) => void;
3631
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
3632
4003
  environment?: string;
3633
4004
  session?: Session;
3634
4005
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
@@ -3636,7 +4007,7 @@ declare class SwishElement extends QRLoaderContainer {
3636
4007
  isStoredPaymentMethod?: boolean;
3637
4008
  oneClick?: boolean;
3638
4009
  storedPaymentMethodId?: string;
3639
- statusType?: "redirect" | "custom" | "loading";
4010
+ statusType?: "custom" | "loading" | "redirect";
3640
4011
  name?: string;
3641
4012
  icon?: string;
3642
4013
  amount?: PaymentAmount;
@@ -3653,16 +4024,6 @@ declare class SwishElement extends QRLoaderContainer {
3653
4024
  };
3654
4025
  }
3655
4026
 
3656
- interface AchConfiguration extends UIElementProps {
3657
- storedPaymentMethodId?: string;
3658
- holderNameRequired?: boolean;
3659
- hasHolderName?: boolean;
3660
- enableStoreDetails: boolean;
3661
- bankAccountNumber: string;
3662
- showFormInstruction?: boolean;
3663
- placeholders?: Placeholders$1;
3664
- }
3665
-
3666
4027
  declare class AchElement extends UIElement<AchConfiguration> {
3667
4028
  static type: TxVariants;
3668
4029
  formatProps(props: AchConfiguration): {
@@ -3671,7 +4032,6 @@ declare class AchElement extends UIElement<AchConfiguration> {
3671
4032
  hasHolderName?: boolean;
3672
4033
  enableStoreDetails: boolean;
3673
4034
  bankAccountNumber: string;
3674
- showFormInstruction?: boolean;
3675
4035
  placeholders?: Partial<Record<"holderName" | "bankAccountNumber" | "bankLocationId", string>>;
3676
4036
  order?: Order;
3677
4037
  modules?: {
@@ -3681,30 +4041,19 @@ declare class AchElement extends UIElement<AchConfiguration> {
3681
4041
  risk?: RiskElement;
3682
4042
  };
3683
4043
  isDropin?: boolean;
4044
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
4045
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
4046
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
3684
4047
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
3685
4048
  url: string;
3686
4049
  method: string;
3687
4050
  data?: any;
3688
4051
  }) => void;
3689
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3690
- resolve: (data: any) => void;
3691
- reject: () => void;
3692
- }) => void;
3693
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
3694
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3695
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
3696
- }) => void;
3697
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
3698
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
3699
- reject: () => void;
3700
- }) => void;
3701
- onPaymentFailed?: (data?: SessionsResponse | {
3702
- resultCode: ResultCode;
3703
- }, element?: UIElement<UIElementProps>) => void;
3704
- onPaymentCompleted?: (data: SessionsResponse | {
3705
- resultCode: ResultCode;
3706
- donationToken?: string;
3707
- }, element?: UIElement<UIElementProps>) => void;
4052
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
4053
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
4054
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
4055
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
4056
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
3708
4057
  onOrderUpdated?: (data: {
3709
4058
  order: Order;
3710
4059
  }) => void;
@@ -3712,9 +4061,6 @@ declare class AchElement extends UIElement<AchConfiguration> {
3712
4061
  resolve: (response: PaymentMethodsResponse) => void;
3713
4062
  reject: () => void;
3714
4063
  }) => void;
3715
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
3716
- onActionHandled?: (data: ActionHandledReturnObject) => void;
3717
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
3718
4064
  environment?: string;
3719
4065
  session?: Session;
3720
4066
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void; /**
@@ -3723,7 +4069,7 @@ declare class AchElement extends UIElement<AchConfiguration> {
3723
4069
  isInstantPayment?: boolean;
3724
4070
  isStoredPaymentMethod?: boolean;
3725
4071
  oneClick?: boolean;
3726
- statusType?: "redirect" | "custom" | "loading";
4072
+ statusType?: "custom" | "loading" | "redirect";
3727
4073
  type?: string;
3728
4074
  name?: string;
3729
4075
  icon?: string;
@@ -3755,41 +4101,6 @@ declare class AchElement extends UIElement<AchConfiguration> {
3755
4101
  render(): h.JSX.Element;
3756
4102
  }
3757
4103
 
3758
- interface StatusObjectProps {
3759
- payload: string;
3760
- resultCode: string;
3761
- type: string;
3762
- }
3763
- interface StatusObject {
3764
- type: string;
3765
- props: StatusObjectProps;
3766
- }
3767
- interface AwaitComponentProps {
3768
- type: string;
3769
- delay?: number;
3770
- countdownTime: number;
3771
- throttleTime: number;
3772
- showCountdownTimer: boolean;
3773
- throttleInterval: number;
3774
- paymentData: string;
3775
- url?: string;
3776
- classNameModifiers?: string[];
3777
- clientKey: string;
3778
- onError: (error: any) => void;
3779
- onComplete: (status: any, component: any) => void;
3780
- brandLogo: string;
3781
- messageText: string;
3782
- awaitText: string;
3783
- ref: any;
3784
- onActionHandled: (rtnObj: ActionHandledReturnObject) => void;
3785
- }
3786
- interface AwaitConfiguration extends UIElementProps {
3787
- paymentData?: string;
3788
- paymentMethoType?: string;
3789
- type?: string;
3790
- url?: string;
3791
- }
3792
-
3793
4104
  declare class MBWayElement extends UIElement<AwaitConfiguration> {
3794
4105
  static type: TxVariants;
3795
4106
  formatProps(props: any): any;
@@ -3822,24 +4133,6 @@ declare class BlikElement extends UIElement<AwaitConfiguration> {
3822
4133
  render(): h.JSX.Element;
3823
4134
  }
3824
4135
 
3825
- interface BankTransferConfiguration extends UIElementProps {
3826
- reference?: string;
3827
- /**
3828
- * Show/hide email address field
3829
- * @default true
3830
- */
3831
- showEmailAddress?: boolean;
3832
- }
3833
- interface BankTransferState extends UIElementProps {
3834
- data: {
3835
- shopperEmail?: string;
3836
- };
3837
- isValid: boolean;
3838
- }
3839
- interface BankTransferSchema {
3840
- shopperEmail?: string;
3841
- }
3842
-
3843
4136
  declare class BankTransferElement extends UIElement<BankTransferConfiguration> {
3844
4137
  static type: TxVariants;
3845
4138
  static defaultProps: {
@@ -3865,20 +4158,6 @@ declare class Affirm extends OpenInvoiceContainer {
3865
4158
  formatProps(props: any): any;
3866
4159
  }
3867
4160
 
3868
- interface PixConfiguration extends QRLoaderConfiguration {
3869
- personalDetailsRequired?: boolean;
3870
- }
3871
- interface PixElementData {
3872
- paymentMethod: {
3873
- type: 'pix';
3874
- };
3875
- shopperName?: {
3876
- firstName: string;
3877
- lastName: string;
3878
- };
3879
- socialSecurityNumber?: string;
3880
- }
3881
-
3882
4161
  declare class PixElement extends QRLoaderContainer<PixConfiguration> {
3883
4162
  static type: TxVariants;
3884
4163
  static defaultProps: {
@@ -3910,9 +4189,6 @@ interface BacsElementData {
3910
4189
 
3911
4190
  declare class BacsElement extends UIElement<VoucherConfiguration> {
3912
4191
  static type: TxVariants;
3913
- protected static defaultProps: {
3914
- showFormInstruction: boolean;
3915
- };
3916
4192
  formatData(): BacsElementData;
3917
4193
  get isValid(): boolean;
3918
4194
  payButton: (props: any) => h.JSX.Element;
@@ -3925,61 +4201,14 @@ declare class AddressElement extends UIElement {
3925
4201
  get isValid(): boolean;
3926
4202
  render(): h.JSX.Element;
3927
4203
  }
3928
-
3929
- interface PersonalDetailsConfiguration extends UIElementProps {
3930
- showFormInstruction?: boolean;
3931
- }
3932
- declare class PersonalDetailsElement extends UIElement<PersonalDetailsConfiguration> {
3933
- static type: TxVariants;
3934
- protected static defaultProps: {
3935
- showFormInstruction: boolean;
3936
- };
3937
- get data(): any;
3938
- get isValid(): boolean;
3939
- render(): h.JSX.Element;
3940
- }
3941
-
3942
- declare global {
3943
- interface Window {
3944
- Klarna: any;
3945
- klarnaAsyncCallback: any;
3946
- }
3947
- }
3948
- /** sdkData present in Klarna `action`objects. */
3949
- type KlarnaSdkData = {
3950
- /**
3951
- * Klarna client_token
3952
- * @see https://developers.klarna.com/documentation/klarna-payments/single-call-descriptions/create-session/
3953
- * */
3954
- client_token: string;
3955
- /**
3956
- * `payment_method_category` specifies which of Klarna’s customer offerings (e.g. Pay now, Pay later or Slice it)
3957
- * that is being shown in the widget
3958
- * @see https://developers.klarna.com/documentation/klarna-payments/single-call-descriptions/create-session/
3959
- * */
3960
- payment_method_category: string;
3961
- };
3962
- interface KlarnaPaymentsShared {
3963
- sdkData?: KlarnaSdkData;
3964
- paymentData?: string;
3965
- paymentMethodType?: string;
3966
- }
3967
- interface KlarnaWidgetProps extends KlarnaPaymentsShared {
3968
- /** @internal */
3969
- payButton: (options: any) => any;
3970
- /** @internal */
3971
- onLoaded: () => void;
3972
- onComplete: (detailsData: any) => void;
3973
- onError: (error: any) => void;
3974
- }
3975
- type KlarnConfiguration = UIElementProps & KlarnaPaymentsShared & {
3976
- useKlarnaWidget?: boolean;
3977
- };
3978
- interface KlarnaWidgetAuthorizeResponse {
3979
- approved: boolean;
3980
- show_form: boolean;
3981
- authorization_token: string;
3982
- error?: any;
4204
+
4205
+ interface PersonalDetailsConfiguration extends UIElementProps {
4206
+ }
4207
+ declare class PersonalDetailsElement extends UIElement<PersonalDetailsConfiguration> {
4208
+ static type: TxVariants;
4209
+ get data(): any;
4210
+ get isValid(): boolean;
4211
+ render(): h.JSX.Element;
3983
4212
  }
3984
4213
 
3985
4214
  declare class KlarnaPayments extends UIElement<KlarnConfiguration> {
@@ -4068,24 +4297,6 @@ declare class RatePayDirectDebit extends OpenInvoiceContainer {
4068
4297
  formatProps(props: any): any;
4069
4298
  }
4070
4299
 
4071
- type UpiPaymentData = {
4072
- paymentMethod: {
4073
- type: 'upi_qr' | 'upi_collect';
4074
- virtualPaymentAddress?: string;
4075
- };
4076
- };
4077
- type UpiMode = 'vpa' | 'qrCode';
4078
- interface UPIConfiguration extends UIElementProps {
4079
- /**
4080
- * Define which view is displayed initially when the Component renders
4081
- * @defaultValue vpa
4082
- */
4083
- defaultMode?: UpiMode;
4084
- paymentData?: string;
4085
- qrCodeData?: string;
4086
- brandLogo?: string;
4087
- }
4088
-
4089
4300
  declare class UPI extends UIElement<UPIConfiguration> {
4090
4301
  static type: TxVariants;
4091
4302
  static txVariants: TxVariants[];
@@ -4158,30 +4369,19 @@ declare class PromptPayElement extends QRLoaderContainer {
4158
4369
  risk?: RiskElement;
4159
4370
  };
4160
4371
  isDropin?: boolean;
4372
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
4373
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
4374
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
4161
4375
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
4162
4376
  url: string;
4163
4377
  method: string;
4164
4378
  data?: any;
4165
4379
  }) => void;
4166
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
4167
- resolve: (data: any) => void;
4168
- reject: () => void;
4169
- }) => void;
4170
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
4171
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
4172
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
4173
- }) => void;
4174
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
4175
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
4176
- reject: () => void;
4177
- }) => void;
4178
- onPaymentFailed?: (data?: SessionsResponse | {
4179
- resultCode: ResultCode;
4180
- }, element?: UIElement<UIElementProps>) => void;
4181
- onPaymentCompleted?: (data: SessionsResponse | {
4182
- resultCode: ResultCode;
4183
- donationToken?: string;
4184
- }, element?: UIElement<UIElementProps>) => void;
4380
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
4381
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
4382
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
4383
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
4384
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
4185
4385
  onOrderUpdated?: (data: {
4186
4386
  order: Order;
4187
4387
  }) => void;
@@ -4189,9 +4389,6 @@ declare class PromptPayElement extends QRLoaderContainer {
4189
4389
  resolve: (response: PaymentMethodsResponse) => void;
4190
4390
  reject: () => void;
4191
4391
  }) => void;
4192
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
4193
- onActionHandled?: (data: ActionHandledReturnObject) => void;
4194
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
4195
4392
  environment?: string;
4196
4393
  session?: Session;
4197
4394
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
@@ -4199,7 +4396,7 @@ declare class PromptPayElement extends QRLoaderContainer {
4199
4396
  isStoredPaymentMethod?: boolean;
4200
4397
  oneClick?: boolean;
4201
4398
  storedPaymentMethodId?: string;
4202
- statusType?: "redirect" | "custom" | "loading";
4399
+ statusType?: "custom" | "loading" | "redirect";
4203
4400
  name?: string;
4204
4401
  icon?: string;
4205
4402
  amount?: PaymentAmount;
@@ -4239,30 +4436,19 @@ declare class DuitNowElement extends QRLoaderContainer {
4239
4436
  risk?: RiskElement;
4240
4437
  };
4241
4438
  isDropin?: boolean;
4439
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
4440
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
4441
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
4242
4442
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
4243
4443
  url: string;
4244
4444
  method: string;
4245
4445
  data?: any;
4246
4446
  }) => void;
4247
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
4248
- resolve: (data: any) => void;
4249
- reject: () => void;
4250
- }) => void;
4251
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
4252
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
4253
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
4254
- }) => void;
4255
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
4256
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
4257
- reject: () => void;
4258
- }) => void;
4259
- onPaymentFailed?: (data?: SessionsResponse | {
4260
- resultCode: ResultCode;
4261
- }, element?: UIElement<UIElementProps>) => void;
4262
- onPaymentCompleted?: (data: SessionsResponse | {
4263
- resultCode: ResultCode;
4264
- donationToken?: string;
4265
- }, element?: UIElement<UIElementProps>) => void;
4447
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
4448
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
4449
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
4450
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
4451
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
4266
4452
  onOrderUpdated?: (data: {
4267
4453
  order: Order;
4268
4454
  }) => void;
@@ -4270,9 +4456,6 @@ declare class DuitNowElement extends QRLoaderContainer {
4270
4456
  resolve: (response: PaymentMethodsResponse) => void;
4271
4457
  reject: () => void;
4272
4458
  }) => void;
4273
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
4274
- onActionHandled?: (data: ActionHandledReturnObject) => void;
4275
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
4276
4459
  environment?: string;
4277
4460
  session?: Session;
4278
4461
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
@@ -4280,7 +4463,7 @@ declare class DuitNowElement extends QRLoaderContainer {
4280
4463
  isStoredPaymentMethod?: boolean;
4281
4464
  oneClick?: boolean;
4282
4465
  storedPaymentMethodId?: string;
4283
- statusType?: "redirect" | "custom" | "loading";
4466
+ statusType?: "custom" | "loading" | "redirect";
4284
4467
  name?: string;
4285
4468
  icon?: string;
4286
4469
  amount?: PaymentAmount;
@@ -4303,207 +4486,6 @@ declare class TrustlyElement extends RedirectElement {
4303
4486
  render(): h.JSX.Element;
4304
4487
  }
4305
4488
 
4306
- interface ANCVConfiguration extends UIElementProps {
4307
- paymentData?: any;
4308
- data: ANCVDataState;
4309
- onOrderRequest?: any;
4310
- onOrderUpdated?: any;
4311
- }
4312
- interface ANCVDataState {
4313
- beneficiaryId: string;
4314
- }
4315
-
4316
- interface BoletoElementProps {
4317
- type: string;
4318
- i18n: Language;
4319
- loadingContext: string;
4320
- reference?: string;
4321
- }
4322
- interface BoletoInputDataState {
4323
- firstName?: string;
4324
- lastName?: string;
4325
- shopperEmail?: string;
4326
- socialSecurityNumber?: string;
4327
- billingAddress?: AddressData;
4328
- }
4329
- interface BoletoInputValidState {
4330
- firstName?: boolean;
4331
- lastName?: boolean;
4332
- shopperEmail?: boolean;
4333
- socialSecurityNumber?: boolean;
4334
- billingAddress?: boolean;
4335
- }
4336
- interface BoletoInputErrorState {
4337
- firstName?: boolean;
4338
- lastName?: boolean;
4339
- shopperEmail?: boolean;
4340
- socialSecurityNumber?: boolean;
4341
- }
4342
-
4343
- interface DokuVoucherResultProps {
4344
- reference?: string;
4345
- totalAmount?: PaymentAmount;
4346
- expiresAt?: string;
4347
- paymentMethodType?: string;
4348
- maskedTelephoneNumber?: string;
4349
- instructionsUrl?: string;
4350
- shopperName?: string;
4351
- merchantName?: string;
4352
- outputDetails?: any;
4353
- ref?: any;
4354
- }
4355
-
4356
- interface MultibancoVoucherResultProps {
4357
- entity?: string;
4358
- reference?: string;
4359
- expiresAt?: string;
4360
- merchantReference?: string;
4361
- totalAmount?: PaymentAmount;
4362
- paymentMethodType?: string;
4363
- downloadUrl?: string;
4364
- ref?: any;
4365
- }
4366
-
4367
- declare enum Analytics3DS2Errors {
4368
- ACTION_IS_MISSING_PAYMENT_DATA = "700",// Missing 'paymentData' property from threeDS2 action
4369
- ACTION_IS_MISSING_TOKEN = "701",// Missing 'token' property from threeDS2 action
4370
- TOKEN_IS_MISSING_THREEDSMETHODURL = "702",// Decoded token is missing a valid threeDSMethodURL property
4371
- /**
4372
- * Decoded token is missing one or more of the following properties:
4373
- * fingerprint: (threeDSMethodNotificationURL | postMessageDomain | threeDSServerTransID)
4374
- * challenge: (acsTransID | messageVersion | threeDSServerTransID)
4375
- */
4376
- TOKEN_IS_MISSING_OTHER_PROPS = "703",
4377
- TOKEN_DECODE_OR_PARSING_FAILED = "704",// token decoding or parsing has failed. ('not base64', 'malformed URI sequence' or 'Could not JSON parse token')
4378
- THREEDS2_TIMEOUT = "705",// 3DS2 process has timed out
4379
- TOKEN_IS_MISSING_ACSURL = "800",// Decoded token is missing a valid acsURL property
4380
- NO_TRANSSTATUS = "801",// Challenge has resulted in an error (no transStatus could be retrieved by the backend)
4381
- NO_DETAILS_FOR_FRICTIONLESS_OR_REFUSED = "802",// callSubmit3DS2Fingerprint has received a response indicating either a "frictionless" flow, or a "refused" response, but without a details object
4382
- NO_COMPONENT_FOR_ACTION = "803",// callSubmit3DS2Fingerprint cannot find a component to handle the action response
4383
- NO_ACTION_FOR_CHALLENGE = "804"
4384
- }
4385
-
4386
- interface ThreeDS2DeviceFingerprintConfiguration {
4387
- dataKey?: string;
4388
- token?: string;
4389
- notificationURL?: string;
4390
- onError?: (error: AdyenCheckoutError, element?: UIElement) => void;
4391
- paymentData?: string;
4392
- showSpinner: boolean;
4393
- type?: string;
4394
- isMDFlow?: boolean;
4395
- loadingContext?: string;
4396
- clientKey?: string;
4397
- elementRef?: UIElement;
4398
- onActionHandled: (rtnObj: ActionHandledReturnObject) => void;
4399
- modules?: {
4400
- analytics: AnalyticsModule;
4401
- };
4402
- }
4403
- interface ThreeDS2ChallengeConfiguration {
4404
- token?: string;
4405
- dataKey?: string;
4406
- notificationURL?: string;
4407
- onError?: (error: AdyenCheckoutError, element?: UIElement) => void;
4408
- paymentData?: string;
4409
- size?: string;
4410
- challengeWindowSize?: '01' | '02' | '03' | '04' | '05';
4411
- type?: string;
4412
- loadingContext?: string;
4413
- isMDFlow?: boolean;
4414
- i18n?: Language;
4415
- onActionHandled: (rtnObj: ActionHandledReturnObject) => void;
4416
- modules?: {
4417
- analytics: AnalyticsModule;
4418
- };
4419
- }
4420
- /**
4421
- * See
4422
- * https://docs.adyen.com/checkout/3d-secure/api-reference#threeds2result
4423
- * Indicates whether a transaction was authenticated, or whether additional verification is required.
4424
- */
4425
- type ResultValue = 'Y' | 'N' | 'U' | 'A' | 'C' | 'R';
4426
- interface CReqData {
4427
- acsTransID: string;
4428
- messageVersion: string;
4429
- threeDSServerTransID: string;
4430
- messageType: string;
4431
- challengeWindowSize: string;
4432
- }
4433
- interface ChallengeData {
4434
- acsURL: string;
4435
- cReqData: CReqData;
4436
- iframeSizeArr: string[];
4437
- postMessageDomain: string;
4438
- }
4439
- interface ResultObject {
4440
- threeDSCompInd?: ResultValue;
4441
- transStatus?: ResultValue;
4442
- errorCode?: string;
4443
- errorDescription?: string;
4444
- }
4445
- interface ThreeDS2FlowObject {
4446
- result: ResultObject;
4447
- type: 'ChallengeShopper' | 'IdentifyShopper' | 'challengeResult' | 'fingerPrintResult';
4448
- errorCode?: string;
4449
- threeDSServerTransID?: string;
4450
- }
4451
- interface PostMsgParseErrorObject {
4452
- type?: string;
4453
- comment?: string;
4454
- extraInfo?: string;
4455
- eventDataRaw?: string;
4456
- }
4457
- interface ThreeDS2Token {
4458
- acsTransID?: string;
4459
- acsURL?: string;
4460
- messageVersion?: string;
4461
- threeDSNotificationURL?: string;
4462
- threeDSServerTransID?: string;
4463
- threeDSMethodNotificationURL?: string;
4464
- threeDSMethodUrl?: string;
4465
- }
4466
- interface FingerPrintData {
4467
- threeDSServerTransID: string;
4468
- threeDSMethodURL: string;
4469
- threeDSMethodNotificationURL: string;
4470
- postMessageDomain: string;
4471
- }
4472
- type ThreeDS2FingerprintResponse = {
4473
- type: 'action' | 'completed';
4474
- action?: CheckoutRedirectAction | CheckoutThreeDS2Action;
4475
- details?: Record<string, string>;
4476
- };
4477
- type CheckoutRedirectAction = {
4478
- type: 'redirect';
4479
- data: Record<string, string>;
4480
- method: string;
4481
- paymentData: string;
4482
- };
4483
- type CheckoutThreeDS2Action = {
4484
- type: 'threeDS2';
4485
- token: string;
4486
- subtype: string;
4487
- authorisationToken: string;
4488
- };
4489
- interface FingerprintResolveData {
4490
- data: {
4491
- [key: string]: string;
4492
- paymentData: string;
4493
- };
4494
- }
4495
- interface ChallengeResolveData {
4496
- data: {
4497
- details: {
4498
- [key: string]: string;
4499
- };
4500
- };
4501
- }
4502
- interface ErrorCodeObject {
4503
- errorCode: string | Analytics3DS2Errors;
4504
- message: string;
4505
- }
4506
-
4507
4489
  declare class Riverty extends OpenInvoiceContainer {
4508
4490
  static readonly type = TxVariants.riverty;
4509
4491
  protected static defaultProps: {
@@ -4526,7 +4508,6 @@ declare class Riverty extends OpenInvoiceContainer {
4526
4508
  deliveryAddressRequiredFields?: string[];
4527
4509
  deliveryAddressSpecification: AddressSpecifications;
4528
4510
  setComponentRef?: (ref: any) => void;
4529
- showFormInstruction?: boolean;
4530
4511
  order?: Order;
4531
4512
  modules?: {
4532
4513
  srPanel?: SRPanel;
@@ -4535,30 +4516,18 @@ declare class Riverty extends OpenInvoiceContainer {
4535
4516
  risk?: RiskElement;
4536
4517
  };
4537
4518
  isDropin?: boolean;
4519
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
4520
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
4538
4521
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
4539
4522
  url: string;
4540
4523
  method: string;
4541
4524
  data?: any;
4542
4525
  }) => void;
4543
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
4544
- resolve: (data: any) => void;
4545
- reject: () => void;
4546
- }) => void;
4547
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
4548
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
4549
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
4550
- }) => void;
4551
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
4552
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
4553
- reject: () => void;
4554
- }) => void;
4555
- onPaymentFailed?: (data?: SessionsResponse | {
4556
- resultCode: ResultCode;
4557
- }, element?: UIElement<UIElementProps>) => void;
4558
- onPaymentCompleted?: (data: SessionsResponse | {
4559
- resultCode: ResultCode;
4560
- donationToken?: string;
4561
- }, element?: UIElement<UIElementProps>) => void;
4526
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
4527
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
4528
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
4529
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
4530
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
4562
4531
  onOrderUpdated?: (data: {
4563
4532
  order: Order;
4564
4533
  }) => void;
@@ -4566,8 +4535,6 @@ declare class Riverty extends OpenInvoiceContainer {
4566
4535
  resolve: (response: PaymentMethodsResponse) => void;
4567
4536
  reject: () => void;
4568
4537
  }) => void;
4569
- onActionHandled?: (data: ActionHandledReturnObject) => void;
4570
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
4571
4538
  environment?: string;
4572
4539
  session?: Session;
4573
4540
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
@@ -4575,7 +4542,7 @@ declare class Riverty extends OpenInvoiceContainer {
4575
4542
  isStoredPaymentMethod?: boolean;
4576
4543
  oneClick?: boolean;
4577
4544
  storedPaymentMethodId?: string;
4578
- statusType?: "redirect" | "custom" | "loading";
4545
+ statusType?: "custom" | "loading" | "redirect";
4579
4546
  type?: string;
4580
4547
  name?: string;
4581
4548
  icon?: string;
@@ -4670,7 +4637,6 @@ declare const ComponentsMap: {
4670
4637
  billdesk_wallet: typeof BillDeskWalletElement;
4671
4638
  dotpay: typeof DotpayElement;
4672
4639
  eps: typeof EPSElement;
4673
- ideal: typeof IdealElement;
4674
4640
  molpay_ebanking_fpx_MY: typeof MolPayEBankingMYElement;
4675
4641
  molpay_ebanking_TH: typeof MolPayEBankingTHElement;
4676
4642
  molpay_ebanking_VN: typeof MolPayEbankingVNElement;
@@ -4722,6 +4688,7 @@ declare const ComponentsMap: {
4722
4688
  /** Await */
4723
4689
  blik: typeof BlikElement;
4724
4690
  mbway: typeof MBWayElement;
4691
+ ancv: typeof ANCVElement;
4725
4692
  upi: typeof UPI;
4726
4693
  upi_qr: typeof UPI;
4727
4694
  upi_collect: typeof UPI;
@@ -4787,11 +4754,36 @@ interface DropinConfiguration extends UIElementProps {
4787
4754
  * @defaultValue []
4788
4755
  */
4789
4756
  instantPaymentTypes?: InstantPaymentTypes[];
4757
+ /**
4758
+ * Pre-select a specific payment method when Drop-in is rendered
4759
+ *
4760
+ * @default undefined
4761
+ */
4762
+ openPaymentMethod?: {
4763
+ type: string;
4764
+ };
4765
+ /**
4766
+ * Pre-select the first stored payment method.
4767
+ * It has priority over 'openFirstPaymentMethod' property
4768
+ *
4769
+ * @default true
4770
+ */
4790
4771
  openFirstStoredPaymentMethod?: boolean;
4772
+ /**
4773
+ * Pre-select the first non-stored payment method.
4774
+ * 'openFirstStoredPaymentMethod' has priority over this property
4775
+ *
4776
+ * @default true
4777
+ */
4791
4778
  openFirstPaymentMethod?: boolean;
4792
- onSubmit?: (data: any, component: any) => void;
4793
- onReady?: () => void;
4794
- onSelect?: (paymentMethod: UIElement) => void;
4779
+ /**
4780
+ * Callback triggered once the Drop-in is ready to be used
4781
+ */
4782
+ onReady?(): void;
4783
+ /**
4784
+ * Callback triggered once the shopper selects a different payment method in the Drop-in
4785
+ */
4786
+ onSelect?(paymentMethod: UIElement): void;
4795
4787
  /**
4796
4788
  * Show/Hide the remove payment method button on stored payment methods
4797
4789
  * Requires {@link DropinConfiguration.onDisableStoredPaymentMethod}
@@ -4825,8 +4817,7 @@ type onOrderCancelType = (data: onOrderCancelData, actions: {
4825
4817
  }) => void;
4826
4818
  interface DropinComponentProps extends DropinConfiguration {
4827
4819
  core: ICore;
4828
- onCreateElements: any;
4829
- onChange: (newState?: object) => void;
4820
+ onCreateElements(): any;
4830
4821
  onOrderCancel?: onOrderCancelType;
4831
4822
  }
4832
4823
  interface DropinStatus {
@@ -4863,22 +4854,84 @@ interface ICore {
4863
4854
  register(...items: NewableComponent[]): void;
4864
4855
  update(options: CoreConfiguration): Promise<ICore>;
4865
4856
  remove(component: any): ICore;
4866
- submitDetails(details: any): void;
4857
+ submitDetails(details: AdditionalDetailsData['data']): void;
4867
4858
  getCorePropsForComponent(): any;
4868
4859
  getComponent(txVariant: string): NewableComponent | undefined;
4869
- createFromAction(action: PaymentAction, options: any): any;
4860
+ createFromAction(action: PaymentAction, options: any): UIElement;
4870
4861
  storeElementReference(element: UIElement): void;
4871
4862
  options: CoreConfiguration;
4872
4863
  paymentMethodsResponse: PaymentMethods$1;
4873
4864
  session?: Session;
4874
4865
  }
4875
- type AdyenEnvironment = 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in' | string;
4866
+ type PaymentCompletedData = SessionsResponse | {
4867
+ resultCode: ResultCode;
4868
+ donationToken?: string;
4869
+ };
4870
+ type PaymentFailedData = SessionsResponse | {
4871
+ resultCode: ResultCode;
4872
+ };
4873
+ type SubmitData = {
4874
+ data: PaymentData;
4875
+ isValid: boolean;
4876
+ };
4877
+ type SubmitActions = {
4878
+ resolve: (response: CheckoutAdvancedFlowResponse) => void;
4879
+ reject: (error?: Pick<CheckoutAdvancedFlowResponse, 'error'>) => void;
4880
+ };
4881
+ type AdditionalDetailsData = {
4882
+ data: {
4883
+ details: {
4884
+ redirectResult?: string;
4885
+ threeDSResult?: string;
4886
+ [key: string]: any;
4887
+ };
4888
+ paymentData?: string;
4889
+ sessionData?: string;
4890
+ };
4891
+ };
4892
+ type AdditionalDetailsActions = {
4893
+ resolve: (response: CheckoutAdvancedFlowResponse) => void;
4894
+ reject: () => void;
4895
+ };
4896
+ type BeforeSubmitActions = {
4897
+ resolve: (data: PaymentData & {
4898
+ billingAddress?: AddressData;
4899
+ deliveryAddress?: AddressData;
4900
+ shopperEmail?: string;
4901
+ shopperName?: string;
4902
+ }) => void;
4903
+ reject: () => void;
4904
+ };
4905
+ type OnChangeData = {
4906
+ data: PaymentData;
4907
+ isValid: boolean;
4908
+ valid?: {
4909
+ [fieldKey: string]: boolean;
4910
+ };
4911
+ errors?: {
4912
+ [fieldKey: string]: {
4913
+ isValid: boolean;
4914
+ errorMessage: string;
4915
+ errorI18n: string;
4916
+ error: string;
4917
+ rootNode: HTMLElement;
4918
+ };
4919
+ };
4920
+ };
4876
4921
  interface CoreConfiguration {
4877
- session?: any;
4878
4922
  /**
4879
- * Use test. When you're ready to accept live payments, change the value to one of our {@link https://docs.adyen.com/checkout/drop-in-web#testing-your-integration | live environments}.
4923
+ * The payment session object from your call to /sessions.
4924
+ */
4925
+ session?: {
4926
+ id: string;
4927
+ sessionData?: string;
4928
+ shopperEmail?: string;
4929
+ telephoneNumber?: string;
4930
+ };
4931
+ /**
4932
+ * Use 'test'. When you're ready to accept live payments, change the value to one of our {@link https://docs.adyen.com/checkout/drop-in-web#testing-your-integration | live environments}.
4880
4933
  */
4881
- environment?: AdyenEnvironment;
4934
+ environment?: 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in' | string;
4882
4935
  /**
4883
4936
  * Show or hides a Pay Button for each payment method
4884
4937
  * @default true
@@ -4937,27 +4990,39 @@ interface CoreConfiguration {
4937
4990
  * @default true
4938
4991
  */
4939
4992
  exposeLibraryMetadata?: boolean;
4993
+ /**
4994
+ * Called before the page redirect happens.
4995
+ * Allows you to perform any sort of action before redirecting the shopper to another page.
4996
+ *
4997
+ * @param resolve
4998
+ * @param reject
4999
+ * @param redirectData
5000
+ */
4940
5001
  beforeRedirect?(resolve: () => void, reject: () => void, redirectData: {
4941
5002
  url: string;
4942
5003
  method: string;
4943
5004
  data?: any;
4944
5005
  }): void;
4945
- beforeSubmit?(state: any, element: UIElement, actions: {
4946
- resolve: (data: any) => void;
4947
- reject: () => void;
4948
- }): void;
5006
+ /**
5007
+ * Called when the shopper selects the Pay button (it only works on Sessions flow)
5008
+ *
5009
+ * Allows you to add details which will be sent in the payment request to Adyen's servers.
5010
+ * For example, you can add shopper details like 'billingAddress', 'deliveryAddress', 'shopperEmail' or 'shopperName'
5011
+ *
5012
+ * @param state
5013
+ * @param component
5014
+ * @param actions
5015
+ */
5016
+ beforeSubmit?(state: PaymentData, component: UIElement, actions: BeforeSubmitActions): void;
4949
5017
  /**
4950
5018
  * Called when the payment succeeds.
4951
5019
  *
4952
5020
  * The first parameter is the sessions response (when using sessions flow), or the result code.
4953
5021
  *
4954
5022
  * @param data
4955
- * @param element
5023
+ * @param component
4956
5024
  */
4957
- onPaymentCompleted?(data: SessionsResponse | {
4958
- resultCode: ResultCode;
4959
- donationToken?: string;
4960
- }, element?: UIElement): void;
5025
+ onPaymentCompleted?(data: PaymentCompletedData, component?: UIElement): void;
4961
5026
  /**
4962
5027
  * Called when the payment fails.
4963
5028
  *
@@ -4965,31 +5030,58 @@ interface CoreConfiguration {
4965
5030
  * with an object. (Ex: 'action.reject(obj)' ). Otherwise, it will be empty.
4966
5031
  *
4967
5032
  * @param data - session response or resultCode. It can also be undefined if payment was rejected without argument ('action.reject()')
4968
- * @param element
5033
+ * @param component
4969
5034
  */
4970
- onPaymentFailed?(data?: SessionsResponse | {
4971
- resultCode: ResultCode;
4972
- }, element?: UIElement): void;
4973
- onSubmit?(state: any, element: UIElement, actions: {
4974
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
4975
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, 'error'>) => void;
4976
- }): void;
5035
+ onPaymentFailed?(data?: PaymentFailedData, component?: UIElement): void;
5036
+ /**
5037
+ * Callback used in the Advanced flow to perform the /payments API call
5038
+ *
5039
+ * The payment response must be passed to the 'resolve' function, even if the payment wasn't authorized (Ex: resultCode = Refused).
5040
+ * The 'reject' should be used only if a critical error occurred.
5041
+ *
5042
+ * @param state
5043
+ * @param component
5044
+ * @param actions
5045
+ */
5046
+ onSubmit?(state: SubmitData, component: UIElement, actions: SubmitActions): void;
4977
5047
  /**
4978
5048
  * Callback used in the Advanced flow to perform the /payments/details API call.
4979
5049
  *
5050
+ * The payment response must be passed to the 'resolve' function, even if the payment wasn't authorized (Ex: resultCode = Refused).
5051
+ * The 'reject' should be used only if a critical error occurred.
5052
+ *
4980
5053
  * @param state
4981
- * @param element - Component submitting details. It is undefined when using checkout.submitDetails()
5054
+ * @param component - Component submitting details. It is undefined when using checkout.submitDetails()
4982
5055
  * @param actions
4983
5056
  */
4984
- onAdditionalDetails?(state: AdditionalDetailsStateData, element: UIElement, actions: {
4985
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
4986
- reject: () => void;
4987
- }): void;
4988
- onActionHandled?(data: ActionHandledReturnObject): void;
4989
- onChange?(state: any, element: UIElement): void;
4990
- onError?(error: AdyenCheckoutError, element?: UIElement): void;
5057
+ onAdditionalDetails?(state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions): void;
5058
+ /**
5059
+ * Callback called when an action (for example a QR code or 3D Secure 2 authentication screen) is shown to the shopper.
5060
+ *
5061
+ * @param actionHandled
5062
+ */
5063
+ onActionHandled?(actionHandled: ActionHandledReturnObject): void;
5064
+ onChange?(state: OnChangeData, component: UIElement): void;
5065
+ /**
5066
+ * Callback called in two different scenarios:
5067
+ * - when a critical error happened (network error; implementation error; script failed to load)
5068
+ * - when the shopper cancels the payment flow in payment methods that have an overlay (GooglePay, PayPal, ApplePay)
5069
+ *
5070
+ * @param error
5071
+ * @param component
5072
+ */
5073
+ onError?(error: AdyenCheckoutError, component?: UIElement): void;
4991
5074
  onBalanceCheck?: onBalanceCheckCallbackType;
4992
5075
  onOrderRequest?: onOrderRequestCallbackType;
5076
+ /**
5077
+ * Callback called when it is required to fetch/update the payment methods list.
5078
+ * It is currently used mainly on Giftcard flow (Partial orders), since the payment method list might change depending on the amount left to be paid
5079
+ *
5080
+ * The /paymentMethods response must be passed to the 'resolve' function
5081
+ *
5082
+ * @param data
5083
+ * @param actions
5084
+ */
4993
5085
  onPaymentMethodsRequest?(data: PaymentMethodsRequestData, actions: {
4994
5086
  resolve: (response: PaymentMethodsResponse) => void;
4995
5087
  reject: () => void;
@@ -5022,13 +5114,13 @@ interface CoreConfiguration {
5022
5114
  };
5023
5115
  }
5024
5116
 
5025
- declare class BaseElement<P extends BaseElementProps> implements IBaseElement {
5117
+ declare abstract class BaseElement<P extends BaseElementProps> implements IBaseElement {
5026
5118
  readonly _id: string;
5119
+ readonly core: ICore;
5027
5120
  props: P;
5028
5121
  state: any;
5029
5122
  _component: any;
5030
5123
  protected _node: HTMLElement;
5031
- protected readonly core: ICore;
5032
5124
  protected static defaultProps: {};
5033
5125
  constructor(checkout: ICore, props?: P);
5034
5126
  protected buildElementProps(componentProps?: P): void;
@@ -5040,9 +5132,6 @@ declare class BaseElement<P extends BaseElementProps> implements IBaseElement {
5040
5132
  /**
5041
5133
  * Executed on the `data` getter.
5042
5134
  * Returns the component data necessary for the /payments request
5043
- *
5044
- * TODO: Replace 'any' by type PaymentMethodData<T> - this change requires updating all payment methods,
5045
- * properly adding the type of the formatData function
5046
5135
  */
5047
5136
  protected formatData(): any;
5048
5137
  protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): any;
@@ -5078,7 +5167,7 @@ declare class BaseElement<P extends BaseElementProps> implements IBaseElement {
5078
5167
  remove(): void;
5079
5168
  }
5080
5169
 
5081
- declare abstract class UIElement<P extends UIElementProps = UIElementProps> extends BaseElement<P> implements IUIElement {
5170
+ declare abstract class UIElement<P extends UIElementProps = UIElementProps> extends BaseElement<P> {
5082
5171
  protected componentRef: any;
5083
5172
  protected resources: Resources;
5084
5173
  elementRef: UIElement;
@@ -5095,7 +5184,7 @@ declare abstract class UIElement<P extends UIElementProps = UIElementProps> exte
5095
5184
  showValidation(): this;
5096
5185
  setElementStatus(status: UIElementStatus, props?: any): this;
5097
5186
  setStatus(status: UIElementStatus, props?: any): this;
5098
- protected onChange(): object;
5187
+ protected onChange(): void;
5099
5188
  protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): Promise<any>;
5100
5189
  /**
5101
5190
  * A function for all UIElements, or BaseElement, to use to create an analytics action for when it's been:
@@ -5112,10 +5201,10 @@ declare abstract class UIElement<P extends UIElementProps = UIElementProps> exte
5112
5201
  private submitUsingSessionsFlow;
5113
5202
  protected onComplete(state: any): void;
5114
5203
  protected handleError: (error: AdyenCheckoutError) => void;
5115
- protected handleAdditionalDetails(state: AdditionalDetailsStateData): void;
5204
+ protected handleAdditionalDetails(state: AdditionalDetailsData): void;
5116
5205
  private makeAdditionalDetailsCall;
5117
5206
  private submitAdditionalDetailsUsingSessionsFlow;
5118
- handleAction(action: PaymentAction, props?: {}): UIElement<P> | null;
5207
+ handleAction(action: PaymentAction, props?: {}): UIElement | null;
5119
5208
  protected handleOrder: (response: PaymentResponseData) => void;
5120
5209
  /**
5121
5210
  * Handles when the payment fails. The payment fails when:
@@ -5179,102 +5268,14 @@ declare abstract class UIElement<P extends UIElementProps = UIElementProps> exte
5179
5268
  protected handleAdvanceFlowPaymentMethodsUpdate(order: Order | null, amount?: PaymentAmount): Promise<ICore>;
5180
5269
  }
5181
5270
 
5182
- type PayButtonFunctionProps = Omit<PayButtonProps, 'amount'>;
5183
- type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError'>;
5184
- type UIElementProps = BaseElementProps & CoreCallbacks & {
5185
- environment?: string;
5186
- session?: Session;
5187
- onComplete?: (state: any, element: UIElement) => void;
5188
- isInstantPayment?: boolean;
5189
- /**
5190
- * Flags if the element is Stored payment method
5191
- * @internal
5192
- */
5193
- isStoredPaymentMethod?: boolean;
5194
- /**
5195
- * Flag if the element is Stored payment method.
5196
- * Perhaps can be deprecated and we use the one above?
5197
- * @internal
5198
- */
5199
- oneClick?: boolean;
5200
- /**
5201
- * Stored payment method id
5202
- * @internal
5203
- */
5204
- storedPaymentMethodId?: string;
5205
- /**
5206
- * Status set when creating the Component from action
5207
- * @internal
5208
- */
5209
- statusType?: 'redirect' | 'loading' | 'custom';
5210
- type?: string;
5211
- name?: string;
5212
- icon?: string;
5213
- amount?: PaymentAmount;
5214
- secondaryAmount?: PaymentAmountExtended;
5215
- /**
5216
- * Show/Hide pay button
5217
- * @defaultValue true
5218
- */
5219
- showPayButton?: boolean;
5220
- /** @internal */
5221
- payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
5222
- /** @internal */
5223
- loadingContext?: string;
5224
- /** @internal */
5225
- createFromAction?: (action: PaymentAction, props: object) => UIElement;
5226
- /** @internal */
5227
- clientKey?: string;
5228
- /** @internal */
5229
- elementRef?: any;
5230
- /** @internal */
5231
- i18n?: Language;
5232
- /**
5233
- * The shopper’s issuer account label. It can be available for stored payment method
5234
- * @internal
5235
- */
5236
- label?: string;
5237
- /**
5238
- * Returned after the payments call, when an action is returned. It represents the payment method tx variant
5239
- * that was used for the payment
5240
- * @internal
5241
- */
5242
- paymentMethodType?: string;
5243
- };
5244
- interface IUIElement extends IBaseElement {
5245
- isValid: boolean;
5246
- displayName: string;
5247
- accessibleName: string;
5248
- type: string;
5249
- icon: string;
5250
- elementRef: IUIElement;
5251
- submit(): void;
5252
- setComponentRef(ref: any): void;
5253
- updateParent(options?: CoreConfiguration): Promise<ICore>;
5254
- setElementStatus(status: UIElementStatus, props: any): UIElement;
5255
- setStatus(status: UIElementStatus, props?: {
5256
- message?: string;
5257
- [key: string]: any;
5258
- }): UIElement;
5259
- handleAction(action: PaymentAction): UIElement | null;
5260
- showValidation(): void;
5261
- setState(newState: object): void;
5262
- isAvailable(): Promise<void>;
5263
- }
5264
- type UIElementStatus = 'ready' | 'loading' | 'error' | 'success';
5265
- interface ComponentMethodsRef {
5266
- showValidation?: () => void;
5267
- setStatus?(status: UIElementStatus): void;
5268
- }
5269
-
5270
5271
  declare const actionTypes: {
5271
- readonly redirect: (core: ICore, registry: any, action: PaymentAction, props: any) => IUIElement;
5272
- readonly threeDS2: (core: ICore, registry: any, action: PaymentAction, props: any) => IUIElement;
5273
- readonly voucher: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => IUIElement;
5274
- readonly qrCode: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => IUIElement;
5275
- readonly await: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => IUIElement;
5276
- readonly bankTransfer: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => IUIElement;
5277
- readonly sdk: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => IUIElement;
5272
+ readonly redirect: (core: ICore, registry: any, action: PaymentAction, props: any) => UIElement<UIElementProps>;
5273
+ readonly threeDS2: (core: ICore, registry: any, action: PaymentAction, props: any) => UIElement<UIElementProps>;
5274
+ readonly voucher: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
5275
+ readonly qrCode: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
5276
+ readonly await: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
5277
+ readonly bankTransfer: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
5278
+ readonly sdk: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
5278
5279
  };
5279
5280
 
5280
5281
  interface CAActions {
@@ -5517,16 +5518,7 @@ interface PaymentMethodData {
5517
5518
  [key: string]: any;
5518
5519
  checkoutAttemptId?: string;
5519
5520
  };
5520
- browserInfo?: {
5521
- acceptHeader: string;
5522
- colorDepth: number;
5523
- javaEnabled: boolean;
5524
- language: string;
5525
- screenHeight: number;
5526
- screenWidth: number;
5527
- timeZoneOffset: number;
5528
- userAgent: string;
5529
- };
5521
+ browserInfo?: BrowserInfo;
5530
5522
  }
5531
5523
  /**
5532
5524
  * Represents the payment data that will be submitted to the /payments endpoint
@@ -5576,22 +5568,11 @@ interface PaymentResponseData {
5576
5568
  type RawPaymentResponse = PaymentResponseData & CheckoutAdvancedFlowResponse & {
5577
5569
  [key: string]: any;
5578
5570
  };
5579
- type ActionDescriptionType = 'qr-code-loaded' | 'polling-started' | 'fingerprint-iframe-loaded' | string;
5571
+ type ActionDescriptionType = 'qr-code-loaded' | 'polling-started' | '3DS2 fingerprint iframe loaded' | '3DS2 challenge iframe loaded';
5580
5572
  interface ActionHandledReturnObject {
5581
5573
  componentType: string;
5582
5574
  actionDescription: ActionDescriptionType;
5583
5575
  }
5584
- type AdditionalDetailsStateData = {
5585
- data: {
5586
- details: {
5587
- redirectResult?: string;
5588
- threeDSResult?: string;
5589
- [key: string]: any;
5590
- };
5591
- paymentData?: string;
5592
- sessionData?: string;
5593
- };
5594
- };
5595
5576
  interface AnalyticsModule {
5596
5577
  setUp: (a: AnalyticsInitialEvent) => Promise<any>;
5597
5578
  getCheckoutAttemptId: () => string;
@@ -5694,7 +5675,7 @@ declare class Session {
5694
5675
  /**
5695
5676
  * Submits session payment additional details
5696
5677
  */
5697
- submitDetails(data: AdditionalDetailsStateData['data']): Promise<CheckoutSessionDetailsResponse>;
5678
+ submitDetails(data: AdditionalDetailsData['data']): Promise<CheckoutSessionDetailsResponse>;
5698
5679
  /**
5699
5680
  * Checks the balance for a payment method
5700
5681
  */
@@ -5731,7 +5712,6 @@ declare class CardElement extends UIElement<CardConfiguration> {
5731
5712
  constructor(checkout: ICore, props?: CardConfiguration);
5732
5713
  protected static defaultProps: {
5733
5714
  onBinLookup: () => void;
5734
- showFormInstruction: boolean;
5735
5715
  _disableClickToPay: boolean;
5736
5716
  };
5737
5717
  setStatus(status: UIElementStatus, props?: any): this;
@@ -5773,55 +5753,56 @@ declare class CardElement extends UIElement<CardConfiguration> {
5773
5753
  */
5774
5754
  clickToPayConfiguration: {
5775
5755
  disableOtpAutoFocus: boolean;
5776
- shopperEmail: any;
5777
- telephoneNumber: any;
5756
+ shopperEmail: string;
5757
+ telephoneNumber: string;
5778
5758
  locale: string;
5779
5759
  merchantDisplayName?: string;
5780
5760
  onReady?(): void;
5781
5761
  onTimeout?(error: TimeoutError): void;
5782
5762
  };
5783
- _disableClickToPay?: boolean;
5784
- fundingSource?: "debit" | "credit";
5785
- type?: string;
5763
+ autoFocus?: boolean;
5764
+ billingAddressAllowedCountries?: string[];
5765
+ billingAddressMode?: "none" | "full" | "partial";
5766
+ billingAddressRequiredFields?: string[];
5786
5767
  brands?: string[];
5787
- positionHolderNameOnTop?: boolean;
5788
- showBrandIcon?: boolean;
5789
- showFormInstruction?: boolean;
5790
- showContextualElement?: boolean;
5791
- hideCVC?: boolean;
5792
- hasHolderName?: boolean;
5793
- placeholders?: Partial<Record<"holderName" | "cardNumber" | "expiryDate" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
5794
- challengeWindowSize?: "01" | "02" | "03" | "04" | "05";
5768
+ challengeWindowSize?: "02" | "01" | "03" | "04" | "05";
5795
5769
  data?: {
5796
5770
  holderName?: string;
5797
5771
  billingAddress?: Partial<AddressData>;
5798
5772
  };
5799
- onLoad?: (event: CbObjOnLoad) => void;
5773
+ _disableClickToPay?: boolean;
5774
+ disableIOSArrowKeys?: boolean;
5775
+ disclaimerMessage?: DisclaimerMsgObject;
5776
+ doBinLookup?: boolean;
5777
+ expiryMonth?: string;
5778
+ exposeExpiryDate?: boolean;
5779
+ forceCompat?: boolean;
5780
+ fundingSource?: "debit" | "credit";
5781
+ hasHolderName?: boolean;
5782
+ hideCVC?: boolean;
5783
+ id?: string;
5784
+ keypadFix?: boolean;
5785
+ lastFour?: string;
5786
+ legacyInputMode?: boolean;
5787
+ maskSecurityCode?: boolean;
5788
+ minimumExpiryDate?: string[];
5789
+ name?: string;
5790
+ onBinLookup?: (event: CbObjOnBinLookup) => void;
5791
+ onBinValue?: (event: CbObjOnBinValue) => void;
5792
+ onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
5793
+ onBrand?: (event: CbObjOnBrand) => void;
5800
5794
  onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
5801
5795
  onFieldValid?: (event: CbObjOnFieldValid) => void;
5802
- onBrand?: (event: CbObjOnBrand) => void;
5803
5796
  onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
5804
- onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
5805
- onBinValue?: (event: CbObjOnBinValue) => void;
5806
- onBinLookup?: (event: CbObjOnBinLookup) => void;
5807
- lastFour?: string;
5808
- billingAddressMode?: "none" | "full" | "partial";
5809
- billingAddressRequiredFields?: string[];
5810
- billingAddressAllowedCountries?: string[];
5811
- id?: string;
5797
+ onLoad?: (event: CbObjOnLoad) => void;
5798
+ placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
5799
+ positionHolderNameOnTop?: boolean;
5800
+ showBrandIcon?: boolean;
5801
+ showContextualElement?: boolean;
5812
5802
  showInstallmentAmounts?: boolean;
5813
- legacyInputMode?: boolean;
5814
- minimumExpiryDate?: string[];
5815
- autoFocus?: boolean;
5816
- maskSecurityCode?: boolean;
5817
- doBinLookup?: boolean;
5818
- disableIOSArrowKeys?: boolean;
5819
- disclaimerMessage?: DisclaimerMsgObject;
5820
5803
  styles?: StylesObject;
5821
5804
  supportedShopperInteractions?: string[];
5822
- keypadFix?: boolean;
5823
- expiryMonth?: string;
5824
- exposeExpiryDate?: boolean;
5805
+ type?: string;
5825
5806
  order?: Order;
5826
5807
  modules?: {
5827
5808
  srPanel?: SRPanel;
@@ -5830,30 +5811,19 @@ declare class CardElement extends UIElement<CardConfiguration> {
5830
5811
  risk?: RiskElement;
5831
5812
  };
5832
5813
  isDropin?: boolean;
5814
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
5815
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
5816
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
5833
5817
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
5834
5818
  url: string;
5835
5819
  method: string;
5836
5820
  data?: any;
5837
5821
  }) => void;
5838
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
5839
- resolve: (data: any) => void;
5840
- reject: () => void;
5841
- }) => void;
5842
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
5843
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
5844
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
5845
- }) => void;
5846
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
5847
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
5848
- reject: () => void;
5849
- }) => void;
5850
- onPaymentFailed?: (data?: SessionsResponse | {
5851
- resultCode: ResultCode;
5852
- }, element?: UIElement<UIElementProps>) => void;
5853
- onPaymentCompleted?: (data: SessionsResponse | {
5854
- resultCode: ResultCode;
5855
- donationToken?: string;
5856
- }, element?: UIElement<UIElementProps>) => void;
5822
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
5823
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
5824
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
5825
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
5826
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
5857
5827
  onOrderUpdated?: (data: {
5858
5828
  order: Order;
5859
5829
  }) => void;
@@ -5861,17 +5831,13 @@ declare class CardElement extends UIElement<CardConfiguration> {
5861
5831
  resolve: (response: PaymentMethodsResponse) => void;
5862
5832
  reject: () => void;
5863
5833
  }) => void;
5864
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
5865
- onActionHandled?: (data: ActionHandledReturnObject) => void;
5866
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
5867
5834
  environment?: string;
5868
5835
  session?: Session;
5869
5836
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
5870
5837
  isInstantPayment?: boolean;
5871
5838
  isStoredPaymentMethod?: boolean;
5872
5839
  oneClick?: boolean;
5873
- statusType?: "redirect" | "custom" | "loading";
5874
- name?: string;
5840
+ statusType?: "custom" | "loading" | "redirect";
5875
5841
  amount?: PaymentAmount;
5876
5842
  secondaryAmount?: PaymentAmountExtended;
5877
5843
  showPayButton?: boolean;
@@ -5973,30 +5939,19 @@ declare class PayMeElement extends QRLoaderContainer {
5973
5939
  risk?: RiskElement;
5974
5940
  };
5975
5941
  isDropin?: boolean;
5942
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
5943
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
5944
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
5976
5945
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
5977
5946
  url: string;
5978
5947
  method: string;
5979
5948
  data?: any;
5980
5949
  }) => void;
5981
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
5982
- resolve: (data: any) => void;
5983
- reject: () => void;
5984
- }) => void;
5985
- onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
5986
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
5987
- reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
5988
- }) => void;
5989
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
5990
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
5991
- reject: () => void;
5992
- }) => void;
5993
- onPaymentFailed?: (data?: SessionsResponse | {
5994
- resultCode: ResultCode;
5995
- }, element?: UIElement<UIElementProps>) => void;
5996
- onPaymentCompleted?: (data: SessionsResponse | {
5997
- resultCode: ResultCode;
5998
- donationToken?: string;
5999
- }, element?: UIElement<UIElementProps>) => void;
5950
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
5951
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
5952
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
5953
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
5954
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
6000
5955
  onOrderUpdated?: (data: {
6001
5956
  order: Order;
6002
5957
  }) => void;
@@ -6004,9 +5959,6 @@ declare class PayMeElement extends QRLoaderContainer {
6004
5959
  resolve: (response: PaymentMethodsResponse) => void;
6005
5960
  reject: () => void;
6006
5961
  }) => void;
6007
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
6008
- onActionHandled?: (data: ActionHandledReturnObject) => void;
6009
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
6010
5962
  environment?: string;
6011
5963
  session?: Session;
6012
5964
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
@@ -6014,7 +5966,7 @@ declare class PayMeElement extends QRLoaderContainer {
6014
5966
  isStoredPaymentMethod?: boolean;
6015
5967
  oneClick?: boolean;
6016
5968
  storedPaymentMethodId?: string;
6017
- statusType?: "redirect" | "custom" | "loading";
5969
+ statusType?: "custom" | "loading" | "redirect";
6018
5970
  name?: string;
6019
5971
  icon?: string;
6020
5972
  amount?: PaymentAmount;
@@ -6031,26 +5983,8 @@ declare class PayMeElement extends QRLoaderContainer {
6031
5983
  };
6032
5984
  }
6033
5985
 
6034
- declare class ANCVElement extends UIElement<ANCVConfiguration> {
6035
- static type: string;
6036
- /**
6037
- * Formats the component data output
6038
- */
6039
- formatData(): {
6040
- paymentMethod: {
6041
- type: string;
6042
- beneficiaryId: any;
6043
- };
6044
- };
6045
- private onOrderRequest;
6046
- createOrder: () => false | Promise<void>;
6047
- payButton: (props: any) => h.JSX.Element;
6048
- get isValid(): boolean;
6049
- get displayName(): string;
6050
- render(): h.JSX.Element;
6051
- }
6052
-
6053
5986
  declare class DropinElement extends UIElement<DropinConfiguration> implements IDropin {
5987
+ static type: TxVariants;
6054
5988
  protected static defaultProps: DropinConfiguration;
6055
5989
  dropinRef: any;
6056
5990
  private paymentMethodsConfiguration;
@@ -6068,11 +6002,13 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
6068
6002
  showStoredPaymentMethods?: boolean;
6069
6003
  disableFinalAnimation?: boolean;
6070
6004
  showPaymentMethods?: boolean;
6005
+ openPaymentMethod?: {
6006
+ type: string;
6007
+ };
6071
6008
  openFirstStoredPaymentMethod?: boolean;
6072
6009
  openFirstPaymentMethod?: boolean;
6073
- onSubmit?: (data: any, component: any) => void;
6074
- onReady?: () => void;
6075
- onSelect?: (paymentMethod: UIElement<UIElementProps>) => void;
6010
+ onReady?(): void;
6011
+ onSelect?(paymentMethod: UIElement<UIElementProps>): void;
6076
6012
  showRemovePaymentMethodButton?: boolean;
6077
6013
  showRadioButton?: boolean;
6078
6014
  onDisableStoredPaymentMethod?: (storedPaymentMethod: any, resolve: any, reject: any) => void;
@@ -6083,26 +6019,19 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
6083
6019
  risk?: RiskElement;
6084
6020
  };
6085
6021
  isDropin?: boolean;
6022
+ onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
6023
+ onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
6024
+ onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
6086
6025
  beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
6087
6026
  url: string;
6088
6027
  method: string;
6089
6028
  data?: any;
6090
6029
  }) => void;
6091
- beforeSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
6092
- resolve: (data: any) => void;
6093
- reject: () => void;
6094
- }) => void;
6095
- onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
6096
- resolve: (response: CheckoutAdvancedFlowResponse) => void;
6097
- reject: () => void;
6098
- }) => void;
6099
- onPaymentFailed?: (data?: SessionsResponse | {
6100
- resultCode: ResultCode;
6101
- }, element?: UIElement<UIElementProps>) => void;
6102
- onPaymentCompleted?: (data: SessionsResponse | {
6103
- resultCode: ResultCode;
6104
- donationToken?: string;
6105
- }, element?: UIElement<UIElementProps>) => void;
6030
+ beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
6031
+ onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
6032
+ onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
6033
+ onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
6034
+ onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
6106
6035
  onOrderUpdated?: (data: {
6107
6036
  order: Order;
6108
6037
  }) => void;
@@ -6110,9 +6039,6 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
6110
6039
  resolve: (response: PaymentMethodsResponse) => void;
6111
6040
  reject: () => void;
6112
6041
  }) => void;
6113
- onChange?: (state: any, element: UIElement<UIElementProps>) => void;
6114
- onActionHandled?: (data: ActionHandledReturnObject) => void;
6115
- onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
6116
6042
  environment?: string;
6117
6043
  session?: Session;
6118
6044
  onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
@@ -6120,7 +6046,7 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
6120
6046
  isStoredPaymentMethod?: boolean;
6121
6047
  oneClick?: boolean;
6122
6048
  storedPaymentMethodId?: string;
6123
- statusType?: "redirect" | "custom" | "loading";
6049
+ statusType?: "custom" | "loading" | "redirect";
6124
6050
  type: string;
6125
6051
  name?: string;
6126
6052
  icon?: string;
@@ -6195,13 +6121,19 @@ declare const index_d_ThreeDS2DeviceFingerprint: typeof ThreeDS2DeviceFingerprin
6195
6121
  type index_d_UPI = UPI;
6196
6122
  declare const index_d_UPI: typeof UPI;
6197
6123
  declare namespace index_d {
6198
- export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, index_d_Affirm as Affirm, index_d_AfterPay as AfterPay, index_d_AfterPayB2B as AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, index_d_Atome as Atome, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, BankTransferElement as BankTransfer, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, BlikElement as Blik, BoletoElement as Boleto, CardElement as Card, index_d_CashAppPay as CashAppPay, ClickToPayElement as ClickToPay, index_d_CustomCard as CustomCard, DokuElement as Doku, DonationElement as Donation, DotpayElement as Dotpay, DragonpayElement as Dragonpay, DropinElement as Dropin, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, GiftcardElement as Giftcard, GiropayElement as Giropay, index_d_GooglePay as GooglePay, IdealElement as Ideal, KlarnaPayments as Klarna, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, OnlineBankingCZElement as OnlineBankingCZ, index_d_OnlineBankingFI as OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, index_d_OnlineBankingPL as OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, OxxoElement as Oxxo, index_d_PayByBank as PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, PixElement as Pix, PromptPayElement as PromptPay, index_d_RatePay as RatePay, index_d_RatePayDirectDebit as RatePayDirectDebit, RedirectElement as Redirect, index_d_Riverty as Riverty, SepaElement as SepaDirectDebit, SwishElement as Swish, index_d_ThreeDS2Challenge as ThreeDS2Challenge, index_d_ThreeDS2DeviceFingerprint as ThreeDS2DeviceFingerprint, TrustlyElement as Trustly, TwintElement as Twint, index_d_UPI as UPI, VippsElement as Vipps, WalletINElement as WalletIN, WeChatPayElement as WeChat };
6124
+ export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, index_d_Affirm as Affirm, index_d_AfterPay as AfterPay, index_d_AfterPayB2B as AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, index_d_Atome as Atome, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, BankTransferElement as BankTransfer, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, BlikElement as Blik, BoletoElement as Boleto, CardElement as Card, index_d_CashAppPay as CashAppPay, ClickToPayElement as ClickToPay, index_d_CustomCard as CustomCard, DokuElement as Doku, DonationElement as Donation, DotpayElement as Dotpay, DragonpayElement as Dragonpay, DropinElement as Dropin, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, GiftcardElement as Giftcard, GiropayElement as Giropay, index_d_GooglePay as GooglePay, KlarnaPayments as Klarna, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, OnlineBankingCZElement as OnlineBankingCZ, index_d_OnlineBankingFI as OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, index_d_OnlineBankingPL as OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, OxxoElement as Oxxo, index_d_PayByBank as PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, PixElement as Pix, PromptPayElement as PromptPay, index_d_RatePay as RatePay, index_d_RatePayDirectDebit as RatePayDirectDebit, RedirectElement as Redirect, index_d_Riverty as Riverty, SepaElement as SepaDirectDebit, SwishElement as Swish, index_d_ThreeDS2Challenge as ThreeDS2Challenge, index_d_ThreeDS2DeviceFingerprint as ThreeDS2DeviceFingerprint, TrustlyElement as Trustly, TwintElement as Twint, index_d_UPI as UPI, VippsElement as Vipps, WalletINElement as WalletIN, WeChatPayElement as WeChat };
6199
6125
  }
6200
6126
 
6201
6127
  declare class Core implements ICore {
6202
6128
  session?: Session;
6203
6129
  paymentMethodsResponse: PaymentMethods$1;
6204
- modules: any;
6130
+ modules: Readonly<{
6131
+ risk: RiskElement;
6132
+ analytics: AnalyticsModule;
6133
+ resources: Resources;
6134
+ i18n: Language;
6135
+ srPanel: SRPanel;
6136
+ }>;
6205
6137
  options: CoreConfiguration;
6206
6138
  analyticsContext: string;
6207
6139
  loadingContext: string;
@@ -6217,7 +6149,10 @@ declare class Core implements ICore {
6217
6149
  supportedTxVariants: Set<string>;
6218
6150
  add(...items: NewableComponent[]): void;
6219
6151
  getComponent(type: string): NewableComponent;
6220
- createComponentsMap(components: NewableComponent[]): {};
6152
+ createComponentsMap(components: NewableComponent[]): {}; /**
6153
+ * Used internally by the PaymentMethod components to auto-register themselves
6154
+ * @internal
6155
+ */
6221
6156
  };
6222
6157
  static setBundleType(type: string): void;
6223
6158
  static register(...items: NewableComponent[]): void;
@@ -6239,7 +6174,7 @@ declare class Core implements ICore {
6239
6174
  * @see {https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Components&version=5.55.1#handle-the-redirect}
6240
6175
  * @param details - Details object containing the redirectResult
6241
6176
  */
6242
- submitDetails(details: AdditionalDetailsStateData['data']): void;
6177
+ submitDetails(details: AdditionalDetailsData['data']): void;
6243
6178
  /**
6244
6179
  * Instantiates a new element component ready to be mounted from an action object
6245
6180
  *
@@ -6247,7 +6182,7 @@ declare class Core implements ICore {
6247
6182
  * @param options - options that will be merged to the global Checkout props
6248
6183
  * @returns new UIElement
6249
6184
  */
6250
- createFromAction(action: PaymentAction, options?: {}): any;
6185
+ createFromAction(action: PaymentAction, options?: {}): UIElement;
6251
6186
  /**
6252
6187
  * Updates global configurations, resets the internal state and remounts each element.
6253
6188
  *
@@ -6283,8 +6218,8 @@ declare class Core implements ICore {
6283
6218
 
6284
6219
  declare function AdyenCheckout(props: CoreConfiguration): Promise<Core>;
6285
6220
  declare namespace AdyenCheckout {
6286
- var register: (...items: (new (checkout: ICore, props: any) => IUIElement)[]) => void;
6221
+ var register: (...items: (new (checkout: ICore, props: any) => UIElement<UIElementProps>)[]) => void;
6287
6222
  var setBundleType: (type: string) => void;
6288
6223
  }
6289
6224
 
6290
- export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type AdditionalDetailsStateData, AddressElement as Address, type AddressData, type AddressField, AdyenCheckout, type AdyenEnvironment, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, type AmazonPayBackendConfiguration, type AmazonPayButtonProps, type AmazonPayButtonSettings, type AmazonPayComponentProps, type AmazonPayConfiguration, type AmazonPayElementData, type AnalyticsModule, ApplePayElement as ApplePay, type ApplePayButtonType, type ApplePayConfiguration, type ApplePayElementData, type ApplePayPaymentAuthorizationResult, type ApplePayPaymentOrderDetails, type ApplePaySessionRequest, Atome, type AwaitComponentProps, type AwaitConfiguration, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, type BankDetailsSchema, BankTransferElement as BankTransfer, type BankTransferConfiguration, type BankTransferSchema, type BankTransferState, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, type BinLookupResponse, type BinLookupResponseRaw, BlikElement as Blik, BoletoElement as Boleto, type BoletoElementProps, type BoletoInputDataState, type BoletoInputErrorState, type BoletoInputValidState, type BrandConfiguration, type BrandObject, type BrowserInfo, type CReqData, CardElement as Card, type CardBackendConfiguration, type CardBrandsConfiguration, type CardConfiguration, type CardElementData, CashAppPay, type CashAppPayConfiguration, type CashAppPayElementData, type CashAppPayEventData, type ChallengeData, type 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 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, IdealElement as Ideal, type InstantPaymentTypes, type Intent, type IssuerListConfiguration, type IssuerListData, type KlarnConfiguration, KlarnaPayments as Klarna, type KlarnaSdkData, type KlarnaWidgetAuthorizeResponse, type KlarnaWidgetProps, type LedgerCurrencies, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, type MultibancoVoucherResultProps, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, type OpenInvoiceActiveFieldsets, type OpenInvoiceConfiguration, type OpenInvoiceFieldsetsRefs, type OpenInvoiceProps, type OpenInvoiceStateData, type OpenInvoiceStateError, type OpenInvoiceStateValid, type OpenInvoiceVisibility, type Order, type OrderButtonProps, type OrderStatus, OxxoElement as Oxxo, type OxxoElementData, type OxxoVoucherResultProps, PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, type PayPalConfiguration, type PayloadJSON, type PaymentAction, type PaymentActionsType, type PaymentAmount, type PaymentAmountExtended, type PaymentData, type PaymentMethod, type PaymentMethodData, type PaymentMethodGroup, type PaymentMethodOptions, type PaymentMethods, type PaymentMethodsConfiguration, type PaymentMethodsRequestData, type PaymentMethodsResponse, type PaymentResponseData, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, type PersonalDetailsSchema, PixElement as Pix, type PixConfiguration, type PixElementData, type PostMsgParseErrorObject, type ProcessedResponse, PromptPayElement as PromptPay, type QRLoaderConfiguration, RatePay, RatePayDirectDebit, type RawPaymentResponse, type RecurringMetadata, RedirectElement as Redirect, type RedirectConfiguration, type Region, type ResultCode, type ResultObject, type ResultValue, Riverty, type SepaConfiguration, SepaElement as SepaDirectDebit, type SepaElementData, type SessionsResponse, type SignOutButtonProps, type SocialSecurityMode, type StatusObject, type StoredPaymentMethod, type SupportedLocale, SwishElement as Swish, ThreeDS2Challenge, type ThreeDS2ChallengeConfiguration, ThreeDS2DeviceFingerprint, type ThreeDS2DeviceFingerprintConfiguration, type ThreeDS2FingerprintResponse, type ThreeDS2FlowObject, type ThreeDS2Token, TrustlyElement as Trustly, TwintElement as Twint, UPI, type UPIConfiguration, type UpdateAmazonCheckoutSessionRequest, type UpiMode, type UpiPaymentData, type ValidationError, VippsElement as Vipps, type VoucherConfiguration, type VoucherDetail, type VoucherProps, WalletINElement as WalletIN, WeChatPayElement as WeChat, type balanceCheckResponseType, index_d as components, type onBalanceCheckCallbackType, type onOrderCancelData, type onOrderCancelType, type onOrderRequestCallbackType };
6225
+ 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 OxxoElementData, 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 };