@paydock/client-sdk 0.1.0 → 0.1.2-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 (537) hide show
  1. package/README.md +9050 -52
  2. package/bundles/index.cjs +38558 -0
  3. package/bundles/index.cjs.d.ts +4777 -0
  4. package/bundles/index.mjs +38519 -0
  5. package/bundles/index.mjs.d.ts +4777 -0
  6. package/bundles/types/api/api-base.d.ts +54 -0
  7. package/bundles/types/api/api-base.d.ts.map +1 -0
  8. package/bundles/types/api/api-charge-internal.d.ts +99 -0
  9. package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
  10. package/bundles/types/api/api-charge.d.ts +36 -0
  11. package/bundles/types/api/api-charge.d.ts.map +1 -0
  12. package/bundles/types/api/api-checkout-internal.d.ts +58 -0
  13. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
  14. package/bundles/types/api/api-gateway-internal.d.ts +12 -0
  15. package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
  16. package/bundles/types/api/api-internal.d.ts +13 -0
  17. package/bundles/types/api/api-internal.d.ts.map +1 -0
  18. package/bundles/types/api/api-service-internal.d.ts +19 -0
  19. package/bundles/types/api/api-service-internal.d.ts.map +1 -0
  20. package/bundles/types/api/api.d.ts +55 -0
  21. package/bundles/types/api/api.d.ts.map +1 -0
  22. package/bundles/types/api/index.d.ts +2 -0
  23. package/bundles/types/api/index.d.ts.map +1 -0
  24. package/bundles/types/canvas-3ds/canvas-3ds.d.ts +109 -0
  25. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
  26. package/bundles/types/canvas-3ds/index.d.ts +2 -0
  27. package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
  28. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +43 -0
  29. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
  30. package/bundles/types/canvas-3ds/services/index.d.ts +2 -0
  31. package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
  32. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +22 -0
  33. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
  34. package/bundles/types/checkout/checkout.d.ts +107 -0
  35. package/bundles/types/checkout/checkout.d.ts.map +1 -0
  36. package/bundles/types/checkout/helpers/instruction-handler.d.ts +25 -0
  37. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
  38. package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
  39. package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
  40. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
  41. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
  42. package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
  43. package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
  44. package/bundles/types/checkout/helpers/resource-helper.d.ts +6 -0
  45. package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
  46. package/bundles/types/checkout/helpers/session-helper.d.ts +8 -0
  47. package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
  48. package/bundles/types/checkout/index.d.ts +2 -0
  49. package/bundles/types/checkout/index.d.ts.map +1 -0
  50. package/bundles/types/checkout/instructions/index.d.ts +3 -0
  51. package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
  52. package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
  53. package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
  54. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
  55. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  56. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
  57. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  58. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
  59. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
  60. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
  61. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
  62. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
  63. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
  64. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
  65. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
  66. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +20 -0
  67. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  68. package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts +21 -0
  69. package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts.map +1 -0
  70. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
  71. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
  72. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
  73. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
  74. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
  75. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
  76. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
  77. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
  78. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
  79. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
  80. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
  81. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
  82. package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
  83. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
  84. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
  85. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
  86. package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
  87. package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
  88. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
  89. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
  90. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +55 -0
  91. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
  92. package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
  93. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
  94. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts +36 -0
  95. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
  96. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +13 -0
  97. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
  98. package/bundles/types/checkout-button/checkout-button.d.ts +139 -0
  99. package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
  100. package/bundles/types/checkout-button/checkout-button.interface.d.ts +49 -0
  101. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
  102. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +27 -0
  103. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
  104. package/bundles/types/checkout-button/index.d.ts +85 -0
  105. package/bundles/types/checkout-button/index.d.ts.map +1 -0
  106. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts +21 -0
  107. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
  108. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts +6 -0
  109. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
  110. package/bundles/types/checkout-button/runner/base.runner.d.ts +18 -0
  111. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
  112. package/bundles/types/checkout-button/runner/contextual.runner.d.ts +39 -0
  113. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
  114. package/bundles/types/checkout-button/runner/index.d.ts +9 -0
  115. package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
  116. package/bundles/types/checkout-button/runner/popup.runner.d.ts +35 -0
  117. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
  118. package/bundles/types/checkout-button/runner/redirect.runner.d.ts +17 -0
  119. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
  120. package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
  121. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
  122. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +49 -0
  123. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
  124. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +39 -0
  125. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
  126. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +26 -0
  127. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
  128. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts +4 -0
  129. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
  130. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts +10 -0
  131. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
  132. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts +12 -0
  133. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
  134. package/bundles/types/components/ability-guard.d.ts +12 -0
  135. package/bundles/types/components/ability-guard.d.ts.map +1 -0
  136. package/bundles/types/components/background.d.ts +43 -0
  137. package/bundles/types/components/background.d.ts.map +1 -0
  138. package/bundles/types/components/container.d.ts +12 -0
  139. package/bundles/types/components/container.d.ts.map +1 -0
  140. package/bundles/types/components/dispatcher.d.ts +14 -0
  141. package/bundles/types/components/dispatcher.d.ts.map +1 -0
  142. package/bundles/types/components/element-style.d.ts +17 -0
  143. package/bundles/types/components/element-style.d.ts.map +1 -0
  144. package/bundles/types/components/flypay-iframe-event.d.ts +15 -0
  145. package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
  146. package/{lib/widget/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +2 -1
  147. package/bundles/types/components/form-interceptor.d.ts.map +1 -0
  148. package/bundles/types/components/http-core.d.ts +14 -0
  149. package/bundles/types/components/http-core.d.ts.map +1 -0
  150. package/bundles/types/components/iframe-event.d.ts +72 -0
  151. package/bundles/types/components/iframe-event.d.ts.map +1 -0
  152. package/bundles/types/components/iframe.d.ts +20 -0
  153. package/bundles/types/components/iframe.d.ts.map +1 -0
  154. package/bundles/types/components/link.d.ts +27 -0
  155. package/bundles/types/components/link.d.ts.map +1 -0
  156. package/bundles/types/components/loader.d.ts +5 -0
  157. package/bundles/types/components/loader.d.ts.map +1 -0
  158. package/bundles/types/components/param.d.ts +430 -0
  159. package/bundles/types/components/param.d.ts.map +1 -0
  160. package/bundles/types/components/popup.d.ts +30 -0
  161. package/bundles/types/components/popup.d.ts.map +1 -0
  162. package/bundles/types/components/storage-dispatcher.d.ts +31 -0
  163. package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
  164. package/bundles/types/components/trigger.d.ts +48 -0
  165. package/bundles/types/components/trigger.d.ts.map +1 -0
  166. package/bundles/types/components/vault-display-iframe-event.d.ts +5 -0
  167. package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
  168. package/bundles/types/components/wallet-background.d.ts +13 -0
  169. package/bundles/types/components/wallet-background.d.ts.map +1 -0
  170. package/bundles/types/components/wallet-trigger.d.ts +19 -0
  171. package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
  172. package/bundles/types/configs/env/environment.cba.d.ts +30 -0
  173. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
  174. package/bundles/types/configs/env/environment.interface.d.ts +12 -0
  175. package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
  176. package/bundles/types/configs/env/environment.paydock.d.ts +49 -0
  177. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
  178. package/bundles/types/configs/env/index.d.ts +3 -0
  179. package/bundles/types/configs/env/index.d.ts.map +1 -0
  180. package/bundles/types/configs/sdk.d.ts +10 -0
  181. package/bundles/types/configs/sdk.d.ts.map +1 -0
  182. package/bundles/types/constants/validators.d.ts +45 -0
  183. package/bundles/types/constants/validators.d.ts.map +1 -0
  184. package/bundles/types/external-checkout/builder.d.ts +29 -0
  185. package/bundles/types/external-checkout/builder.d.ts.map +1 -0
  186. package/bundles/types/external-checkout/checker.d.ts +14 -0
  187. package/bundles/types/external-checkout/checker.d.ts.map +1 -0
  188. package/bundles/types/external-checkout/index.d.ts +3 -0
  189. package/bundles/types/external-checkout/index.d.ts.map +1 -0
  190. package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts +9 -0
  191. package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts.map +1 -0
  192. package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts +42 -0
  193. package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts.map +1 -0
  194. package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts +163 -0
  195. package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts.map +1 -0
  196. package/bundles/types/fraud-prevention/index.d.ts +3 -0
  197. package/bundles/types/fraud-prevention/index.d.ts.map +1 -0
  198. package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts +79 -0
  199. package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts.map +1 -0
  200. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts +2 -0
  201. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts.map +1 -0
  202. package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts +20 -0
  203. package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts.map +1 -0
  204. package/bundles/types/helper/access-token.d.ts +26 -0
  205. package/bundles/types/helper/access-token.d.ts.map +1 -0
  206. package/bundles/types/helper/browser.d.ts +17 -0
  207. package/bundles/types/helper/browser.d.ts.map +1 -0
  208. package/bundles/types/helper/deep-clone.d.ts +13 -0
  209. package/bundles/types/helper/deep-clone.d.ts.map +1 -0
  210. package/bundles/types/helper/element-id.d.ts +5 -0
  211. package/bundles/types/helper/element-id.d.ts.map +1 -0
  212. package/bundles/types/helper/event-emitter.d.ts +7 -0
  213. package/bundles/types/helper/event-emitter.d.ts.map +1 -0
  214. package/bundles/types/helper/event-error.d.ts +55 -0
  215. package/bundles/types/helper/event-error.d.ts.map +1 -0
  216. package/bundles/types/helper/event.d.ts +10 -0
  217. package/bundles/types/helper/event.d.ts.map +1 -0
  218. package/bundles/types/helper/ms.d.ts +6 -0
  219. package/bundles/types/helper/ms.d.ts.map +1 -0
  220. package/{lib/widget → bundles/types}/helper/object.d.ts +1 -0
  221. package/bundles/types/helper/object.d.ts.map +1 -0
  222. package/bundles/types/helper/process-event-error.d.ts +9 -0
  223. package/bundles/types/helper/process-event-error.d.ts.map +1 -0
  224. package/bundles/types/helper/spiner.util.d.ts +6 -0
  225. package/bundles/types/helper/spiner.util.d.ts.map +1 -0
  226. package/bundles/types/helper/url.d.ts +5 -0
  227. package/bundles/types/helper/url.d.ts.map +1 -0
  228. package/bundles/types/helper/uuid.d.ts +6 -0
  229. package/bundles/types/helper/uuid.d.ts.map +1 -0
  230. package/bundles/types/index-cba.d.ts +52 -0
  231. package/bundles/types/index-cba.d.ts.map +1 -0
  232. package/bundles/types/index.d.ts +52 -0
  233. package/bundles/types/index.d.ts.map +1 -0
  234. package/bundles/types/payment-source/builder.d.ts +23 -0
  235. package/bundles/types/payment-source/builder.d.ts.map +1 -0
  236. package/bundles/types/payment-source/index.d.ts +2 -0
  237. package/bundles/types/payment-source/index.d.ts.map +1 -0
  238. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts +181 -0
  239. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
  240. package/bundles/types/payment-source-widget/index.d.ts +35 -0
  241. package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
  242. package/bundles/types/payment-source-widget/interfaces.d.ts +12 -0
  243. package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
  244. package/bundles/types/payment-source-widget/payment-source-widget.d.ts +93 -0
  245. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
  246. package/bundles/types/paypal-data-collector/index.d.ts +23 -0
  247. package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
  248. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +58 -0
  249. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
  250. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
  251. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
  252. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +17 -0
  253. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
  254. package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
  255. package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
  256. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +85 -0
  257. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
  258. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +83 -0
  259. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
  260. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +35 -0
  261. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
  262. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
  263. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
  264. package/bundles/types/secure-remote-commerce/index.d.ts +105 -0
  265. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
  266. package/bundles/types/secure-remote-commerce/interfaces.d.ts +156 -0
  267. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
  268. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
  269. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
  270. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +25 -0
  271. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
  272. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts +11 -0
  273. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
  274. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +86 -0
  275. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
  276. package/bundles/types/shared/device/device-info.service.d.ts +13 -0
  277. package/bundles/types/shared/device/device-info.service.d.ts.map +1 -0
  278. package/bundles/types/shared/http/authorization-strategy.d.ts +41 -0
  279. package/bundles/types/shared/http/authorization-strategy.d.ts.map +1 -0
  280. package/bundles/types/shared/http/http-fetcher.d.ts +29 -0
  281. package/bundles/types/shared/http/http-fetcher.d.ts.map +1 -0
  282. package/bundles/types/shared/http/http-fetcher.factory.d.ts +17 -0
  283. package/bundles/types/shared/http/http-fetcher.factory.d.ts.map +1 -0
  284. package/bundles/types/shared/http/http-request.d.ts +14 -0
  285. package/bundles/types/shared/http/http-request.d.ts.map +1 -0
  286. package/bundles/types/shared/http/http-response.dto.d.ts +19 -0
  287. package/bundles/types/shared/http/http-response.dto.d.ts.map +1 -0
  288. package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts +12 -0
  289. package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts.map +1 -0
  290. package/bundles/types/shared/services/configuration-validation/types.d.ts +73 -0
  291. package/bundles/types/shared/services/configuration-validation/types.d.ts.map +1 -0
  292. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
  293. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
  294. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
  295. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
  296. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
  297. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
  298. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
  299. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
  300. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
  301. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
  302. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
  303. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
  304. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
  305. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
  306. package/bundles/types/shared/shared.constants.d.ts +6 -0
  307. package/bundles/types/shared/shared.constants.d.ts.map +1 -0
  308. package/bundles/types/vault-display-widget/index.d.ts +14 -0
  309. package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
  310. package/bundles/types/vault-display-widget/vault-display-widget.d.ts +69 -0
  311. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
  312. package/bundles/types/wallet-buttons/enums.d.ts +12 -0
  313. package/bundles/types/wallet-buttons/enums.d.ts.map +1 -0
  314. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +6 -0
  315. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
  316. package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
  317. package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
  318. package/bundles/types/wallet-buttons/index.d.ts +138 -0
  319. package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
  320. package/bundles/types/wallet-buttons/interfaces.d.ts +128 -0
  321. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
  322. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +321 -0
  323. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
  324. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
  325. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
  326. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +24 -0
  327. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
  328. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +49 -0
  329. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
  330. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts +28 -0
  331. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
  332. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts +26 -0
  333. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
  334. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts +35 -0
  335. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
  336. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts +8 -0
  337. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
  338. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts +26 -0
  339. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
  340. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts +19 -0
  341. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
  342. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +131 -0
  343. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
  344. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +252 -0
  345. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
  346. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +12 -0
  347. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
  348. package/bundles/types/wallet-buttons-express/index.d.ts +245 -0
  349. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
  350. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
  351. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
  352. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
  353. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
  354. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
  355. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
  356. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +44 -0
  357. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
  358. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
  359. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
  360. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
  361. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
  362. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
  363. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
  364. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
  365. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
  366. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
  367. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
  368. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
  369. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
  370. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts +21 -0
  371. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -0
  372. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts +9 -0
  373. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -0
  374. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts +13 -0
  375. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -0
  376. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts +9 -0
  377. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts.map +1 -0
  378. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
  379. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
  380. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
  381. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
  382. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +58 -0
  383. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
  384. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +2 -0
  385. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
  386. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts +5 -0
  387. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts.map +1 -0
  388. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
  389. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
  390. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +22 -0
  391. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
  392. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
  393. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
  394. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
  395. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
  396. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts +5 -0
  397. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts.map +1 -0
  398. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts +21 -0
  399. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -0
  400. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts +21 -0
  401. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -0
  402. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
  403. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
  404. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts +164 -0
  405. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts.map +1 -0
  406. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +32 -0
  407. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
  408. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +53 -0
  409. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
  410. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +6 -0
  411. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -0
  412. package/bundles/types/widget/configuration.d.ts +165 -0
  413. package/bundles/types/widget/configuration.d.ts.map +1 -0
  414. package/bundles/types/widget/html-multi-widget.d.ts +337 -0
  415. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
  416. package/bundles/types/widget/html-widget.d.ts +107 -0
  417. package/bundles/types/widget/html-widget.d.ts.map +1 -0
  418. package/bundles/types/widget/index.d.ts +132 -0
  419. package/bundles/types/widget/index.d.ts.map +1 -0
  420. package/bundles/types/widget/meta.d.ts +8 -0
  421. package/bundles/types/widget/meta.d.ts.map +1 -0
  422. package/bundles/types/widget/multi-widget.d.ts +241 -0
  423. package/bundles/types/widget/multi-widget.d.ts.map +1 -0
  424. package/bundles/types/widget/style.d.ts +177 -0
  425. package/bundles/types/widget/style.d.ts.map +1 -0
  426. package/bundles/widget.umd.js +38429 -767
  427. package/bundles/widget.umd.js.d.ts +4777 -0
  428. package/bundles/widget.umd.js.min.d.ts +4777 -0
  429. package/bundles/widget.umd.min.js +1 -0
  430. package/docs/api-canvas3ds.md +158 -0
  431. package/docs/api-checkout-button.md +912 -0
  432. package/docs/api-examples.md +65 -0
  433. package/docs/api-ps-widget.md +585 -0
  434. package/docs/api-vault-display.md +94 -0
  435. package/docs/api-widget.md +2542 -0
  436. package/docs/api-wrapper.md +45 -0
  437. package/docs/canvas3ds-examples.md +242 -0
  438. package/docs/cba-header.md +13 -0
  439. package/docs/cba-license.md +2 -0
  440. package/docs/checkout-examples.md +248 -0
  441. package/docs/click-to-pay-examples.md +231 -0
  442. package/docs/click-to-pay.md +337 -0
  443. package/docs/fraud-prevention-examples.md +154 -0
  444. package/docs/fraud-prevention.md +0 -0
  445. package/docs/header.md +15 -0
  446. package/docs/html/layout.html +79 -0
  447. package/docs/html/marked.js +23 -0
  448. package/docs/html/style.css +365 -0
  449. package/docs/install/npm.content.md +16 -0
  450. package/docs/install/npm.example.md +24 -0
  451. package/docs/install/umd.content.md +20 -0
  452. package/docs/install/umd.example.md +6 -0
  453. package/docs/install.md +43 -0
  454. package/docs/install.readme.t.md +17 -0
  455. package/docs/install.slate.t.md +17 -0
  456. package/docs/license.md +2 -0
  457. package/docs/partials/header.hbs +3 -0
  458. package/docs/paypal-data-collector-examples.md +59 -0
  459. package/docs/paypal-data-collector.md +149 -0
  460. package/docs/paypal-save-payment-source-examples.md +63 -0
  461. package/docs/paypal-save-payment-source.md +256 -0
  462. package/docs/ps-examples.md +129 -0
  463. package/docs/vault-display-example.md +132 -0
  464. package/docs/wallet-buttons-examples.md +638 -0
  465. package/docs/wallet-buttons-express-examples.md +201 -0
  466. package/docs/wallet-buttons-express.md +1076 -0
  467. package/docs/wallet-buttons.md +625 -0
  468. package/docs/wallet-cba-buttons-examples.md +388 -0
  469. package/docs/widget-examples.md +271 -0
  470. package/examples/html-widget/actions.html +47 -0
  471. package/examples/html-widget/events.html +2 -2
  472. package/examples/html-widget/form.html +2 -3
  473. package/examples/html-widget/html-styles.html +29 -0
  474. package/examples/html-widget/insert-input.html +2 -2
  475. package/examples/html-widget/optional-settings.html +30 -0
  476. package/examples/html-widget/simple.html +3 -3
  477. package/examples/html-widget/styles.html +3 -3
  478. package/examples/multi-html-widget/extend.html +7 -2
  479. package/examples/multi-html-widget/simple.html +6 -8
  480. package/package.json +225 -55
  481. package/slate.md +2218 -0
  482. package/.idea/client-sdk-3.iml +0 -12
  483. package/.idea/jsLibraryMappings.xml +0 -7
  484. package/.idea/misc.xml +0 -16
  485. package/.idea/modules.xml +0 -8
  486. package/.idea/vcs.xml +0 -6
  487. package/.idea/workspace.xml +0 -639
  488. package/.npmignore +0 -14
  489. package/lib/index.d.ts +0 -2
  490. package/lib/index.js +0 -3
  491. package/lib/index.js.map +0 -1
  492. package/lib/widget/components/container.d.ts +0 -9
  493. package/lib/widget/components/container.js +0 -18
  494. package/lib/widget/components/container.js.map +0 -1
  495. package/lib/widget/components/env.d.ts +0 -19
  496. package/lib/widget/components/env.js +0 -33
  497. package/lib/widget/components/env.js.map +0 -1
  498. package/lib/widget/components/event.d.ts +0 -26
  499. package/lib/widget/components/event.js +0 -49
  500. package/lib/widget/components/event.js.map +0 -1
  501. package/lib/widget/components/form-Interceptor.js +0 -38
  502. package/lib/widget/components/form-Interceptor.js.map +0 -1
  503. package/lib/widget/components/iframe.d.ts +0 -11
  504. package/lib/widget/components/iframe.js +0 -31
  505. package/lib/widget/components/iframe.js.map +0 -1
  506. package/lib/widget/components/link.d.ts +0 -13
  507. package/lib/widget/components/link.js +0 -37
  508. package/lib/widget/components/link.js.map +0 -1
  509. package/lib/widget/components/param.d.ts +0 -39
  510. package/lib/widget/components/param.js +0 -21
  511. package/lib/widget/components/param.js.map +0 -1
  512. package/lib/widget/components/trigger.d.ts +0 -19
  513. package/lib/widget/components/trigger.js +0 -22
  514. package/lib/widget/components/trigger.js.map +0 -1
  515. package/lib/widget/configuration.d.ts +0 -59
  516. package/lib/widget/configuration.js +0 -134
  517. package/lib/widget/configuration.js.map +0 -1
  518. package/lib/widget/helper/event.d.ts +0 -8
  519. package/lib/widget/helper/event.js +0 -15
  520. package/lib/widget/helper/event.js.map +0 -1
  521. package/lib/widget/helper/object.js +0 -6
  522. package/lib/widget/helper/object.js.map +0 -1
  523. package/lib/widget/helper/url.d.ts +0 -3
  524. package/lib/widget/helper/url.js +0 -8
  525. package/lib/widget/helper/url.js.map +0 -1
  526. package/lib/widget/html-multi-widget.d.ts +0 -56
  527. package/lib/widget/html-multi-widget.js +0 -89
  528. package/lib/widget/html-multi-widget.js.map +0 -1
  529. package/lib/widget/html-widget.d.ts +0 -37
  530. package/lib/widget/html-widget.js +0 -50
  531. package/lib/widget/html-widget.js.map +0 -1
  532. package/lib/widget/index.d.ts +0 -5
  533. package/lib/widget/index.js +0 -6
  534. package/lib/widget/index.js.map +0 -1
  535. package/lib/widget/multi-widget.d.ts +0 -22
  536. package/lib/widget/multi-widget.js +0 -83
  537. package/lib/widget/multi-widget.js.map +0 -1
@@ -0,0 +1,1076 @@
1
+ ## Classes
2
+
3
+ <dl>
4
+ <dt><a href="#ApplePayWalletButtonExpress">ApplePayWalletButtonExpress</a> ⇐ <code>BaseWalletButton</code></dt>
5
+ <dd><p>Class ApplePayWalletButtonExpress to work with Apple Pay Wallet.</p>
6
+ </dd>
7
+ <dt><a href="#PaypalWalletButtonExpress">PaypalWalletButtonExpress</a> ⇐ <code>BaseWalletButton</code></dt>
8
+ <dd><p>Class PaypalWalletButtonExpress to work with Paypal Wallet.</p>
9
+ </dd>
10
+ </dl>
11
+
12
+ ## Constants
13
+
14
+ <dl>
15
+ <dt><a href="#EVENT">EVENT</a> : <code>object</code></dt>
16
+ <dd><p>List of available event&#39;s name in the wallet button lifecycle</p>
17
+ </dd>
18
+ <dt><a href="#ContactFieldType">ContactFieldType</a> : <code>object</code></dt>
19
+ <dd><p>List of available contact fields for ContactFieldType</p>
20
+ </dd>
21
+ </dl>
22
+
23
+ ## Typedefs
24
+
25
+ <dl>
26
+ <dt><a href="#OnClickCallback">OnClickCallback</a> ⇒ <code>Promise.&lt;string&gt;</code></dt>
27
+ <dd><p>Callback for onClick method.</p>
28
+ </dd>
29
+ <dt><a href="#OnPaymentSuccessfulCallback">OnPaymentSuccessfulCallback</a> : <code>function</code></dt>
30
+ <dd><p>Callback for onPaymentSuccessful method.</p>
31
+ </dd>
32
+ <dt><a href="#OnPaymentInReviewCallback">OnPaymentInReviewCallback</a> : <code>function</code></dt>
33
+ <dd><p>Callback for onPaymentInReview method.</p>
34
+ </dd>
35
+ <dt><a href="#OnPaymentErrorCallback">OnPaymentErrorCallback</a> : <code>function</code></dt>
36
+ <dd><p>Callback for onPaymentError method.</p>
37
+ </dd>
38
+ <dt><a href="#OnCheckoutCloseCallback">OnCheckoutCloseCallback</a> : <code>function</code></dt>
39
+ <dd><p>Callback for onCheckoutClose method.</p>
40
+ </dd>
41
+ <dt><a href="#OnShippingAddressChangeCallback">OnShippingAddressChangeCallback</a> ⇒ <code><a href="#OnShippingAddressChangeEventResponse">Promise.&lt;OnShippingAddressChangeEventResponse&gt;</a></code></dt>
42
+ <dd><p>Callback for onShippingAddressChange method.</p>
43
+ </dd>
44
+ <dt><a href="#OnShippingOptionsChangeCallback">OnShippingOptionsChangeCallback</a> ⇒ <code><a href="#OnShippingOptionChangeEventResponse">Promise.&lt;OnShippingOptionChangeEventResponse&gt;</a></code></dt>
45
+ <dd><p>Callback for onShippingOptionsChange method.</p>
46
+ </dd>
47
+ <dt><a href="#OnUnavailableCallback">OnUnavailableCallback</a> : <code>function</code></dt>
48
+ <dd><p>Callback for onUnavailable method.</p>
49
+ </dd>
50
+ <dt><a href="#OnErrorCallback">OnErrorCallback</a> : <code>function</code></dt>
51
+ <dd><p>Callback for onError method.</p>
52
+ </dd>
53
+ </dl>
54
+
55
+ ## Interfaces
56
+
57
+ <dl>
58
+ <dt><a href="#ApplePayWalletMeta">ApplePayWalletMeta</a> : <code>object</code></dt>
59
+ <dd><p>Interface for configuration metadata specific to ApplePay integration in the wallet checkout and payment process.
60
+ For further information about ApplePay Capabilities refer to <a href="https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/4440085-applepaycapabilities">the documentation</a>.
61
+ Apple will determinate if the device has an ApplePay wallet available and at least one active payment.
62
+ If the determinated value is credentials_status_unknown, the payment possbily should might be not able to be finished on the web, and the buyer must complete it on a compatible device, like Iphone or Ipad.</p>
63
+ </dd>
64
+ <dt><a href="#PaypalWalletMeta">PaypalWalletMeta</a> : <code>object</code></dt>
65
+ <dd><p>Interface for configuration metadata specific to PayPal integration in the wallet checkout and payment process.
66
+ For in-depth information, please refer to the <a href="https://developer.paypal.com/docs/multiparty/checkout/standard/customize/buttons-style-guide/">Paypal documentation</a>.</p>
67
+ </dd>
68
+ <dt><a href="#OnClickEventData">OnClickEventData</a> : <code>object</code></dt>
69
+ <dd><p>Interface for OnClickEventData</p>
70
+ </dd>
71
+ <dt><a href="#OnCloseEventData">OnCloseEventData</a> : <code>object</code></dt>
72
+ <dd><p>Interface for OnCloseEventData</p>
73
+ </dd>
74
+ <dt><a href="#OnPaymentSuccessfulEventData">OnPaymentSuccessfulEventData</a> : <code>object</code></dt>
75
+ <dd><p>Interface for OnPaymentSuccessfulEventData. For final secure results, fetch backend to backend data.</p>
76
+ </dd>
77
+ <dt><a href="#OnPaymentInReviewEventData">OnPaymentInReviewEventData</a> : <code>object</code></dt>
78
+ <dd><p>Interface for OnPaymentInReviewEventData. For final secure results, fetch backend to backend data.</p>
79
+ </dd>
80
+ <dt><a href="#OnPaymentErrorEventData">OnPaymentErrorEventData</a> : <code>object</code></dt>
81
+ <dd><p>Interface for OnPaymentErrorEventData. For final secure results, fetch backend to backend data.</p>
82
+ </dd>
83
+ <dt><a href="#OnUnavailableEventData">OnUnavailableEventData</a> : <code>object</code></dt>
84
+ <dd><p>Interface for OnUnavailableEventData</p>
85
+ </dd>
86
+ <dt><a href="#OnErrorEventData">OnErrorEventData</a> : <code>object</code></dt>
87
+ <dd><p>Interface for OnErrorEventData</p>
88
+ </dd>
89
+ <dt><a href="#OnShippingAddressChangeEventData">OnShippingAddressChangeEventData</a> : <code>object</code></dt>
90
+ <dd><p>Interface for OnShippingAddressChangeEventData.</p>
91
+ </dd>
92
+ <dt><a href="#OnShippingAddressChangeEventResponse">OnShippingAddressChangeEventResponse</a> : <code>object</code></dt>
93
+ <dd><p>Interface for OnShippingAddressChangeEventResponse.</p>
94
+ </dd>
95
+ <dt><a href="#IApplePayShippingOption">IApplePayShippingOption</a> : <code>object</code></dt>
96
+ <dd><p>Interface for IApplePayShippingOption.
97
+ Used for adding new shippings options when customer updates the shipping address.</p>
98
+ </dd>
99
+ <dt><a href="#OnShippingOptionChangeEventData">OnShippingOptionChangeEventData</a> : <code>object</code></dt>
100
+ <dd><p>Interface for OnShippingOptionChangeEventData.</p>
101
+ </dd>
102
+ <dt><a href="#OnShippingOptionChangeEventResponse">OnShippingOptionChangeEventResponse</a> : <code>object</code></dt>
103
+ <dd><p>Interface for OnShippingOptionChangeEventResponse.</p>
104
+ </dd>
105
+ <dt><a href="#IApplePayError">IApplePayError</a> : <code>object</code></dt>
106
+ <dd><p>Interface for IApplePayError.</p>
107
+ </dd>
108
+ </dl>
109
+
110
+ <a name="ApplePayWalletMeta" id="ApplePayWalletMeta" href="#ApplePayWalletMeta">&nbsp;</a>
111
+
112
+ ## ApplePayWalletMeta : <code>object</code>
113
+ Interface for configuration metadata specific to ApplePay integration in the wallet checkout and payment process.
114
+ For further information about ApplePay Capabilities refer to [the documentation](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/4440085-applepaycapabilities).
115
+ Apple will determinate if the device has an ApplePay wallet available and at least one active payment.
116
+ If the determinated value is credentials_status_unknown, the payment possbily should might be not able to be finished on the web, and the buyer must complete it on a compatible device, like Iphone or Ipad.
117
+
118
+ **Kind**: global interface
119
+
120
+ | Param | Type | Description |
121
+ | --- | --- | --- |
122
+ | amount_label | <code>string</code> | Label shown next to the total amount to be paid, used in ApplePay popups. |
123
+ | country | <code>string</code> | Country of the user in 2 letter ISO code format, required for ApplePay. |
124
+ | currency | <code>string</code> | Currency of the transaction. ISO 4217 currency code format. |
125
+ | amount | <code>number</code> | Total transaction amount number. **Note:** this amount will be presented in the payment sheet regardless of amount sent in the Wallet Initialization Backend to Backend call. Use `setMeta` method to keep it up to date. |
126
+ | [merchant_capabilities] | <code>Array.&lt;(&#x27;supports3DS&#x27;\|&#x27;supportsEMV&#x27;\|&#x27;supportsCredit&#x27;\|&#x27;supportsDebit&#x27;)&gt;</code> | Array of capabilities that the merchant supports, influencing the transaction processing features available. |
127
+ | [supported_networks] | <code>Array.&lt;(&#x27;visa&#x27;\|&#x27;masterCard&#x27;\|&#x27;amex&#x27;\|&#x27;chinaUnionPay&#x27;\|&#x27;discover&#x27;\|&#x27;interac&#x27;\|&#x27;jcb&#x27;\|&#x27;privateLabel&#x27;)&gt;</code> | List of payment networks supported by the merchant for ApplePay transactions. |
128
+ | [required_billing_contact_fields] | <code>Array.&lt;(&#x27;email&#x27;\|&#x27;name&#x27;\|&#x27;phone&#x27;\|&#x27;postalAddress&#x27;)&gt;</code> | Contact fields required from the user for billing purposes, improving transaction verification and fraud prevention. Phone and email are currently not returned by Apple. |
129
+ | [required_shipping_contact_fields] | <code>Array.&lt;(&#x27;email&#x27;\|&#x27;phone&#x27;)&gt;</code> | Shipping contact fields that are mandatory to complete the transaction. Use email and phone to collect from customer wallet in the abscense of billing one. Required for onShippingAddressChange callback. |
130
+ | [supported_countries] | <code>Array.&lt;string&gt;</code> | List of countries where ApplePay is supported by the merchant, restricting usage to specified regions. |
131
+ | [style] | <code>object</code> | Styling configuration for ApplePay buttons displayed during checkout. |
132
+ | [style.button_type] | <code>ApplePayButtonType</code> | Enum type to select the type of ApplePay button (e.g., 'buy', 'donate', etc.), providing user interface customization. |
133
+ | [style.button_style] | <code>ApplePayButtonStyle</code> | Style applied to the ApplePay button, which can include color and form factor adjustments according to the brand's visual guidelines. |
134
+ | [shipping_editing_mode] | <code>&#x27;available&#x27;</code> \| <code>&#x27;store\_pickup&#x27;</code> | ApplePay - available for allowing editing shipping, store_pickup for not allowing editing shipping. |
135
+ | [shipping_data] | <code>object</code> | ApplePay - Preloaded data used for populate shipping address information |
136
+ | [shipping_data.email_address] | <code>string</code> | ApplePay - The shipping address email |
137
+ | [apple_pay_capabilities] | <code>Array.&lt;(&#x27;credentials\_available&#x27;\|&#x27;credentials\_status\_unknown&#x27;\|&#x27;credentials\_unavailable&#x27;)&gt;</code> | Device capabilities needed for wallet button to be available. |
138
+
139
+ <a name="PaypalWalletMeta" id="PaypalWalletMeta" href="#PaypalWalletMeta">&nbsp;</a>
140
+
141
+ ## PaypalWalletMeta : <code>object</code>
142
+ Interface for configuration metadata specific to PayPal integration in the wallet checkout and payment process.
143
+ For in-depth information, please refer to the [Paypal documentation](https://developer.paypal.com/docs/multiparty/checkout/standard/customize/buttons-style-guide/).
144
+
145
+ **Kind**: global interface
146
+
147
+ | Param | Type | Description |
148
+ | --- | --- | --- |
149
+ | amount | <code>number</code> | Total amount of the transaction. Represents the money to be charged. |
150
+ | currency | <code>string</code> | Currency of the transaction in ISO 4217 currency code format. |
151
+ | [pay_later] | <code>boolean</code> | Flag to enable Pay Later feature of PayPal, allowing Pay in 4. Default false. |
152
+ | [hide_message] | <code>boolean</code> | Used to hide Pay Later message in PayPal Smart Checkout WalletButton integration. Optional for [PayPal]. N/A for other wallets. |
153
+ | [standalone] | <code>boolean</code> | Flag to specify if the PayPal standalone button should be used. Default false. |
154
+ | [capture] | <code>boolean</code> | Flag to specify if the transaction amount should be captured immediately or authorized for later capture. Default false. |
155
+ | [style] | <code>object</code> | Styling configurations for the PayPal widget. |
156
+ | [style.layout] | <code>&#x27;vertical&#x27;</code> \| <code>&#x27;horizontal&#x27;</code> | Layout orientation of the PayPal button. |
157
+ | [style.color] | <code>&#x27;gold&#x27;</code> \| <code>&#x27;blue&#x27;</code> \| <code>&#x27;silver&#x27;</code> \| <code>&#x27;black&#x27;</code> \| <code>&#x27;white&#x27;</code> | Color theme of the PayPal button. |
158
+ | [style.shape] | <code>&#x27;rect&#x27;</code> \| <code>&#x27;pill&#x27;</code> \| <code>&#x27;sharp&#x27;</code> | Shape of the PayPal button. |
159
+ | [style.borderRadius] | <code>number</code> | Border radius for the button, allowing customization of corner roundness. |
160
+ | [style.height] | <code>number</code> | Height of the PayPal button, allowing for size customization. |
161
+ | [style.disableMaxWidth] | <code>boolean</code> | Flag to disable the maximum width constraint of the button. |
162
+ | [style.label] | <code>&#x27;paypal&#x27;</code> \| <code>&#x27;checkout&#x27;</code> \| <code>&#x27;buynow&#x27;</code> \| <code>&#x27;pay&#x27;</code> \| <code>&#x27;installment&#x27;</code> | Label text displayed on the PayPal button. |
163
+ | [style.tagline] | <code>boolean</code> | Flag to include or exclude a tagline beneath the button text. |
164
+ | [style.messages] | <code>object</code> | Messaging options related to the PayPal button to enhance user interaction. |
165
+ | [style.messages.layout] | <code>&#x27;text&#x27;</code> \| <code>&#x27;flex&#x27;</code> | Layout type for the messages displayed near the PayPal button. |
166
+ | [style.messages.logo] | <code>object</code> | Configuration for the logo to be displayed with the PayPal button. |
167
+ | [style.messages.logo.type] | <code>&#x27;primary&#x27;</code> \| <code>&#x27;alternative&#x27;</code> \| <code>&#x27;inline&#x27;</code> \| <code>&#x27;none&#x27;</code> | Type of logo to display. |
168
+ | [style.messages.logo.position] | <code>&#x27;left&#x27;</code> \| <code>&#x27;right&#x27;</code> \| <code>&#x27;top&#x27;</code> | Position of the logo relative to the button or message. |
169
+ | [style.messages.text] | <code>object</code> | Text styling within the message component. |
170
+ | [style.messages.text.color] | <code>&#x27;black&#x27;</code> \| <code>&#x27;white&#x27;</code> \| <code>&#x27;monochrome&#x27;</code> \| <code>&#x27;grayscale&#x27;</code> | Color of the message text. |
171
+ | [style.messages.text.size] | <code>10</code> \| <code>11</code> \| <code>12</code> \| <code>13</code> \| <code>14</code> \| <code>15</code> \| <code>16</code> | Font size of the message text. |
172
+ | [style.messages.text.align] | <code>&#x27;left&#x27;</code> \| <code>&#x27;center&#x27;</code> \| <code>&#x27;right&#x27;</code> | Text alignment within the message area. |
173
+ | [style.messages.color] | <code>&#x27;blue&#x27;</code> \| <code>&#x27;black&#x27;</code> \| <code>&#x27;white&#x27;</code> \| <code>&#x27;white-no-border&#x27;</code> \| <code>&#x27;gray&#x27;</code> \| <code>&#x27;monochrome&#x27;</code> \| <code>&#x27;grayscale&#x27;</code> | Background color of the message area. |
174
+ | [style.messages.ratio] | <code>&#x27;1x1&#x27;</code> \| <code>&#x27;1x4&#x27;</code> \| <code>&#x27;8x1&#x27;</code> \| <code>&#x27;20x1&#x27;</code> | Aspect ratio of the message area, affecting its layout and display. |
175
+
176
+ <a name="OnClickEventData" id="OnClickEventData" href="#OnClickEventData">&nbsp;</a>
177
+
178
+ ## OnClickEventData : <code>object</code>
179
+ Interface for OnClickEventData
180
+
181
+ **Kind**: global interface
182
+
183
+ | Param | Type | Description |
184
+ | --- | --- | --- |
185
+ | event | <code>string</code> | Event Name is 'onClick' |
186
+
187
+ <a name="OnCloseEventData" id="OnCloseEventData" href="#OnCloseEventData">&nbsp;</a>
188
+
189
+ ## OnCloseEventData : <code>object</code>
190
+ Interface for OnCloseEventData
191
+
192
+ **Kind**: global interface
193
+
194
+ | Param | Type | Description |
195
+ | --- | --- | --- |
196
+ | event | <code>string</code> | Event Name is 'onCheckoutClose' |
197
+ | [chargeId] | <code>string</code> | chargeId in case it's already set after onClick event |
198
+
199
+ <a name="OnPaymentSuccessfulEventData" id="OnPaymentSuccessfulEventData" href="#OnPaymentSuccessfulEventData">&nbsp;</a>
200
+
201
+ ## OnPaymentSuccessfulEventData : <code>object</code>
202
+ Interface for OnPaymentSuccessfulEventData. For final secure results, fetch backend to backend data.
203
+
204
+ **Kind**: global interface
205
+
206
+ | Param | Type | Description |
207
+ | --- | --- | --- |
208
+ | event | <code>string</code> | Event Name is 'paymentSuccessful' |
209
+ | chargeId | <code>string</code> | chargeId set after onClick event |
210
+ | data.id | <code>string</code> | Charge ID returned by server |
211
+ | data.amount | <code>string</code> | Charge amount returned by server |
212
+ | data.currency | <code>string</code> | Charge currency returned by server |
213
+ | data.status | <code>string</code> | Charge status returned by server |
214
+
215
+ <a name="OnPaymentInReviewEventData" id="OnPaymentInReviewEventData" href="#OnPaymentInReviewEventData">&nbsp;</a>
216
+
217
+ ## OnPaymentInReviewEventData : <code>object</code>
218
+ Interface for OnPaymentInReviewEventData. For final secure results, fetch backend to backend data.
219
+
220
+ **Kind**: global interface
221
+
222
+ | Param | Type | Description |
223
+ | --- | --- | --- |
224
+ | event | <code>string</code> | Event Name is 'paymentInReview' |
225
+ | chargeId | <code>string</code> | chargeId set after onClick event |
226
+ | data.id | <code>string</code> | Charge ID returned by server |
227
+ | data.amount | <code>string</code> | Charge amount returned by server |
228
+ | data.currency | <code>string</code> | Charge currency returned by server |
229
+ | data.status | <code>string</code> | Charge status returned by server |
230
+
231
+ <a name="OnPaymentErrorEventData" id="OnPaymentErrorEventData" href="#OnPaymentErrorEventData">&nbsp;</a>
232
+
233
+ ## OnPaymentErrorEventData : <code>object</code>
234
+ Interface for OnPaymentErrorEventData. For final secure results, fetch backend to backend data.
235
+
236
+ **Kind**: global interface
237
+
238
+ | Param | Type | Description |
239
+ | --- | --- | --- |
240
+ | event | <code>string</code> | Event Name is 'paymentError' |
241
+ | chargeId | <code>string</code> | chargeId set after onClick event |
242
+ | [data.message] | <code>string</code> | Error message |
243
+ | [data.code] | <code>string</code> | Error code |
244
+
245
+ <a name="OnUnavailableEventData" id="OnUnavailableEventData" href="#OnUnavailableEventData">&nbsp;</a>
246
+
247
+ ## OnUnavailableEventData : <code>object</code>
248
+ Interface for OnUnavailableEventData
249
+
250
+ **Kind**: global interface
251
+
252
+ | Param | Type | Description |
253
+ | --- | --- | --- |
254
+ | event | <code>string</code> | Event Name is 'unavailable' |
255
+
256
+ <a name="OnErrorEventData" id="OnErrorEventData" href="#OnErrorEventData">&nbsp;</a>
257
+
258
+ ## OnErrorEventData : <code>object</code>
259
+ Interface for OnErrorEventData
260
+
261
+ **Kind**: global interface
262
+
263
+ | Param | Type | Description |
264
+ | --- | --- | --- |
265
+ | event | <code>string</code> | Event Name is 'error' |
266
+ | [chargeId] | <code>string</code> | chargeId in case it's already set after onClick event |
267
+ | [data] | <code>Error</code> | Error object if present |
268
+
269
+ <a name="OnShippingAddressChangeEventData" id="OnShippingAddressChangeEventData" href="#OnShippingAddressChangeEventData">&nbsp;</a>
270
+
271
+ ## OnShippingAddressChangeEventData : <code>object</code>
272
+ Interface for OnShippingAddressChangeEventData.
273
+
274
+ **Kind**: global interface
275
+
276
+ | Param | Type | Description |
277
+ | --- | --- | --- |
278
+ | event | <code>string</code> | Event Name is 'onShippingAddressChange' |
279
+ | chargeId | <code>string</code> | chargeId set after onClick event |
280
+ | data.address_city | <code>string</code> | PayPal and ApplePay - Shipping address city |
281
+ | data.address_state | <code>string</code> | PayPal and ApplePay - Shipping address state |
282
+ | data.address_postcode | <code>string</code> | PayPal and ApplePay - Shipping address postcode |
283
+ | data.address_country | <code>string</code> | PayPal and ApplePay - Shipping address country code |
284
+ | [data.address_line1] | <code>string</code> | ApplePay - Shipping address line 1 |
285
+ | [data.address_line2] | <code>string</code> | ApplePay - Shipping address line 2 |
286
+ | [data.contact.phone] | <code>string</code> | ApplePay - Shipping contact phone |
287
+ | [data.contact.email] | <code>string</code> | ApplePay - Shipping contact email |
288
+ | [data.contact.first_name] | <code>string</code> | ApplePay - Shipping contact first name |
289
+ | [data.contact.last_name] | <code>string</code> | ApplePay - Shipping contact last name |
290
+
291
+ <a name="OnShippingAddressChangeEventResponse" id="OnShippingAddressChangeEventResponse" href="#OnShippingAddressChangeEventResponse">&nbsp;</a>
292
+
293
+ ## OnShippingAddressChangeEventResponse : <code>object</code>
294
+ Interface for OnShippingAddressChangeEventResponse.
295
+
296
+ **Kind**: global interface
297
+
298
+ | Param | Type | Description |
299
+ | --- | --- | --- |
300
+ | [token] | <code>string</code> | Updated Wallet Token if any |
301
+ | [label] | <code>string</code> | ApplePay - Required. Label to show to the customer. |
302
+ | [amount] | <code>string</code> | ApplePay - Required. New amount for shipping option. |
303
+ | [error] | <code>string</code> | PayPal and ApplePay - Error object in case of error when processing shipping address in if new address unsupported or any other possible error. |
304
+ | error.code | <code>string</code> | PayPal and ApplePay - Error code, mandatory in case of error. Possible values for Paypal are 'address_error', 'country_error', 'state_error', 'zip_error' or any other string if none applies. For ApplePay values are 'address_error', 'shipping_contact_invalid' and 'billing_contact_invalid'. |
305
+ | [error.field] | <code>string</code> | ApplePay - Error field in case of specifically showing it. Possible values for Apple Pay are 'phone', 'email', 'name', 'phonetic_name', 'address_lines', 'locality', 'postal_code', 'administrative_area', 'country', 'country_code'. |
306
+ | [error.message] | <code>string</code> | ApplePay - Custom user facing error message. |
307
+
308
+ <a name="IApplePayShippingOption" id="IApplePayShippingOption" href="#IApplePayShippingOption">&nbsp;</a>
309
+
310
+ ## IApplePayShippingOption : <code>object</code>
311
+ Interface for IApplePayShippingOption.
312
+ Used for adding new shippings options when customer updates the shipping address.
313
+
314
+ **Kind**: global interface
315
+
316
+ | Param | Type | Description |
317
+ | --- | --- | --- |
318
+ | [id] | <code>string</code> | Updated Wallet Token if any |
319
+ | [label] | <code>string</code> | ApplePay - Required. Label to show to the customer. |
320
+ | [amount] | <code>string</code> | ApplePay - Required. New amount for shipping option. |
321
+ | [detail] | <code>string</code> | ApplePay - Optional detail for shipping option. |
322
+ | [date_components_range] | <code>object</code> | ApplePay - Object that contains the dates for shipping |
323
+ | [date_components_range.start_date_components] | <code>object</code> | ApplePay - Contains the start date object |
324
+ | [date_components_range.start_date_components.years] | <code>string</code> | ApplePay - Contains the start date year |
325
+ | [date_components_range.start_date_components.months] | <code>string</code> | ApplePay - Contains the start date month |
326
+ | [date_components_range.start_date_components.days] | <code>string</code> | ApplePay - Contains the start date day |
327
+ | [date_components_range.start_date_components.hours] | <code>string</code> | ApplePay - Contains the start date hour |
328
+ | [date_components_range.end_date_components] | <code>object</code> | ApplePay - Contains the end date year |
329
+ | [date_components_range.end_date_components.years] | <code>string</code> | ApplePay - Contains the end date year |
330
+ | [date_components_range.end_date_components.months] | <code>string</code> | ApplePay - Contains the end date month |
331
+ | [date_components_range.end_date_components.days] | <code>string</code> | ApplePay - Contains the end date day |
332
+ | [date_components_range.end_date_components.hours] | <code>string</code> | ApplePay - Contains the end date hour |
333
+
334
+ <a name="OnShippingOptionChangeEventData" id="OnShippingOptionChangeEventData" href="#OnShippingOptionChangeEventData">&nbsp;</a>
335
+
336
+ ## OnShippingOptionChangeEventData : <code>object</code>
337
+ Interface for OnShippingOptionChangeEventData.
338
+
339
+ **Kind**: global interface
340
+
341
+ | Param | Type | Description |
342
+ | --- | --- | --- |
343
+ | event | <code>string</code> | Event Name is 'onShippingOptionsChange' |
344
+ | chargeId | <code>string</code> | chargeId set after onClick event |
345
+ | [data.shipping_option_id] | <code>string</code> | PayPal and ApplePay - Selected shipping option id |
346
+ | [data.amount] | <code>string</code> | Paypal and ApplePay - Selected shipping option amount |
347
+ | [data.label] | <code>string</code> | ApplePay - Selected shipping option label |
348
+ | [data.detail] | <code>string</code> | ApplePay - Selected shipping option detail |
349
+
350
+ <a name="OnShippingOptionChangeEventResponse" id="OnShippingOptionChangeEventResponse" href="#OnShippingOptionChangeEventResponse">&nbsp;</a>
351
+
352
+ ## OnShippingOptionChangeEventResponse : <code>object</code>
353
+ Interface for OnShippingOptionChangeEventResponse.
354
+
355
+ **Kind**: global interface
356
+
357
+ | Param | Type | Description |
358
+ | --- | --- | --- |
359
+ | [token] | <code>string</code> | Updated Wallet Token if any |
360
+ | [label] | <code>string</code> | ApplePay - Required. Label to show to the customer. |
361
+ | [amount] | <code>string</code> | ApplePay - Required. New amount for shipping option. |
362
+ | [error] | <code>string</code> | PayPal - Error object in case of error when processing shipping option selection. |
363
+ | error.code | <code>string</code> | Possible values for Paypal are 'method_unavailable', 'store_unavailable' or any other string if none applies. |
364
+
365
+ <a name="IApplePayError" id="IApplePayError" href="#IApplePayError">&nbsp;</a>
366
+
367
+ ## IApplePayError : <code>object</code>
368
+ Interface for IApplePayError.
369
+
370
+ **Kind**: global interface
371
+
372
+ | Param | Type | Description |
373
+ | --- | --- | --- |
374
+ | code | <code>&#x27;shipping\_contact\_invalid&#x27;</code> \| <code>&#x27;billing\_contact\_invalid&#x27;</code> \| <code>&#x27;address\_unserviceable&#x27;</code> \| <code>&#x27;coupon\_code\_invalid&#x27;</code> \| <code>&#x27;coupon\_code\_expired&#x27;</code> \| <code>&#x27;unknown&#x27;</code> | The error code for this instance. |
375
+ | contact_field | [<code>ContactFieldType</code>](#ContactFieldType) | The error code for this instance. |
376
+ | message | <code>string</code> \| <code>undefined</code> | TA localized, user-facing string that describes the error. |
377
+
378
+ <a name="ApplePayWalletButtonExpress" id="ApplePayWalletButtonExpress" href="#ApplePayWalletButtonExpress">&nbsp;</a>
379
+
380
+ ## ApplePayWalletButtonExpress ⇐ <code>BaseWalletButton</code>
381
+ Class ApplePayWalletButtonExpress to work with Apple Pay Wallet.
382
+
383
+ **Kind**: global class
384
+ **Extends**: <code>BaseWalletButton</code>
385
+
386
+ * [ApplePayWalletButtonExpress](#ApplePayWalletButtonExpress) ⇐ <code>BaseWalletButton</code>
387
+ * [new ApplePayWalletButtonExpress(selector, publicKeyOrAccessToken, gatewayId, meta)](#new_ApplePayWalletButtonExpress_new)
388
+ * [.load()](#ApplePayWalletButtonExpress+load)
389
+ * [.setMeta(meta)](#ApplePayWalletButtonExpress+setMeta)
390
+ * [.setEnv(env, [alias])](#BaseWalletButton+setEnv)
391
+ * [.onClick(handler)](#BaseWalletButton+onClick)
392
+ * [.onPaymentSuccessful([handler])](#BaseWalletButton+onPaymentSuccessful)
393
+ * [.onPaymentInReview([handler])](#BaseWalletButton+onPaymentInReview)
394
+ * [.onPaymentError([handler])](#BaseWalletButton+onPaymentError)
395
+ * [.onCheckoutClose(handler)](#BaseWalletButton+onCheckoutClose)
396
+ * [.onShippingAddressChange([handler])](#BaseWalletButton+onShippingAddressChange)
397
+ * [.onShippingOptionsChange([handler])](#BaseWalletButton+onShippingOptionsChange)
398
+ * [.onUnavailable(handler)](#BaseWalletButton+onUnavailable)
399
+ * [.onError(handler)](#BaseWalletButton+onError)
400
+
401
+ <a name="new_ApplePayWalletButtonExpress_new" id="new_ApplePayWalletButtonExpress_new" href="#new_ApplePayWalletButtonExpress_new">&nbsp;</a>
402
+
403
+ ### new ApplePayWalletButtonExpress(selector, publicKeyOrAccessToken, gatewayId, meta)
404
+
405
+ | Param | Type | Description |
406
+ | --- | --- | --- |
407
+ | selector | <code>string</code> | Selector of html element. Container for the ApplePayWalletButtonExpress. |
408
+ | publicKeyOrAccessToken | <code>string</code> | Public key or Access token for the ApplePayWalletButtonExpress. |
409
+ | gatewayId | <code>string</code> | Gateway ID for the ApplePayWalletButtonExpress. |
410
+ | meta | [<code>ApplePayWalletMeta</code>](#ApplePayWalletMeta) | data that configures the Apple Pay Wallet. |
411
+
412
+ **Example**
413
+ ```js
414
+ var button = new ApplePayWalletButtonExpress('#wallet-buttons', 'publicKeyOrAccessToken', 'gatewayId', meta);
415
+ ```
416
+ <a name="ApplePayWalletButtonExpress+load" id="ApplePayWalletButtonExpress+load" href="#ApplePayWalletButtonExpress+load">&nbsp;</a>
417
+
418
+ ### applePayWalletButtonExpress.load()
419
+ Initializes the availability checks and inserts the button if possible.
420
+ Otherwise function onUnavailable(handler: VoidFunction) will be called.
421
+ **Important**: Is required to invoke this method to render the wallet button.
422
+
423
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
424
+ **Example**
425
+ ```js
426
+ button.load();
427
+ ```
428
+ <a name="ApplePayWalletButtonExpress+setMeta" id="ApplePayWalletButtonExpress+setMeta" href="#ApplePayWalletButtonExpress+setMeta">&nbsp;</a>
429
+
430
+ ### applePayWalletButtonExpress.setMeta(meta)
431
+ Call this method if updating the originally-provided meta object after order information changed.
432
+ For example, if the order amount has changed from the time where the button was originally rendered.
433
+
434
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
435
+
436
+ | Param | Type | Description |
437
+ | --- | --- | --- |
438
+ | meta | [<code>ApplePayWalletMeta</code>](#ApplePayWalletMeta) | // data that configures the Apple Pay Wallet. |
439
+
440
+ **Example**
441
+ ```js
442
+ button.setMeta(meta);
443
+ ```
444
+ <a name="BaseWalletButton+setEnv" id="BaseWalletButton+setEnv" href="#BaseWalletButton+setEnv">&nbsp;</a>
445
+
446
+ ### applePayWalletButtonExpress.setEnv(env, [alias])
447
+ Current method can change environment. By default environment = sandbox.
448
+ Also we can change domain alias for this environment. By default domain_alias = paydock.com
449
+ Bear in mind that you must set an environment before calling `button.load()`.
450
+
451
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
452
+ **Overrides**: [<code>setEnv</code>](#BaseWalletButton+setEnv)
453
+
454
+ | Param | Type | Description |
455
+ | --- | --- | --- |
456
+ | env | <code>string</code> | sandbox, production |
457
+ | [alias] | <code>string</code> | Own domain alias |
458
+
459
+ **Example**
460
+ ```js
461
+ button.setEnv('production', 'paydock.com');
462
+ ```
463
+ <a name="BaseWalletButton+onClick" id="BaseWalletButton+onClick" href="#BaseWalletButton+onClick">&nbsp;</a>
464
+
465
+ ### applePayWalletButtonExpress.onClick(handler)
466
+ Registers a callback function to be invoked when the wallet button gets clicked.
467
+ **Note:** is mandatory to handle this event to perform the wallet initialization (and optionally any validation logic).
468
+ The event handler needs to return the wallet token string in order for the Wallet charge processing to proceed, or throw an error in case of failure or validation errors.
469
+ **Note:** this callback may be called multiple times as the customer closes the payment checkout and re-clicks the button.
470
+ It's the merchant's responsibility to handle this situation and evaluate in each case if generating a new WalletCharge Token is required or the previous one can be used in each case, depending on order data and updates.
471
+ In case a new one needs to be generated, remember it will need to be preceded by a `setMeta` call.
472
+
473
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
474
+ **Overrides**: [<code>onClick</code>](#BaseWalletButton+onClick)
475
+
476
+ | Param | Type | Description |
477
+ | --- | --- | --- |
478
+ | handler | [<code>OnClickCallback</code>](#OnClickCallback) | Function to be called when the wallet button is clicked. |
479
+
480
+ **Example**
481
+ ```js
482
+ button.onClick(async (data) => {
483
+ const responseData = await fetch('https://your-server.com/init-wallet-charge');
484
+ return responseData.walletToken;
485
+ });
486
+ ```
487
+ <a name="BaseWalletButton+onPaymentSuccessful" id="BaseWalletButton+onPaymentSuccessful" href="#BaseWalletButton+onPaymentSuccessful">&nbsp;</a>
488
+
489
+ ### applePayWalletButtonExpress.onPaymentSuccessful([handler])
490
+ If the payment was successful, the function passed as parameter will be called.
491
+ Important: Do not perform thread blocking operations in callback such as window.alert() calls.
492
+
493
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
494
+ **Overrides**: [<code>onPaymentSuccessful</code>](#BaseWalletButton+onPaymentSuccessful)
495
+
496
+ | Param | Type | Description |
497
+ | --- | --- | --- |
498
+ | [handler] | [<code>OnPaymentSuccessfulCallback</code>](#OnPaymentSuccessfulCallback) | Function to be called when the payment was successful. |
499
+
500
+ **Example**
501
+ ```js
502
+ button.onPaymentSuccessful((data) => {
503
+ console.log('Payment successful!');
504
+ });
505
+ ```
506
+ **Example**
507
+ ```js
508
+ button.onPaymentSuccessful().then((data) => console.log('Payment successful!'));
509
+ ```
510
+ <a name="BaseWalletButton+onPaymentInReview" id="BaseWalletButton+onPaymentInReview" href="#BaseWalletButton+onPaymentInReview">&nbsp;</a>
511
+
512
+ ### applePayWalletButtonExpress.onPaymentInReview([handler])
513
+ If the payment was left in fraud review, the function passed as parameter will be called.
514
+ Important: Do not perform thread blocking operations in callback such as window.alert() calls.
515
+
516
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
517
+ **Overrides**: [<code>onPaymentInReview</code>](#BaseWalletButton+onPaymentInReview)
518
+
519
+ | Param | Type | Description |
520
+ | --- | --- | --- |
521
+ | [handler] | [<code>OnPaymentInReviewCallback</code>](#OnPaymentInReviewCallback) | Function to be called when the payment was left in fraud review status. |
522
+
523
+ **Example**
524
+ ```js
525
+ button.onPaymentInReview((data) => {
526
+ console.log('Payment in fraud review');
527
+ });
528
+ ```
529
+ **Example**
530
+ ```js
531
+ button.onPaymentInReview().then((data) => console.log('Payment in fraud review'));
532
+ ```
533
+ <a name="BaseWalletButton+onPaymentError" id="BaseWalletButton+onPaymentError" href="#BaseWalletButton+onPaymentError">&nbsp;</a>
534
+
535
+ ### applePayWalletButtonExpress.onPaymentError([handler])
536
+ If the payment was not successful, the function passed as parameter will be called.
537
+ Important: Do not perform thread blocking operations in callback such as window.alert() calls.
538
+
539
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
540
+ **Overrides**: [<code>onPaymentError</code>](#BaseWalletButton+onPaymentError)
541
+
542
+ | Param | Type | Description |
543
+ | --- | --- | --- |
544
+ | [handler] | [<code>OnPaymentErrorCallback</code>](#OnPaymentErrorCallback) | Function to be called when the payment was not successful. |
545
+
546
+ **Example**
547
+ ```js
548
+ button.onPaymentError((err) => {
549
+ console.log('Payment not successful');
550
+ });
551
+ ```
552
+ **Example**
553
+ ```js
554
+ button.onPaymentError().then((err) => console.log('Payment not successful'));
555
+ ```
556
+ <a name="BaseWalletButton+onCheckoutClose" id="BaseWalletButton+onCheckoutClose" href="#BaseWalletButton+onCheckoutClose">&nbsp;</a>
557
+
558
+ ### applePayWalletButtonExpress.onCheckoutClose(handler)
559
+ Registers a callback function to be invoked when the wallet checkout closes.
560
+
561
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
562
+ **Overrides**: [<code>onCheckoutClose</code>](#BaseWalletButton+onCheckoutClose)
563
+
564
+ | Param | Type | Description |
565
+ | --- | --- | --- |
566
+ | handler | [<code>OnCheckoutCloseCallback</code>](#OnCheckoutCloseCallback) | Function to be called when the wallet checkout closes. |
567
+
568
+ **Example**
569
+ ```js
570
+ button.onCheckoutClose(() => {
571
+ console.log('Wallet checkout closes');
572
+ });
573
+ ```
574
+ <a name="BaseWalletButton+onShippingAddressChange" id="BaseWalletButton+onShippingAddressChange" href="#BaseWalletButton+onShippingAddressChange">&nbsp;</a>
575
+
576
+ ### applePayWalletButtonExpress.onShippingAddressChange([handler])
577
+ If shipping address data is updated, the function passed as parameter will be called.
578
+ Use this method to listen for shipping address selection or input from customer when shipping is enabled.
579
+ The event handler needs to return a new token in case a backend to backend wallet update call was executed.
580
+ In addition, if any error occured, an error string must be supplied.
581
+ By default, the event handler will be processed successfuly if neither token nor error is returned.
582
+
583
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
584
+ **Overrides**: [<code>onShippingAddressChange</code>](#BaseWalletButton+onShippingAddressChange)
585
+
586
+ | Param | Type | Description |
587
+ | --- | --- | --- |
588
+ | [handler] | [<code>OnShippingAddressChangeCallback</code>](#OnShippingAddressChangeCallback) | Function to be called when the shipping address data is updated. |
589
+
590
+ **Example**
591
+ ```js
592
+ button.onShippingAddressChange((data) => {
593
+ const responseData = await fetch('https://your-server.com/update-shipping-info');
594
+ return { error: null, token: responseData.walletToken };
595
+ });
596
+ ```
597
+ <a name="BaseWalletButton+onShippingOptionsChange" id="BaseWalletButton+onShippingOptionsChange" href="#BaseWalletButton+onShippingOptionsChange">&nbsp;</a>
598
+
599
+ ### applePayWalletButtonExpress.onShippingOptionsChange([handler])
600
+ If shipping options data is updated, the function passed as parameter will be called.
601
+ Use this method to listen for shipping option selection from customer when shipping is enabled.
602
+ The event handler needs to return a new token in case a backend to backend wallet update call was executed.
603
+ In addition, if any error occured, an error string must be supplied.
604
+ By default, the event handler will be processed successfuly if neither token nor error is returned.
605
+
606
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
607
+ **Overrides**: [<code>onShippingOptionsChange</code>](#BaseWalletButton+onShippingOptionsChange)
608
+
609
+ | Param | Type | Description |
610
+ | --- | --- | --- |
611
+ | [handler] | [<code>OnShippingOptionsChangeCallback</code>](#OnShippingOptionsChangeCallback) | Function to be called when the shipping options data is updated. |
612
+
613
+ **Example**
614
+ ```js
615
+ button.onShippingOptionsChange((data) => {
616
+ const responseData = await fetch('https://your-server.com/update-shipping-info');
617
+ return { error: null, token: responseData.walletToken };
618
+ });
619
+ ```
620
+ <a name="BaseWalletButton+onUnavailable" id="BaseWalletButton+onUnavailable" href="#BaseWalletButton+onUnavailable">&nbsp;</a>
621
+
622
+ ### applePayWalletButtonExpress.onUnavailable(handler)
623
+ Registers a callback function to be invoked when the wallet is not available in the current context.
624
+
625
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
626
+ **Overrides**: [<code>onUnavailable</code>](#BaseWalletButton+onUnavailable)
627
+
628
+ | Param | Type | Description |
629
+ | --- | --- | --- |
630
+ | handler | [<code>OnUnavailableCallback</code>](#OnUnavailableCallback) | Function to be called when the wallet is not available in the current context. |
631
+
632
+ **Example**
633
+ ```js
634
+ button.onUnavailable(() => {
635
+ console.log('Wallet not available');
636
+ });
637
+ ```
638
+ <a name="BaseWalletButton+onError" id="BaseWalletButton+onError" href="#BaseWalletButton+onError">&nbsp;</a>
639
+
640
+ ### applePayWalletButtonExpress.onError(handler)
641
+ Registers a callback function to be invoked when an error that is not related to payment execution occurs.
642
+ For example, if the amount of the wallet token injected via the `onClick` event handler does not match the amount provided via the initial `meta` or `setMeta` method.
643
+
644
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
645
+ **Overrides**: [<code>onError</code>](#BaseWalletButton+onError)
646
+
647
+ | Param | Type | Description |
648
+ | --- | --- | --- |
649
+ | handler | [<code>OnErrorCallback</code>](#OnErrorCallback) | Function to be called when the WalletButton has an error. |
650
+
651
+ **Example**
652
+ ```js
653
+ button.onError((error) => {
654
+ console.log('WalletButtonExpress error', error);
655
+ });
656
+ ```
657
+ <a name="PaypalWalletButtonExpress" id="PaypalWalletButtonExpress" href="#PaypalWalletButtonExpress">&nbsp;</a>
658
+
659
+ ## PaypalWalletButtonExpress ⇐ <code>BaseWalletButton</code>
660
+ Class PaypalWalletButtonExpress to work with Paypal Wallet.
661
+
662
+ **Kind**: global class
663
+ **Extends**: <code>BaseWalletButton</code>
664
+
665
+ * [PaypalWalletButtonExpress](#PaypalWalletButtonExpress) ⇐ <code>BaseWalletButton</code>
666
+ * [new PaypalWalletButtonExpress(selector, publicKeyOrAccessToken, gatewayId, meta)](#new_PaypalWalletButtonExpress_new)
667
+ * [.load()](#PaypalWalletButtonExpress+load)
668
+ * [.setMeta(meta)](#PaypalWalletButtonExpress+setMeta)
669
+ * [.setEnv(env, [alias])](#BaseWalletButton+setEnv)
670
+ * [.onClick(handler)](#BaseWalletButton+onClick)
671
+ * [.onPaymentSuccessful([handler])](#BaseWalletButton+onPaymentSuccessful)
672
+ * [.onPaymentInReview([handler])](#BaseWalletButton+onPaymentInReview)
673
+ * [.onPaymentError([handler])](#BaseWalletButton+onPaymentError)
674
+ * [.onCheckoutClose(handler)](#BaseWalletButton+onCheckoutClose)
675
+ * [.onShippingAddressChange([handler])](#BaseWalletButton+onShippingAddressChange)
676
+ * [.onShippingOptionsChange([handler])](#BaseWalletButton+onShippingOptionsChange)
677
+ * [.onUnavailable(handler)](#BaseWalletButton+onUnavailable)
678
+ * [.onError(handler)](#BaseWalletButton+onError)
679
+
680
+ <a name="new_PaypalWalletButtonExpress_new" id="new_PaypalWalletButtonExpress_new" href="#new_PaypalWalletButtonExpress_new">&nbsp;</a>
681
+
682
+ ### new PaypalWalletButtonExpress(selector, publicKeyOrAccessToken, gatewayId, meta)
683
+
684
+ | Param | Type | Description |
685
+ | --- | --- | --- |
686
+ | selector | <code>string</code> | Selector of html element. Container for the PaypalWalletButtonExpress. |
687
+ | publicKeyOrAccessToken | <code>string</code> | Public key or Access token for the PaypalWalletButtonExpress. |
688
+ | gatewayId | <code>string</code> | Gateway ID for the PaypalWalletButtonExpress. |
689
+ | meta | [<code>PaypalWalletMeta</code>](#PaypalWalletMeta) | data that configures the Paypal Wallet. |
690
+
691
+ **Example**
692
+ ```js
693
+ var button = new PaypalWalletButtonExpress('#wallet-buttons', 'publicKeyOrAccessToken', 'gatewayId', meta);
694
+ ```
695
+ <a name="PaypalWalletButtonExpress+load" id="PaypalWalletButtonExpress+load" href="#PaypalWalletButtonExpress+load">&nbsp;</a>
696
+
697
+ ### paypalWalletButtonExpress.load()
698
+ Initializes the availability checks and inserts the button if possible.
699
+ Otherwise function onUnavailable(handler: VoidFunction) will be called.
700
+ **Important**: Is required to invoke this method to render the wallet button.
701
+
702
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
703
+ **Example**
704
+ ```js
705
+ button.load();
706
+ ```
707
+ <a name="PaypalWalletButtonExpress+setMeta" id="PaypalWalletButtonExpress+setMeta" href="#PaypalWalletButtonExpress+setMeta">&nbsp;</a>
708
+
709
+ ### paypalWalletButtonExpress.setMeta(meta)
710
+ Call this method if updating the originally-provided meta object after order information changed.
711
+ For example, if the order amount has changed from the time where the button was originally rendered.
712
+
713
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
714
+
715
+ | Param | Type | Description |
716
+ | --- | --- | --- |
717
+ | meta | [<code>PaypalWalletMeta</code>](#PaypalWalletMeta) | // data that configures the Paypal Wallet. |
718
+
719
+ **Example**
720
+ ```js
721
+ button.setMeta(meta);
722
+ ```
723
+ <a name="BaseWalletButton+setEnv" id="BaseWalletButton+setEnv" href="#BaseWalletButton+setEnv">&nbsp;</a>
724
+
725
+ ### paypalWalletButtonExpress.setEnv(env, [alias])
726
+ Current method can change environment. By default environment = sandbox.
727
+ Also we can change domain alias for this environment. By default domain_alias = paydock.com
728
+ Bear in mind that you must set an environment before calling `button.load()`.
729
+
730
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
731
+ **Overrides**: [<code>setEnv</code>](#BaseWalletButton+setEnv)
732
+
733
+ | Param | Type | Description |
734
+ | --- | --- | --- |
735
+ | env | <code>string</code> | sandbox, production |
736
+ | [alias] | <code>string</code> | Own domain alias |
737
+
738
+ **Example**
739
+ ```js
740
+ button.setEnv('production', 'paydock.com');
741
+ ```
742
+ <a name="BaseWalletButton+onClick" id="BaseWalletButton+onClick" href="#BaseWalletButton+onClick">&nbsp;</a>
743
+
744
+ ### paypalWalletButtonExpress.onClick(handler)
745
+ Registers a callback function to be invoked when the wallet button gets clicked.
746
+ **Note:** is mandatory to handle this event to perform the wallet initialization (and optionally any validation logic).
747
+ The event handler needs to return the wallet token string in order for the Wallet charge processing to proceed, or throw an error in case of failure or validation errors.
748
+ **Note:** this callback may be called multiple times as the customer closes the payment checkout and re-clicks the button.
749
+ It's the merchant's responsibility to handle this situation and evaluate in each case if generating a new WalletCharge Token is required or the previous one can be used in each case, depending on order data and updates.
750
+ In case a new one needs to be generated, remember it will need to be preceded by a `setMeta` call.
751
+
752
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
753
+ **Overrides**: [<code>onClick</code>](#BaseWalletButton+onClick)
754
+
755
+ | Param | Type | Description |
756
+ | --- | --- | --- |
757
+ | handler | [<code>OnClickCallback</code>](#OnClickCallback) | Function to be called when the wallet button is clicked. |
758
+
759
+ **Example**
760
+ ```js
761
+ button.onClick(async (data) => {
762
+ const responseData = await fetch('https://your-server.com/init-wallet-charge');
763
+ return responseData.walletToken;
764
+ });
765
+ ```
766
+ <a name="BaseWalletButton+onPaymentSuccessful" id="BaseWalletButton+onPaymentSuccessful" href="#BaseWalletButton+onPaymentSuccessful">&nbsp;</a>
767
+
768
+ ### paypalWalletButtonExpress.onPaymentSuccessful([handler])
769
+ If the payment was successful, the function passed as parameter will be called.
770
+ Important: Do not perform thread blocking operations in callback such as window.alert() calls.
771
+
772
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
773
+ **Overrides**: [<code>onPaymentSuccessful</code>](#BaseWalletButton+onPaymentSuccessful)
774
+
775
+ | Param | Type | Description |
776
+ | --- | --- | --- |
777
+ | [handler] | [<code>OnPaymentSuccessfulCallback</code>](#OnPaymentSuccessfulCallback) | Function to be called when the payment was successful. |
778
+
779
+ **Example**
780
+ ```js
781
+ button.onPaymentSuccessful((data) => {
782
+ console.log('Payment successful!');
783
+ });
784
+ ```
785
+ **Example**
786
+ ```js
787
+ button.onPaymentSuccessful().then((data) => console.log('Payment successful!'));
788
+ ```
789
+ <a name="BaseWalletButton+onPaymentInReview" id="BaseWalletButton+onPaymentInReview" href="#BaseWalletButton+onPaymentInReview">&nbsp;</a>
790
+
791
+ ### paypalWalletButtonExpress.onPaymentInReview([handler])
792
+ If the payment was left in fraud review, the function passed as parameter will be called.
793
+ Important: Do not perform thread blocking operations in callback such as window.alert() calls.
794
+
795
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
796
+ **Overrides**: [<code>onPaymentInReview</code>](#BaseWalletButton+onPaymentInReview)
797
+
798
+ | Param | Type | Description |
799
+ | --- | --- | --- |
800
+ | [handler] | [<code>OnPaymentInReviewCallback</code>](#OnPaymentInReviewCallback) | Function to be called when the payment was left in fraud review status. |
801
+
802
+ **Example**
803
+ ```js
804
+ button.onPaymentInReview((data) => {
805
+ console.log('Payment in fraud review');
806
+ });
807
+ ```
808
+ **Example**
809
+ ```js
810
+ button.onPaymentInReview().then((data) => console.log('Payment in fraud review'));
811
+ ```
812
+ <a name="BaseWalletButton+onPaymentError" id="BaseWalletButton+onPaymentError" href="#BaseWalletButton+onPaymentError">&nbsp;</a>
813
+
814
+ ### paypalWalletButtonExpress.onPaymentError([handler])
815
+ If the payment was not successful, the function passed as parameter will be called.
816
+ Important: Do not perform thread blocking operations in callback such as window.alert() calls.
817
+
818
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
819
+ **Overrides**: [<code>onPaymentError</code>](#BaseWalletButton+onPaymentError)
820
+
821
+ | Param | Type | Description |
822
+ | --- | --- | --- |
823
+ | [handler] | [<code>OnPaymentErrorCallback</code>](#OnPaymentErrorCallback) | Function to be called when the payment was not successful. |
824
+
825
+ **Example**
826
+ ```js
827
+ button.onPaymentError((err) => {
828
+ console.log('Payment not successful');
829
+ });
830
+ ```
831
+ **Example**
832
+ ```js
833
+ button.onPaymentError().then((err) => console.log('Payment not successful'));
834
+ ```
835
+ <a name="BaseWalletButton+onCheckoutClose" id="BaseWalletButton+onCheckoutClose" href="#BaseWalletButton+onCheckoutClose">&nbsp;</a>
836
+
837
+ ### paypalWalletButtonExpress.onCheckoutClose(handler)
838
+ Registers a callback function to be invoked when the wallet checkout closes.
839
+
840
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
841
+ **Overrides**: [<code>onCheckoutClose</code>](#BaseWalletButton+onCheckoutClose)
842
+
843
+ | Param | Type | Description |
844
+ | --- | --- | --- |
845
+ | handler | [<code>OnCheckoutCloseCallback</code>](#OnCheckoutCloseCallback) | Function to be called when the wallet checkout closes. |
846
+
847
+ **Example**
848
+ ```js
849
+ button.onCheckoutClose(() => {
850
+ console.log('Wallet checkout closes');
851
+ });
852
+ ```
853
+ <a name="BaseWalletButton+onShippingAddressChange" id="BaseWalletButton+onShippingAddressChange" href="#BaseWalletButton+onShippingAddressChange">&nbsp;</a>
854
+
855
+ ### paypalWalletButtonExpress.onShippingAddressChange([handler])
856
+ If shipping address data is updated, the function passed as parameter will be called.
857
+ Use this method to listen for shipping address selection or input from customer when shipping is enabled.
858
+ The event handler needs to return a new token in case a backend to backend wallet update call was executed.
859
+ In addition, if any error occured, an error string must be supplied.
860
+ By default, the event handler will be processed successfuly if neither token nor error is returned.
861
+
862
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
863
+ **Overrides**: [<code>onShippingAddressChange</code>](#BaseWalletButton+onShippingAddressChange)
864
+
865
+ | Param | Type | Description |
866
+ | --- | --- | --- |
867
+ | [handler] | [<code>OnShippingAddressChangeCallback</code>](#OnShippingAddressChangeCallback) | Function to be called when the shipping address data is updated. |
868
+
869
+ **Example**
870
+ ```js
871
+ button.onShippingAddressChange((data) => {
872
+ const responseData = await fetch('https://your-server.com/update-shipping-info');
873
+ return { error: null, token: responseData.walletToken };
874
+ });
875
+ ```
876
+ <a name="BaseWalletButton+onShippingOptionsChange" id="BaseWalletButton+onShippingOptionsChange" href="#BaseWalletButton+onShippingOptionsChange">&nbsp;</a>
877
+
878
+ ### paypalWalletButtonExpress.onShippingOptionsChange([handler])
879
+ If shipping options data is updated, the function passed as parameter will be called.
880
+ Use this method to listen for shipping option selection from customer when shipping is enabled.
881
+ The event handler needs to return a new token in case a backend to backend wallet update call was executed.
882
+ In addition, if any error occured, an error string must be supplied.
883
+ By default, the event handler will be processed successfuly if neither token nor error is returned.
884
+
885
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
886
+ **Overrides**: [<code>onShippingOptionsChange</code>](#BaseWalletButton+onShippingOptionsChange)
887
+
888
+ | Param | Type | Description |
889
+ | --- | --- | --- |
890
+ | [handler] | [<code>OnShippingOptionsChangeCallback</code>](#OnShippingOptionsChangeCallback) | Function to be called when the shipping options data is updated. |
891
+
892
+ **Example**
893
+ ```js
894
+ button.onShippingOptionsChange((data) => {
895
+ const responseData = await fetch('https://your-server.com/update-shipping-info');
896
+ return { error: null, token: responseData.walletToken };
897
+ });
898
+ ```
899
+ <a name="BaseWalletButton+onUnavailable" id="BaseWalletButton+onUnavailable" href="#BaseWalletButton+onUnavailable">&nbsp;</a>
900
+
901
+ ### paypalWalletButtonExpress.onUnavailable(handler)
902
+ Registers a callback function to be invoked when the wallet is not available in the current context.
903
+
904
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
905
+ **Overrides**: [<code>onUnavailable</code>](#BaseWalletButton+onUnavailable)
906
+
907
+ | Param | Type | Description |
908
+ | --- | --- | --- |
909
+ | handler | [<code>OnUnavailableCallback</code>](#OnUnavailableCallback) | Function to be called when the wallet is not available in the current context. |
910
+
911
+ **Example**
912
+ ```js
913
+ button.onUnavailable(() => {
914
+ console.log('Wallet not available');
915
+ });
916
+ ```
917
+ <a name="BaseWalletButton+onError" id="BaseWalletButton+onError" href="#BaseWalletButton+onError">&nbsp;</a>
918
+
919
+ ### paypalWalletButtonExpress.onError(handler)
920
+ Registers a callback function to be invoked when an error that is not related to payment execution occurs.
921
+ For example, if the amount of the wallet token injected via the `onClick` event handler does not match the amount provided via the initial `meta` or `setMeta` method.
922
+
923
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
924
+ **Overrides**: [<code>onError</code>](#BaseWalletButton+onError)
925
+
926
+ | Param | Type | Description |
927
+ | --- | --- | --- |
928
+ | handler | [<code>OnErrorCallback</code>](#OnErrorCallback) | Function to be called when the WalletButton has an error. |
929
+
930
+ **Example**
931
+ ```js
932
+ button.onError((error) => {
933
+ console.log('WalletButtonExpress error', error);
934
+ });
935
+ ```
936
+ <a name="EVENT" id="EVENT" href="#EVENT">&nbsp;</a>
937
+
938
+ ## EVENT : <code>object</code>
939
+ List of available event's name in the wallet button lifecycle
940
+
941
+ **Kind**: global constant
942
+
943
+ | Param | Type | Default |
944
+ | --- | --- | --- |
945
+ | UNAVAILABLE | <code>string</code> | <code>&quot;unavailable&quot;</code> |
946
+ | ERROR | <code>string</code> | <code>&quot;error&quot;</code> |
947
+ | PAYMENT_SUCCESSFUL | <code>string</code> | <code>&quot;paymentSuccessful&quot;</code> |
948
+ | PAYMENT_ERROR | <code>string</code> | <code>&quot;paymentError&quot;</code> |
949
+ | PAYMENT_IN_REVIEW | <code>string</code> | <code>&quot;paymentInReview&quot;</code> |
950
+ | ON_CLICK | <code>string</code> | <code>&quot;onClick&quot;</code> |
951
+ | ON_CHECKOUT_CLOSE | <code>string</code> | <code>&quot;onCheckoutClose&quot;</code> |
952
+ | ON_SHIPPING_ADDRESS_CHANGE | <code>string</code> | <code>&quot;onShippingAddressChange&quot;</code> |
953
+ | ON_SHIPPING_OPTIONS_CHANGE | <code>string</code> | <code>&quot;onShippingOptionsChange&quot;</code> |
954
+
955
+ <a name="ContactFieldType" id="ContactFieldType" href="#ContactFieldType">&nbsp;</a>
956
+
957
+ ## ContactFieldType : <code>object</code>
958
+ List of available contact fields for ContactFieldType
959
+
960
+ **Kind**: global constant
961
+
962
+ | Param | Type |
963
+ | --- | --- |
964
+ | phone | <code>string</code> |
965
+ | email | <code>string</code> |
966
+ | name | <code>string</code> |
967
+ | phonetic_name | <code>string</code> |
968
+ | address_lines | <code>string</code> |
969
+ | address_city | <code>string</code> |
970
+ | address_postcode | <code>string</code> |
971
+ | address_state | <code>string</code> |
972
+ | address_country | <code>string</code> |
973
+ | address_country_code | <code>string</code> |
974
+
975
+ <a name="OnClickCallback" id="OnClickCallback" href="#OnClickCallback">&nbsp;</a>
976
+
977
+ ## OnClickCallback ⇒ <code>Promise.&lt;string&gt;</code>
978
+ Callback for onClick method.
979
+
980
+ **Kind**: global typedef
981
+ **Returns**: <code>Promise.&lt;string&gt;</code> - walletToken string result
982
+
983
+ | Param | Type |
984
+ | --- | --- |
985
+ | data | [<code>OnClickEventData</code>](#OnClickEventData) |
986
+
987
+ <a name="OnPaymentSuccessfulCallback" id="OnPaymentSuccessfulCallback" href="#OnPaymentSuccessfulCallback">&nbsp;</a>
988
+
989
+ ## OnPaymentSuccessfulCallback : <code>function</code>
990
+ Callback for onPaymentSuccessful method.
991
+
992
+ **Kind**: global typedef
993
+
994
+ | Param | Type |
995
+ | --- | --- |
996
+ | data | [<code>OnPaymentSuccessfulEventData</code>](#OnPaymentSuccessfulEventData) |
997
+
998
+ <a name="OnPaymentInReviewCallback" id="OnPaymentInReviewCallback" href="#OnPaymentInReviewCallback">&nbsp;</a>
999
+
1000
+ ## OnPaymentInReviewCallback : <code>function</code>
1001
+ Callback for onPaymentInReview method.
1002
+
1003
+ **Kind**: global typedef
1004
+
1005
+ | Param | Type |
1006
+ | --- | --- |
1007
+ | data | [<code>OnPaymentInReviewEventData</code>](#OnPaymentInReviewEventData) |
1008
+
1009
+ <a name="OnPaymentErrorCallback" id="OnPaymentErrorCallback" href="#OnPaymentErrorCallback">&nbsp;</a>
1010
+
1011
+ ## OnPaymentErrorCallback : <code>function</code>
1012
+ Callback for onPaymentError method.
1013
+
1014
+ **Kind**: global typedef
1015
+
1016
+ | Param | Type |
1017
+ | --- | --- |
1018
+ | data | [<code>OnPaymentErrorEventData</code>](#OnPaymentErrorEventData) |
1019
+
1020
+ <a name="OnCheckoutCloseCallback" id="OnCheckoutCloseCallback" href="#OnCheckoutCloseCallback">&nbsp;</a>
1021
+
1022
+ ## OnCheckoutCloseCallback : <code>function</code>
1023
+ Callback for onCheckoutClose method.
1024
+
1025
+ **Kind**: global typedef
1026
+
1027
+ | Param | Type |
1028
+ | --- | --- |
1029
+ | data | [<code>OnCloseEventData</code>](#OnCloseEventData) |
1030
+
1031
+ <a name="OnShippingAddressChangeCallback" id="OnShippingAddressChangeCallback" href="#OnShippingAddressChangeCallback">&nbsp;</a>
1032
+
1033
+ ## OnShippingAddressChangeCallback ⇒ [<code>Promise.&lt;OnShippingAddressChangeEventResponse&gt;</code>](#OnShippingAddressChangeEventResponse)
1034
+ Callback for onShippingAddressChange method.
1035
+
1036
+ **Kind**: global typedef
1037
+ **Returns**: [<code>Promise.&lt;OnShippingAddressChangeEventResponse&gt;</code>](#OnShippingAddressChangeEventResponse) - Address update result
1038
+
1039
+ | Param | Type |
1040
+ | --- | --- |
1041
+ | data | [<code>OnShippingAddressChangeEventData</code>](#OnShippingAddressChangeEventData) |
1042
+
1043
+ <a name="OnShippingOptionsChangeCallback" id="OnShippingOptionsChangeCallback" href="#OnShippingOptionsChangeCallback">&nbsp;</a>
1044
+
1045
+ ## OnShippingOptionsChangeCallback ⇒ [<code>Promise.&lt;OnShippingOptionChangeEventResponse&gt;</code>](#OnShippingOptionChangeEventResponse)
1046
+ Callback for onShippingOptionsChange method.
1047
+
1048
+ **Kind**: global typedef
1049
+ **Returns**: [<code>Promise.&lt;OnShippingOptionChangeEventResponse&gt;</code>](#OnShippingOptionChangeEventResponse) - Address update result
1050
+
1051
+ | Param | Type |
1052
+ | --- | --- |
1053
+ | data | [<code>OnShippingOptionChangeEventData</code>](#OnShippingOptionChangeEventData) |
1054
+
1055
+ <a name="OnUnavailableCallback" id="OnUnavailableCallback" href="#OnUnavailableCallback">&nbsp;</a>
1056
+
1057
+ ## OnUnavailableCallback : <code>function</code>
1058
+ Callback for onUnavailable method.
1059
+
1060
+ **Kind**: global typedef
1061
+
1062
+ | Param | Type |
1063
+ | --- | --- |
1064
+ | data | [<code>OnUnavailableEventData</code>](#OnUnavailableEventData) |
1065
+
1066
+ <a name="OnErrorCallback" id="OnErrorCallback" href="#OnErrorCallback">&nbsp;</a>
1067
+
1068
+ ## OnErrorCallback : <code>function</code>
1069
+ Callback for onError method.
1070
+
1071
+ **Kind**: global typedef
1072
+
1073
+ | Param | Type |
1074
+ | --- | --- |
1075
+ | data | [<code>OnErrorEventData</code>](#OnErrorEventData) |
1076
+