@paydock/client-sdk 1.103.11-beta → 1.104.3-beta

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 (486) hide show
  1. package/README.md +122 -349
  2. package/bundles/index.cjs +10674 -0
  3. package/bundles/index.cjs.d.ts +3163 -0
  4. package/bundles/index.cjs.map +1 -0
  5. package/bundles/index.mjs +10642 -0
  6. package/bundles/index.mjs.d.ts +3163 -0
  7. package/bundles/index.mjs.map +1 -0
  8. package/{lib → bundles/types}/api/api-base.d.ts +2 -1
  9. package/bundles/types/api/api-base.d.ts.map +1 -0
  10. package/{lib → bundles/types}/api/api-charge-internal.d.ts +1 -0
  11. package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
  12. package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
  13. package/bundles/types/api/api-charge.d.ts.map +1 -0
  14. package/{lib → bundles/types}/api/api-internal.d.ts +1 -0
  15. package/bundles/types/api/api-internal.d.ts.map +1 -0
  16. package/{lib → bundles/types}/api/api-service-internal.d.ts +1 -0
  17. package/bundles/types/api/api-service-internal.d.ts.map +1 -0
  18. package/{lib → bundles/types}/api/api.d.ts +1 -0
  19. package/bundles/types/api/api.d.ts.map +1 -0
  20. package/bundles/types/api/index.d.ts +2 -0
  21. package/bundles/types/api/index.d.ts.map +1 -0
  22. package/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
  23. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
  24. package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
  25. package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
  26. package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +1 -0
  27. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
  28. package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
  29. package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
  30. package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
  31. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
  32. package/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
  33. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
  34. package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +1 -0
  35. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
  36. package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
  37. package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
  38. package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
  39. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
  40. package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +1 -0
  41. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
  42. package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
  43. package/bundles/types/checkout-button/index.d.ts.map +1 -0
  44. package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
  45. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
  46. package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
  47. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
  48. package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
  49. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
  50. package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +2 -1
  51. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
  52. package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
  53. package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
  54. package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +2 -1
  55. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
  56. package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
  57. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
  58. package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
  59. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
  60. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
  61. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
  62. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
  63. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
  64. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
  65. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
  66. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
  67. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
  68. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
  69. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
  70. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
  71. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
  72. package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
  73. package/bundles/types/components/ability-guard.d.ts.map +1 -0
  74. package/{lib → bundles/types}/components/background.d.ts +1 -0
  75. package/bundles/types/components/background.d.ts.map +1 -0
  76. package/{lib → bundles/types}/components/container.d.ts +1 -1
  77. package/bundles/types/components/container.d.ts.map +1 -0
  78. package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
  79. package/bundles/types/components/dispatcher.d.ts.map +1 -0
  80. package/{lib → bundles/types}/components/element-style.d.ts +2 -1
  81. package/bundles/types/components/element-style.d.ts.map +1 -0
  82. package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
  83. package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
  84. package/{lib/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +1 -0
  85. package/bundles/types/components/form-interceptor.d.ts.map +1 -0
  86. package/{lib → bundles/types}/components/http-core.d.ts +1 -0
  87. package/bundles/types/components/http-core.d.ts.map +1 -0
  88. package/{lib → bundles/types}/components/iframe-event.d.ts +2 -0
  89. package/bundles/types/components/iframe-event.d.ts.map +1 -0
  90. package/{lib → bundles/types}/components/iframe.d.ts +1 -0
  91. package/bundles/types/components/iframe.d.ts.map +1 -0
  92. package/{lib → bundles/types}/components/link.d.ts +2 -1
  93. package/bundles/types/components/link.d.ts.map +1 -0
  94. package/{lib → bundles/types}/components/loader.d.ts +1 -0
  95. package/bundles/types/components/loader.d.ts.map +1 -0
  96. package/{lib → bundles/types}/components/param.d.ts +6 -5
  97. package/bundles/types/components/param.d.ts.map +1 -0
  98. package/{lib → bundles/types}/components/popup.d.ts +1 -0
  99. package/bundles/types/components/popup.d.ts.map +1 -0
  100. package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
  101. package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
  102. package/{lib → bundles/types}/components/trigger.d.ts +1 -0
  103. package/bundles/types/components/trigger.d.ts.map +1 -0
  104. package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
  105. package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
  106. package/{lib → bundles/types}/components/wallet-background.d.ts +2 -2
  107. package/bundles/types/components/wallet-background.d.ts.map +1 -0
  108. package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
  109. package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
  110. package/bundles/types/configs/env/environment.cba.d.ts +29 -0
  111. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
  112. package/bundles/types/configs/env/environment.interface.d.ts +12 -0
  113. package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
  114. package/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
  115. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
  116. package/bundles/types/configs/env/index.d.ts +3 -0
  117. package/bundles/types/configs/env/index.d.ts.map +1 -0
  118. package/{lib → bundles/types}/configs/sdk.d.ts +3 -2
  119. package/bundles/types/configs/sdk.d.ts.map +1 -0
  120. package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
  121. package/bundles/types/external-checkout/builder.d.ts.map +1 -0
  122. package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -0
  123. package/bundles/types/external-checkout/checker.d.ts.map +1 -0
  124. package/bundles/types/external-checkout/index.d.ts +3 -0
  125. package/bundles/types/external-checkout/index.d.ts.map +1 -0
  126. package/{lib → bundles/types}/helper/access-token.d.ts +1 -0
  127. package/bundles/types/helper/access-token.d.ts.map +1 -0
  128. package/{lib → bundles/types}/helper/browser.d.ts +1 -0
  129. package/bundles/types/helper/browser.d.ts.map +1 -0
  130. package/{lib → bundles/types}/helper/event-emitter.d.ts +1 -0
  131. package/bundles/types/helper/event-emitter.d.ts.map +1 -0
  132. package/{lib → bundles/types}/helper/event.d.ts +1 -0
  133. package/bundles/types/helper/event.d.ts.map +1 -0
  134. package/{lib → bundles/types}/helper/ms.d.ts +1 -0
  135. package/bundles/types/helper/ms.d.ts.map +1 -0
  136. package/{lib → bundles/types}/helper/object.d.ts +1 -0
  137. package/bundles/types/helper/object.d.ts.map +1 -0
  138. package/{lib → bundles/types}/helper/url.d.ts +1 -0
  139. package/bundles/types/helper/url.d.ts.map +1 -0
  140. package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
  141. package/bundles/types/helper/uuid.d.ts.map +1 -0
  142. package/bundles/types/index-cba.d.ts +13 -0
  143. package/bundles/types/index-cba.d.ts.map +1 -0
  144. package/bundles/types/index.d.ts +14 -0
  145. package/bundles/types/index.d.ts.map +1 -0
  146. package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
  147. package/bundles/types/payment-source/builder.d.ts.map +1 -0
  148. package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
  149. package/bundles/types/payment-source/index.d.ts.map +1 -0
  150. package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
  151. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
  152. package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
  153. package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
  154. package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
  155. package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
  156. package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -0
  157. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
  158. package/{lib → bundles/types}/secure-remote-commerce/index.d.ts +1 -0
  159. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
  160. package/{lib → bundles/types}/secure-remote-commerce/interfaces.d.ts +6 -5
  161. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
  162. package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -0
  163. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
  164. package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/helper.d.ts +1 -0
  165. package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts.map +1 -0
  166. package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/index.d.ts +1 -0
  167. package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts.map +1 -0
  168. package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/visa-src.d.ts +1 -0
  169. package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.d.ts.map +1 -0
  170. package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +1 -0
  171. package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts.map +1 -0
  172. package/{lib → bundles/types}/secure-remote-commerce/secure-remote-commerce.d.ts +1 -0
  173. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
  174. package/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
  175. package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
  176. package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
  177. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
  178. package/{lib → bundles/types}/wallet-buttons/afterpay.wallet-service.d.ts +1 -0
  179. package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +1 -0
  180. package/{lib → bundles/types}/wallet-buttons/apple.wallet-service.d.ts +1 -2
  181. package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +1 -0
  182. package/{lib → bundles/types}/wallet-buttons/flypay-v2.wallet-service.d.ts +2 -9
  183. package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +1 -0
  184. package/{lib → bundles/types}/wallet-buttons/flypay.wallet-service.d.ts +1 -0
  185. package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +1 -0
  186. package/{lib → bundles/types}/wallet-buttons/google.wallet-service.d.ts +1 -3
  187. package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +1 -0
  188. package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
  189. package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
  190. package/bundles/types/wallet-buttons/index.d.ts +2 -0
  191. package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
  192. package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -3
  193. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
  194. package/{lib → bundles/types}/wallet-buttons/mastercard.wallet-service.d.ts +1 -0
  195. package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +1 -0
  196. package/{lib → bundles/types}/wallet-buttons/paypal.wallet-service.d.ts +1 -0
  197. package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +1 -0
  198. package/{lib → bundles/types}/wallet-buttons/stripe.wallet-service.d.ts +1 -0
  199. package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +1 -0
  200. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +366 -0
  201. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
  202. package/{lib/wallet-buttons/wallet-buttons.d.ts → bundles/types/wallet-buttons/wallet-cba-buttons.d.ts} +114 -91
  203. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
  204. package/{lib → bundles/types}/wallet-buttons/wallet-service.d.ts +1 -7
  205. package/bundles/types/wallet-buttons/wallet-service.d.ts.map +1 -0
  206. package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
  207. package/bundles/types/widget/configuration.d.ts.map +1 -0
  208. package/{lib → bundles/types}/widget/html-multi-widget.d.ts +1 -0
  209. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
  210. package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
  211. package/bundles/types/widget/html-widget.d.ts.map +1 -0
  212. package/{lib → bundles/types}/widget/index.d.ts +2 -1
  213. package/bundles/types/widget/index.d.ts.map +1 -0
  214. package/{lib → bundles/types}/widget/meta.d.ts +1 -0
  215. package/bundles/types/widget/meta.d.ts.map +1 -0
  216. package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
  217. package/bundles/types/widget/multi-widget.d.ts.map +1 -0
  218. package/{lib → bundles/types}/widget/style.d.ts +1 -0
  219. package/bundles/types/widget/style.d.ts.map +1 -0
  220. package/bundles/widget.umd.js +6977 -7400
  221. package/bundles/widget.umd.js.d.ts +3163 -0
  222. package/bundles/widget.umd.js.map +1 -0
  223. package/bundles/widget.umd.js.min.d.ts +3163 -0
  224. package/bundles/widget.umd.min.js +2 -1
  225. package/bundles/widget.umd.min.js.map +1 -0
  226. package/docs/api-canvas3ds.md +158 -0
  227. package/docs/api-checkout-button.md +912 -0
  228. package/docs/api-examples.md +65 -0
  229. package/docs/api-ps-widget.md +585 -0
  230. package/docs/api-vault-display.md +94 -0
  231. package/docs/api-widget.md +2444 -0
  232. package/docs/api-wrapper.md +78 -0
  233. package/docs/canvas3ds-examples.md +242 -0
  234. package/docs/cba-header.md +13 -0
  235. package/docs/cba-license.md +2 -0
  236. package/docs/checkout-examples.md +248 -0
  237. package/docs/header.md +15 -0
  238. package/docs/html/layout.html +78 -0
  239. package/docs/html/marked.js +23 -0
  240. package/docs/html/style.css +365 -0
  241. package/docs/install/npm.content.md +16 -0
  242. package/docs/install/npm.example.md +24 -0
  243. package/docs/install/umd.content.md +20 -0
  244. package/docs/install/umd.example.md +6 -0
  245. package/docs/install.md +43 -0
  246. package/docs/install.readme.t.md +17 -0
  247. package/docs/install.slate.t.md +17 -0
  248. package/docs/license.md +2 -0
  249. package/docs/partials/header.hbs +3 -0
  250. package/docs/ps-examples.md +129 -0
  251. package/docs/secure-remote-commerce-examples.md +258 -0
  252. package/docs/secure-remote-commerce.md +265 -0
  253. package/docs/vault-display-example.md +132 -0
  254. package/docs/wallet-buttons-examples.md +580 -0
  255. package/docs/wallet-buttons.md +424 -0
  256. package/docs/wallet-cba-buttons-examples.md +388 -0
  257. package/docs/widget-examples.md +134 -0
  258. package/package.json +164 -42
  259. package/slate.md +107 -136
  260. package/.nvmrc +0 -1
  261. package/api.d.ts +0 -1
  262. package/api.js +0 -1
  263. package/canvas3ds.d.ts +0 -1
  264. package/canvas3ds.js +0 -1
  265. package/checkout-button.d.ts +0 -1
  266. package/checkout-button.js +0 -1
  267. package/inicialization-guide.md +0 -7
  268. package/lib/api/api-base.js +0 -101
  269. package/lib/api/api-base.js.map +0 -1
  270. package/lib/api/api-charge-internal.js +0 -30
  271. package/lib/api/api-charge-internal.js.map +0 -1
  272. package/lib/api/api-charge.js +0 -49
  273. package/lib/api/api-charge.js.map +0 -1
  274. package/lib/api/api-internal.js +0 -13
  275. package/lib/api/api-internal.js.map +0 -1
  276. package/lib/api/api-service-internal.js +0 -18
  277. package/lib/api/api-service-internal.js.map +0 -1
  278. package/lib/api/api.js +0 -61
  279. package/lib/api/api.js.map +0 -1
  280. package/lib/api/index.d.ts +0 -1
  281. package/lib/api/index.js +0 -2
  282. package/lib/api/index.js.map +0 -1
  283. package/lib/canvas-3ds/canvas-3ds.js +0 -156
  284. package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
  285. package/lib/canvas-3ds/index.js +0 -2
  286. package/lib/canvas-3ds/index.js.map +0 -1
  287. package/lib/canvas-3ds/services/gpayments-service.js +0 -181
  288. package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
  289. package/lib/canvas-3ds/services/index.js +0 -2
  290. package/lib/canvas-3ds/services/index.js.map +0 -1
  291. package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
  292. package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
  293. package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -49
  294. package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
  295. package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
  296. package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
  297. package/lib/checkout-button/checkout-button.interface.js +0 -45
  298. package/lib/checkout-button/checkout-button.interface.js.map +0 -1
  299. package/lib/checkout-button/checkout-button.js +0 -265
  300. package/lib/checkout-button/checkout-button.js.map +0 -1
  301. package/lib/checkout-button/checkout-contextual-handler.js +0 -75
  302. package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
  303. package/lib/checkout-button/index.js +0 -85
  304. package/lib/checkout-button/index.js.map +0 -1
  305. package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -24
  306. package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
  307. package/lib/checkout-button/paypal/paypal.runner.js +0 -14
  308. package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
  309. package/lib/checkout-button/runner/base.runner.js +0 -13
  310. package/lib/checkout-button/runner/base.runner.js.map +0 -1
  311. package/lib/checkout-button/runner/contextual.runner.js +0 -40
  312. package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
  313. package/lib/checkout-button/runner/index.js +0 -11
  314. package/lib/checkout-button/runner/index.js.map +0 -1
  315. package/lib/checkout-button/runner/popup.runner.js +0 -68
  316. package/lib/checkout-button/runner/popup.runner.js.map +0 -1
  317. package/lib/checkout-button/runner/redirect.runner.js +0 -15
  318. package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
  319. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -63
  320. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
  321. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
  322. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
  323. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
  324. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
  325. package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
  326. package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
  327. package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
  328. package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
  329. package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
  330. package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
  331. package/lib/components/ability-guard.js +0 -44
  332. package/lib/components/ability-guard.js.map +0 -1
  333. package/lib/components/background.js +0 -193
  334. package/lib/components/background.js.map +0 -1
  335. package/lib/components/container.js +0 -63
  336. package/lib/components/container.js.map +0 -1
  337. package/lib/components/dispatcher.js +0 -39
  338. package/lib/components/dispatcher.js.map +0 -1
  339. package/lib/components/element-style.js +0 -52
  340. package/lib/components/element-style.js.map +0 -1
  341. package/lib/components/flypay-iframe-event.js +0 -28
  342. package/lib/components/flypay-iframe-event.js.map +0 -1
  343. package/lib/components/form-Interceptor.js +0 -38
  344. package/lib/components/form-Interceptor.js.map +0 -1
  345. package/lib/components/http-core.js +0 -57
  346. package/lib/components/http-core.js.map +0 -1
  347. package/lib/components/iframe-event.js +0 -84
  348. package/lib/components/iframe-event.js.map +0 -1
  349. package/lib/components/iframe.js +0 -62
  350. package/lib/components/iframe.js.map +0 -1
  351. package/lib/components/link.js +0 -59
  352. package/lib/components/link.js.map +0 -1
  353. package/lib/components/loader.js +0 -234
  354. package/lib/components/loader.js.map +0 -1
  355. package/lib/components/param.js +0 -147
  356. package/lib/components/param.js.map +0 -1
  357. package/lib/components/popup.js +0 -104
  358. package/lib/components/popup.js.map +0 -1
  359. package/lib/components/storage-dispatcher.js +0 -75
  360. package/lib/components/storage-dispatcher.js.map +0 -1
  361. package/lib/components/trigger.js +0 -49
  362. package/lib/components/trigger.js.map +0 -1
  363. package/lib/components/vault-display-iframe-event.js +0 -27
  364. package/lib/components/vault-display-iframe-event.js.map +0 -1
  365. package/lib/components/wallet-background.js +0 -63
  366. package/lib/components/wallet-background.js.map +0 -1
  367. package/lib/components/wallet-trigger.js +0 -27
  368. package/lib/components/wallet-trigger.js.map +0 -1
  369. package/lib/configs/env/env.js +0 -117
  370. package/lib/configs/env/env.js.map +0 -1
  371. package/lib/configs/sdk.js +0 -16
  372. package/lib/configs/sdk.js.map +0 -1
  373. package/lib/external-checkout/builder.js +0 -45
  374. package/lib/external-checkout/builder.js.map +0 -1
  375. package/lib/external-checkout/checker.js +0 -22
  376. package/lib/external-checkout/checker.js.map +0 -1
  377. package/lib/external-checkout/index.d.ts +0 -2
  378. package/lib/external-checkout/index.js +0 -3
  379. package/lib/external-checkout/index.js.map +0 -1
  380. package/lib/helper/access-token.js +0 -44
  381. package/lib/helper/access-token.js.map +0 -1
  382. package/lib/helper/browser.js +0 -79
  383. package/lib/helper/browser.js.map +0 -1
  384. package/lib/helper/event-emitter.js +0 -23
  385. package/lib/helper/event-emitter.js.map +0 -1
  386. package/lib/helper/event.js +0 -23
  387. package/lib/helper/event.js.map +0 -1
  388. package/lib/helper/ms.js +0 -32
  389. package/lib/helper/ms.js.map +0 -1
  390. package/lib/helper/object.js +0 -6
  391. package/lib/helper/object.js.map +0 -1
  392. package/lib/helper/url.js +0 -11
  393. package/lib/helper/url.js.map +0 -1
  394. package/lib/helper/uuid.js +0 -26
  395. package/lib/helper/uuid.js.map +0 -1
  396. package/lib/index.d.ts +0 -15
  397. package/lib/index.js +0 -15
  398. package/lib/index.js.map +0 -1
  399. package/lib/payment-source/builder.js +0 -49
  400. package/lib/payment-source/builder.js.map +0 -1
  401. package/lib/payment-source/index.js +0 -2
  402. package/lib/payment-source/index.js.map +0 -1
  403. package/lib/payment-source-widget/html-payment-source-widget.js +0 -167
  404. package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
  405. package/lib/payment-source-widget/index.js +0 -35
  406. package/lib/payment-source-widget/index.js.map +0 -1
  407. package/lib/payment-source-widget/interfaces.js +0 -2
  408. package/lib/payment-source-widget/interfaces.js.map +0 -1
  409. package/lib/payment-source-widget/payment-source-widget.js +0 -141
  410. package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
  411. package/lib/secure-remote-commerce/index.js +0 -2
  412. package/lib/secure-remote-commerce/index.js.map +0 -1
  413. package/lib/secure-remote-commerce/interfaces.js +0 -28
  414. package/lib/secure-remote-commerce/interfaces.js.map +0 -1
  415. package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
  416. package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
  417. package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
  418. package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
  419. package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
  420. package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
  421. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
  422. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
  423. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
  424. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
  425. package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -238
  426. package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
  427. package/lib/vault-display-widget/index.js +0 -14
  428. package/lib/vault-display-widget/index.js.map +0 -1
  429. package/lib/vault-display-widget/vault-display-widget.js +0 -98
  430. package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
  431. package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
  432. package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
  433. package/lib/wallet-buttons/apple.wallet-service.js +0 -324
  434. package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
  435. package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -165
  436. package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
  437. package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
  438. package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
  439. package/lib/wallet-buttons/google.wallet-service.js +0 -301
  440. package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
  441. package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +0 -3
  442. package/lib/wallet-buttons/helpers/flypay-v2.helper.js +0 -151
  443. package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +0 -1
  444. package/lib/wallet-buttons/index.d.ts +0 -127
  445. package/lib/wallet-buttons/index.js +0 -128
  446. package/lib/wallet-buttons/index.js.map +0 -1
  447. package/lib/wallet-buttons/interfaces.js +0 -1
  448. package/lib/wallet-buttons/interfaces.js.map +0 -1
  449. package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
  450. package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
  451. package/lib/wallet-buttons/paypal.wallet-service.js +0 -144
  452. package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
  453. package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
  454. package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
  455. package/lib/wallet-buttons/wallet-buttons.js +0 -478
  456. package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
  457. package/lib/wallet-buttons/wallet-service.js +0 -60
  458. package/lib/wallet-buttons/wallet-service.js.map +0 -1
  459. package/lib/widget/configuration.js +0 -259
  460. package/lib/widget/configuration.js.map +0 -1
  461. package/lib/widget/html-multi-widget.js +0 -380
  462. package/lib/widget/html-multi-widget.js.map +0 -1
  463. package/lib/widget/html-widget.js +0 -126
  464. package/lib/widget/html-widget.js.map +0 -1
  465. package/lib/widget/index.js +0 -132
  466. package/lib/widget/index.js.map +0 -1
  467. package/lib/widget/meta.js +0 -8
  468. package/lib/widget/meta.js.map +0 -1
  469. package/lib/widget/multi-widget.js +0 -436
  470. package/lib/widget/multi-widget.js.map +0 -1
  471. package/lib/widget/style.js +0 -204
  472. package/lib/widget/style.js.map +0 -1
  473. package/payment-source-widget.d.ts +0 -1
  474. package/payment-source-widget.js +0 -1
  475. package/tslint.json +0 -130
  476. package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
  477. package/typings/globals/jasmine/index.d.ts +0 -576
  478. package/typings/globals/jasmine-ajax/index.d.ts +0 -83
  479. package/typings/globals/jquery/index.d.ts +0 -3759
  480. package/typings/index.d.ts +0 -4
  481. package/vault-display-widget.d.ts +0 -1
  482. package/vault-display-widget.js +0 -1
  483. package/vendors/zipmoney.d.ts +0 -18
  484. package/vendors/zipmoney.js +0 -2
  485. package/widget.d.ts +0 -1
  486. package/widget.js +0 -1
package/README.md CHANGED
@@ -16,76 +16,78 @@ Also you will need added gateway ([see API Reference by gateway](https://docs.pa
16
16
 
17
17
  ## Get started
18
18
 
19
- ### With package manager
20
-
21
- To install with package manager, enter the following command:
22
-
23
- `npm install @paydock/client-sdk`
24
-
25
-
26
- You can use ES2015 or TypeScript modules
27
-
28
- `@paydock/client-sdk/widget`
29
-
19
+ The Client SDK ships in JavaScript ES6 (EcmaScript 2015) in three different
20
+ formats (CJS, ESM and UMD) along with respective TypeScript declarations. Below,
21
+ we exemplify how to import each format.
30
22
 
31
- Also can use UMD module (global visibility, see above)
32
-
33
- `@paydock/client-sdk/bundles/widget.umd.js`
34
-
35
- `@paydock/client-sdk/bundles/widget.umd.min.js`
23
+ ### With package manager
36
24
 
25
+ Our NPM package is compatible with all package managers (e.g., `npm`, `yarn`,
26
+ `pnpm`, `bun`). Using `npm` the following command would add the Client SDK as a
27
+ production dependency.
37
28
 
29
+ ```bash
30
+ npm install @paydock/client-sdk
31
+ ```
38
32
 
39
- ```javascript--es2015
40
- // ES2015 / TypeScript
33
+ After installation is complete, if you are developing in NodeJS environments or
34
+ using tools that expect your JavaScript code to be in CJS format (e.g., Jest,
35
+ Karma, RequireJS, Webpack), you can import the Client SDK using CommonJS modules.
36
+ For these environments the UMD format (`@paydock/client-sdk/bundles/widget.umd.js`)
37
+ can also be used as a fallback. Alternatively, in case you are developing in
38
+ projects that have access to modern bundlers such as Vite or others (e.g., SPA
39
+ libs or SSR Metaframeworks), you can import the Client SDK features using ESM
40
+ through named imports or namespaced imports.
41
41
 
42
- import { HtmlWidget } from '@paydock/client-sdk/widget';
43
42
 
44
- let widget = new HtmlWidget('#selector', 'publicKey', 'gatewayId');
43
+ ```cjs
44
+ // module import - CommonJS/Node projects ✅
45
+ const paydock = require('@paydock/client-sdk')
46
+ const api = new paydock.Api('publicKey');
45
47
  ```
46
48
 
49
+ ```mjs
50
+ // named import - ESM projects or TypeScript projects ✅
51
+ import { HtmlWidget } from '@paydock/client-sdk'
52
+ const widget = new HtmlWidget('#selector', 'publicKey', 'gatewayId');
53
+ ```
47
54
 
48
- ```html
49
- <script src="@paydock/client-sdk/bundles/widget.umd.min.js"></script>
50
- <script>
51
- var widget = new paydock.HtmlWidget('#tag', 'publicKey', 'gatewayId');
52
- </script>
55
+ ```mjs
56
+ // namespaced import - ESM projects or TypeScript projects ✅
57
+ import * as Paydock from '@paydock/client-sdk'
58
+ const widget = new Paydock.HtmlWidget('#selector', 'publicKey', 'gatewayId');
53
59
  ```
54
60
 
61
+ ```js
62
+ // default import - We do not provide default exports. They are handled differently by different tools!
63
+
64
+ import paydock from '@paydock/client-sdk'
65
+ >>> "Uncaught SyntaxError: The requested module does not provide an export named 'default'"
66
+ ```
55
67
 
56
68
 
57
69
  ### Download from CDN
58
70
 
59
- You should begin by including the library in your page.
60
-
61
- Add this script tag to your page to get started with with the url below:
71
+ For browser environments, you can import the Client SDK directly from our CDN to
72
+ your project's HTML. To accomplish this, include the Client SDK in your page
73
+ using one and only of the two script tags below. After this step you will be
74
+ able to access the Client SDK features via the global variable `paydock`.
62
75
 
63
- *Compressed version for production*
64
- `https://widget.paydock.com/sdk/latest/widget.umd.min.js`
76
+ For production we recommend using the compressed version (`.min.js`) since
77
+ it will result in faster loading times for your end users.
65
78
 
66
- *Full version for development and debug*
67
- `https://widget.paydock.com/sdk/latest/widget.umd.js`
79
+ - *Compressed version for production: `https://widget.paydock.com/sdk/latest/widget.umd.min.js`*
68
80
 
81
+ - *Full version for development and debug: `https://widget.paydock.com/sdk/latest/widget.umd.js`*
69
82
 
70
-
71
-
72
- Also can download library the [production version][min] or the [development version][max]
83
+ You may download the production version of the Client SDK scripts [here][min],
84
+ and, the development version [here][max].
73
85
 
74
86
  [min]: https://widget.paydock.com/sdk/latest/widget.umd.min.js
75
87
  [max]: https://widget.paydock.com/sdk/latest/widget.umd.js
76
88
 
77
-
78
- The library will always be available via the global variable `paydock`.
79
-
80
-
81
-
82
- Also for more advanced use, the library has [UMD](https://github.com/umdjs/umd) format, thus can be used in requireJs, webpack, etc.
83
-
84
-
85
-
86
-
87
-
88
-
89
+ For more advanced use-cases, the library has [UMD](https://github.com/umdjs/umd)
90
+ format that can be used in RequireJS, Webpack, etc.
89
91
 
90
92
 
91
93
  ```html
@@ -95,6 +97,7 @@ Also for more advanced use, the library has [UMD](https://github.com/umdjs/umd)
95
97
  </script>
96
98
  ```
97
99
 
100
+
98
101
  ## Widget
99
102
  You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#widget-simple-example)
100
103
 
@@ -119,11 +122,11 @@ var widget = new paydock.HtmlWidget('#widget', 'publicKey');
119
122
  widget.load();
120
123
  ```
121
124
 
122
- ```javascript--es2015
125
+ ```javascript
123
126
  // ES2015 | TypeScript
124
127
 
125
- import { HtmlWidget } from '@paydock/client-sdk/widget';
126
-
128
+ import { HtmlWidget } from '@paydock/client-sdk';
129
+
127
130
  var widget = new HtmlWidget('#widget', 'publicKey');
128
131
  widget.load();
129
132
  ```
@@ -131,7 +134,7 @@ widget.load();
131
134
  Then write only need 2 lines of code in js to initialize widget
132
135
 
133
136
 
134
- ### Full example
137
+ ### Full example
135
138
 
136
139
  ```html
137
140
  <!DOCTYPE html>
@@ -194,9 +197,9 @@ widget.setFormFields(['phone', 'email']); // add additional fields for form of w
194
197
  widget.setSupportedCardIcons(['mastercard', 'visa']); // add icons of supported card types
195
198
  ```
196
199
 
197
- This example shows how you can use a lot of other methods to settings your form
200
+ This example shows how you can use a lot of other methods to settings your form
198
201
 
199
- ### Full example
202
+ ### Full example
200
203
 
201
204
  ```html
202
205
  <!DOCTYPE html>
@@ -217,12 +220,12 @@ This example shows how you can use a lot of other methods to settings your form
217
220
  <script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
218
221
  <script>
219
222
  var widget = new paydock.HtmlWidget('#widget', 'publicKey', 'gatewayId');
220
-
223
+
221
224
  widget.setSupportedCardIcons(['mastercard', 'visa']);
222
225
  widget.setFormFields(['phone', 'email']);
223
226
  widget.setRefId('custom-ref-id');
224
227
  widget.onFinishInsert('input[name="payment_source_token"]', 'payment_source');z
225
-
228
+
226
229
  widget.load();
227
230
  </script>
228
231
  </script>
@@ -639,7 +642,7 @@ Class Widget include method for working on html and include extended by HtmlMult
639
642
  * [.setFormValues(fieldValues)](#user-content-w_MultiWidget+setFormValues)
640
643
  * [.setFormLabels(fieldLabels)](#user-content-w_MultiWidget+setFormLabels)
641
644
  * [.setFormPlaceholders(fieldPlaceholders)](#user-content-w_MultiWidget+setFormPlaceholders)
642
- * [.setIcons()](#user-content-w_MultiWidget+setIcons)
645
+ * ~~[.setIcons()](#user-content-w_MultiWidget+setIcons)~~
643
646
  * [.setHiddenElements(elements)](#user-content-w_MultiWidget+setHiddenElements)
644
647
  * [.setRefId(refId)](#user-content-w_MultiWidget+setRefId)
645
648
  * [.useGatewayFieldValidation()](#user-content-w_MultiWidget+useGatewayFieldValidation)
@@ -1194,15 +1197,13 @@ widget.setFormPlaceholders({
1194
1197
  ```
1195
1198
  <a name="w_MultiWidget+setIcons" id="w_MultiWidget+setIcons" href="#user-content-w_MultiWidget+setIcons">&nbsp;</a>
1196
1199
 
1197
- ### htmlWidget.setIcons()
1200
+ ### ~~htmlWidget.setIcons()~~
1201
+ ***Deprecated***
1202
+
1198
1203
  The method to change the widget icons
1199
1204
 
1200
1205
  **Kind**: instance method of [<code>HtmlWidget</code>](#user-content-w_HtmlWidget)
1201
1206
  **Overrides**: [<code>setIcons</code>](#user-content-w_MultiWidget+setIcons)
1202
- **Todo**
1203
-
1204
- - [ ] DEPRECATED
1205
-
1206
1207
  <a name="w_MultiWidget+setHiddenElements" id="w_MultiWidget+setHiddenElements" href="#user-content-w_MultiWidget+setHiddenElements">&nbsp;</a>
1207
1208
 
1208
1209
  ### htmlWidget.setHiddenElements(elements)
@@ -1355,7 +1356,7 @@ Class HtmlMultiWidget include method for working with html
1355
1356
  * [.setFormLabels(fieldLabels)](#user-content-w_MultiWidget+setFormLabels)
1356
1357
  * [.setFormPlaceholders(fieldPlaceholders)](#user-content-w_MultiWidget+setFormPlaceholders)
1357
1358
  * [.setFormElements(elements)](#user-content-w_MultiWidget+setFormElements)
1358
- * [.setIcons()](#user-content-w_MultiWidget+setIcons)
1359
+ * ~~[.setIcons()](#user-content-w_MultiWidget+setIcons)~~
1359
1360
  * [.setHiddenElements(elements)](#user-content-w_MultiWidget+setHiddenElements)
1360
1361
  * [.setRefId(refId)](#user-content-w_MultiWidget+setRefId)
1361
1362
  * [.useGatewayFieldValidation()](#user-content-w_MultiWidget+useGatewayFieldValidation)
@@ -1812,15 +1813,13 @@ widget.setFormElements([
1812
1813
  ```
1813
1814
  <a name="w_MultiWidget+setIcons" id="w_MultiWidget+setIcons" href="#user-content-w_MultiWidget+setIcons">&nbsp;</a>
1814
1815
 
1815
- ### htmlMultiWidget.setIcons()
1816
+ ### ~~htmlMultiWidget.setIcons()~~
1817
+ ***Deprecated***
1818
+
1816
1819
  The method to change the widget icons
1817
1820
 
1818
1821
  **Kind**: instance method of [<code>HtmlMultiWidget</code>](#user-content-w_HtmlMultiWidget)
1819
1822
  **Overrides**: [<code>setIcons</code>](#user-content-w_MultiWidget+setIcons)
1820
- **Todo**
1821
-
1822
- - [ ] DEPRECATED
1823
-
1824
1823
  <a name="w_MultiWidget+setHiddenElements" id="w_MultiWidget+setHiddenElements" href="#user-content-w_MultiWidget+setHiddenElements">&nbsp;</a>
1825
1824
 
1826
1825
  ### htmlMultiWidget.setHiddenElements(elements)
@@ -2133,7 +2132,7 @@ Class MultiWidget include method for for creating iframe url
2133
2132
  * [.setFormLabels(fieldLabels)](#user-content-w_MultiWidget+setFormLabels)
2134
2133
  * [.setFormPlaceholders(fieldPlaceholders)](#user-content-w_MultiWidget+setFormPlaceholders)
2135
2134
  * [.setFormElements(elements)](#user-content-w_MultiWidget+setFormElements)
2136
- * [.setIcons()](#user-content-w_MultiWidget+setIcons)
2135
+ * ~~[.setIcons()](#user-content-w_MultiWidget+setIcons)~~
2137
2136
  * [.setHiddenElements(elements)](#user-content-w_MultiWidget+setHiddenElements)
2138
2137
  * [.setRefId(refId)](#user-content-w_MultiWidget+setRefId)
2139
2138
  * [.useGatewayFieldValidation()](#user-content-w_MultiWidget+useGatewayFieldValidation)
@@ -2359,14 +2358,12 @@ widget.setFormElements([
2359
2358
  ```
2360
2359
  <a name="w_MultiWidget+setIcons" id="w_MultiWidget+setIcons" href="#user-content-w_MultiWidget+setIcons">&nbsp;</a>
2361
2360
 
2362
- ### multiWidget.setIcons()
2361
+ ### ~~multiWidget.setIcons()~~
2362
+ ***Deprecated***
2363
+
2363
2364
  The method to change the widget icons
2364
2365
 
2365
2366
  **Kind**: instance method of [<code>MultiWidget</code>](#user-content-w_MultiWidget)
2366
- **Todo**
2367
-
2368
- - [ ] DEPRECATED
2369
-
2370
2367
  <a name="w_MultiWidget+setHiddenElements" id="w_MultiWidget+setHiddenElements" href="#user-content-w_MultiWidget+setHiddenElements">&nbsp;</a>
2371
2368
 
2372
2369
  ### multiWidget.setHiddenElements(elements)
@@ -2710,10 +2707,10 @@ var list = new paydock.HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken
2710
2707
  list.load();
2711
2708
  ```
2712
2709
 
2713
- ```javascript--es2015
2710
+ ```javascript
2714
2711
  // ES2015 | TypeScript
2715
2712
 
2716
- import { HtmlPaymentSourceWidget } from '@paydock/client-sdk/payment-source-widget';
2713
+ import { HtmlPaymentSourceWidget } from '@paydock/client-sdk';
2717
2714
 
2718
2715
  var list = new HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken');
2719
2716
  list.load();
@@ -3426,7 +3423,7 @@ You must create a button to turn it into checkout-button
3426
3423
  var button = new paydock.PaypalCheckoutButton('#button', 'publicKey', 'gatewayId');
3427
3424
  ```
3428
3425
 
3429
- ```javascript--es2015
3426
+ ```javascript
3430
3427
  // ES2015 | TypeScript
3431
3428
 
3432
3429
 
@@ -4569,11 +4566,11 @@ This wrapper helps you to work with paydock api emdpoints
4569
4566
  var browserDetails = await new paydock.Api('publicKey').setEnv('env').getBrowserDetails();
4570
4567
  ```
4571
4568
 
4572
- ```javascript--es2015
4569
+ ```javascript
4573
4570
  // ES2015 | TypeScript
4574
4571
 
4575
- import { Api } from '@paydock/client-sdk/api';
4576
-
4572
+ import { Api } from '@paydock/client-sdk';
4573
+
4577
4574
  var browserDetails = await new paydock.Api('publicKey').setEnv('env').getBrowserDetails();
4578
4575
  ```
4579
4576
 
@@ -4586,11 +4583,11 @@ var response = await new paydock.Api('publicKey').setEnv('env').charge().preAuth
4586
4583
  });
4587
4584
  ```
4588
4585
 
4589
- ```javascript--es2015
4586
+ ```javascript
4590
4587
  // ES2015 | TypeScript
4591
4588
 
4592
- import { Api } from '@paydock/client-sdk/api';
4593
-
4589
+ import { Api } from '@paydock/client-sdk';
4590
+
4594
4591
  var response = await new Api('publicKey').setEnv('env').charge().preAuth({
4595
4592
  amount: 100,
4596
4593
  currency: 'AUD',
@@ -4600,7 +4597,7 @@ var response = await new Api('publicKey').setEnv('env').charge().preAuth({
4600
4597
 
4601
4598
  Then write only need 2 lines of code in js to make request
4602
4599
 
4603
- ### Initialization full example
4600
+ ### Initialization full example
4604
4601
 
4605
4602
  ```html
4606
4603
  <!DOCTYPE html>
@@ -4647,10 +4644,10 @@ var canvas3ds = new paydock.Canvas3ds('#widget', 'token');
4647
4644
  canvas3ds.load();
4648
4645
  ```
4649
4646
 
4650
- ```javascript--es2015
4647
+ ```javascript
4651
4648
  // ES2015 | TypeScript
4652
4649
 
4653
- import { Canvas3ds } from '@paydock/client-sdk/canvas3ds';
4650
+ import { Canvas3ds } from '@paydock/client-sdk';
4654
4651
 
4655
4652
  var list = new Canvas3ds('#widget', 'token');
4656
4653
  list.load();
@@ -4871,7 +4868,7 @@ After you initialized the standalone 3ds charge via `v1/charges/standalone-3ds`
4871
4868
  ## Vault Display Widget
4872
4869
  You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#vault-display-widget)
4873
4870
 
4874
- The vault display form allows viewing card number and CVV. The form can be customised according to your needs.
4871
+ The vault display form allows viewing card number and CVV. The form can be customised according to your needs.
4875
4872
  You can set styles as well as subscribe to widget events that help monitor user’s actions in real time.
4876
4873
 
4877
4874
  ## Vault Display Widget simple example
@@ -4891,18 +4888,18 @@ var widget = new paydock.VaultDisplayWidget('#widget', 'token');
4891
4888
  widget.load();
4892
4889
  ```
4893
4890
 
4894
- ```javascript--es2015
4891
+ ```javascript
4895
4892
  // ES2015 | TypeScript
4896
4893
 
4897
- import { VaultDisplayWidget } from '@paydock/client-sdk/vault-display-widget';
4898
-
4894
+ import { VaultDisplayWidget } from '@paydock/client-sdk';
4895
+
4899
4896
  var widget = new VaultDisplayWidget('#widget', 'token');
4900
4897
  widget.load();
4901
4898
  ```
4902
4899
 
4903
4900
  Then write only need 2 lines of code in js to initialize widget
4904
4901
 
4905
- ### Full example
4902
+ ### Full example
4906
4903
 
4907
4904
  ```html
4908
4905
  <!DOCTYPE html>
@@ -4913,9 +4910,9 @@ Then write only need 2 lines of code in js to initialize widget
4913
4910
  <style>iframe {border: 0;width: 100%;height: 300px;}</style>
4914
4911
  </head>
4915
4912
  <body>
4916
-
4913
+
4917
4914
  <div id="widget"></div>
4918
-
4915
+
4919
4916
  <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
4920
4917
  <script>
4921
4918
  var widget = new paydock.VaultDisplayWidget('#widget', 'token');
@@ -4953,9 +4950,9 @@ widget.setStyles({
4953
4950
  });
4954
4951
  ```
4955
4952
 
4956
- This example shows how you can use a lot of other methods to settings your form
4953
+ This example shows how you can use a lot of other methods to settings your form
4957
4954
 
4958
- ### Full example
4955
+ ### Full example
4959
4956
 
4960
4957
  ```html
4961
4958
  <!DOCTYPE html>
@@ -4966,27 +4963,27 @@ This example shows how you can use a lot of other methods to settings your form
4966
4963
  <style>iframe {border: 0;width: 40%;height: 450px;}</style>
4967
4964
  </head>
4968
4965
  <body>
4969
-
4966
+
4970
4967
  <div id="widget"></div>
4971
-
4968
+
4972
4969
  <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
4973
4970
  <script>
4974
4971
  var widget = new paydock.VaultDisplayWidget('#widget', 'token');
4975
4972
 
4976
4973
  widget.setEnv('sandbox');
4977
-
4974
+
4978
4975
  widget.on('after_load', function (data) {
4979
4976
  console.log(data);
4980
4977
  });
4981
-
4978
+
4982
4979
  widget.on('cvv_secure_code_requested', function (data) {
4983
4980
  console.log(data);
4984
4981
  });
4985
-
4982
+
4986
4983
  widget.on('card_number_secure_code_requested', function (data) {
4987
4984
  console.log(data);
4988
4985
  });
4989
-
4986
+
4990
4987
  widget.setStyles({
4991
4988
  background_color: 'rgb(0, 0, 0)',
4992
4989
  border_color: 'yellow',
@@ -5130,7 +5127,7 @@ let button = new paydock.WalletButtons(
5130
5127
  button.load();
5131
5128
  ```
5132
5129
 
5133
- ```javascript--es2015
5130
+ ```javascript
5134
5131
  // ES2015 | TypeScript
5135
5132
  import { WalletButtons } from '@paydock/client-sdk';
5136
5133
 
@@ -5155,7 +5152,7 @@ let button = new paydock.WalletButtons(
5155
5152
  button.load();
5156
5153
  ```
5157
5154
 
5158
- ```javascript--es2015
5155
+ ```javascript
5159
5156
  // ES2015 | TypeScript
5160
5157
  import { WalletButtons } from '@paydock/client-sdk';
5161
5158
 
@@ -5179,7 +5176,7 @@ let button = new paydock.WalletButtons(
5179
5176
  button.load();
5180
5177
  ```
5181
5178
 
5182
- ```javascript--es2015
5179
+ ```javascript
5183
5180
  // ES2015 | TypeScript
5184
5181
  import { WalletButtons } from '@paydock/client-sdk';
5185
5182
 
@@ -5248,14 +5245,6 @@ In some situations you may want to forcibly close the checkout so that your user
5248
5245
  button.close();
5249
5246
  ```
5250
5247
 
5251
- ### Performing actions when the wallet button is clicked
5252
-
5253
- In some situations you may want to perform some validations or actions when the user clicks on the wallet button, for which you can use this method. Currently supported by Paypal, ApplePay and GooglePay wallets.
5254
-
5255
- ```javascript
5256
- button.onClick(() => console.log("Perform actions on button click"));
5257
- ```
5258
-
5259
5248
  ### Performing actions when shipping info is updated
5260
5249
 
5261
5250
  In Flypay, Paypal, ApplePay via MPGS and GooglePay via MPGS integrations after each shipping info update the `onUpdate(data)` will be called with the selected shipping address information, plus selected shipping method when applicable for Paypal, ApplePay and GooglePay. Merchants should handle this callback, recalculate shipping costs in their server by analyzing the new data, and submit a backend to backend request to `POST charges/:id` with the new total amount and shipping amount (you can find the documentation of this call in the PayDock API documentation).
@@ -5383,51 +5372,30 @@ _(Required `meta` fields: - . Optional `meta` fields: `request_shipping`, `pay_l
5383
5372
  <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
5384
5373
  <script>
5385
5374
  let button = new paydock.WalletButtons(
5386
- "#widget",
5387
- charge_token,
5388
- {
5389
- request_shipping: true,
5390
- pay_later: true,
5391
- standalone: false,
5392
- style: {
5393
- layout: 'horizontal',
5394
- color: 'blue',
5395
- shape: 'rect',
5396
- label: 'paypal',
5397
- },
5398
- }
5399
- );
5375
+ "#widget",
5376
+ charge_token,
5377
+ {
5378
+ request_shipping: true,
5379
+ pay_later: true,
5380
+ standalone: false,
5381
+ style: {
5382
+ layout: 'horizontal',
5383
+ color: 'blue',
5384
+ shape: 'rect',
5385
+ label: 'paypal',
5386
+ },
5387
+ }
5388
+ );
5400
5389
  button.setEnv('sandbox');
5401
5390
  button.onUnavailable(() => console.log("No wallet buttons available"));
5402
5391
  button.onUpdate((data) => {
5403
- console.log("Updating amount via a backend to backend call to POST charges/:id");
5404
- // call `POST charges/:id` to modify charge
5405
- button.update({ success: true });
5406
- });
5392
+ console.log("Updating amount via a backend to backend call to POST charges/:id");
5393
+ // call `POST charges/:id` to modify charge
5394
+ button.update({ success: true });
5395
+ });
5407
5396
  button.onPaymentSuccessful((data) => console.log("The payment was successful"));
5408
5397
  button.onPaymentError((data) => console.log("The payment was not successful"));
5409
5398
  button.onPaymentInReview((data) => console.log("The payment is on fraud review"));
5410
-
5411
- // Example 1: Asynchronous onClick handler
5412
- const asyncLogic = async () => {
5413
- // Perform asynchronous logic. Expectation is that a Promise is returned and attached to response via `attachResult`,
5414
- // and resolve or reject of it will dictate how wallet behaves.
5415
- }
5416
-
5417
- button.onClick(({ data: { attachResult } }) => {
5418
- // Promise is attached to the result. On Paypal, when promise is resolved, the user Journey will continue.
5419
- // If no promise is attached then the Paypal journey will not depend on the promise being resolved or rejected
5420
- attachResult(asyncLogic());
5421
- });
5422
-
5423
- // Example 2: Synchronous onClick handler
5424
- // button.onClick(({ data: { attachResult } }) => {
5425
- // // Perform synchronous logic
5426
- // console.log("Synchronous onClick: Button clicked");
5427
- // // Optionally return a boolean flag to halt the operation
5428
- // attachResult(false);
5429
- // });
5430
-
5431
5399
  button.load();
5432
5400
  </script>
5433
5401
  </html>
@@ -5561,7 +5529,6 @@ _(Required `meta` fields: `amount_label`, `country`. Optional `meta` fields: `ra
5561
5529
  button.onUnavailable(() => console.log("No wallet buttons available"));
5562
5530
  button.onPaymentSuccessful((data) => console.log("The payment was successful"));
5563
5531
  button.onPaymentError((data) => console.log("The payment was not successful"));
5564
- button.onClick(() => console.log("On WalletButton Click"));
5565
5532
  button.onUpdate((data) => {
5566
5533
  console.log("Updating amount via a backend to backend call to POST charges/:id");
5567
5534
  // call `POST charges/:id` to modify charge
@@ -5594,6 +5561,7 @@ _(Required `meta` fields: `amount_label`, `country`. Optional `meta` fields: `ra
5594
5561
  Also, for **ApplePay via MPGS** you can initialize the `ApplePayPaymentRequest` with your own values instead of using the default ones. Below you can see an example on how to initialize the `ApplePayPaymentRequest` with the `raw_data_initialization` meta field.
5595
5562
 
5596
5563
  Similarly, for **GooglePay via MPGS** you can initialize the `PaymentMethodSpecification` with your own values instead of using the default ones. Below you can see an example on how to initialize the `PaymentMethodSpecification` with the `raw_data_initialization` meta field.
5564
+
5597
5565
  ### ApplePay and GooglePay via MPGS Raw data initialization example
5598
5566
 
5599
5567
  ```html
@@ -5725,24 +5693,6 @@ Similarly, for **GooglePay via MPGS** you can initialize the `PaymentMethodSpeci
5725
5693
  ## Interfaces
5726
5694
 
5727
5695
  <dl>
5728
- <dt><a href="#IEventData">IEventData</a></dt>
5729
- <dd><p>Interface of data from events.</p>
5730
- </dd>
5731
- <dt><a href="#IWalletPaymentSuccessful">IWalletPaymentSuccessful</a></dt>
5732
- <dd><p>Interface of data from a successful payment result.</p>
5733
- </dd>
5734
- <dt><a href="#IWalletUpdate">IWalletUpdate</a></dt>
5735
- <dd><p>Interface of data from an update event.</p>
5736
- </dd>
5737
- <dt><a href="#IWalletOnClick">IWalletOnClick</a></dt>
5738
- <dd><p>Interface of data from a wallet onClick event.</p>
5739
- </dd>
5740
- <dt><a href="#IWalletUnavailable">IWalletUnavailable</a></dt>
5741
- <dd><p>Interface of data from an unavailable event.</p>
5742
- </dd>
5743
- <dt><a href="#IWalletUpdateData">IWalletUpdateData</a></dt>
5744
- <dd><p>Interface of data for wallet button <code>update</code> call.</p>
5745
- </dd>
5746
5696
  <dt><a href="#IWalletMeta">IWalletMeta</a> : <code>object</code></dt>
5747
5697
  <dd><p>Interface of data used by the wallet checkout and payment proccess.</p>
5748
5698
  </dd>
@@ -5757,100 +5707,6 @@ Similarly, for **GooglePay via MPGS** you can initialize the `PaymentMethodSpeci
5757
5707
  </dd>
5758
5708
  </dl>
5759
5709
 
5760
- <a name="IEventData" id="IEventData" href="#IEventData">&nbsp;</a>
5761
-
5762
- ## IEventData
5763
- Interface of data from events.
5764
-
5765
- **Kind**: global interface
5766
-
5767
- | Param | Type |
5768
- | --- | --- |
5769
- | event | <code>string</code> |
5770
- | data | <code>void</code> \| [<code>IWalletPaymentSuccessful</code>](#IWalletPaymentSuccessful) \| [<code>IWalletUpdate</code>](#IWalletUpdate) \| [<code>IWalletUnavailable</code>](#IWalletUnavailable) \| [<code>IWalletOnClick</code>](#IWalletOnClick) \| <code>any</code> |
5771
-
5772
- <a name="IWalletPaymentSuccessful" id="IWalletPaymentSuccessful" href="#IWalletPaymentSuccessful">&nbsp;</a>
5773
-
5774
- ## IWalletPaymentSuccessful
5775
- Interface of data from a successful payment result.
5776
-
5777
- **Kind**: global interface
5778
-
5779
- | Param | Type |
5780
- | --- | --- |
5781
- | id | <code>string</code> |
5782
- | amount | <code>number</code> |
5783
- | currency | <code>string</code> |
5784
- | status | <code>string</code> |
5785
- | [payer_name] | <code>string</code> |
5786
- | [payer_email] | <code>string</code> |
5787
- | [payer_phone] | <code>string</code> |
5788
-
5789
- <a name="IWalletUpdate" id="IWalletUpdate" href="#IWalletUpdate">&nbsp;</a>
5790
-
5791
- ## IWalletUpdate
5792
- Interface of data from an update event.
5793
-
5794
- **Kind**: global interface
5795
-
5796
- | Param | Type |
5797
- | --- | --- |
5798
- | [wallet_response_code] | <code>string</code> |
5799
- | [wallet_session_id] | <code>string</code> |
5800
- | [payment_source] | <code>object</code> |
5801
- | [payment_source.wallet_payment_method_id] | <code>string</code> |
5802
- | [payment_source.card_number_last4] | <code>string</code> |
5803
- | [payment_source.card_scheme] | <code>string</code> |
5804
- | [wallet_loyalty_account] | <code>object</code> |
5805
- | [wallet_loyalty_account.id] | <code>string</code> |
5806
- | [wallet_loyalty_account.barcode] | <code>string</code> |
5807
- | [shipping] | <code>object</code> |
5808
- | [shipping.address_line1] | <code>string</code> |
5809
- | [shipping.address_line2] | <code>string</code> |
5810
- | [shipping.address_postcode] | <code>string</code> |
5811
- | [shipping.address_city] | <code>string</code> |
5812
- | [shipping.address_state] | <code>string</code> |
5813
- | [shipping.address_country] | <code>string</code> |
5814
- | [shipping.address_company] | <code>string</code> |
5815
- | [shipping.post_office_box_number] | <code>string</code> |
5816
- | [shipping.wallet_address_id] | <code>string</code> |
5817
- | [shipping.wallet_address_name] | <code>string</code> |
5818
- | [shipping.wallet_address_created_timestamp] | <code>string</code> |
5819
- | [shipping.wallet_address_updated_timestamp] | <code>string</code> |
5820
-
5821
- <a name="IWalletOnClick" id="IWalletOnClick" href="#IWalletOnClick">&nbsp;</a>
5822
-
5823
- ## IWalletOnClick
5824
- Interface of data from a wallet onClick event.
5825
-
5826
- **Kind**: global interface
5827
-
5828
- | Param | Description |
5829
- | --- | --- |
5830
- | attachResult | Method to be called that attaches a result to the wallet onClick operation. When handler is synchronous, this method is optionally called with a boolean flag indicating validation result. When handler executes asynchronous operations, this method must be called with the Promise to have the wallet process wait for its completion or rejection. |
5831
-
5832
- <a name="IWalletUnavailable" id="IWalletUnavailable" href="#IWalletUnavailable">&nbsp;</a>
5833
-
5834
- ## IWalletUnavailable
5835
- Interface of data from an unavailable event.
5836
-
5837
- **Kind**: global interface
5838
-
5839
- | Param | Type | Description |
5840
- | --- | --- | --- |
5841
- | [wallet] | <code>string</code> | For gateways with more than one wallet button available (e.g: MPGS with ApplePay and GooglePay). Possible values for wallet are 'apple' or 'google'. |
5842
-
5843
- <a name="IWalletUpdateData" id="IWalletUpdateData" href="#IWalletUpdateData">&nbsp;</a>
5844
-
5845
- ## IWalletUpdateData
5846
- Interface of data for wallet button `update` call.
5847
-
5848
- **Kind**: global interface
5849
-
5850
- | Param | Type |
5851
- | --- | --- |
5852
- | success | <code>boolean</code> |
5853
-
5854
5710
  <a name="IWalletMeta" id="IWalletMeta" href="#IWalletMeta">&nbsp;</a>
5855
5711
 
5856
5712
  ## IWalletMeta : <code>object</code>
@@ -5935,19 +5791,14 @@ Class WalletButtons to work with different E-Wallets within html (currently supp
5935
5791
  * [.load()](#WalletButtons+load)
5936
5792
  * [.update()](#WalletButtons+update)
5937
5793
  * [.setEnv(env, [alias])](#WalletButtons+setEnv)
5938
- * [.enable()](#WalletButtons+enable)
5939
- * [.disable()](#WalletButtons+disable)
5940
5794
  * [.close()](#WalletButtons+close)
5941
- * [.on(eventName, [cb])](#WalletButtons+on) ⇒ [<code>Promise.&lt;IEventData&gt;</code>](#IEventData) \| <code>void</code>
5795
+ * [.on(eventName, [cb])](#WalletButtons+on) ⇒ <code>Promise.&lt;IEventData&gt;</code> \| <code>void</code>
5942
5796
  * [.onUnavailable([handler])](#WalletButtons+onUnavailable)
5943
5797
  * [.onUpdate([handler])](#WalletButtons+onUpdate)
5944
5798
  * [.onPaymentSuccessful([handler])](#WalletButtons+onPaymentSuccessful)
5945
5799
  * [.onPaymentInReview([handler])](#WalletButtons+onPaymentInReview)
5946
5800
  * [.onPaymentError([handler])](#WalletButtons+onPaymentError)
5947
5801
  * [.onAuthTokensChanged([handler])](#WalletButtons+onAuthTokensChanged)
5948
- * [.onClick(handler)](#WalletButtons+onClick)
5949
- * [.onCheckoutOpen(handler)](#WalletButtons+onCheckoutOpen)
5950
- * [.onCheckoutClose(handler)](#WalletButtons+onCheckoutClose)
5951
5802
 
5952
5803
  <a name="new_WalletButtons_new" id="new_WalletButtons_new" href="#new_WalletButtons_new">&nbsp;</a>
5953
5804
 
@@ -6058,26 +5909,6 @@ Bear in mind that you must set an environment before calling `button.load()`.
6058
5909
  ```js
6059
5910
  button.setEnv('production', 'paydock.com');
6060
5911
  ```
6061
- <a name="WalletButtons+enable" id="WalletButtons+enable" href="#WalletButtons+enable">&nbsp;</a>
6062
-
6063
- ### walletButtons.enable()
6064
- Current method can enable the payment button. This method is only supported for Flypay V2.
6065
-
6066
- **Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
6067
- **Example**
6068
- ```js
6069
- button.enable();
6070
- ```
6071
- <a name="WalletButtons+disable" id="WalletButtons+disable" href="#WalletButtons+disable">&nbsp;</a>
6072
-
6073
- ### walletButtons.disable()
6074
- Current method can disable the payment button. This method is only supported for Flypay V2.
6075
-
6076
- **Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
6077
- **Example**
6078
- ```js
6079
- button.disable('production', 'paydock.com');
6080
- ```
6081
5912
  <a name="WalletButtons+close" id="WalletButtons+close" href="#WalletButtons+close">&nbsp;</a>
6082
5913
 
6083
5914
  ### walletButtons.close()
@@ -6090,7 +5921,7 @@ button.close();
6090
5921
  ```
6091
5922
  <a name="WalletButtons+on" id="WalletButtons+on" href="#WalletButtons+on">&nbsp;</a>
6092
5923
 
6093
- ### walletButtons.on(eventName, [cb]) ⇒ [<code>Promise.&lt;IEventData&gt;</code>](#IEventData) \| <code>void</code>
5924
+ ### walletButtons.on(eventName, [cb]) ⇒ <code>Promise.&lt;IEventData&gt;</code> \| <code>void</code>
6094
5925
  Listen to events of button. `unavailable` returns no data, `paymentSuccessful` returns IWalletPaymentSuccessful
6095
5926
  for Stripe or full response for Flypay, and `paymentError` an error.
6096
5927
 
@@ -6253,63 +6084,6 @@ button.onAuthTokensChanged().then((eventData) => {
6253
6084
  console.log('Authentication tokens changed:', eventData);
6254
6085
  });
6255
6086
  ```
6256
- <a name="WalletButtons+onClick" id="WalletButtons+onClick" href="#WalletButtons+onClick">&nbsp;</a>
6257
-
6258
- ### walletButtons.onClick(handler)
6259
- Registers a callback function to be invoked when the wallet button gets clicked.
6260
- There are two operational modes supported, Synchronous and Asynchronous.
6261
- When asynchronous operations need to occur on the callback handler, attaching the Promise via `attachResult` is required to have the wallet wait for a result.
6262
- When synchronous operations occur on the callback handler, attaching a boolean result via `attachResult` is optional to control the execution flow.
6263
- Note this is supported for Paypal, GooglePay and ApplePay wallet buttons at the moment.
6264
-
6265
- **Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
6266
-
6267
- | Param | Type | Description |
6268
- | --- | --- | --- |
6269
- | handler | <code>listener</code> | Function to be called when the wallet button is clicked. |
6270
-
6271
- **Example**
6272
- ```js
6273
- button.onClick((data) => {
6274
- performValidationLogic();
6275
- });
6276
- ```
6277
- <a name="WalletButtons+onCheckoutOpen" id="WalletButtons+onCheckoutOpen" href="#WalletButtons+onCheckoutOpen">&nbsp;</a>
6278
-
6279
- ### walletButtons.onCheckoutOpen(handler)
6280
- Registers a callback function to be invoked when the wallet checkout opens.
6281
- Note this is supported for FlypayV2 wallet button at the moment.
6282
-
6283
- **Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
6284
-
6285
- | Param | Type | Description |
6286
- | --- | --- | --- |
6287
- | handler | <code>listener</code> | Function to be called when the wallet checkout opens. |
6288
-
6289
- **Example**
6290
- ```js
6291
- button.onCheckoutOpen((data) => {
6292
- console.log('Checkout opens');
6293
- });
6294
- ```
6295
- <a name="WalletButtons+onCheckoutClose" id="WalletButtons+onCheckoutClose" href="#WalletButtons+onCheckoutClose">&nbsp;</a>
6296
-
6297
- ### walletButtons.onCheckoutClose(handler)
6298
- Registers a callback function to be invoked when the wallet checkout closes.
6299
- Note this is supported for FlypayV2 wallet button at the moment.
6300
-
6301
- **Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
6302
-
6303
- | Param | Type | Description |
6304
- | --- | --- | --- |
6305
- | handler | <code>listener</code> | Function to be called when the wallet checkout closes. |
6306
-
6307
- **Example**
6308
- ```js
6309
- button.onCheckoutClose(() => {
6310
- console.log('Wallet checkout closes');
6311
- });
6312
- ```
6313
6087
  <a name="EVENT" id="EVENT" href="#EVENT">&nbsp;</a>
6314
6088
 
6315
6089
  ## EVENT : <code>object</code>
@@ -6323,7 +6097,6 @@ List of available event's name in the wallet button lifecycle
6323
6097
  | UPDATE | <code>string</code> | <code>&quot;update&quot;</code> |
6324
6098
  | PAYMENT_SUCCESSFUL | <code>string</code> | <code>&quot;paymentSuccessful&quot;</code> |
6325
6099
  | PAYMENT_ERROR | <code>string</code> | <code>&quot;paymentError&quot;</code> |
6326
- | ON_CLICK | <code>string</code> | <code>&quot;onClick&quot;</code> |
6327
6100
 
6328
6101
 
6329
6102
  ## Secure Remote Commerce
@@ -6355,7 +6128,7 @@ var src = new paydock.SRC(
6355
6128
  src.load();
6356
6129
  ```
6357
6130
 
6358
- ```javascript--es2015
6131
+ ```javascript
6359
6132
  // ES2015 | TypeScript
6360
6133
 
6361
6134
  import { SRC } from '@paydock/client-sdk';