@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,78 @@
|
|
|
1
|
+
## Classes
|
|
2
|
+
|
|
3
|
+
<dl>
|
|
4
|
+
<dt><a href="#Api">Api</a></dt>
|
|
5
|
+
<dd><p>Class Api include method for working with paydock api</p>
|
|
6
|
+
</dd>
|
|
7
|
+
</dl>
|
|
8
|
+
|
|
9
|
+
## Interfaces
|
|
10
|
+
|
|
11
|
+
<dl>
|
|
12
|
+
<dt><a href="#BrowserDetails">BrowserDetails</a></dt>
|
|
13
|
+
<dd><p>Interface for browser details response.</p>
|
|
14
|
+
</dd>
|
|
15
|
+
</dl>
|
|
16
|
+
|
|
17
|
+
<a name="BrowserDetails" id="BrowserDetails" href="#BrowserDetails"> </a>
|
|
18
|
+
|
|
19
|
+
## BrowserDetails
|
|
20
|
+
Interface for browser details response.
|
|
21
|
+
|
|
22
|
+
**Kind**: global interface
|
|
23
|
+
|
|
24
|
+
| Param | Type |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| [name] | <code>string</code> |
|
|
27
|
+
| [java_enabled] | <code>string</code> |
|
|
28
|
+
| [language] | <code>string</code> |
|
|
29
|
+
| [screen_height] | <code>string</code> |
|
|
30
|
+
| [screen_width] | <code>string</code> |
|
|
31
|
+
| [time_zone] | <code>string</code> |
|
|
32
|
+
| [color_depth] | <code>string</code> |
|
|
33
|
+
|
|
34
|
+
<a name="Api" id="Api" href="#Api"> </a>
|
|
35
|
+
|
|
36
|
+
## Api
|
|
37
|
+
Class Api include method for working with paydock api
|
|
38
|
+
|
|
39
|
+
**Kind**: global class
|
|
40
|
+
|
|
41
|
+
* [Api](#Api)
|
|
42
|
+
* [new Api(publicKey)](#new_Api_new)
|
|
43
|
+
* [.getBrowserDetails()](#Api+getBrowserDetails) ⇒ [<code>BrowserDetails</code>](#BrowserDetails)
|
|
44
|
+
* [.charge()](#Api+charge)
|
|
45
|
+
|
|
46
|
+
<a name="new_Api_new" id="new_Api_new" href="#new_Api_new"> </a>
|
|
47
|
+
|
|
48
|
+
### new Api(publicKey)
|
|
49
|
+
|
|
50
|
+
| Param | Type | Description |
|
|
51
|
+
| --- | --- | --- |
|
|
52
|
+
| publicKey | <code>string</code> | PayDock users public key |
|
|
53
|
+
|
|
54
|
+
**Example**
|
|
55
|
+
```js
|
|
56
|
+
var api = new Api('publicKey');
|
|
57
|
+
```
|
|
58
|
+
<a name="Api+getBrowserDetails" id="Api+getBrowserDetails" href="#Api+getBrowserDetails"> </a>
|
|
59
|
+
|
|
60
|
+
### api.getBrowserDetails() ⇒ [<code>BrowserDetails</code>](#BrowserDetails)
|
|
61
|
+
Method for getting browser details
|
|
62
|
+
|
|
63
|
+
**Kind**: instance method of [<code>Api</code>](#Api)
|
|
64
|
+
**Returns**: [<code>BrowserDetails</code>](#BrowserDetails) - Browser details object
|
|
65
|
+
**Example**
|
|
66
|
+
```js
|
|
67
|
+
api.getBrowserDetails();
|
|
68
|
+
```
|
|
69
|
+
<a name="Api+charge" id="Api+charge" href="#Api+charge"> </a>
|
|
70
|
+
|
|
71
|
+
### api.charge()
|
|
72
|
+
Current method allows to work with charge related endpoints
|
|
73
|
+
|
|
74
|
+
**Kind**: instance method of [<code>Api</code>](#Api)
|
|
75
|
+
**Example**
|
|
76
|
+
```js
|
|
77
|
+
api.charge();
|
|
78
|
+
```
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
## Canvas3ds
|
|
2
|
+
You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#canvas3d)
|
|
3
|
+
|
|
4
|
+
This widget provides you to integrate 3d Secure
|
|
5
|
+
|
|
6
|
+
## Canvas3ds simple example
|
|
7
|
+
|
|
8
|
+
### Container
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<div id="widget"></div>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
You must create a container for the widget. Inside this tag, the widget will be initialized
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Initialization
|
|
18
|
+
```javascript
|
|
19
|
+
var canvas3ds = new paydock.Canvas3ds('#widget', 'token');
|
|
20
|
+
canvas3ds.load();
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
// ES2015 | TypeScript
|
|
25
|
+
|
|
26
|
+
import { Canvas3ds } from '@paydock/client-sdk';
|
|
27
|
+
|
|
28
|
+
var list = new Canvas3ds('#widget', 'token');
|
|
29
|
+
list.load();
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Then write only need 2 lines of code in js to initialize widget
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Full example
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<!DOCTYPE html>
|
|
39
|
+
<html lang="en">
|
|
40
|
+
<head>
|
|
41
|
+
<meta charset="UTF-8">
|
|
42
|
+
<title>Title</title>
|
|
43
|
+
<style>iframe {border: 0;width: 40%;height: 300px;}</style>
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
<div id="widget"></div>
|
|
47
|
+
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js"></script>
|
|
48
|
+
<script>
|
|
49
|
+
var canvas3ds = new paydock.Canvas3ds('#widget', 'token');
|
|
50
|
+
canvas3ds.load();
|
|
51
|
+
</script>
|
|
52
|
+
</body>
|
|
53
|
+
</html>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Canvas3ds advanced example
|
|
58
|
+
|
|
59
|
+
### Settings
|
|
60
|
+
|
|
61
|
+
```javascript
|
|
62
|
+
|
|
63
|
+
canvas3ds.setEnv('sandbox'); // set enviroment
|
|
64
|
+
|
|
65
|
+
canvas3ds.hide(); // hide widget
|
|
66
|
+
|
|
67
|
+
canvas3ds.show(); // show widget
|
|
68
|
+
|
|
69
|
+
canvas3ds.on('chargeAuthSuccess', function (data) {
|
|
70
|
+
console.log(data);
|
|
71
|
+
});
|
|
72
|
+
canvas3ds.on('chargeAuthReject', function (data) {
|
|
73
|
+
console.log(data);
|
|
74
|
+
});
|
|
75
|
+
canvas3ds.on('chargeAuthCancelled', function (data) {
|
|
76
|
+
console.log(data);
|
|
77
|
+
});
|
|
78
|
+
canvas3ds.on('additionalDataCollectSuccess', function (data) {
|
|
79
|
+
console.log(data);
|
|
80
|
+
});
|
|
81
|
+
canvas3ds.on('additionalDataCollectReject', function (data) {
|
|
82
|
+
console.log(data);
|
|
83
|
+
});
|
|
84
|
+
canvas3ds.on('chargeAuth', function (data) {
|
|
85
|
+
console.log(data);
|
|
86
|
+
});
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
This example shows how you can use a lot of other methods to settings your form
|
|
90
|
+
|
|
91
|
+
### Full example
|
|
92
|
+
|
|
93
|
+
```html
|
|
94
|
+
<!DOCTYPE html>
|
|
95
|
+
<html lang="en">
|
|
96
|
+
<head>
|
|
97
|
+
<meta charset="UTF-8">
|
|
98
|
+
<title>Title</title>
|
|
99
|
+
<style>iframe {border: 0;width: 40%;height: 450px;}</style>
|
|
100
|
+
</head>
|
|
101
|
+
<body>
|
|
102
|
+
<div id="widget3ds"></div>
|
|
103
|
+
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js"></script>
|
|
104
|
+
<script>
|
|
105
|
+
var canvas3ds = new paydock.Canvas3ds('#widget3ds', 'token');
|
|
106
|
+
canvas3ds.on('chargeAuthSuccess', function (data) {
|
|
107
|
+
console.log('chargeAuthSuccess', data);
|
|
108
|
+
});
|
|
109
|
+
canvas3ds.on('chargeAuthReject', function (data) {
|
|
110
|
+
console.log('chargeAuthReject', data);
|
|
111
|
+
});
|
|
112
|
+
canvas3ds.load();
|
|
113
|
+
</script>
|
|
114
|
+
</body>
|
|
115
|
+
</html>
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Full example with pre authorization
|
|
119
|
+
|
|
120
|
+
```html
|
|
121
|
+
<!DOCTYPE html>
|
|
122
|
+
<html lang="en">
|
|
123
|
+
<head>
|
|
124
|
+
<meta charset="UTF-8">
|
|
125
|
+
<title>Title</title>
|
|
126
|
+
<style>iframe {border: 0;width: 40%;height: 450px;}</style>
|
|
127
|
+
</head>
|
|
128
|
+
<body>
|
|
129
|
+
<div id="widget"></div>
|
|
130
|
+
<div id="widget3ds"></div>
|
|
131
|
+
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js"></script>
|
|
132
|
+
<script>
|
|
133
|
+
(async function () {
|
|
134
|
+
var htmlWidget = new paydock.HtmlWidget('#widget', 'publicKey', 'gatewayId');
|
|
135
|
+
htmlWidget.load();
|
|
136
|
+
var {payment_source} = await htmlWidget.on('finish');
|
|
137
|
+
var preAuthResp = await new paydock.Api('publicKey').setEnv('sandbox').charge().preAuth({
|
|
138
|
+
amount: 100,
|
|
139
|
+
currency: 'AUD',
|
|
140
|
+
token: payment_source,
|
|
141
|
+
});
|
|
142
|
+
var canvas = new paydock.Canvas3ds('#widget3ds', preAuthResp._3ds.token);
|
|
143
|
+
canvas.load();
|
|
144
|
+
var chargeAuthEvent = await canvas.on('chargeAuth');
|
|
145
|
+
console.log('chargeAuthEvent', chargeAuthEvent);
|
|
146
|
+
})()
|
|
147
|
+
</script>
|
|
148
|
+
</body>
|
|
149
|
+
</html>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Canvas 3ds for Standalone 3ds charges
|
|
153
|
+
|
|
154
|
+
After you initialized the standalone 3ds charge via `v1/charges/standalone-3ds` API endpoint, you get a token used to initialize the Canvas3ds. All above information regarding setup, loading and initialization still apply.
|
|
155
|
+
|
|
156
|
+
### Full example
|
|
157
|
+
|
|
158
|
+
```html
|
|
159
|
+
<!DOCTYPE html>
|
|
160
|
+
<html lang="en">
|
|
161
|
+
<head>
|
|
162
|
+
<meta charset="UTF-8" />
|
|
163
|
+
<title>Title</title>
|
|
164
|
+
<style>
|
|
165
|
+
iframe {
|
|
166
|
+
border: 0;
|
|
167
|
+
width: 40%;
|
|
168
|
+
height: 450px;
|
|
169
|
+
}
|
|
170
|
+
</style>
|
|
171
|
+
</head>
|
|
172
|
+
<body>
|
|
173
|
+
<div id="widget3ds"></div>
|
|
174
|
+
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js"></script>
|
|
175
|
+
<script>
|
|
176
|
+
var canvas3ds = new paydock.Canvas3ds("#widget3ds", "token");
|
|
177
|
+
canvas3ds.on("chargeAuthSuccess", function (data) {
|
|
178
|
+
console.log(data);
|
|
179
|
+
});
|
|
180
|
+
canvas3ds.on("chargeAuthReject", function (data) {
|
|
181
|
+
console.log(data);
|
|
182
|
+
});
|
|
183
|
+
canvas3ds.on("chargeAuthChallenge", function (data) {
|
|
184
|
+
console.log(data);
|
|
185
|
+
});
|
|
186
|
+
canvas3ds.on("chargeAuthDecoupled", function (data) {
|
|
187
|
+
console.log(data.result.description);
|
|
188
|
+
});
|
|
189
|
+
canvas3ds.on("chargeAuthInfo", function (data) {
|
|
190
|
+
console.log(data.info);
|
|
191
|
+
});
|
|
192
|
+
canvas3ds.on("error", function ({ charge_3ds_id, error }) {
|
|
193
|
+
console.log(error);
|
|
194
|
+
});
|
|
195
|
+
canvas3ds.load();
|
|
196
|
+
</script>
|
|
197
|
+
</body>
|
|
198
|
+
</html>
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
- The `chargeAuthSuccess` event is executed both for frictionless flow, or for challenge flow after the customer has correctly authenticated with the bank using whatever challenge imposed.
|
|
202
|
+
- The `chargeAuthReject` event is executed when the authorization was rejected or when a timeout was received by the underlying system:
|
|
203
|
+
- A `data.status` of `AuthTimedOut` will be received for timeouts.
|
|
204
|
+
- A `data.status` of `rejected` will be received when the authorization was rejected.
|
|
205
|
+
- A `data.status` of `invalid_event` will be received for unhandled situations.
|
|
206
|
+
- The `chargeAuthChallenge` event is sent before starting a challenge flow (i.e. opening an IFrame for the customer to complete a challenge with ther bank). Once the end customer performs the challenge, the Canvas3ds will be able to identify the challenge result and will either produce a `chargeAuthSuccess` or `chargeAuthReject` event.
|
|
207
|
+
- The `chargeAuthDecoupled` event is sent when the flow is a decoupled challenge, alongside a `data.result.description` field that you must show to the customer, indicating the method the user must use to authenticate. For example this may happen by having the cardholder authenticating directly with their banking app through biometrics. Once the end customer does this, the Canvas3ds will be able to recognize the challenge result is ready and will either produce a `chargeAuthSuccess` or `chargeAuthReject` event.
|
|
208
|
+
- The `error` event is sent if an unexpected issue with the client library occurs. In such scenarios, you should consider the autentication process as interrupted:
|
|
209
|
+
- When getting this event, you will get on `data.error` the full error object.
|
|
210
|
+
|
|
211
|
+
### Events and Values
|
|
212
|
+
|
|
213
|
+
| Event Value | Type | Description |
|
|
214
|
+
| ------------------- | ------------------- | -------------------------------------------------------------- |
|
|
215
|
+
| <code>chargeAuthSuccess</code> | <code>object</code> | Instance of [ChargeEventResponse](#cb_chargeEventResponse) |
|
|
216
|
+
| <code>chargeAuthReject</code> | <code>object</code> | Instance of [ChargeEventResponse](#cb_chargeEventResponse) |
|
|
217
|
+
| <code>chargeAuthChallenge</code> | <code>object</code> | Instance of [ChargeEventResponse](#cb_chargeEventResponse) |
|
|
218
|
+
| <code>chargeAuthDecoupled</code> | <code>object</code> | Instance of [ChargeEventResponse](#cb_chargeEventResponse) |
|
|
219
|
+
| <code>chargeAuthInfo</code> | <code>object</code> | Instance of [ChargeEventResponse](#cb_chargeEventResponse) |
|
|
220
|
+
| <code>error</code> | <code>object</code> | Instance of [chargeError](#cb_chargeError) |
|
|
221
|
+
|
|
222
|
+
## Response Values
|
|
223
|
+
|
|
224
|
+
<a name="cb_chargeEventResponse" id="cb_chargeEventResponse"></a>
|
|
225
|
+
|
|
226
|
+
### ChargeEventResponse
|
|
227
|
+
|
|
228
|
+
| Param | Type | Description |
|
|
229
|
+
| ------------------------------- | ------------------------------ | -------------------------------------------------------------------------------------------------- |
|
|
230
|
+
| <code>status</code> | <code>string</code> | status for the event transaction |
|
|
231
|
+
| <code>charge_3ds_id</code> | <code>string</code> | Universal unique transaction identifier to identify the transaction |
|
|
232
|
+
| <code>info</code> | <code>string</code> | info field for `chargeAuthInfo` event |
|
|
233
|
+
| <code>result.description</code> | <code>string</code> [Optional] | field that you must show to the customer, indicating the method the user must use to authenticate during the decoupled challenge flow. |
|
|
234
|
+
|
|
235
|
+
### ChargeError
|
|
236
|
+
|
|
237
|
+
<a name="cb_chargeError" id="cb_chargeError"></a>
|
|
238
|
+
|
|
239
|
+
| Param | Type | Description |
|
|
240
|
+
| ------------- | ------------------- | ------------------------------------------------------------------- |
|
|
241
|
+
| <code>error</code> | <code>object</code> | error response |
|
|
242
|
+
| <code>charge_3ds_id</code> | <code>string</code> | Universal unique transaction identifier to identify the transaction |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Client-sdk
|
|
2
|
+
|
|
3
|
+
It is a solution for collecting and handling payment sources in secure way.
|
|
4
|
+
|
|
5
|
+
With SDK you can create a payment form widget as an independent part or insert use inside your form.
|
|
6
|
+
|
|
7
|
+
The SDK supports methods for customization of widget by your needs (styling, form fields, etc)
|
|
8
|
+
|
|
9
|
+
## Other information
|
|
10
|
+
|
|
11
|
+
To work with the widget you will need public_key or access_token ([see Authentication](https://widget.powerboard.commbank.com.au/sdk/latest/readme.html))
|
|
12
|
+
|
|
13
|
+
Also you will need added gateway ([see API Reference by gateway](https://widget.powerboard.commbank.com.au/sdk/latest/readme.html))
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
## Checkout button
|
|
2
|
+
|
|
3
|
+
You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#cb_CheckoutButton)
|
|
4
|
+
PayPal meta parameters description [here](https://www.npmjs.com/package/@paydock/client-sdk#ipaypalmeta)
|
|
5
|
+
Zipmoney meta parameters description [here](https://www.npmjs.com/package/@paydock/client-sdk#izipmoneymeta)
|
|
6
|
+
|
|
7
|
+
This widget allows you to turn your button into a full Checkout Button.
|
|
8
|
+
As a result, you will be able to receive a one-time token for charges, subscriptions etc. And other data given to the user by the payment gateway.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Checkout button simple example
|
|
13
|
+
|
|
14
|
+
### Container
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<button type="button" id="button">
|
|
18
|
+
checkout
|
|
19
|
+
</button>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
You must create a button to turn it into checkout-button
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Initialization
|
|
26
|
+
```javascript
|
|
27
|
+
var button = new paydock.PaypalCheckoutButton('#button', 'publicKey', 'gatewayId');
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
```javascript
|
|
31
|
+
// ES2015 | TypeScript
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
var button = new PaypalCheckoutButton('#button', 'publicKey');
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Then write only need 1 line of code in js to initialize widget
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Full example
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<!DOCTYPE html>
|
|
44
|
+
<html lang="en">
|
|
45
|
+
<head>
|
|
46
|
+
<meta charset="UTF-8">
|
|
47
|
+
<title>Title</title>
|
|
48
|
+
</head>
|
|
49
|
+
<body>
|
|
50
|
+
<button type="button" id="button">checkout</button>
|
|
51
|
+
<script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
|
|
52
|
+
<script>
|
|
53
|
+
var button = new paydock.PaypalCheckoutButton('#button', 'publicKey');
|
|
54
|
+
</script>
|
|
55
|
+
</body>
|
|
56
|
+
</html>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## Checkout button advanced example
|
|
61
|
+
|
|
62
|
+
### Optional methods
|
|
63
|
+
|
|
64
|
+
```javascript
|
|
65
|
+
button.onFinishInsert('input[name="pst"]', 'payment_source_token'); // insert one-time-token to your input after finish checkout
|
|
66
|
+
|
|
67
|
+
button.setMeta({
|
|
68
|
+
brand_name: 'Paydock',
|
|
69
|
+
reference: '15',
|
|
70
|
+
first_name: 'receiver-name',
|
|
71
|
+
last_name: 'receiver-last-name',
|
|
72
|
+
phone: '9379992'}); // settings for checkout pages
|
|
73
|
+
|
|
74
|
+
button.on('finish', function (data) { // Add handler of event
|
|
75
|
+
console.log('on:finish', data);
|
|
76
|
+
});
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
This example shows how you can use a lot of other methods to settings your button
|
|
80
|
+
|
|
81
|
+
### Full Paypal example
|
|
82
|
+
|
|
83
|
+
```html
|
|
84
|
+
<!DOCTYPE html>
|
|
85
|
+
<html lang="en">
|
|
86
|
+
<head>
|
|
87
|
+
<meta charset="UTF-8">
|
|
88
|
+
<title>Title</title>
|
|
89
|
+
</head>
|
|
90
|
+
<body>
|
|
91
|
+
<form id="paymentForm">
|
|
92
|
+
<button type="button" id="button">
|
|
93
|
+
<img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" align="left" style="margin-right:7px;">
|
|
94
|
+
</button>
|
|
95
|
+
</form>
|
|
96
|
+
|
|
97
|
+
<input type="text" name="pst" />
|
|
98
|
+
|
|
99
|
+
<script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
|
|
100
|
+
<script>
|
|
101
|
+
var button = new paydock.PaypalCheckoutButton('#button', 'publicKey', 'gatewayId');
|
|
102
|
+
button.onFinishInsert('input[name="pst"]', 'payment_source_token');
|
|
103
|
+
button.setMeta({
|
|
104
|
+
brand_name: 'Paydock',
|
|
105
|
+
reference: '15',
|
|
106
|
+
first_name: 'Joshua',
|
|
107
|
+
last_name: 'Wood',
|
|
108
|
+
phone: '0231049872'});
|
|
109
|
+
|
|
110
|
+
button.on('finish', function (data) {
|
|
111
|
+
console.log('on:finish', data);
|
|
112
|
+
});
|
|
113
|
+
</script>
|
|
114
|
+
</body>
|
|
115
|
+
</html>
|
|
116
|
+
```
|
|
117
|
+
### Full ZipMoney example
|
|
118
|
+
|
|
119
|
+
```html
|
|
120
|
+
<!DOCTYPE html>
|
|
121
|
+
<html lang="en">
|
|
122
|
+
<head>
|
|
123
|
+
<meta charset="UTF-8">
|
|
124
|
+
<title>Title</title>
|
|
125
|
+
</head>
|
|
126
|
+
<body>
|
|
127
|
+
<form id="paymentForm">
|
|
128
|
+
<button type="button" id="button">
|
|
129
|
+
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTVrrEYxDmq4WXv7hfHygKD9ltnOqv0K6soSAhmbKNllPNYWiLiJA" align="left" style="margin-right:7px;">
|
|
130
|
+
</button>
|
|
131
|
+
</form>
|
|
132
|
+
|
|
133
|
+
<input type="text" name="pst" />
|
|
134
|
+
|
|
135
|
+
<script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
|
|
136
|
+
<script>
|
|
137
|
+
var button = new paydock.ZipmoneyCheckoutButton('#button', 'publicKey', 'gatewayId');
|
|
138
|
+
button.onFinishInsert('input[name="pst"]', 'payment_source_token');
|
|
139
|
+
button.setMeta("first_name": "Joshua",
|
|
140
|
+
"tokenize": true,
|
|
141
|
+
"last_name": "Wood",
|
|
142
|
+
"email":"joshuawood@hotmail.com.au",
|
|
143
|
+
"gender": "male",
|
|
144
|
+
"charge": {
|
|
145
|
+
"amount": "4",
|
|
146
|
+
"currency":"AUD",
|
|
147
|
+
"shipping_type": "delivery",
|
|
148
|
+
"shipping_address": {
|
|
149
|
+
"first_name": "Joshua",
|
|
150
|
+
"last_name": "Wood",
|
|
151
|
+
"line1": "Suite 660",
|
|
152
|
+
"line2": "822 Ruiz Square",
|
|
153
|
+
"country": "AU",
|
|
154
|
+
"postcode": "3223",
|
|
155
|
+
"city": "Sydney",
|
|
156
|
+
"state": "LA"
|
|
157
|
+
},
|
|
158
|
+
"billing_address": {
|
|
159
|
+
"first_name": "Joshua",
|
|
160
|
+
"last_name": "Wood",
|
|
161
|
+
"line1": "Suite 660",
|
|
162
|
+
"line2": "test",
|
|
163
|
+
"country": "AU",
|
|
164
|
+
"postcode": "3223",
|
|
165
|
+
"city": "Sydney",
|
|
166
|
+
"state": "LA"
|
|
167
|
+
},
|
|
168
|
+
"items": [
|
|
169
|
+
{
|
|
170
|
+
"name":"ACME Toolbox",
|
|
171
|
+
"amount":"2",
|
|
172
|
+
"quantity": 1,
|
|
173
|
+
"reference":"Fuga consequuntur sint ab magnam"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name":"Device 42",
|
|
177
|
+
"amount":"2",
|
|
178
|
+
"quantity": 1,
|
|
179
|
+
"reference":"Fuga consequuntur sint ab magnam"
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
"statistics": {
|
|
185
|
+
"account_created": "2017-05-05",
|
|
186
|
+
"sales_total_number": "5",
|
|
187
|
+
"sales_total_amount": "4",
|
|
188
|
+
"sales_avg_value": "45",
|
|
189
|
+
"sales_max_value": "400",
|
|
190
|
+
"refunds_total_amount": "21",
|
|
191
|
+
"previous_chargeback": "true",
|
|
192
|
+
"currency": "AUD",
|
|
193
|
+
"last_login": "2017-06-01"
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
button.on('finish', function (data) {
|
|
197
|
+
console.log('on:finish', data);
|
|
198
|
+
});
|
|
199
|
+
</script>
|
|
200
|
+
</body>
|
|
201
|
+
</html>
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Full Aftepay example
|
|
205
|
+
|
|
206
|
+
```html
|
|
207
|
+
<!DOCTYPE html>
|
|
208
|
+
<html lang="en">
|
|
209
|
+
<head>
|
|
210
|
+
<meta charset="UTF-8">
|
|
211
|
+
<title>Title</title>
|
|
212
|
+
</head>
|
|
213
|
+
<body>
|
|
214
|
+
<button type="button" id="button">
|
|
215
|
+
<img src="https://daepxvbfwwgd0.cloudfront.net/assets/logo_scroll-0c43312c5845a0dcd7a3373325da6402bc1d635d3415af28ed40d6c1b48e3d5c.png" align="left" style="margin-right:7px;">
|
|
216
|
+
</button>
|
|
217
|
+
|
|
218
|
+
<input type="text" name="pst" />
|
|
219
|
+
|
|
220
|
+
<script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
|
|
221
|
+
<script>
|
|
222
|
+
var button = new paydock.AfterpayCheckoutButton('#button', 'publicKey', 'gatewayId');
|
|
223
|
+
|
|
224
|
+
button.onFinishInsert('input[name="pst"]', 'payment_source_token');
|
|
225
|
+
button.showEnhancedTrackingProtectionPopup(true);
|
|
226
|
+
button.setMeta({
|
|
227
|
+
amount: "100",
|
|
228
|
+
currency: "AUD",
|
|
229
|
+
reference: 'Vitae commodi provident assumenda',
|
|
230
|
+
email: 'wanda.mertz@example.com',
|
|
231
|
+
first_name: 'Wanda',
|
|
232
|
+
last_name: 'Mertz',
|
|
233
|
+
address_line: '61426 Osvaldo Plains',
|
|
234
|
+
address_line2: 'Apt. 276',
|
|
235
|
+
address_city: 'Lake Robyn',
|
|
236
|
+
address_state: 'WY',
|
|
237
|
+
address_postcode: '07396',
|
|
238
|
+
address_country: 'Australia',
|
|
239
|
+
phone: '0412345678',
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
button.on('finish', function (data) {
|
|
243
|
+
console.log('on:finish', data);
|
|
244
|
+
});
|
|
245
|
+
</script>
|
|
246
|
+
</body>
|
|
247
|
+
</html>
|
|
248
|
+
```
|
package/docs/header.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Client-sdk
|
|
2
|
+
|
|
3
|
+
It is a solution for collecting and handling payment sources in secure way.
|
|
4
|
+
|
|
5
|
+
With SDK you can create a payment form widget as an independent part or insert use inside your form.
|
|
6
|
+
|
|
7
|
+
The SDK supports methods for customization of widget by your needs (styling, form fields, etc)
|
|
8
|
+
|
|
9
|
+
## Other information
|
|
10
|
+
|
|
11
|
+
To work with the widget you will need public_key or access_token ([see Authentication](https://docs.paydock.com/#authentication))
|
|
12
|
+
|
|
13
|
+
Also you will need added gateway ([see API Reference by gateway](https://docs.paydock.com/#gateways))
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<link rel="stylesheet" type="text/css" href="./style.css">
|
|
5
|
+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/default.min.css">
|
|
6
|
+
<title></title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="container">
|
|
10
|
+
<header>
|
|
11
|
+
<a href="/">
|
|
12
|
+
<img alt="logo" class="logo" src="https://staging.powerboard.commbank.com.au/images/logo_cba.png" height="63px" width="150px"/>
|
|
13
|
+
</a>
|
|
14
|
+
</header>
|
|
15
|
+
<div style="display: flex">
|
|
16
|
+
<nav>
|
|
17
|
+
<ul>
|
|
18
|
+
<li>
|
|
19
|
+
<a href="#client-sdk">Client-sdk</a>
|
|
20
|
+
<ul>
|
|
21
|
+
<li><a href="#other-information">Other information</a></li>
|
|
22
|
+
<li><a href="#get-started">Get started</a></li>
|
|
23
|
+
<li><a href="#download-from-cdn">Download from CDN</a></li>
|
|
24
|
+
</ul>
|
|
25
|
+
</li>
|
|
26
|
+
<li>
|
|
27
|
+
<a href="#widget">Widget</a>
|
|
28
|
+
<ul>
|
|
29
|
+
<li><a href="#widget-simple-example">Simple example</a></li>
|
|
30
|
+
<li><a href="#widget-advanced-example">Advanced example</a></li>
|
|
31
|
+
<li><a href="#classes">Classes</a></li>
|
|
32
|
+
</ul>
|
|
33
|
+
</li>
|
|
34
|
+
<li>
|
|
35
|
+
<a href="#payment-sources-widget">Payment sources widget</a>
|
|
36
|
+
<ul>
|
|
37
|
+
<li><a href="#payment-sources-simple-example">Simple example</a></li>
|
|
38
|
+
<li><a href="#payment-sources-advanced-example">Advanced example</a></li>
|
|
39
|
+
<li><a href="#classes-1">Classes</a></li>
|
|
40
|
+
</ul>
|
|
41
|
+
</li>
|
|
42
|
+
<li>
|
|
43
|
+
<a href="#checkout-button">Checkout button</a>
|
|
44
|
+
<ul>
|
|
45
|
+
<li><a href="#checkout-button-simple-example">Simple example</a></li>
|
|
46
|
+
<li><a href="#checkout-button-advanced-example">Advanced example</a></li>
|
|
47
|
+
<li><a href="#classes-2">Classes</a></li>
|
|
48
|
+
</ul>
|
|
49
|
+
</li>
|
|
50
|
+
<li>
|
|
51
|
+
<a href="#canvas3ds">Canvas3ds</a>
|
|
52
|
+
<ul>
|
|
53
|
+
<li><a href="#canvas3ds-simple-example">Simple example</a></li>
|
|
54
|
+
<li><a href="#canvas3ds-advanced-example">Advanced example</a></li>
|
|
55
|
+
</ul>
|
|
56
|
+
</li>
|
|
57
|
+
<li>
|
|
58
|
+
<a href="#wallet-buttons">Wallet Buttons</a>
|
|
59
|
+
<ul>
|
|
60
|
+
<li><a href="#wallet-buttons-simple-example">Simple example</a></li>
|
|
61
|
+
<li><a href="#wallet-buttons-advanced-example">Advanced example</a></li>
|
|
62
|
+
<li><a href="#classes-3">Classes</a></li>
|
|
63
|
+
</ul>
|
|
64
|
+
</li>
|
|
65
|
+
<li>
|
|
66
|
+
<a href="#secure-remote-commerce">Secure Remote Commerce</a>
|
|
67
|
+
<ul>
|
|
68
|
+
<li><a href="#src-simple-example">SRC simple example</a></li>
|
|
69
|
+
<li><a href="#src-advanced-example">SRC advanced example</a></li>
|
|
70
|
+
</ul>
|
|
71
|
+
</li>
|
|
72
|
+
</ul>
|
|
73
|
+
</nav>
|
|
74
|
+
<div id="content"><!--{{content}}--></div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</body>
|
|
78
|
+
</html>
|