@paydock/client-sdk 1.106.11-beta → 1.107.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -104
- package/bundles/index.cjs +10483 -0
- package/bundles/index.cjs.d.ts +3206 -0
- package/bundles/index.cjs.map +1 -0
- package/bundles/index.mjs +10451 -0
- package/bundles/index.mjs.d.ts +3206 -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/components/form-Interceptor.d.ts → 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 +8 -7
- 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 +3 -1
- 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}/constants/validators.d.ts +3 -2
- package/bundles/types/constants/validators.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/bundles/types/helper/element-id.d.ts +5 -0
- package/bundles/types/helper/element-id.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/click-to-pay-secure-remote-commerce.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.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/mastercard-src/index.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.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/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 +2 -1
- 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/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/{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 +4 -3
- 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 +6751 -6890
- package/bundles/widget.umd.js.d.ts +3206 -0
- package/bundles/widget.umd.js.map +1 -0
- package/bundles/widget.umd.js.min.d.ts +3206 -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 +2499 -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/click-to-pay-examples.md +231 -0
- package/docs/click-to-pay.md +336 -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 +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/ps-examples.md +129 -0
- package/docs/vault-display-example.md +132 -0
- package/docs/wallet-buttons-examples.md +609 -0
- package/docs/wallet-buttons.md +619 -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 +113 -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 -19
- package/lib/api/api-service-internal.js.map +0 -1
- package/lib/api/api.js +0 -62
- 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 -157
- 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 -50
- 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 -266
- 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 -25
- 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 -64
- 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 -63
- 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 -77
- 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 -60
- 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 -75
- 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/constants/validators.js +0 -42
- package/lib/constants/validators.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 -172
- 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 -142
- package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
- package/lib/secure-remote-commerce/click-to-pay-secure-remote-commerce.js +0 -40
- package/lib/secure-remote-commerce/click-to-pay-secure-remote-commerce.js.map +0 -1
- package/lib/secure-remote-commerce/index.js +0 -103
- package/lib/secure-remote-commerce/index.js.map +0 -1
- package/lib/secure-remote-commerce/interfaces.js +0 -48
- package/lib/secure-remote-commerce/interfaces.js.map +0 -1
- package/lib/secure-remote-commerce/providers/mastercard-src/index.js +0 -2
- package/lib/secure-remote-commerce/providers/mastercard-src/index.js.map +0 -1
- package/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js +0 -89
- package/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.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/secure-remote-commerce.js +0 -155
- 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 -99
- 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 -324
- package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -163
- 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 -301
- package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +0 -3
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js +0 -151
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +0 -1
- package/lib/wallet-buttons/index.js +0 -128
- 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 -144
- 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 -479
- package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
- package/lib/wallet-buttons/wallet-service.js +0 -60
- package/lib/wallet-buttons/wallet-service.js.map +0 -1
- package/lib/widget/configuration.js +0 -260
- package/lib/widget/configuration.js.map +0 -1
- package/lib/widget/html-multi-widget.js +0 -422
- package/lib/widget/html-multi-widget.js.map +0 -1
- package/lib/widget/html-widget.js +0 -127
- 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 -437
- 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 -129
- 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 -3
- 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 -1
- package/widget.d.ts +0 -1
- package/widget.js +0 -1
package/slate.md
CHANGED
|
@@ -16,6 +16,10 @@ Also you will need added gateway ([see API Reference by gateway](https://docs.pa
|
|
|
16
16
|
|
|
17
17
|
## Get started
|
|
18
18
|
|
|
19
|
+
The Client SDK ships in JavaScript ES6 (EcmaScript 2015) in three different
|
|
20
|
+
formats (CJS, ESM and UMD) along with respective TypeScript declarations. Below,
|
|
21
|
+
we exemplify how to import each format.
|
|
22
|
+
|
|
19
23
|
### Download from CDN
|
|
20
24
|
|
|
21
25
|
```html
|
|
@@ -25,77 +29,73 @@ Also you will need added gateway ([see API Reference by gateway](https://docs.pa
|
|
|
25
29
|
</script>
|
|
26
30
|
```
|
|
27
31
|
|
|
28
|
-
You should begin by including the library in your page.
|
|
29
|
-
|
|
30
|
-
Add this script tag to your page to get started with with the url below:
|
|
31
|
-
|
|
32
|
-
*Compressed version for production*
|
|
33
|
-
`https://widget.paydock.com/sdk/latest/widget.umd.min.js`
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
For browser environments, you can import the Client SDK directly from our CDN to
|
|
34
|
+
your project's HTML. To accomplish this, include the Client SDK in your page
|
|
35
|
+
using one and only of the two script tags below. After this step you will be
|
|
36
|
+
able to access the Client SDK features via the global variable `paydock`.
|
|
37
37
|
|
|
38
|
+
For production we recommend using the compressed version (`.min.js`) since
|
|
39
|
+
it will result in faster loading times for your end users.
|
|
38
40
|
|
|
41
|
+
- *Compressed version for production: `https://widget.paydock.com/sdk/latest/widget.umd.min.js`*
|
|
39
42
|
|
|
43
|
+
- *Full version for development and debug: `https://widget.paydock.com/sdk/latest/widget.umd.js`*
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
You may download the production version of the Client SDK scripts [here][min],
|
|
46
|
+
and, the development version [here][max].
|
|
42
47
|
|
|
43
48
|
[min]: https://widget.paydock.com/sdk/latest/widget.umd.min.js
|
|
44
49
|
[max]: https://widget.paydock.com/sdk/latest/widget.umd.js
|
|
45
50
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Also for more advanced use, the library has [UMD](https://github.com/umdjs/umd) format, thus can be used in requireJs, webpack, etc.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
For more advanced use-cases, the library has [UMD](https://github.com/umdjs/umd)
|
|
52
|
+
format that can be used in RequireJS, Webpack, etc.
|
|
59
53
|
|
|
60
54
|
|
|
61
55
|
### With package manager
|
|
62
56
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
import { HtmlWidget } from '@paydock/client-sdk/widget';
|
|
68
|
-
|
|
69
|
-
let widget = new HtmlWidget('#selector', 'publicKey', 'gatewayId');
|
|
57
|
+
```cjs
|
|
58
|
+
// module import - CommonJS/Node projects ✅
|
|
59
|
+
const paydock = require('@paydock/client-sdk')
|
|
60
|
+
const api = new paydock.Api('publicKey');
|
|
70
61
|
```
|
|
71
62
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
var widget = new paydock.HtmlWidget('#tag', 'publicKey', 'gatewayId');
|
|
77
|
-
</script>
|
|
63
|
+
```mjs
|
|
64
|
+
// named import - ESM projects or TypeScript projects ✅
|
|
65
|
+
import { HtmlWidget } from '@paydock/client-sdk'
|
|
66
|
+
const widget = new HtmlWidget('#selector', 'publicKey', 'gatewayId');
|
|
78
67
|
```
|
|
79
68
|
|
|
69
|
+
```mjs
|
|
70
|
+
// namespaced import - ESM projects or TypeScript projects ✅
|
|
71
|
+
import * as Paydock from '@paydock/client-sdk'
|
|
72
|
+
const widget = new Paydock.HtmlWidget('#selector', 'publicKey', 'gatewayId');
|
|
73
|
+
```
|
|
80
74
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
`@paydock/client-sdk/widget`
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Also can use UMD module (global visibility, see above)
|
|
92
|
-
|
|
93
|
-
`@paydock/client-sdk/bundles/widget.umd.js`
|
|
75
|
+
```js
|
|
76
|
+
// default import - We do not provide default exports. They are handled differently by different tools!
|
|
77
|
+
❌
|
|
78
|
+
import paydock from '@paydock/client-sdk'
|
|
79
|
+
>>> "Uncaught SyntaxError: The requested module does not provide an export named 'default'"
|
|
80
|
+
```
|
|
94
81
|
|
|
95
|
-
`@paydock/client-sdk/bundles/widget.umd.min.js`
|
|
96
82
|
|
|
83
|
+
Our NPM package is compatible with all package managers (e.g., `npm`, `yarn`,
|
|
84
|
+
`pnpm`, `bun`). Using `npm` the following command would add the Client SDK as a
|
|
85
|
+
production dependency.
|
|
97
86
|
|
|
87
|
+
```bash
|
|
88
|
+
npm install @paydock/client-sdk
|
|
89
|
+
```
|
|
98
90
|
|
|
91
|
+
After installation is complete, if you are developing in NodeJS environments or
|
|
92
|
+
using tools that expect your JavaScript code to be in CJS format (e.g., Jest,
|
|
93
|
+
Karma, RequireJS, Webpack), you can import the Client SDK using CommonJS modules.
|
|
94
|
+
For these environments the UMD format (`@paydock/client-sdk/bundles/widget.umd.js`)
|
|
95
|
+
can also be used as a fallback. Alternatively, in case you are developing in
|
|
96
|
+
projects that have access to modern bundlers such as Vite or others (e.g., SPA
|
|
97
|
+
libs or SSR Metaframeworks), you can import the Client SDK features using ESM
|
|
98
|
+
through named imports or namespaced imports.
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
## Widget
|
|
@@ -122,11 +122,11 @@ var widget = new paydock.HtmlWidget('#widget', 'publicKey');
|
|
|
122
122
|
widget.load();
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
```javascript
|
|
125
|
+
```javascript
|
|
126
126
|
// ES2015 | TypeScript
|
|
127
127
|
|
|
128
|
-
import { HtmlWidget } from '@paydock/client-sdk
|
|
129
|
-
|
|
128
|
+
import { HtmlWidget } from '@paydock/client-sdk';
|
|
129
|
+
|
|
130
130
|
var widget = new HtmlWidget('#widget', 'publicKey');
|
|
131
131
|
widget.load();
|
|
132
132
|
```
|
|
@@ -134,7 +134,7 @@ widget.load();
|
|
|
134
134
|
Then write only need 2 lines of code in js to initialize widget
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
### Full example
|
|
137
|
+
### Full example
|
|
138
138
|
|
|
139
139
|
```html
|
|
140
140
|
<!DOCTYPE html>
|
|
@@ -197,9 +197,9 @@ widget.setFormFields(['phone', 'email']); // add additional fields for form of w
|
|
|
197
197
|
widget.setSupportedCardIcons(['mastercard', 'visa']); // add icons of supported card types
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
This example shows how you can use a lot of other methods to settings your form
|
|
200
|
+
This example shows how you can use a lot of other methods to settings your form
|
|
201
201
|
|
|
202
|
-
### Full example
|
|
202
|
+
### Full example
|
|
203
203
|
|
|
204
204
|
```html
|
|
205
205
|
<!DOCTYPE html>
|
|
@@ -220,12 +220,12 @@ This example shows how you can use a lot of other methods to settings your form
|
|
|
220
220
|
<script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
|
|
221
221
|
<script>
|
|
222
222
|
var widget = new paydock.HtmlWidget('#widget', 'publicKey', 'gatewayId');
|
|
223
|
-
|
|
223
|
+
|
|
224
224
|
widget.setSupportedCardIcons(['mastercard', 'visa']);
|
|
225
225
|
widget.setFormFields(['phone', 'email']);
|
|
226
226
|
widget.setRefId('custom-ref-id');
|
|
227
227
|
widget.onFinishInsert('input[name="payment_source_token"]', 'payment_source');z
|
|
228
|
-
|
|
228
|
+
|
|
229
229
|
widget.load();
|
|
230
230
|
</script>
|
|
231
231
|
</script>
|
|
@@ -262,10 +262,10 @@ var list = new paydock.HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken
|
|
|
262
262
|
list.load();
|
|
263
263
|
```
|
|
264
264
|
|
|
265
|
-
```javascript
|
|
265
|
+
```javascript
|
|
266
266
|
// ES2015 | TypeScript
|
|
267
267
|
|
|
268
|
-
import { HtmlPaymentSourceWidget } from '@paydock/client-sdk
|
|
268
|
+
import { HtmlPaymentSourceWidget } from '@paydock/client-sdk';
|
|
269
269
|
|
|
270
270
|
var list = new HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken');
|
|
271
271
|
list.load();
|
|
@@ -392,7 +392,7 @@ You must create a button to turn it into checkout-button
|
|
|
392
392
|
var button = new paydock.PaypalCheckoutButton('#button', 'publicKey', 'gatewayId');
|
|
393
393
|
```
|
|
394
394
|
|
|
395
|
-
```javascript
|
|
395
|
+
```javascript
|
|
396
396
|
// ES2015 | TypeScript
|
|
397
397
|
|
|
398
398
|
|
|
@@ -622,11 +622,11 @@ This wrapper helps you to work with paydock api emdpoints
|
|
|
622
622
|
var browserDetails = await new paydock.Api('publicKey').setEnv('env').getBrowserDetails();
|
|
623
623
|
```
|
|
624
624
|
|
|
625
|
-
```javascript
|
|
625
|
+
```javascript
|
|
626
626
|
// ES2015 | TypeScript
|
|
627
627
|
|
|
628
|
-
import { Api } from '@paydock/client-sdk
|
|
629
|
-
|
|
628
|
+
import { Api } from '@paydock/client-sdk';
|
|
629
|
+
|
|
630
630
|
var browserDetails = await new paydock.Api('publicKey').setEnv('env').getBrowserDetails();
|
|
631
631
|
```
|
|
632
632
|
|
|
@@ -639,11 +639,11 @@ var response = await new paydock.Api('publicKey').setEnv('env').charge().preAuth
|
|
|
639
639
|
});
|
|
640
640
|
```
|
|
641
641
|
|
|
642
|
-
```javascript
|
|
642
|
+
```javascript
|
|
643
643
|
// ES2015 | TypeScript
|
|
644
644
|
|
|
645
|
-
import { Api } from '@paydock/client-sdk
|
|
646
|
-
|
|
645
|
+
import { Api } from '@paydock/client-sdk';
|
|
646
|
+
|
|
647
647
|
var response = await new Api('publicKey').setEnv('env').charge().preAuth({
|
|
648
648
|
amount: 100,
|
|
649
649
|
currency: 'AUD',
|
|
@@ -653,7 +653,7 @@ var response = await new Api('publicKey').setEnv('env').charge().preAuth({
|
|
|
653
653
|
|
|
654
654
|
Then write only need 2 lines of code in js to make request
|
|
655
655
|
|
|
656
|
-
### Initialization full example
|
|
656
|
+
### Initialization full example
|
|
657
657
|
|
|
658
658
|
```html
|
|
659
659
|
<!DOCTYPE html>
|
|
@@ -700,10 +700,10 @@ var canvas3ds = new paydock.Canvas3ds('#widget', 'token');
|
|
|
700
700
|
canvas3ds.load();
|
|
701
701
|
```
|
|
702
702
|
|
|
703
|
-
```javascript
|
|
703
|
+
```javascript
|
|
704
704
|
// ES2015 | TypeScript
|
|
705
705
|
|
|
706
|
-
import { Canvas3ds } from '@paydock/client-sdk
|
|
706
|
+
import { Canvas3ds } from '@paydock/client-sdk';
|
|
707
707
|
|
|
708
708
|
var list = new Canvas3ds('#widget', 'token');
|
|
709
709
|
list.load();
|
|
@@ -924,7 +924,7 @@ After you initialized the standalone 3ds charge via `v1/charges/standalone-3ds`
|
|
|
924
924
|
## Vault Display Widget
|
|
925
925
|
You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#vault-display-widget)
|
|
926
926
|
|
|
927
|
-
The vault display form allows viewing card number and CVV. The form can be customised according to your needs.
|
|
927
|
+
The vault display form allows viewing card number and CVV. The form can be customised according to your needs.
|
|
928
928
|
You can set styles as well as subscribe to widget events that help monitor user’s actions in real time.
|
|
929
929
|
|
|
930
930
|
## Vault Display Widget simple example
|
|
@@ -944,18 +944,18 @@ var widget = new paydock.VaultDisplayWidget('#widget', 'token');
|
|
|
944
944
|
widget.load();
|
|
945
945
|
```
|
|
946
946
|
|
|
947
|
-
```javascript
|
|
947
|
+
```javascript
|
|
948
948
|
// ES2015 | TypeScript
|
|
949
949
|
|
|
950
|
-
import { VaultDisplayWidget } from '@paydock/client-sdk
|
|
951
|
-
|
|
950
|
+
import { VaultDisplayWidget } from '@paydock/client-sdk';
|
|
951
|
+
|
|
952
952
|
var widget = new VaultDisplayWidget('#widget', 'token');
|
|
953
953
|
widget.load();
|
|
954
954
|
```
|
|
955
955
|
|
|
956
956
|
Then write only need 2 lines of code in js to initialize widget
|
|
957
957
|
|
|
958
|
-
### Full example
|
|
958
|
+
### Full example
|
|
959
959
|
|
|
960
960
|
```html
|
|
961
961
|
<!DOCTYPE html>
|
|
@@ -966,9 +966,9 @@ Then write only need 2 lines of code in js to initialize widget
|
|
|
966
966
|
<style>iframe {border: 0;width: 100%;height: 300px;}</style>
|
|
967
967
|
</head>
|
|
968
968
|
<body>
|
|
969
|
-
|
|
969
|
+
|
|
970
970
|
<div id="widget"></div>
|
|
971
|
-
|
|
971
|
+
|
|
972
972
|
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
973
973
|
<script>
|
|
974
974
|
var widget = new paydock.VaultDisplayWidget('#widget', 'token');
|
|
@@ -1006,9 +1006,9 @@ widget.setStyles({
|
|
|
1006
1006
|
});
|
|
1007
1007
|
```
|
|
1008
1008
|
|
|
1009
|
-
This example shows how you can use a lot of other methods to settings your form
|
|
1009
|
+
This example shows how you can use a lot of other methods to settings your form
|
|
1010
1010
|
|
|
1011
|
-
### Full example
|
|
1011
|
+
### Full example
|
|
1012
1012
|
|
|
1013
1013
|
```html
|
|
1014
1014
|
<!DOCTYPE html>
|
|
@@ -1019,27 +1019,27 @@ This example shows how you can use a lot of other methods to settings your form
|
|
|
1019
1019
|
<style>iframe {border: 0;width: 40%;height: 450px;}</style>
|
|
1020
1020
|
</head>
|
|
1021
1021
|
<body>
|
|
1022
|
-
|
|
1022
|
+
|
|
1023
1023
|
<div id="widget"></div>
|
|
1024
|
-
|
|
1024
|
+
|
|
1025
1025
|
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
1026
1026
|
<script>
|
|
1027
1027
|
var widget = new paydock.VaultDisplayWidget('#widget', 'token');
|
|
1028
1028
|
|
|
1029
1029
|
widget.setEnv('sandbox');
|
|
1030
|
-
|
|
1030
|
+
|
|
1031
1031
|
widget.on('after_load', function (data) {
|
|
1032
1032
|
console.log(data);
|
|
1033
1033
|
});
|
|
1034
|
-
|
|
1034
|
+
|
|
1035
1035
|
widget.on('cvv_secure_code_requested', function (data) {
|
|
1036
1036
|
console.log(data);
|
|
1037
1037
|
});
|
|
1038
|
-
|
|
1038
|
+
|
|
1039
1039
|
widget.on('card_number_secure_code_requested', function (data) {
|
|
1040
1040
|
console.log(data);
|
|
1041
1041
|
});
|
|
1042
|
-
|
|
1042
|
+
|
|
1043
1043
|
widget.setStyles({
|
|
1044
1044
|
background_color: 'rgb(0, 0, 0)',
|
|
1045
1045
|
border_color: 'yellow',
|
|
@@ -1088,7 +1088,7 @@ let button = new paydock.WalletButtons(
|
|
|
1088
1088
|
button.load();
|
|
1089
1089
|
```
|
|
1090
1090
|
|
|
1091
|
-
```javascript
|
|
1091
|
+
```javascript
|
|
1092
1092
|
// ES2015 | TypeScript
|
|
1093
1093
|
import { WalletButtons } from '@paydock/client-sdk';
|
|
1094
1094
|
|
|
@@ -1113,7 +1113,7 @@ let button = new paydock.WalletButtons(
|
|
|
1113
1113
|
button.load();
|
|
1114
1114
|
```
|
|
1115
1115
|
|
|
1116
|
-
```javascript
|
|
1116
|
+
```javascript
|
|
1117
1117
|
// ES2015 | TypeScript
|
|
1118
1118
|
import { WalletButtons } from '@paydock/client-sdk';
|
|
1119
1119
|
|
|
@@ -1137,7 +1137,7 @@ let button = new paydock.WalletButtons(
|
|
|
1137
1137
|
button.load();
|
|
1138
1138
|
```
|
|
1139
1139
|
|
|
1140
|
-
```javascript
|
|
1140
|
+
```javascript
|
|
1141
1141
|
// ES2015 | TypeScript
|
|
1142
1142
|
import { WalletButtons } from '@paydock/client-sdk';
|
|
1143
1143
|
|
|
@@ -1682,8 +1682,11 @@ To integrate the Click To Pay checkout iFrame, create a container in your HTML c
|
|
|
1682
1682
|
```html
|
|
1683
1683
|
<div id="checkoutIframe"></div>
|
|
1684
1684
|
```
|
|
1685
|
+
|
|
1685
1686
|
### Initialize the Widget
|
|
1687
|
+
|
|
1686
1688
|
Use the following code to initialize your widget:
|
|
1689
|
+
|
|
1687
1690
|
```javascript
|
|
1688
1691
|
var src = new paydock.ClickToPay(
|
|
1689
1692
|
"#checkoutIframe",
|
|
@@ -1693,7 +1696,8 @@ var src = new paydock.ClickToPay(
|
|
|
1693
1696
|
);
|
|
1694
1697
|
src.load();
|
|
1695
1698
|
```
|
|
1696
|
-
|
|
1699
|
+
|
|
1700
|
+
```javascript
|
|
1697
1701
|
// ES2015 | TypeScript
|
|
1698
1702
|
import { ClickToPay } from '@paydock/client-sdk';
|
|
1699
1703
|
var src = new ClickToPay(
|
|
@@ -1704,9 +1708,13 @@ var src = new ClickToPay(
|
|
|
1704
1708
|
);
|
|
1705
1709
|
src.load();
|
|
1706
1710
|
```
|
|
1711
|
+
|
|
1707
1712
|
*NOTE:* Paydock recommends that you use a Paydock Access Token instead of a public key for security reasons in production environments. When creating your access token, you must enable the `Secure Remote Commerce` and add a whitelist for the domain of your checkout screen.
|
|
1713
|
+
|
|
1708
1714
|
### Full example
|
|
1715
|
+
|
|
1709
1716
|
A full example of the container and the initialized widget is as follows:
|
|
1717
|
+
|
|
1710
1718
|
```html
|
|
1711
1719
|
<!DOCTYPE html>
|
|
1712
1720
|
<html lang="en">
|
|
@@ -1734,7 +1742,9 @@ A full example of the container and the initialized widget is as follows:
|
|
|
1734
1742
|
## Customize your Click To Pay Checkout
|
|
1735
1743
|
|
|
1736
1744
|
The following is an advanced example that includes customization. You can use these methods to enhance your checkout experience.
|
|
1745
|
+
|
|
1737
1746
|
### Settings
|
|
1747
|
+
|
|
1738
1748
|
```javascript
|
|
1739
1749
|
src.setEnv('sandbox'); // set environment
|
|
1740
1750
|
src.hideCheckout(); // hide checkout iframe
|
|
@@ -1752,7 +1762,9 @@ src.on('checkoutError', (error) => {
|
|
|
1752
1762
|
console.log(error);
|
|
1753
1763
|
});
|
|
1754
1764
|
```
|
|
1765
|
+
|
|
1755
1766
|
### Full example
|
|
1767
|
+
|
|
1756
1768
|
```html
|
|
1757
1769
|
<!DOCTYPE html>
|
|
1758
1770
|
<html lang="en">
|
|
@@ -1788,9 +1800,12 @@ src.on('checkoutError', (error) => {
|
|
|
1788
1800
|
</body>
|
|
1789
1801
|
</html>
|
|
1790
1802
|
```
|
|
1803
|
+
|
|
1791
1804
|
## Customize your billing address fields
|
|
1805
|
+
|
|
1792
1806
|
To customize your billing address experience, Paydock uses a flag that manages whether a customer's billing address is mandatory.
|
|
1793
1807
|
The options for this customization are NONE (default option), and POSTAL_COUNTRY or FULL.
|
|
1808
|
+
|
|
1794
1809
|
```
|
|
1795
1810
|
var src = new paydock.ClickToPay(
|
|
1796
1811
|
"#checkoutIframe",
|
|
@@ -1809,6 +1824,7 @@ You can also provide the billing address at the time of creating the charge. For
|
|
|
1809
1824
|
1. Disable the billing address in Paydock's Click To Pay widget.
|
|
1810
1825
|
2. Get your One Time Token from the Click To Pay widget alongside other details that may have been collected outside the Click To Pay checkout as the shipping address.
|
|
1811
1826
|
3. Send the billing address when creating the charge.
|
|
1827
|
+
|
|
1812
1828
|
```
|
|
1813
1829
|
POST v1/charges
|
|
1814
1830
|
{
|
|
@@ -1837,10 +1853,15 @@ POST v1/charges
|
|
|
1837
1853
|
}
|
|
1838
1854
|
}
|
|
1839
1855
|
```
|
|
1856
|
+
|
|
1840
1857
|
## How to customize accepted cards
|
|
1858
|
+
|
|
1841
1859
|
You can send a flag `unaccepted_card_type` to block the usage of a specific card type. The available options are 'DEBIT' and 'CREDIT'.
|
|
1860
|
+
|
|
1842
1861
|
### Example code
|
|
1862
|
+
|
|
1843
1863
|
The following example demonstrates how to block the card:
|
|
1864
|
+
|
|
1844
1865
|
```
|
|
1845
1866
|
var src = new paydock.ClickToPay(
|
|
1846
1867
|
"#checkoutIframe",
|
|
@@ -1851,9 +1872,13 @@ var src = new paydock.ClickToPay(
|
|
|
1851
1872
|
},
|
|
1852
1873
|
);
|
|
1853
1874
|
```
|
|
1875
|
+
|
|
1854
1876
|
## Personalize the Style
|
|
1877
|
+
|
|
1855
1878
|
Customize the look and feel of your UI. The following example demonstrates changes in the styling of the buttons.
|
|
1879
|
+
|
|
1856
1880
|
### Example code
|
|
1881
|
+
|
|
1857
1882
|
```
|
|
1858
1883
|
var src = new paydock.ClickToPay(
|
|
1859
1884
|
"#checkoutIframe",
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
18
|
package/api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/api';
|
package/api.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/api';
|
package/canvas3ds.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/canvas-3ds';
|
package/canvas3ds.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/canvas-3ds';
|
package/checkout-button.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/checkout-button';
|
package/checkout-button.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/checkout-button';
|
package/inicialization-guide.md
DELETED
package/lib/api/api-base.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { AccessToken } from '../helper/access-token';
|
|
2
|
-
import { Env, API_URL } from '../configs/env/env';
|
|
3
|
-
import { SDK } from '../configs/sdk';
|
|
4
|
-
export var API_AUTH_TYPE;
|
|
5
|
-
(function (API_AUTH_TYPE) {
|
|
6
|
-
API_AUTH_TYPE[API_AUTH_TYPE["PUBLIC_KEY"] = 0] = "PUBLIC_KEY";
|
|
7
|
-
API_AUTH_TYPE[API_AUTH_TYPE["TOKEN"] = 1] = "TOKEN";
|
|
8
|
-
})(API_AUTH_TYPE || (API_AUTH_TYPE = {}));
|
|
9
|
-
class ApiBase {
|
|
10
|
-
constructor(auth, authType) {
|
|
11
|
-
this.auth = auth;
|
|
12
|
-
this.authType = authType || this.setAuthType();
|
|
13
|
-
this.env = new Env(API_URL);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Current method can change environment. By default environment = sandbox.
|
|
17
|
-
* Also we can change domain alias for this environment. By default domain_alias = paydock.com
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* widget.setEnv('production');
|
|
21
|
-
* @param {string} env - sandbox, production
|
|
22
|
-
* @param {string} [alias] - Own domain alias
|
|
23
|
-
*/
|
|
24
|
-
setEnv(env, alias) {
|
|
25
|
-
this.env.setEnv(env, alias);
|
|
26
|
-
return this;
|
|
27
|
-
}
|
|
28
|
-
setAuthType() {
|
|
29
|
-
return this.authType = !!AccessToken.validateJWT(this.auth) ? API_AUTH_TYPE.TOKEN : API_AUTH_TYPE.PUBLIC_KEY;
|
|
30
|
-
}
|
|
31
|
-
getClient(method, link) {
|
|
32
|
-
let request = new XMLHttpRequest();
|
|
33
|
-
request.open(method, this.env.getConf().url + link, true);
|
|
34
|
-
request.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
|
|
35
|
-
this.setAuthHeader(request);
|
|
36
|
-
if (SDK.version) {
|
|
37
|
-
request.setRequestHeader(SDK.headerKeys.version, SDK.version);
|
|
38
|
-
request.setRequestHeader(SDK.headerKeys.type, SDK.type);
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
config: request,
|
|
42
|
-
send: (body, cb, errorCb) => {
|
|
43
|
-
request.onload = () => this.parser({ text: request.responseText, status: request.status }, cb, errorCb);
|
|
44
|
-
request.send(JSON.stringify(body));
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
getClientPromise(method, link) {
|
|
49
|
-
let request = new XMLHttpRequest();
|
|
50
|
-
request.open(method, this.env.getConf().url + link, true);
|
|
51
|
-
request.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
|
|
52
|
-
this.setAuthHeader(request);
|
|
53
|
-
if (SDK.version) {
|
|
54
|
-
request.setRequestHeader(SDK.headerKeys.version, SDK.version);
|
|
55
|
-
request.setRequestHeader(SDK.headerKeys.type, SDK.type);
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
config: request,
|
|
59
|
-
send: (body) => new Promise((resolve, reject) => {
|
|
60
|
-
request.onload = () => resolve({ text: request.responseText, status: request.status });
|
|
61
|
-
request.send(JSON.stringify(body));
|
|
62
|
-
}).then((value) => this.parserPromise(value)),
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
parser({ text, status }, cb, errorCb) {
|
|
66
|
-
try {
|
|
67
|
-
let res = JSON.parse(text);
|
|
68
|
-
if ((status >= 200 && status < 300) || status === 302)
|
|
69
|
-
return cb(res.resource.data);
|
|
70
|
-
else
|
|
71
|
-
errorCb(res.error || { message: 'unknown error' });
|
|
72
|
-
}
|
|
73
|
-
catch (e) {
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
parserPromise({ text, status }) {
|
|
77
|
-
try {
|
|
78
|
-
const res = JSON.parse(text);
|
|
79
|
-
return ((status >= 200 && status < 300) || status === 302)
|
|
80
|
-
? Promise.resolve(res.resource.data)
|
|
81
|
-
: Promise.reject(res.error || { message: 'unknown error' });
|
|
82
|
-
}
|
|
83
|
-
catch (e) {
|
|
84
|
-
return Promise.reject(e);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
setAuthHeader(request) {
|
|
88
|
-
switch (this.authType) {
|
|
89
|
-
case API_AUTH_TYPE.PUBLIC_KEY: {
|
|
90
|
-
request.setRequestHeader('x-user-public-key', this.auth);
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
case API_AUTH_TYPE.TOKEN: {
|
|
94
|
-
request.setRequestHeader('x-access-token', this.auth);
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
export { ApiBase };
|
|
101
|
-
//# sourceMappingURL=../../src/lib/api/api-base.js.map
|
package/lib/api/api-base.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-base.js","sourceRoot":"","sources":["../../api/api-base.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const WALLET_CAPTURE_LINK = '/v1/charges/wallet/capture';
|
|
2
|
-
const WALLET_CALLBACK_LINK = '/v1/charges/wallet/callback';
|
|
3
|
-
const STANDALONE_3DS_PROCESS_LINK = '/v1/charges/standalone-3ds/process';
|
|
4
|
-
const STANDALONE_3DS_HANDLE_LINK = '/v1/charges/standalone-3ds/handle';
|
|
5
|
-
export class ApiChargeInternal {
|
|
6
|
-
constructor(api) {
|
|
7
|
-
this.api = api;
|
|
8
|
-
}
|
|
9
|
-
walletCapture(payload) {
|
|
10
|
-
return this.api
|
|
11
|
-
.getClientPromise('POST', WALLET_CAPTURE_LINK)
|
|
12
|
-
.send(payload);
|
|
13
|
-
}
|
|
14
|
-
walletCallback(payload) {
|
|
15
|
-
return this.api
|
|
16
|
-
.getClientPromise('POST', WALLET_CALLBACK_LINK)
|
|
17
|
-
.send(payload);
|
|
18
|
-
}
|
|
19
|
-
standalone3dsProcess(payload) {
|
|
20
|
-
return this.api
|
|
21
|
-
.getClientPromise('POST', STANDALONE_3DS_PROCESS_LINK)
|
|
22
|
-
.send(payload);
|
|
23
|
-
}
|
|
24
|
-
standalone3dsHandle() {
|
|
25
|
-
return this.api
|
|
26
|
-
.getClientPromise('GET', STANDALONE_3DS_HANDLE_LINK)
|
|
27
|
-
.send(undefined);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=../../src/lib/api/api-charge-internal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-charge-internal.js","sourceRoot":"","sources":["../../api/api-charge-internal.ts"],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAG,4BAA4B,CAAC;AACzD,MAAM,oBAAoB,GAAG,6BAA6B,CAAC;AAC3D,MAAM,2BAA2B,GAAG,oCAAoC,CAAC;AACzE,MAAM,0BAA0B,GAAG,mCAAmC,CAAC;AAEvE,MAAM,OAAO,iBAAiB;IAC1B,YAAsB,GAAgB;QAAhB,QAAG,GAAH,GAAG,CAAa;IACtC,CAAC;IAED,aAAa,CAAC,OAA0B;QACpC,OAAO,IAAI,CAAC,GAAG;aACV,gBAAgB,CAA2C,MAAM,EAAE,mBAAmB,CAAC;aACvF,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IAED,cAAc,CAAC,OAA2B;QACtC,OAAO,IAAI,CAAC,GAAG;aACV,gBAAgB,CAA6C,MAAM,EAAE,oBAAoB,CAAC;aAC1F,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IAED,oBAAoB,CAAC,OAAiC;QAClD,OAAO,IAAI,CAAC,GAAG;aACV,gBAAgB,CAA0D,MAAM,EAAE,2BAA2B,CAAC;aAC9G,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IAED,mBAAmB;QACf,OAAO,IAAI,CAAC,GAAG;aACV,gBAAgB,CAAoD,KAAK,EAAE,0BAA0B,CAAC;aACtG,IAAI,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;CACJ"}
|