@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.
- package/README.md +9050 -52
- package/bundles/index.cjs +38558 -0
- package/bundles/index.cjs.d.ts +4777 -0
- package/bundles/index.mjs +38519 -0
- package/bundles/index.mjs.d.ts +4777 -0
- package/bundles/types/api/api-base.d.ts +54 -0
- package/bundles/types/api/api-base.d.ts.map +1 -0
- package/bundles/types/api/api-charge-internal.d.ts +99 -0
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
- package/bundles/types/api/api-charge.d.ts +36 -0
- package/bundles/types/api/api-charge.d.ts.map +1 -0
- package/bundles/types/api/api-checkout-internal.d.ts +58 -0
- package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
- package/bundles/types/api/api-gateway-internal.d.ts +12 -0
- package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
- package/bundles/types/api/api-internal.d.ts +13 -0
- package/bundles/types/api/api-internal.d.ts.map +1 -0
- package/bundles/types/api/api-service-internal.d.ts +19 -0
- package/bundles/types/api/api-service-internal.d.ts.map +1 -0
- package/bundles/types/api/api.d.ts +55 -0
- package/bundles/types/api/api.d.ts.map +1 -0
- package/bundles/types/api/index.d.ts +2 -0
- package/bundles/types/api/index.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts +109 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/index.d.ts +2 -0
- package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +43 -0
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/services/index.d.ts +2 -0
- package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +22 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
- package/bundles/types/checkout/checkout.d.ts +107 -0
- package/bundles/types/checkout/checkout.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts +25 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
- package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
- package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
- package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/resource-helper.d.ts +6 -0
- package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/session-helper.d.ts +8 -0
- package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
- package/bundles/types/checkout/index.d.ts +2 -0
- package/bundles/types/checkout/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/index.d.ts +3 -0
- package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
- package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
- package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
- package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
- package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +20 -0
- package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts +21 -0
- package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
- package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
- package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
- package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
- package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
- package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
- package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
- package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +55 -0
- package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts +36 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +13 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/checkout-button.d.ts +139 -0
- package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts +49 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +27 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
- package/bundles/types/checkout-button/index.d.ts +85 -0
- package/bundles/types/checkout-button/index.d.ts.map +1 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts +21 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts +6 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/base.runner.d.ts +18 -0
- package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts +39 -0
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/index.d.ts +9 -0
- package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/popup.runner.d.ts +35 -0
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/redirect.runner.d.ts +17 -0
- package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
- package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +49 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +39 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +26 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts +4 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts +10 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts +12 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
- package/bundles/types/components/ability-guard.d.ts +12 -0
- package/bundles/types/components/ability-guard.d.ts.map +1 -0
- package/bundles/types/components/background.d.ts +43 -0
- package/bundles/types/components/background.d.ts.map +1 -0
- package/bundles/types/components/container.d.ts +12 -0
- package/bundles/types/components/container.d.ts.map +1 -0
- package/bundles/types/components/dispatcher.d.ts +14 -0
- package/bundles/types/components/dispatcher.d.ts.map +1 -0
- package/bundles/types/components/element-style.d.ts +17 -0
- package/bundles/types/components/element-style.d.ts.map +1 -0
- package/bundles/types/components/flypay-iframe-event.d.ts +15 -0
- package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
- package/{lib/widget/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +2 -1
- package/bundles/types/components/form-interceptor.d.ts.map +1 -0
- package/bundles/types/components/http-core.d.ts +14 -0
- package/bundles/types/components/http-core.d.ts.map +1 -0
- package/bundles/types/components/iframe-event.d.ts +72 -0
- package/bundles/types/components/iframe-event.d.ts.map +1 -0
- package/bundles/types/components/iframe.d.ts +20 -0
- package/bundles/types/components/iframe.d.ts.map +1 -0
- package/bundles/types/components/link.d.ts +27 -0
- package/bundles/types/components/link.d.ts.map +1 -0
- package/bundles/types/components/loader.d.ts +5 -0
- package/bundles/types/components/loader.d.ts.map +1 -0
- package/bundles/types/components/param.d.ts +430 -0
- package/bundles/types/components/param.d.ts.map +1 -0
- package/bundles/types/components/popup.d.ts +30 -0
- package/bundles/types/components/popup.d.ts.map +1 -0
- package/bundles/types/components/storage-dispatcher.d.ts +31 -0
- package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
- package/bundles/types/components/trigger.d.ts +48 -0
- package/bundles/types/components/trigger.d.ts.map +1 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts +5 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
- package/bundles/types/components/wallet-background.d.ts +13 -0
- package/bundles/types/components/wallet-background.d.ts.map +1 -0
- package/bundles/types/components/wallet-trigger.d.ts +19 -0
- package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.cba.d.ts +30 -0
- package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.interface.d.ts +12 -0
- package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.paydock.d.ts +49 -0
- package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
- package/bundles/types/configs/env/index.d.ts +3 -0
- package/bundles/types/configs/env/index.d.ts.map +1 -0
- package/bundles/types/configs/sdk.d.ts +10 -0
- package/bundles/types/configs/sdk.d.ts.map +1 -0
- package/bundles/types/constants/validators.d.ts +45 -0
- package/bundles/types/constants/validators.d.ts.map +1 -0
- package/bundles/types/external-checkout/builder.d.ts +29 -0
- package/bundles/types/external-checkout/builder.d.ts.map +1 -0
- package/bundles/types/external-checkout/checker.d.ts +14 -0
- package/bundles/types/external-checkout/checker.d.ts.map +1 -0
- package/bundles/types/external-checkout/index.d.ts +3 -0
- package/bundles/types/external-checkout/index.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts +9 -0
- package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts +42 -0
- package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts +163 -0
- package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/index.d.ts +3 -0
- package/bundles/types/fraud-prevention/index.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts +79 -0
- package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts +2 -0
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts +20 -0
- package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts.map +1 -0
- package/bundles/types/helper/access-token.d.ts +26 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -0
- package/bundles/types/helper/browser.d.ts +17 -0
- package/bundles/types/helper/browser.d.ts.map +1 -0
- package/bundles/types/helper/deep-clone.d.ts +13 -0
- package/bundles/types/helper/deep-clone.d.ts.map +1 -0
- package/bundles/types/helper/element-id.d.ts +5 -0
- package/bundles/types/helper/element-id.d.ts.map +1 -0
- package/bundles/types/helper/event-emitter.d.ts +7 -0
- package/bundles/types/helper/event-emitter.d.ts.map +1 -0
- package/bundles/types/helper/event-error.d.ts +55 -0
- package/bundles/types/helper/event-error.d.ts.map +1 -0
- package/bundles/types/helper/event.d.ts +10 -0
- package/bundles/types/helper/event.d.ts.map +1 -0
- package/bundles/types/helper/ms.d.ts +6 -0
- package/bundles/types/helper/ms.d.ts.map +1 -0
- package/{lib/widget → bundles/types}/helper/object.d.ts +1 -0
- package/bundles/types/helper/object.d.ts.map +1 -0
- package/bundles/types/helper/process-event-error.d.ts +9 -0
- package/bundles/types/helper/process-event-error.d.ts.map +1 -0
- package/bundles/types/helper/spiner.util.d.ts +6 -0
- package/bundles/types/helper/spiner.util.d.ts.map +1 -0
- package/bundles/types/helper/url.d.ts +5 -0
- package/bundles/types/helper/url.d.ts.map +1 -0
- package/bundles/types/helper/uuid.d.ts +6 -0
- package/bundles/types/helper/uuid.d.ts.map +1 -0
- package/bundles/types/index-cba.d.ts +52 -0
- package/bundles/types/index-cba.d.ts.map +1 -0
- package/bundles/types/index.d.ts +52 -0
- package/bundles/types/index.d.ts.map +1 -0
- package/bundles/types/payment-source/builder.d.ts +23 -0
- package/bundles/types/payment-source/builder.d.ts.map +1 -0
- package/bundles/types/payment-source/index.d.ts +2 -0
- package/bundles/types/payment-source/index.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts +181 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/index.d.ts +35 -0
- package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts +12 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts +93 -0
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/index.d.ts +23 -0
- package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +58 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +17 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
- package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +85 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +83 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +35 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/index.d.ts +105 -0
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/interfaces.d.ts +156 -0
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +25 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts +11 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +86 -0
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
- package/bundles/types/shared/device/device-info.service.d.ts +13 -0
- package/bundles/types/shared/device/device-info.service.d.ts.map +1 -0
- package/bundles/types/shared/http/authorization-strategy.d.ts +41 -0
- package/bundles/types/shared/http/authorization-strategy.d.ts.map +1 -0
- package/bundles/types/shared/http/http-fetcher.d.ts +29 -0
- package/bundles/types/shared/http/http-fetcher.d.ts.map +1 -0
- package/bundles/types/shared/http/http-fetcher.factory.d.ts +17 -0
- package/bundles/types/shared/http/http-fetcher.factory.d.ts.map +1 -0
- package/bundles/types/shared/http/http-request.d.ts +14 -0
- package/bundles/types/shared/http/http-request.d.ts.map +1 -0
- package/bundles/types/shared/http/http-response.dto.d.ts +19 -0
- package/bundles/types/shared/http/http-response.dto.d.ts.map +1 -0
- package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts +12 -0
- package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts.map +1 -0
- package/bundles/types/shared/services/configuration-validation/types.d.ts +73 -0
- package/bundles/types/shared/services/configuration-validation/types.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
- package/bundles/types/shared/shared.constants.d.ts +6 -0
- package/bundles/types/shared/shared.constants.d.ts.map +1 -0
- package/bundles/types/vault-display-widget/index.d.ts +14 -0
- package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts +69 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/enums.d.ts +12 -0
- package/bundles/types/wallet-buttons/enums.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +6 -0
- package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
- package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index.d.ts +138 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts +128 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +321 -0
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +24 -0
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +49 -0
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts +28 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts +26 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts +35 -0
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts +8 -0
- package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts +26 -0
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts +19 -0
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +131 -0
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +252 -0
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +12 -0
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/index.d.ts +245 -0
- package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +44 -0
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts +21 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts +9 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts +13 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts +9 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
- package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +58 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts +5 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +22 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts +5 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts +21 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts +21 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts +164 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +32 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +53 -0
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -0
- package/bundles/types/widget/configuration.d.ts +165 -0
- package/bundles/types/widget/configuration.d.ts.map +1 -0
- package/bundles/types/widget/html-multi-widget.d.ts +337 -0
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
- package/bundles/types/widget/html-widget.d.ts +107 -0
- package/bundles/types/widget/html-widget.d.ts.map +1 -0
- package/bundles/types/widget/index.d.ts +132 -0
- package/bundles/types/widget/index.d.ts.map +1 -0
- package/bundles/types/widget/meta.d.ts +8 -0
- package/bundles/types/widget/meta.d.ts.map +1 -0
- package/bundles/types/widget/multi-widget.d.ts +241 -0
- package/bundles/types/widget/multi-widget.d.ts.map +1 -0
- package/bundles/types/widget/style.d.ts +177 -0
- package/bundles/types/widget/style.d.ts.map +1 -0
- package/bundles/widget.umd.js +38429 -767
- package/bundles/widget.umd.js.d.ts +4777 -0
- package/bundles/widget.umd.js.min.d.ts +4777 -0
- package/bundles/widget.umd.min.js +1 -0
- package/docs/api-canvas3ds.md +158 -0
- package/docs/api-checkout-button.md +912 -0
- package/docs/api-examples.md +65 -0
- package/docs/api-ps-widget.md +585 -0
- package/docs/api-vault-display.md +94 -0
- package/docs/api-widget.md +2542 -0
- package/docs/api-wrapper.md +45 -0
- package/docs/canvas3ds-examples.md +242 -0
- package/docs/cba-header.md +13 -0
- package/docs/cba-license.md +2 -0
- package/docs/checkout-examples.md +248 -0
- package/docs/click-to-pay-examples.md +231 -0
- package/docs/click-to-pay.md +337 -0
- package/docs/fraud-prevention-examples.md +154 -0
- package/docs/fraud-prevention.md +0 -0
- package/docs/header.md +15 -0
- package/docs/html/layout.html +79 -0
- package/docs/html/marked.js +23 -0
- package/docs/html/style.css +365 -0
- package/docs/install/npm.content.md +16 -0
- package/docs/install/npm.example.md +24 -0
- package/docs/install/umd.content.md +20 -0
- package/docs/install/umd.example.md +6 -0
- package/docs/install.md +43 -0
- package/docs/install.readme.t.md +17 -0
- package/docs/install.slate.t.md +17 -0
- package/docs/license.md +2 -0
- package/docs/partials/header.hbs +3 -0
- package/docs/paypal-data-collector-examples.md +59 -0
- package/docs/paypal-data-collector.md +149 -0
- package/docs/paypal-save-payment-source-examples.md +63 -0
- package/docs/paypal-save-payment-source.md +256 -0
- package/docs/ps-examples.md +129 -0
- package/docs/vault-display-example.md +132 -0
- package/docs/wallet-buttons-examples.md +638 -0
- package/docs/wallet-buttons-express-examples.md +201 -0
- package/docs/wallet-buttons-express.md +1076 -0
- package/docs/wallet-buttons.md +625 -0
- package/docs/wallet-cba-buttons-examples.md +388 -0
- package/docs/widget-examples.md +271 -0
- package/examples/html-widget/actions.html +47 -0
- package/examples/html-widget/events.html +2 -2
- package/examples/html-widget/form.html +2 -3
- package/examples/html-widget/html-styles.html +29 -0
- package/examples/html-widget/insert-input.html +2 -2
- package/examples/html-widget/optional-settings.html +30 -0
- package/examples/html-widget/simple.html +3 -3
- package/examples/html-widget/styles.html +3 -3
- package/examples/multi-html-widget/extend.html +7 -2
- package/examples/multi-html-widget/simple.html +6 -8
- package/package.json +225 -55
- package/slate.md +2218 -0
- package/.idea/client-sdk-3.iml +0 -12
- package/.idea/jsLibraryMappings.xml +0 -7
- package/.idea/misc.xml +0 -16
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -639
- package/.npmignore +0 -14
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -3
- package/lib/index.js.map +0 -1
- package/lib/widget/components/container.d.ts +0 -9
- package/lib/widget/components/container.js +0 -18
- package/lib/widget/components/container.js.map +0 -1
- package/lib/widget/components/env.d.ts +0 -19
- package/lib/widget/components/env.js +0 -33
- package/lib/widget/components/env.js.map +0 -1
- package/lib/widget/components/event.d.ts +0 -26
- package/lib/widget/components/event.js +0 -49
- package/lib/widget/components/event.js.map +0 -1
- package/lib/widget/components/form-Interceptor.js +0 -38
- package/lib/widget/components/form-Interceptor.js.map +0 -1
- package/lib/widget/components/iframe.d.ts +0 -11
- package/lib/widget/components/iframe.js +0 -31
- package/lib/widget/components/iframe.js.map +0 -1
- package/lib/widget/components/link.d.ts +0 -13
- package/lib/widget/components/link.js +0 -37
- package/lib/widget/components/link.js.map +0 -1
- package/lib/widget/components/param.d.ts +0 -39
- package/lib/widget/components/param.js +0 -21
- package/lib/widget/components/param.js.map +0 -1
- package/lib/widget/components/trigger.d.ts +0 -19
- package/lib/widget/components/trigger.js +0 -22
- package/lib/widget/components/trigger.js.map +0 -1
- package/lib/widget/configuration.d.ts +0 -59
- package/lib/widget/configuration.js +0 -134
- package/lib/widget/configuration.js.map +0 -1
- package/lib/widget/helper/event.d.ts +0 -8
- package/lib/widget/helper/event.js +0 -15
- package/lib/widget/helper/event.js.map +0 -1
- package/lib/widget/helper/object.js +0 -6
- package/lib/widget/helper/object.js.map +0 -1
- package/lib/widget/helper/url.d.ts +0 -3
- package/lib/widget/helper/url.js +0 -8
- package/lib/widget/helper/url.js.map +0 -1
- package/lib/widget/html-multi-widget.d.ts +0 -56
- package/lib/widget/html-multi-widget.js +0 -89
- package/lib/widget/html-multi-widget.js.map +0 -1
- package/lib/widget/html-widget.d.ts +0 -37
- package/lib/widget/html-widget.js +0 -50
- package/lib/widget/html-widget.js.map +0 -1
- package/lib/widget/index.d.ts +0 -5
- package/lib/widget/index.js +0 -6
- package/lib/widget/index.js.map +0 -1
- package/lib/widget/multi-widget.d.ts +0 -22
- package/lib/widget/multi-widget.js +0 -83
- package/lib/widget/multi-widget.js.map +0 -1
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
## Classes
|
|
2
|
+
|
|
3
|
+
<dl>
|
|
4
|
+
<dt><a href="#WalletButtons">WalletButtons</a></dt>
|
|
5
|
+
<dd><p>Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay, Flypay V2, Paypal, Afterpay)</p>
|
|
6
|
+
</dd>
|
|
7
|
+
</dl>
|
|
8
|
+
|
|
9
|
+
## Constants
|
|
10
|
+
|
|
11
|
+
<dl>
|
|
12
|
+
<dt><a href="#EVENT">EVENT</a> : <code>object</code></dt>
|
|
13
|
+
<dd><p>List of available event's name in the wallet button lifecycle</p>
|
|
14
|
+
</dd>
|
|
15
|
+
</dl>
|
|
16
|
+
|
|
17
|
+
## Interfaces
|
|
18
|
+
|
|
19
|
+
<dl>
|
|
20
|
+
<dt><a href="#IEventData">IEventData</a></dt>
|
|
21
|
+
<dd><p>Interface of data from events.</p>
|
|
22
|
+
</dd>
|
|
23
|
+
<dt><a href="#IWalletPaymentSuccessful">IWalletPaymentSuccessful</a></dt>
|
|
24
|
+
<dd><p>Interface of data from a successful payment result.</p>
|
|
25
|
+
</dd>
|
|
26
|
+
<dt><a href="#IWalletUpdate">IWalletUpdate</a></dt>
|
|
27
|
+
<dd><p>Interface of data from an update event.</p>
|
|
28
|
+
</dd>
|
|
29
|
+
<dt><a href="#IWalletOnClick">IWalletOnClick</a></dt>
|
|
30
|
+
<dd><p>Interface of data from a wallet onClick event.</p>
|
|
31
|
+
</dd>
|
|
32
|
+
<dt><a href="#IWalletUnavailable">IWalletUnavailable</a></dt>
|
|
33
|
+
<dd><p>Interface of data from an unavailable event.</p>
|
|
34
|
+
</dd>
|
|
35
|
+
<dt><a href="#IWalletUpdateData">IWalletUpdateData</a></dt>
|
|
36
|
+
<dd><p>Interface of data for wallet button <code>update</code> call.</p>
|
|
37
|
+
</dd>
|
|
38
|
+
<dt><a href="#IWalletMeta">IWalletMeta</a> : <code>object</code></dt>
|
|
39
|
+
<dd><p>Interface of data used by the wallet checkout and payment proccess.</p>
|
|
40
|
+
</dd>
|
|
41
|
+
<dt><a href="#IApplePayShippingOption">IApplePayShippingOption</a> : <code>object</code></dt>
|
|
42
|
+
<dd><p>Interface of Shipping Options for ApplePay</p>
|
|
43
|
+
</dd>
|
|
44
|
+
<dt><a href="#IGooglePayShippingOption">IGooglePayShippingOption</a> : <code>object</code></dt>
|
|
45
|
+
<dd><p>Interface of Shipping Options for GooglePay</p>
|
|
46
|
+
</dd>
|
|
47
|
+
<dt><a href="#IPayPalShippingOption">IPayPalShippingOption</a> : <code>object</code></dt>
|
|
48
|
+
<dd><p>Interface of Shipping Options for PayPal</p>
|
|
49
|
+
</dd>
|
|
50
|
+
</dl>
|
|
51
|
+
|
|
52
|
+
<a name="IEventData" id="IEventData" href="#IEventData"> </a>
|
|
53
|
+
|
|
54
|
+
## IEventData
|
|
55
|
+
Interface of data from events.
|
|
56
|
+
|
|
57
|
+
**Kind**: global interface
|
|
58
|
+
|
|
59
|
+
| Param | Type |
|
|
60
|
+
| --- | --- |
|
|
61
|
+
| event | <code>string</code> |
|
|
62
|
+
| data | <code>void</code> \| [<code>IWalletPaymentSuccessful</code>](#IWalletPaymentSuccessful) \| [<code>IWalletUpdate</code>](#IWalletUpdate) \| [<code>IWalletUnavailable</code>](#IWalletUnavailable) \| [<code>IWalletOnClick</code>](#IWalletOnClick) \| <code>any</code> |
|
|
63
|
+
|
|
64
|
+
<a name="IWalletPaymentSuccessful" id="IWalletPaymentSuccessful" href="#IWalletPaymentSuccessful"> </a>
|
|
65
|
+
|
|
66
|
+
## IWalletPaymentSuccessful
|
|
67
|
+
Interface of data from a successful payment result.
|
|
68
|
+
|
|
69
|
+
**Kind**: global interface
|
|
70
|
+
|
|
71
|
+
| Param | Type |
|
|
72
|
+
| --- | --- |
|
|
73
|
+
| id | <code>string</code> |
|
|
74
|
+
| amount | <code>number</code> |
|
|
75
|
+
| currency | <code>string</code> |
|
|
76
|
+
| status | <code>string</code> |
|
|
77
|
+
| [payer_name] | <code>string</code> |
|
|
78
|
+
| [payer_email] | <code>string</code> |
|
|
79
|
+
| [payer_phone] | <code>string</code> |
|
|
80
|
+
|
|
81
|
+
<a name="IWalletUpdate" id="IWalletUpdate" href="#IWalletUpdate"> </a>
|
|
82
|
+
|
|
83
|
+
## IWalletUpdate
|
|
84
|
+
Interface of data from an update event.
|
|
85
|
+
|
|
86
|
+
**Kind**: global interface
|
|
87
|
+
|
|
88
|
+
| Param | Type |
|
|
89
|
+
| --- | --- |
|
|
90
|
+
| [wallet_response_code] | <code>string</code> |
|
|
91
|
+
| [wallet_session_id] | <code>string</code> |
|
|
92
|
+
| [payment_source] | <code>object</code> |
|
|
93
|
+
| [payment_source.wallet_payment_method_id] | <code>string</code> |
|
|
94
|
+
| [payment_source.card_number_last4] | <code>string</code> |
|
|
95
|
+
| [payment_source.card_scheme] | <code>string</code> |
|
|
96
|
+
| [wallet_loyalty_account] | <code>object</code> |
|
|
97
|
+
| [wallet_loyalty_account.id] | <code>string</code> |
|
|
98
|
+
| [wallet_loyalty_account.barcode] | <code>string</code> |
|
|
99
|
+
| [shipping] | <code>object</code> |
|
|
100
|
+
| [shipping.address_line1] | <code>string</code> |
|
|
101
|
+
| [shipping.address_line2] | <code>string</code> |
|
|
102
|
+
| [shipping.address_postcode] | <code>string</code> |
|
|
103
|
+
| [shipping.address_city] | <code>string</code> |
|
|
104
|
+
| [shipping.address_state] | <code>string</code> |
|
|
105
|
+
| [shipping.address_country] | <code>string</code> |
|
|
106
|
+
| [shipping.address_company] | <code>string</code> |
|
|
107
|
+
| [shipping.post_office_box_number] | <code>string</code> |
|
|
108
|
+
| [shipping.wallet_address_id] | <code>string</code> |
|
|
109
|
+
| [shipping.wallet_address_name] | <code>string</code> |
|
|
110
|
+
| [shipping.wallet_address_created_timestamp] | <code>string</code> |
|
|
111
|
+
| [shipping.wallet_address_updated_timestamp] | <code>string</code> |
|
|
112
|
+
|
|
113
|
+
<a name="IWalletOnClick" id="IWalletOnClick" href="#IWalletOnClick"> </a>
|
|
114
|
+
|
|
115
|
+
## IWalletOnClick
|
|
116
|
+
Interface of data from a wallet onClick event.
|
|
117
|
+
|
|
118
|
+
**Kind**: global interface
|
|
119
|
+
|
|
120
|
+
| Param | Description |
|
|
121
|
+
| --- | --- |
|
|
122
|
+
| attachResult | Method to be called that attaches a result to the wallet onClick operation. When handler is synchronous, this method is optionally called with a boolean flag indicating validation result. When handler executes asynchronous operations, this method must be called with the Promise to have the wallet process wait for its completion or rejection. |
|
|
123
|
+
|
|
124
|
+
<a name="IWalletUnavailable" id="IWalletUnavailable" href="#IWalletUnavailable"> </a>
|
|
125
|
+
|
|
126
|
+
## IWalletUnavailable
|
|
127
|
+
Interface of data from an unavailable event.
|
|
128
|
+
|
|
129
|
+
**Kind**: global interface
|
|
130
|
+
|
|
131
|
+
| Param | Type | Description |
|
|
132
|
+
| --- | --- | --- |
|
|
133
|
+
| [wallet] | <code>string</code> | For gateways with more than one wallet button available (e.g: MPGS with ApplePay and GooglePay). Possible values for wallet are 'apple' or 'google'. |
|
|
134
|
+
| [type] | <code>string</code> | Event Code. Value can be 'create_order_id_error' on FlypayV2 order creation failure. Optional for [Flypay V2]. N/A for other wallets. |
|
|
135
|
+
| [error_code] | <code>string</code> | Event Error Code. Value can be any error code return from Paydock's API. Optional for [Flypay V2]. N/A for other wallets. + |
|
|
136
|
+
|
|
137
|
+
<a name="IWalletUpdateData" id="IWalletUpdateData" href="#IWalletUpdateData"> </a>
|
|
138
|
+
|
|
139
|
+
## IWalletUpdateData
|
|
140
|
+
Interface of data for wallet button `update` call.
|
|
141
|
+
|
|
142
|
+
**Kind**: global interface
|
|
143
|
+
|
|
144
|
+
| Param | Type |
|
|
145
|
+
| --- | --- |
|
|
146
|
+
| success | <code>boolean</code> |
|
|
147
|
+
|
|
148
|
+
<a name="IWalletMeta" id="IWalletMeta" href="#IWalletMeta"> </a>
|
|
149
|
+
|
|
150
|
+
## IWalletMeta : <code>object</code>
|
|
151
|
+
Interface of data used by the wallet checkout and payment proccess.
|
|
152
|
+
|
|
153
|
+
**Kind**: global interface
|
|
154
|
+
|
|
155
|
+
| Param | Type | Description |
|
|
156
|
+
| --- | --- | --- |
|
|
157
|
+
| [amount_label] | <code>string</code> | Label shown next to the total amount to be paid. Required for [Stripe, ApplePay, GooglePay]. N/A for [FlyPay, Flypay V2, PayPal, Afterpay]. |
|
|
158
|
+
| [country] | <code>string</code> | Country of the user. 2 letter ISO code format. Required for [Stripe, ApplePay, GooglePay, Afterpay]. N/A for [FlyPay, Flypay V2, PayPal]. |
|
|
159
|
+
| [pay_later] | <code>boolean</code> | Used to enable Pay Later feature in PayPal Smart Checkout WalletButton integration when available. Optional for [PayPal]. N/A for other wallets. |
|
|
160
|
+
| [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. |
|
|
161
|
+
| [standalone] | <code>boolean</code> | Used to enable Standalone Buttons feature in PayPal Smart Checkout WalletButton integration. Used together with `pay_later`. Optional for [PayPal]. N/A for other wallets. |
|
|
162
|
+
| [show_billing_address] | <code>boolean</code> | Used to hide/show the billing address on ApplePay and GooglePay popups. Default value is false. Optional for [ApplePay, GooglePay]. N/A for other wallets. |
|
|
163
|
+
| [request_payer_name] | <code>boolean</code> | Used mainly for fraud purposes - recommended set to true. Optional for [Stripe]. N/A for other wallets. |
|
|
164
|
+
| [request_payer_email] | <code>boolean</code> | Used mainly for fraud purposes - recommended set to true. Optional for [Stripe]. N/A for other wallets. |
|
|
165
|
+
| [request_payer_phone] | <code>boolean</code> | Used mainly for fraud purposes - recommended set to true. Optional for [Stripe]. N/A for other wallets. |
|
|
166
|
+
| [access_token] | <code>string</code> | Used for Flypay V2 express flow. Optional for [Flypay V2]. N/A for other wallets. |
|
|
167
|
+
| [refresh_token] | <code>string</code> | Used for Flypay V2 express flow. Optional for [Flypay V2]. N/A for other wallets. |
|
|
168
|
+
| [request_shipping] | <code>boolean</code> | Used to request or not shipping address in the Wallet checkout, being able to handle amount changes via the `update` event. Optional for [FlyPay, PayPal, ApplePay, GooglePay]. N/A for [Flypay V2, Stripe, Afterpay]. |
|
|
169
|
+
| [shipping_options] | [<code>Array.<IApplePayShippingOption></code>](#IApplePayShippingOption) \| [<code>Array.<IPayPalShippingOption></code>](#IPayPalShippingOption) | Used to provide available shipping options.(To use shipping_options the request_shipping flag should be true). Optional for [ApplePay]. N/A for the other wallets. |
|
|
170
|
+
| [merchant_name] | <code>string</code> | Merchant Name used for GooglePay integration via MPGS. Required for [GooglePay]. N/A for other wallets. |
|
|
171
|
+
| [raw_data_initialization] | <code>object</code> | Used to provide values to initialize wallet with raw data. Optional for [ApplePay]. N/A for the other wallets. |
|
|
172
|
+
| [style] | <code>object</code> | For **Paypal**: used to style the buttons, check possible values in the [style guide](https://developer.paypal.com/docs/business/checkout/reference/style-guide). When `standalone` and `pay_later`, extra options can be provided in `style.messages` with the [messages style options](https://developer.paypal.com/docs/checkout/pay-later/us/integrate/reference/#stylelayout). Also used at **ApplePay**, **GooglePay** and **Afterpay** to select button type. Optional for [PayPal, ApplePay, GooglePay, Afterpay]. N/A for [Stripe, FlyPay, Flypay V2]. |
|
|
173
|
+
| [style.button_type] | <code>object</code> | Used to select ApplePay button type (e.g: 'buy','donate', etc), check possible values [here](https://developer.apple.com/documentation/apple_pay_on_the_web/displaying_apple_pay_buttons_using_css). Also select button type for GooglePay (check GooglePayStyles) and Afterpay (check AfterpayStyles). Optional for [ApplePay, GooglePay, Afterpay]. N/A for other wallets. |
|
|
174
|
+
| [style.button_style] | <code>object</code> | Used to select ApplePay button style (e.g: 'black', 'white', etc), check possible values [here](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaybuttonstyle). Optional for [ApplePay]. N/A for other wallets. |
|
|
175
|
+
| [style.height] | <code>object</code> | Used to select Afterpay button height. Optional for [Afterpay]. N/A for other wallets. |
|
|
176
|
+
| [wallets] | <code>array</code> | By default if this is not sent or empty, we will try to show either Apple Pay or Google Pay buttons. This can be limited sending the following array in this field: ['apple','google]. Optional for [Stripe, ApplePay, GooglePay]. N/A for other wallets. |
|
|
177
|
+
| [client_id] | <code>string</code> | Client ID to be used in the provider system. Required for [Flypay V2]. N/A for [FlyPay, GooglePay, ApplePay, PayPal, Afterpay]. |
|
|
178
|
+
| [apple_pay_capabilities] | <code>Array.<('credentials\_available'\|'credentials\_status\_unknown'\|'credentials\_unavailable')></code> | Device capabilities needed for wallet button to be available. For further information about refer to [the documentation](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/4440085-applepaycapabilities). If the recognized value is credentials_status_unknown, the payment most possibly cannot be finished on the web, and the buyer must complete it on a compatible device, like Iphone, via QR scan. Optional parameter for [ApplePay]. N/A for [FlyPay, GooglePay, Flypay V2, PayPal, Afterpay]. |
|
|
179
|
+
|
|
180
|
+
<a name="IApplePayShippingOption" id="IApplePayShippingOption" href="#IApplePayShippingOption"> </a>
|
|
181
|
+
|
|
182
|
+
## IApplePayShippingOption : <code>object</code>
|
|
183
|
+
Interface of Shipping Options for ApplePay
|
|
184
|
+
|
|
185
|
+
**Kind**: global interface
|
|
186
|
+
|
|
187
|
+
| Param | Type | Description |
|
|
188
|
+
| --- | --- | --- |
|
|
189
|
+
| [id] | <code>string</code> | Identifier of the Shipping Option. Required. |
|
|
190
|
+
| [label] | <code>string</code> | Identifier of the Shipping Option. Required. |
|
|
191
|
+
| [amount] | <code>string</code> | Amount of the Shipping Option. Required. |
|
|
192
|
+
| [detail] | <code>string</code> | Details of the Shipping Option. Required. |
|
|
193
|
+
| [type] | <code>string</code> | Type of the Shipping Option. Values can be 'ELECTRONIC', 'GROUND', 'NOT_SHIPPED', 'OVERNIGHT', 'PICKUP', 'PRIORITY', 'SAME_DAY'. Optional. |
|
|
194
|
+
|
|
195
|
+
<a name="IGooglePayShippingOption" id="IGooglePayShippingOption" href="#IGooglePayShippingOption"> </a>
|
|
196
|
+
|
|
197
|
+
## IGooglePayShippingOption : <code>object</code>
|
|
198
|
+
Interface of Shipping Options for GooglePay
|
|
199
|
+
|
|
200
|
+
**Kind**: global interface
|
|
201
|
+
|
|
202
|
+
| Param | Type | Description |
|
|
203
|
+
| --- | --- | --- |
|
|
204
|
+
| [id] | <code>string</code> | Identifier of the Shipping Option. Required. |
|
|
205
|
+
| [label] | <code>string</code> | Identifier of the Shipping Option. Required. |
|
|
206
|
+
| [detail] | <code>string</code> | Details of the Shipping Option. Optional. |
|
|
207
|
+
| [type] | <code>string</code> | Type of the Shipping Option. Values can be 'ELECTRONIC', 'GROUND', 'NOT_SHIPPED', 'OVERNIGHT', 'PICKUP', 'PRIORITY', 'SAME_DAY'. Optional. |
|
|
208
|
+
|
|
209
|
+
<a name="IPayPalShippingOption" id="IPayPalShippingOption" href="#IPayPalShippingOption"> </a>
|
|
210
|
+
|
|
211
|
+
## IPayPalShippingOption : <code>object</code>
|
|
212
|
+
Interface of Shipping Options for PayPal
|
|
213
|
+
|
|
214
|
+
**Kind**: global interface
|
|
215
|
+
|
|
216
|
+
| Param | Type | Description |
|
|
217
|
+
| --- | --- | --- |
|
|
218
|
+
| [id] | <code>string</code> | Identifier of the Shipping Option. Required. |
|
|
219
|
+
| [label] | <code>string</code> | Identifier of the Shipping Option. Required. |
|
|
220
|
+
| [amount] | <code>string</code> | Amount of the Shipping Option. Required. |
|
|
221
|
+
| [currency] | <code>string</code> | Currency of the Shipping Option. Required. |
|
|
222
|
+
| [type] | <code>string</code> | Type of the Shipping Option. Values can be 'SHIPPING' or 'PICKUP'. Required. |
|
|
223
|
+
|
|
224
|
+
<a name="WalletButtons" id="WalletButtons" href="#WalletButtons"> </a>
|
|
225
|
+
|
|
226
|
+
## WalletButtons
|
|
227
|
+
Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay, Flypay V2, Paypal, Afterpay)
|
|
228
|
+
|
|
229
|
+
**Kind**: global class
|
|
230
|
+
|
|
231
|
+
* [WalletButtons](#WalletButtons)
|
|
232
|
+
* [new WalletButtons(selector, chargeToken, meta)](#new_WalletButtons_new)
|
|
233
|
+
* [.load()](#WalletButtons+load)
|
|
234
|
+
* [.update()](#WalletButtons+update)
|
|
235
|
+
* [.setEnv(env, [alias])](#WalletButtons+setEnv)
|
|
236
|
+
* [.enable()](#WalletButtons+enable)
|
|
237
|
+
* [.disable()](#WalletButtons+disable)
|
|
238
|
+
* [.close()](#WalletButtons+close)
|
|
239
|
+
* [.on(eventName, [cb])](#WalletButtons+on) ⇒ [<code>Promise.<IEventData></code>](#IEventData) \| <code>void</code>
|
|
240
|
+
* [.onUnavailable([handler])](#WalletButtons+onUnavailable)
|
|
241
|
+
* [.onUpdate([handler])](#WalletButtons+onUpdate)
|
|
242
|
+
* [.onPaymentSuccessful([handler])](#WalletButtons+onPaymentSuccessful)
|
|
243
|
+
* [.onPaymentInReview([handler])](#WalletButtons+onPaymentInReview)
|
|
244
|
+
* [.onPaymentError([handler])](#WalletButtons+onPaymentError)
|
|
245
|
+
* [.onAuthTokensChanged([handler])](#WalletButtons+onAuthTokensChanged)
|
|
246
|
+
* [.onClick(handler)](#WalletButtons+onClick)
|
|
247
|
+
* [.onCheckoutOpen(handler)](#WalletButtons+onCheckoutOpen)
|
|
248
|
+
* [.onCheckoutClose(handler)](#WalletButtons+onCheckoutClose)
|
|
249
|
+
|
|
250
|
+
<a name="new_WalletButtons_new" id="new_WalletButtons_new" href="#new_WalletButtons_new"> </a>
|
|
251
|
+
|
|
252
|
+
### new WalletButtons(selector, chargeToken, meta)
|
|
253
|
+
|
|
254
|
+
| Param | Type | Description |
|
|
255
|
+
| --- | --- | --- |
|
|
256
|
+
| selector | <code>string</code> | Selector of html element. Container for the WalletButtons. |
|
|
257
|
+
| chargeToken | <code>string</code> | token for the wallet transaction, created with a secure call to `POST charges/wallet`. |
|
|
258
|
+
| meta | [<code>IWalletMeta</code>](#IWalletMeta) | data that configures the E-Wallet, which can be shown on checkout page and configures required customer information. |
|
|
259
|
+
|
|
260
|
+
**Example**
|
|
261
|
+
```js
|
|
262
|
+
var button = new WalletButtons('#wallet-buttons', 'charge-token', { amount_label: 'Total', country: 'us' });
|
|
263
|
+
```
|
|
264
|
+
<a name="WalletButtons+load" id="WalletButtons+load" href="#WalletButtons+load"> </a>
|
|
265
|
+
|
|
266
|
+
### walletButtons.load()
|
|
267
|
+
Initializes the availability checks and inserts the button if possible.
|
|
268
|
+
Otherwise function onUnavailable(handler: VoidFunction) will be called.
|
|
269
|
+
|
|
270
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
271
|
+
**Example**
|
|
272
|
+
```js
|
|
273
|
+
var button = new WalletButtons(
|
|
274
|
+
'#buttons',
|
|
275
|
+
token,
|
|
276
|
+
{
|
|
277
|
+
amount_label: 'Total',
|
|
278
|
+
country: 'DE',
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
button.load();
|
|
282
|
+
```
|
|
283
|
+
<a name="WalletButtons+update" id="WalletButtons+update" href="#WalletButtons+update"> </a>
|
|
284
|
+
|
|
285
|
+
### walletButtons.update()
|
|
286
|
+
Triggers the update process of the wallet, if available.
|
|
287
|
+
Currently supported by Flypay, Paypal and ApplePay/GooglePay via MPGS Wallets.
|
|
288
|
+
|
|
289
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
290
|
+
**Example**
|
|
291
|
+
```js
|
|
292
|
+
var button = new WalletButtons(
|
|
293
|
+
'#buttons',
|
|
294
|
+
token,
|
|
295
|
+
{
|
|
296
|
+
amount_label: 'Total',
|
|
297
|
+
country: 'DE',
|
|
298
|
+
}
|
|
299
|
+
);
|
|
300
|
+
button.on('update', (data) => {
|
|
301
|
+
updateChargeAmountInBackend(data);
|
|
302
|
+
button.update({ success: true });
|
|
303
|
+
});
|
|
304
|
+
```
|
|
305
|
+
**Example**
|
|
306
|
+
```js
|
|
307
|
+
// ApplePay via MPGS example:
|
|
308
|
+
var button = new WalletButtons(
|
|
309
|
+
'#buttons',
|
|
310
|
+
token,
|
|
311
|
+
{
|
|
312
|
+
amount_label: 'Total',
|
|
313
|
+
country: 'AU',
|
|
314
|
+
...
|
|
315
|
+
}
|
|
316
|
+
);
|
|
317
|
+
button.on('update', (data) => {
|
|
318
|
+
updateChargeAmountInBackend(data);
|
|
319
|
+
button.update({
|
|
320
|
+
success: true,
|
|
321
|
+
body: {
|
|
322
|
+
amount: 15,
|
|
323
|
+
shipping_options: [
|
|
324
|
+
{
|
|
325
|
+
id: "NEW-FreeShip",
|
|
326
|
+
label: "NEW - Free Shipping",
|
|
327
|
+
detail: "Arrives in 3 to 5 days",
|
|
328
|
+
amount: "0.00"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
id: "NEW - FastShip",
|
|
332
|
+
label: "NEW - Fast Shipping",
|
|
333
|
+
detail: "Arrives in less than 1 day",
|
|
334
|
+
amount: "10.00"
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
});
|
|
340
|
+
```
|
|
341
|
+
<a name="WalletButtons+setEnv" id="WalletButtons+setEnv" href="#WalletButtons+setEnv"> </a>
|
|
342
|
+
|
|
343
|
+
### walletButtons.setEnv(env, [alias])
|
|
344
|
+
Current method can change environment. By default environment = sandbox.
|
|
345
|
+
Also we can change domain alias for this environment. By default domain_alias = paydock.com
|
|
346
|
+
Bear in mind that you must set an environment before calling `button.load()`.
|
|
347
|
+
|
|
348
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
349
|
+
|
|
350
|
+
| Param | Type | Description |
|
|
351
|
+
| --- | --- | --- |
|
|
352
|
+
| env | <code>string</code> | sandbox, production |
|
|
353
|
+
| [alias] | <code>string</code> | Own domain alias |
|
|
354
|
+
|
|
355
|
+
**Example**
|
|
356
|
+
```js
|
|
357
|
+
button.setEnv('production', 'paydock.com');
|
|
358
|
+
```
|
|
359
|
+
<a name="WalletButtons+enable" id="WalletButtons+enable" href="#WalletButtons+enable"> </a>
|
|
360
|
+
|
|
361
|
+
### walletButtons.enable()
|
|
362
|
+
Current method can enable the payment button. This method is only supported for Flypay V2.
|
|
363
|
+
|
|
364
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
365
|
+
**Example**
|
|
366
|
+
```js
|
|
367
|
+
button.enable();
|
|
368
|
+
```
|
|
369
|
+
<a name="WalletButtons+disable" id="WalletButtons+disable" href="#WalletButtons+disable"> </a>
|
|
370
|
+
|
|
371
|
+
### walletButtons.disable()
|
|
372
|
+
Current method can disable the payment button. This method is only supported for Flypay V2.
|
|
373
|
+
|
|
374
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
375
|
+
**Example**
|
|
376
|
+
```js
|
|
377
|
+
button.disable('production', 'paydock.com');
|
|
378
|
+
```
|
|
379
|
+
<a name="WalletButtons+close" id="WalletButtons+close" href="#WalletButtons+close"> </a>
|
|
380
|
+
|
|
381
|
+
### walletButtons.close()
|
|
382
|
+
Closes the checkout forcibly. Currently supported in Flypay wallet.
|
|
383
|
+
|
|
384
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
385
|
+
**Example**
|
|
386
|
+
```js
|
|
387
|
+
button.close();
|
|
388
|
+
```
|
|
389
|
+
<a name="WalletButtons+on" id="WalletButtons+on" href="#WalletButtons+on"> </a>
|
|
390
|
+
|
|
391
|
+
### walletButtons.on(eventName, [cb]) ⇒ [<code>Promise.<IEventData></code>](#IEventData) \| <code>void</code>
|
|
392
|
+
Listen to events of button. `unavailable` returns no data, `paymentSuccessful` returns IWalletPaymentSuccessful
|
|
393
|
+
for Stripe or full response for Flypay, and `paymentError` an error.
|
|
394
|
+
|
|
395
|
+
NOTE: when listening for the 'update' event, make sure to call the `button.update(result)` method on completion.
|
|
396
|
+
|
|
397
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
398
|
+
|
|
399
|
+
| Param | Type | Description |
|
|
400
|
+
| --- | --- | --- |
|
|
401
|
+
| eventName | <code>string</code> | Available event names [EVENT](#EVENT) |
|
|
402
|
+
| [cb] | <code>listener</code> | |
|
|
403
|
+
|
|
404
|
+
**Example**
|
|
405
|
+
```js
|
|
406
|
+
button.on('paymentSuccessful', function (data) {
|
|
407
|
+
console.log(data);
|
|
408
|
+
});
|
|
409
|
+
// or
|
|
410
|
+
button.on('unavailable').then(function () {
|
|
411
|
+
console.log('No button is available);
|
|
412
|
+
});
|
|
413
|
+
```
|
|
414
|
+
<a name="WalletButtons+onUnavailable" id="WalletButtons+onUnavailable" href="#WalletButtons+onUnavailable"> </a>
|
|
415
|
+
|
|
416
|
+
### walletButtons.onUnavailable([handler])
|
|
417
|
+
User to subscribe to the no button available event. This method is used after loading when the button is not available.
|
|
418
|
+
For MPGS, since can have more than one wallet button configured (ApplePay/GooglePay) you will receive a body (({ wallet: WALLET_TYPE.GOOGLE }) or ({ wallet: WALLET_TYPE.APPLE })) indicating which button is unavailable
|
|
419
|
+
Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
420
|
+
|
|
421
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
422
|
+
|
|
423
|
+
| Param | Type | Description |
|
|
424
|
+
| --- | --- | --- |
|
|
425
|
+
| [handler] | <code>listener</code> | Function to be called when no button is available. |
|
|
426
|
+
|
|
427
|
+
**Example**
|
|
428
|
+
```js
|
|
429
|
+
button.onUnavailable(() => {
|
|
430
|
+
console.log('No wallet buttons available');
|
|
431
|
+
});
|
|
432
|
+
```
|
|
433
|
+
**Example**
|
|
434
|
+
```js
|
|
435
|
+
button.onUnavailable().then(() => console.log('No wallet buttons available'));
|
|
436
|
+
```
|
|
437
|
+
**Example**
|
|
438
|
+
```js
|
|
439
|
+
button.onUnavailable(function (data) {console.log('data.wallet :: ', data.wallet)});
|
|
440
|
+
```
|
|
441
|
+
<a name="WalletButtons+onUpdate" id="WalletButtons+onUpdate" href="#WalletButtons+onUpdate"> </a>
|
|
442
|
+
|
|
443
|
+
### walletButtons.onUpdate([handler])
|
|
444
|
+
If the wallet performs some update in the checkout process, the function passed as parameter will be called.
|
|
445
|
+
|
|
446
|
+
NOTE: make sure to call the `button.update(result)` method on handler completion.
|
|
447
|
+
|
|
448
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
449
|
+
|
|
450
|
+
| Param | Type | Description |
|
|
451
|
+
| --- | --- | --- |
|
|
452
|
+
| [handler] | <code>listener</code> | Function to be called when the payment was successful. |
|
|
453
|
+
|
|
454
|
+
**Example**
|
|
455
|
+
```js
|
|
456
|
+
button.onUpdate((data) => {
|
|
457
|
+
button.update({ success: true });
|
|
458
|
+
});
|
|
459
|
+
```
|
|
460
|
+
**Example**
|
|
461
|
+
```js
|
|
462
|
+
button.onUpdate().then((data) => throw new Error());
|
|
463
|
+
```
|
|
464
|
+
<a name="WalletButtons+onPaymentSuccessful" id="WalletButtons+onPaymentSuccessful" href="#WalletButtons+onPaymentSuccessful"> </a>
|
|
465
|
+
|
|
466
|
+
### walletButtons.onPaymentSuccessful([handler])
|
|
467
|
+
If the payment was successful, the function passed as parameter will be called.
|
|
468
|
+
Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
469
|
+
|
|
470
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
471
|
+
|
|
472
|
+
| Param | Type | Description |
|
|
473
|
+
| --- | --- | --- |
|
|
474
|
+
| [handler] | <code>listener</code> | Function to be called when the payment was successful. |
|
|
475
|
+
|
|
476
|
+
**Example**
|
|
477
|
+
```js
|
|
478
|
+
button.onPaymentSuccessful((data) => {
|
|
479
|
+
console.log('Payment successful!');
|
|
480
|
+
});
|
|
481
|
+
```
|
|
482
|
+
**Example**
|
|
483
|
+
```js
|
|
484
|
+
button.onPaymentSuccessful().then((data) => console.log('Payment successful!'));
|
|
485
|
+
```
|
|
486
|
+
<a name="WalletButtons+onPaymentInReview" id="WalletButtons+onPaymentInReview" href="#WalletButtons+onPaymentInReview"> </a>
|
|
487
|
+
|
|
488
|
+
### walletButtons.onPaymentInReview([handler])
|
|
489
|
+
If the payment was left in fraud review, the function passed as parameter will be called.
|
|
490
|
+
Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
491
|
+
|
|
492
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
493
|
+
|
|
494
|
+
| Param | Type | Description |
|
|
495
|
+
| --- | --- | --- |
|
|
496
|
+
| [handler] | <code>listener</code> | Function to be called when the payment was left in fraud review status. |
|
|
497
|
+
|
|
498
|
+
**Example**
|
|
499
|
+
```js
|
|
500
|
+
button.onPaymentInReview((data) => {
|
|
501
|
+
console.log('Payment in fraud review');
|
|
502
|
+
});
|
|
503
|
+
```
|
|
504
|
+
**Example**
|
|
505
|
+
```js
|
|
506
|
+
button.onPaymentInReview().then((data) => console.log('Payment in fraud review'));
|
|
507
|
+
```
|
|
508
|
+
<a name="WalletButtons+onPaymentError" id="WalletButtons+onPaymentError" href="#WalletButtons+onPaymentError"> </a>
|
|
509
|
+
|
|
510
|
+
### walletButtons.onPaymentError([handler])
|
|
511
|
+
If the payment was not successful, the function passed as parameter will be called.
|
|
512
|
+
Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
513
|
+
|
|
514
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
515
|
+
|
|
516
|
+
| Param | Type | Description |
|
|
517
|
+
| --- | --- | --- |
|
|
518
|
+
| [handler] | <code>listener</code> | Function to be called when the payment was not successful. |
|
|
519
|
+
|
|
520
|
+
**Example**
|
|
521
|
+
```js
|
|
522
|
+
button.onPaymentError((err) => {
|
|
523
|
+
console.log('Payment not successful');
|
|
524
|
+
});
|
|
525
|
+
```
|
|
526
|
+
**Example**
|
|
527
|
+
```js
|
|
528
|
+
button.onPaymentError().then((err) => console.log('Payment not successful'));
|
|
529
|
+
```
|
|
530
|
+
<a name="WalletButtons+onAuthTokensChanged" id="WalletButtons+onAuthTokensChanged" href="#WalletButtons+onAuthTokensChanged"> </a>
|
|
531
|
+
|
|
532
|
+
### walletButtons.onAuthTokensChanged([handler])
|
|
533
|
+
Registers a callback function to be invoked when authentication tokens are changed.
|
|
534
|
+
This function allows you to respond to changes in authentication tokens, such as when a user logs in.
|
|
535
|
+
|
|
536
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
537
|
+
|
|
538
|
+
| Param | Type | Description |
|
|
539
|
+
| --- | --- | --- |
|
|
540
|
+
| [handler] | <code>listener</code> | Function to be called when authentication tokens are changed. |
|
|
541
|
+
|
|
542
|
+
**Example**
|
|
543
|
+
```js
|
|
544
|
+
button.onAuthTokensChanged((eventData) => {
|
|
545
|
+
console.log('Authentication tokens changed:', eventData);
|
|
546
|
+
});
|
|
547
|
+
```
|
|
548
|
+
**Example**
|
|
549
|
+
```js
|
|
550
|
+
button.onAuthTokensChanged().then((eventData) => {
|
|
551
|
+
console.log('Authentication tokens changed:', eventData);
|
|
552
|
+
});
|
|
553
|
+
```
|
|
554
|
+
<a name="WalletButtons+onClick" id="WalletButtons+onClick" href="#WalletButtons+onClick"> </a>
|
|
555
|
+
|
|
556
|
+
### walletButtons.onClick(handler)
|
|
557
|
+
Registers a callback function to be invoked when the wallet button gets clicked.
|
|
558
|
+
There are two operational modes supported, Synchronous and Asynchronous.
|
|
559
|
+
When asynchronous operations need to occur on the callback handler, attaching the Promise via `attachResult` is required to have the wallet wait for a result.
|
|
560
|
+
When synchronous operations occur on the callback handler, attaching a boolean result via `attachResult` is optional to control the execution flow.
|
|
561
|
+
Note this is supported for Paypal, GooglePay and ApplePay wallet buttons at the moment.
|
|
562
|
+
|
|
563
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
564
|
+
|
|
565
|
+
| Param | Type | Description |
|
|
566
|
+
| --- | --- | --- |
|
|
567
|
+
| handler | <code>listener</code> | Function to be called when the wallet button is clicked. |
|
|
568
|
+
|
|
569
|
+
**Example**
|
|
570
|
+
```js
|
|
571
|
+
button.onClick((data) => {
|
|
572
|
+
performValidationLogic();
|
|
573
|
+
});
|
|
574
|
+
```
|
|
575
|
+
<a name="WalletButtons+onCheckoutOpen" id="WalletButtons+onCheckoutOpen" href="#WalletButtons+onCheckoutOpen"> </a>
|
|
576
|
+
|
|
577
|
+
### walletButtons.onCheckoutOpen(handler)
|
|
578
|
+
Registers a callback function to be invoked when the wallet checkout opens.
|
|
579
|
+
Note this is supported for FlypayV2 wallet button at the moment.
|
|
580
|
+
|
|
581
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
582
|
+
|
|
583
|
+
| Param | Type | Description |
|
|
584
|
+
| --- | --- | --- |
|
|
585
|
+
| handler | <code>listener</code> | Function to be called when the wallet checkout opens. |
|
|
586
|
+
|
|
587
|
+
**Example**
|
|
588
|
+
```js
|
|
589
|
+
button.onCheckoutOpen((data) => {
|
|
590
|
+
console.log('Checkout opens');
|
|
591
|
+
});
|
|
592
|
+
```
|
|
593
|
+
<a name="WalletButtons+onCheckoutClose" id="WalletButtons+onCheckoutClose" href="#WalletButtons+onCheckoutClose"> </a>
|
|
594
|
+
|
|
595
|
+
### walletButtons.onCheckoutClose(handler)
|
|
596
|
+
Registers a callback function to be invoked when the wallet checkout closes.
|
|
597
|
+
Note this is supported for FlypayV2 wallet button at the moment.
|
|
598
|
+
|
|
599
|
+
**Kind**: instance method of [<code>WalletButtons</code>](#WalletButtons)
|
|
600
|
+
|
|
601
|
+
| Param | Type | Description |
|
|
602
|
+
| --- | --- | --- |
|
|
603
|
+
| handler | <code>listener</code> | Function to be called when the wallet checkout closes. |
|
|
604
|
+
|
|
605
|
+
**Example**
|
|
606
|
+
```js
|
|
607
|
+
button.onCheckoutClose(() => {
|
|
608
|
+
console.log('Wallet checkout closes');
|
|
609
|
+
});
|
|
610
|
+
```
|
|
611
|
+
<a name="EVENT" id="EVENT" href="#EVENT"> </a>
|
|
612
|
+
|
|
613
|
+
## EVENT : <code>object</code>
|
|
614
|
+
List of available event's name in the wallet button lifecycle
|
|
615
|
+
|
|
616
|
+
**Kind**: global constant
|
|
617
|
+
|
|
618
|
+
| Param | Type | Default |
|
|
619
|
+
| --- | --- | --- |
|
|
620
|
+
| UNAVAILABLE | <code>string</code> | <code>"unavailable"</code> |
|
|
621
|
+
| UPDATE | <code>string</code> | <code>"update"</code> |
|
|
622
|
+
| PAYMENT_SUCCESSFUL | <code>string</code> | <code>"paymentSuccessful"</code> |
|
|
623
|
+
| PAYMENT_ERROR | <code>string</code> | <code>"paymentError"</code> |
|
|
624
|
+
| ON_CLICK | <code>string</code> | <code>"onClick"</code> |
|
|
625
|
+
|