@paydock/client-sdk 0.0.3 → 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/.npmignore +0 -15
- 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,912 @@
|
|
|
1
|
+
## Classes
|
|
2
|
+
|
|
3
|
+
<dl>
|
|
4
|
+
<dt><a href="#user-content-cb_CheckoutButton">CheckoutButton</a></dt>
|
|
5
|
+
<dd><p>Class CheckoutButton transform usual button into checkout</p>
|
|
6
|
+
</dd>
|
|
7
|
+
<dt><a href="#user-content-cb_ZipmoneyCheckoutButton">ZipmoneyCheckoutButton</a> ⇐ <code><a href="#user-content-cb_CheckoutButton">CheckoutButton</a></code></dt>
|
|
8
|
+
<dd><p>Class ZipmoneyCheckoutButton is wrapper of CheckoutButton transform usual button into checkout</p>
|
|
9
|
+
</dd>
|
|
10
|
+
<dt><a href="#user-content-cb_PaypalCheckoutButton">PaypalCheckoutButton</a> ⇐ <code><a href="#user-content-cb_CheckoutButton">CheckoutButton</a></code></dt>
|
|
11
|
+
<dd><p>Class PaypalCheckoutButton is wrapper of CheckoutButton transform usual button into checkout</p>
|
|
12
|
+
</dd>
|
|
13
|
+
<dt><a href="#user-content-cb_AfterpayCheckoutButton">AfterpayCheckoutButton</a> ⇐ <code><a href="#user-content-cb_CheckoutButton">CheckoutButton</a></code></dt>
|
|
14
|
+
<dd><p>Class AfterpayCheckoutButton is wrapper of CheckoutButton transform usual button into checkout</p>
|
|
15
|
+
</dd>
|
|
16
|
+
</dl>
|
|
17
|
+
|
|
18
|
+
## Members
|
|
19
|
+
|
|
20
|
+
<dl>
|
|
21
|
+
<dt><a href="#user-content-cb_CHECKOUT_MODE">CHECKOUT_MODE</a> : <code>object</code></dt>
|
|
22
|
+
<dd></dd>
|
|
23
|
+
<dt><a href="#user-content-cb_GATEWAY_TYPE">GATEWAY_TYPE</a> : <code>object</code></dt>
|
|
24
|
+
<dd></dd>
|
|
25
|
+
</dl>
|
|
26
|
+
|
|
27
|
+
## Constants
|
|
28
|
+
|
|
29
|
+
<dl>
|
|
30
|
+
<dt><a href="#user-content-cb_CHECKOUT_BUTTON_EVENT">CHECKOUT_BUTTON_EVENT</a> : <code>object</code></dt>
|
|
31
|
+
<dd></dd>
|
|
32
|
+
</dl>
|
|
33
|
+
|
|
34
|
+
## Typedefs
|
|
35
|
+
|
|
36
|
+
<dl>
|
|
37
|
+
<dt><a href="#user-content-cb_listener">listener</a> : <code>function</code></dt>
|
|
38
|
+
<dd><p>This callback will be called for each event in payment source widget</p>
|
|
39
|
+
</dd>
|
|
40
|
+
</dl>
|
|
41
|
+
|
|
42
|
+
## Interfaces
|
|
43
|
+
|
|
44
|
+
<dl>
|
|
45
|
+
<dt><a href="#user-content-cb_IEventCheckoutFinishData">IEventCheckoutFinishData</a></dt>
|
|
46
|
+
<dd></dd>
|
|
47
|
+
<dt><a href="#user-content-cb_IPayPalMeta">IPayPalMeta</a></dt>
|
|
48
|
+
<dd><p>Interface for PayPal checkout meta information</p>
|
|
49
|
+
</dd>
|
|
50
|
+
<dt><a href="#user-content-cb_IZipmoneyMeta">IZipmoneyMeta</a></dt>
|
|
51
|
+
<dd><p>Interface for ZipMoney checkout meta information</p>
|
|
52
|
+
</dd>
|
|
53
|
+
<dt><a href="#user-content-cb_IAfterpayMeta">IAfterpayMeta</a></dt>
|
|
54
|
+
<dd><p>Interface for Afterpay checkout meta information</p>
|
|
55
|
+
</dd>
|
|
56
|
+
</dl>
|
|
57
|
+
|
|
58
|
+
<a name="cb_IEventCheckoutFinishData" id="cb_IEventCheckoutFinishData" href="#user-content-cb_IEventCheckoutFinishData"> </a>
|
|
59
|
+
|
|
60
|
+
## IEventCheckoutFinishData
|
|
61
|
+
**Kind**: global interface
|
|
62
|
+
|
|
63
|
+
| Param | Type |
|
|
64
|
+
| --- | --- |
|
|
65
|
+
| [payment_source_token] | <code>string</code> |
|
|
66
|
+
|
|
67
|
+
<a name="cb_IPayPalMeta" id="cb_IPayPalMeta" href="#user-content-cb_IPayPalMeta"> </a>
|
|
68
|
+
|
|
69
|
+
## IPayPalMeta
|
|
70
|
+
Interface for PayPal checkout meta information
|
|
71
|
+
|
|
72
|
+
**Kind**: global interface
|
|
73
|
+
|
|
74
|
+
| Param | Type | Description |
|
|
75
|
+
| --- | --- | --- |
|
|
76
|
+
| [brand_name] | <code>string</code> | A label that overrides the business name in the PayPal account on the PayPal hosted checkout pages |
|
|
77
|
+
| [cart_border_color] | <code>string</code> | The HTML hex code for your principal identifying color |
|
|
78
|
+
| [reference] | <code>string</code> | Merchant Customer Service number displayed on the PayPal pages |
|
|
79
|
+
| [email] | <code>string</code> | The consumer’s email |
|
|
80
|
+
| [hdr_img] | <code>string</code> | URL for the image you want to appear at the top left of the payment page |
|
|
81
|
+
| [logo_img] | <code>string</code> | A URL to your logo image |
|
|
82
|
+
| [pay_flow_color] | <code>string</code> | Sets the background color for the payment page. By default, the color is white. |
|
|
83
|
+
| [first_name] | <code>string</code> | The consumer’s given names |
|
|
84
|
+
| [last_name] | <code>string</code> | The consumer’s surname |
|
|
85
|
+
| [address_line] | <code>string</code> | Street address |
|
|
86
|
+
| [address_line2] | <code>string</code> | Second line of the address |
|
|
87
|
+
| [address_city] | <code>string</code> | City |
|
|
88
|
+
| [address_state] | <code>string</code> | State |
|
|
89
|
+
| [address_postcode] | <code>string</code> | Postcode |
|
|
90
|
+
| [address_country] | <code>string</code> | Country |
|
|
91
|
+
| [phone] | <code>string</code> | The consumer’s phone number in E.164 international notation (Example: +12345678901) |
|
|
92
|
+
| [hide_shipping_address] | <code>boolean</code> | Determines whether PayPal displays shipping address fields on the PayPal pages |
|
|
93
|
+
|
|
94
|
+
<a name="cb_IZipmoneyMeta" id="cb_IZipmoneyMeta" href="#user-content-cb_IZipmoneyMeta"> </a>
|
|
95
|
+
|
|
96
|
+
## IZipmoneyMeta
|
|
97
|
+
Interface for ZipMoney checkout meta information
|
|
98
|
+
|
|
99
|
+
**Kind**: global interface
|
|
100
|
+
|
|
101
|
+
| Param | Type | Description |
|
|
102
|
+
| --- | --- | --- |
|
|
103
|
+
| first_name | <code>string</code> | First name for the customer |
|
|
104
|
+
| last_name | <code>string</code> | Last name for the customer |
|
|
105
|
+
| [phone] | <code>string</code> | The consumer’s phone number in E.164 international notation (Example: +12345678901) |
|
|
106
|
+
| [tokenize] | <code>boolean</code> | Controls whether to tokenize the zip pay / zip money account, defaults to ‘false’ |
|
|
107
|
+
| email | <code>string</code> | The consumer’s email |
|
|
108
|
+
| [gender] | <code>string</code> | Gender name for the customer |
|
|
109
|
+
| [date_of_birth] | <code>string</code> | Date of birth name for the customer |
|
|
110
|
+
| charge.amount | <code>number</code> | Amount to be paid |
|
|
111
|
+
| [charge.currency] | <code>string</code> | Currency code |
|
|
112
|
+
| [charge.reference] | <code>string</code> | Reference |
|
|
113
|
+
| charge.items | <code>array</code> | Collections of orders |
|
|
114
|
+
| charge.items[].name | <code>string</code> | Name of the item |
|
|
115
|
+
| charge.items[].amount | <code>number</code> | Amount of the item |
|
|
116
|
+
| charge.items[].quantity | <code>integer</code> | Quantity of the item |
|
|
117
|
+
| [charge.items[].type] | <code>string</code> | type of the item, values can be: ‘sku’, ‘tax’, ‘shipping’, ‘discount’ |
|
|
118
|
+
| [charge.items[].reference] | <code>string</code> | reference of the item |
|
|
119
|
+
| [charge.items[].item_uri] | <code>string</code> | url of the item in your store |
|
|
120
|
+
| [charge.items[].image_url] | <code>string</code> | url of the image in your store |
|
|
121
|
+
| [charge.shipping_type] | <code>string</code> | Shipping type, values can be: ‘pickup’, ‘delivery’, defaults to ‘delivery’ |
|
|
122
|
+
| [charge.shipping_address] | <code>string</code> | Object with shipping address details |
|
|
123
|
+
| [charge.shipping_address.first_name] | <code>string</code> | Shipping first name |
|
|
124
|
+
| [charge.shipping_address.last_name] | <code>string</code> | Shipping last name |
|
|
125
|
+
| charge.shipping_address.line1 | <code>string</code> | Shipping address line 1 |
|
|
126
|
+
| charge.shipping_address.line2 | <code>string</code> | Shipping address line 2 |
|
|
127
|
+
| charge.shipping_address.city | <code>string</code> | Shipping city |
|
|
128
|
+
| charge.shipping_address.state | <code>string</code> | Shipping state |
|
|
129
|
+
| charge.shipping_address.postcode | <code>string</code> | Shipping postcode |
|
|
130
|
+
| charge.shipping_address.country | <code>string</code> | Shipping country |
|
|
131
|
+
| charge.billing_address | <code>string</code> | Object with billing address details |
|
|
132
|
+
| [charge.billing_address.first_name] | <code>string</code> | Billing first name |
|
|
133
|
+
| [charge.billing_address.last_name] | <code>string</code> | Billing last name |
|
|
134
|
+
| charge.billing_address.line1 | <code>string</code> | Billing address line 1 |
|
|
135
|
+
| [charge.billing_address.line2] | <code>string</code> | Billing address line 1 |
|
|
136
|
+
| charge.billing_address.city | <code>string</code> | Billing city |
|
|
137
|
+
| charge.billing_address.state | <code>string</code> | Billing state |
|
|
138
|
+
| charge.billing_address.postcode | <code>string</code> | Billing postcode |
|
|
139
|
+
| charge.billing_address.country | <code>string</code> | Billing country |
|
|
140
|
+
|
|
141
|
+
<a name="cb_IAfterpayMeta" id="cb_IAfterpayMeta" href="#user-content-cb_IAfterpayMeta"> </a>
|
|
142
|
+
|
|
143
|
+
## IAfterpayMeta
|
|
144
|
+
Interface for Afterpay checkout meta information
|
|
145
|
+
|
|
146
|
+
**Kind**: global interface
|
|
147
|
+
|
|
148
|
+
| Param | Type |
|
|
149
|
+
| --- | --- |
|
|
150
|
+
| [amount] | <code>number</code> |
|
|
151
|
+
| [currency] | <code>number</code> |
|
|
152
|
+
| [first_name] | <code>string</code> |
|
|
153
|
+
| [last_name] | <code>string</code> |
|
|
154
|
+
| [email] | <code>string</code> |
|
|
155
|
+
| [address_line] | <code>string</code> |
|
|
156
|
+
| [address_line2] | <code>string</code> |
|
|
157
|
+
| [address_city] | <code>string</code> |
|
|
158
|
+
| [address_state] | <code>string</code> |
|
|
159
|
+
| [address_postcode] | <code>string</code> |
|
|
160
|
+
| [address_country] | <code>string</code> |
|
|
161
|
+
| [phone] | <code>string</code> |
|
|
162
|
+
|
|
163
|
+
<a name="cb_CheckoutButton" id="cb_CheckoutButton" href="#user-content-cb_CheckoutButton"> </a>
|
|
164
|
+
|
|
165
|
+
## CheckoutButton
|
|
166
|
+
Class CheckoutButton transform usual button into checkout
|
|
167
|
+
|
|
168
|
+
**Kind**: global class
|
|
169
|
+
|
|
170
|
+
* [CheckoutButton](#user-content-cb_CheckoutButton)
|
|
171
|
+
* [new CheckoutButton(selector, aceessToken, [gatewayId], [type])](#user-content-cb_new_CheckoutButton_new)
|
|
172
|
+
* [.on(eventName, cb)](#user-content-cb_CheckoutButton+on)
|
|
173
|
+
* [.close()](#user-content-cb_CheckoutButton+close)
|
|
174
|
+
* [.onFinishInsert(selector, dataType)](#user-content-cb_CheckoutButton+onFinishInsert)
|
|
175
|
+
* [.setMeta(meta)](#user-content-cb_CheckoutButton+setMeta)
|
|
176
|
+
* [.setBackdropDescription(text)](#user-content-cb_CheckoutButton+setBackdropDescription)
|
|
177
|
+
* [.setBackdropTitle(string)](#user-content-cb_CheckoutButton+setBackdropTitle)
|
|
178
|
+
* [.setSuspendedRedirectUri(string)](#user-content-cb_CheckoutButton+setSuspendedRedirectUri)
|
|
179
|
+
* [.setRedirectUrl(string)](#user-content-cb_CheckoutButton+setRedirectUrl)
|
|
180
|
+
* [.turnOffBackdrop()](#user-content-cb_CheckoutButton+turnOffBackdrop)
|
|
181
|
+
|
|
182
|
+
<a name="cb_new_CheckoutButton_new" id="cb_new_CheckoutButton_new" href="#user-content-cb_new_CheckoutButton_new"> </a>
|
|
183
|
+
|
|
184
|
+
### new CheckoutButton(selector, aceessToken, [gatewayId], [type])
|
|
185
|
+
|
|
186
|
+
| Param | Type | Default | Description |
|
|
187
|
+
| --- | --- | --- | --- |
|
|
188
|
+
| selector | <code>string</code> | | Selector of html element. |
|
|
189
|
+
| aceessToken | <code>string</code> | | PayDock access token or users public key |
|
|
190
|
+
| [gatewayId] | <code>string</code> | <code>"default"</code> | PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway |
|
|
191
|
+
| [type] | <code>string</code> | <code>"PaypalClassic"</code> | Type of gateway (PaypalClassic, Zipmoney) |
|
|
192
|
+
|
|
193
|
+
**Example**
|
|
194
|
+
|
|
195
|
+
```javascript
|
|
196
|
+
var widget = new CheckoutButton('#button', 'accessToken','gatewayId');
|
|
197
|
+
```
|
|
198
|
+
<a name="cb_CheckoutButton+on" id="cb_CheckoutButton+on" href="#user-content-cb_CheckoutButton+on"> </a>
|
|
199
|
+
|
|
200
|
+
### checkoutButton.on(eventName, cb)
|
|
201
|
+
Listen to events of widget
|
|
202
|
+
|
|
203
|
+
**Kind**: instance method of [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
204
|
+
|
|
205
|
+
| Param | Type | Description |
|
|
206
|
+
| --- | --- | --- |
|
|
207
|
+
| eventName | <code>string</code> | Available event names [CHECKOUT_BUTTON_EVENT](#user-content-cb_CHECKOUT_BUTTON_EVENT) |
|
|
208
|
+
| cb | [<code>listener</code>](#user-content-cb_listener) | |
|
|
209
|
+
|
|
210
|
+
**Example**
|
|
211
|
+
|
|
212
|
+
```javascript
|
|
213
|
+
widget.on('click', function () {
|
|
214
|
+
|
|
215
|
+
});
|
|
216
|
+
```
|
|
217
|
+
<a name="cb_CheckoutButton+close" id="cb_CheckoutButton+close" href="#user-content-cb_CheckoutButton+close"> </a>
|
|
218
|
+
|
|
219
|
+
### checkoutButton.close()
|
|
220
|
+
Close popup window forcibly.
|
|
221
|
+
Only for 'contextual' mode.
|
|
222
|
+
|
|
223
|
+
**Kind**: instance method of [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
224
|
+
<a name="cb_CheckoutButton+onFinishInsert" id="cb_CheckoutButton+onFinishInsert" href="#user-content-cb_CheckoutButton+onFinishInsert"> </a>
|
|
225
|
+
|
|
226
|
+
### checkoutButton.onFinishInsert(selector, dataType)
|
|
227
|
+
After finish event of checkout button, data (dataType) will be insert to input (selector)
|
|
228
|
+
|
|
229
|
+
**Kind**: instance method of [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
230
|
+
|
|
231
|
+
| Param | Type | Description |
|
|
232
|
+
| --- | --- | --- |
|
|
233
|
+
| selector | <code>string</code> | css selector . [] # |
|
|
234
|
+
| dataType | <code>string</code> | data type of IEventCheckoutFinishData [IEventCheckoutFinishData](#user-content-cb_IEventCheckoutFinishData). |
|
|
235
|
+
|
|
236
|
+
<a name="cb_CheckoutButton+setMeta" id="cb_CheckoutButton+setMeta" href="#user-content-cb_CheckoutButton+setMeta"> </a>
|
|
237
|
+
|
|
238
|
+
### checkoutButton.setMeta(meta)
|
|
239
|
+
Method for setting meta information for checkout page
|
|
240
|
+
|
|
241
|
+
**Kind**: instance method of [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
242
|
+
|
|
243
|
+
| Param | Type | Description |
|
|
244
|
+
| --- | --- | --- |
|
|
245
|
+
| meta | [<code>IPayPalMeta</code>](#user-content-cb_IPayPalMeta) \| [<code>IAfterpayMeta</code>](#user-content-cb_IAfterpayMeta) \| [<code>IZipmoneyMeta</code>](#user-content-cb_IZipmoneyMeta) | Data which can be shown on checkout page [IPayPalMeta](#user-content-cb_IPayPalMeta) [IZipmoneyMeta](#user-content-cb_IZipmoneyMeta) [IAfterpayMeta](#user-content-cb_IAfterpayMeta) |
|
|
246
|
+
|
|
247
|
+
**Example**
|
|
248
|
+
|
|
249
|
+
```javascript
|
|
250
|
+
button.setMeta({
|
|
251
|
+
brand_name: 'paydock',
|
|
252
|
+
reference: '15',
|
|
253
|
+
email: 'wault@paydock.com'
|
|
254
|
+
});
|
|
255
|
+
```
|
|
256
|
+
<a name="cb_CheckoutButton+setBackdropDescription" id="cb_CheckoutButton+setBackdropDescription" href="#user-content-cb_CheckoutButton+setBackdropDescription"> </a>
|
|
257
|
+
|
|
258
|
+
### checkoutButton.setBackdropDescription(text)
|
|
259
|
+
Method for setting backdrop description.
|
|
260
|
+
Only for 'contextual' mode.
|
|
261
|
+
|
|
262
|
+
**Kind**: instance method of [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
263
|
+
|
|
264
|
+
| Param | Type | Description |
|
|
265
|
+
| --- | --- | --- |
|
|
266
|
+
| text | <code>string</code> | description which can be shown in overlay of back side checkout page |
|
|
267
|
+
|
|
268
|
+
**Example**
|
|
269
|
+
|
|
270
|
+
```javascript
|
|
271
|
+
button.setBackdropDescription('Custom description');
|
|
272
|
+
```
|
|
273
|
+
<a name="cb_CheckoutButton+setBackdropTitle" id="cb_CheckoutButton+setBackdropTitle" href="#user-content-cb_CheckoutButton+setBackdropTitle"> </a>
|
|
274
|
+
|
|
275
|
+
### checkoutButton.setBackdropTitle(string)
|
|
276
|
+
Method for setting backdrop title.
|
|
277
|
+
Only for 'contextual' mode.
|
|
278
|
+
|
|
279
|
+
**Kind**: instance method of [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
280
|
+
|
|
281
|
+
| Param | Type | Description |
|
|
282
|
+
| --- | --- | --- |
|
|
283
|
+
| string | <code>text</code> | title which can be shown in overlay of back side checkout page |
|
|
284
|
+
|
|
285
|
+
**Example**
|
|
286
|
+
|
|
287
|
+
```javascript
|
|
288
|
+
button.setBackdropTitle('Custom title');
|
|
289
|
+
```
|
|
290
|
+
<a name="cb_CheckoutButton+setSuspendedRedirectUri" id="cb_CheckoutButton+setSuspendedRedirectUri" href="#user-content-cb_CheckoutButton+setSuspendedRedirectUri"> </a>
|
|
291
|
+
|
|
292
|
+
### checkoutButton.setSuspendedRedirectUri(string)
|
|
293
|
+
Method for setting suspended redirect uri. Redirect after referred checkout.
|
|
294
|
+
Only for 'contextual' mode.
|
|
295
|
+
|
|
296
|
+
**Kind**: instance method of [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
297
|
+
|
|
298
|
+
| Param | Type | Description |
|
|
299
|
+
| --- | --- | --- |
|
|
300
|
+
| string | <code>uri</code> | uri for redirect (by default) |
|
|
301
|
+
|
|
302
|
+
<a name="cb_CheckoutButton+setRedirectUrl" id="cb_CheckoutButton+setRedirectUrl" href="#user-content-cb_CheckoutButton+setRedirectUrl"> </a>
|
|
303
|
+
|
|
304
|
+
### checkoutButton.setRedirectUrl(string)
|
|
305
|
+
Method for setting the merchant redirect URL.
|
|
306
|
+
Merchant's customers redirect after successfull checkout.
|
|
307
|
+
Only for 'redirect' mode.
|
|
308
|
+
|
|
309
|
+
**Kind**: instance method of [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
310
|
+
|
|
311
|
+
| Param | Type | Description |
|
|
312
|
+
| --- | --- | --- |
|
|
313
|
+
| string | <code>url</code> | redirect url |
|
|
314
|
+
|
|
315
|
+
<a name="cb_CheckoutButton+turnOffBackdrop" id="cb_CheckoutButton+turnOffBackdrop" href="#user-content-cb_CheckoutButton+turnOffBackdrop"> </a>
|
|
316
|
+
|
|
317
|
+
### checkoutButton.turnOffBackdrop()
|
|
318
|
+
Method for disable backdrop on the page.
|
|
319
|
+
Only for 'contextual' mode.
|
|
320
|
+
|
|
321
|
+
**Kind**: instance method of [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
322
|
+
**Example**
|
|
323
|
+
|
|
324
|
+
```javascript
|
|
325
|
+
button.turnOffBackdrop();
|
|
326
|
+
```
|
|
327
|
+
<a name="cb_ZipmoneyCheckoutButton" id="cb_ZipmoneyCheckoutButton" href="#user-content-cb_ZipmoneyCheckoutButton"> </a>
|
|
328
|
+
|
|
329
|
+
## ZipmoneyCheckoutButton ⇐ [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
330
|
+
Class ZipmoneyCheckoutButton is wrapper of CheckoutButton transform usual button into checkout
|
|
331
|
+
|
|
332
|
+
**Kind**: global class
|
|
333
|
+
**Extends**: [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
334
|
+
|
|
335
|
+
* [ZipmoneyCheckoutButton](#user-content-cb_ZipmoneyCheckoutButton) ⇐ [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
336
|
+
* [new ZipmoneyCheckoutButton(selector, publicKey, [gatewayId], [gatewayId])](#user-content-cb_new_ZipmoneyCheckoutButton_new)
|
|
337
|
+
* [.setSuspendedRedirectUri(string)](#user-content-cb_ZipmoneyCheckoutButton+setSuspendedRedirectUri)
|
|
338
|
+
* [.setRedirectUrl(string)](#user-content-cb_ZipmoneyCheckoutButton+setRedirectUrl)
|
|
339
|
+
* [.on(eventName, cb)](#user-content-cb_CheckoutButton+on)
|
|
340
|
+
* [.close()](#user-content-cb_CheckoutButton+close)
|
|
341
|
+
* [.onFinishInsert(selector, dataType)](#user-content-cb_CheckoutButton+onFinishInsert)
|
|
342
|
+
* [.setMeta(meta)](#user-content-cb_CheckoutButton+setMeta)
|
|
343
|
+
* [.setBackdropDescription(text)](#user-content-cb_CheckoutButton+setBackdropDescription)
|
|
344
|
+
* [.setBackdropTitle(string)](#user-content-cb_CheckoutButton+setBackdropTitle)
|
|
345
|
+
* [.turnOffBackdrop()](#user-content-cb_CheckoutButton+turnOffBackdrop)
|
|
346
|
+
|
|
347
|
+
<a name="cb_new_ZipmoneyCheckoutButton_new" id="cb_new_ZipmoneyCheckoutButton_new" href="#user-content-cb_new_ZipmoneyCheckoutButton_new"> </a>
|
|
348
|
+
|
|
349
|
+
### new ZipmoneyCheckoutButton(selector, publicKey, [gatewayId], [gatewayId])
|
|
350
|
+
|
|
351
|
+
| Param | Type | Default | Description |
|
|
352
|
+
| --- | --- | --- | --- |
|
|
353
|
+
| selector | <code>string</code> | | Selector of html element. |
|
|
354
|
+
| publicKey | <code>string</code> | | PayDock users public key |
|
|
355
|
+
| [gatewayId] | <code>string</code> | <code>"default"</code> | PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway |
|
|
356
|
+
| [gatewayId] | <code>string</code> | <code>"default"</code> | Checkout mode, it could be set to 'contextual' or 'redirect'. By default it 'contextual' |
|
|
357
|
+
|
|
358
|
+
**Example**
|
|
359
|
+
|
|
360
|
+
```javascript
|
|
361
|
+
var widget = new ZipmoneyCheckoutButton('#button', 'publicKey','gatewayId');
|
|
362
|
+
```
|
|
363
|
+
<a name="cb_ZipmoneyCheckoutButton+setSuspendedRedirectUri" id="cb_ZipmoneyCheckoutButton+setSuspendedRedirectUri" href="#user-content-cb_ZipmoneyCheckoutButton+setSuspendedRedirectUri"> </a>
|
|
364
|
+
|
|
365
|
+
### zipmoneyCheckoutButton.setSuspendedRedirectUri(string)
|
|
366
|
+
Method for setting suspended redirect uri. Redirect after referred checkout
|
|
367
|
+
|
|
368
|
+
The URI is used for a redirect after the checkout is complete.
|
|
369
|
+
This can be provided, even if using in-context checkout (sdk). By default, the standard styled page will be used.
|
|
370
|
+
If using in-context (sdk) we will not automatically redirect to this URI.
|
|
371
|
+
|
|
372
|
+
**Kind**: instance method of [<code>ZipmoneyCheckoutButton</code>](#user-content-cb_ZipmoneyCheckoutButton)
|
|
373
|
+
**Overrides**: [<code>setSuspendedRedirectUri</code>](#user-content-cb_CheckoutButton+setSuspendedRedirectUri)
|
|
374
|
+
|
|
375
|
+
| Param | Type | Description |
|
|
376
|
+
| --- | --- | --- |
|
|
377
|
+
| string | <code>uri</code> | uri for suspended redirect (by default) |
|
|
378
|
+
|
|
379
|
+
<a name="cb_ZipmoneyCheckoutButton+setRedirectUrl" id="cb_ZipmoneyCheckoutButton+setRedirectUrl" href="#user-content-cb_ZipmoneyCheckoutButton+setRedirectUrl"> </a>
|
|
380
|
+
|
|
381
|
+
### zipmoneyCheckoutButton.setRedirectUrl(string)
|
|
382
|
+
Method for setting the merchant redirect URL.
|
|
383
|
+
The merchant's customers would be redirected to the specified URL
|
|
384
|
+
at the end of ZipMoney checkout flow.
|
|
385
|
+
|
|
386
|
+
Once the redirect URL would be set, the checkout flow would be immediately switched
|
|
387
|
+
from 'contextual' mode to the 'redirect' mode.
|
|
388
|
+
The merchant's customer would be automatically redirected to this URL after the checkout is complete.
|
|
389
|
+
|
|
390
|
+
**Kind**: instance method of [<code>ZipmoneyCheckoutButton</code>](#user-content-cb_ZipmoneyCheckoutButton)
|
|
391
|
+
**Overrides**: [<code>setRedirectUrl</code>](#user-content-cb_CheckoutButton+setRedirectUrl)
|
|
392
|
+
|
|
393
|
+
| Param | Type | Description |
|
|
394
|
+
| --- | --- | --- |
|
|
395
|
+
| string | <code>url</code> | URL for redirect |
|
|
396
|
+
|
|
397
|
+
<a name="cb_CheckoutButton+on" id="cb_CheckoutButton+on" href="#user-content-cb_CheckoutButton+on"> </a>
|
|
398
|
+
|
|
399
|
+
### zipmoneyCheckoutButton.on(eventName, cb)
|
|
400
|
+
Listen to events of widget
|
|
401
|
+
|
|
402
|
+
**Kind**: instance method of [<code>ZipmoneyCheckoutButton</code>](#user-content-cb_ZipmoneyCheckoutButton)
|
|
403
|
+
**Overrides**: [<code>on</code>](#user-content-cb_CheckoutButton+on)
|
|
404
|
+
|
|
405
|
+
| Param | Type | Description |
|
|
406
|
+
| --- | --- | --- |
|
|
407
|
+
| eventName | <code>string</code> | Available event names [CHECKOUT_BUTTON_EVENT](#user-content-cb_CHECKOUT_BUTTON_EVENT) |
|
|
408
|
+
| cb | [<code>listener</code>](#user-content-cb_listener) | |
|
|
409
|
+
|
|
410
|
+
**Example**
|
|
411
|
+
|
|
412
|
+
```javascript
|
|
413
|
+
widget.on('click', function () {
|
|
414
|
+
|
|
415
|
+
});
|
|
416
|
+
```
|
|
417
|
+
<a name="cb_CheckoutButton+close" id="cb_CheckoutButton+close" href="#user-content-cb_CheckoutButton+close"> </a>
|
|
418
|
+
|
|
419
|
+
### zipmoneyCheckoutButton.close()
|
|
420
|
+
Close popup window forcibly.
|
|
421
|
+
Only for 'contextual' mode.
|
|
422
|
+
|
|
423
|
+
**Kind**: instance method of [<code>ZipmoneyCheckoutButton</code>](#user-content-cb_ZipmoneyCheckoutButton)
|
|
424
|
+
**Overrides**: [<code>close</code>](#user-content-cb_CheckoutButton+close)
|
|
425
|
+
<a name="cb_CheckoutButton+onFinishInsert" id="cb_CheckoutButton+onFinishInsert" href="#user-content-cb_CheckoutButton+onFinishInsert"> </a>
|
|
426
|
+
|
|
427
|
+
### zipmoneyCheckoutButton.onFinishInsert(selector, dataType)
|
|
428
|
+
After finish event of checkout button, data (dataType) will be insert to input (selector)
|
|
429
|
+
|
|
430
|
+
**Kind**: instance method of [<code>ZipmoneyCheckoutButton</code>](#user-content-cb_ZipmoneyCheckoutButton)
|
|
431
|
+
**Overrides**: [<code>onFinishInsert</code>](#user-content-cb_CheckoutButton+onFinishInsert)
|
|
432
|
+
|
|
433
|
+
| Param | Type | Description |
|
|
434
|
+
| --- | --- | --- |
|
|
435
|
+
| selector | <code>string</code> | css selector . [] # |
|
|
436
|
+
| dataType | <code>string</code> | data type of IEventCheckoutFinishData [IEventCheckoutFinishData](#user-content-cb_IEventCheckoutFinishData). |
|
|
437
|
+
|
|
438
|
+
<a name="cb_CheckoutButton+setMeta" id="cb_CheckoutButton+setMeta" href="#user-content-cb_CheckoutButton+setMeta"> </a>
|
|
439
|
+
|
|
440
|
+
### zipmoneyCheckoutButton.setMeta(meta)
|
|
441
|
+
Method for setting meta information for checkout page
|
|
442
|
+
|
|
443
|
+
**Kind**: instance method of [<code>ZipmoneyCheckoutButton</code>](#user-content-cb_ZipmoneyCheckoutButton)
|
|
444
|
+
**Overrides**: [<code>setMeta</code>](#user-content-cb_CheckoutButton+setMeta)
|
|
445
|
+
|
|
446
|
+
| Param | Type | Description |
|
|
447
|
+
| --- | --- | --- |
|
|
448
|
+
| meta | [<code>IPayPalMeta</code>](#user-content-cb_IPayPalMeta) \| [<code>IAfterpayMeta</code>](#user-content-cb_IAfterpayMeta) \| [<code>IZipmoneyMeta</code>](#user-content-cb_IZipmoneyMeta) | Data which can be shown on checkout page [IPayPalMeta](#user-content-cb_IPayPalMeta) [IZipmoneyMeta](#user-content-cb_IZipmoneyMeta) [IAfterpayMeta](#user-content-cb_IAfterpayMeta) |
|
|
449
|
+
|
|
450
|
+
**Example**
|
|
451
|
+
|
|
452
|
+
```javascript
|
|
453
|
+
button.setMeta({
|
|
454
|
+
brand_name: 'paydock',
|
|
455
|
+
reference: '15',
|
|
456
|
+
email: 'wault@paydock.com'
|
|
457
|
+
});
|
|
458
|
+
```
|
|
459
|
+
<a name="cb_CheckoutButton+setBackdropDescription" id="cb_CheckoutButton+setBackdropDescription" href="#user-content-cb_CheckoutButton+setBackdropDescription"> </a>
|
|
460
|
+
|
|
461
|
+
### zipmoneyCheckoutButton.setBackdropDescription(text)
|
|
462
|
+
Method for setting backdrop description.
|
|
463
|
+
Only for 'contextual' mode.
|
|
464
|
+
|
|
465
|
+
**Kind**: instance method of [<code>ZipmoneyCheckoutButton</code>](#user-content-cb_ZipmoneyCheckoutButton)
|
|
466
|
+
**Overrides**: [<code>setBackdropDescription</code>](#user-content-cb_CheckoutButton+setBackdropDescription)
|
|
467
|
+
|
|
468
|
+
| Param | Type | Description |
|
|
469
|
+
| --- | --- | --- |
|
|
470
|
+
| text | <code>string</code> | description which can be shown in overlay of back side checkout page |
|
|
471
|
+
|
|
472
|
+
**Example**
|
|
473
|
+
|
|
474
|
+
```javascript
|
|
475
|
+
button.setBackdropDescription('Custom description');
|
|
476
|
+
```
|
|
477
|
+
<a name="cb_CheckoutButton+setBackdropTitle" id="cb_CheckoutButton+setBackdropTitle" href="#user-content-cb_CheckoutButton+setBackdropTitle"> </a>
|
|
478
|
+
|
|
479
|
+
### zipmoneyCheckoutButton.setBackdropTitle(string)
|
|
480
|
+
Method for setting backdrop title.
|
|
481
|
+
Only for 'contextual' mode.
|
|
482
|
+
|
|
483
|
+
**Kind**: instance method of [<code>ZipmoneyCheckoutButton</code>](#user-content-cb_ZipmoneyCheckoutButton)
|
|
484
|
+
**Overrides**: [<code>setBackdropTitle</code>](#user-content-cb_CheckoutButton+setBackdropTitle)
|
|
485
|
+
|
|
486
|
+
| Param | Type | Description |
|
|
487
|
+
| --- | --- | --- |
|
|
488
|
+
| string | <code>text</code> | title which can be shown in overlay of back side checkout page |
|
|
489
|
+
|
|
490
|
+
**Example**
|
|
491
|
+
|
|
492
|
+
```javascript
|
|
493
|
+
button.setBackdropTitle('Custom title');
|
|
494
|
+
```
|
|
495
|
+
<a name="cb_CheckoutButton+turnOffBackdrop" id="cb_CheckoutButton+turnOffBackdrop" href="#user-content-cb_CheckoutButton+turnOffBackdrop"> </a>
|
|
496
|
+
|
|
497
|
+
### zipmoneyCheckoutButton.turnOffBackdrop()
|
|
498
|
+
Method for disable backdrop on the page.
|
|
499
|
+
Only for 'contextual' mode.
|
|
500
|
+
|
|
501
|
+
**Kind**: instance method of [<code>ZipmoneyCheckoutButton</code>](#user-content-cb_ZipmoneyCheckoutButton)
|
|
502
|
+
**Overrides**: [<code>turnOffBackdrop</code>](#user-content-cb_CheckoutButton+turnOffBackdrop)
|
|
503
|
+
**Example**
|
|
504
|
+
|
|
505
|
+
```javascript
|
|
506
|
+
button.turnOffBackdrop();
|
|
507
|
+
```
|
|
508
|
+
<a name="cb_PaypalCheckoutButton" id="cb_PaypalCheckoutButton" href="#user-content-cb_PaypalCheckoutButton"> </a>
|
|
509
|
+
|
|
510
|
+
## PaypalCheckoutButton ⇐ [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
511
|
+
Class PaypalCheckoutButton is wrapper of CheckoutButton transform usual button into checkout
|
|
512
|
+
|
|
513
|
+
**Kind**: global class
|
|
514
|
+
**Extends**: [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
515
|
+
|
|
516
|
+
* [PaypalCheckoutButton](#user-content-cb_PaypalCheckoutButton) ⇐ [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
517
|
+
* [new PaypalCheckoutButton(selector, publicKey, [gatewayId])](#user-content-cb_new_PaypalCheckoutButton_new)
|
|
518
|
+
* [.on(eventName, cb)](#user-content-cb_CheckoutButton+on)
|
|
519
|
+
* [.close()](#user-content-cb_CheckoutButton+close)
|
|
520
|
+
* [.onFinishInsert(selector, dataType)](#user-content-cb_CheckoutButton+onFinishInsert)
|
|
521
|
+
* [.setMeta(meta)](#user-content-cb_CheckoutButton+setMeta)
|
|
522
|
+
* [.setBackdropDescription(text)](#user-content-cb_CheckoutButton+setBackdropDescription)
|
|
523
|
+
* [.setBackdropTitle(string)](#user-content-cb_CheckoutButton+setBackdropTitle)
|
|
524
|
+
* [.setSuspendedRedirectUri(string)](#user-content-cb_CheckoutButton+setSuspendedRedirectUri)
|
|
525
|
+
* [.setRedirectUrl(string)](#user-content-cb_CheckoutButton+setRedirectUrl)
|
|
526
|
+
* [.turnOffBackdrop()](#user-content-cb_CheckoutButton+turnOffBackdrop)
|
|
527
|
+
|
|
528
|
+
<a name="cb_new_PaypalCheckoutButton_new" id="cb_new_PaypalCheckoutButton_new" href="#user-content-cb_new_PaypalCheckoutButton_new"> </a>
|
|
529
|
+
|
|
530
|
+
### new PaypalCheckoutButton(selector, publicKey, [gatewayId])
|
|
531
|
+
|
|
532
|
+
| Param | Type | Default | Description |
|
|
533
|
+
| --- | --- | --- | --- |
|
|
534
|
+
| selector | <code>string</code> | | Selector of html element. |
|
|
535
|
+
| publicKey | <code>string</code> | | PayDock users public key |
|
|
536
|
+
| [gatewayId] | <code>string</code> | <code>"default"</code> | PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway |
|
|
537
|
+
|
|
538
|
+
**Example**
|
|
539
|
+
|
|
540
|
+
```javascript
|
|
541
|
+
var widget = new PaypalCheckoutButton('#button', 'publicKey','gatewayId');
|
|
542
|
+
```
|
|
543
|
+
<a name="cb_CheckoutButton+on" id="cb_CheckoutButton+on" href="#user-content-cb_CheckoutButton+on"> </a>
|
|
544
|
+
|
|
545
|
+
### paypalCheckoutButton.on(eventName, cb)
|
|
546
|
+
Listen to events of widget
|
|
547
|
+
|
|
548
|
+
**Kind**: instance method of [<code>PaypalCheckoutButton</code>](#user-content-cb_PaypalCheckoutButton)
|
|
549
|
+
**Overrides**: [<code>on</code>](#user-content-cb_CheckoutButton+on)
|
|
550
|
+
|
|
551
|
+
| Param | Type | Description |
|
|
552
|
+
| --- | --- | --- |
|
|
553
|
+
| eventName | <code>string</code> | Available event names [CHECKOUT_BUTTON_EVENT](#user-content-cb_CHECKOUT_BUTTON_EVENT) |
|
|
554
|
+
| cb | [<code>listener</code>](#user-content-cb_listener) | |
|
|
555
|
+
|
|
556
|
+
**Example**
|
|
557
|
+
|
|
558
|
+
```javascript
|
|
559
|
+
widget.on('click', function () {
|
|
560
|
+
|
|
561
|
+
});
|
|
562
|
+
```
|
|
563
|
+
<a name="cb_CheckoutButton+close" id="cb_CheckoutButton+close" href="#user-content-cb_CheckoutButton+close"> </a>
|
|
564
|
+
|
|
565
|
+
### paypalCheckoutButton.close()
|
|
566
|
+
Close popup window forcibly.
|
|
567
|
+
Only for 'contextual' mode.
|
|
568
|
+
|
|
569
|
+
**Kind**: instance method of [<code>PaypalCheckoutButton</code>](#user-content-cb_PaypalCheckoutButton)
|
|
570
|
+
**Overrides**: [<code>close</code>](#user-content-cb_CheckoutButton+close)
|
|
571
|
+
<a name="cb_CheckoutButton+onFinishInsert" id="cb_CheckoutButton+onFinishInsert" href="#user-content-cb_CheckoutButton+onFinishInsert"> </a>
|
|
572
|
+
|
|
573
|
+
### paypalCheckoutButton.onFinishInsert(selector, dataType)
|
|
574
|
+
After finish event of checkout button, data (dataType) will be insert to input (selector)
|
|
575
|
+
|
|
576
|
+
**Kind**: instance method of [<code>PaypalCheckoutButton</code>](#user-content-cb_PaypalCheckoutButton)
|
|
577
|
+
**Overrides**: [<code>onFinishInsert</code>](#user-content-cb_CheckoutButton+onFinishInsert)
|
|
578
|
+
|
|
579
|
+
| Param | Type | Description |
|
|
580
|
+
| --- | --- | --- |
|
|
581
|
+
| selector | <code>string</code> | css selector . [] # |
|
|
582
|
+
| dataType | <code>string</code> | data type of IEventCheckoutFinishData [IEventCheckoutFinishData](#user-content-cb_IEventCheckoutFinishData). |
|
|
583
|
+
|
|
584
|
+
<a name="cb_CheckoutButton+setMeta" id="cb_CheckoutButton+setMeta" href="#user-content-cb_CheckoutButton+setMeta"> </a>
|
|
585
|
+
|
|
586
|
+
### paypalCheckoutButton.setMeta(meta)
|
|
587
|
+
Method for setting meta information for checkout page
|
|
588
|
+
|
|
589
|
+
**Kind**: instance method of [<code>PaypalCheckoutButton</code>](#user-content-cb_PaypalCheckoutButton)
|
|
590
|
+
**Overrides**: [<code>setMeta</code>](#user-content-cb_CheckoutButton+setMeta)
|
|
591
|
+
|
|
592
|
+
| Param | Type | Description |
|
|
593
|
+
| --- | --- | --- |
|
|
594
|
+
| meta | [<code>IPayPalMeta</code>](#user-content-cb_IPayPalMeta) \| [<code>IAfterpayMeta</code>](#user-content-cb_IAfterpayMeta) \| [<code>IZipmoneyMeta</code>](#user-content-cb_IZipmoneyMeta) | Data which can be shown on checkout page [IPayPalMeta](#user-content-cb_IPayPalMeta) [IZipmoneyMeta](#user-content-cb_IZipmoneyMeta) [IAfterpayMeta](#user-content-cb_IAfterpayMeta) |
|
|
595
|
+
|
|
596
|
+
**Example**
|
|
597
|
+
|
|
598
|
+
```javascript
|
|
599
|
+
button.setMeta({
|
|
600
|
+
brand_name: 'paydock',
|
|
601
|
+
reference: '15',
|
|
602
|
+
email: 'wault@paydock.com'
|
|
603
|
+
});
|
|
604
|
+
```
|
|
605
|
+
<a name="cb_CheckoutButton+setBackdropDescription" id="cb_CheckoutButton+setBackdropDescription" href="#user-content-cb_CheckoutButton+setBackdropDescription"> </a>
|
|
606
|
+
|
|
607
|
+
### paypalCheckoutButton.setBackdropDescription(text)
|
|
608
|
+
Method for setting backdrop description.
|
|
609
|
+
Only for 'contextual' mode.
|
|
610
|
+
|
|
611
|
+
**Kind**: instance method of [<code>PaypalCheckoutButton</code>](#user-content-cb_PaypalCheckoutButton)
|
|
612
|
+
**Overrides**: [<code>setBackdropDescription</code>](#user-content-cb_CheckoutButton+setBackdropDescription)
|
|
613
|
+
|
|
614
|
+
| Param | Type | Description |
|
|
615
|
+
| --- | --- | --- |
|
|
616
|
+
| text | <code>string</code> | description which can be shown in overlay of back side checkout page |
|
|
617
|
+
|
|
618
|
+
**Example**
|
|
619
|
+
|
|
620
|
+
```javascript
|
|
621
|
+
button.setBackdropDescription('Custom description');
|
|
622
|
+
```
|
|
623
|
+
<a name="cb_CheckoutButton+setBackdropTitle" id="cb_CheckoutButton+setBackdropTitle" href="#user-content-cb_CheckoutButton+setBackdropTitle"> </a>
|
|
624
|
+
|
|
625
|
+
### paypalCheckoutButton.setBackdropTitle(string)
|
|
626
|
+
Method for setting backdrop title.
|
|
627
|
+
Only for 'contextual' mode.
|
|
628
|
+
|
|
629
|
+
**Kind**: instance method of [<code>PaypalCheckoutButton</code>](#user-content-cb_PaypalCheckoutButton)
|
|
630
|
+
**Overrides**: [<code>setBackdropTitle</code>](#user-content-cb_CheckoutButton+setBackdropTitle)
|
|
631
|
+
|
|
632
|
+
| Param | Type | Description |
|
|
633
|
+
| --- | --- | --- |
|
|
634
|
+
| string | <code>text</code> | title which can be shown in overlay of back side checkout page |
|
|
635
|
+
|
|
636
|
+
**Example**
|
|
637
|
+
|
|
638
|
+
```javascript
|
|
639
|
+
button.setBackdropTitle('Custom title');
|
|
640
|
+
```
|
|
641
|
+
<a name="cb_CheckoutButton+setSuspendedRedirectUri" id="cb_CheckoutButton+setSuspendedRedirectUri" href="#user-content-cb_CheckoutButton+setSuspendedRedirectUri"> </a>
|
|
642
|
+
|
|
643
|
+
### paypalCheckoutButton.setSuspendedRedirectUri(string)
|
|
644
|
+
Method for setting suspended redirect uri. Redirect after referred checkout.
|
|
645
|
+
Only for 'contextual' mode.
|
|
646
|
+
|
|
647
|
+
**Kind**: instance method of [<code>PaypalCheckoutButton</code>](#user-content-cb_PaypalCheckoutButton)
|
|
648
|
+
**Overrides**: [<code>setSuspendedRedirectUri</code>](#user-content-cb_CheckoutButton+setSuspendedRedirectUri)
|
|
649
|
+
|
|
650
|
+
| Param | Type | Description |
|
|
651
|
+
| --- | --- | --- |
|
|
652
|
+
| string | <code>uri</code> | uri for redirect (by default) |
|
|
653
|
+
|
|
654
|
+
<a name="cb_CheckoutButton+setRedirectUrl" id="cb_CheckoutButton+setRedirectUrl" href="#user-content-cb_CheckoutButton+setRedirectUrl"> </a>
|
|
655
|
+
|
|
656
|
+
### paypalCheckoutButton.setRedirectUrl(string)
|
|
657
|
+
Method for setting the merchant redirect URL.
|
|
658
|
+
Merchant's customers redirect after successfull checkout.
|
|
659
|
+
Only for 'redirect' mode.
|
|
660
|
+
|
|
661
|
+
**Kind**: instance method of [<code>PaypalCheckoutButton</code>](#user-content-cb_PaypalCheckoutButton)
|
|
662
|
+
**Overrides**: [<code>setRedirectUrl</code>](#user-content-cb_CheckoutButton+setRedirectUrl)
|
|
663
|
+
|
|
664
|
+
| Param | Type | Description |
|
|
665
|
+
| --- | --- | --- |
|
|
666
|
+
| string | <code>url</code> | redirect url |
|
|
667
|
+
|
|
668
|
+
<a name="cb_CheckoutButton+turnOffBackdrop" id="cb_CheckoutButton+turnOffBackdrop" href="#user-content-cb_CheckoutButton+turnOffBackdrop"> </a>
|
|
669
|
+
|
|
670
|
+
### paypalCheckoutButton.turnOffBackdrop()
|
|
671
|
+
Method for disable backdrop on the page.
|
|
672
|
+
Only for 'contextual' mode.
|
|
673
|
+
|
|
674
|
+
**Kind**: instance method of [<code>PaypalCheckoutButton</code>](#user-content-cb_PaypalCheckoutButton)
|
|
675
|
+
**Overrides**: [<code>turnOffBackdrop</code>](#user-content-cb_CheckoutButton+turnOffBackdrop)
|
|
676
|
+
**Example**
|
|
677
|
+
|
|
678
|
+
```javascript
|
|
679
|
+
button.turnOffBackdrop();
|
|
680
|
+
```
|
|
681
|
+
<a name="cb_AfterpayCheckoutButton" id="cb_AfterpayCheckoutButton" href="#user-content-cb_AfterpayCheckoutButton"> </a>
|
|
682
|
+
|
|
683
|
+
## AfterpayCheckoutButton ⇐ [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
684
|
+
Class AfterpayCheckoutButton is wrapper of CheckoutButton transform usual button into checkout
|
|
685
|
+
|
|
686
|
+
**Kind**: global class
|
|
687
|
+
**Extends**: [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
688
|
+
|
|
689
|
+
* [AfterpayCheckoutButton](#user-content-cb_AfterpayCheckoutButton) ⇐ [<code>CheckoutButton</code>](#user-content-cb_CheckoutButton)
|
|
690
|
+
* [new AfterpayCheckoutButton(selector, accessToken, [gatewayId])](#user-content-cb_new_AfterpayCheckoutButton_new)
|
|
691
|
+
* [.showEnhancedTrackingProtectionPopup(boolean)](#user-content-cb_AfterpayCheckoutButton+showEnhancedTrackingProtectionPopup)
|
|
692
|
+
* [.on(eventName, cb)](#user-content-cb_CheckoutButton+on)
|
|
693
|
+
* [.close()](#user-content-cb_CheckoutButton+close)
|
|
694
|
+
* [.onFinishInsert(selector, dataType)](#user-content-cb_CheckoutButton+onFinishInsert)
|
|
695
|
+
* [.setMeta(meta)](#user-content-cb_CheckoutButton+setMeta)
|
|
696
|
+
* [.setBackdropDescription(text)](#user-content-cb_CheckoutButton+setBackdropDescription)
|
|
697
|
+
* [.setBackdropTitle(string)](#user-content-cb_CheckoutButton+setBackdropTitle)
|
|
698
|
+
* [.setSuspendedRedirectUri(string)](#user-content-cb_CheckoutButton+setSuspendedRedirectUri)
|
|
699
|
+
* [.setRedirectUrl(string)](#user-content-cb_CheckoutButton+setRedirectUrl)
|
|
700
|
+
* [.turnOffBackdrop()](#user-content-cb_CheckoutButton+turnOffBackdrop)
|
|
701
|
+
|
|
702
|
+
<a name="cb_new_AfterpayCheckoutButton_new" id="cb_new_AfterpayCheckoutButton_new" href="#user-content-cb_new_AfterpayCheckoutButton_new"> </a>
|
|
703
|
+
|
|
704
|
+
### new AfterpayCheckoutButton(selector, accessToken, [gatewayId])
|
|
705
|
+
|
|
706
|
+
| Param | Type | Default | Description |
|
|
707
|
+
| --- | --- | --- | --- |
|
|
708
|
+
| selector | <code>string</code> | | Selector of html element. |
|
|
709
|
+
| accessToken | <code>string</code> | | PayDock access-token or users public key |
|
|
710
|
+
| [gatewayId] | <code>string</code> | <code>"default"</code> | PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway |
|
|
711
|
+
|
|
712
|
+
**Example**
|
|
713
|
+
|
|
714
|
+
```javascript
|
|
715
|
+
var widget = new AfterpayCheckoutButton('#button', 'access-token','gatewayId');
|
|
716
|
+
```
|
|
717
|
+
<a name="cb_AfterpayCheckoutButton+showEnhancedTrackingProtectionPopup" id="cb_AfterpayCheckoutButton+showEnhancedTrackingProtectionPopup" href="#user-content-cb_AfterpayCheckoutButton+showEnhancedTrackingProtectionPopup"> </a>
|
|
718
|
+
|
|
719
|
+
### afterpayCheckoutButton.showEnhancedTrackingProtectionPopup(boolean)
|
|
720
|
+
Method which toggles the "Enhanced Tracking Protection" warning popup to 'on' mode.
|
|
721
|
+
|
|
722
|
+
This popup with a warning about "Enhanced Tracking Protection" limitations
|
|
723
|
+
would be shown in the Mozilla Firefox browser version 100+
|
|
724
|
+
|
|
725
|
+
By default, the popup would not be shown, until
|
|
726
|
+
the flag would be set to `true`
|
|
727
|
+
|
|
728
|
+
**Kind**: instance method of [<code>AfterpayCheckoutButton</code>](#user-content-cb_AfterpayCheckoutButton)
|
|
729
|
+
|
|
730
|
+
| Param | Type | Description |
|
|
731
|
+
| --- | --- | --- |
|
|
732
|
+
| boolean | <code>doShow</code> | flag which toggle the popup visibility |
|
|
733
|
+
|
|
734
|
+
<a name="cb_CheckoutButton+on" id="cb_CheckoutButton+on" href="#user-content-cb_CheckoutButton+on"> </a>
|
|
735
|
+
|
|
736
|
+
### afterpayCheckoutButton.on(eventName, cb)
|
|
737
|
+
Listen to events of widget
|
|
738
|
+
|
|
739
|
+
**Kind**: instance method of [<code>AfterpayCheckoutButton</code>](#user-content-cb_AfterpayCheckoutButton)
|
|
740
|
+
**Overrides**: [<code>on</code>](#user-content-cb_CheckoutButton+on)
|
|
741
|
+
|
|
742
|
+
| Param | Type | Description |
|
|
743
|
+
| --- | --- | --- |
|
|
744
|
+
| eventName | <code>string</code> | Available event names [CHECKOUT_BUTTON_EVENT](#user-content-cb_CHECKOUT_BUTTON_EVENT) |
|
|
745
|
+
| cb | [<code>listener</code>](#user-content-cb_listener) | |
|
|
746
|
+
|
|
747
|
+
**Example**
|
|
748
|
+
|
|
749
|
+
```javascript
|
|
750
|
+
widget.on('click', function () {
|
|
751
|
+
|
|
752
|
+
});
|
|
753
|
+
```
|
|
754
|
+
<a name="cb_CheckoutButton+close" id="cb_CheckoutButton+close" href="#user-content-cb_CheckoutButton+close"> </a>
|
|
755
|
+
|
|
756
|
+
### afterpayCheckoutButton.close()
|
|
757
|
+
Close popup window forcibly.
|
|
758
|
+
Only for 'contextual' mode.
|
|
759
|
+
|
|
760
|
+
**Kind**: instance method of [<code>AfterpayCheckoutButton</code>](#user-content-cb_AfterpayCheckoutButton)
|
|
761
|
+
**Overrides**: [<code>close</code>](#user-content-cb_CheckoutButton+close)
|
|
762
|
+
<a name="cb_CheckoutButton+onFinishInsert" id="cb_CheckoutButton+onFinishInsert" href="#user-content-cb_CheckoutButton+onFinishInsert"> </a>
|
|
763
|
+
|
|
764
|
+
### afterpayCheckoutButton.onFinishInsert(selector, dataType)
|
|
765
|
+
After finish event of checkout button, data (dataType) will be insert to input (selector)
|
|
766
|
+
|
|
767
|
+
**Kind**: instance method of [<code>AfterpayCheckoutButton</code>](#user-content-cb_AfterpayCheckoutButton)
|
|
768
|
+
**Overrides**: [<code>onFinishInsert</code>](#user-content-cb_CheckoutButton+onFinishInsert)
|
|
769
|
+
|
|
770
|
+
| Param | Type | Description |
|
|
771
|
+
| --- | --- | --- |
|
|
772
|
+
| selector | <code>string</code> | css selector . [] # |
|
|
773
|
+
| dataType | <code>string</code> | data type of IEventCheckoutFinishData [IEventCheckoutFinishData](#user-content-cb_IEventCheckoutFinishData). |
|
|
774
|
+
|
|
775
|
+
<a name="cb_CheckoutButton+setMeta" id="cb_CheckoutButton+setMeta" href="#user-content-cb_CheckoutButton+setMeta"> </a>
|
|
776
|
+
|
|
777
|
+
### afterpayCheckoutButton.setMeta(meta)
|
|
778
|
+
Method for setting meta information for checkout page
|
|
779
|
+
|
|
780
|
+
**Kind**: instance method of [<code>AfterpayCheckoutButton</code>](#user-content-cb_AfterpayCheckoutButton)
|
|
781
|
+
**Overrides**: [<code>setMeta</code>](#user-content-cb_CheckoutButton+setMeta)
|
|
782
|
+
|
|
783
|
+
| Param | Type | Description |
|
|
784
|
+
| --- | --- | --- |
|
|
785
|
+
| meta | [<code>IPayPalMeta</code>](#user-content-cb_IPayPalMeta) \| [<code>IAfterpayMeta</code>](#user-content-cb_IAfterpayMeta) \| [<code>IZipmoneyMeta</code>](#user-content-cb_IZipmoneyMeta) | Data which can be shown on checkout page [IPayPalMeta](#user-content-cb_IPayPalMeta) [IZipmoneyMeta](#user-content-cb_IZipmoneyMeta) [IAfterpayMeta](#user-content-cb_IAfterpayMeta) |
|
|
786
|
+
|
|
787
|
+
**Example**
|
|
788
|
+
|
|
789
|
+
```javascript
|
|
790
|
+
button.setMeta({
|
|
791
|
+
brand_name: 'paydock',
|
|
792
|
+
reference: '15',
|
|
793
|
+
email: 'wault@paydock.com'
|
|
794
|
+
});
|
|
795
|
+
```
|
|
796
|
+
<a name="cb_CheckoutButton+setBackdropDescription" id="cb_CheckoutButton+setBackdropDescription" href="#user-content-cb_CheckoutButton+setBackdropDescription"> </a>
|
|
797
|
+
|
|
798
|
+
### afterpayCheckoutButton.setBackdropDescription(text)
|
|
799
|
+
Method for setting backdrop description.
|
|
800
|
+
Only for 'contextual' mode.
|
|
801
|
+
|
|
802
|
+
**Kind**: instance method of [<code>AfterpayCheckoutButton</code>](#user-content-cb_AfterpayCheckoutButton)
|
|
803
|
+
**Overrides**: [<code>setBackdropDescription</code>](#user-content-cb_CheckoutButton+setBackdropDescription)
|
|
804
|
+
|
|
805
|
+
| Param | Type | Description |
|
|
806
|
+
| --- | --- | --- |
|
|
807
|
+
| text | <code>string</code> | description which can be shown in overlay of back side checkout page |
|
|
808
|
+
|
|
809
|
+
**Example**
|
|
810
|
+
|
|
811
|
+
```javascript
|
|
812
|
+
button.setBackdropDescription('Custom description');
|
|
813
|
+
```
|
|
814
|
+
<a name="cb_CheckoutButton+setBackdropTitle" id="cb_CheckoutButton+setBackdropTitle" href="#user-content-cb_CheckoutButton+setBackdropTitle"> </a>
|
|
815
|
+
|
|
816
|
+
### afterpayCheckoutButton.setBackdropTitle(string)
|
|
817
|
+
Method for setting backdrop title.
|
|
818
|
+
Only for 'contextual' mode.
|
|
819
|
+
|
|
820
|
+
**Kind**: instance method of [<code>AfterpayCheckoutButton</code>](#user-content-cb_AfterpayCheckoutButton)
|
|
821
|
+
**Overrides**: [<code>setBackdropTitle</code>](#user-content-cb_CheckoutButton+setBackdropTitle)
|
|
822
|
+
|
|
823
|
+
| Param | Type | Description |
|
|
824
|
+
| --- | --- | --- |
|
|
825
|
+
| string | <code>text</code> | title which can be shown in overlay of back side checkout page |
|
|
826
|
+
|
|
827
|
+
**Example**
|
|
828
|
+
|
|
829
|
+
```javascript
|
|
830
|
+
button.setBackdropTitle('Custom title');
|
|
831
|
+
```
|
|
832
|
+
<a name="cb_CheckoutButton+setSuspendedRedirectUri" id="cb_CheckoutButton+setSuspendedRedirectUri" href="#user-content-cb_CheckoutButton+setSuspendedRedirectUri"> </a>
|
|
833
|
+
|
|
834
|
+
### afterpayCheckoutButton.setSuspendedRedirectUri(string)
|
|
835
|
+
Method for setting suspended redirect uri. Redirect after referred checkout.
|
|
836
|
+
Only for 'contextual' mode.
|
|
837
|
+
|
|
838
|
+
**Kind**: instance method of [<code>AfterpayCheckoutButton</code>](#user-content-cb_AfterpayCheckoutButton)
|
|
839
|
+
**Overrides**: [<code>setSuspendedRedirectUri</code>](#user-content-cb_CheckoutButton+setSuspendedRedirectUri)
|
|
840
|
+
|
|
841
|
+
| Param | Type | Description |
|
|
842
|
+
| --- | --- | --- |
|
|
843
|
+
| string | <code>uri</code> | uri for redirect (by default) |
|
|
844
|
+
|
|
845
|
+
<a name="cb_CheckoutButton+setRedirectUrl" id="cb_CheckoutButton+setRedirectUrl" href="#user-content-cb_CheckoutButton+setRedirectUrl"> </a>
|
|
846
|
+
|
|
847
|
+
### afterpayCheckoutButton.setRedirectUrl(string)
|
|
848
|
+
Method for setting the merchant redirect URL.
|
|
849
|
+
Merchant's customers redirect after successfull checkout.
|
|
850
|
+
Only for 'redirect' mode.
|
|
851
|
+
|
|
852
|
+
**Kind**: instance method of [<code>AfterpayCheckoutButton</code>](#user-content-cb_AfterpayCheckoutButton)
|
|
853
|
+
**Overrides**: [<code>setRedirectUrl</code>](#user-content-cb_CheckoutButton+setRedirectUrl)
|
|
854
|
+
|
|
855
|
+
| Param | Type | Description |
|
|
856
|
+
| --- | --- | --- |
|
|
857
|
+
| string | <code>url</code> | redirect url |
|
|
858
|
+
|
|
859
|
+
<a name="cb_CheckoutButton+turnOffBackdrop" id="cb_CheckoutButton+turnOffBackdrop" href="#user-content-cb_CheckoutButton+turnOffBackdrop"> </a>
|
|
860
|
+
|
|
861
|
+
### afterpayCheckoutButton.turnOffBackdrop()
|
|
862
|
+
Method for disable backdrop on the page.
|
|
863
|
+
Only for 'contextual' mode.
|
|
864
|
+
|
|
865
|
+
**Kind**: instance method of [<code>AfterpayCheckoutButton</code>](#user-content-cb_AfterpayCheckoutButton)
|
|
866
|
+
**Overrides**: [<code>turnOffBackdrop</code>](#user-content-cb_CheckoutButton+turnOffBackdrop)
|
|
867
|
+
**Example**
|
|
868
|
+
|
|
869
|
+
```javascript
|
|
870
|
+
button.turnOffBackdrop();
|
|
871
|
+
```
|
|
872
|
+
<a name="cb_CHECKOUT_MODE" id="cb_CHECKOUT_MODE" href="#user-content-cb_CHECKOUT_MODE"> </a>
|
|
873
|
+
|
|
874
|
+
## CHECKOUT\_MODE : <code>object</code>
|
|
875
|
+
**Kind**: global variable
|
|
876
|
+
|
|
877
|
+
| Param | Type | Default |
|
|
878
|
+
| --- | --- | --- |
|
|
879
|
+
| CONTEXTUAL | <code>string</code> | <code>"contextual"</code> |
|
|
880
|
+
| REDIRECT | <code>string</code> | <code>"redirect"</code> |
|
|
881
|
+
|
|
882
|
+
<a name="cb_GATEWAY_TYPE" id="cb_GATEWAY_TYPE" href="#user-content-cb_GATEWAY_TYPE"> </a>
|
|
883
|
+
|
|
884
|
+
## GATEWAY\_TYPE : <code>object</code>
|
|
885
|
+
**Kind**: global variable
|
|
886
|
+
|
|
887
|
+
| Param | Type | Default |
|
|
888
|
+
| --- | --- | --- |
|
|
889
|
+
| ZIPMONEY | <code>string</code> | <code>"Zipmoney"</code> |
|
|
890
|
+
| PAYPAL | <code>string</code> | <code>"PaypalClassic"</code> |
|
|
891
|
+
| AFTERPAY | <code>string</code> | <code>"Afterpay"</code> |
|
|
892
|
+
|
|
893
|
+
<a name="cb_CHECKOUT_BUTTON_EVENT" id="cb_CHECKOUT_BUTTON_EVENT" href="#user-content-cb_CHECKOUT_BUTTON_EVENT"> </a>
|
|
894
|
+
|
|
895
|
+
## CHECKOUT\_BUTTON\_EVENT : <code>object</code>
|
|
896
|
+
**Kind**: global constant
|
|
897
|
+
|
|
898
|
+
| Param | Type | Default |
|
|
899
|
+
| --- | --- | --- |
|
|
900
|
+
| CLICK | <code>string</code> | <code>"click"</code> |
|
|
901
|
+
| POPUP_REDIRECT | <code>string</code> | <code>"popup_redirect"</code> |
|
|
902
|
+
| ERROR | <code>string</code> | <code>"error"</code> |
|
|
903
|
+
| ACCEPTED | <code>string</code> | <code>"accepted"</code> |
|
|
904
|
+
| FINISH | <code>string</code> | <code>"finish"</code> |
|
|
905
|
+
| CLOSE | <code>string</code> | <code>"close"</code> |
|
|
906
|
+
|
|
907
|
+
<a name="cb_listener" id="cb_listener" href="#user-content-cb_listener"> </a>
|
|
908
|
+
|
|
909
|
+
## listener : <code>function</code>
|
|
910
|
+
This callback will be called for each event in payment source widget
|
|
911
|
+
|
|
912
|
+
**Kind**: global typedef
|