@paydock/client-sdk 1.106.1 → 1.107.0-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 (490) hide show
  1. package/README.md +194 -162
  2. package/bundles/index.cjs +10483 -0
  3. package/bundles/index.cjs.d.ts +3206 -0
  4. package/bundles/index.cjs.map +1 -0
  5. package/bundles/index.mjs +10451 -0
  6. package/bundles/index.mjs.d.ts +3206 -0
  7. package/bundles/index.mjs.map +1 -0
  8. package/{lib → bundles/types}/api/api-base.d.ts +2 -1
  9. package/bundles/types/api/api-base.d.ts.map +1 -0
  10. package/{lib → bundles/types}/api/api-charge-internal.d.ts +1 -0
  11. package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
  12. package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
  13. package/bundles/types/api/api-charge.d.ts.map +1 -0
  14. package/{lib → bundles/types}/api/api-internal.d.ts +1 -0
  15. package/bundles/types/api/api-internal.d.ts.map +1 -0
  16. package/{lib → bundles/types}/api/api-service-internal.d.ts +2 -1
  17. package/bundles/types/api/api-service-internal.d.ts.map +1 -0
  18. package/{lib → bundles/types}/api/api.d.ts +1 -0
  19. package/bundles/types/api/api.d.ts.map +1 -0
  20. package/bundles/types/api/index.d.ts +2 -0
  21. package/bundles/types/api/index.d.ts.map +1 -0
  22. package/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
  23. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
  24. package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
  25. package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
  26. package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +1 -0
  27. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
  28. package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
  29. package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
  30. package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
  31. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
  32. package/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
  33. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
  34. package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +1 -0
  35. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
  36. package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
  37. package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
  38. package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
  39. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
  40. package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +1 -0
  41. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
  42. package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
  43. package/bundles/types/checkout-button/index.d.ts.map +1 -0
  44. package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
  45. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
  46. package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
  47. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
  48. package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
  49. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
  50. package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +2 -1
  51. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
  52. package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
  53. package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
  54. package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +2 -1
  55. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
  56. package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
  57. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
  58. package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
  59. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
  60. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
  61. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
  62. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
  63. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
  64. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
  65. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
  66. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
  67. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
  68. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
  69. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
  70. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
  71. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
  72. package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
  73. package/bundles/types/components/ability-guard.d.ts.map +1 -0
  74. package/{lib → bundles/types}/components/background.d.ts +1 -0
  75. package/bundles/types/components/background.d.ts.map +1 -0
  76. package/{lib → bundles/types}/components/container.d.ts +1 -0
  77. package/bundles/types/components/container.d.ts.map +1 -0
  78. package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
  79. package/bundles/types/components/dispatcher.d.ts.map +1 -0
  80. package/{lib → bundles/types}/components/element-style.d.ts +2 -1
  81. package/bundles/types/components/element-style.d.ts.map +1 -0
  82. package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
  83. package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
  84. package/{lib/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +1 -0
  85. package/bundles/types/components/form-interceptor.d.ts.map +1 -0
  86. package/{lib → bundles/types}/components/http-core.d.ts +1 -0
  87. package/bundles/types/components/http-core.d.ts.map +1 -0
  88. package/{lib → bundles/types}/components/iframe-event.d.ts +2 -0
  89. package/bundles/types/components/iframe-event.d.ts.map +1 -0
  90. package/{lib → bundles/types}/components/iframe.d.ts +1 -0
  91. package/bundles/types/components/iframe.d.ts.map +1 -0
  92. package/{lib → bundles/types}/components/link.d.ts +2 -1
  93. package/bundles/types/components/link.d.ts.map +1 -0
  94. package/{lib → bundles/types}/components/loader.d.ts +1 -0
  95. package/bundles/types/components/loader.d.ts.map +1 -0
  96. package/{lib → bundles/types}/components/param.d.ts +8 -7
  97. package/bundles/types/components/param.d.ts.map +1 -0
  98. package/{lib → bundles/types}/components/popup.d.ts +1 -0
  99. package/bundles/types/components/popup.d.ts.map +1 -0
  100. package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
  101. package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
  102. package/{lib → bundles/types}/components/trigger.d.ts +1 -0
  103. package/bundles/types/components/trigger.d.ts.map +1 -0
  104. package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
  105. package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
  106. package/{lib → bundles/types}/components/wallet-background.d.ts +3 -1
  107. package/bundles/types/components/wallet-background.d.ts.map +1 -0
  108. package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
  109. package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
  110. package/bundles/types/configs/env/environment.cba.d.ts +29 -0
  111. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
  112. package/bundles/types/configs/env/environment.interface.d.ts +12 -0
  113. package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
  114. package/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
  115. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
  116. package/bundles/types/configs/env/index.d.ts +3 -0
  117. package/bundles/types/configs/env/index.d.ts.map +1 -0
  118. package/{lib → bundles/types}/configs/sdk.d.ts +3 -2
  119. package/bundles/types/configs/sdk.d.ts.map +1 -0
  120. package/{lib → bundles/types}/constants/validators.d.ts +3 -2
  121. package/bundles/types/constants/validators.d.ts.map +1 -0
  122. package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
  123. package/bundles/types/external-checkout/builder.d.ts.map +1 -0
  124. package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -0
  125. package/bundles/types/external-checkout/checker.d.ts.map +1 -0
  126. package/bundles/types/external-checkout/index.d.ts +3 -0
  127. package/bundles/types/external-checkout/index.d.ts.map +1 -0
  128. package/{lib → bundles/types}/helper/access-token.d.ts +1 -0
  129. package/bundles/types/helper/access-token.d.ts.map +1 -0
  130. package/{lib → bundles/types}/helper/browser.d.ts +1 -0
  131. package/bundles/types/helper/browser.d.ts.map +1 -0
  132. package/bundles/types/helper/element-id.d.ts +5 -0
  133. package/bundles/types/helper/element-id.d.ts.map +1 -0
  134. package/{lib → bundles/types}/helper/event-emitter.d.ts +1 -0
  135. package/bundles/types/helper/event-emitter.d.ts.map +1 -0
  136. package/{lib → bundles/types}/helper/event.d.ts +1 -0
  137. package/bundles/types/helper/event.d.ts.map +1 -0
  138. package/{lib → bundles/types}/helper/ms.d.ts +1 -0
  139. package/bundles/types/helper/ms.d.ts.map +1 -0
  140. package/{lib → bundles/types}/helper/object.d.ts +1 -0
  141. package/bundles/types/helper/object.d.ts.map +1 -0
  142. package/{lib → bundles/types}/helper/url.d.ts +1 -0
  143. package/bundles/types/helper/url.d.ts.map +1 -0
  144. package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
  145. package/bundles/types/helper/uuid.d.ts.map +1 -0
  146. package/bundles/types/index-cba.d.ts +13 -0
  147. package/bundles/types/index-cba.d.ts.map +1 -0
  148. package/bundles/types/index.d.ts +14 -0
  149. package/bundles/types/index.d.ts.map +1 -0
  150. package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
  151. package/bundles/types/payment-source/builder.d.ts.map +1 -0
  152. package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
  153. package/bundles/types/payment-source/index.d.ts.map +1 -0
  154. package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
  155. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
  156. package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
  157. package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
  158. package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
  159. package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
  160. package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -0
  161. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
  162. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
  163. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
  164. package/{lib → bundles/types}/secure-remote-commerce/index.d.ts +5 -4
  165. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
  166. package/{lib → bundles/types}/secure-remote-commerce/interfaces.d.ts +10 -9
  167. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
  168. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
  169. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
  170. package/{lib → bundles/types}/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +5 -4
  171. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
  172. package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -0
  173. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
  174. package/{lib → bundles/types}/secure-remote-commerce/secure-remote-commerce.d.ts +4 -3
  175. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
  176. package/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
  177. package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
  178. package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
  179. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
  180. package/{lib → bundles/types}/wallet-buttons/afterpay.wallet-service.d.ts +1 -0
  181. package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +1 -0
  182. package/{lib → bundles/types}/wallet-buttons/apple.wallet-service.d.ts +1 -0
  183. package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +1 -0
  184. package/{lib → bundles/types}/wallet-buttons/flypay-v2.wallet-service.d.ts +2 -1
  185. package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +1 -0
  186. package/{lib → bundles/types}/wallet-buttons/flypay.wallet-service.d.ts +1 -0
  187. package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +1 -0
  188. package/{lib → bundles/types}/wallet-buttons/google.wallet-service.d.ts +1 -0
  189. package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +1 -0
  190. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +6 -0
  191. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
  192. package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
  193. package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
  194. package/{lib → bundles/types}/wallet-buttons/index.d.ts +1 -0
  195. package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
  196. package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -0
  197. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
  198. package/{lib → bundles/types}/wallet-buttons/mastercard.wallet-service.d.ts +1 -0
  199. package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +1 -0
  200. package/{lib → bundles/types}/wallet-buttons/paypal.wallet-service.d.ts +1 -0
  201. package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +1 -0
  202. package/{lib → bundles/types}/wallet-buttons/stripe.wallet-service.d.ts +1 -0
  203. package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +1 -0
  204. package/{lib → bundles/types}/wallet-buttons/wallet-buttons.d.ts +1 -0
  205. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
  206. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
  207. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
  208. package/{lib → bundles/types}/wallet-buttons/wallet-service.d.ts +1 -0
  209. package/bundles/types/wallet-buttons/wallet-service.d.ts.map +1 -0
  210. package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
  211. package/bundles/types/widget/configuration.d.ts.map +1 -0
  212. package/{lib → bundles/types}/widget/html-multi-widget.d.ts +4 -3
  213. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
  214. package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
  215. package/bundles/types/widget/html-widget.d.ts.map +1 -0
  216. package/{lib → bundles/types}/widget/index.d.ts +2 -1
  217. package/bundles/types/widget/index.d.ts.map +1 -0
  218. package/{lib → bundles/types}/widget/meta.d.ts +1 -0
  219. package/bundles/types/widget/meta.d.ts.map +1 -0
  220. package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
  221. package/bundles/types/widget/multi-widget.d.ts.map +1 -0
  222. package/{lib → bundles/types}/widget/style.d.ts +1 -0
  223. package/bundles/types/widget/style.d.ts.map +1 -0
  224. package/bundles/widget.umd.js +6755 -6894
  225. package/bundles/widget.umd.js.d.ts +3206 -0
  226. package/bundles/widget.umd.js.map +1 -0
  227. package/bundles/widget.umd.js.min.d.ts +3206 -0
  228. package/bundles/widget.umd.min.js +2 -1
  229. package/bundles/widget.umd.min.js.map +1 -0
  230. package/docs/api-canvas3ds.md +158 -0
  231. package/docs/api-checkout-button.md +912 -0
  232. package/docs/api-examples.md +65 -0
  233. package/docs/api-ps-widget.md +585 -0
  234. package/docs/api-vault-display.md +94 -0
  235. package/docs/api-widget.md +2499 -0
  236. package/docs/api-wrapper.md +78 -0
  237. package/docs/canvas3ds-examples.md +242 -0
  238. package/docs/cba-header.md +13 -0
  239. package/docs/cba-license.md +2 -0
  240. package/docs/checkout-examples.md +248 -0
  241. package/docs/click-to-pay-examples.md +231 -0
  242. package/docs/click-to-pay.md +336 -0
  243. package/docs/header.md +15 -0
  244. package/docs/html/layout.html +78 -0
  245. package/docs/html/marked.js +23 -0
  246. package/docs/html/style.css +365 -0
  247. package/docs/install/npm.content.md +16 -0
  248. package/docs/install/npm.example.md +24 -0
  249. package/docs/install/umd.content.md +20 -0
  250. package/docs/install/umd.example.md +6 -0
  251. package/docs/install.md +43 -0
  252. package/docs/install.readme.t.md +17 -0
  253. package/docs/install.slate.t.md +17 -0
  254. package/docs/license.md +2 -0
  255. package/docs/partials/header.hbs +3 -0
  256. package/docs/ps-examples.md +129 -0
  257. package/docs/vault-display-example.md +132 -0
  258. package/docs/wallet-buttons-examples.md +609 -0
  259. package/docs/wallet-buttons.md +619 -0
  260. package/docs/wallet-cba-buttons-examples.md +388 -0
  261. package/docs/widget-examples.md +134 -0
  262. package/package.json +164 -42
  263. package/slate.md +141 -106
  264. package/.nvmrc +0 -1
  265. package/api.d.ts +0 -1
  266. package/api.js +0 -1
  267. package/canvas3ds.d.ts +0 -1
  268. package/canvas3ds.js +0 -1
  269. package/checkout-button.d.ts +0 -1
  270. package/checkout-button.js +0 -1
  271. package/inicialization-guide.md +0 -7
  272. package/lib/api/api-base.js +0 -101
  273. package/lib/api/api-base.js.map +0 -1
  274. package/lib/api/api-charge-internal.js +0 -30
  275. package/lib/api/api-charge-internal.js.map +0 -1
  276. package/lib/api/api-charge.js +0 -49
  277. package/lib/api/api-charge.js.map +0 -1
  278. package/lib/api/api-internal.js +0 -13
  279. package/lib/api/api-internal.js.map +0 -1
  280. package/lib/api/api-service-internal.js +0 -19
  281. package/lib/api/api-service-internal.js.map +0 -1
  282. package/lib/api/api.js +0 -62
  283. package/lib/api/api.js.map +0 -1
  284. package/lib/api/index.d.ts +0 -1
  285. package/lib/api/index.js +0 -2
  286. package/lib/api/index.js.map +0 -1
  287. package/lib/canvas-3ds/canvas-3ds.js +0 -157
  288. package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
  289. package/lib/canvas-3ds/index.js +0 -2
  290. package/lib/canvas-3ds/index.js.map +0 -1
  291. package/lib/canvas-3ds/services/gpayments-service.js +0 -181
  292. package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
  293. package/lib/canvas-3ds/services/index.js +0 -2
  294. package/lib/canvas-3ds/services/index.js.map +0 -1
  295. package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
  296. package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
  297. package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -50
  298. package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
  299. package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
  300. package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
  301. package/lib/checkout-button/checkout-button.interface.js +0 -45
  302. package/lib/checkout-button/checkout-button.interface.js.map +0 -1
  303. package/lib/checkout-button/checkout-button.js +0 -266
  304. package/lib/checkout-button/checkout-button.js.map +0 -1
  305. package/lib/checkout-button/checkout-contextual-handler.js +0 -75
  306. package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
  307. package/lib/checkout-button/index.js +0 -85
  308. package/lib/checkout-button/index.js.map +0 -1
  309. package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -25
  310. package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
  311. package/lib/checkout-button/paypal/paypal.runner.js +0 -14
  312. package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
  313. package/lib/checkout-button/runner/base.runner.js +0 -13
  314. package/lib/checkout-button/runner/base.runner.js.map +0 -1
  315. package/lib/checkout-button/runner/contextual.runner.js +0 -40
  316. package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
  317. package/lib/checkout-button/runner/index.js +0 -11
  318. package/lib/checkout-button/runner/index.js.map +0 -1
  319. package/lib/checkout-button/runner/popup.runner.js +0 -68
  320. package/lib/checkout-button/runner/popup.runner.js.map +0 -1
  321. package/lib/checkout-button/runner/redirect.runner.js +0 -15
  322. package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
  323. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -64
  324. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
  325. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
  326. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
  327. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
  328. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
  329. package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
  330. package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
  331. package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
  332. package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
  333. package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
  334. package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
  335. package/lib/components/ability-guard.js +0 -44
  336. package/lib/components/ability-guard.js.map +0 -1
  337. package/lib/components/background.js +0 -193
  338. package/lib/components/background.js.map +0 -1
  339. package/lib/components/container.js +0 -63
  340. package/lib/components/container.js.map +0 -1
  341. package/lib/components/dispatcher.js +0 -39
  342. package/lib/components/dispatcher.js.map +0 -1
  343. package/lib/components/element-style.js +0 -52
  344. package/lib/components/element-style.js.map +0 -1
  345. package/lib/components/flypay-iframe-event.js +0 -28
  346. package/lib/components/flypay-iframe-event.js.map +0 -1
  347. package/lib/components/form-Interceptor.js +0 -38
  348. package/lib/components/form-Interceptor.js.map +0 -1
  349. package/lib/components/http-core.js +0 -57
  350. package/lib/components/http-core.js.map +0 -1
  351. package/lib/components/iframe-event.js +0 -77
  352. package/lib/components/iframe-event.js.map +0 -1
  353. package/lib/components/iframe.js +0 -62
  354. package/lib/components/iframe.js.map +0 -1
  355. package/lib/components/link.js +0 -60
  356. package/lib/components/link.js.map +0 -1
  357. package/lib/components/loader.js +0 -234
  358. package/lib/components/loader.js.map +0 -1
  359. package/lib/components/param.js +0 -147
  360. package/lib/components/param.js.map +0 -1
  361. package/lib/components/popup.js +0 -104
  362. package/lib/components/popup.js.map +0 -1
  363. package/lib/components/storage-dispatcher.js +0 -75
  364. package/lib/components/storage-dispatcher.js.map +0 -1
  365. package/lib/components/trigger.js +0 -49
  366. package/lib/components/trigger.js.map +0 -1
  367. package/lib/components/vault-display-iframe-event.js +0 -27
  368. package/lib/components/vault-display-iframe-event.js.map +0 -1
  369. package/lib/components/wallet-background.js +0 -75
  370. package/lib/components/wallet-background.js.map +0 -1
  371. package/lib/components/wallet-trigger.js +0 -27
  372. package/lib/components/wallet-trigger.js.map +0 -1
  373. package/lib/configs/env/env.js +0 -117
  374. package/lib/configs/env/env.js.map +0 -1
  375. package/lib/configs/sdk.js +0 -16
  376. package/lib/configs/sdk.js.map +0 -1
  377. package/lib/constants/validators.js +0 -42
  378. package/lib/constants/validators.js.map +0 -1
  379. package/lib/external-checkout/builder.js +0 -45
  380. package/lib/external-checkout/builder.js.map +0 -1
  381. package/lib/external-checkout/checker.js +0 -22
  382. package/lib/external-checkout/checker.js.map +0 -1
  383. package/lib/external-checkout/index.d.ts +0 -2
  384. package/lib/external-checkout/index.js +0 -3
  385. package/lib/external-checkout/index.js.map +0 -1
  386. package/lib/helper/access-token.js +0 -44
  387. package/lib/helper/access-token.js.map +0 -1
  388. package/lib/helper/browser.js +0 -79
  389. package/lib/helper/browser.js.map +0 -1
  390. package/lib/helper/event-emitter.js +0 -23
  391. package/lib/helper/event-emitter.js.map +0 -1
  392. package/lib/helper/event.js +0 -23
  393. package/lib/helper/event.js.map +0 -1
  394. package/lib/helper/ms.js +0 -32
  395. package/lib/helper/ms.js.map +0 -1
  396. package/lib/helper/object.js +0 -6
  397. package/lib/helper/object.js.map +0 -1
  398. package/lib/helper/url.js +0 -11
  399. package/lib/helper/url.js.map +0 -1
  400. package/lib/helper/uuid.js +0 -26
  401. package/lib/helper/uuid.js.map +0 -1
  402. package/lib/index.d.ts +0 -15
  403. package/lib/index.js +0 -15
  404. package/lib/index.js.map +0 -1
  405. package/lib/payment-source/builder.js +0 -49
  406. package/lib/payment-source/builder.js.map +0 -1
  407. package/lib/payment-source/index.js +0 -2
  408. package/lib/payment-source/index.js.map +0 -1
  409. package/lib/payment-source-widget/html-payment-source-widget.js +0 -172
  410. package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
  411. package/lib/payment-source-widget/index.js +0 -35
  412. package/lib/payment-source-widget/index.js.map +0 -1
  413. package/lib/payment-source-widget/interfaces.js +0 -2
  414. package/lib/payment-source-widget/interfaces.js.map +0 -1
  415. package/lib/payment-source-widget/payment-source-widget.js +0 -142
  416. package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
  417. package/lib/secure-remote-commerce/index.js +0 -103
  418. package/lib/secure-remote-commerce/index.js.map +0 -1
  419. package/lib/secure-remote-commerce/interfaces.js +0 -48
  420. package/lib/secure-remote-commerce/interfaces.js.map +0 -1
  421. package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.d.ts +0 -30
  422. package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js +0 -40
  423. package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js.map +0 -1
  424. package/lib/secure-remote-commerce/providers/mastercard-src/index.d.ts +0 -1
  425. package/lib/secure-remote-commerce/providers/mastercard-src/index.js +0 -2
  426. package/lib/secure-remote-commerce/providers/mastercard-src/index.js.map +0 -1
  427. package/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js +0 -89
  428. package/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js.map +0 -1
  429. package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
  430. package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
  431. package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -155
  432. package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
  433. package/lib/vault-display-widget/index.js +0 -14
  434. package/lib/vault-display-widget/index.js.map +0 -1
  435. package/lib/vault-display-widget/vault-display-widget.js +0 -99
  436. package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
  437. package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
  438. package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
  439. package/lib/wallet-buttons/apple.wallet-service.js +0 -324
  440. package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
  441. package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -163
  442. package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
  443. package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
  444. package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
  445. package/lib/wallet-buttons/google.wallet-service.js +0 -301
  446. package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
  447. package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +0 -3
  448. package/lib/wallet-buttons/helpers/flypay-v2.helper.js +0 -151
  449. package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +0 -1
  450. package/lib/wallet-buttons/index.js +0 -128
  451. package/lib/wallet-buttons/index.js.map +0 -1
  452. package/lib/wallet-buttons/interfaces.js +0 -1
  453. package/lib/wallet-buttons/interfaces.js.map +0 -1
  454. package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
  455. package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
  456. package/lib/wallet-buttons/paypal.wallet-service.js +0 -144
  457. package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
  458. package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
  459. package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
  460. package/lib/wallet-buttons/wallet-buttons.js +0 -479
  461. package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
  462. package/lib/wallet-buttons/wallet-service.js +0 -60
  463. package/lib/wallet-buttons/wallet-service.js.map +0 -1
  464. package/lib/widget/configuration.js +0 -260
  465. package/lib/widget/configuration.js.map +0 -1
  466. package/lib/widget/html-multi-widget.js +0 -422
  467. package/lib/widget/html-multi-widget.js.map +0 -1
  468. package/lib/widget/html-widget.js +0 -127
  469. package/lib/widget/html-widget.js.map +0 -1
  470. package/lib/widget/index.js +0 -132
  471. package/lib/widget/index.js.map +0 -1
  472. package/lib/widget/meta.js +0 -8
  473. package/lib/widget/meta.js.map +0 -1
  474. package/lib/widget/multi-widget.js +0 -437
  475. package/lib/widget/multi-widget.js.map +0 -1
  476. package/lib/widget/style.js +0 -204
  477. package/lib/widget/style.js.map +0 -1
  478. package/payment-source-widget.d.ts +0 -1
  479. package/payment-source-widget.js +0 -1
  480. package/tslint.json +0 -129
  481. package/typings/globals/jasmine/index.d.ts +0 -576
  482. package/typings/globals/jasmine-ajax/index.d.ts +0 -83
  483. package/typings/globals/jquery/index.d.ts +0 -3759
  484. package/typings/index.d.ts +0 -3
  485. package/vault-display-widget.d.ts +0 -1
  486. package/vault-display-widget.js +0 -1
  487. package/vendors/zipmoney.d.ts +0 -18
  488. package/vendors/zipmoney.js +0 -1
  489. package/widget.d.ts +0 -1
  490. package/widget.js +0 -1
@@ -1,13 +0,0 @@
1
- import { Env, WIDGET_URL } from '../../configs/env/env';
2
- export class BaseRunner {
3
- constructor() {
4
- this.widgetEnv = new Env(WIDGET_URL);
5
- }
6
- error(error, code, callback) {
7
- callback(true);
8
- }
9
- setEnv(env, alias) {
10
- this.widgetEnv.setEnv(env, alias);
11
- }
12
- }
13
- //# sourceMappingURL=../../../src/lib/checkout-button/runner/base.runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.runner.js","sourceRoot":"","sources":["../../../checkout-button/runner/base.runner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAkBxD,MAAM,OAAgB,UAAU;IAG5B;QACI,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAEM,KAAK,CAAC,KAAa,EAAE,IAAY,EAAE,QAAQ;QAC9C,QAAQ,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,GAAW,EAAE,KAAc;QACrC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;CACJ"}
@@ -1,40 +0,0 @@
1
- import { Background, TRIGGER as BACKGROUND_TRIGGER } from '../../components/background';
2
- import { BaseRunner } from './base.runner';
3
- export var RUNNER_EVENT;
4
- (function (RUNNER_EVENT) {
5
- RUNNER_EVENT["SUCCESS"] = "success";
6
- RUNNER_EVENT["DECLINED"] = "declined";
7
- RUNNER_EVENT["CLOSE"] = "close";
8
- RUNNER_EVENT["REFERRED"] = "referred";
9
- RUNNER_EVENT["ERROR"] = "error";
10
- })(RUNNER_EVENT || (RUNNER_EVENT = {}));
11
- ;
12
- export function ContextualRunner(Runner = BaseRunner) {
13
- return class extends Runner {
14
- constructor(...args) {
15
- super(...args);
16
- this.background = new Background();
17
- this.background.onTrigger(BACKGROUND_TRIGGER.FOCUS, () => this.continue());
18
- this.background.onTrigger(BACKGROUND_TRIGGER.CLOSE, () => this.stop());
19
- }
20
- continue() { }
21
- stop() { }
22
- error(error, code, callback) {
23
- callback(true);
24
- }
25
- setSuspendedRedirectUri(uri) {
26
- this.suspendedRedirectUri = uri;
27
- }
28
- setBackgroundTitle(text) {
29
- this.background.setBackdropTitle(text);
30
- }
31
- setBackgroundDescription(text) {
32
- this.background.setBackdropDescription(text);
33
- }
34
- turnOffBackdrop() {
35
- this.background.turnOffControl();
36
- this.background.turnOffLoader();
37
- }
38
- };
39
- }
40
- //# sourceMappingURL=../../../src/lib/checkout-button/runner/contextual.runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contextual.runner.js","sourceRoot":"","sources":["../../../checkout-button/runner/contextual.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAE,UAAU,EAA0B,MAAM,eAAe,CAAC;AAGnE,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACpB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,+BAAe,CAAA;AACnB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAAA,CAAC;AAwBF,MAAM,UAAU,gBAAgB,CAA2B,SAAa,UAAgB;IACpF,OAAO,KAAM,SAAQ,MAAM;QAIvB,YAAmB,GAAG,IAAW;YAC7B,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;YACf,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;YACnC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC3E,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QAC3E,CAAC;QAEM,QAAQ,KAAU,CAAC;QAEnB,IAAI,KAAU,CAAC;QAEf,KAAK,CAAC,KAAa,EAAE,IAAY,EAAE,QAAQ;YAC9C,QAAQ,CAAC,IAAI,CAAC,CAAC;QACnB,CAAC;QAEM,uBAAuB,CAAC,GAAW;YACtC,IAAI,CAAC,oBAAoB,GAAG,GAAG,CAAC;QACpC,CAAC;QAEM,kBAAkB,CAAC,IAAY;YAClC,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC3C,CAAC;QAEM,wBAAwB,CAAC,IAAY;YACxC,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QACjD,CAAC;QAEM,eAAe;YAClB,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC;YACjC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;QACpC,CAAC;KACJ,CAAA;AACL,CAAC"}
@@ -1,11 +0,0 @@
1
- export * from './base.runner';
2
- export * from './contextual.runner';
3
- export * from './popup.runner';
4
- export * from './redirect.runner';
5
- export function isContextualRunner(runner) {
6
- return 'run' in runner;
7
- }
8
- export function isRedirectRunner(runner) {
9
- return 'setRedirectUrl' in runner;
10
- }
11
- //# sourceMappingURL=../../../src/lib/checkout-button/runner/index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../checkout-button/runner/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAElC,MAAM,UAAU,kBAAkB,CAAC,MAA2C;IAC1E,OAAO,KAAK,IAAI,MAAM,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,MAA2C;IACxE,OAAO,gBAAgB,IAAI,MAAM,CAAC;AACtC,CAAC"}
@@ -1,68 +0,0 @@
1
- import { ContextualRunner } from './contextual.runner';
2
- import { Dispatcher } from '../../components/dispatcher';
3
- import { Popup } from '../../components/popup';
4
- import { Browser } from '../../helper/browser';
5
- export class PopupRunner extends ContextualRunner() {
6
- constructor(publicKey) {
7
- super();
8
- this.publicKey = publicKey;
9
- this.checkout = null;
10
- this.dispatcher = new Dispatcher('checkout.paydock');
11
- setTimeout(() => this.dispatcher.restartDispatcher(), 200);
12
- this.popup = new Popup();
13
- }
14
- run() {
15
- if (this.isRunning())
16
- return;
17
- this.popup.init();
18
- this.background.initControl();
19
- }
20
- isRunning() {
21
- return this.popup.isExist();
22
- }
23
- next(checkoutData) {
24
- this.checkout = checkoutData;
25
- if (!Browser.isSupportPopUp())
26
- window.localStorage.setItem('paydock_checkout_token', JSON.stringify(this.checkout));
27
- this.popup.redirect(this.checkout.link);
28
- }
29
- continue() {
30
- this.popup.focus();
31
- }
32
- stop() {
33
- this.popup.close();
34
- }
35
- onStop(cb) {
36
- this.popup.onClose(() => {
37
- this.background.clear();
38
- this.checkout = null;
39
- cb();
40
- });
41
- }
42
- onCheckout(event, cb) {
43
- this.dispatcher.on(event, (data) => {
44
- if (this.checkout && this.checkout.reference_id === data.reference_id) {
45
- this.background.clear();
46
- cb(this.checkout);
47
- }
48
- else if (!Browser.isSupportPopUp()) {
49
- let item = window.localStorage.getItem('paydock_checkout_token');
50
- if (!item)
51
- return;
52
- let checkout = JSON.parse(item);
53
- if (checkout && checkout.reference_id === data.reference_id) {
54
- window.localStorage.removeItem('paydock_checkout_token');
55
- this.checkout = checkout;
56
- this.background.clear();
57
- cb(this.checkout);
58
- }
59
- }
60
- });
61
- }
62
- setEnv(env, alias) {
63
- super.setEnv(env, alias);
64
- this.dispatcher.setEnv(env, alias);
65
- this.popup.setEnv(env);
66
- }
67
- }
68
- //# sourceMappingURL=../../../src/lib/checkout-button/runner/popup.runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popup.runner.js","sourceRoot":"","sources":["../../../checkout-button/runner/popup.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAmB,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,KAAK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AAE,KAAK,CAAC,CAAC;QACnC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;CACJ"}
@@ -1,15 +0,0 @@
1
- import { BaseRunner } from './base.runner';
2
- export function RedirectRunner(Runner = BaseRunner) {
3
- return class extends Runner {
4
- setRedirectUrl(url) {
5
- this.merchantRedirectUrl = url;
6
- }
7
- getRedirectUrl() {
8
- return this.merchantRedirectUrl;
9
- }
10
- error(error, code, callback) {
11
- callback(false);
12
- }
13
- };
14
- }
15
- //# sourceMappingURL=../../../src/lib/checkout-button/runner/redirect.runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redirect.runner.js","sourceRoot":"","sources":["../../../checkout-button/runner/redirect.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0B,MAAM,eAAe,CAAC;AAUnE,MAAM,UAAU,cAAc,CAA2B,SAAa,UAAgB;IAClF,OAAO,KAAM,SAAQ,MAAM;QAIhB,cAAc,CAAC,GAAW;YAC7B,IAAI,CAAC,mBAAmB,GAAG,GAAG,CAAC;QACnC,CAAC;QAEM,cAAc;YACjB,OAAO,IAAI,CAAC,mBAAmB,CAAC;QACpC,CAAC;QAEM,KAAK,CAAC,KAAa,EAAE,IAAY,EAAE,QAAQ;YAC9C,QAAQ,CAAC,KAAK,CAAC,CAAC;QACpB,CAAC;KACJ,CAAA;AACL,CAAC"}
@@ -1,64 +0,0 @@
1
- import { CheckoutButton } from '../checkout-button';
2
- import { GATEWAY_TYPE, CHECKOUT_MODE } from '../checkout-button.interface';
3
- import { isContextualRunner } from '../runner';
4
- /**
5
- * Class ZipmoneyCheckoutButton is wrapper of CheckoutButton transform usual button into checkout
6
- *
7
- * @extends CheckoutButton
8
- *
9
- * @constructor
10
- *
11
- * @param {string} selector - Selector of html element.
12
- * @param {string} publicKey - PayDock users public key
13
- * @param {string} [gatewayId=default] - PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway
14
- * @param {string} [gatewayId=default] - Checkout mode, it could be set to 'contextual' or 'redirect'. By default it 'contextual'
15
- * @example
16
- * var widget = new ZipmoneyCheckoutButton('#button', 'publicKey','gatewayId');
17
- */
18
- class ZipmoneyCheckoutButton extends CheckoutButton {
19
- /** @constructs */ // constructs added for correct parse classes jsdoc2md
20
- constructor(selector, publicKey, gatewayId = 'default', mode = CHECKOUT_MODE.CONTEXTUAL) {
21
- super(selector, publicKey, gatewayId, GATEWAY_TYPE.ZIPMONEY, mode);
22
- this.publicKey = publicKey;
23
- this.gatewayId = gatewayId;
24
- this.mode = mode;
25
- }
26
- /**
27
- * Method for setting suspended redirect uri. Redirect after referred checkout
28
- *
29
- * The URI is used for a redirect after the checkout is complete.
30
- * This can be provided, even if using in-context checkout (sdk). By default, the standard styled page will be used.
31
- * If using in-context (sdk) we will not automatically redirect to this URI.
32
- *
33
-
34
- * @param {uri} string - uri for suspended redirect (by default)
35
- */
36
- setSuspendedRedirectUri(uri) {
37
- super.setSuspendedRedirectUri(uri);
38
- }
39
- /**
40
- * Method for setting the merchant redirect URL.
41
- * The merchant's customers would be redirected to the specified URL
42
- * at the end of ZipMoney checkout flow.
43
- *
44
- * Once the redirect URL would be set, the checkout flow would be immediately switched
45
- * from 'contextual' mode to the 'redirect' mode.
46
- * The merchant's customer would be automatically redirected to this URL after the checkout is complete.
47
- *
48
- * @param {url} string - URL for redirect
49
- */
50
- setRedirectUrl(url) {
51
- if (isContextualRunner(this.runner)) {
52
- super.chooseRunner(GATEWAY_TYPE.ZIPMONEY, CHECKOUT_MODE.REDIRECT);
53
- super.setEnv(this.env, this.alias);
54
- }
55
- super.setRedirectUrl(url);
56
- }
57
- buildAdditionalParams() {
58
- const defaultParams = super.buildAdditionalParams();
59
- const params = Object.assign(Object.assign({}, defaultParams), { public_key: this.publicKey, gateway_id: this.gatewayId });
60
- return params;
61
- }
62
- }
63
- export { ZipmoneyCheckoutButton };
64
- //# sourceMappingURL=../../../src/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zipmoney-checkout-button.js","sourceRoot":"","sources":["../../../checkout-button/zipmoney/zipmoney-checkout-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C;;;;;;;;;;;;;GAaG;AACH,MAAM,sBAAuB,SAAQ,cAAc;IAE/C,kBAAkB,CAAC,sDAAsD;IACzE,YACI,QAAgB,EACN,SAAiB,EACjB,YAAoB,SAAS,EAC7B,OAAsB,aAAa,CAAC,UAAU;QAExD,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QAJxD,cAAS,GAAT,SAAS,CAAQ;QACjB,cAAS,GAAT,SAAS,CAAoB;QAC7B,SAAI,GAAJ,IAAI,CAA0C;IAG5D,CAAC;IAED;;;;;;;;;OASG;IACI,uBAAuB,CAAC,GAAW;QACtC,KAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAED;;;;;;;;;;OAUG;IACI,cAAc,CAAC,GAAW;QAC7B,IAAI,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACjC,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;YAClE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;SACtC;QACD,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAES,qBAAqB;QAC3B,MAAM,aAAa,GAAG,KAAK,CAAC,qBAAqB,EAAE,CAAC;QACpD,MAAM,MAAM,mCACL,aAAa,KAChB,UAAU,EAAE,IAAI,CAAC,SAAS,EAC1B,UAAU,EAAE,IAAI,CAAC,SAAS,GAC7B,CAAA;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1,78 +0,0 @@
1
- import '../../../vendors/zipmoney';
2
- import { ContextualRunner, RUNNER_EVENT } from '../runner/contextual.runner';
3
- import { ZipmoneyRunner, LOG_PREFIX } from './zipmoney.runner';
4
- import { EventEmitter } from '../../helper/event-emitter';
5
- import { ZIPMONEY_DEFAULT_SUSPENDED_URL } from './zipmoney.config';
6
- export class ZipmoneyContextualRunner extends ContextualRunner(ZipmoneyRunner) {
7
- constructor() {
8
- super();
9
- this.runs = false;
10
- this.eventEmitter = new EventEmitter();
11
- }
12
- run() {
13
- this.runs = true;
14
- this.background.initLoader();
15
- }
16
- isRunning() {
17
- return this.runs;
18
- }
19
- next(checkoutData) {
20
- this.background.clear();
21
- this.checkout = checkoutData;
22
- const checkoutUri = this.getCheckoutUri(this.checkout.link);
23
- Zip.Checkout.init({
24
- checkoutUri,
25
- onComplete: (args) => this.eventHandler(args),
26
- onError: (args) => this.eventHandler(args),
27
- });
28
- }
29
- getSuccessRedirectUri() {
30
- return this.suspendedRedirectUri ? this.suspendedRedirectUri : this.widgetEnv.getConf().url + String(ZIPMONEY_DEFAULT_SUSPENDED_URL);
31
- }
32
- getErrorRedirectUri() {
33
- return this.getSuccessRedirectUri();
34
- }
35
- stop() {
36
- super.stop();
37
- this.runs = false;
38
- const element = document.querySelector('.zipmoney-overlay');
39
- if (element)
40
- element.remove();
41
- this.eventEmitter.emit(RUNNER_EVENT.CLOSE);
42
- }
43
- onStop(cb) {
44
- this.eventEmitter.subscribe(RUNNER_EVENT.CLOSE, () => {
45
- this.background.clear();
46
- cb();
47
- });
48
- }
49
- onCheckout(event, cb) {
50
- this.eventEmitter.subscribe(event, () => {
51
- cb(this.checkout);
52
- });
53
- }
54
- eventHandler(args) {
55
- this.runs = false;
56
- switch (args.state) {
57
- case "approved" /* APPROVED */:
58
- this.eventEmitter.emit(RUNNER_EVENT.CLOSE);
59
- this.eventEmitter.emit(RUNNER_EVENT.SUCCESS);
60
- break;
61
- case "declined" /* DECLINED */:
62
- this.eventEmitter.emit(RUNNER_EVENT.CLOSE);
63
- this.eventEmitter.emit(RUNNER_EVENT.DECLINED);
64
- break;
65
- case "cancelled" /* CANCELLED */:
66
- this.eventEmitter.emit(RUNNER_EVENT.CLOSE);
67
- break;
68
- case "referred" /* REFERRED */:
69
- this.eventEmitter.emit(RUNNER_EVENT.CLOSE);
70
- this.eventEmitter.emit(RUNNER_EVENT.REFERRED);
71
- break;
72
- default:
73
- console.warn(`${LOG_PREFIX} Unknown gateway status.`);
74
- break;
75
- }
76
- }
77
- }
78
- //# sourceMappingURL=../../../src/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zipmoney-contextual.runner.js","sourceRoot":"","sources":["../../../checkout-button/zipmoney/zipmoney-contextual.runner.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAqB,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,OAAO,wBAAyB,SAAQ,gBAAgB,CAAC,cAAc,CAAC;IAK1E;QACI,KAAK,EAAE,CAAC;QAJF,SAAI,GAAG,KAAK,CAAC;QAKnB,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC;IAC3C,CAAC;IAEM,GAAG;QACN,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC;IAEM,SAA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AC;YACxB,EAAE,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,UAAU,CAAC,KAAa,EAAE,EAAiC;QAC9D,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE;YACpC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;IACP,CAAC;IAES,YAAY,CAAC,IAAmC;QACtD,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QAElB,QAAQ,IAAI,CAAC,KAAK,EAAE;YAChB;gBACI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;gBAC3C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;gBAC7C,MAAM;YAEV;gBACI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;gBAC3C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;gBAC9C,MAAM;YAEV;gBACI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;gBAC3C,MAAM;YAEV;gBACI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;gBAC3C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;gBAC9C,MAAM;YAEV;gBACI,OAAO,CAAC,IAAI,CAAC,GAAG,UAAU,0BAA0B,CAAC,CAAC;gBACtD,MAAM;SACb;IACL,CAAC;CACJ"}
@@ -1,49 +0,0 @@
1
- import '../../../vendors/zipmoney';
2
- import { RedirectRunner } from '../runner';
3
- import { ZipmoneyRunner } from './zipmoney.runner';
4
- import { StorageDispatcher, StorageDataIntent } from '../../components/storage-dispatcher';
5
- import { ZIPMONEY_PROXY_REDIRECT_URL, ZIPMONEY_MESSAGE_SOURCE } from './zipmoney.config';
6
- export class ZipmoneyRedirectRunner extends RedirectRunner(ZipmoneyRunner) {
7
- constructor() {
8
- super();
9
- this.storageDispatcher = new StorageDispatcher(ZIPMONEY_MESSAGE_SOURCE);
10
- }
11
- getProxyRedirectUrl() {
12
- return this.widgetEnv.getConf().url + ZIPMONEY_PROXY_REDIRECT_URL;
13
- }
14
- next(checkout, params) {
15
- this.storageDispatcher.create(() => {
16
- const widgetSessionData = {
17
- merchant_redirect_url: this.getRedirectUrl(),
18
- checkout_token: checkout.token,
19
- public_key: params.public_key,
20
- gateway_id: params.gateway_id,
21
- };
22
- this.storageDispatcher.push({ intent: StorageDataIntent.WIDGET_SESSION, data: widgetSessionData }, {
23
- onSuccess: () => {
24
- const checkoutUri = this.getCheckoutUri(checkout.link);
25
- Zip.Checkout.init({
26
- checkoutUri: checkoutUri,
27
- redirect: true,
28
- });
29
- },
30
- onError: () => {
31
- console.error('Error initializing Zip Checkout');
32
- },
33
- });
34
- });
35
- }
36
- // for backward compatibility
37
- getSuccessRedirectUri() {
38
- return this.getProxyRedirectUrl();
39
- }
40
- // for backward compatibility
41
- getErrorRedirectUri() {
42
- return this.getProxyRedirectUrl();
43
- }
44
- setEnv(env, alias) {
45
- super.setEnv(env, alias);
46
- this.storageDispatcher.setEnv(env, alias);
47
- }
48
- }
49
- //# sourceMappingURL=../../../src/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zipmoney-redirect.runner.js","sourceRoot":"","sources":["../../../checkout-button/zipmoney/zipmoney-redirect.runner.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAmB,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC3F,O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6BAA6B;IACtB,mBAAmB;QACtB,OAAO,IAAI,CAAC,mBAAmB,EAAE,CAAC;IACtC,CAAC;IAEM,MAAM,CAAC,GAAW,EAAE,KAAc;QACrC,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;CACJ"}
@@ -1,4 +0,0 @@
1
- export const ZIPMONEY_PROXY_REDIRECT_URL = '/checkout/zipmoney/response';
2
- export const ZIPMONEY_DEFAULT_SUSPENDED_URL = '/checkout/zipmoney/suspended';
3
- export const ZIPMONEY_MESSAGE_SOURCE = 'zipmoney.checkout.paydock';
4
- //# sourceMappingURL=../../../src/lib/checkout-button/zipmoney/zipmoney.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zipmoney.config.js","sourceRoot":"","sources":["../../../checkout-button/zipmoney/zipmoney.config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,6BAA6B,CAAC;AAEzE,MAAM,CAAC,MAAM,8BAA8B,GAAG,8BAA8B,CAAC;AAE7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,2BAA2B,CAAC"}
@@ -1,23 +0,0 @@
1
- import { BaseRunner } from '../runner';
2
- import { API_URL, Env } from '../../configs/env/env';
3
- import { Url } from '../../helper/url';
4
- const ECHO_URI = '/v1/echo';
5
- export const LOG_PREFIX = '[CheckoutButton:Zipmoney]';
6
- export class ZipmoneyRunner extends BaseRunner {
7
- constructor() {
8
- super();
9
- this.apiEnv = new Env(API_URL);
10
- }
11
- setEnv(env, alias) {
12
- super.setEnv(env, alias);
13
- this.apiEnv.setEnv(env, alias);
14
- }
15
- getCheckoutUri(redirectUri) {
16
- return this.apiEnv.getConf().url + ECHO_URI + '?' + Url.serialize({
17
- json_body: JSON.stringify({
18
- redirect_uri: redirectUri,
19
- }),
20
- });
21
- }
22
- }
23
- //# sourceMappingURL=../../../src/lib/checkout-button/zipmoney/zipmoney.runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zipmoney.runner.js","sourceRoot":"","sources":["../../../checkout-button/zipmoney/zipmoney.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,MAAM,QAAQ,GAAG,UAAU,CAAC;AAE5B,MAAM,CAAC,MAAM,UAAU,GAAG,2BAA2B,CAAC;AAEtD,MAAM,OAAO,cAAe,SAAQ,UAAU;IAG1C;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAEM,MAAM,CAAC,GAAW,EAAE,KAAc;QACrC,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;IAES,cAAc,CAAC,WAAmB;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,GAAG,QAAQ,GAAG,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC;YAC9D,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;gBACtB,YAAY,EAAE,WAAW;aAC5B,CAAC;SACL,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=../../../src/lib/checkout-button/zipmoney/zipmoney.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zipmoney.types.js","sourceRoot":"","sources":["../../../checkout-button/zipmoney/zipmoney.types.ts"],"names":[],"mappings":""}
@@ -1,44 +0,0 @@
1
- export var ABILITY;
2
- (function (ABILITY) {
3
- ABILITY[ABILITY["POPUP_CLOSE"] = 0] = "POPUP_CLOSE";
4
- ABILITY[ABILITY["BACKDROP_DISPLAY_CONTINUE"] = 1] = "BACKDROP_DISPLAY_CONTINUE";
5
- ABILITY[ABILITY["POPUP_FOCUS"] = 2] = "POPUP_FOCUS";
6
- })(ABILITY || (ABILITY = {}));
7
- ;
8
- const GATEWAY = {
9
- PAYPAL_CLASSIC: 'PaypalClassic',
10
- AFTERPAY: 'Afterpay',
11
- ZIP_MONEY: 'ZipMoney',
12
- };
13
- const GatewayAbilityMaps = [
14
- {
15
- gateway: '*',
16
- abilities: [ABILITY.BACKDROP_DISPLAY_CONTINUE, ABILITY.POPUP_CLOSE, ABILITY.POPUP_FOCUS],
17
- },
18
- {
19
- gateway: GATEWAY.ZIP_MONEY,
20
- abilities: [],
21
- },
22
- ];
23
- export class AbilityGuard {
24
- constructor() {
25
- this.usedGateway = null;
26
- }
27
- useGateway(gateway) {
28
- this.usedGateway = gateway;
29
- }
30
- reset() {
31
- this.usedGateway = null;
32
- }
33
- isAllow(ability) {
34
- let gatewayAbility = null;
35
- for (let item of GatewayAbilityMaps) {
36
- if (item.gateway === this.usedGateway)
37
- gatewayAbility = item;
38
- }
39
- if (!gatewayAbility)
40
- gatewayAbility = GatewayAbilityMaps[0];
41
- return !!(ABILITY[ability] in gatewayAbility.abilities);
42
- }
43
- }
44
- //# sourceMappingURL=../../src/lib/components/ability-guard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ability-guard.js","sourceRoot":"","sources":["../../components/ability-guard.ts"],"names":[],"mappings":"AAKA,MAAM,CAAN,IAAY,OAIX;AAJD,WAAY,OAAO;IACf,mDAAW,CAAA;IACX,+EAAyB,CAAA;IACzB,mDAAW,CAAA;AACf,CAAC,EAJW,OAAO,KAAP,OAAO,QAIlB;AAAA,CAAC;AAEF,MAAM,OAAO,GAAG;IACZ,cAAc,EAAE,eAAe;IAC/B,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,UAAU;CACxB,CAAC;AAEF,MAAM,kBAAkB,GAAwB;IAC5C;QACI,OAAO,EAAE,GAAG;QACZ,SAAS,EAAE,CAAC,OAAO,CAAC,yBAAyB,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC;KAC3F;IAED;QACI,OAAO,EAAE,OAAO,CAAC,SAAS;QAC1B,SAAS,EAAE,EAAE;KAChB;CACJ,CAAC;AAEF,MAAM,OAAO,YAAY;IAAzB;QACc,gBAAW,GAAW,IAAI,CAAC;IAsBzC,CAAC;IApBU,UAAU,CAAC,OAAe;QAC7B,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;IAC/B,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC5B,CAAC;IAEM,OAAO,CAAC,OAAe;QAC1B,IAAI,cAAc,GAAsB,IAAI,CAAC;QAC7C,KAAK,IAAI,IAAI,IAAI,kBAAkB,EAAE;YACjC,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,WAAW;gBACjC,cAAc,GAAG,IAAI,CAAC;SAC7B;QAED,IAAI,CAAC,cAAc;YACf,cAAc,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;QAE3C,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,cAAc,CAAC,SAAS,CAAC,CAAA;IAC3D,CAAC;CACJ"}