@paydock/client-sdk 1.127.1-beta → 1.131.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 (288) hide show
  1. package/README.md +1466 -3901
  2. package/bundles/index.cjs +2845 -539
  3. package/bundles/index.cjs.d.ts +408 -196
  4. package/bundles/index.mjs +2844 -539
  5. package/bundles/index.mjs.d.ts +408 -196
  6. package/bundles/types/api/api-internal.d.ts +3 -1
  7. package/bundles/types/api/api-internal.d.ts.map +1 -1
  8. package/bundles/types/api/api-payment-source-internal.d.ts +8 -0
  9. package/bundles/types/api/api-payment-source-internal.d.ts.map +1 -0
  10. package/bundles/types/checkout/checkout.d.ts +8 -14
  11. package/bundles/types/checkout/checkout.d.ts.map +1 -1
  12. package/bundles/types/checkout/helpers/instruction-debugger.d.ts +4 -0
  13. package/bundles/types/checkout/helpers/instruction-debugger.d.ts.map +1 -0
  14. package/bundles/types/checkout/helpers/instruction-handler.d.ts +4 -4
  15. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -1
  16. package/bundles/types/checkout/images/card-icons.d.ts +10 -0
  17. package/bundles/types/checkout/images/card-icons.d.ts.map +1 -0
  18. package/bundles/types/checkout/index.d.ts +2 -1
  19. package/bundles/types/checkout/index.d.ts.map +1 -1
  20. package/bundles/types/checkout/models/checkout.models.d.ts +14 -0
  21. package/bundles/types/checkout/models/checkout.models.d.ts.map +1 -0
  22. package/bundles/types/checkout/utils/checkout-styles.util.d.ts +2 -0
  23. package/bundles/types/checkout/utils/checkout-styles.util.d.ts.map +1 -0
  24. package/bundles/types/checkout/utils/checkout-version-handler.util.d.ts +3 -0
  25. package/bundles/types/checkout/utils/checkout-version-handler.util.d.ts.map +1 -0
  26. package/bundles/types/checkout/v1/helpers/widget-structure-handler.d.ts +10 -0
  27. package/bundles/types/checkout/v1/helpers/widget-structure-handler.d.ts.map +1 -0
  28. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/index.d.ts.map +1 -1
  29. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.afterpay_checkout_form.show.d.ts +2 -2
  30. package/bundles/types/checkout/v1/instructions/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  31. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.afterpay_wallet_form.show.d.ts +3 -2
  32. package/bundles/types/checkout/v1/instructions/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  33. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.apple_pay_form.show.d.ts +3 -2
  34. package/bundles/types/checkout/v1/instructions/instruction.apple_pay_form.show.d.ts.map +1 -0
  35. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.bank_account_form.show.d.ts +2 -2
  36. package/bundles/types/checkout/v1/instructions/instruction.bank_account_form.show.d.ts.map +1 -0
  37. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.canvas_3ds.show.d.ts.map +1 -1
  38. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.card_form.show.d.ts +1 -1
  39. package/bundles/types/checkout/v1/instructions/instruction.card_form.show.d.ts.map +1 -0
  40. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.disable_payment_method_event.emit.d.ts +2 -2
  41. package/bundles/types/checkout/v1/instructions/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  42. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.fraud_service.show.d.ts.map +1 -1
  43. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.generic.show_message.d.ts +1 -1
  44. package/bundles/types/checkout/v1/instructions/instruction.generic.show_message.d.ts.map +1 -0
  45. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.google_pay_form.show.d.ts +3 -2
  46. package/bundles/types/checkout/v1/instructions/instruction.google_pay_form.show.d.ts.map +1 -0
  47. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.merchant_event.emit.d.ts +2 -2
  48. package/bundles/types/checkout/v1/instructions/instruction.merchant_event.emit.d.ts.map +1 -0
  49. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.payment_methods.show.d.ts.map +1 -1
  50. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.paypal_form.show.d.ts +2 -2
  51. package/bundles/types/checkout/v1/instructions/instruction.paypal_form.show.d.ts.map +1 -0
  52. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.zip_checkout_form.show.d.ts +3 -2
  53. package/bundles/types/checkout/v1/instructions/instruction.zip_checkout_form.show.d.ts.map +1 -0
  54. package/bundles/types/checkout/v1/layout-widgets/additionals.d.ts +3 -0
  55. package/bundles/types/checkout/v1/layout-widgets/additionals.d.ts.map +1 -0
  56. package/bundles/types/checkout/v1/layout-widgets/default-variables.enum.d.ts.map +1 -0
  57. package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/message.d.ts +6 -6
  58. package/bundles/types/checkout/v1/layout-widgets/message.d.ts.map +1 -0
  59. package/bundles/types/checkout/v1/layout-widgets/payment-methods-template.d.ts.map +1 -0
  60. package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/payment-methods.d.ts +5 -5
  61. package/bundles/types/checkout/v1/layout-widgets/payment-methods.d.ts.map +1 -0
  62. package/bundles/types/checkout/v1/layout-widgets/payment-template.d.ts.map +1 -0
  63. package/bundles/types/checkout/v1/models/checkout.models.d.ts +5 -0
  64. package/bundles/types/checkout/v1/models/checkout.models.d.ts.map +1 -0
  65. package/bundles/types/checkout/v3/components/go-back-to-payments-button/go-back-to-payments.d.ts +4 -0
  66. package/bundles/types/checkout/v3/components/go-back-to-payments-button/go-back-to-payments.d.ts.map +1 -0
  67. package/bundles/types/checkout/v3/components/list-items-wrapper/list-items-wrapper.d.ts +8 -0
  68. package/bundles/types/checkout/v3/components/list-items-wrapper/list-items-wrapper.d.ts.map +1 -0
  69. package/bundles/types/checkout/v3/components/payment-methods-list/payment-methods-list.d.ts +3 -0
  70. package/bundles/types/checkout/v3/components/payment-methods-list/payment-methods-list.d.ts.map +1 -0
  71. package/bundles/types/checkout/v3/components/payments-wrapper/payments-wrapper.d.ts +9 -0
  72. package/bundles/types/checkout/v3/components/payments-wrapper/payments-wrapper.d.ts.map +1 -0
  73. package/bundles/types/checkout/v3/helpers/widget-structure-handler.d.ts +10 -0
  74. package/bundles/types/checkout/v3/helpers/widget-structure-handler.d.ts.map +1 -0
  75. package/bundles/types/checkout/v3/instructions/index.d.ts +4 -0
  76. package/bundles/types/checkout/v3/instructions/index.d.ts.map +1 -0
  77. package/bundles/types/checkout/v3/instructions/instruction.afterpay_checkout_form.show.d.ts +20 -0
  78. package/bundles/types/checkout/v3/instructions/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  79. package/bundles/types/checkout/v3/instructions/instruction.afterpay_wallet_form.show.d.ts +17 -0
  80. package/bundles/types/checkout/v3/instructions/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  81. package/bundles/types/checkout/v3/instructions/instruction.apple_pay_form.show.d.ts +17 -0
  82. package/bundles/types/checkout/v3/instructions/instruction.apple_pay_form.show.d.ts.map +1 -0
  83. package/bundles/types/checkout/v3/instructions/instruction.bank_account_form.show.d.ts +14 -0
  84. package/bundles/types/checkout/v3/instructions/instruction.bank_account_form.show.d.ts.map +1 -0
  85. package/bundles/types/checkout/v3/instructions/instruction.canvas_3ds.show.d.ts +12 -0
  86. package/bundles/types/checkout/v3/instructions/instruction.canvas_3ds.show.d.ts.map +1 -0
  87. package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts +24 -0
  88. package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts.map +1 -0
  89. package/bundles/types/checkout/v3/instructions/instruction.disable_payment_method_event.emit.d.ts +21 -0
  90. package/bundles/types/checkout/v3/instructions/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  91. package/bundles/types/checkout/v3/instructions/instruction.fraud_service.show.d.ts +21 -0
  92. package/bundles/types/checkout/v3/instructions/instruction.fraud_service.show.d.ts.map +1 -0
  93. package/bundles/types/checkout/v3/instructions/instruction.generic.show_message.d.ts +27 -0
  94. package/bundles/types/checkout/v3/instructions/instruction.generic.show_message.d.ts.map +1 -0
  95. package/bundles/types/checkout/v3/instructions/instruction.google_pay_form.show.d.ts +17 -0
  96. package/bundles/types/checkout/v3/instructions/instruction.google_pay_form.show.d.ts.map +1 -0
  97. package/bundles/types/checkout/v3/instructions/instruction.merchant_event.emit.d.ts +18 -0
  98. package/bundles/types/checkout/v3/instructions/instruction.merchant_event.emit.d.ts.map +1 -0
  99. package/bundles/types/checkout/v3/instructions/instruction.payment_methods.show.d.ts +23 -0
  100. package/bundles/types/checkout/v3/instructions/instruction.payment_methods.show.d.ts.map +1 -0
  101. package/bundles/types/checkout/v3/instructions/instruction.paypal_form.show.d.ts +19 -0
  102. package/bundles/types/checkout/v3/instructions/instruction.paypal_form.show.d.ts.map +1 -0
  103. package/bundles/types/checkout/v3/instructions/instruction.saved_card_form.show.d.ts +22 -0
  104. package/bundles/types/checkout/v3/instructions/instruction.saved_card_form.show.d.ts.map +1 -0
  105. package/bundles/types/checkout/v3/instructions/instruction.zip_checkout_form.show.d.ts +19 -0
  106. package/bundles/types/checkout/v3/instructions/instruction.zip_checkout_form.show.d.ts.map +1 -0
  107. package/bundles/types/checkout/v3/models/card.model.d.ts +20 -0
  108. package/bundles/types/checkout/v3/models/card.model.d.ts.map +1 -0
  109. package/bundles/types/checkout/v3/models/checkout-styles.model.d.ts +9 -0
  110. package/bundles/types/checkout/v3/models/checkout-styles.model.d.ts.map +1 -0
  111. package/bundles/types/checkout/v3/models/checkout.models.d.ts +4 -0
  112. package/bundles/types/checkout/v3/models/checkout.models.d.ts.map +1 -0
  113. package/bundles/types/checkout/v3/models/payment-methods.model.d.ts +13 -0
  114. package/bundles/types/checkout/v3/models/payment-methods.model.d.ts.map +1 -0
  115. package/bundles/types/checkout/v3/styles/additionals.d.ts +3 -0
  116. package/bundles/types/checkout/v3/styles/additionals.d.ts.map +1 -0
  117. package/bundles/types/checkout/v3/utils/checkout-customisation-styles.util.d.ts +3 -0
  118. package/bundles/types/checkout/v3/utils/checkout-customisation-styles.util.d.ts.map +1 -0
  119. package/bundles/types/components/param.d.ts +7 -0
  120. package/bundles/types/components/param.d.ts.map +1 -1
  121. package/bundles/types/configs/env/environment.uba.d.ts +28 -0
  122. package/bundles/types/configs/env/environment.uba.d.ts.map +1 -0
  123. package/bundles/types/constants/validators.d.ts +2 -2
  124. package/bundles/types/constants/validators.d.ts.map +1 -1
  125. package/bundles/types/fraud-prevention/providers/forter/templates/{forter-snippet-2025-02-06t14:19:34z.template.d.ts → forter-snippet-20250206141934.template.d.ts} +1 -1
  126. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-20250206141934.template.d.ts.map +1 -0
  127. package/bundles/types/helper/card-scheme.d.ts +76 -0
  128. package/bundles/types/helper/card-scheme.d.ts.map +1 -0
  129. package/bundles/types/index-cba.d.ts +11 -11
  130. package/bundles/types/index-cba.d.ts.map +1 -1
  131. package/bundles/types/index.d.ts +12 -11
  132. package/bundles/types/index.d.ts.map +1 -1
  133. package/bundles/types/open-wallets/base/base-open-wallet.d.ts +33 -0
  134. package/bundles/types/open-wallets/base/base-open-wallet.d.ts.map +1 -0
  135. package/bundles/types/open-wallets/enum/event.enum.d.ts +8 -0
  136. package/bundles/types/open-wallets/enum/event.enum.d.ts.map +1 -0
  137. package/bundles/types/open-wallets/index.d.ts +6 -0
  138. package/bundles/types/open-wallets/index.d.ts.map +1 -0
  139. package/bundles/types/open-wallets/interfaces/base-service-config.interface.d.ts +30 -0
  140. package/bundles/types/open-wallets/interfaces/base-service-config.interface.d.ts.map +1 -0
  141. package/bundles/types/open-wallets/interfaces/base-wallet-meta.interface.d.ts +5 -0
  142. package/bundles/types/open-wallets/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
  143. package/bundles/types/open-wallets/interfaces/events.interface.d.ts +34 -0
  144. package/bundles/types/open-wallets/interfaces/events.interface.d.ts.map +1 -0
  145. package/bundles/types/open-wallets/interfaces/index.d.ts +8 -0
  146. package/bundles/types/open-wallets/interfaces/index.d.ts.map +1 -0
  147. package/bundles/types/open-wallets/interfaces/payment-source.interface.d.ts +5 -0
  148. package/bundles/types/open-wallets/interfaces/payment-source.interface.d.ts.map +1 -0
  149. package/bundles/types/open-wallets/services/index.d.ts +9 -0
  150. package/bundles/types/open-wallets/services/index.d.ts.map +1 -0
  151. package/bundles/types/open-wallets/types/index.d.ts +5 -0
  152. package/bundles/types/open-wallets/types/index.d.ts.map +1 -0
  153. package/bundles/types/open-wallets/types/ott-backend.type.d.ts +26 -0
  154. package/bundles/types/open-wallets/types/ott-backend.type.d.ts.map +1 -0
  155. package/bundles/types/open-wallets/types/ott-response.type.d.ts +8 -0
  156. package/bundles/types/open-wallets/types/ott-response.type.d.ts.map +1 -0
  157. package/bundles/types/open-wallets/types/wallet-type.type.d.ts +6 -0
  158. package/bundles/types/open-wallets/types/wallet-type.type.d.ts.map +1 -0
  159. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +2 -1
  160. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -1
  161. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +6 -4
  162. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
  163. package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts.map +1 -1
  164. package/bundles/types/shared-ui/components/button.d.ts +23 -0
  165. package/bundles/types/shared-ui/components/button.d.ts.map +1 -0
  166. package/bundles/types/shared-ui/components/item-info-blocks.d.ts +20 -0
  167. package/bundles/types/shared-ui/components/item-info-blocks.d.ts.map +1 -0
  168. package/bundles/types/shared-ui/components/list-item.d.ts +13 -0
  169. package/bundles/types/shared-ui/components/list-item.d.ts.map +1 -0
  170. package/bundles/types/shared-ui/components/loading-spinner.d.ts +12 -0
  171. package/bundles/types/shared-ui/components/loading-spinner.d.ts.map +1 -0
  172. package/bundles/types/shared-ui/components/message-card.d.ts +19 -0
  173. package/bundles/types/shared-ui/components/message-card.d.ts.map +1 -0
  174. package/bundles/types/shared-ui/components/svg-container.d.ts +2 -0
  175. package/bundles/types/shared-ui/components/svg-container.d.ts.map +1 -0
  176. package/bundles/types/shared-ui/components/widget-wrapper.d.ts +2 -0
  177. package/bundles/types/shared-ui/components/widget-wrapper.d.ts.map +1 -0
  178. package/bundles/types/shared-ui/models/widget-root.model.d.ts +12 -0
  179. package/bundles/types/shared-ui/models/widget-root.model.d.ts.map +1 -0
  180. package/bundles/types/shared-ui/styles/widget-root-styles.d.ts +3 -0
  181. package/bundles/types/shared-ui/styles/widget-root-styles.d.ts.map +1 -0
  182. package/bundles/types/shared-ui/utils/loading-spinner.util.d.ts +8 -0
  183. package/bundles/types/shared-ui/utils/loading-spinner.util.d.ts.map +1 -0
  184. package/bundles/types/wallet-buttons/enums.d.ts +2 -1
  185. package/bundles/types/wallet-buttons/enums.d.ts.map +1 -1
  186. package/bundles/types/wallet-buttons/index.d.ts +6 -6
  187. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +14 -8
  188. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -1
  189. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +2 -2
  190. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -1
  191. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +3 -3
  192. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
  193. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts +2 -2
  194. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -1
  195. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts +7 -7
  196. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -1
  197. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -1
  198. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts +2 -2
  199. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -1
  200. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts +3 -3
  201. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -1
  202. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +6 -6
  203. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -1
  204. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -1
  205. package/bundles/types/wallet-buttons-express/index.d.ts +3 -3
  206. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -1
  207. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +1 -0
  208. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -1
  209. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +2 -2
  210. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -1
  211. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +2 -2
  212. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -1
  213. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +2 -2
  214. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -1
  215. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +2 -2
  216. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -1
  217. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +2 -2
  218. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -1
  219. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +2 -2
  220. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -1
  221. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -1
  222. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -1
  223. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -1
  224. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +2 -2
  225. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -1
  226. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +20 -0
  227. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -1
  228. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
  229. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +5 -5
  230. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
  231. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts +3 -0
  232. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -1
  233. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -1
  234. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +1 -1
  235. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -1
  236. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +4 -4
  237. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -1
  238. package/bundles/types/widget/configuration.d.ts +2 -0
  239. package/bundles/types/widget/configuration.d.ts.map +1 -1
  240. package/bundles/types/widget/html-multi-widget.d.ts +7 -5
  241. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
  242. package/bundles/types/widget/html-widget.d.ts +1 -0
  243. package/bundles/types/widget/html-widget.d.ts.map +1 -1
  244. package/bundles/types/widget/multi-widget.d.ts +16 -0
  245. package/bundles/types/widget/multi-widget.d.ts.map +1 -1
  246. package/bundles/widget.umd.js +2845 -539
  247. package/bundles/widget.umd.js.d.ts +408 -196
  248. package/bundles/widget.umd.js.min.d.ts +408 -196
  249. package/bundles/widget.umd.min.js +1 -1
  250. package/docs/api-checkout-button.md +0 -370
  251. package/docs/api-widget.md +0 -2110
  252. package/docs/checkout-examples.md +2 -127
  253. package/docs/license.md +1 -1
  254. package/docs/wallet-buttons-examples.md +3 -134
  255. package/docs/wallet-buttons-express-examples.md +528 -0
  256. package/docs/wallet-buttons.md +11 -10
  257. package/docs/wallet-cba-buttons-examples.md +1 -1
  258. package/package.json +3 -2
  259. package/slate.md +5 -524
  260. package/bundles/types/checkout/instructions/index.d.ts +0 -3
  261. package/bundles/types/checkout/instructions/index.d.ts.map +0 -1
  262. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +0 -1
  263. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +0 -1
  264. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +0 -1
  265. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +0 -1
  266. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +0 -1
  267. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +0 -1
  268. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +0 -1
  269. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +0 -1
  270. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +0 -1
  271. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +0 -1
  272. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +0 -1
  273. package/bundles/types/checkout/layout-widgets/additionals.d.ts +0 -3
  274. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +0 -1
  275. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +0 -1
  276. package/bundles/types/checkout/layout-widgets/message.d.ts.map +0 -1
  277. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +0 -1
  278. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +0 -1
  279. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +0 -1
  280. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts.map +0 -1
  281. package/docs/api-vault-display.md +0 -94
  282. /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/index.d.ts +0 -0
  283. /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.canvas_3ds.show.d.ts +0 -0
  284. /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.fraud_service.show.d.ts +0 -0
  285. /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.payment_methods.show.d.ts +0 -0
  286. /package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/default-variables.enum.d.ts +0 -0
  287. /package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/payment-methods-template.d.ts +0 -0
  288. /package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/payment-template.d.ts +0 -0
@@ -1,7 +1,6 @@
1
1
  ## Checkout button
2
2
 
3
3
  You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#cb_CheckoutButton)
4
- PayPal meta parameters description [here](https://www.npmjs.com/package/@paydock/client-sdk#ipaypalmeta)
5
4
  Zipmoney meta parameters description [here](https://www.npmjs.com/package/@paydock/client-sdk#izipmoneymeta)
6
5
 
7
6
  This widget allows you to turn your button into a full Checkout Button.
@@ -24,96 +23,18 @@ You must create a button to turn it into checkout-button
24
23
 
25
24
  ### Initialization
26
25
  ```javascript
27
- var button = new paydock.PaypalCheckoutButton('#button', 'publicKey', 'gatewayId');
26
+ var button = new paydock.ZipmoneyCheckoutButton('#button', 'publicKey', 'gatewayId');
28
27
  ```
29
28
 
30
29
  ```javascript
31
30
  // ES2015 | TypeScript
32
31
 
33
32
 
34
- var button = new PaypalCheckoutButton('#button', 'publicKey');
33
+ var button = new ZipmoneyCheckoutButton('#button', 'publicKey');
35
34
  ```
36
35
 
37
36
  Then write only need 1 line of code in js to initialize widget
38
37
 
39
-
40
- ### Full example
41
-
42
- ```html
43
- <!DOCTYPE html>
44
- <html lang="en">
45
- <head>
46
- <meta charset="UTF-8">
47
- <title>Title</title>
48
- </head>
49
- <body>
50
- <button type="button" id="button">checkout</button>
51
- <script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
52
- <script>
53
- var button = new paydock.PaypalCheckoutButton('#button', 'publicKey');
54
- </script>
55
- </body>
56
- </html>
57
- ```
58
-
59
-
60
- ## Checkout button advanced example
61
-
62
- ### Optional methods
63
-
64
- ```javascript
65
- button.onFinishInsert('input[name="pst"]', 'payment_source_token'); // insert one-time-token to your input after finish checkout
66
-
67
- button.setMeta({
68
- brand_name: 'Paydock',
69
- reference: '15',
70
- first_name: 'receiver-name',
71
- last_name: 'receiver-last-name',
72
- phone: '9379992'}); // settings for checkout pages
73
-
74
- button.on('finish', function (data) { // Add handler of event
75
- console.log('on:finish', data);
76
- });
77
- ```
78
-
79
- This example shows how you can use a lot of other methods to settings your button
80
-
81
- ### Full Paypal example
82
-
83
- ```html
84
- <!DOCTYPE html>
85
- <html lang="en">
86
- <head>
87
- <meta charset="UTF-8">
88
- <title>Title</title>
89
- </head>
90
- <body>
91
- <form id="paymentForm">
92
- <button type="button" id="button">
93
- <img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" align="left" style="margin-right:7px;">
94
- </button>
95
- </form>
96
-
97
- <input type="text" name="pst" />
98
-
99
- <script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
100
- <script>
101
- var button = new paydock.PaypalCheckoutButton('#button', 'publicKey', 'gatewayId');
102
- button.onFinishInsert('input[name="pst"]', 'payment_source_token');
103
- button.setMeta({
104
- brand_name: 'Paydock',
105
- reference: '15',
106
- first_name: 'Joshua',
107
- last_name: 'Wood',
108
- phone: '0231049872'});
109
-
110
- button.on('finish', function (data) {
111
- console.log('on:finish', data);
112
- });
113
- </script>
114
- </body>
115
- </html>
116
- ```
117
38
  ### Full ZipMoney example
118
39
 
119
40
  ```html
@@ -200,49 +121,3 @@ This example shows how you can use a lot of other methods to settings your butto
200
121
  </body>
201
122
  </html>
202
123
  ```
203
-
204
- ### Full Aftepay example
205
-
206
- ```html
207
- <!DOCTYPE html>
208
- <html lang="en">
209
- <head>
210
- <meta charset="UTF-8">
211
- <title>Title</title>
212
- </head>
213
- <body>
214
- <button type="button" id="button">
215
- <img src="https://daepxvbfwwgd0.cloudfront.net/assets/logo_scroll-0c43312c5845a0dcd7a3373325da6402bc1d635d3415af28ed40d6c1b48e3d5c.png" align="left" style="margin-right:7px;">
216
- </button>
217
-
218
- <input type="text" name="pst" />
219
-
220
- <script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
221
- <script>
222
- var button = new paydock.AfterpayCheckoutButton('#button', 'publicKey', 'gatewayId');
223
-
224
- button.onFinishInsert('input[name="pst"]', 'payment_source_token');
225
- button.showEnhancedTrackingProtectionPopup(true);
226
- button.setMeta({
227
- amount: "100",
228
- currency: "AUD",
229
- reference: 'Vitae commodi provident assumenda',
230
- email: 'wanda.mertz@example.com',
231
- first_name: 'Wanda',
232
- last_name: 'Mertz',
233
- address_line: '61426 Osvaldo Plains',
234
- address_line2: 'Apt. 276',
235
- address_city: 'Lake Robyn',
236
- address_state: 'WY',
237
- address_postcode: '07396',
238
- address_country: 'Australia',
239
- phone: '0412345678',
240
- });
241
-
242
- button.on('finish', function (data) {
243
- console.log('on:finish', data);
244
- });
245
- </script>
246
- </body>
247
- </html>
248
- ```
package/docs/license.md CHANGED
@@ -1,2 +1,2 @@
1
1
  ## License
2
- Copyright (c) 2024 paydock
2
+ Copyright (c) 2025 paydock
@@ -2,7 +2,7 @@
2
2
  You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#wallet-buttons-simple-example)
3
3
 
4
4
  Wallet Buttons allow you to easily integrate different E-Wallets into your checkout.
5
- Currently supports ApplePay, Google Pay, Google Pay and Apple Pay via Stripe, Flypay and Flypay V2 checkout, Paypal Smart Buttons Checkout and Afterpay.
5
+ Currently supports ApplePay, Google Pay, Google Pay and Apple Pay via Stripe and Flypay V2 checkout, Paypal Smart Buttons Checkout and Afterpay.
6
6
 
7
7
  If available in your client environment, you will display a simple button that upon clicking it the user will follow the standard flow for the appropriate Wallet. If not available an event will be raised and no button will be displayed.
8
8
 
@@ -19,55 +19,6 @@ You must create a container for the Wallet Buttons. Inside this tag, the button
19
19
  Before initializing the button, you must perform a POST request to `charges/wallet` from a secure environment like your server. This call will return a token that is required to load the button and securely complete the payment. You can find the documentation to this call in the PayDock API documentation.
20
20
 
21
21
  ### Initialization
22
- The following is the minimum required initialization parameters for Apple Pay and Google Pay via Stripe:
23
- ```javascript
24
- let button = new paydock.WalletButtons(
25
- "#widget",
26
- token,
27
- {
28
- amount_label: "Total",
29
- country: "DE",
30
- }
31
- );
32
- button.load();
33
- ```
34
-
35
- ```javascript
36
- // ES2015 | TypeScript
37
- import { WalletButtons } from '@paydock/client-sdk';
38
-
39
- var button = new WalletButtons(
40
- '#widget',
41
- token,
42
- {
43
- amount_label: 'Total',
44
- country: 'DE',
45
- }
46
- );
47
- button.load();
48
- ```
49
-
50
- Flypay and Paypal wallets do not require any meta sent to the wallet, so the following is enough for initialization:
51
- ```javascript
52
- let button = new paydock.WalletButtons(
53
- "#widget",
54
- token,
55
- {}
56
- );
57
- button.load();
58
- ```
59
-
60
- ```javascript
61
- // ES2015 | TypeScript
62
- import { WalletButtons } from '@paydock/client-sdk';
63
-
64
- var button = new WalletButtons(
65
- '#widget',
66
- token,
67
- {}
68
- );
69
- button.load();
70
- ```
71
22
 
72
23
  For Afterpay wallet, the country code is required:
73
24
  ```javascript
@@ -168,14 +119,6 @@ If the customer's browser is not supported, or the customer does not have any ca
168
119
  button.onUnavailable(() => console.log("No wallet buttons available"));
169
120
  ```
170
121
 
171
- ### Forcibly closing the checkout
172
-
173
- In some situations you may want to forcibly close the checkout so that your user is back in your checkout screen, fow which you can use this method. Currently supported by Flypay wallet only.
174
-
175
- ```javascript
176
- button.close();
177
- ```
178
-
179
122
  ### Performing actions when the wallet button is clicked
180
123
 
181
124
  In some situations you may want to perform some validations or actions when the user clicks on the wallet button, for which you can use this method. Currently supported by Paypal, ApplePay and GooglePay wallets.
@@ -186,7 +129,7 @@ button.onClick(() => console.log("Perform actions on button click"));
186
129
 
187
130
  ### Performing actions when shipping info is updated
188
131
 
189
- In Flypay, Paypal, ApplePay via MPGS and GooglePay via MPGS integrations after each shipping info update the `onUpdate(data)` will be called with the selected shipping address information, plus selected shipping method when applicable for Paypal, ApplePay and GooglePay. Merchants should handle this callback, recalculate shipping costs in their server by analyzing the new data, and submit a backend to backend request to `POST charges/:id` with the new total amount and shipping amount (you can find the documentation of this call in the PayDock API documentation).
132
+ In Paypal, ApplePay via MPGS and GooglePay via MPGS integrations after each shipping info update the `onUpdate(data)` will be called with the selected shipping address information, plus selected shipping method when applicable for Paypal, ApplePay and GooglePay. Merchants should handle this callback, recalculate shipping costs in their server by analyzing the new data, and submit a backend to backend request to `POST charges/:id` with the new total amount and shipping amount (you can find the documentation of this call in the PayDock API documentation).
190
133
 
191
134
  For Paypal integration specifically, if shipping is enabled for the wallet button and different shipping methods were provided in the create wallet charge call, Merchants must ensure that the posted `shipping.amount` to `POST charges/:id` matches the selected shipping option amount (value sent in when initializing the wallet charge). In other words, when providing shipping methods the shipping amount is bound to being one of the provided shipping method amount necessarily. Bear in mind that the total charge amount must include the `shipping.amount`, since it represents the full amount to be charged to the customer.
192
135
 
@@ -253,47 +196,11 @@ of the corresponding event names.
253
196
 
254
197
  ```javascript
255
198
  button.on(EVENT.UNAVAILABLE, () => console.log("No wallet buttons available"));
256
- button.on(EVENT.UPDATE, (data) => console.log("Updating amount via a backend to backend call to POST charges/:id");
199
+ button.on(EVENT.UPDATE, (data) => console.log("Updating amount via a backend to backend call to POST charges/:id"));
257
200
  button.on(EVENT.PAYMENT_SUCCESSFUL, (data) => console.log("The payment was successful"));
258
201
  button.on(EVENT.PAYMENT_ERROR, (data) => console.log("The payment was not successful"));
259
202
  ```
260
203
 
261
- This example shows how to use these functions for **Apple and Google Pay via Stripe**:
262
- _(Required `meta` fields: `amount_label`, `country`. Optional `meta` fields: `wallets`)_
263
- ### Apple and Google Pay via Stripe Full example
264
-
265
- ```html
266
- <!DOCTYPE html>
267
- <html lang="en">
268
- <head>
269
- <meta charset="UTF-8">
270
- <title>Title</title>
271
- </head>
272
- <body>
273
- <h2>Payment using PayDock Wallet Button!</h2>
274
- <div id="widget"></div>
275
- </body>
276
- <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
277
- <script>
278
- let button = new paydock.WalletButtons(
279
- "#widget",
280
- charge_token,
281
- {
282
- amount_label: "Total",
283
- country: "DE",
284
- wallets: ["google", "apple"],
285
- }
286
- );
287
- button.setEnv('sandbox');
288
- button.onUnavailable(() => console.log("No wallet buttons available"));
289
- button.onPaymentSuccessful((data) => console.log("The payment was successful"));
290
- button.onPaymentError((data) => console.log("The payment was not successful"));
291
- button.onPaymentInReview((data) => console.log("The payment is on fraud review"));
292
- button.load();
293
- </script>
294
- </html>
295
- ```
296
-
297
204
  This example shows how to use these functions for **Paypal Smart Checkout Buttons**:
298
205
  _(Required `meta` fields: - . Optional `meta` fields: `request_shipping`, `pay_later`, `standalone`, `style`)_
299
206
  ### Paypal Smart Checkout Buttons Full example
@@ -361,44 +268,6 @@ _(Required `meta` fields: - . Optional `meta` fields: `request_shipping`, `pay_l
361
268
  </html>
362
269
  ```
363
270
 
364
- This example shows how to use these functions for **Flypay v1 Wallet**.
365
- _(Required `meta` fields: - . Optional `meta` fields: `request_shipping`, `pay_later`, `style`)_
366
- ### Flypay Full example
367
- ```html
368
- <!DOCTYPE html>
369
- <html lang="en">
370
- <head>
371
- <meta charset="UTF-8">
372
- <title>Title</title>
373
- </head>
374
- <body>
375
- <h2>Payment using PayDock Wallet Button!</h2>
376
- <div id="widget"></div>
377
- </body>
378
- <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
379
- <script>
380
- let button = new paydock.WalletButtons(
381
- "#widget",
382
- charge_token,
383
- {
384
- request_shipping: true
385
- }
386
- );
387
- button.setEnv('sandbox');
388
- button.onUnavailable(() => console.log("No wallet buttons available"));
389
- button.onUpdate((data) => {
390
- console.log("Updating amount via a backend to backend call to POST charges/:id");
391
- // call `POST charges/:id` to modify charge
392
- button.update({ success: true });
393
- });
394
- button.onPaymentSuccessful((data) => console.log("The payment was successful"));
395
- button.onPaymentError((data) => console.log("The payment was not successful"));
396
- button.onPaymentInReview((data) => console.log("The payment is on fraud review"));
397
- button.load();
398
- </script>
399
- </html>
400
- ```
401
-
402
271
  This example shows how to use these functions for **Flypay v2 Wallet**.
403
272
  _(Required `meta` fields: - . Optional `meta` fields: -)_
404
273
  ### Flypay V2 Full example