@paydock/client-sdk 1.104.9-beta → 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 (253) hide show
  1. package/README.md +1984 -396
  2. package/bundles/index.cjs +33513 -8908
  3. package/bundles/index.cjs.d.ts +867 -52
  4. package/bundles/index.mjs +33507 -8908
  5. package/bundles/index.mjs.d.ts +867 -52
  6. package/bundles/types/api/api-base.d.ts +19 -6
  7. package/bundles/types/api/api-base.d.ts.map +1 -1
  8. package/bundles/types/api/api-charge-internal.d.ts +1 -0
  9. package/bundles/types/api/api-charge-internal.d.ts.map +1 -1
  10. package/bundles/types/api/api-checkout-internal.d.ts +57 -0
  11. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
  12. package/bundles/types/api/api-gateway-internal.d.ts +12 -0
  13. package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
  14. package/bundles/types/api/api-internal.d.ts +4 -0
  15. package/bundles/types/api/api-internal.d.ts.map +1 -1
  16. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +3 -3
  17. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
  18. package/bundles/types/checkout/checkout.d.ts +86 -0
  19. package/bundles/types/checkout/checkout.d.ts.map +1 -0
  20. package/bundles/types/checkout/helpers/instruction-handler.d.ts +23 -0
  21. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
  22. package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
  23. package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
  24. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
  25. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
  26. package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
  27. package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
  28. package/bundles/types/checkout/helpers/resource-helper.d.ts +5 -0
  29. package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
  30. package/bundles/types/checkout/helpers/session-helper.d.ts +5 -0
  31. package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
  32. package/bundles/types/checkout/index.d.ts +2 -0
  33. package/bundles/types/checkout/index.d.ts.map +1 -0
  34. package/bundles/types/checkout/instructions/index.d.ts +3 -0
  35. package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
  36. package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
  37. package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
  38. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
  39. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  40. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
  41. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  42. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
  43. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
  44. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
  45. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
  46. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
  47. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
  48. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
  49. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
  50. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +19 -0
  51. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  52. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
  53. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
  54. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
  55. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
  56. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
  57. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
  58. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
  59. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
  60. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
  61. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
  62. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
  63. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
  64. package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
  65. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
  66. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
  67. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
  68. package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
  69. package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
  70. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
  71. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
  72. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +52 -0
  73. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
  74. package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
  75. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
  76. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +2 -0
  77. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -1
  78. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +4 -0
  79. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -1
  80. package/bundles/types/checkout-button/runner/contextual.runner.d.ts +2 -1
  81. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -1
  82. package/bundles/types/checkout-button/runner/popup.runner.d.ts +3 -3
  83. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -1
  84. package/bundles/types/components/http-core.d.ts.map +1 -1
  85. package/bundles/types/components/iframe-event.d.ts +2 -0
  86. package/bundles/types/components/iframe-event.d.ts.map +1 -1
  87. package/bundles/types/components/iframe.d.ts +2 -0
  88. package/bundles/types/components/iframe.d.ts.map +1 -1
  89. package/bundles/types/components/link.d.ts +1 -0
  90. package/bundles/types/components/link.d.ts.map +1 -1
  91. package/bundles/types/components/param.d.ts +6 -0
  92. package/bundles/types/components/param.d.ts.map +1 -1
  93. package/bundles/types/configs/env/environment.cba.d.ts +1 -1
  94. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -1
  95. package/bundles/types/configs/env/environment.paydock.d.ts +1 -1
  96. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -1
  97. package/bundles/types/helper/access-token.d.ts +1 -0
  98. package/bundles/types/helper/access-token.d.ts.map +1 -1
  99. package/bundles/types/helper/event-emitter.d.ts +1 -0
  100. package/bundles/types/helper/event-emitter.d.ts.map +1 -1
  101. package/bundles/types/helper/spiner.util.d.ts +6 -0
  102. package/bundles/types/helper/spiner.util.d.ts.map +1 -0
  103. package/bundles/types/helper/widget-logger.d.ts +9 -0
  104. package/bundles/types/helper/widget-logger.d.ts.map +1 -0
  105. package/bundles/types/index-cba.d.ts +4 -0
  106. package/bundles/types/index-cba.d.ts.map +1 -1
  107. package/bundles/types/index.d.ts +4 -0
  108. package/bundles/types/index.d.ts.map +1 -1
  109. package/bundles/types/paypal-data-collector/index.d.ts +23 -0
  110. package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
  111. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +59 -0
  112. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
  113. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
  114. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
  115. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +18 -0
  116. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
  117. package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
  118. package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
  119. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +86 -0
  120. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
  121. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +84 -0
  122. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
  123. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +37 -0
  124. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
  125. package/bundles/types/secure-remote-commerce/index.d.ts +2 -1
  126. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -1
  127. package/bundles/types/secure-remote-commerce/interfaces.d.ts +12 -2
  128. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -1
  129. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
  130. package/bundles/types/shared/http/http-request.d.ts +14 -0
  131. package/bundles/types/shared/http/http-request.d.ts.map +1 -0
  132. package/bundles/types/shared/http/index.d.ts +2 -0
  133. package/bundles/types/shared/http/index.d.ts.map +1 -0
  134. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
  135. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
  136. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
  137. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
  138. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
  139. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
  140. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
  141. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
  142. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
  143. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
  144. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
  145. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
  146. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
  147. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
  148. package/bundles/types/wallet-buttons/index.d.ts +4 -0
  149. package/bundles/types/wallet-buttons/index.d.ts.map +1 -1
  150. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +4 -4
  151. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -1
  152. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +4 -4
  153. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -1
  154. package/bundles/types/wallet-buttons/{afterpay.wallet-service.d.ts → wallet-services/afterpay.wallet-service.d.ts} +1 -1
  155. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
  156. package/bundles/types/wallet-buttons/{apple.wallet-service.d.ts → wallet-services/apple.wallet-service.d.ts} +3 -3
  157. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
  158. package/bundles/types/wallet-buttons/{flypay-v2.wallet-service.d.ts → wallet-services/flypay-v2.wallet-service.d.ts} +3 -3
  159. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
  160. package/bundles/types/wallet-buttons/{flypay.wallet-service.d.ts → wallet-services/flypay.wallet-service.d.ts} +6 -6
  161. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
  162. package/bundles/types/wallet-buttons/{google.wallet-service.d.ts → wallet-services/google.wallet-service.d.ts} +4 -4
  163. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
  164. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
  165. package/bundles/types/wallet-buttons/{paypal.wallet-service.d.ts → wallet-services/paypal.wallet-service.d.ts} +1 -1
  166. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
  167. package/bundles/types/wallet-buttons/{stripe.wallet-service.d.ts → wallet-services/stripe.wallet-service.d.ts} +1 -1
  168. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
  169. package/bundles/types/wallet-buttons/{wallet-service.d.ts → wallet-services/wallet-service.d.ts} +4 -4
  170. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
  171. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +195 -0
  172. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
  173. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +10 -0
  174. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
  175. package/bundles/types/wallet-buttons-express/index.d.ts +131 -0
  176. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
  177. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
  178. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
  179. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
  180. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
  181. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
  182. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
  183. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +14 -0
  184. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
  185. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
  186. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
  187. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
  188. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
  189. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
  190. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
  191. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
  192. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
  193. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
  194. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
  195. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
  196. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
  197. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
  198. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
  199. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
  200. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
  201. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +50 -0
  202. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
  203. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +3 -0
  204. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
  205. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
  206. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
  207. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +17 -0
  208. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
  209. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
  210. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
  211. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
  212. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
  213. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
  214. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
  215. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +31 -0
  216. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
  217. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +47 -0
  218. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
  219. package/bundles/types/widget/configuration.d.ts.map +1 -1
  220. package/bundles/types/widget/html-multi-widget.d.ts +4 -3
  221. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
  222. package/bundles/widget.umd.js +33513 -8908
  223. package/bundles/widget.umd.js.d.ts +867 -52
  224. package/bundles/widget.umd.js.min.d.ts +867 -52
  225. package/bundles/widget.umd.min.js +61 -2
  226. package/docs/click-to-pay-examples.md +36 -0
  227. package/docs/click-to-pay.md +4 -1
  228. package/docs/html/layout.html +1 -0
  229. package/docs/paypal-data-collector-examples.md +58 -0
  230. package/docs/paypal-data-collector.md +149 -0
  231. package/docs/paypal-save-payment-source-examples.md +63 -0
  232. package/docs/paypal-save-payment-source.md +256 -0
  233. package/docs/wallet-buttons-examples.md +29 -2
  234. package/docs/wallet-buttons-express-examples.md +201 -0
  235. package/docs/wallet-buttons-express.md +786 -0
  236. package/docs/wallet-buttons.md +3 -0
  237. package/examples/multi-html-widget/simple.html +2 -1
  238. package/package.json +98 -92
  239. package/slate.md +65 -2
  240. package/bundles/index.cjs.map +0 -1
  241. package/bundles/index.mjs.map +0 -1
  242. package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +0 -1
  243. package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +0 -1
  244. package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +0 -1
  245. package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +0 -1
  246. package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +0 -1
  247. package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +0 -1
  248. package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +0 -1
  249. package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +0 -1
  250. package/bundles/types/wallet-buttons/wallet-service.d.ts.map +0 -1
  251. package/bundles/widget.umd.js.map +0 -1
  252. package/bundles/widget.umd.min.js.map +0 -1
  253. /package/bundles/types/wallet-buttons/{mastercard.wallet-service.d.ts → wallet-services/mastercard.wallet-service.d.ts} +0 -0
@@ -131,6 +131,8 @@ Interface of data from an unavailable event.
131
131
  | Param | Type | Description |
132
132
  | --- | --- | --- |
133
133
  | [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'. |
134
+ | [type] | <code>string</code> | Event Code. Value can be 'create_order_id_error' on FlypayV2 order creation failure. Optional for [Flypay V2]. N/A for other wallets. |
135
+ | [error_code] | <code>string</code> | Event Error Code. Value can be any error code return from Paydock's API. Optional for [Flypay V2]. N/A for other wallets. + |
134
136
 
135
137
  <a name="IWalletUpdateData" id="IWalletUpdateData" href="#IWalletUpdateData">&nbsp;</a>
136
138
 
@@ -170,6 +172,7 @@ Interface of data used by the wallet checkout and payment proccess.
170
172
  | [style.button_type] | <code>object</code> | Used to select ApplePay button type (e.g: 'buy','donate', etc), check possible values at https://developer.apple.com/documentation/apple_pay_on_the_web/displaying_apple_pay_buttons_using_css. Also select button type for GooglePay (check GooglePayStyles) and Afterpay (check AfterpayStyles). Optional for [ApplePay, GooglePay, Afterpay]. N/A for other wallets. |
171
173
  | [style.height] | <code>object</code> | Used to select Afterpay button height. Optional for [Afterpay]. N/A for other wallets. |
172
174
  | [wallets] | <code>array</code> | By default if this is not sent or empty, we will try to show either Apple Pay or Google Pay buttons. This can be limited sending the following array in this field: ['apple','google]. Optional for [Stripe, ApplePay, GooglePay]. N/A for other wallets. |
175
+ | [client_id] | <code>string</code> | Client ID to be used in the provider system. Required for [Flypay V2]. N/A for [FlyPay, GooglePay, ApplePay, PayPal, Afterpay]. |
173
176
 
174
177
  <a name="IApplePayShippingOption" id="IApplePayShippingOption" href="#IApplePayShippingOption">&nbsp;</a>
175
178
 
@@ -16,7 +16,8 @@
16
16
 
17
17
  <div id="widget"></div>
18
18
 
19
- <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
19
+ <!-- <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script> -->
20
+ <script src="../../bundles/widget.umd.js" ></script>
20
21
 
21
22
  <script>
22
23
  var card = new paydock.Configuration('5c77d21fb8d0ce13df9bce3f');
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "types": "./bundles/index.mjs.d.ts",
23
23
  "unpkg": "./bundles/widget.umd.js",
24
24
  "exports": {
25
- "./api": {
25
+ ".": {
26
26
  "import": {
27
27
  "types": "./bundles/index.mjs.d.ts",
28
28
  "default": "./bundles/index.mjs"
@@ -30,9 +30,19 @@
30
30
  "module": {
31
31
  "types": "./bundles/index.mjs.d.ts",
32
32
  "default": "./bundles/index.mjs"
33
- }
33
+ },
34
+ "node": {
35
+ "types": "./bundles/index.cjs.d.ts",
36
+ "default": "./bundles/index.cjs"
37
+ },
38
+ "require": {
39
+ "types": "./bundles/index.cjs.d.ts",
40
+ "default": "./bundles/index.cjs"
41
+ },
42
+ "types": "./bundles/index.mjs.d.ts",
43
+ "default": "./bundles/index.mjs.js"
34
44
  },
35
- "./canvas3ds": {
45
+ "./api": {
36
46
  "import": {
37
47
  "types": "./bundles/index.mjs.d.ts",
38
48
  "default": "./bundles/index.mjs"
@@ -42,7 +52,7 @@
42
52
  "default": "./bundles/index.mjs"
43
53
  }
44
54
  },
45
- "./checkout-button": {
55
+ "./canvas3ds": {
46
56
  "import": {
47
57
  "types": "./bundles/index.mjs.d.ts",
48
58
  "default": "./bundles/index.mjs"
@@ -52,7 +62,7 @@
52
62
  "default": "./bundles/index.mjs"
53
63
  }
54
64
  },
55
- "./payment-source-widget": {
65
+ "./checkout-button": {
56
66
  "import": {
57
67
  "types": "./bundles/index.mjs.d.ts",
58
68
  "default": "./bundles/index.mjs"
@@ -62,7 +72,7 @@
62
72
  "default": "./bundles/index.mjs"
63
73
  }
64
74
  },
65
- "./vault-display-widget": {
75
+ "./payment-source-widget": {
66
76
  "import": {
67
77
  "types": "./bundles/index.mjs.d.ts",
68
78
  "default": "./bundles/index.mjs"
@@ -72,7 +82,7 @@
72
82
  "default": "./bundles/index.mjs"
73
83
  }
74
84
  },
75
- "./widget": {
85
+ "./vault-display-widget": {
76
86
  "import": {
77
87
  "types": "./bundles/index.mjs.d.ts",
78
88
  "default": "./bundles/index.mjs"
@@ -82,7 +92,7 @@
82
92
  "default": "./bundles/index.mjs"
83
93
  }
84
94
  },
85
- ".": {
95
+ "./widget": {
86
96
  "import": {
87
97
  "types": "./bundles/index.mjs.d.ts",
88
98
  "default": "./bundles/index.mjs"
@@ -90,27 +100,18 @@
90
100
  "module": {
91
101
  "types": "./bundles/index.mjs.d.ts",
92
102
  "default": "./bundles/index.mjs"
93
- },
94
- "node": {
95
- "types": "./bundles/index.cjs.d.ts",
96
- "default": "./bundles/index.cjs"
97
- },
98
- "require": {
99
- "types": "./bundles/index.cjs.d.ts",
100
- "default": "./bundles/index.cjs"
101
- },
102
- "types": "./bundles/index.mjs.d.ts",
103
- "default": "./bundles/index.mjs.js"
103
+ }
104
104
  }
105
105
  },
106
106
  "name": "@paydock/client-sdk",
107
- "version": "1.104.9-beta",
107
+ "version": "1.105.56-beta",
108
108
  "scripts": {
109
109
  "build:doc": "node docs/html/marked.js",
110
110
  "build:js": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
111
111
  "bundle:css": "grunt replace:css",
112
112
  "bundle:html": "grunt replace:html",
113
113
  "bundle:js": "run-s clean:bundles build:js",
114
+ "bundle:js:local": "npm run bundle:js && npm run replace:hosts",
114
115
  "clean:bundles": "rimraf ./bundles/",
115
116
  "clean:lib": "rimraf ./lib/",
116
117
  "compute:checksums:bundles": "find ./bundles -type f -exec sha256sum {} \\;",
@@ -119,6 +120,7 @@
119
120
  "doc:cba": "run-s clean:lib tsc:cba markdown:cba",
120
121
  "doc:paydock": "run-s clean:lib tsc:paydock markdown:paydock",
121
122
  "lint": "tslint -c tslint.json 'src/**/*.ts{,x}'",
123
+ "lint:fix": "tslint -c tslint.json 'src/**/*.ts{,x}' --fix",
122
124
  "markdown:cba": "grunt cba_docs",
123
125
  "markdown:paydock": "grunt docs",
124
126
  "publish:local": "./publish-to-local-registry.sh",
@@ -128,92 +130,96 @@
128
130
  "test": "run-s test:chromium",
129
131
  "tsc:cba": "tsc --project tsconfig.cba.json",
130
132
  "tsc:paydock": "tsc --project tsconfig.paydock.json",
131
- "typecheck": "tsc -b"
133
+ "tidy:ci": "biome ci --no-errors-on-unmatched .",
134
+ "tidy:precommit": "biome ci --no-errors-on-unmatched --changed .",
135
+ "tidy": "biome check --apply --formatter-enabled=true --linter-enabled=true --organize-imports-enabled=true --no-errors-on-unmatched .",
136
+ "typecheck": "tsc --project tsconfig.json --noEmit"
132
137
  },
133
138
  "dependencies": {
134
- "@auspayplus/open-payments-checkout": "1.7.3",
135
- "@stripe/stripe-js": "^1.11.0"
139
+ "@auspayplus/open-payments-checkout": "1.8.0",
140
+ "@newrelic/browser-agent": "1.260.1",
141
+ "@stripe/stripe-js": "1.54.2"
136
142
  },
137
143
  "devDependencies": {
138
- "@babel/cli": "^7.23.9",
139
- "@babel/core": "^7.24.0",
140
- "@babel/plugin-external-helpers": "^7.23.3",
141
- "@babel/plugin-transform-modules-umd": "^7.23.3",
142
- "@babel/plugin-transform-object-assign": "^7.23.3",
143
- "@babel/plugin-transform-runtime": "^7.24.0",
144
- "@babel/polyfill": "^7.12.1",
145
- "@babel/preset-env": "^7.24.0",
146
- "@babel/runtime": "^7.24.0",
147
- "@babel/runtime-corejs2": "^7.24.0",
148
- "@rollup/plugin-babel": "^6.0.4",
149
- "@rollup/plugin-commonjs": "^25.0.7",
150
- "@rollup/plugin-json": "^6.1.0",
151
- "@rollup/plugin-node-resolve": "^15.2.3",
152
- "@rollup/plugin-replace": "^5.0.5",
153
- "@rollup/plugin-terser": "^0.4.4",
154
- "@rollup/plugin-typescript": "^11.1.6",
155
- "@rollup/pluginutils": "^5.1.0",
156
- "@types/applepayjs": "^3.0.1",
157
- "@types/es6-promise": "^3.3.0",
158
- "@types/googlepay": "^0.6.3",
159
- "@types/jasmine": "^5.1.4",
160
- "@types/jasmine-ajax": "^3.3.5",
161
- "@types/jquery": "^3.5.29",
162
- "babelify": "^10.0.0",
163
- "base64-js": "^1.2.0",
164
- "browser-resolve": "^1.11.2",
165
- "browserify": "^14.1.0",
166
- "browserify-istanbul": "^2.0.0",
167
- "buffer": "^5.0.5",
144
+ "@babel/cli": "7.24.5",
145
+ "@babel/core": "7.24.5",
146
+ "@babel/plugin-external-helpers": "7.24.1",
147
+ "@babel/plugin-transform-modules-umd": "7.24.1",
148
+ "@babel/plugin-transform-object-assign": "7.24.1",
149
+ "@babel/plugin-transform-runtime": "7.24.3",
150
+ "@babel/polyfill": "7.12.1",
151
+ "@babel/preset-env": "7.24.5",
152
+ "@babel/runtime": "7.24.5",
153
+ "@babel/runtime-corejs2": "7.24.5",
154
+ "@biomejs/biome": "1.7.3",
155
+ "@rollup/plugin-babel": "6.0.4",
156
+ "@rollup/plugin-commonjs": "25.0.7",
157
+ "@rollup/plugin-json": "6.1.0",
158
+ "@rollup/plugin-node-resolve": "15.2.3",
159
+ "@rollup/plugin-replace": "5.0.5",
160
+ "@rollup/plugin-terser": "0.4.4",
161
+ "@rollup/plugin-typescript": "11.1.6",
162
+ "@rollup/pluginutils": "5.1.0",
163
+ "@types/applepayjs": "14.0.8",
164
+ "@types/es6-promise": "3.3.0",
165
+ "@types/googlepay": "0.6.4",
166
+ "@types/jasmine": "5.1.4",
167
+ "@types/jasmine-ajax": "3.3.5",
168
+ "@types/jquery": "3.5.30",
169
+ "babelify": "10.0.0",
170
+ "base64-js": "1.5.1",
171
+ "browser-resolve": "1.11.3",
172
+ "browserify": "17.0.0",
173
+ "browserify-istanbul": "2.0.0",
174
+ "buffer": "5.7.1",
175
+ "dotenv": "16.4.5",
168
176
  "fs": "0.0.2",
169
- "grunt": "^1.6.1",
170
- "grunt-cli": "^1.2.0",
171
- "grunt-jsdoc-to-markdown": "^6.0.0",
172
- "grunt-replace": "^2.0.2",
177
+ "grunt": "1.6.1",
178
+ "grunt-cli": "1.4.3",
179
+ "grunt-jsdoc-to-markdown": "6.0.0",
180
+ "grunt-replace": "2.0.2",
173
181
  "grunt-template-render": "0.0.1",
174
- "highlight.js": "^11.5.1",
175
- "ieee754": "^1.1.8",
176
- "include-all": "^0.1.6",
177
- "jasmine-ajax": "^3.3.1",
178
- "jasmine-core": "^2.5.2",
179
- "jquery": "^3.2.1",
180
- "jsdoc-to-markdown": "^8.0.0",
181
- "karma": "^6.4.2",
182
- "karma-browserify": "^8.1.0",
183
- "karma-chrome-launcher": "^2.2.0",
184
- "karma-cli": "^2.0.0",
185
- "karma-firefox-launcher": "^1.0.1",
186
- "karma-jasmine": "^1.1.0",
187
- "karma-jasmine-ajax": "^0.1.13",
188
- "karma-mocha-reporter": "^2.2.2",
189
- "marked": "^4.0.14",
190
- "npm-run-all": "^4.1.5",
191
- "process": "^0.11.9",
192
- "rimraf": "^5.0.5",
193
- "rollup": "^4.13.0",
194
- "rollup-plugin-dts": "^6.1.0",
195
- "tsify": "^3.0.1",
196
- "tslib": "^2.6.2",
197
- "tslint": "^5.8.0",
198
- "typescript": "^4.9.5",
199
- "zod": "^3.22.4"
182
+ "highlight.js": "11.9.0",
183
+ "ieee754": "1.2.1",
184
+ "include-all": "4.0.3",
185
+ "jasmine-ajax": "3.4.0",
186
+ "jasmine-core": "2.99.1",
187
+ "jquery": "3.7.1",
188
+ "jsdoc-to-markdown": "8.0.1",
189
+ "karma": "6.4.3",
190
+ "karma-browserify": "8.1.0",
191
+ "karma-chrome-launcher": "2.2.0",
192
+ "karma-cli": "2.0.0",
193
+ "karma-firefox-launcher": "1.3.0",
194
+ "karma-jasmine": "1.1.2",
195
+ "karma-jasmine-ajax": "0.1.13",
196
+ "karma-mocha-reporter": "2.2.5",
197
+ "marked": "4.3.0",
198
+ "npm-run-all2": "6.2.0",
199
+ "process": "0.11.10",
200
+ "rimraf": "5.0.7",
201
+ "rollup": "4.17.2",
202
+ "rollup-plugin-dts": "6.1.0",
203
+ "rxjs": "7.8.1",
204
+ "tsify": "3.0.4",
205
+ "tslib": "2.6.2",
206
+ "tslint": "5.20.1",
207
+ "typescript": "5.4.5",
208
+ "zod": "3.23.8"
200
209
  },
201
- "overrides": {
202
- "grunt-ts": {
203
- "chokidar": {
204
- "fsevents": {
205
- "minimist": "^1.2.6"
206
- }
207
- }
208
- }
210
+ "engines": {
211
+ "node": ">=16.0.0"
209
212
  },
210
213
  "license": "UNLICENSED",
211
214
  "keywords": [
212
215
  "client-sdk",
213
216
  "es2015",
217
+ "umd",
218
+ "cjs",
219
+ "esm",
214
220
  "paydock",
215
221
  "sdk",
216
- "typeScript",
222
+ "typescript",
217
223
  "widget"
218
224
  ]
219
225
  }
package/slate.md CHANGED
@@ -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",
@@ -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'));
@@ -1895,3 +1922,39 @@ src.setStyles({
1895
1922
  font_family: 'Arial',
1896
1923
  });
1897
1924
  ```
1925
+
1926
+ ## Recognition token
1927
+
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.
1930
+
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
+ ```