@paydock/client-sdk 1.103.1 → 1.104.1-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 +102 -104
- package/bundles/index.cjs +10674 -0
- package/bundles/index.cjs.d.ts +3163 -0
- package/bundles/index.cjs.map +1 -0
- package/bundles/index.mjs +10642 -0
- package/bundles/index.mjs.d.ts +3163 -0
- package/bundles/index.mjs.map +1 -0
- package/{lib → bundles/types}/api/api-base.d.ts +2 -1
- package/bundles/types/api/api-base.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-charge-internal.d.ts +1 -0
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
- package/bundles/types/api/api-charge.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-internal.d.ts +1 -0
- package/bundles/types/api/api-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-service-internal.d.ts +1 -0
- package/bundles/types/api/api-service-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api.d.ts +1 -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/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
- package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
- package/bundles/types/checkout-button/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
- package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
- package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
- 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/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
- package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
- package/bundles/types/components/ability-guard.d.ts.map +1 -0
- package/{lib → bundles/types}/components/background.d.ts +1 -0
- package/bundles/types/components/background.d.ts.map +1 -0
- package/{lib → bundles/types}/components/container.d.ts +1 -0
- package/bundles/types/components/container.d.ts.map +1 -0
- package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
- package/bundles/types/components/dispatcher.d.ts.map +1 -0
- package/{lib → bundles/types}/components/element-style.d.ts +2 -1
- package/bundles/types/components/element-style.d.ts.map +1 -0
- package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
- package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/form-Interceptor.d.ts +1 -0
- package/bundles/types/components/form-Interceptor.d.ts.map +1 -0
- package/{lib → bundles/types}/components/http-core.d.ts +1 -0
- package/bundles/types/components/http-core.d.ts.map +1 -0
- package/{lib → bundles/types}/components/iframe-event.d.ts +2 -0
- package/bundles/types/components/iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/iframe.d.ts +1 -0
- package/bundles/types/components/iframe.d.ts.map +1 -0
- package/{lib → bundles/types}/components/link.d.ts +2 -1
- package/bundles/types/components/link.d.ts.map +1 -0
- package/{lib → bundles/types}/components/loader.d.ts +1 -0
- package/bundles/types/components/loader.d.ts.map +1 -0
- package/{lib → bundles/types}/components/param.d.ts +6 -5
- package/bundles/types/components/param.d.ts.map +1 -0
- package/{lib → bundles/types}/components/popup.d.ts +1 -0
- package/bundles/types/components/popup.d.ts.map +1 -0
- package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
- package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
- package/{lib → bundles/types}/components/trigger.d.ts +1 -0
- package/bundles/types/components/trigger.d.ts.map +1 -0
- package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/wallet-background.d.ts +1 -0
- package/bundles/types/components/wallet-background.d.ts.map +1 -0
- package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
- package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.cba.d.ts +29 -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/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
- 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/{lib → bundles/types}/configs/sdk.d.ts +3 -2
- package/bundles/types/configs/sdk.d.ts.map +1 -0
- package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
- package/bundles/types/external-checkout/builder.d.ts.map +1 -0
- package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -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/{lib → bundles/types}/helper/access-token.d.ts +1 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/browser.d.ts +1 -0
- package/bundles/types/helper/browser.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/event-emitter.d.ts +1 -0
- package/bundles/types/helper/event-emitter.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/event.d.ts +1 -0
- package/bundles/types/helper/event.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/ms.d.ts +1 -0
- package/bundles/types/helper/ms.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/object.d.ts +1 -0
- package/bundles/types/helper/object.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/url.d.ts +1 -0
- package/bundles/types/helper/url.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
- package/bundles/types/helper/uuid.d.ts.map +1 -0
- package/bundles/types/index-cba.d.ts +13 -0
- package/bundles/types/index-cba.d.ts.map +1 -0
- package/bundles/types/index.d.ts +14 -0
- package/bundles/types/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
- package/bundles/types/payment-source/builder.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
- package/bundles/types/payment-source/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
- package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -0
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/index.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/interfaces.d.ts +6 -5
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/helper.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/index.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/visa-src.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/secure-remote-commerce.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
- package/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
- package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/afterpay.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/apple.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/flypay-v2.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/flypay.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/google.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/google.wallet-service.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/{lib → bundles/types}/wallet-buttons/index.d.ts +1 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/mastercard.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/paypal.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/stripe.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/wallet-buttons.d.ts +1 -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/{lib → bundles/types}/wallet-buttons/wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
- package/bundles/types/widget/configuration.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/html-multi-widget.d.ts +1 -0
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
- package/bundles/types/widget/html-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/index.d.ts +2 -1
- package/bundles/types/widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/meta.d.ts +1 -0
- package/bundles/types/widget/meta.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
- package/bundles/types/widget/multi-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/style.d.ts +1 -0
- package/bundles/types/widget/style.d.ts.map +1 -0
- package/bundles/widget.umd.js +6813 -6963
- package/bundles/widget.umd.js.d.ts +3163 -0
- package/bundles/widget.umd.js.map +1 -0
- package/bundles/widget.umd.js.min.d.ts +3163 -0
- package/bundles/widget.umd.min.js +2 -1
- package/bundles/widget.umd.min.js.map +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 +2444 -0
- package/docs/api-wrapper.md +78 -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/header.md +15 -0
- package/docs/html/layout.html +78 -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 +21 -0
- package/docs/install/umd.example.md +6 -0
- package/docs/install.md +53 -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/ps-examples.md +129 -0
- package/docs/secure-remote-commerce-examples.md +258 -0
- package/docs/secure-remote-commerce.md +265 -0
- package/docs/vault-display-example.md +132 -0
- package/docs/wallet-buttons-examples.md +580 -0
- package/docs/wallet-buttons.md +424 -0
- package/docs/wallet-cba-buttons-examples.md +388 -0
- package/docs/widget-examples.md +134 -0
- package/package.json +164 -42
- package/slate.md +89 -88
- package/.nvmrc +0 -1
- package/api.d.ts +0 -1
- package/api.js +0 -1
- package/canvas3ds.d.ts +0 -1
- package/canvas3ds.js +0 -1
- package/checkout-button.d.ts +0 -1
- package/checkout-button.js +0 -1
- package/inicialization-guide.md +0 -7
- package/lib/api/api-base.js +0 -101
- package/lib/api/api-base.js.map +0 -1
- package/lib/api/api-charge-internal.js +0 -30
- package/lib/api/api-charge-internal.js.map +0 -1
- package/lib/api/api-charge.js +0 -49
- package/lib/api/api-charge.js.map +0 -1
- package/lib/api/api-internal.js +0 -13
- package/lib/api/api-internal.js.map +0 -1
- package/lib/api/api-service-internal.js +0 -18
- package/lib/api/api-service-internal.js.map +0 -1
- package/lib/api/api.js +0 -61
- package/lib/api/api.js.map +0 -1
- package/lib/api/index.d.ts +0 -1
- package/lib/api/index.js +0 -2
- package/lib/api/index.js.map +0 -1
- package/lib/canvas-3ds/canvas-3ds.js +0 -156
- package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
- package/lib/canvas-3ds/index.js +0 -2
- package/lib/canvas-3ds/index.js.map +0 -1
- package/lib/canvas-3ds/services/gpayments-service.js +0 -181
- package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
- package/lib/canvas-3ds/services/index.js +0 -2
- package/lib/canvas-3ds/services/index.js.map +0 -1
- package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
- package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -49
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
- package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
- package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
- package/lib/checkout-button/checkout-button.interface.js +0 -45
- package/lib/checkout-button/checkout-button.interface.js.map +0 -1
- package/lib/checkout-button/checkout-button.js +0 -265
- package/lib/checkout-button/checkout-button.js.map +0 -1
- package/lib/checkout-button/checkout-contextual-handler.js +0 -75
- package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
- package/lib/checkout-button/index.js +0 -85
- package/lib/checkout-button/index.js.map +0 -1
- package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -24
- package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
- package/lib/checkout-button/paypal/paypal.runner.js +0 -14
- package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
- package/lib/checkout-button/runner/base.runner.js +0 -13
- package/lib/checkout-button/runner/base.runner.js.map +0 -1
- package/lib/checkout-button/runner/contextual.runner.js +0 -40
- package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
- package/lib/checkout-button/runner/index.js +0 -11
- package/lib/checkout-button/runner/index.js.map +0 -1
- package/lib/checkout-button/runner/popup.runner.js +0 -68
- package/lib/checkout-button/runner/popup.runner.js.map +0 -1
- package/lib/checkout-button/runner/redirect.runner.js +0 -15
- package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -63
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
- package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
- package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
- package/lib/components/ability-guard.js +0 -44
- package/lib/components/ability-guard.js.map +0 -1
- package/lib/components/background.js +0 -193
- package/lib/components/background.js.map +0 -1
- package/lib/components/container.js +0 -60
- package/lib/components/container.js.map +0 -1
- package/lib/components/dispatcher.js +0 -39
- package/lib/components/dispatcher.js.map +0 -1
- package/lib/components/element-style.js +0 -52
- package/lib/components/element-style.js.map +0 -1
- package/lib/components/flypay-iframe-event.js +0 -28
- package/lib/components/flypay-iframe-event.js.map +0 -1
- package/lib/components/form-Interceptor.js +0 -38
- package/lib/components/form-Interceptor.js.map +0 -1
- package/lib/components/http-core.js +0 -57
- package/lib/components/http-core.js.map +0 -1
- package/lib/components/iframe-event.js +0 -84
- package/lib/components/iframe-event.js.map +0 -1
- package/lib/components/iframe.js +0 -62
- package/lib/components/iframe.js.map +0 -1
- package/lib/components/link.js +0 -59
- package/lib/components/link.js.map +0 -1
- package/lib/components/loader.js +0 -234
- package/lib/components/loader.js.map +0 -1
- package/lib/components/param.js +0 -147
- package/lib/components/param.js.map +0 -1
- package/lib/components/popup.js +0 -104
- package/lib/components/popup.js.map +0 -1
- package/lib/components/storage-dispatcher.js +0 -75
- package/lib/components/storage-dispatcher.js.map +0 -1
- package/lib/components/trigger.js +0 -49
- package/lib/components/trigger.js.map +0 -1
- package/lib/components/vault-display-iframe-event.js +0 -27
- package/lib/components/vault-display-iframe-event.js.map +0 -1
- package/lib/components/wallet-background.js +0 -60
- package/lib/components/wallet-background.js.map +0 -1
- package/lib/components/wallet-trigger.js +0 -27
- package/lib/components/wallet-trigger.js.map +0 -1
- package/lib/configs/env/env.js +0 -117
- package/lib/configs/env/env.js.map +0 -1
- package/lib/configs/sdk.js +0 -16
- package/lib/configs/sdk.js.map +0 -1
- package/lib/external-checkout/builder.js +0 -45
- package/lib/external-checkout/builder.js.map +0 -1
- package/lib/external-checkout/checker.js +0 -22
- package/lib/external-checkout/checker.js.map +0 -1
- package/lib/external-checkout/index.d.ts +0 -2
- package/lib/external-checkout/index.js +0 -3
- package/lib/external-checkout/index.js.map +0 -1
- package/lib/helper/access-token.js +0 -44
- package/lib/helper/access-token.js.map +0 -1
- package/lib/helper/browser.js +0 -79
- package/lib/helper/browser.js.map +0 -1
- package/lib/helper/event-emitter.js +0 -23
- package/lib/helper/event-emitter.js.map +0 -1
- package/lib/helper/event.js +0 -23
- package/lib/helper/event.js.map +0 -1
- package/lib/helper/ms.js +0 -32
- package/lib/helper/ms.js.map +0 -1
- package/lib/helper/object.js +0 -6
- package/lib/helper/object.js.map +0 -1
- package/lib/helper/url.js +0 -11
- package/lib/helper/url.js.map +0 -1
- package/lib/helper/uuid.js +0 -26
- package/lib/helper/uuid.js.map +0 -1
- package/lib/index.d.ts +0 -15
- package/lib/index.js +0 -15
- package/lib/index.js.map +0 -1
- package/lib/payment-source/builder.js +0 -49
- package/lib/payment-source/builder.js.map +0 -1
- package/lib/payment-source/index.js +0 -2
- package/lib/payment-source/index.js.map +0 -1
- package/lib/payment-source-widget/html-payment-source-widget.js +0 -167
- package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
- package/lib/payment-source-widget/index.js +0 -35
- package/lib/payment-source-widget/index.js.map +0 -1
- package/lib/payment-source-widget/interfaces.js +0 -2
- package/lib/payment-source-widget/interfaces.js.map +0 -1
- package/lib/payment-source-widget/payment-source-widget.js +0 -141
- package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
- package/lib/secure-remote-commerce/index.js +0 -2
- package/lib/secure-remote-commerce/index.js.map +0 -1
- package/lib/secure-remote-commerce/interfaces.js +0 -28
- package/lib/secure-remote-commerce/interfaces.js.map +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
- package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
- package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
- package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -238
- package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
- package/lib/vault-display-widget/index.js +0 -14
- package/lib/vault-display-widget/index.js.map +0 -1
- package/lib/vault-display-widget/vault-display-widget.js +0 -98
- package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
- package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
- package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/apple.wallet-service.js +0 -291
- package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -192
- package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
- package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/google.wallet-service.js +0 -268
- package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/index.js +0 -2
- package/lib/wallet-buttons/index.js.map +0 -1
- package/lib/wallet-buttons/interfaces.js +0 -1
- package/lib/wallet-buttons/interfaces.js.map +0 -1
- package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
- package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/paypal.wallet-service.js +0 -129
- package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
- package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/wallet-buttons.js +0 -454
- package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
- package/lib/wallet-buttons/wallet-service.js +0 -49
- package/lib/wallet-buttons/wallet-service.js.map +0 -1
- package/lib/widget/configuration.js +0 -259
- package/lib/widget/configuration.js.map +0 -1
- package/lib/widget/html-multi-widget.js +0 -380
- package/lib/widget/html-multi-widget.js.map +0 -1
- package/lib/widget/html-widget.js +0 -126
- package/lib/widget/html-widget.js.map +0 -1
- package/lib/widget/index.js +0 -132
- package/lib/widget/index.js.map +0 -1
- package/lib/widget/meta.js +0 -8
- package/lib/widget/meta.js.map +0 -1
- package/lib/widget/multi-widget.js +0 -436
- package/lib/widget/multi-widget.js.map +0 -1
- package/lib/widget/style.js +0 -204
- package/lib/widget/style.js.map +0 -1
- package/payment-source-widget.d.ts +0 -1
- package/payment-source-widget.js +0 -1
- package/tslint.json +0 -130
- package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
- package/typings/globals/jasmine/index.d.ts +0 -576
- package/typings/globals/jasmine-ajax/index.d.ts +0 -83
- package/typings/globals/jquery/index.d.ts +0 -3759
- package/typings/index.d.ts +0 -4
- package/vault-display-widget.d.ts +0 -1
- package/vault-display-widget.js +0 -1
- package/vendors/zipmoney.d.ts +0 -18
- package/vendors/zipmoney.js +0 -2
- package/widget.d.ts +0 -1
- package/widget.js +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
|