@paydock/client-sdk 1.106.1 → 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 +194 -162
- 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 +2 -1
- 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/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/index.d.ts +5 -4
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/interfaces.d.ts +10 -9
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +5 -4
- 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 +4 -3
- 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 +6755 -6894
- 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 +141 -106
- 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/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/mastercard-secure-remote-commerce.d.ts +0 -30
- package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js +0 -40
- package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js.map +0 -1
- package/lib/secure-remote-commerce/providers/mastercard-src/index.d.ts +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
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
export { MastercardSRCClickToPay } from './mastercard-secure-remote-commerce';
|
|
2
|
-
/**
|
|
3
|
-
* Interface of data used for the Mastercard Checkout. For further information refer to [the documentation](https://developer.mastercard.com/unified-checkout-solutions/documentation/sdk-reference/init).
|
|
4
|
-
* @interface IMastercardSRCMeta
|
|
5
|
-
*
|
|
6
|
-
* @type {object}
|
|
7
|
-
* @param {boolean} [disable_summary_screen] Boolean flag that controls if a final summary screen is presented in the checkout flow.
|
|
8
|
-
* @param {object} [dpa_data] Object where the DPA creation data is stored.
|
|
9
|
-
* @param {string} [dpa_data.dpa_presentation_name] Name in which the DPA is presented.
|
|
10
|
-
* @param {string} [dpa_data.dpa_uri] Used for indicating the DPA URI.
|
|
11
|
-
* @param {string} [dpa_data.dpa_address] Address associated with the DPA.
|
|
12
|
-
* @param {string} [dpa_data.dpa_email_address] Email address for DPA communication.
|
|
13
|
-
* @param {object} [dpa_data.dpa_phone_number] Phone number structure for DPA communication.
|
|
14
|
-
* @param {string} [dpa_data.dpa_phone_number.country_code] The country code of the phone number.
|
|
15
|
-
* @param {string} [dpa_data.dpa_phone_number.phone_number] The phone number part of the phone number.
|
|
16
|
-
* @param {string} [dpa_data.dpa_logo_uri] URI for the DPA logo.
|
|
17
|
-
* @param {string} [dpa_data.dpa_supported_email_address] Supported email address for DPA support.
|
|
18
|
-
* @param {object} [dpa_data.dpa_supported_phone_number] Supported phone number for DPA support.
|
|
19
|
-
* @param {string} [dpa_data.dpa_supported_phone_number.country_code] The country code of the phone number.
|
|
20
|
-
* @param {string} [dpa_data.dpa_supported_phone_number.phone_number] The phone number part of the phone number.
|
|
21
|
-
* @param {string} [dpa_data.dpa_support_uri] URI for DPA support.
|
|
22
|
-
* @param {string} [dpa_data.application_type] Application type, either 'WEB_BROWSER' or 'MOBILE_APP'.
|
|
23
|
-
* @param {string[]} [co_brand_names] List of co-brand names associated with the SRC experience.
|
|
24
|
-
* @param {string} [checkout_experience] Checkout experience type, either 'WITHIN_CHECKOUT' or 'PAYMENT_SETTINGS'.
|
|
25
|
-
* @param {string} [services] Services offered, such as 'INLINE_CHECKOUT' or 'INLINE_INSTALLMENTS'.
|
|
26
|
-
* @param {object} [dpa_transaction_options] Object that stores options for creating a transaction with DPA.
|
|
27
|
-
* @param {string} [dpa_transaction_options.dpa_locale] DPA’s preferred locale, example en_US.
|
|
28
|
-
* @param {string[]} [dpa_transaction_options.dpa_accepted_billing_countries] List of accepted billing countries for DPA in ISO 3166-1 alpha-2 format.
|
|
29
|
-
* @param {string} [dpa_transaction_options.dpa_billing_preference] Billing preferences for DPA, options are 'FULL', 'POSTAL_COUNTRY', 'NONE'.
|
|
30
|
-
* @param {object[]} [dpa_transaction_options.payment_options] Payment options included in the transaction.
|
|
31
|
-
* @param {string} [dpa_transaction_options.payment_options.dynamic_data_type] Dynamic data types.
|
|
32
|
-
* @param {string} [dpa_transaction_options.order_type] Type of the order, options are 'SPLIT_SHIPMENT', 'PREFERRED_CARD'.
|
|
33
|
-
* @param {string} [dpa_transaction_options.three_ds_preference] Preference for 3DS usage in the transaction.
|
|
34
|
-
* @param {boolean} [dpa_transaction_options.confirm_payment] Indicates if payment confirmation is required.
|
|
35
|
-
* @param {boolean} [dpa_transaction_options.consumer_name_requested] Indicates if consumer name is requested.
|
|
36
|
-
* @param {boolean} [dpa_transaction_options.consumer_email_address_requested] Indicates if consumer email address is requested.
|
|
37
|
-
* @param {boolean} [dpa_transaction_options.consumer_phone_number_requested] Indicates if consumer phone number is requested.
|
|
38
|
-
* @param {object} [dpa_transaction_options.transaction_amount] Details of the transaction amount.
|
|
39
|
-
* @param {number} [dpa_transaction_options.transaction_amount.transaction_amount] Amount of the transaction.
|
|
40
|
-
* @param {string} [dpa_transaction_options.transaction_amount.transaction_currency_code] Currency code of the transaction in 3 letter ISO code format.
|
|
41
|
-
* @param {string} [dpa_transaction_options.merchant_order_id] Merchant's order ID.
|
|
42
|
-
* @param {string} [dpa_transaction_options.merchant_category_code] Merchant's category code.
|
|
43
|
-
* @param {string} [dpa_transaction_options.merchant_country_code] Merchant's country code in ISO 3166-1 alpha-2 format.
|
|
44
|
-
* @param {object} [customer] Object where the customer data is stored to prefill in the checkout.
|
|
45
|
-
* @param {string} [customer.email] Customer email.
|
|
46
|
-
* @param {string} [customer.first_name] Customer first name.
|
|
47
|
-
* @param {string} [customer.last_name] Customer last name.
|
|
48
|
-
* @param {object} [customer.phone] Object where the customer phone is stored.
|
|
49
|
-
* @param {string} [customer.phone.country_code] Customer phone country code (example "1" for US). // TODO: Confirm if it can be removed!
|
|
50
|
-
* @param {string} [customer.phone.phone] Customer phone number.
|
|
51
|
-
* @param {string} [unaccepted_card_type] Used to block a specific card type. Options are 'CREDIT', 'DEBIT'.
|
|
52
|
-
*/
|
|
53
|
-
/**
|
|
54
|
-
* Interface for data returned in callbacks
|
|
55
|
-
* @interface EventData
|
|
56
|
-
*
|
|
57
|
-
* @type {object}
|
|
58
|
-
* @param {EVENT_DATA_TYPE} type Event type of type [EVENT_DATA_TYPE]{@link EVENT_DATA_TYPE}
|
|
59
|
-
* @param {string | EventDataCheckoutCompletedData} data optional data returning a string for checkoutError event or [EventDataCheckoutCompletedData]{@link EventDataCheckoutCompletedData} for checkoutCompleted
|
|
60
|
-
*/
|
|
61
|
-
/**
|
|
62
|
-
* Event data returned for checkoutCompleted callback, holding the One Time Token and the flow type completed.
|
|
63
|
-
* When the flow type is src, masked checkoutData available is also returned
|
|
64
|
-
*
|
|
65
|
-
* @interface EventDataCheckoutCompletedData
|
|
66
|
-
*
|
|
67
|
-
* @type {object}
|
|
68
|
-
* @param {string} type type of the checkout, can be `src` or `manual`.
|
|
69
|
-
* @param {string} token one time token value.
|
|
70
|
-
* @param {object} [checkoutData] Optional checkout data related to the checkout information. Only available on src flow.
|
|
71
|
-
* @param {string} [checkoutData.card_number_bin] The BIN of the card used for the transaction.
|
|
72
|
-
* @param {string} [checkoutData.card_number_last4] The last four digits of the card number.
|
|
73
|
-
* @param {string} [checkoutData.card_scheme] The card scheme. Values: visa, mastercard, amex, diners, discover.
|
|
74
|
-
* @param {string} [checkoutData.card_type] The type of card. Values: credit, debit, prepaid, combo, flex.
|
|
75
|
-
* @param {string} [checkoutData.address_line1] Address line 1 for billing address.
|
|
76
|
-
* @param {string} [checkoutData.address_line2] Address line 2 for billing address.
|
|
77
|
-
* @param {string} [checkoutData.address_line3] Address line 3 for billing address.
|
|
78
|
-
* @param {string} [checkoutData.address_city] City for billing address.
|
|
79
|
-
* @param {string} [checkoutData.address_postcode] Postal code for billing address.
|
|
80
|
-
* @param {string} [checkoutData.address_state] State or province for billing address.
|
|
81
|
-
* @param {string} [checkoutData.address_country] Country for billing address.
|
|
82
|
-
* @param {object} [checkoutData.shipping] Optional shipping information.
|
|
83
|
-
* @param {string} [checkoutData.shipping.address_line1] Address line 1 for shipping address.
|
|
84
|
-
* @param {string} [checkoutData.shipping.address_line2] Address line 2 for shipping address.
|
|
85
|
-
* @param {string} [checkoutData.shipping.address_line3] Address line 3 for shipping address.
|
|
86
|
-
* @param {string} [checkoutData.shipping.address_city] City for shipping address.
|
|
87
|
-
* @param {string} [checkoutData.shipping.address_postcode] Postal code for shipping address.
|
|
88
|
-
* @param {string} [checkoutData.shipping.address_state] State or province for shipping address.
|
|
89
|
-
* @param {string} [checkoutData.shipping.address_country] Country for shipping address.
|
|
90
|
-
*/
|
|
91
|
-
/**
|
|
92
|
-
* Interface for style configs inyected to the SRC checkout
|
|
93
|
-
* @interface IStyles
|
|
94
|
-
*
|
|
95
|
-
* @type {object}
|
|
96
|
-
* @param {string} [primary_button_color] Color Code for primary button.
|
|
97
|
-
* @param {string} [primary_button_text_color] Color Code for primary button text.
|
|
98
|
-
* @param {string} [secondary_button_color] Color Code for secondary button.
|
|
99
|
-
* @param {string} [secondary_button_text_color] Color Code for secondary button text.
|
|
100
|
-
* @param {string} [font_family] Font family to be used.
|
|
101
|
-
* @param {boolean} [enable_src_popup] Boolean flag to make the SRC checkout show in a popup window instead of embedded in iframe.
|
|
102
|
-
*/
|
|
103
|
-
//# sourceMappingURL=../../src/lib/secure-remote-commerce/index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../secure-remote-commerce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;;GAWG"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List of available event's name in the SRC checkout lifecycle
|
|
3
|
-
* @enum EVENT
|
|
4
|
-
*
|
|
5
|
-
* @type {object}
|
|
6
|
-
* @param {string} IFRAME_LOADED=iframeLoaded Initial event sent when IFrame is initially loaded.
|
|
7
|
-
* @param {string} CHECKOUT_READY=checkoutReady Event sent when checkout is loaded and ready to be used by customer. Leverage alongside [showCheckout](#SRC+showCheckout) and [hideCheckout](#SRC+hideCheckout).
|
|
8
|
-
* @param {string} CHECKOUT_POPUP_OPEN=checkoutPopupOpen Event sent when SRC Checkout flow is started, regardless of embedded or windowed mode.
|
|
9
|
-
* @param {string} CHECKOUT_POPUP_CLOSE=checkoutPopupClose Event sent when SRC Checkout flow is closed, regardless of embedded or windowed mode.
|
|
10
|
-
* @param {string} CHECKOUT_COMPLETED=checkoutCompleted Event sent on successful checkout by customer. Check [data](#EventDataCheckoutCompletedData) for more information.
|
|
11
|
-
* @param {string} CHECKOUT_ERROR=checkoutError Event sent on error checkout by customer. Check [data](#EventData) for more information.
|
|
12
|
-
*/
|
|
13
|
-
export var EVENT;
|
|
14
|
-
(function (EVENT) {
|
|
15
|
-
EVENT["IFRAME_LOADED"] = "iframeLoaded";
|
|
16
|
-
EVENT["CHECKOUT_READY"] = "checkoutReady";
|
|
17
|
-
EVENT["CHECKOUT_COMPLETED"] = "checkoutCompleted";
|
|
18
|
-
EVENT["CHECKOUT_ERROR"] = "checkoutError";
|
|
19
|
-
EVENT["CHECKOUT_POPUP_OPEN"] = "checkoutPopupOpen";
|
|
20
|
-
EVENT["CHECKOUT_POPUP_CLOSE"] = "checkoutPopupClose";
|
|
21
|
-
})(EVENT || (EVENT = {}));
|
|
22
|
-
;
|
|
23
|
-
/**
|
|
24
|
-
* List of available event data types
|
|
25
|
-
* @enum EVENT_DATA_TYPE
|
|
26
|
-
*
|
|
27
|
-
* @type {object}
|
|
28
|
-
* @param {string} CRITICAL_ERROR=CriticalError in this error scenario the checkout is understood to be in a non-recoverable state and should be closed by the merchant and give alternate payment options to the user
|
|
29
|
-
* @param {string} USER_ERROR=UserError in this error scenario the error in likely a user input error and the checkout is in a recoverable state, so the user will be kept within the checkout and can retry the flow
|
|
30
|
-
* @param {string} SUCCESS=Success
|
|
31
|
-
*/
|
|
32
|
-
export var EVENT_DATA_TYPE;
|
|
33
|
-
(function (EVENT_DATA_TYPE) {
|
|
34
|
-
EVENT_DATA_TYPE["CRITICAL_ERROR"] = "CriticalError";
|
|
35
|
-
EVENT_DATA_TYPE["USER_ERROR"] = "UserError";
|
|
36
|
-
EVENT_DATA_TYPE["SUCCESS"] = "Success";
|
|
37
|
-
})(EVENT_DATA_TYPE || (EVENT_DATA_TYPE = {}));
|
|
38
|
-
;
|
|
39
|
-
;
|
|
40
|
-
export const STYLE = {
|
|
41
|
-
PRIMARY_BUTTON_COLOR: 'primary_button_color',
|
|
42
|
-
SECONDARY_BUTTON_COLOR: 'secondary_button_color',
|
|
43
|
-
PRIMARY_BUTTON_TEXT_COLOR: 'primary_button_text_color',
|
|
44
|
-
SECONDARY_BUTTON_TEXT_COLOR: 'secondary_button_text_color',
|
|
45
|
-
FONT_FAMILY: 'font_family',
|
|
46
|
-
ENABLE_SRC_POPUP: 'enable_src_popup',
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=../../src/lib/secure-remote-commerce/interfaces.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../secure-remote-commerce/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAN,IAAY,KAOX;AAPD,WAAY,KAAK;IACb,uCAA8B,CAAA;IAC9B,yCAAgC,CAAA;IAChC,iDAAwC,CAAA;IACxC,yCAAgC,CAAA;IAChC,kDAAyC,CAAA;IACzC,oDAA2C,CAAA;AAC/C,CAAC,EAPW,KAAK,KAAL,KAAK,QAOhB;AAKA,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,mDAAgC,CAAA;IAChC,2CAAwB,CAAA;IACxB,sCAAmB,CAAA;AACvB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAAA,CAAC;AA2BD,CAAC;AAuFF,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,oBAAoB,EAAE,sBAAsB;IAC5C,sBAAsB,EAAE,wBAAwB;IAChD,yBAAyB,EAAE,2BAA2B;IACtD,2BAA2B,EAAE,6BAA6B;IAC1D,WAAW,EAAE,aAAa;IAC1B,gBAAgB,EAAE,kBAAkB;CACvC,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IMastercardSRCMeta } from './interfaces';
|
|
2
|
-
import { SRC } from './secure-remote-commerce';
|
|
3
|
-
/**
|
|
4
|
-
* Class MastercardSRCClickToPay include methods for interacting with the MastercardSRC checkout and Manual Card option
|
|
5
|
-
*
|
|
6
|
-
* @extends SRC
|
|
7
|
-
*
|
|
8
|
-
* @constructor
|
|
9
|
-
*
|
|
10
|
-
* @param {string} iframe_selector - Selector of html element. Container for SRC checkout iFrame.
|
|
11
|
-
* @param {string} service_id - Card Scheme Service ID
|
|
12
|
-
* @param {string} public_key_or_access_token - Paydock public key or Access Token
|
|
13
|
-
* @param {IMastercardSRCMeta} meta - Data that configures the SRC checkout
|
|
14
|
-
* @example
|
|
15
|
-
* var mastercardSRC = new MastercardSRCClickToPay('#checkoutIframe', 'service_id', 'public_key', {});
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
declare class MastercardSRCClickToPay extends SRC {
|
|
19
|
-
protected iframe_selector: string;
|
|
20
|
-
protected service_id: string;
|
|
21
|
-
protected public_key_or_access_token: string;
|
|
22
|
-
protected meta: IMastercardSRCMeta;
|
|
23
|
-
/** @constructs */ constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IMastercardSRCMeta);
|
|
24
|
-
/**
|
|
25
|
-
* The final method after configuring the SRC to start the load process of SRC checkout
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
load(): void;
|
|
29
|
-
}
|
|
30
|
-
export { MastercardSRCClickToPay };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { MastercardSRC } from './providers/mastercard-src/mastercard-src';
|
|
2
|
-
import { SRC } from './secure-remote-commerce';
|
|
3
|
-
/**
|
|
4
|
-
* Class MastercardSRCClickToPay include methods for interacting with the MastercardSRC checkout and Manual Card option
|
|
5
|
-
*
|
|
6
|
-
* @extends SRC
|
|
7
|
-
*
|
|
8
|
-
* @constructor
|
|
9
|
-
*
|
|
10
|
-
* @param {string} iframe_selector - Selector of html element. Container for SRC checkout iFrame.
|
|
11
|
-
* @param {string} service_id - Card Scheme Service ID
|
|
12
|
-
* @param {string} public_key_or_access_token - Paydock public key or Access Token
|
|
13
|
-
* @param {IMastercardSRCMeta} meta - Data that configures the SRC checkout
|
|
14
|
-
* @example
|
|
15
|
-
* var mastercardSRC = new MastercardSRCClickToPay('#checkoutIframe', 'service_id', 'public_key', {});
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
class MastercardSRCClickToPay extends SRC {
|
|
19
|
-
/** @constructs */ // constructs added for correct parse classes jsdoc2md
|
|
20
|
-
constructor(iframe_selector, service_id, public_key_or_access_token, meta) {
|
|
21
|
-
super(iframe_selector, service_id, public_key_or_access_token, meta);
|
|
22
|
-
this.iframe_selector = iframe_selector;
|
|
23
|
-
this.service_id = service_id;
|
|
24
|
-
this.public_key_or_access_token = public_key_or_access_token;
|
|
25
|
-
this.meta = meta;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* The final method after configuring the SRC to start the load process of SRC checkout
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
load() {
|
|
32
|
-
if (this.provider)
|
|
33
|
-
return;
|
|
34
|
-
this.meta.customizations = this.style;
|
|
35
|
-
this.provider = new MastercardSRC(this.iframe_selector, this.service_id, this.public_key_or_access_token, this.meta, this.eventEmitter, this.autoResize, this.env, this.alias);
|
|
36
|
-
this.provider.load();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
export { MastercardSRCClickToPay };
|
|
40
|
-
//# sourceMappingURL=../../src/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mastercard-secure-remote-commerce.js","sourceRoot":"","sources":["../../secure-remote-commerce/mastercard-secure-remote-commerce.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C;;;;;;;;;;;;;;GAcG;AACH,MAAM,uBAAwB,SAAQ,GAAG;IACrC,kBAAkB,CAAC,sDAAsD;IACzE,YAAsB,eAAuB,EAAY,UAAkB,EAAY,0BAAkC,EAAY,IAAwB;QACzJ,KAAK,CAAC,eAAe,EAAE,UAAU,EAAE,0BAA0B,EAAE,IAAI,CAAC,CAAC;QADnD,oBAAe,GAAf,eAAe,CAAQ;QAAY,eAAU,GAAV,UAAU,CAAQ;QAAY,+BAA0B,GAA1B,0BAA0B,CAAQ;QAAY,SAAI,GAAJ,IAAI,CAAoB;IAE7J,CAAC;IAED;;;OAGG;IACI,IAAI;QACP,IAAI,IAAI,CAAC,QAAQ;YACb,OAAO;QAEX,IAAI,CAAC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC;QAEtC,IAAI,CAAC,QAAQ,GAAG,IAAI,aAAa,CAC7B,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,0BAA0B,EAC/B,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,KAAK,CACb,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;CACJ;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MastercardSRC } from './mastercard-src';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../secure-remote-commerce/providers/mastercard-src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Link, MASTERCARD_SRC } from '../../../components/link';
|
|
2
|
-
import { Container } from '../../../components/container';
|
|
3
|
-
import { IFrame } from '../../../components/iframe';
|
|
4
|
-
import { IFrameEvent } from '../../../components/iframe-event';
|
|
5
|
-
import { EVENT } from '../../interfaces';
|
|
6
|
-
import { SDK } from '../../../configs/sdk';
|
|
7
|
-
export class MastercardSRC {
|
|
8
|
-
constructor(iframe_selector, service_id, public_key, meta, eventEmitter, autoResize, env, alias) {
|
|
9
|
-
this.meta = meta;
|
|
10
|
-
this.eventEmitter = eventEmitter;
|
|
11
|
-
this.autoResize = autoResize;
|
|
12
|
-
this.link = new Link(MASTERCARD_SRC);
|
|
13
|
-
this.link.setParams(Object.assign({ service_id, public_key }, meta && { meta: JSON.stringify(meta) }));
|
|
14
|
-
if (SDK.version) {
|
|
15
|
-
this.link.setParams({
|
|
16
|
-
sdk_version: SDK.version,
|
|
17
|
-
sdk_type: SDK.type,
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
if (env)
|
|
21
|
-
this.link.setEnv(env, alias);
|
|
22
|
-
this.iFrameContainer = new Container(iframe_selector);
|
|
23
|
-
this.iFrame = new IFrame(this.iFrameContainer);
|
|
24
|
-
this.iFrameEvent = new IFrameEvent(window);
|
|
25
|
-
this.setupIFrameEvents();
|
|
26
|
-
}
|
|
27
|
-
setupIFrameEvents() {
|
|
28
|
-
const widgetId = this.link.getParams().widget_id;
|
|
29
|
-
if (!widgetId)
|
|
30
|
-
return;
|
|
31
|
-
this.iFrameEvent.on(EVENT.CHECKOUT_READY, widgetId, ({ data }) => {
|
|
32
|
-
this.eventEmitter.emit(EVENT.CHECKOUT_READY, data);
|
|
33
|
-
});
|
|
34
|
-
this.iFrameEvent.on(EVENT.CHECKOUT_COMPLETED, widgetId, ({ data }) => {
|
|
35
|
-
this.eventEmitter.emit(EVENT.CHECKOUT_COMPLETED, data);
|
|
36
|
-
});
|
|
37
|
-
this.iFrameEvent.on(EVENT.CHECKOUT_POPUP_OPEN, widgetId, ({ data }) => {
|
|
38
|
-
this.eventEmitter.emit(EVENT.CHECKOUT_POPUP_OPEN, data);
|
|
39
|
-
});
|
|
40
|
-
this.iFrameEvent.on(EVENT.CHECKOUT_POPUP_CLOSE, widgetId, ({ data }) => {
|
|
41
|
-
this.eventEmitter.emit(EVENT.CHECKOUT_POPUP_CLOSE, data);
|
|
42
|
-
});
|
|
43
|
-
this.iFrameEvent.on(EVENT.CHECKOUT_ERROR, widgetId, ({ data }) => {
|
|
44
|
-
this.eventEmitter.emit(EVENT.CHECKOUT_ERROR, data);
|
|
45
|
-
});
|
|
46
|
-
if (this.autoResize)
|
|
47
|
-
this.useAutoResize(true);
|
|
48
|
-
}
|
|
49
|
-
load() {
|
|
50
|
-
this.iFrame.load(this.link.getUrl(), { title: 'Mastercard SRC checkout' });
|
|
51
|
-
const iframeElement = this.iFrame.getElement();
|
|
52
|
-
this.iFrame.setStyle('width', '100%');
|
|
53
|
-
if (iframeElement)
|
|
54
|
-
iframeElement.onload = () => this.eventEmitter.emit(EVENT.IFRAME_LOADED, {});
|
|
55
|
-
}
|
|
56
|
-
getEnv() {
|
|
57
|
-
return this.link.getEnv();
|
|
58
|
-
}
|
|
59
|
-
hideCheckout(saveSize) {
|
|
60
|
-
if (this.iFrame)
|
|
61
|
-
this.iFrame.hide();
|
|
62
|
-
}
|
|
63
|
-
showCheckout() {
|
|
64
|
-
if (this.iFrame)
|
|
65
|
-
this.iFrame.show();
|
|
66
|
-
}
|
|
67
|
-
reload() {
|
|
68
|
-
this.iFrame.remove();
|
|
69
|
-
this.load();
|
|
70
|
-
}
|
|
71
|
-
useAutoResize(force) {
|
|
72
|
-
if (this.autoResize && !force)
|
|
73
|
-
return;
|
|
74
|
-
this.autoResize = true;
|
|
75
|
-
const params = this.link.getParams();
|
|
76
|
-
if (!(params === null || params === void 0 ? void 0 : params.widget_id))
|
|
77
|
-
return;
|
|
78
|
-
this.iFrameEvent.on('resize', params.widget_id, ({ data }) => {
|
|
79
|
-
var _a, _b;
|
|
80
|
-
const iframeElement = this.iFrame.getElement();
|
|
81
|
-
if (iframeElement) {
|
|
82
|
-
iframeElement.scrolling = 'no';
|
|
83
|
-
if ((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.height)
|
|
84
|
-
this.iFrame.setStyle('height', ((_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.height) + 'px');
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=../../../../src/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mastercard-src.js","sourceRoot":"","sources":["../../../../secure-remote-commerce/providers/mastercard-src/mastercard-src.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAA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,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAc,EAAE,EAAE;;YACrE,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;YAC/C,IAAI,aAAa,EAAE;gBACf,aAAa,CAAC,SAAS,GAAG,IAAI,CAAC;gBAC/B,UAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,MAAM;oBAClB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,MAAM,IAAG,IAAI,CAAC,CAAC;aACjE;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=../../../src/lib/secure-remote-commerce/providers/src-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"src-provider.js","sourceRoot":"","sources":["../../../secure-remote-commerce/providers/src-provider.ts"],"names":[],"mappings":""}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { API_AUTH_TYPE } from '../api/api-base';
|
|
2
|
-
import { CARD_SCHEME_SERVICE } from '../api/api-service-internal';
|
|
3
|
-
import { EventEmitter } from '../helper/event-emitter';
|
|
4
|
-
import { MastercardSRC } from './providers/mastercard-src';
|
|
5
|
-
import { ApiInternal } from '../api/api-internal';
|
|
6
|
-
import { STYLE } from './interfaces';
|
|
7
|
-
import { ObjectHelper } from '../helper/object';
|
|
8
|
-
class SRC {
|
|
9
|
-
constructor(iframe_selector, service_id, public_key_or_access_token, meta) {
|
|
10
|
-
this.iframe_selector = iframe_selector;
|
|
11
|
-
this.service_id = service_id;
|
|
12
|
-
this.public_key_or_access_token = public_key_or_access_token;
|
|
13
|
-
this.meta = meta;
|
|
14
|
-
this.autoResize = false;
|
|
15
|
-
this.style = {};
|
|
16
|
-
this.api = new ApiInternal(public_key_or_access_token, API_AUTH_TYPE.PUBLIC_KEY);
|
|
17
|
-
this.eventEmitter = new EventEmitter();
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Object contain styles for widget - call before `.load()`.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* widget.setStyles({
|
|
24
|
-
* enable_src_popup: true
|
|
25
|
-
* primary_button_color: 'red',
|
|
26
|
-
* secondary_button_color: 'blue',
|
|
27
|
-
* primary_button_text_color: 'white',
|
|
28
|
-
* secondary_button_text_color: 'white',
|
|
29
|
-
* font_family: 'Arial',
|
|
30
|
-
* });
|
|
31
|
-
* @param {IStyles} fields - name of styles which can be shown in widget [STYLE]{@link STYLE}
|
|
32
|
-
*/
|
|
33
|
-
setStyles(styles) {
|
|
34
|
-
for (let index in styles) {
|
|
35
|
-
if (styles.hasOwnProperty(index))
|
|
36
|
-
this.setStyle(index, styles[index]);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
setStyle(param, value) {
|
|
40
|
-
if (ObjectHelper.values(STYLE).indexOf(param) !== -1)
|
|
41
|
-
this.style[param] = value;
|
|
42
|
-
else
|
|
43
|
-
console.warn(`Widget::setStyle[s: unsupported style param ${param}`);
|
|
44
|
-
}
|
|
45
|
-
load() {
|
|
46
|
-
if (this.provider)
|
|
47
|
-
return;
|
|
48
|
-
this.api.service().getConfig(this.service_id).then(({ type }) => {
|
|
49
|
-
this.meta.customizations = this.style; // assign the style on the start of the widget
|
|
50
|
-
switch (type) {
|
|
51
|
-
case CARD_SCHEME_SERVICE.MASTERCARD_SRC:
|
|
52
|
-
this.provider = new MastercardSRC(this.iframe_selector, this.service_id, this.public_key_or_access_token, this.meta, this.eventEmitter, this.autoResize, this.env, this.alias);
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
;
|
|
56
|
-
if (this.provider)
|
|
57
|
-
this.provider.load();
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Current method can change environment. By default environment = sandbox.
|
|
62
|
-
* Also we can change domain alias for this environment. By default domain_alias = paydock.com
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* SRC.setEnv('production');
|
|
66
|
-
* @param {string} env - sandbox, production
|
|
67
|
-
* @param {string} [alias] - Own domain alias
|
|
68
|
-
*/
|
|
69
|
-
setEnv(env, alias) {
|
|
70
|
-
if (this.provider)
|
|
71
|
-
return;
|
|
72
|
-
this.env = env;
|
|
73
|
-
this.alias = alias;
|
|
74
|
-
this.api.setEnv(env, alias);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Method to read the current environment
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* SRC.getEnv();
|
|
81
|
-
*/
|
|
82
|
-
getEnv() {
|
|
83
|
-
if (this.provider)
|
|
84
|
-
return this.provider.getEnv();
|
|
85
|
-
else
|
|
86
|
-
return this.env;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Listen to events of SRC
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
*
|
|
93
|
-
* SRC.on('checkoutCompleted', function (token) {
|
|
94
|
-
* console.log(token);
|
|
95
|
-
* });
|
|
96
|
-
* // or
|
|
97
|
-
* SRC.on('checkoutCompleted').then(function (token) {
|
|
98
|
-
* console.log(token);
|
|
99
|
-
* });
|
|
100
|
-
*
|
|
101
|
-
* @param {string} eventName - Available event names [EVENT]{@link EVENT}
|
|
102
|
-
* @param {listener} [cb] - The callback to handle the event. When available, it will send back data of type [EventData]{@link EventData}
|
|
103
|
-
* @return {Promise<any> | void}
|
|
104
|
-
*/
|
|
105
|
-
on(eventName, cb) {
|
|
106
|
-
if (typeof cb === "function")
|
|
107
|
-
return this.eventEmitter.subscribe(eventName, cb);
|
|
108
|
-
return new Promise((resolve) => this.eventEmitter.subscribe(eventName, (res) => resolve(res)));
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Using this method you can hide checkout after load and button click
|
|
112
|
-
* @param {boolean} [saveSize=false] - using this param you can save iframe's size (if applicable)
|
|
113
|
-
*
|
|
114
|
-
* @example
|
|
115
|
-
* SRC.hideCheckout();
|
|
116
|
-
*/
|
|
117
|
-
hideCheckout(saveSize) {
|
|
118
|
-
if (this.provider && typeof this.provider.hideCheckout === 'function')
|
|
119
|
-
this.provider.hideCheckout(saveSize);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Using this method you can show checkout after using hideCheckout method
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* SRC.showCheckout()
|
|
126
|
-
*/
|
|
127
|
-
showCheckout() {
|
|
128
|
-
if (this.provider && typeof this.provider.showCheckout === 'function')
|
|
129
|
-
this.provider.showCheckout();
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Using this method you can reload the whole checkout
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* SRC.reload()
|
|
136
|
-
*/
|
|
137
|
-
reload() {
|
|
138
|
-
if (this.provider)
|
|
139
|
-
this.provider.reload();
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Use this method for resize checkout iFrame according to content height, if applicable
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* SRC.useAutoResize();
|
|
146
|
-
*
|
|
147
|
-
*/
|
|
148
|
-
useAutoResize() {
|
|
149
|
-
this.autoResize = true;
|
|
150
|
-
if (this.provider && typeof this.provider.useAutoResize === 'function')
|
|
151
|
-
this.provider.useAutoResize();
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
export { SRC };
|
|
155
|
-
//# sourceMappingURL=../../src/lib/secure-remote-commerce/secure-remote-commerce.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secure-remote-commerce.js","sourceRoot":"","sources":["../../secure-remote-commerce/secure-remote-commerce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,M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I,EAAE,CAAC,SAAiB,EAAE,EAA+B;QACxD,IAAI,OAAO,EAAE,KAAK,UAAU;YACxB,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QAEtD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CAAC,QAAiB;QACjC,IAAI,IAAI,CAAC,QAAQ,IAAI,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,KAAK,UAAU;YACjE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAED;;;;;OAKG;IACI,YAAY;QACf,IAAI,IAAI,CAAC,QAAQ,IAAI,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,KAAK,UAAU;YACjE,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACT,IAAI,IAAI,CAAC,QAAQ;YACb,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC/B,CAAC;IAED;;;;;;OAMG;IACI,aAAa;QAChB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,IAAI,CAAC,QAAQ,IAAI,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,KAAK,UAAU;YAClE,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;IACtC,CAAC;CACJ;AAED,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { VaultDisplayWidget } from '../vault-display-widget/vault-display-widget';
|
|
2
|
-
/**
|
|
3
|
-
* List of available style params for vault display widget
|
|
4
|
-
*
|
|
5
|
-
* @const VAULT_DISPLAY_STYLE
|
|
6
|
-
* @type {object}
|
|
7
|
-
* @param {string} BACKGROUND_COLOR=background_color
|
|
8
|
-
* @param {string} TEXT_COLOR=text_color
|
|
9
|
-
* @param {string} BORDER_COLOR=border_color
|
|
10
|
-
* @param {string} BUTTON_COLOR=button_color
|
|
11
|
-
* @param {string} FONT_SIZE=font_size
|
|
12
|
-
* @param {string} FONT_FAMILY=font_family
|
|
13
|
-
*/
|
|
14
|
-
//# sourceMappingURL=../../src/lib/vault-display-widget/index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../vault-display-widget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAElF;;;;;;;;;;;GAWG"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Container } from '../components/container';
|
|
2
|
-
import { IFrame } from '../components/iframe';
|
|
3
|
-
import { Trigger } from '../components/trigger';
|
|
4
|
-
import { STYLE } from '../components/param';
|
|
5
|
-
import { Link, VAULT_DISPLAY_WIDGET_LINK } from '../components/link';
|
|
6
|
-
import { ObjectHelper } from '../helper/object';
|
|
7
|
-
import { VaultDisplayIframeEvent } from '../components/vault-display-iframe-event';
|
|
8
|
-
/**
|
|
9
|
-
* Class VaultDisplayWidget include method for working on html
|
|
10
|
-
* @constructor
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* var widget = new VaultDisplayWidget('#widget', 'token');
|
|
14
|
-
*
|
|
15
|
-
* @param {string} selector - Selector of html element. Container for widget
|
|
16
|
-
* @param {string} token - One time token
|
|
17
|
-
*/
|
|
18
|
-
class VaultDisplayWidget {
|
|
19
|
-
/** @constructs */ // constructs added for correct parse classes jsdoc2md
|
|
20
|
-
constructor(selector, token) {
|
|
21
|
-
this.validationData = {};
|
|
22
|
-
this.configs = [];
|
|
23
|
-
this.container = new Container(selector);
|
|
24
|
-
this.iFrame = new IFrame(this.container);
|
|
25
|
-
this.triggerElement = new Trigger(this.iFrame);
|
|
26
|
-
this.event = new VaultDisplayIframeEvent(window);
|
|
27
|
-
this.vaultDisplayToken = token;
|
|
28
|
-
this.link = new Link(VAULT_DISPLAY_WIDGET_LINK);
|
|
29
|
-
this.link.setParams({ vault_display_token: token });
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Current method can change environment. By default environment = sandbox.
|
|
33
|
-
* Also we can change domain alias for this environment. By default domain_alias = paydock.com
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* widget.setEnv('production', 'paydock.com');
|
|
37
|
-
* @param {string} env - sandbox, production
|
|
38
|
-
* @param {string} [alias] - Own domain alias
|
|
39
|
-
*/
|
|
40
|
-
setEnv(env, alias) {
|
|
41
|
-
this.link.setEnv(env, alias);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Listen to events of widget
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
*
|
|
48
|
-
* widget.on('after_load', function (data) {
|
|
49
|
-
* console.log(data);
|
|
50
|
-
* });
|
|
51
|
-
* // or
|
|
52
|
-
* widget.on('after_load').then(function (data) {
|
|
53
|
-
* console.log(data);
|
|
54
|
-
* });
|
|
55
|
-
* @param {string} eventName - Available event names [VAULT_DISPLAY_EVENT]{@link VAULT_DISPLAY_EVENT}
|
|
56
|
-
* @param {listener} [cb]
|
|
57
|
-
* @return {Promise<IEventData | void>}
|
|
58
|
-
*/
|
|
59
|
-
on(eventName, cb) {
|
|
60
|
-
if (typeof cb === "function")
|
|
61
|
-
return this.event.on(eventName, this.link.getParams().widget_id, cb);
|
|
62
|
-
return new Promise((resolve) => this.event.on(eventName, this.link.getParams().widget_id, (res) => resolve(res)));
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Object contain styles for widget
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* widget.setStyles({
|
|
69
|
-
* background_color: '#fff',
|
|
70
|
-
* border_color: 'yellow',
|
|
71
|
-
* text_color: '#FFFFAA',
|
|
72
|
-
* button_color: 'rgba(255, 255, 255, 0.9)',
|
|
73
|
-
* font_size: '20px',
|
|
74
|
-
* fort_family: 'fantasy'
|
|
75
|
-
* });
|
|
76
|
-
* @param {VaultDisplayStyle} fields - name of styles which can be shown in widget [VAULT_DISPLAY_STYLE]{@link VAULT_DISPLAY_STYLE}
|
|
77
|
-
*/
|
|
78
|
-
setStyles(styles) {
|
|
79
|
-
for (let index in styles) {
|
|
80
|
-
if (styles.hasOwnProperty(index))
|
|
81
|
-
this.setStyle(index, styles[index]);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
setStyle(param, value) {
|
|
85
|
-
if (ObjectHelper.values(STYLE).indexOf(param) !== -1)
|
|
86
|
-
this.link.setParams({ [param]: value });
|
|
87
|
-
else
|
|
88
|
-
console.warn(`Widget::setStyle[s: unsupported style param ${param}`);
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* The final method to beginning, the load process of widget to html
|
|
92
|
-
*
|
|
93
|
-
*/
|
|
94
|
-
load() {
|
|
95
|
-
this.iFrame.load(this.link.getUrl(), { title: 'Vault Display' });
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export { VaultDisplayWidget };
|
|
99
|
-
//# sourceMappingURL=../../src/lib/vault-display-widget/vault-display-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vault-display-widget.js","sourceRoot":"","sources":["../../vault-display-widget/vault-display-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAA4B,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,yBAAy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