@paydock/client-sdk 1.105.1 → 1.105.56-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 (649) hide show
  1. package/README.md +2094 -465
  2. package/bundles/index.cjs +35088 -0
  3. package/bundles/index.cjs.d.ts +4021 -0
  4. package/bundles/index.mjs +35050 -0
  5. package/bundles/index.mjs.d.ts +4021 -0
  6. package/bundles/types/api/api-base.d.ts +54 -0
  7. package/bundles/types/api/api-base.d.ts.map +1 -0
  8. package/{lib → bundles/types}/api/api-charge-internal.d.ts +2 -0
  9. package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
  10. package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
  11. package/bundles/types/api/api-charge.d.ts.map +1 -0
  12. package/bundles/types/api/api-checkout-internal.d.ts +57 -0
  13. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
  14. package/bundles/types/api/api-gateway-internal.d.ts +12 -0
  15. package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
  16. package/{lib → bundles/types}/api/api-internal.d.ts +5 -0
  17. package/bundles/types/api/api-internal.d.ts.map +1 -0
  18. package/{lib → bundles/types}/api/api-service-internal.d.ts +3 -1
  19. package/bundles/types/api/api-service-internal.d.ts.map +1 -0
  20. package/{lib → bundles/types}/api/api.d.ts +1 -0
  21. package/bundles/types/api/api.d.ts.map +1 -0
  22. package/bundles/types/api/index.d.ts +2 -0
  23. package/bundles/types/api/index.d.ts.map +1 -0
  24. package/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
  25. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
  26. package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
  27. package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
  28. package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +4 -3
  29. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
  30. package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
  31. package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
  32. package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
  33. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
  34. package/bundles/types/checkout/checkout.d.ts +86 -0
  35. package/bundles/types/checkout/checkout.d.ts.map +1 -0
  36. package/bundles/types/checkout/helpers/instruction-handler.d.ts +23 -0
  37. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
  38. package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
  39. package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
  40. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
  41. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
  42. package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
  43. package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
  44. package/bundles/types/checkout/helpers/resource-helper.d.ts +5 -0
  45. package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
  46. package/bundles/types/checkout/helpers/session-helper.d.ts +5 -0
  47. package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
  48. package/bundles/types/checkout/index.d.ts +2 -0
  49. package/bundles/types/checkout/index.d.ts.map +1 -0
  50. package/bundles/types/checkout/instructions/index.d.ts +3 -0
  51. package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
  52. package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
  53. package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
  54. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
  55. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  56. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
  57. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  58. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
  59. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
  60. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
  61. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
  62. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
  63. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
  64. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
  65. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
  66. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +19 -0
  67. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  68. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
  69. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
  70. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
  71. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
  72. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
  73. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
  74. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
  75. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
  76. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
  77. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
  78. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
  79. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
  80. package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
  81. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
  82. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
  83. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
  84. package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
  85. package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
  86. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
  87. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
  88. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +52 -0
  89. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
  90. package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
  91. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
  92. package/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
  93. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
  94. package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +3 -0
  95. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
  96. package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
  97. package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
  98. package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
  99. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
  100. package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +5 -0
  101. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
  102. package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
  103. package/bundles/types/checkout-button/index.d.ts.map +1 -0
  104. package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
  105. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
  106. package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
  107. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
  108. package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
  109. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
  110. package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +4 -2
  111. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
  112. package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
  113. package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
  114. package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +5 -4
  115. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
  116. package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
  117. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
  118. package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
  119. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
  120. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
  121. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
  122. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
  123. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
  124. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
  125. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
  126. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
  127. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
  128. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
  129. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
  130. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
  131. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
  132. package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
  133. package/bundles/types/components/ability-guard.d.ts.map +1 -0
  134. package/{lib → bundles/types}/components/background.d.ts +1 -0
  135. package/bundles/types/components/background.d.ts.map +1 -0
  136. package/{lib → bundles/types}/components/container.d.ts +1 -0
  137. package/bundles/types/components/container.d.ts.map +1 -0
  138. package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
  139. package/bundles/types/components/dispatcher.d.ts.map +1 -0
  140. package/{lib → bundles/types}/components/element-style.d.ts +2 -1
  141. package/bundles/types/components/element-style.d.ts.map +1 -0
  142. package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
  143. package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
  144. package/{lib/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +1 -0
  145. package/bundles/types/components/form-interceptor.d.ts.map +1 -0
  146. package/{lib → bundles/types}/components/http-core.d.ts +1 -0
  147. package/bundles/types/components/http-core.d.ts.map +1 -0
  148. package/{lib → bundles/types}/components/iframe-event.d.ts +6 -0
  149. package/bundles/types/components/iframe-event.d.ts.map +1 -0
  150. package/{lib → bundles/types}/components/iframe.d.ts +3 -0
  151. package/bundles/types/components/iframe.d.ts.map +1 -0
  152. package/{lib → bundles/types}/components/link.d.ts +6 -3
  153. package/bundles/types/components/link.d.ts.map +1 -0
  154. package/{lib → bundles/types}/components/loader.d.ts +1 -0
  155. package/bundles/types/components/loader.d.ts.map +1 -0
  156. package/{lib → bundles/types}/components/param.d.ts +16 -9
  157. package/bundles/types/components/param.d.ts.map +1 -0
  158. package/{lib → bundles/types}/components/popup.d.ts +1 -0
  159. package/bundles/types/components/popup.d.ts.map +1 -0
  160. package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
  161. package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
  162. package/{lib → bundles/types}/components/trigger.d.ts +1 -0
  163. package/bundles/types/components/trigger.d.ts.map +1 -0
  164. package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
  165. package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
  166. package/{lib → bundles/types}/components/wallet-background.d.ts +3 -1
  167. package/bundles/types/components/wallet-background.d.ts.map +1 -0
  168. package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
  169. package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
  170. package/bundles/types/configs/env/environment.cba.d.ts +29 -0
  171. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
  172. package/bundles/types/configs/env/environment.interface.d.ts +12 -0
  173. package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
  174. package/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
  175. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
  176. package/bundles/types/configs/env/index.d.ts +3 -0
  177. package/bundles/types/configs/env/index.d.ts.map +1 -0
  178. package/{lib → bundles/types}/configs/sdk.d.ts +3 -2
  179. package/bundles/types/configs/sdk.d.ts.map +1 -0
  180. package/{lib → bundles/types}/constants/validators.d.ts +3 -2
  181. package/bundles/types/constants/validators.d.ts.map +1 -0
  182. package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
  183. package/bundles/types/external-checkout/builder.d.ts.map +1 -0
  184. package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -0
  185. package/bundles/types/external-checkout/checker.d.ts.map +1 -0
  186. package/bundles/types/external-checkout/index.d.ts +3 -0
  187. package/bundles/types/external-checkout/index.d.ts.map +1 -0
  188. package/{lib → bundles/types}/helper/access-token.d.ts +2 -0
  189. package/bundles/types/helper/access-token.d.ts.map +1 -0
  190. package/{lib → bundles/types}/helper/browser.d.ts +1 -0
  191. package/bundles/types/helper/browser.d.ts.map +1 -0
  192. package/bundles/types/helper/element-id.d.ts +5 -0
  193. package/bundles/types/helper/element-id.d.ts.map +1 -0
  194. package/{lib → bundles/types}/helper/event-emitter.d.ts +2 -0
  195. package/bundles/types/helper/event-emitter.d.ts.map +1 -0
  196. package/{lib → bundles/types}/helper/event.d.ts +1 -0
  197. package/bundles/types/helper/event.d.ts.map +1 -0
  198. package/{lib → bundles/types}/helper/ms.d.ts +1 -0
  199. package/bundles/types/helper/ms.d.ts.map +1 -0
  200. package/{lib → bundles/types}/helper/object.d.ts +1 -0
  201. package/bundles/types/helper/object.d.ts.map +1 -0
  202. package/bundles/types/helper/spiner.util.d.ts +6 -0
  203. package/bundles/types/helper/spiner.util.d.ts.map +1 -0
  204. package/{lib → bundles/types}/helper/url.d.ts +1 -0
  205. package/bundles/types/helper/url.d.ts.map +1 -0
  206. package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
  207. package/bundles/types/helper/uuid.d.ts.map +1 -0
  208. package/bundles/types/helper/widget-logger.d.ts +9 -0
  209. package/bundles/types/helper/widget-logger.d.ts.map +1 -0
  210. package/bundles/types/index-cba.d.ts +17 -0
  211. package/bundles/types/index-cba.d.ts.map +1 -0
  212. package/bundles/types/index.d.ts +18 -0
  213. package/bundles/types/index.d.ts.map +1 -0
  214. package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
  215. package/bundles/types/payment-source/builder.d.ts.map +1 -0
  216. package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
  217. package/bundles/types/payment-source/index.d.ts.map +1 -0
  218. package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
  219. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
  220. package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
  221. package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
  222. package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
  223. package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
  224. package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -0
  225. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
  226. package/bundles/types/paypal-data-collector/index.d.ts +23 -0
  227. package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
  228. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +59 -0
  229. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
  230. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
  231. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
  232. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +18 -0
  233. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
  234. package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
  235. package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
  236. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +86 -0
  237. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
  238. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +84 -0
  239. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
  240. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +37 -0
  241. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
  242. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
  243. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
  244. package/bundles/types/secure-remote-commerce/index.d.ts +104 -0
  245. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
  246. package/bundles/types/secure-remote-commerce/interfaces.d.ts +159 -0
  247. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
  248. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
  249. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
  250. package/{lib/secure-remote-commerce/providers/visa-src/visa-src.d.ts → bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts} +5 -7
  251. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
  252. package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -0
  253. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
  254. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +86 -0
  255. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
  256. package/bundles/types/shared/http/http-request.d.ts +14 -0
  257. package/bundles/types/shared/http/http-request.d.ts.map +1 -0
  258. package/bundles/types/shared/http/index.d.ts +2 -0
  259. package/bundles/types/shared/http/index.d.ts.map +1 -0
  260. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
  261. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
  262. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
  263. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
  264. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
  265. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
  266. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
  267. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
  268. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
  269. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
  270. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
  271. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
  272. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
  273. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
  274. package/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
  275. package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
  276. package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
  277. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
  278. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +6 -0
  279. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
  280. package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
  281. package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
  282. package/{lib → bundles/types}/wallet-buttons/index.d.ts +5 -0
  283. package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
  284. package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -0
  285. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
  286. package/{lib → bundles/types}/wallet-buttons/wallet-buttons.d.ts +5 -4
  287. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
  288. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
  289. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
  290. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/afterpay.wallet-service.d.ts +2 -1
  291. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
  292. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/apple.wallet-service.d.ts +4 -3
  293. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
  294. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/flypay-v2.wallet-service.d.ts +5 -5
  295. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
  296. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/flypay.wallet-service.d.ts +7 -6
  297. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
  298. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/google.wallet-service.d.ts +5 -4
  299. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
  300. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/mastercard.wallet-service.d.ts +1 -0
  301. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
  302. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/paypal.wallet-service.d.ts +2 -1
  303. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
  304. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/stripe.wallet-service.d.ts +2 -1
  305. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
  306. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/wallet-service.d.ts +5 -4
  307. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
  308. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +195 -0
  309. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
  310. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +10 -0
  311. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
  312. package/bundles/types/wallet-buttons-express/index.d.ts +131 -0
  313. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
  314. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
  315. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
  316. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
  317. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
  318. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
  319. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
  320. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +14 -0
  321. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
  322. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
  323. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
  324. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
  325. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
  326. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
  327. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
  328. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
  329. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
  330. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
  331. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
  332. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
  333. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
  334. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
  335. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
  336. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
  337. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
  338. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +50 -0
  339. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
  340. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +3 -0
  341. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
  342. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
  343. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
  344. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +17 -0
  345. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
  346. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
  347. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
  348. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
  349. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
  350. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
  351. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
  352. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +31 -0
  353. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
  354. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +47 -0
  355. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
  356. package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
  357. package/bundles/types/widget/configuration.d.ts.map +1 -0
  358. package/{lib → bundles/types}/widget/html-multi-widget.d.ts +6 -4
  359. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
  360. package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
  361. package/bundles/types/widget/html-widget.d.ts.map +1 -0
  362. package/{lib → bundles/types}/widget/index.d.ts +2 -1
  363. package/bundles/types/widget/index.d.ts.map +1 -0
  364. package/{lib → bundles/types}/widget/meta.d.ts +1 -0
  365. package/bundles/types/widget/meta.d.ts.map +1 -0
  366. package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
  367. package/bundles/types/widget/multi-widget.d.ts.map +1 -0
  368. package/{lib → bundles/types}/widget/style.d.ts +1 -0
  369. package/bundles/types/widget/style.d.ts.map +1 -0
  370. package/bundles/widget.umd.js +33407 -9468
  371. package/bundles/widget.umd.js.d.ts +4021 -0
  372. package/bundles/widget.umd.js.min.d.ts +4021 -0
  373. package/bundles/widget.umd.min.js +61 -1
  374. package/docs/api-canvas3ds.md +158 -0
  375. package/docs/api-checkout-button.md +912 -0
  376. package/docs/api-examples.md +65 -0
  377. package/docs/api-ps-widget.md +585 -0
  378. package/docs/api-vault-display.md +94 -0
  379. package/docs/api-widget.md +2499 -0
  380. package/docs/api-wrapper.md +78 -0
  381. package/docs/canvas3ds-examples.md +242 -0
  382. package/docs/cba-header.md +13 -0
  383. package/docs/cba-license.md +2 -0
  384. package/docs/checkout-examples.md +248 -0
  385. package/docs/click-to-pay-examples.md +267 -0
  386. package/docs/click-to-pay.md +339 -0
  387. package/docs/header.md +15 -0
  388. package/docs/html/layout.html +79 -0
  389. package/docs/html/marked.js +23 -0
  390. package/docs/html/style.css +365 -0
  391. package/docs/install/npm.content.md +16 -0
  392. package/docs/install/npm.example.md +24 -0
  393. package/docs/install/umd.content.md +20 -0
  394. package/docs/install/umd.example.md +6 -0
  395. package/docs/install.md +43 -0
  396. package/docs/install.readme.t.md +17 -0
  397. package/docs/install.slate.t.md +17 -0
  398. package/docs/license.md +2 -0
  399. package/docs/partials/header.hbs +3 -0
  400. package/docs/paypal-data-collector-examples.md +58 -0
  401. package/docs/paypal-data-collector.md +149 -0
  402. package/docs/paypal-save-payment-source-examples.md +63 -0
  403. package/docs/paypal-save-payment-source.md +256 -0
  404. package/docs/ps-examples.md +129 -0
  405. package/docs/vault-display-example.md +132 -0
  406. package/docs/wallet-buttons-examples.md +636 -0
  407. package/docs/wallet-buttons-express-examples.md +201 -0
  408. package/docs/wallet-buttons-express.md +786 -0
  409. package/docs/wallet-buttons.md +622 -0
  410. package/docs/wallet-cba-buttons-examples.md +388 -0
  411. package/docs/widget-examples.md +134 -0
  412. package/examples/multi-html-widget/simple.html +2 -1
  413. package/package.json +208 -80
  414. package/slate.md +227 -191
  415. package/.nvmrc +0 -1
  416. package/api.d.ts +0 -1
  417. package/api.js +0 -1
  418. package/canvas3ds.d.ts +0 -1
  419. package/canvas3ds.js +0 -1
  420. package/checkout-button.d.ts +0 -1
  421. package/checkout-button.js +0 -1
  422. package/inicialization-guide.md +0 -7
  423. package/lib/api/api-base.d.ts +0 -40
  424. package/lib/api/api-base.js +0 -101
  425. package/lib/api/api-base.js.map +0 -1
  426. package/lib/api/api-charge-internal.js +0 -30
  427. package/lib/api/api-charge-internal.js.map +0 -1
  428. package/lib/api/api-charge.js +0 -49
  429. package/lib/api/api-charge.js.map +0 -1
  430. package/lib/api/api-internal.js +0 -13
  431. package/lib/api/api-internal.js.map +0 -1
  432. package/lib/api/api-service-internal.js +0 -18
  433. package/lib/api/api-service-internal.js.map +0 -1
  434. package/lib/api/api.js +0 -62
  435. package/lib/api/api.js.map +0 -1
  436. package/lib/api/index.d.ts +0 -1
  437. package/lib/api/index.js +0 -2
  438. package/lib/api/index.js.map +0 -1
  439. package/lib/canvas-3ds/canvas-3ds.js +0 -157
  440. package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
  441. package/lib/canvas-3ds/index.js +0 -2
  442. package/lib/canvas-3ds/index.js.map +0 -1
  443. package/lib/canvas-3ds/services/gpayments-service.js +0 -181
  444. package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
  445. package/lib/canvas-3ds/services/index.js +0 -2
  446. package/lib/canvas-3ds/services/index.js.map +0 -1
  447. package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
  448. package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
  449. package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -50
  450. package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
  451. package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
  452. package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
  453. package/lib/checkout-button/checkout-button.interface.js +0 -45
  454. package/lib/checkout-button/checkout-button.interface.js.map +0 -1
  455. package/lib/checkout-button/checkout-button.js +0 -266
  456. package/lib/checkout-button/checkout-button.js.map +0 -1
  457. package/lib/checkout-button/checkout-contextual-handler.js +0 -75
  458. package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
  459. package/lib/checkout-button/index.js +0 -85
  460. package/lib/checkout-button/index.js.map +0 -1
  461. package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -25
  462. package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
  463. package/lib/checkout-button/paypal/paypal.runner.js +0 -14
  464. package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
  465. package/lib/checkout-button/runner/base.runner.js +0 -13
  466. package/lib/checkout-button/runner/base.runner.js.map +0 -1
  467. package/lib/checkout-button/runner/contextual.runner.js +0 -40
  468. package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
  469. package/lib/checkout-button/runner/index.js +0 -11
  470. package/lib/checkout-button/runner/index.js.map +0 -1
  471. package/lib/checkout-button/runner/popup.runner.js +0 -68
  472. package/lib/checkout-button/runner/popup.runner.js.map +0 -1
  473. package/lib/checkout-button/runner/redirect.runner.js +0 -15
  474. package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
  475. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -64
  476. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
  477. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
  478. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
  479. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
  480. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
  481. package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
  482. package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
  483. package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
  484. package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
  485. package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
  486. package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
  487. package/lib/components/ability-guard.js +0 -44
  488. package/lib/components/ability-guard.js.map +0 -1
  489. package/lib/components/background.js +0 -193
  490. package/lib/components/background.js.map +0 -1
  491. package/lib/components/container.js +0 -63
  492. package/lib/components/container.js.map +0 -1
  493. package/lib/components/dispatcher.js +0 -39
  494. package/lib/components/dispatcher.js.map +0 -1
  495. package/lib/components/element-style.js +0 -52
  496. package/lib/components/element-style.js.map +0 -1
  497. package/lib/components/flypay-iframe-event.js +0 -28
  498. package/lib/components/flypay-iframe-event.js.map +0 -1
  499. package/lib/components/form-Interceptor.js +0 -38
  500. package/lib/components/form-Interceptor.js.map +0 -1
  501. package/lib/components/http-core.js +0 -57
  502. package/lib/components/http-core.js.map +0 -1
  503. package/lib/components/iframe-event.js +0 -75
  504. package/lib/components/iframe-event.js.map +0 -1
  505. package/lib/components/iframe.js +0 -62
  506. package/lib/components/iframe.js.map +0 -1
  507. package/lib/components/link.js +0 -59
  508. package/lib/components/link.js.map +0 -1
  509. package/lib/components/loader.js +0 -234
  510. package/lib/components/loader.js.map +0 -1
  511. package/lib/components/param.js +0 -147
  512. package/lib/components/param.js.map +0 -1
  513. package/lib/components/popup.js +0 -104
  514. package/lib/components/popup.js.map +0 -1
  515. package/lib/components/storage-dispatcher.js +0 -75
  516. package/lib/components/storage-dispatcher.js.map +0 -1
  517. package/lib/components/trigger.js +0 -49
  518. package/lib/components/trigger.js.map +0 -1
  519. package/lib/components/vault-display-iframe-event.js +0 -27
  520. package/lib/components/vault-display-iframe-event.js.map +0 -1
  521. package/lib/components/wallet-background.js +0 -63
  522. package/lib/components/wallet-background.js.map +0 -1
  523. package/lib/components/wallet-trigger.js +0 -27
  524. package/lib/components/wallet-trigger.js.map +0 -1
  525. package/lib/configs/env/env.js +0 -117
  526. package/lib/configs/env/env.js.map +0 -1
  527. package/lib/configs/sdk.js +0 -16
  528. package/lib/configs/sdk.js.map +0 -1
  529. package/lib/constants/validators.js +0 -42
  530. package/lib/constants/validators.js.map +0 -1
  531. package/lib/external-checkout/builder.js +0 -45
  532. package/lib/external-checkout/builder.js.map +0 -1
  533. package/lib/external-checkout/checker.js +0 -22
  534. package/lib/external-checkout/checker.js.map +0 -1
  535. package/lib/external-checkout/index.d.ts +0 -2
  536. package/lib/external-checkout/index.js +0 -3
  537. package/lib/external-checkout/index.js.map +0 -1
  538. package/lib/helper/access-token.js +0 -44
  539. package/lib/helper/access-token.js.map +0 -1
  540. package/lib/helper/browser.js +0 -79
  541. package/lib/helper/browser.js.map +0 -1
  542. package/lib/helper/event-emitter.js +0 -23
  543. package/lib/helper/event-emitter.js.map +0 -1
  544. package/lib/helper/event.js +0 -23
  545. package/lib/helper/event.js.map +0 -1
  546. package/lib/helper/ms.js +0 -32
  547. package/lib/helper/ms.js.map +0 -1
  548. package/lib/helper/object.js +0 -6
  549. package/lib/helper/object.js.map +0 -1
  550. package/lib/helper/url.js +0 -11
  551. package/lib/helper/url.js.map +0 -1
  552. package/lib/helper/uuid.js +0 -26
  553. package/lib/helper/uuid.js.map +0 -1
  554. package/lib/index.d.ts +0 -15
  555. package/lib/index.js +0 -15
  556. package/lib/index.js.map +0 -1
  557. package/lib/payment-source/builder.js +0 -49
  558. package/lib/payment-source/builder.js.map +0 -1
  559. package/lib/payment-source/index.js +0 -2
  560. package/lib/payment-source/index.js.map +0 -1
  561. package/lib/payment-source-widget/html-payment-source-widget.js +0 -172
  562. package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
  563. package/lib/payment-source-widget/index.js +0 -35
  564. package/lib/payment-source-widget/index.js.map +0 -1
  565. package/lib/payment-source-widget/interfaces.js +0 -2
  566. package/lib/payment-source-widget/interfaces.js.map +0 -1
  567. package/lib/payment-source-widget/payment-source-widget.js +0 -142
  568. package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
  569. package/lib/secure-remote-commerce/index.d.ts +0 -1
  570. package/lib/secure-remote-commerce/index.js +0 -2
  571. package/lib/secure-remote-commerce/index.js.map +0 -1
  572. package/lib/secure-remote-commerce/interfaces.d.ts +0 -71
  573. package/lib/secure-remote-commerce/interfaces.js +0 -28
  574. package/lib/secure-remote-commerce/interfaces.js.map +0 -1
  575. package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
  576. package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
  577. package/lib/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -7
  578. package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
  579. package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
  580. package/lib/secure-remote-commerce/providers/visa-src/index.d.ts +0 -1
  581. package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
  582. package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
  583. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
  584. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
  585. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -8
  586. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
  587. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
  588. package/lib/secure-remote-commerce/secure-remote-commerce.d.ts +0 -163
  589. package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -239
  590. package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
  591. package/lib/vault-display-widget/index.js +0 -14
  592. package/lib/vault-display-widget/index.js.map +0 -1
  593. package/lib/vault-display-widget/vault-display-widget.js +0 -99
  594. package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
  595. package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
  596. package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
  597. package/lib/wallet-buttons/apple.wallet-service.js +0 -324
  598. package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
  599. package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -165
  600. package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
  601. package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
  602. package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
  603. package/lib/wallet-buttons/google.wallet-service.js +0 -301
  604. package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
  605. package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +0 -3
  606. package/lib/wallet-buttons/helpers/flypay-v2.helper.js +0 -151
  607. package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +0 -1
  608. package/lib/wallet-buttons/index.js +0 -128
  609. package/lib/wallet-buttons/index.js.map +0 -1
  610. package/lib/wallet-buttons/interfaces.js +0 -1
  611. package/lib/wallet-buttons/interfaces.js.map +0 -1
  612. package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
  613. package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
  614. package/lib/wallet-buttons/paypal.wallet-service.js +0 -144
  615. package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
  616. package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
  617. package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
  618. package/lib/wallet-buttons/wallet-buttons.js +0 -479
  619. package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
  620. package/lib/wallet-buttons/wallet-service.js +0 -60
  621. package/lib/wallet-buttons/wallet-service.js.map +0 -1
  622. package/lib/widget/configuration.js +0 -260
  623. package/lib/widget/configuration.js.map +0 -1
  624. package/lib/widget/html-multi-widget.js +0 -422
  625. package/lib/widget/html-multi-widget.js.map +0 -1
  626. package/lib/widget/html-widget.js +0 -127
  627. package/lib/widget/html-widget.js.map +0 -1
  628. package/lib/widget/index.js +0 -132
  629. package/lib/widget/index.js.map +0 -1
  630. package/lib/widget/meta.js +0 -8
  631. package/lib/widget/meta.js.map +0 -1
  632. package/lib/widget/multi-widget.js +0 -437
  633. package/lib/widget/multi-widget.js.map +0 -1
  634. package/lib/widget/style.js +0 -204
  635. package/lib/widget/style.js.map +0 -1
  636. package/payment-source-widget.d.ts +0 -1
  637. package/payment-source-widget.js +0 -1
  638. package/tslint.json +0 -129
  639. package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
  640. package/typings/globals/jasmine/index.d.ts +0 -576
  641. package/typings/globals/jasmine-ajax/index.d.ts +0 -83
  642. package/typings/globals/jquery/index.d.ts +0 -3759
  643. package/typings/index.d.ts +0 -4
  644. package/vault-display-widget.d.ts +0 -1
  645. package/vault-display-widget.js +0 -1
  646. package/vendors/zipmoney.d.ts +0 -18
  647. package/vendors/zipmoney.js +0 -2
  648. package/widget.d.ts +0 -1
  649. package/widget.js +0 -1
package/slate.md CHANGED
@@ -16,6 +16,10 @@ Also you will need added gateway ([see API Reference by gateway](https://docs.pa
16
16
 
17
17
  ## Get started
18
18
 
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.
22
+
19
23
  ### Download from CDN
20
24
 
21
25
  ```html
@@ -25,77 +29,73 @@ Also you will need added gateway ([see API Reference by gateway](https://docs.pa
25
29
  </script>
26
30
  ```
27
31
 
28
- You should begin by including the library in your page.
29
-
30
- Add this script tag to your page to get started with with the url below:
31
-
32
- *Compressed version for production*
33
- `https://widget.paydock.com/sdk/latest/widget.umd.min.js`
34
32
 
35
- *Full version for development and debug*
36
- `https://widget.paydock.com/sdk/latest/widget.umd.js`
33
+ For browser environments, you can import the Client SDK directly from our CDN to
34
+ your project's HTML. To accomplish this, include the Client SDK in your page
35
+ using one and only of the two script tags below. After this step you will be
36
+ able to access the Client SDK features via the global variable `paydock`.
37
37
 
38
+ For production we recommend using the compressed version (`.min.js`) since
39
+ it will result in faster loading times for your end users.
38
40
 
41
+ - *Compressed version for production: `https://widget.paydock.com/sdk/latest/widget.umd.min.js`*
39
42
 
43
+ - *Full version for development and debug: `https://widget.paydock.com/sdk/latest/widget.umd.js`*
40
44
 
41
- Also can download library the [production version][min] or the [development version][max]
45
+ You may download the production version of the Client SDK scripts [here][min],
46
+ and, the development version [here][max].
42
47
 
43
48
  [min]: https://widget.paydock.com/sdk/latest/widget.umd.min.js
44
49
  [max]: https://widget.paydock.com/sdk/latest/widget.umd.js
45
50
 
46
-
47
- The library will always be available via the global variable `paydock`.
48
-
49
-
50
-
51
- Also for more advanced use, the library has [UMD](https://github.com/umdjs/umd) format, thus can be used in requireJs, webpack, etc.
52
-
53
-
54
-
55
-
56
-
57
-
58
-
51
+ For more advanced use-cases, the library has [UMD](https://github.com/umdjs/umd)
52
+ format that can be used in RequireJS, Webpack, etc.
59
53
 
60
54
 
61
55
  ### With package manager
62
56
 
63
-
64
- ```javascript--es2015
65
- // ES2015 / TypeScript
66
-
67
- import { HtmlWidget } from '@paydock/client-sdk/widget';
68
-
69
- let widget = new HtmlWidget('#selector', 'publicKey', 'gatewayId');
57
+ ```cjs
58
+ // module import - CommonJS/Node projects ✅
59
+ const paydock = require('@paydock/client-sdk')
60
+ const api = new paydock.Api('publicKey');
70
61
  ```
71
62
 
72
-
73
- ```html
74
- <script src="@paydock/client-sdk/bundles/widget.umd.min.js"></script>
75
- <script>
76
- var widget = new paydock.HtmlWidget('#tag', 'publicKey', 'gatewayId');
77
- </script>
63
+ ```mjs
64
+ // named import - ESM projects or TypeScript projects ✅
65
+ import { HtmlWidget } from '@paydock/client-sdk'
66
+ const widget = new HtmlWidget('#selector', 'publicKey', 'gatewayId');
78
67
  ```
79
68
 
69
+ ```mjs
70
+ // namespaced import - ESM projects or TypeScript projects ✅
71
+ import * as Paydock from '@paydock/client-sdk'
72
+ const widget = new Paydock.HtmlWidget('#selector', 'publicKey', 'gatewayId');
73
+ ```
80
74
 
81
- To install with package manager, enter the following command:
82
-
83
- `npm install @paydock/client-sdk`
84
-
85
-
86
- You can use ES2015 or TypeScript modules
87
-
88
- `@paydock/client-sdk/widget`
89
-
90
-
91
- Also can use UMD module (global visibility, see above)
92
-
93
- `@paydock/client-sdk/bundles/widget.umd.js`
75
+ ```js
76
+ // default import - We do not provide default exports. They are handled differently by different tools!
77
+
78
+ import paydock from '@paydock/client-sdk'
79
+ >>> "Uncaught SyntaxError: The requested module does not provide an export named 'default'"
80
+ ```
94
81
 
95
- `@paydock/client-sdk/bundles/widget.umd.min.js`
96
82
 
83
+ Our NPM package is compatible with all package managers (e.g., `npm`, `yarn`,
84
+ `pnpm`, `bun`). Using `npm` the following command would add the Client SDK as a
85
+ production dependency.
97
86
 
87
+ ```bash
88
+ npm install @paydock/client-sdk
89
+ ```
98
90
 
91
+ After installation is complete, if you are developing in NodeJS environments or
92
+ using tools that expect your JavaScript code to be in CJS format (e.g., Jest,
93
+ Karma, RequireJS, Webpack), you can import the Client SDK using CommonJS modules.
94
+ For these environments the UMD format (`@paydock/client-sdk/bundles/widget.umd.js`)
95
+ can also be used as a fallback. Alternatively, in case you are developing in
96
+ projects that have access to modern bundlers such as Vite or others (e.g., SPA
97
+ libs or SSR Metaframeworks), you can import the Client SDK features using ESM
98
+ through named imports or namespaced imports.
99
99
 
100
100
 
101
101
  ## Widget
@@ -122,11 +122,11 @@ var widget = new paydock.HtmlWidget('#widget', 'publicKey');
122
122
  widget.load();
123
123
  ```
124
124
 
125
- ```javascript--es2015
125
+ ```javascript
126
126
  // ES2015 | TypeScript
127
127
 
128
- import { HtmlWidget } from '@paydock/client-sdk/widget';
129
-
128
+ import { HtmlWidget } from '@paydock/client-sdk';
129
+
130
130
  var widget = new HtmlWidget('#widget', 'publicKey');
131
131
  widget.load();
132
132
  ```
@@ -134,7 +134,7 @@ widget.load();
134
134
  Then write only need 2 lines of code in js to initialize widget
135
135
 
136
136
 
137
- ### Full example
137
+ ### Full example
138
138
 
139
139
  ```html
140
140
  <!DOCTYPE html>
@@ -197,9 +197,9 @@ widget.setFormFields(['phone', 'email']); // add additional fields for form of w
197
197
  widget.setSupportedCardIcons(['mastercard', 'visa']); // add icons of supported card types
198
198
  ```
199
199
 
200
- 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
201
201
 
202
- ### Full example
202
+ ### Full example
203
203
 
204
204
  ```html
205
205
  <!DOCTYPE html>
@@ -220,12 +220,12 @@ This example shows how you can use a lot of other methods to settings your form
220
220
  <script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
221
221
  <script>
222
222
  var widget = new paydock.HtmlWidget('#widget', 'publicKey', 'gatewayId');
223
-
223
+
224
224
  widget.setSupportedCardIcons(['mastercard', 'visa']);
225
225
  widget.setFormFields(['phone', 'email']);
226
226
  widget.setRefId('custom-ref-id');
227
227
  widget.onFinishInsert('input[name="payment_source_token"]', 'payment_source');z
228
-
228
+
229
229
  widget.load();
230
230
  </script>
231
231
  </script>
@@ -262,10 +262,10 @@ var list = new paydock.HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken
262
262
  list.load();
263
263
  ```
264
264
 
265
- ```javascript--es2015
265
+ ```javascript
266
266
  // ES2015 | TypeScript
267
267
 
268
- import { HtmlPaymentSourceWidget } from '@paydock/client-sdk/payment-source-widget';
268
+ import { HtmlPaymentSourceWidget } from '@paydock/client-sdk';
269
269
 
270
270
  var list = new HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken');
271
271
  list.load();
@@ -392,7 +392,7 @@ You must create a button to turn it into checkout-button
392
392
  var button = new paydock.PaypalCheckoutButton('#button', 'publicKey', 'gatewayId');
393
393
  ```
394
394
 
395
- ```javascript--es2015
395
+ ```javascript
396
396
  // ES2015 | TypeScript
397
397
 
398
398
 
@@ -622,11 +622,11 @@ This wrapper helps you to work with paydock api emdpoints
622
622
  var browserDetails = await new paydock.Api('publicKey').setEnv('env').getBrowserDetails();
623
623
  ```
624
624
 
625
- ```javascript--es2015
625
+ ```javascript
626
626
  // ES2015 | TypeScript
627
627
 
628
- import { Api } from '@paydock/client-sdk/api';
629
-
628
+ import { Api } from '@paydock/client-sdk';
629
+
630
630
  var browserDetails = await new paydock.Api('publicKey').setEnv('env').getBrowserDetails();
631
631
  ```
632
632
 
@@ -639,11 +639,11 @@ var response = await new paydock.Api('publicKey').setEnv('env').charge().preAuth
639
639
  });
640
640
  ```
641
641
 
642
- ```javascript--es2015
642
+ ```javascript
643
643
  // ES2015 | TypeScript
644
644
 
645
- import { Api } from '@paydock/client-sdk/api';
646
-
645
+ import { Api } from '@paydock/client-sdk';
646
+
647
647
  var response = await new Api('publicKey').setEnv('env').charge().preAuth({
648
648
  amount: 100,
649
649
  currency: 'AUD',
@@ -653,7 +653,7 @@ var response = await new Api('publicKey').setEnv('env').charge().preAuth({
653
653
 
654
654
  Then write only need 2 lines of code in js to make request
655
655
 
656
- ### Initialization full example
656
+ ### Initialization full example
657
657
 
658
658
  ```html
659
659
  <!DOCTYPE html>
@@ -700,10 +700,10 @@ var canvas3ds = new paydock.Canvas3ds('#widget', 'token');
700
700
  canvas3ds.load();
701
701
  ```
702
702
 
703
- ```javascript--es2015
703
+ ```javascript
704
704
  // ES2015 | TypeScript
705
705
 
706
- import { Canvas3ds } from '@paydock/client-sdk/canvas3ds';
706
+ import { Canvas3ds } from '@paydock/client-sdk';
707
707
 
708
708
  var list = new Canvas3ds('#widget', 'token');
709
709
  list.load();
@@ -924,7 +924,7 @@ After you initialized the standalone 3ds charge via `v1/charges/standalone-3ds`
924
924
  ## Vault Display Widget
925
925
  You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#vault-display-widget)
926
926
 
927
- The vault display form allows viewing card number and CVV. The form can be customised according to your needs.
927
+ The vault display form allows viewing card number and CVV. The form can be customised according to your needs.
928
928
  You can set styles as well as subscribe to widget events that help monitor user’s actions in real time.
929
929
 
930
930
  ## Vault Display Widget simple example
@@ -944,18 +944,18 @@ var widget = new paydock.VaultDisplayWidget('#widget', 'token');
944
944
  widget.load();
945
945
  ```
946
946
 
947
- ```javascript--es2015
947
+ ```javascript
948
948
  // ES2015 | TypeScript
949
949
 
950
- import { VaultDisplayWidget } from '@paydock/client-sdk/vault-display-widget';
951
-
950
+ import { VaultDisplayWidget } from '@paydock/client-sdk';
951
+
952
952
  var widget = new VaultDisplayWidget('#widget', 'token');
953
953
  widget.load();
954
954
  ```
955
955
 
956
956
  Then write only need 2 lines of code in js to initialize widget
957
957
 
958
- ### Full example
958
+ ### Full example
959
959
 
960
960
  ```html
961
961
  <!DOCTYPE html>
@@ -966,9 +966,9 @@ Then write only need 2 lines of code in js to initialize widget
966
966
  <style>iframe {border: 0;width: 100%;height: 300px;}</style>
967
967
  </head>
968
968
  <body>
969
-
969
+
970
970
  <div id="widget"></div>
971
-
971
+
972
972
  <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
973
973
  <script>
974
974
  var widget = new paydock.VaultDisplayWidget('#widget', 'token');
@@ -1006,9 +1006,9 @@ widget.setStyles({
1006
1006
  });
1007
1007
  ```
1008
1008
 
1009
- This example shows how you can use a lot of other methods to settings your form
1009
+ This example shows how you can use a lot of other methods to settings your form
1010
1010
 
1011
- ### Full example
1011
+ ### Full example
1012
1012
 
1013
1013
  ```html
1014
1014
  <!DOCTYPE html>
@@ -1019,27 +1019,27 @@ This example shows how you can use a lot of other methods to settings your form
1019
1019
  <style>iframe {border: 0;width: 40%;height: 450px;}</style>
1020
1020
  </head>
1021
1021
  <body>
1022
-
1022
+
1023
1023
  <div id="widget"></div>
1024
-
1024
+
1025
1025
  <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
1026
1026
  <script>
1027
1027
  var widget = new paydock.VaultDisplayWidget('#widget', 'token');
1028
1028
 
1029
1029
  widget.setEnv('sandbox');
1030
-
1030
+
1031
1031
  widget.on('after_load', function (data) {
1032
1032
  console.log(data);
1033
1033
  });
1034
-
1034
+
1035
1035
  widget.on('cvv_secure_code_requested', function (data) {
1036
1036
  console.log(data);
1037
1037
  });
1038
-
1038
+
1039
1039
  widget.on('card_number_secure_code_requested', function (data) {
1040
1040
  console.log(data);
1041
1041
  });
1042
-
1042
+
1043
1043
  widget.setStyles({
1044
1044
  background_color: 'rgb(0, 0, 0)',
1045
1045
  border_color: 'yellow',
@@ -1088,7 +1088,7 @@ let button = new paydock.WalletButtons(
1088
1088
  button.load();
1089
1089
  ```
1090
1090
 
1091
- ```javascript--es2015
1091
+ ```javascript
1092
1092
  // ES2015 | TypeScript
1093
1093
  import { WalletButtons } from '@paydock/client-sdk';
1094
1094
 
@@ -1103,7 +1103,7 @@ var button = new WalletButtons(
1103
1103
  button.load();
1104
1104
  ```
1105
1105
 
1106
- Flypay, Flypay V2 and Paypal wallets do not require any meta sent to the wallet, so the following is enough for initialization:
1106
+ Flypay and Paypal wallets do not require any meta sent to the wallet, so the following is enough for initialization:
1107
1107
  ```javascript
1108
1108
  let button = new paydock.WalletButtons(
1109
1109
  "#widget",
@@ -1113,7 +1113,7 @@ let button = new paydock.WalletButtons(
1113
1113
  button.load();
1114
1114
  ```
1115
1115
 
1116
- ```javascript--es2015
1116
+ ```javascript
1117
1117
  // ES2015 | TypeScript
1118
1118
  import { WalletButtons } from '@paydock/client-sdk';
1119
1119
 
@@ -1137,7 +1137,7 @@ let button = new paydock.WalletButtons(
1137
1137
  button.load();
1138
1138
  ```
1139
1139
 
1140
- ```javascript--es2015
1140
+ ```javascript
1141
1141
  // ES2015 | TypeScript
1142
1142
  import { WalletButtons } from '@paydock/client-sdk';
1143
1143
 
@@ -1151,6 +1151,32 @@ var button = new WalletButtons(
1151
1151
  button.load();
1152
1152
  ```
1153
1153
 
1154
+ For Flypay v2 wallet, the client_id is required:
1155
+ ```javascript
1156
+ let button = new paydock.WalletButtons(
1157
+ "#widget",
1158
+ token,
1159
+ {
1160
+ client_id: "client_id",
1161
+ }
1162
+ );
1163
+ button.load();
1164
+ ```
1165
+
1166
+ ```javascript
1167
+ // ES2015 | TypeScript
1168
+ import { WalletButtons } from '@paydock/client-sdk';
1169
+
1170
+ var button = new WalletButtons(
1171
+ '#widget',
1172
+ token,
1173
+ {
1174
+ client_id: "client_id",
1175
+ }
1176
+ );
1177
+ button.load();
1178
+ ```
1179
+
1154
1180
  ### Setting environment
1155
1181
 
1156
1182
  Current method can change environment. By default environment = sandbox.
@@ -1451,10 +1477,11 @@ _(Required `meta` fields: - . Optional `meta` fields: -)_
1451
1477
  {
1452
1478
  access_token: 'TOKEN',
1453
1479
  refresh_token: 'TOKEN',
1480
+ client_id: 'CLIENT_ID',
1454
1481
  },
1455
1482
  );
1456
1483
  button.setEnv('sandbox');
1457
- button.onUnavailable(() => console.log("No wallet buttons available"));
1484
+ button.onUnavailable((data) => console.log("No wallet buttons available"));
1458
1485
  button.onPaymentSuccessful((data) => console.log("The payment was successful"));
1459
1486
  button.onPaymentError((data) => console.log("The payment was not successful"));
1460
1487
  button.onAuthTokensChanged((data) => console.log('Authentication tokens changed'));
@@ -1664,54 +1691,57 @@ Similarly, for **GooglePay via MPGS** you can initialize the `PaymentMethodSpeci
1664
1691
  </html>
1665
1692
  ```
1666
1693
 
1667
- ## Secure Remote Commerce
1668
- You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#SRC).
1694
+ # Click To Pay
1669
1695
 
1670
- This widget provides you with the ability to easily integrate with SRC providers. Currently Visa SRC is supported.
1696
+ ## Overview
1671
1697
 
1672
- ## SRC simple example
1698
+ Integrate with Click To Pay using Paydock's Click To Pay widget.
1699
+ For a full description of the methods and parameters, reference the [README file](https://www.npmjs.com/package/@paydock/client-sdk#ClickToPay).
1673
1700
 
1674
- ### Container
1701
+ ## Click To Pay simple example
1702
+
1703
+ The following section provides an example use case and integration for the widget.
1704
+
1705
+ ### Create a Container
1706
+
1707
+ To integrate the Click To Pay checkout iFrame, create a container in your HTML code. This container serves as the placeholder for the iFrame.
1675
1708
 
1676
1709
  ```html
1677
- <div id="checkoutButton"></div>
1678
1710
  <div id="checkoutIframe"></div>
1679
1711
  ```
1680
1712
 
1681
- You must create a container for the initial checkout button, and a different one for the checkout iFrame. Inside the first tag the button will be initialized, and inside the second one the iFrame will be loaded once the button is clicked.
1713
+ ### Initialize the Widget
1682
1714
 
1715
+ Use the following code to initialize your widget:
1683
1716
 
1684
- ### Initialization
1685
1717
  ```javascript
1686
- var src = new paydock.SRC(
1687
- "#checkoutButton",
1718
+ var src = new paydock.ClickToPay(
1688
1719
  "#checkoutIframe",
1689
- "scheme_service_id",
1720
+ "service_id",
1690
1721
  "paydock_public_key_or_access_token",
1691
1722
  {}, // meta
1692
1723
  );
1693
1724
  src.load();
1694
1725
  ```
1695
1726
 
1696
- ```javascript--es2015
1727
+ ```javascript
1697
1728
  // ES2015 | TypeScript
1698
-
1699
- import { SRC } from '@paydock/client-sdk';
1700
-
1701
- var src = new SRC(
1702
- "#checkoutButton",
1729
+ import { ClickToPay } from '@paydock/client-sdk';
1730
+ var src = new ClickToPay(
1703
1731
  "#checkoutIframe",
1704
- "scheme_service_id",
1732
+ "service_id",
1705
1733
  "paydock_public_key_or_access_token",
1706
1734
  {}, // meta
1707
1735
  );
1708
1736
  src.load();
1709
1737
  ```
1710
1738
 
1711
- *NOTE:* it's highly recommended to use a Paydock Access Token instead of the public key for security reasons. When creating it, you will need to enable the `Secure Remote Commerce` and add a whiteliste for the domain of your checkout screen.
1739
+ *NOTE:* Paydock recommends that you use a Paydock Access Token instead of a public key for security reasons in production environments. When creating your access token, you must enable the `Secure Remote Commerce` and add a whitelist for the domain of your checkout screen.
1712
1740
 
1713
1741
  ### Full example
1714
1742
 
1743
+ A full example of the container and the initialized widget is as follows:
1744
+
1715
1745
  ```html
1716
1746
  <!DOCTYPE html>
1717
1747
  <html lang="en">
@@ -1721,14 +1751,12 @@ src.load();
1721
1751
  <style>iframe {border: 0;width: 40%;height: 300px;}</style>
1722
1752
  </head>
1723
1753
  <body>
1724
- <div id="checkoutButton"></div>
1725
1754
  <div id="checkoutIframe"></div>
1726
1755
  <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
1727
1756
  <script>
1728
- var src = new paydock.SRC(
1729
- "#checkoutButton",
1757
+ var src = new paydock.ClickToPay(
1730
1758
  "#checkoutIframe",
1731
- "scheme_service_id",
1759
+ "service_id",
1732
1760
  "paydock_public_key_or_access_token",
1733
1761
  {},
1734
1762
  );
@@ -1738,50 +1766,30 @@ src.load();
1738
1766
  </html>
1739
1767
  ```
1740
1768
 
1769
+ ## Customize your Click To Pay Checkout
1741
1770
 
1742
- ## SRC advanced example
1771
+ The following is an advanced example that includes customization. You can use these methods to enhance your checkout experience.
1743
1772
 
1744
1773
  ### Settings
1745
1774
 
1746
1775
  ```javascript
1747
-
1748
- src.setEnv('sandbox'); // set enviroment
1749
-
1750
- src.hideButton(); // hide button
1751
-
1752
- src.showButton(); // show button
1753
-
1776
+ src.setEnv('sandbox'); // set environment
1754
1777
  src.hideCheckout(); // hide checkout iframe
1755
-
1756
1778
  src.showCheckout(); // show checkout iframe
1757
-
1758
- src.on('checkoutButtonLoaded', () => {
1759
- console.log("Button loaded");
1760
- });
1761
-
1762
- src.on('checkoutButtonClicked', () => {
1763
- console.log("Button clicked");
1764
- });
1765
-
1766
1779
  src.on('iframeLoaded', () => {
1767
1780
  console.log("Initial iframe loaded");
1768
1781
  });
1769
-
1770
1782
  src.on('checkoutReady', () => {
1771
1783
  console.log("Checkout ready to be used");
1772
1784
  });
1773
-
1774
1785
  src.on('checkoutCompleted', (token) => {
1775
1786
  console.log(token);
1776
1787
  });
1777
-
1778
1788
  src.on('checkoutError', (error) => {
1779
1789
  console.log(error);
1780
1790
  });
1781
1791
  ```
1782
1792
 
1783
- Here you can see how you can use this methods to customize your checkout experience
1784
-
1785
1793
  ### Full example
1786
1794
 
1787
1795
  ```html
@@ -1793,64 +1801,72 @@ Here you can see how you can use this methods to customize your checkout experie
1793
1801
  <style>iframe {border: 0;width: 40%;height: 450px;}</style>
1794
1802
  </head>
1795
1803
  <body>
1796
- <div id="checkoutButton"></div>
1797
1804
  <div id="checkoutIframe"></div>
1798
1805
  <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
1799
1806
  <script>
1800
- var src = new paydock.SRC(
1801
- "#checkoutButton",
1807
+ var src = new paydock.ClickToPay(
1802
1808
  "#checkoutIframe",
1803
- "scheme_service_id",
1809
+ "service_id",
1804
1810
  "paydock_public_key_or_access_token",
1805
1811
  {},
1806
1812
  );
1807
-
1813
+ src.on('iframeLoaded', () => {
1814
+ console.log("Initial iframe loaded");
1815
+ });
1808
1816
  src.on('checkoutReady', () => {
1809
1817
  console.log("Checkout ready to be used");
1810
1818
  });
1811
-
1812
1819
  src.on('checkoutCompleted', (token) => {
1813
1820
  console.log(token);
1814
1821
  });
1822
+ src.on('checkoutError', (error) => {
1823
+ console.log(error);
1824
+ });
1815
1825
  src.load();
1816
1826
  </script>
1817
1827
  </body>
1818
1828
  </html>
1819
1829
  ```
1820
1830
 
1821
- ## Customization options for address fields
1822
- ### Shipping address:
1831
+ ## Customize your billing address fields
1823
1832
 
1824
- To customize shipping address experience we use a flag that manages how VisaSRC requires or not shipping address to the customer. Options are NONE (default option), POSTAL_COUNTRY or ALL.
1833
+ To customize your billing address experience, Paydock uses a flag that manages whether a customer's billing address is mandatory.
1834
+ The options for this customization are NONE (default option), and POSTAL_COUNTRY or FULL.
1825
1835
 
1826
1836
  ```
1827
- var src = new paydock.SRC(
1828
- "#checkoutButton",
1837
+ var src = new paydock.ClickToPay(
1829
1838
  "#checkoutIframe",
1830
- "scheme_service_id",
1839
+ "service_id",
1831
1840
  "paydock_public_key_or_access_token",
1832
1841
  {
1833
1842
  "dpa_transaction_options": {
1834
- "dpa_shipping_preference": "ALL"
1843
+ "dpa_billing_preference": "FULL"
1835
1844
  }
1836
1845
  },
1837
1846
  );
1838
1847
  ```
1839
1848
 
1840
- With this the Visa popup requires the shipping address from consumer, and these information will be stored in the Paydock charge.
1841
-
1842
- Another option is at time of creating the charge. Say that you have a different way of collecting the shipping address (outside Paydock checkout), you can then disable the shipping address on our SRC widget and send it when creating the charge creation after getting the One Time Token out of the SRC widget:
1849
+ The Click To Pay checkout in the example requires the billing address from the customer, which is then returned as a part of the checkout data. The data is then stored and leveraged in the Paydock charge.
1850
+ You can also provide the billing address at the time of creating the charge. For example, if you have a different method for collecting the billing address, such as outside of the Click To Pay checkout, you can provide it alongside other information at the charge creation step:
1851
+ 1. Disable the billing address in Paydock's Click To Pay widget.
1852
+ 2. Get your One Time Token from the Click To Pay widget alongside other details that may have been collected outside the Click To Pay checkout as the shipping address.
1853
+ 3. Send the billing address when creating the charge.
1843
1854
 
1844
1855
  ```
1845
1856
  POST v1/charges
1846
-
1847
1857
  {
1848
1858
  "amount": "10.00",
1849
1859
  "currency": "AUD",
1850
- "token": "token",
1860
+ "token": "one_time_token",
1851
1861
  "customer": {
1852
1862
  "payment_source": {
1853
- "gateway_id": "gateway_id"
1863
+ "gateway_id": "gateway_id",
1864
+ "address_line1": "address_line1",
1865
+ "address_line2": "address_line2",
1866
+ "address_city": "address_city",
1867
+ "address_postcode": "address_postcode",
1868
+ "address_state": "address_state",
1869
+ "address_country": "address_country"
1854
1870
  }
1855
1871
  },
1856
1872
  "shipping": {
@@ -1865,60 +1881,80 @@ POST v1/charges
1865
1881
  }
1866
1882
  ```
1867
1883
 
1868
- - Billing address:
1884
+ ## How to customize accepted cards
1885
+
1886
+ You can send a flag `unaccepted_card_type` to block the usage of a specific card type. The available options are 'DEBIT' and 'CREDIT'.
1869
1887
 
1870
- Billing address fields are always present on the checkout and required when adding a new credit card (or for new consumer checkout). You can send billing fields on the meta data to pre-fill these fields inside the customer object:
1888
+ ### Example code
1889
+
1890
+ The following example demonstrates how to block the card:
1871
1891
 
1872
1892
  ```
1873
- var src = new paydock.SRC(
1874
- "#checkoutButton",
1893
+ var src = new paydock.ClickToPay(
1875
1894
  "#checkoutIframe",
1876
- "scheme_service_id",
1877
- "paydock_public_key_or_access_token",
1895
+ "service_id",
1896
+ "paydock_public_key",
1878
1897
  {
1879
- "customer": {
1880
- "email": "test@email.com",
1881
- "first_name": "Name",
1882
- "last_name": "Surname",
1883
- "phone": {
1884
- "country_code": "1",
1885
- "phone": "2124567890"
1886
- },
1887
- "payment_source": {
1888
- "address_line1": "Line 1",
1889
- "address_line2": "Line 2",
1890
- "address_city": "Miami",
1891
- "address_postcode": "33126",
1892
- "address_state": "FL",
1893
- "address_country": "US"
1894
- }
1895
- }
1898
+ unaccepted_card_type: 'DEBIT'
1896
1899
  },
1897
1900
  );
1898
1901
  ```
1899
1902
 
1900
- ## Personalization Styling
1903
+ ## Personalize the Style
1901
1904
 
1902
- To improve the experience in the use of the widget, it is allowed to send props that customize the UI.
1905
+ Customize the look and feel of your UI. The following example demonstrates changes in the styling of the buttons.
1903
1906
 
1904
1907
  ### Example code
1905
1908
 
1906
1909
  ```
1907
- var src = new paydock.SRC(
1908
- "#checkoutButton",
1910
+ var src = new paydock.ClickToPay(
1909
1911
  "#checkoutIframe",
1910
- "scheme_service_id",
1912
+ "service_id",
1911
1913
  "paydock_public_key",
1914
+ {},
1912
1915
  );
1916
+ src.setStyles({
1917
+ enable_src_popup: true,
1918
+ primary_button_color: 'red',
1919
+ secondary_button_color: 'red',
1920
+ primary_button_text_color: 'red',
1921
+ secondary_button_text_color: 'red',
1922
+ font_family: 'Arial',
1923
+ });
1924
+ ```
1913
1925
 
1914
- button.setStyles({"primary_color":"#a83232","button_text_color":"#171e9c","font_family":"sans-serif"})
1926
+ ## Recognition token
1915
1927
 
1916
- ```
1917
- ## Event and Values
1928
+ In order to store user information for further payments, click to pay provides a recognition token that is used to load user information.
1929
+ If you already have a recognitionToken stored, you can use it in meta to load the user information.
1918
1930
 
1919
- | Event Value | Type | Description |
1920
- | ------------------- | ------------------- | -------------------------------------------------------------- |
1921
- | primary_color | <code>string</code> | HEX color for the principal buttons, example : #32a852 |
1922
- | button_text_color | <code>string</code> | HEX color for the text of the buttons, example : #32a852|
1923
- | font_family | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family)|
1924
- | card_schemes | <code>[string] - array of string</code> | Possible values "visa", "mastercard", "amex" and "discover" - Default show all logos
1931
+ ### Storage suggestions
1932
+ Merchant can store the tokens by dropping the token as a 1st party cookie in the browser, and must ensure to manage all the security aspects around dropping/storing the cookie by following the security standards:
1933
+
1934
+ - `Expiration Date=` cookie should be set to expire at a max 180 days
1935
+ - `Secure` flag
1936
+ - `httpOnly` flag
1937
+ - `sameSite=` strict
1938
+ - `Value=` recognition token JWT
1939
+
1940
+ ### Example code
1941
+
1942
+ ```javascript
1943
+ var src = new paydock.ClickToPay(
1944
+ "#checkoutIframe",
1945
+ "service_id",
1946
+ "paydock_public_key",
1947
+ {
1948
+ "recognition_token": "eyJraWQiOiIy...",
1949
+ },
1950
+ );
1951
+ src.on('recognitionTokenRequested', (data) => {
1952
+ console.log('Recognition token was found: ' + data.data.recognitionToken);
1953
+ // Add recognition token to your store
1954
+ });
1955
+
1956
+ src.on('recognitionTokenDropped', () => {
1957
+ console.log('Recognition token was droped');
1958
+ // Delete recognition token from your store
1959
+ });
1960
+ ```