@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 +0,0 @@
1
- {"version":3,"file":"iframe.js","sourceRoot":"","sources":["../../components/iframe.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,MAAM;IAIf,YAAY,SAAoB;QAC5B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC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/url";
3
- import { Uuid } from '../helper/uuid';
4
- export const WIDGET_LINK = '/remote-action';
5
- export const VAULT_DISPLAY_WIDGET_LINK = '/vault-display';
6
- export const PAYMENT_SOURCE_LINK = '/payment-sources';
7
- export const SECURE_3D = '/3ds/webhook';
8
- export const FLYPAY_LINK = '/wallet/flypay';
9
- export const FLYPAY_LOGO_LINK = '/images/logo.png';
10
- export const VISA_SRC = '/secure-remote-commerce/visa';
11
- export const MASTERCARD_SRC = '/secure-remote-commerce/mastercard';
12
- export class Link {
13
- constructor(linkResource) {
14
- this.params = {};
15
- this.widgetId = Uuid.generate();
16
- this.linkResource = linkResource;
17
- this.env = new Env(WIDGET_URL);
18
- this.setParams({ widget_id: this.widgetId });
19
- }
20
- getNetUrl() {
21
- return this.env.getConf().url + this.linkResource;
22
- }
23
- getUrl() {
24
- let url = this.getNetUrl();
25
- let params = this.getParams();
26
- for (let key in params) {
27
- if (params.hasOwnProperty(key))
28
- url = Url.extendSearchParams(url, key, params[key]);
29
- }
30
- return url;
31
- }
32
- setParams(params) {
33
- this.params = Object.assign({}, this.params, params);
34
- }
35
- concatParams(params) {
36
- for (let key in params) {
37
- if (!params.hasOwnProperty(key) || !params[key].length)
38
- continue;
39
- if (typeof this.params[key] !== 'string')
40
- this.params[key] = '';
41
- if (this.params[key].length)
42
- this.params[key] += ',' + params[key];
43
- else
44
- this.params[key] += params[key];
45
- }
46
- }
47
- getParams() {
48
- return this.params;
49
- }
50
- setEnv(env, alias) {
51
- this.env.setEnv(env, alias);
52
- }
53
- getEnv() {
54
- return this.env.getEnv();
55
- }
56
- getBaseUrl() {
57
- return this.env.getConf().url;
58
- }
59
- }
60
- //# sourceMappingURL=../../src/lib/components/link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.js","sourceRoot":"","sources":["../../components/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAA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●</label>
7
- <label> ●</label>
8
- <label> ●</label>
9
- <label> ●</label>
10
- </div>
11
- </div>
12
- `;
13
- export const STYLE = `
14
- <style>
15
- .cs-loader {
16
- position: absolute;
17
- top: 0;
18
- left: 0;
19
- height: 100%;
20
- width: 100%;
21
- }
22
-
23
- .cs-loader-inner {
24
- transform: translateY(-50%);
25
- top: 50%;
26
- position: absolute;
27
- width: calc(100% - 200px);
28
- color: #8e8d8c;
29
- padding: 0 100px;
30
- text-align: center;
31
- }
32
-
33
-
34
- .cs-loader-inner label {
35
- font-size: 20px;
36
- opacity: 0;
37
- display:inline-block;
38
- }
39
-
40
- @keyframes lol {
41
- 0% {
42
- opacity: 0;
43
- transform: translateX(-300px);
44
- }
45
- 33% {
46
- opacity: 1;
47
- transform: translateX(0px);
48
- }
49
- 66% {
50
- opacity: 1;
51
- transform: translateX(0px);
52
- }
53
- 100% {
54
- opacity: 0;
55
- transform: translateX(300px);
56
- }
57
- }
58
-
59
- @-webkit-keyframes lol {
60
- 0% {
61
- opacity: 0;
62
- -webkit-transform: translateX(-300px);
63
- }
64
- 33% {
65
- opacity: 1;
66
- -webkit-transform: translateX(0px);
67
- }
68
- 66% {
69
- opacity: 1;
70
- -webkit-transform: translateX(0px);
71
- }
72
- 100% {
73
- opacity: 0;
74
- -webkit-transform: translateX(300px);
75
- -moz-transform: translateX(300px);
76
- }
77
- }
78
-
79
- .cs-loader-inner label:nth-child(6) {
80
- -webkit-animation: lol 3s infinite ease-in-out;
81
- -moz-animation: lol 3s infinite ease-in-out;
82
- animation: lol 3s infinite ease-in-out;
83
- }
84
-
85
- .cs-loader-inner label:nth-child(5) {
86
- -webkit-animation: lol 3s 100ms infinite ease-in-out;
87
- -moz-animation: lol 3s 100ms infinite ease-in-out;
88
- animation: lol 3s 100ms infinite ease-in-out;
89
- }
90
-
91
- .cs-loader-inner label:nth-child(4) {
92
- -webkit-animation: lol 3s 200ms infinite ease-in-out;
93
- -moz-animation: lol 3s 200ms infinite ease-in-out;
94
- animation: lol 3s 200ms infinite ease-in-out;
95
- }
96
-
97
- .cs-loader-inner label:nth-child(3) {
98
- -webkit-animation: lol 3s 300ms infinite ease-in-out;
99
- -moz-animation: lol 3s 300ms infinite ease-in-out;
100
- animation: lol 3s 300ms infinite ease-in-out;
101
- }
102
-
103
- .cs-loader-inner label:nth-child(2) {
104
- -webkit-animation: lol 3s 400ms infinite ease-in-out;
105
- -moz-animation: lol 3s 400ms infinite ease-in-out;
106
- animation: lol 3s 400ms infinite ease-in-out;
107
- }
108
-
109
- .cs-loader-inner label:nth-child(1) {
110
- -webkit-animation: lol 3s 500ms infinite ease-in-out;
111
- -moz-animation: lol 3s 500ms infinite ease-in-out;
112
- animation: lol 3s 500ms infinite ease-in-out;
113
- }
114
- </style>
115
- `;
116
- export const EXTRA_TEMPLATE = `
117
- <div class="circ">
118
- <div class="load">A little patience ...</div>
119
- <div class="hands"></div>
120
- <div class="body"></div>
121
- <div class="head">
122
- <div class="eye"></div>
123
- </div>
124
- </div>
125
- `;
126
- export const EXTRA_STYLE = `
127
- <style>
128
- html{width: 100%;height: 100%;}
129
- body{margin: 0px;padding: 0px;background-color: #111;}
130
-
131
- .eye{
132
- width: 20px; height: 8px;
133
- background-color: #eee;
134
- border-radius:0px 0px 20px 20px;
135
- position: relative;
136
- top: 40px;
137
- left: 10px;
138
- box-shadow: 40px 0px 0px 0px #eee;
139
- }
140
-
141
- .head{
142
- -webkit-backface-visibility: hidden;
143
- -moz-backface-visibility: hidden;
144
- backface-visibility: hidden;
145
- position: relative;
146
- margin: -250px auto;
147
- width: 80px; height: 80px;
148
- background-color: #111;
149
- border-radius:50px;
150
- box-shadow: inset -4px 2px 0px 0px #eee;
151
- -webkit-animation:node 1.5s infinite alternate;
152
- -webkit-animation-timing-function:ease-out;
153
- -moz-animation:node 1.5s infinite alternate;
154
- -moz-animation-timing-function:ease-out;
155
- animation:node 1.5s infinite alternate;
156
- animation-timing-function:ease-out;
157
- }
158
- .body{
159
- position: relative;
160
- margin: 90px auto;
161
- width: 140px; height: 120px;
162
- background-color: #111;
163
- border-radius: 50px/25px ;
164
- box-shadow: inset -5px 2px 0px 0px #eee;
165
- -webkit-animation:node2 1.5s infinite alternate;
166
- -webkit-animation-timing-function:ease-out;
167
- -moz-animation:node2 1.5s infinite alternate;
168
- -moz-animation-timing-function:ease-out;
169
- animation:node2 1.5s infinite alternate;
170
- animation-timing-function:ease-out;
171
- }
172
-
173
- @keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }
174
- @keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}
175
- @-moz-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }
176
- @-moz-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}
177
- @-webkit-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }
178
- @-webkit-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}
179
-
180
-
181
- .circ{
182
- -webkit-backface-visibility: hidden;
183
- -moz-backface-visibility: hidden;
184
- backface-visibility: hidden;
185
- margin: 60px auto;
186
- width: 180px; height: 180px;
187
- background-color: #111;
188
- border-radius: 0px 0px 50px 50px;
189
- position: relative;
190
- z-index: -1;
191
- left: 0%;
192
- top: 20%;
193
- overflow: hidden;
194
- }
195
-
196
- .hands{
197
- -webkit-backface-visibility: hidden;
198
- -moz-backface-visibility: hidden;
199
- backface-visibility: hidden;
200
- margin-top: 140px;
201
- width: 120px;height: 120px;
202
- position: absolute;
203
- background-color: #111;
204
- border-radius:20px;
205
- box-shadow:-1px -4px 0px 0px #eee;
206
- transform:rotate(45deg);
207
- -webkit-transform:rotate(45deg);
208
- -mox-transform:rotate(45deg);
209
- top:75%;left: 16%;
210
- z-index: 1;
211
- -webkit-animation:node2 1.5s infinite alternate;
212
- -webkit-animation-timing-function:ease-out;
213
- -moz-animation:node2 1.5s infinite alternate;
214
- -moz-animation-timing-function:ease-out;
215
- animation:node2 1.5s infinite alternate;
216
- animation-timing-function:ease-out;
217
- }
218
-
219
- .load{ position: absolute;
220
- width: 100px; height: 20px;
221
- margin: -10px auto;
222
- -webkit-font-smoothing: antialiased;
223
- -moz-font-smoothing: antialiased;
224
- font-smoothing: antialiased;
225
- font-family: 'Julius Sans One', sans-serif;
226
- font-size:30px;
227
- font-weight:400;
228
- color:#eee;
229
- left: 10%;
230
- top: 5%;
231
- }
232
- </style>
233
- `;
234
- //# sourceMappingURL=../../src/lib/components/loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../components/loader.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;CAWvB,CAAC;AAGF,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGpB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;CAS7B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2G1B,CAAC"}
@@ -1,147 +0,0 @@
1
- export const PAYMENT_SOURCE_TYPE = {
2
- CARD: 'card',
3
- BANK_ACCOUNT: 'bank_account',
4
- CHECKOUT: 'checkout',
5
- };
6
- export const FORM_FIELD = {
7
- CARD_NAME: 'card_name',
8
- CARD_NUMBER: 'card_number',
9
- EXPIRE_MONTH: 'expire_month',
10
- EXPIRE_YEAR: 'expire_year',
11
- CARD_CCV: 'card_ccv',
12
- CARD_PIN: 'card_pin',
13
- ACCOUNT_NAME: 'account_name',
14
- ACCOUNT_BSB: 'account_bsb',
15
- ACCOUNT_NUMBER: 'account_number',
16
- ACCOUNT_ROUTING: 'account_routing',
17
- ACCOUNT_HOLDER_TYPE: 'account_holder_type',
18
- ACCOUNT_BANK_NAME: 'account_bank_name',
19
- ACCOUNT_TYPE: 'account_type',
20
- FIRST_NAME: 'first_name',
21
- LAST_NAME: 'last_name',
22
- EMAIL: 'email',
23
- PHONE: 'phone',
24
- PHONE2: 'phone2',
25
- ADDRESS_LINE1: 'address_line1',
26
- ADDRESS_LINE2: 'address_line2',
27
- ADDRESS_STATE: 'address_state',
28
- ADDRESS_COUNTRY: 'address_country',
29
- ADDRESS_CITY: 'address_city',
30
- ADDRESS_POSTCODE: 'address_postcode',
31
- ADDRESS_COMPANY: 'address_company',
32
- };
33
- export const STYLE = {
34
- BACKGROUND_COLOR: 'background_color',
35
- BACKGROUND_ACTIVE_COLOR: 'background_active_color',
36
- TEXT_COLOR: 'text_color',
37
- BORDER_COLOR: 'border_color',
38
- ICON_SIZE: 'icon_size',
39
- BUTTON_COLOR: 'button_color',
40
- ERROR_COLOR: 'error_color',
41
- SUCCESS_COLOR: 'success_color',
42
- FONT_SIZE: 'font_size',
43
- FONT_FAMILY: 'font_family',
44
- };
45
- export const VAULT_DISPLAY_STYLE = {
46
- BACKGROUND_COLOR: 'background_color',
47
- TEXT_COLOR: 'text_color',
48
- BORDER_COLOR: 'border_color',
49
- BUTTON_COLOR: 'button_color',
50
- FONT_SIZE: 'font_size',
51
- FONT_FAMILY: 'font_family',
52
- };
53
- export const TEXT = {
54
- TITLE: 'title',
55
- TITLE_H1: 'title_h1',
56
- TITLE_H2: 'title_h2',
57
- TITLE_H3: 'title_h3',
58
- TITLE_H4: 'title_h4',
59
- TITLE_H5: 'title_h5',
60
- TITLE_H6: 'title_h6',
61
- FINISH: 'finish_text',
62
- TITLE_DESCRIPTION: 'title_description',
63
- SUBMIT_BUTTON: 'submit_button',
64
- SUBMIT_BUTTON_PROCESSING: 'submit_button_processing',
65
- };
66
- export const ELEMENT = {
67
- SUBMIT_BUTTON: 'submit_button',
68
- TABS: 'tabs',
69
- };
70
- export const SUPPORTED_CARD_TYPES = {
71
- AMEX: 'amex',
72
- AUSBC: 'ausbc',
73
- DINERS: 'diners',
74
- DISCOVER: 'discover',
75
- JAPCB: 'japcb',
76
- LASER: 'laser',
77
- MASTERCARD: 'mastercard',
78
- SOLO: 'solo',
79
- VISA: 'visa',
80
- VISA_WHITE: 'visa_white',
81
- };
82
- export const SUPPORTED_CHECKOUT_META_COLLECTION = [].concat([
83
- 'brand_name',
84
- 'cart_border_color',
85
- 'reference',
86
- 'email',
87
- 'hdr_img',
88
- 'logo_img',
89
- 'pay_flow_color',
90
- 'first_name',
91
- 'last_name',
92
- 'address_line',
93
- 'address_line2',
94
- 'address_city',
95
- 'address_state',
96
- 'address_postcode',
97
- 'address_country',
98
- 'phone',
99
- 'hide_shipping_address',
100
- ], [
101
- 'first_name',
102
- 'last_name',
103
- 'phone',
104
- 'tokenize',
105
- 'email',
106
- 'gender',
107
- 'date_of_birth',
108
- 'charge',
109
- 'statistics',
110
- 'hide_shipping_address',
111
- ], [
112
- 'amount',
113
- 'currency',
114
- 'email',
115
- 'first_name',
116
- 'last_name',
117
- 'address_line',
118
- 'address_line2',
119
- 'address_city',
120
- 'address_state',
121
- 'address_postcode',
122
- 'address_country',
123
- 'phone',
124
- ], [
125
- 'customer_storage_number',
126
- 'tokenise_algorithm',
127
- ]);
128
- export var WALLET_GATEWAY;
129
- (function (WALLET_GATEWAY) {
130
- WALLET_GATEWAY["STRIPE"] = "Stripe";
131
- WALLET_GATEWAY["FLYPAY"] = "Flypay";
132
- WALLET_GATEWAY["FLYPAY_V2"] = "FlypayV2";
133
- WALLET_GATEWAY["PAYPAL"] = "Paypal";
134
- WALLET_GATEWAY["MASTERCARD"] = "MasterCard";
135
- WALLET_GATEWAY["AFTERPAY"] = "Afterpay";
136
- })(WALLET_GATEWAY || (WALLET_GATEWAY = {}));
137
- ;
138
- export var WALLET_TYPE;
139
- (function (WALLET_TYPE) {
140
- WALLET_TYPE["GOOGLE"] = "google";
141
- WALLET_TYPE["APPLE"] = "apple";
142
- WALLET_TYPE["FLYPAY"] = "flypay";
143
- WALLET_TYPE["FLYPAY_V2"] = "flypayV2";
144
- WALLET_TYPE["PAYPAL"] = "paypal";
145
- WALLET_TYPE["AFTERPAY"] = "afterpay";
146
- })(WALLET_TYPE || (WALLET_TYPE = {}));
147
- //# sourceMappingURL=../../src/lib/components/param.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"param.js","sourceRoot":"","sources":["../../components/param.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,eAAe,EAAE,iBAAiB;IAClC,YAAY,EAAE,cAAc;IAC5B,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;CACrC,CAAC;AAGF,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,gBAAgB,EAAE,kBAAkB;IACpC,uBA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BAAmB;IACnB,WAAW;IACX,OAAO;IACP,SAAS;IACT,UAAU;IACV,gBAAgB;IAChB,YAAY;IACZ,WAAW;IACX,cAAc;IACd,eAAe;IACf,cAAc;IACd,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,OAAO;IACP,uBAAuB;CAC1B,EACD;IACI,YAAY;IACZ,WAAW;IACX,OAAO;IACP,UAAU;IACV,OAAO;IACP,QAAQ;IACR,eAAe;IACf,QAAQ;IACR,YAAY;IACZ,uBAAuB;CAC1B,EACD;IACI,QAAQ;IACR,UAAU;IACV,OAAO;IACP,YAAY;IACZ,WAAW;IACX,cAAc;IACd,eAAe;IACf,cAAc;IACd,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,OAAO;CACV,EACD;IACI,yBAAyB;IACzB,oBAAoB;CACvB,CACJ,CAAC;AAgRF,MAAM,CAAN,IAAY,cAOX;AAPD,WAAY,cAAc;IACtB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,wCAAsB,CAAA;IACtB,mCAAiB,CAAA;IACjB,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;AACzB,CAAC,EAPW,cAAc,KAAd,cAAc,QAOzB;AAAA,CAAC;AAEF,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACnB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,qCAAsB,CAAA;IACtB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;AACzB,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB"}
@@ -1,104 +0,0 @@
1
- import { EventEmitter } from '../helper/event-emitter';
2
- import { TEMPLATE as LOADER_TEMPLATE, EXTRA_TEMPLATE as LOADER_EXTRA_TEMPLATE, STYLE as LOADER_STYLE, EXTRA_STYLE as LOADER_EXTRA_STYLE, } from "./loader";
3
- import { Event } from "../helper/event";
4
- import { ENV } from "../configs/env/env";
5
- import { Browser } from "../helper/browser";
6
- const EVENT_CLOSE = 'close';
7
- const ERROR_STYLES = `<style>
8
- .error-wrapper {
9
- color: #ff0000;
10
- display: flex;
11
- justify-content: center;
12
- align-items: center;
13
- height: 100%;
14
- }
15
- </style>`;
16
- const ERROR_TEMPLATE = `<div class="error-wrapper"><div>{{error}}</div></div>`;
17
- export class Popup {
18
- constructor() {
19
- this.configs = {
20
- width: 500,
21
- height: 500,
22
- scrollbars: true,
23
- resizable: true,
24
- top: 0,
25
- left: 0,
26
- };
27
- this.eventEmitter = new EventEmitter();
28
- }
29
- isExist() {
30
- return !!(this.getElement() && !this.getElement().closed);
31
- }
32
- getElement() {
33
- return this.window;
34
- }
35
- init() {
36
- if (!Browser.isSupportPopUp())
37
- return this.window = window;
38
- let configs = this.getConfigs();
39
- this.window = window.open('about:blank', '_blank', `noopener=false,width=${configs.width},height=${configs.height},top=${configs.top},left=${configs.left},scrollbars=${configs.scrollbars ? 'yes' : 'no'},resizable=${configs.resizable ? 'yes' : 'no'}`);
40
- this.showLoader();
41
- let timer = setInterval(() => {
42
- if (!this.isExist()) {
43
- clearInterval(timer);
44
- this.eventEmitter.emit(EVENT_CLOSE, {});
45
- }
46
- }, 200);
47
- }
48
- redirect(url) {
49
- if (!this.isExist())
50
- return;
51
- this.window.location.href = url;
52
- }
53
- close() {
54
- if (!this.isExist() || !this.getElement().close)
55
- return;
56
- this.getElement().close();
57
- this.window = null;
58
- }
59
- focus() {
60
- if (!this.isExist() || !this.getElement().focus)
61
- return;
62
- this.getElement().focus();
63
- }
64
- setConfigs(configs) {
65
- this.configs = Object.assign(this.configs, configs);
66
- }
67
- getNetConfigs() {
68
- return Object.assign({}, this.configs);
69
- }
70
- getConfigs() {
71
- let configs = this.getNetConfigs();
72
- configs.left = window.screenX + (window.screen.width / 2 - configs.width / 2);
73
- configs.top = window.screenY + (window.screen.height / 2 - configs.height / 2);
74
- return configs;
75
- }
76
- onClose(cb) {
77
- this.eventEmitter.subscribe(EVENT_CLOSE, cb);
78
- }
79
- initError(error) {
80
- this.getElement().document.write(".");
81
- let body = this.getElement().document.body || this.getElement().document.getElementsByTagName('body')[0];
82
- body.innerHTML = ERROR_STYLES + ERROR_TEMPLATE.replace('{{error}}', error);
83
- }
84
- showLoader() {
85
- this.getElement().document.write(".");
86
- let body = this.getElement().document.body || this.getElement().document.getElementsByTagName('body')[0];
87
- body.innerHTML = LOADER_STYLE + LOADER_TEMPLATE;
88
- if (this.env !== ENV.STAGING || this.env !== ENV.STAGING_1 || this.env !== ENV.STAGING_2 || this.env !== ENV.STAGING_3 || this.env !== ENV.STAGING_4 || this.env !== ENV.STAGING_5 ||
89
- this.env !== ENV.STAGING_6 || this.env !== ENV.STAGING_7 || this.env !== ENV.STAGING_8 || this.env !== ENV.STAGING_9 || this.env !== ENV.STAGING_10 ||
90
- this.env !== ENV.STAGING_11 || this.env !== ENV.STAGING_12 || this.env !== ENV.STAGING_13 || this.env !== ENV.STAGING_14 || this.env !== ENV.STAGING_15)
91
- return;
92
- let clickCount = 0;
93
- Event.subscribe('click', body, () => {
94
- clickCount++;
95
- if (clickCount !== 5)
96
- return;
97
- body.innerHTML = LOADER_EXTRA_STYLE + LOADER_EXTRA_TEMPLATE;
98
- });
99
- }
100
- setEnv(env) {
101
- this.env = env;
102
- }
103
- }
104
- //# sourceMappingURL=../../src/lib/components/popup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popup.js","sourceRoot":"","sources":["../../components/popup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACH,QAAQ,IAAI,eAAe,EAAE,cAAc,IAAI,qBAAqB,EAAE,KAAK,IAAI,YAAY,EAC3F,WAAW,IAAI,kBAAkB,GACpC,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAC,GAAG,EAAC,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAE1C,MA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IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,SAAS,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,SAAS,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,SAAS,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,SAAS,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU;YACnJ,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU;YACvJ,OAAO;QAEX,IAAI,UAAU,GAAG,CAAC,CAAC;QACnB,KAAK,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE;YAChC,UAAU,EAAG,CAAA;YACb,IAAI,UAAU,KAAK,CAAC;gBAChB,OAAO;YAEX,IAAI,CAAC,SAAS,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;QAChE,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,MAAM,CAAC,GAAW;QACrB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;CACJ"}
@@ -1,75 +0,0 @@
1
- import { Env, WIDGET_URL } from '../configs/env/env';
2
- import { Uuid } from '../helper/uuid';
3
- import { EVENT, IFrameEvent } from './iframe-event';
4
- const STORAGE_DISPATCHER_URI = '/storage-dispatcher';
5
- const STORAGE_DISPATCHER_ID = 'pd-storage-dispatcher';
6
- const LOG_PREFIX = '[Paydock:StorageDispatcher]';
7
- export var StorageDataIntent;
8
- (function (StorageDataIntent) {
9
- StorageDataIntent["WIDGET_SESSION"] = "widget-session";
10
- })(StorageDataIntent || (StorageDataIntent = {}));
11
- export class StorageDispatcher {
12
- constructor(messageSource) {
13
- this.messageSource = messageSource;
14
- this.defaultPayload = {
15
- destination: 'widget.paydock',
16
- };
17
- this.env = new Env(WIDGET_URL);
18
- this.defaultPayload.source = messageSource;
19
- this.iframeEvent = new IFrameEvent(window);
20
- }
21
- create(onLoadCallback) {
22
- this.onLoadCallback = onLoadCallback;
23
- if (this.dispatcherFrame)
24
- this.destroy();
25
- this.widgetId = Uuid.generate();
26
- this.setupIframeEventListeners();
27
- const iFrame = document.createElement('iframe');
28
- iFrame.setAttribute('src', this.env.getConf().url + STORAGE_DISPATCHER_URI + `?widgetId=${this.widgetId}`);
29
- iFrame.setAttribute('id', STORAGE_DISPATCHER_ID);
30
- iFrame.style.display = 'none';
31
- document.body.appendChild(iFrame);
32
- this.dispatcherFrame = iFrame;
33
- console.info(`${LOG_PREFIX} initialized.`);
34
- return iFrame;
35
- }
36
- destroy() {
37
- if (this.dispatcherFrame && this.dispatcherFrame.parentNode) {
38
- this.dispatcherFrame.parentNode.removeChild(this.dispatcherFrame);
39
- }
40
- this.iframeEvent.clear();
41
- this.widgetId = undefined;
42
- this.dispatcherFrame = undefined;
43
- }
44
- push(payload, pushCallbacks) {
45
- var _a;
46
- this.pushCallbacks = pushCallbacks;
47
- if (!this.dispatcherFrame) {
48
- console.error(`${LOG_PREFIX} dispatcher is not initialized.`);
49
- return;
50
- }
51
- const body = Object.assign(Object.assign({}, this.defaultPayload), payload);
52
- (_a = this.dispatcherFrame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(body, this.env.getConf().url);
53
- }
54
- setEnv(env, alias) {
55
- this.env.setEnv(env, alias);
56
- this.create(this.onLoadCallback);
57
- }
58
- setupIframeEventListeners() {
59
- if (!this.widgetId)
60
- return;
61
- this.iframeEvent.on(EVENT.AFTER_LOAD, this.widgetId, (_event) => {
62
- var _a;
63
- (_a = this.onLoadCallback) === null || _a === void 0 ? void 0 : _a.call(this);
64
- });
65
- this.iframeEvent.on(EVENT.DISPATCH_SUCCESS, this.widgetId, (_event) => {
66
- var _a, _b;
67
- (_b = (_a = this.pushCallbacks) === null || _a === void 0 ? void 0 : _a.onSuccess) === null || _b === void 0 ? void 0 : _b.call(_a);
68
- });
69
- this.iframeEvent.on(EVENT.DISPATCH_ERROR, this.widgetId, (_event) => {
70
- var _a, _b;
71
- (_b = (_a = this.pushCallbacks) === null || _a === void 0 ? void 0 : _a.onError) === null || _b === void 0 ? void 0 : _b.call(_a);
72
- });
73
- }
74
- }
75
- //# sourceMappingURL=../../src/lib/components/storage-dispatcher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage-dispatcher.js","sourceRoot":"","sources":["../../components/storage-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AACrD,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,UAAU,GAAG,6BAA6B,CAAC;AAEjD,MAAM,CAAN,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IACzB,sDAAiC,CAAA;AACrC,CAAC,EAFW,iBAAiB,KAAjB,iBAAiB,QAE5B;AAcD,MAAM,OAAO,iBAAiB;IAW1B,YAAmB,aAAqB;QAArB,kBAAa,GAAb,aAAa,CAAQ;QAJhC,mBAAc,GAA6D;YAC/E,WAAW,EAAE,gBAAgB;SAChC,CAAC;QAGE,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,aAAa,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAEM,MAAM,CAAC,cAA0B;QACpC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,I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