@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
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { AccessToken } from './../helper/access-token';
|
|
2
|
-
import { Link, PAYMENT_SOURCE_LINK } from '../components/link';
|
|
3
|
-
import { PAYMENT_SOURCE_TYPE, STYLE } from '../components/param';
|
|
4
|
-
import { ObjectHelper } from '../helper/object';
|
|
5
|
-
import { SDK } from '../configs/sdk';
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* Class PaymentSourceWidget include method for for creating iframe url
|
|
9
|
-
* @constructor
|
|
10
|
-
*
|
|
11
|
-
* @param {string} publicKey - PayDock users public key
|
|
12
|
-
* @param {string} customer - PayDock's customer_id or customer_reference (In order to use the customer_reference, you must explicitly specify useReference as true)
|
|
13
|
-
* @param {boolean} [useReference=false]
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* var widget = new PaymentSourceWidget('publicKey','customerId');
|
|
17
|
-
* // or
|
|
18
|
-
* var widget = new PaymentSourceWidget('publicKey', customerReference, true);
|
|
19
|
-
*/
|
|
20
|
-
class PaymentSourceWidget {
|
|
21
|
-
constructor(accessToken, queryToken) {
|
|
22
|
-
this.configs = [];
|
|
23
|
-
this.configTokens = [];
|
|
24
|
-
this.link = new Link(PAYMENT_SOURCE_LINK);
|
|
25
|
-
this.link.setParams(Object.assign({ query_token: queryToken }, (AccessToken.validateJWT(accessToken) ? { access_token: accessToken } : { public_key: accessToken })));
|
|
26
|
-
if (SDK.version) {
|
|
27
|
-
this.link.setParams({
|
|
28
|
-
sdk_version: SDK.version,
|
|
29
|
-
sdk_type: SDK.type,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Object contain styles for widget
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* widget.setStyles({
|
|
38
|
-
* background_color: 'rgb(0, 0, 0)',
|
|
39
|
-
* border_color: 'yellow',
|
|
40
|
-
* text_color: '#FFFFAA',
|
|
41
|
-
* icon_size: 'small',
|
|
42
|
-
* font_size: '20px'
|
|
43
|
-
* });
|
|
44
|
-
* @param {IStyles} fields - name of styles which can be shown in widget [STYLE]{@link STYLE}
|
|
45
|
-
*/
|
|
46
|
-
setStyles(styles) {
|
|
47
|
-
for (let index in styles) {
|
|
48
|
-
if (styles.hasOwnProperty(index))
|
|
49
|
-
this.setStyle(index, styles[index]);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
setStyle(param, value) {
|
|
53
|
-
if (ObjectHelper.values(STYLE).indexOf(param) !== -1)
|
|
54
|
-
this.link.setParams({ [param]: value });
|
|
55
|
-
else
|
|
56
|
-
console.warn(`Widget::setStyle[s: unsupported style param ${param}`);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Current method can set custom ID to identify the data in the future
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* widget.setRefId('id');
|
|
63
|
-
*
|
|
64
|
-
* @param {string} refId - custom id
|
|
65
|
-
*/
|
|
66
|
-
setRefId(refId) {
|
|
67
|
-
this.link.setParams({ ref_id: refId });
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Current method can set limit for payment sources count. In case when limit sets less then general count will be shown pagination buttons prev and next.
|
|
71
|
-
*
|
|
72
|
-
* @param {string} count - payment source count
|
|
73
|
-
*/
|
|
74
|
-
setLimit(count) {
|
|
75
|
-
this.link.setParams({ limit: count });
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Current method can change environment. By default environment = sandbox
|
|
79
|
-
* Also we can change domain alias for this environment. By default domain_alias = paydock.com
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* widget.setEnv('production');
|
|
83
|
-
* @param {string} env - sandbox, production
|
|
84
|
-
* @param {string} [alias] - Own domain alias
|
|
85
|
-
*/
|
|
86
|
-
setEnv(env, alias) {
|
|
87
|
-
this.link.setEnv(env, alias);
|
|
88
|
-
for (let index in this.configs) {
|
|
89
|
-
if (this.configs.hasOwnProperty(index))
|
|
90
|
-
this.configs[index].setEnv(env, alias);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
getEnv() {
|
|
94
|
-
this.link.getEnv();
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Method for getting iframe's url
|
|
98
|
-
*/
|
|
99
|
-
getIFrameUrl() {
|
|
100
|
-
return this.link.getUrl();
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Show payment source inside widget only with requested gateway ids
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* @param {string[]} ids - List of gateway_id
|
|
107
|
-
*/
|
|
108
|
-
filterByGatewayIds(ids) {
|
|
109
|
-
this.link.setParams({ gateway_ids: ids.join(',') });
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* Show payment source inside widget only with requested payment source types
|
|
114
|
-
*
|
|
115
|
-
* @param types - List of payment source types. Available parameters [PAYMENT_TYPE]{@link PAYMENT_TYPE}
|
|
116
|
-
*/
|
|
117
|
-
filterByTypes(types) {
|
|
118
|
-
let supportedTypes = [];
|
|
119
|
-
for (let type of types) {
|
|
120
|
-
if (!types.hasOwnProperty(type))
|
|
121
|
-
continue;
|
|
122
|
-
if (ObjectHelper.values(PAYMENT_SOURCE_TYPE).indexOf(type) === -1)
|
|
123
|
-
console.warn(`PaymentSourceWidget::filterByTypes: unsupported type ${type}`);
|
|
124
|
-
else
|
|
125
|
-
supportedTypes.push(type);
|
|
126
|
-
}
|
|
127
|
-
this.link.setParams({ payment_source_types: supportedTypes.join(',') });
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Method for setting a custom language code
|
|
131
|
-
*
|
|
132
|
-
* @example
|
|
133
|
-
* config.setLanguage('en');
|
|
134
|
-
* @param {string} code - ISO 639-1
|
|
135
|
-
*/
|
|
136
|
-
setLanguage(code) {
|
|
137
|
-
this.link.setParams({ language: code });
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
export { PaymentSourceWidget };
|
|
141
|
-
//# sourceMappingURL=../../src/lib/payment-source-widget/payment-source-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-source-widget.js","sourceRoot":"","sources":["../../payment-source-widget/payment-source-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,EAA6B,mBAAmB,EAAE,KAAK,EAAC,MAAM,qBAAqB,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,GAAG,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I,CAAC,wDAAwD,IAAI,EAAE,CAAC,CAAC;;gBAE7E,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACjC;QAED,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC,oBAAoB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAAC,IAAI;QACnB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;IACzC,CAAC;CACJ;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../secure-remote-commerce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,28 +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} CHECKOUT_BUTTON_LOADED=checkoutButtonLoaded
|
|
7
|
-
* @param {string} CHECKOUT_BUTTON_CLICKED=checkoutButtonClicked
|
|
8
|
-
* @param {string} IFRAME_LOADED=iframeLoaded
|
|
9
|
-
* @param {string} CHECKOUT_READY=checkoutReady
|
|
10
|
-
* @param {string} CHECKOUT_COMPLETED=checkoutCompleted
|
|
11
|
-
* @param {string} CHECKOUT_ERROR=checkoutError
|
|
12
|
-
*/
|
|
13
|
-
export var EVENT;
|
|
14
|
-
(function (EVENT) {
|
|
15
|
-
EVENT["CHECKOUT_BUTTON_LOADED"] = "checkoutButtonLoaded";
|
|
16
|
-
EVENT["CHECKOUT_BUTTON_CLICKED"] = "checkoutButtonClicked";
|
|
17
|
-
EVENT["IFRAME_LOADED"] = "iframeLoaded";
|
|
18
|
-
EVENT["CHECKOUT_READY"] = "checkoutReady";
|
|
19
|
-
EVENT["CHECKOUT_COMPLETED"] = "checkoutCompleted";
|
|
20
|
-
EVENT["CHECKOUT_ERROR"] = "checkoutError";
|
|
21
|
-
})(EVENT || (EVENT = {}));
|
|
22
|
-
export const STYLE = {
|
|
23
|
-
BUTTON_TEXT_COLOR: 'button_text_color',
|
|
24
|
-
PRIMARY_COLOR: 'primary_color',
|
|
25
|
-
FONT_FAMILY: 'font_family',
|
|
26
|
-
CARD_SCHEMES: 'card_schemes',
|
|
27
|
-
};
|
|
28
|
-
//# 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,wDAA+C,CAAA;IAC/C,0DAAiD,CAAA;IACjD,uCAA8B,CAAA;IAC9B,yCAAgC,CAAA;IAChC,iDAAwC,CAAA;IACxC,yCAAgC,CAAA;AACpC,CAAC,EAPW,KAAK,KAAL,KAAK,QAOhB;AAsDD,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAC,cAAc;CAC9B,CAAC"}
|
|
@@ -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,36 +0,0 @@
|
|
|
1
|
-
export const CARD_SCHEME = {
|
|
2
|
-
VISA: 'visa',
|
|
3
|
-
MASTERCARD: 'mastercard',
|
|
4
|
-
AMEX: 'amex',
|
|
5
|
-
DISCOVER: 'discover',
|
|
6
|
-
};
|
|
7
|
-
const CHEVRON_VMAD_IMG_PATH = '/images/visa-src/Chevron_Large_VMAD.png';
|
|
8
|
-
const CHEVRON_VMA_IMG_PATH = '/images/visa-src/Chevron_Large_VMA.png';
|
|
9
|
-
const CHEVRON_VM_IMG_PATH = '/images/visa-src/Chevron_Large_VM.png';
|
|
10
|
-
const CHEVRON_M_IMG_PATH = '/images/visa-src/Chevron_Large_M.png';
|
|
11
|
-
const CHEVRON_D_IMG_PATH = '/images/visa-src/Chevron_Large_D.png';
|
|
12
|
-
const CHEVRON_V_IMG_PATH = '/images/visa-src/Chevron_Large_V.png';
|
|
13
|
-
const VMAD_IMG_PATH = '/images/visa-src/vmad.svg';
|
|
14
|
-
const VMA_IMG_PATH = '/images/visa-src/logos/Networks_Large_VMA.png';
|
|
15
|
-
const VM_IMG_PATH = '/images/visa-src/logos/Networks_Large_VM.png';
|
|
16
|
-
const M_IMG_PATH = '/images/visa-src/logos/master-logo.png';
|
|
17
|
-
const D_IMG_PATH = '/images/visa-src/logos/Networks_Large_D.png';
|
|
18
|
-
const V_IMG_PATH = '/images/visa-src/logos/visa-logo.png';
|
|
19
|
-
export const GenerateCardSchemesLogo = (card_scheme, chevron = false) => {
|
|
20
|
-
if (!card_scheme || !Array.isArray(card_scheme))
|
|
21
|
-
return chevron ? CHEVRON_VMAD_IMG_PATH : VMAD_IMG_PATH;
|
|
22
|
-
const card_scheme_sort = card_scheme.sort();
|
|
23
|
-
if (includeArray([CARD_SCHEME.AMEX, CARD_SCHEME.MASTERCARD, CARD_SCHEME.VISA], card_scheme_sort))
|
|
24
|
-
return chevron ? CHEVRON_VMA_IMG_PATH : VMA_IMG_PATH;
|
|
25
|
-
if (includeArray([CARD_SCHEME.MASTERCARD, CARD_SCHEME.VISA], card_scheme_sort))
|
|
26
|
-
return chevron ? CHEVRON_VM_IMG_PATH : VM_IMG_PATH;
|
|
27
|
-
if (includeArray([CARD_SCHEME.MASTERCARD], card_scheme_sort))
|
|
28
|
-
return chevron ? CHEVRON_M_IMG_PATH : M_IMG_PATH;
|
|
29
|
-
if (includeArray([CARD_SCHEME.DISCOVER], card_scheme_sort))
|
|
30
|
-
return chevron ? CHEVRON_D_IMG_PATH : D_IMG_PATH;
|
|
31
|
-
if (includeArray([CARD_SCHEME.VISA], card_scheme_sort))
|
|
32
|
-
return chevron ? CHEVRON_V_IMG_PATH : V_IMG_PATH;
|
|
33
|
-
return chevron ? CHEVRON_V_IMG_PATH : VMAD_IMG_PATH;
|
|
34
|
-
};
|
|
35
|
-
const includeArray = (condition, card_scheme) => condition.every((card, index) => card === card_scheme[index]);
|
|
36
|
-
//# sourceMappingURL=../../../../src/lib/secure-remote-commerce/providers/visa-src/helper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../../secure-remote-commerce/providers/visa-src/helper.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACvB,CAAC;AAEF,MAAM,qBAAqB,GAAG,yCAAyC,CAAC;AACxE,MAAM,oBAAoB,GAAG,wCAAwC,CAAC;AACtE,MAAM,mBAAmB,GAAG,uCAAuC,CAAC;AACpE,MAAM,kBAAkB,GAAG,sCAAsC,CAAC;AAClE,MAAM,kBAAkB,GAAG,sCAAsC,CAAC;AAClE,MAAM,kBAAkB,GAAG,sCAAsC,CAAC;AAElE,MAAM,aAAa,GAAG,2BAA2B,CAAC;AAClD,MAAM,YAAY,GAAG,+CAA+C,CAAC;AACrE,MAAM,WAAW,GAAG,8CAA8C,CAAC;AACnE,MAAM,UAAU,GAAG,wCAAwC,CAAC;AAC5D,MAAM,UAAU,GAAG,6CAA6C,CAAC;AACjE,MAAM,UAAU,GAAG,sCAAsC,CAAC;A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AAC,SAAmB,EAAE,WAAqB,EAAE,EAAE,CAChE,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../secure-remote-commerce/providers/visa-src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { Link, VISA_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 { VisaSRCStyles } from "./visa-src.styles";
|
|
6
|
-
import { EVENT } from '../../interfaces';
|
|
7
|
-
import { GenerateCardSchemesLogo } from "./helper";
|
|
8
|
-
import { SDK } from '../../../configs/sdk';
|
|
9
|
-
export class VisaSRC {
|
|
10
|
-
constructor(button_selector, iframe_selector, service_id, public_key, meta, eventEmitter, autoResize, env, alias) {
|
|
11
|
-
this.meta = meta;
|
|
12
|
-
this.eventEmitter = eventEmitter;
|
|
13
|
-
this.autoResize = autoResize;
|
|
14
|
-
this.link = new Link(VISA_SRC);
|
|
15
|
-
this.link.setParams(Object.assign({ service_id, public_key }, meta && { meta: JSON.stringify(meta) }));
|
|
16
|
-
if (SDK.version) {
|
|
17
|
-
this.link.setParams({
|
|
18
|
-
sdk_version: SDK.version,
|
|
19
|
-
sdk_type: SDK.type,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
if (env)
|
|
23
|
-
this.link.setEnv(env, alias);
|
|
24
|
-
this.iFrameContainer = new Container(iframe_selector);
|
|
25
|
-
this.iFrame = new IFrame(this.iFrameContainer);
|
|
26
|
-
this.buttonContainer = new Container(button_selector);
|
|
27
|
-
this.iFrameEvent = new IFrameEvent(window);
|
|
28
|
-
this.setupIFrameEvents();
|
|
29
|
-
}
|
|
30
|
-
setupIFrameEvents() {
|
|
31
|
-
const widgetId = this.link.getParams().widget_id;
|
|
32
|
-
this.iFrameEvent.on(EVENT.CHECKOUT_READY, widgetId, ({ data }) => {
|
|
33
|
-
this.eventEmitter.emit(EVENT.CHECKOUT_READY, data);
|
|
34
|
-
});
|
|
35
|
-
this.iFrameEvent.on(EVENT.CHECKOUT_COMPLETED, widgetId, ({ data }) => {
|
|
36
|
-
this.eventEmitter.emit(EVENT.CHECKOUT_COMPLETED, data);
|
|
37
|
-
});
|
|
38
|
-
this.iFrameEvent.on(EVENT.CHECKOUT_ERROR, widgetId, ({ data }) => {
|
|
39
|
-
this.eventEmitter.emit(EVENT.CHECKOUT_ERROR, data);
|
|
40
|
-
});
|
|
41
|
-
if (this.autoResize)
|
|
42
|
-
this.useAutoResize(true);
|
|
43
|
-
}
|
|
44
|
-
load() {
|
|
45
|
-
var _a;
|
|
46
|
-
const container = document.createElement('div');
|
|
47
|
-
container.setAttribute('style', VisaSRCStyles.buttonContainerStyles);
|
|
48
|
-
const checkoutButton = document.createElement('button');
|
|
49
|
-
checkoutButton.setAttribute('style', VisaSRCStyles.buttonStyles);
|
|
50
|
-
if (this.meta.customizations.primary_color)
|
|
51
|
-
checkoutButton.style.backgroundColor = this.meta.customizations.primary_color;
|
|
52
|
-
if (this.meta.customizations.button_text_color)
|
|
53
|
-
checkoutButton.style.color = this.meta.customizations.button_text_color;
|
|
54
|
-
checkoutButton.innerHTML = 'Checkout';
|
|
55
|
-
const footerContainer = document.createElement('div');
|
|
56
|
-
footerContainer.setAttribute('style', VisaSRCStyles.footerContainerStyles);
|
|
57
|
-
const verticalLine = document.createElement('div');
|
|
58
|
-
verticalLine.setAttribute('style', VisaSRCStyles.verticalLineStyle);
|
|
59
|
-
const footerText = document.createElement('p');
|
|
60
|
-
footerText.setAttribute('style', VisaSRCStyles.footerTextStyles);
|
|
61
|
-
footerText.innerHTML = 'WE ACCEPT';
|
|
62
|
-
const clickToPayAllCards = document.createElement('img');
|
|
63
|
-
clickToPayAllCards.setAttribute('style', VisaSRCStyles.clickToPayAllCardsStyle);
|
|
64
|
-
clickToPayAllCards.src = this.link.getBaseUrl() + `${GenerateCardSchemesLogo((_a = this.meta.customizations) === null || _a === void 0 ? void 0 : _a.card_schemes, true)}`;
|
|
65
|
-
checkoutButton.onclick = () => {
|
|
66
|
-
this.eventEmitter.emit(EVENT.CHECKOUT_BUTTON_CLICKED, {});
|
|
67
|
-
this.iFrame.load(this.link.getUrl(), { title: 'Visa SRC checkout' });
|
|
68
|
-
this.iFrame.getElement().onload = () => this.eventEmitter.emit(EVENT.IFRAME_LOADED, {});
|
|
69
|
-
};
|
|
70
|
-
container.appendChild(checkoutButton);
|
|
71
|
-
container.appendChild(footerContainer);
|
|
72
|
-
footerContainer.appendChild(footerText);
|
|
73
|
-
footerContainer.appendChild(clickToPayAllCards);
|
|
74
|
-
this.buttonContainer.getElement().appendChild(container);
|
|
75
|
-
this.eventEmitter.emit(EVENT.CHECKOUT_BUTTON_LOADED, {});
|
|
76
|
-
}
|
|
77
|
-
getEnv() {
|
|
78
|
-
return this.link.getEnv();
|
|
79
|
-
}
|
|
80
|
-
hideButton(_saveSize) {
|
|
81
|
-
if (this.buttonContainer.getElement())
|
|
82
|
-
this.buttonContainer.getElement().style['display'] = 'none';
|
|
83
|
-
}
|
|
84
|
-
showButton() {
|
|
85
|
-
if (this.buttonContainer.getElement())
|
|
86
|
-
this.buttonContainer.getElement().style['display'] = 'block';
|
|
87
|
-
}
|
|
88
|
-
hideCheckout(saveSize) {
|
|
89
|
-
if (this.iFrame)
|
|
90
|
-
this.iFrame.hide();
|
|
91
|
-
}
|
|
92
|
-
showCheckout() {
|
|
93
|
-
if (this.iFrame)
|
|
94
|
-
this.iFrame.show();
|
|
95
|
-
}
|
|
96
|
-
reload() {
|
|
97
|
-
this.iFrame.remove();
|
|
98
|
-
this.load();
|
|
99
|
-
}
|
|
100
|
-
useAutoResize(force) {
|
|
101
|
-
if (this.autoResize && !force)
|
|
102
|
-
return;
|
|
103
|
-
this.autoResize = true;
|
|
104
|
-
this.iFrameEvent.on('resize', this.link.getParams().widget_id, ({ data }) => {
|
|
105
|
-
if (this.iFrame.getElement()) {
|
|
106
|
-
this.iFrame.getElement().scrolling = 'no';
|
|
107
|
-
if (data.height)
|
|
108
|
-
this.iFrame.setStyle('height', data.height + 'px');
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=../../../../src/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visa-src.js","sourceRoot":"","sources":["../../../../secure-remote-commerce/providers/visa-src/visa-src.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAc,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,KAAK,EAAgB,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,MAAM,OAAO,OAAO;IAOhB,YAAY,eAAuB,EAAE,eAAuB,EAAE,UAAkB,EAAE,UAAkB,EAAY,IAAkB,EAAY,YAA0B,EAAY,UAAU,EAAE,GAAW,EAAE,KAAa;QAA1G,SAAI,GAAJ,IAAI,CAAc;QAAY,iBAAY,GAAZ,YAAY,CAAc;QAAY,eAAU,GAAV,UAAU,CAAA;QAC1L,IAAI,CAAC,IAAI,GA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M,CAAC,UAAU,EAAE,EAAE;gBAC1B,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,SAAS,GAAG,IAAI,CAAC;gBAC1C,IAAI,IAAI,CAAC,MAAM;oBACX,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;aAC1D;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export class VisaSRCStyles {
|
|
2
|
-
}
|
|
3
|
-
VisaSRCStyles.buttonContainerStyles = "display: flex; flex-direction: column; justify-content: center; align-items: center;";
|
|
4
|
-
VisaSRCStyles.buttonStyles = "color: #ffff; background-color: #ffbe24; border: none; width: 100%; min-height: 40px; font-size: 16px; font-weight: bold; line-height: 19px; letter-spacing: 0.7px; text-transform: uppercase; border-radius: 4px; margin-bottom: 15px; cursor: pointer;";
|
|
5
|
-
VisaSRCStyles.footerContainerStyles = "display: flex; flex: 1; flex-wrap: wrap; justify-content: center;";
|
|
6
|
-
VisaSRCStyles.footerTextStyles = "text-align: center; color: #666666; margin: 2px 0;";
|
|
7
|
-
VisaSRCStyles.verticalLineStyle = "display: inline-block; padding: 0.5px; background-color: #E5E5E5; height: 15px;";
|
|
8
|
-
VisaSRCStyles.clickToPayAllCardsStyle = "height: 17px; margin-left: 8px; vertical-align: middle; padding-top: 3px;";
|
|
9
|
-
// TODO: Remind to add in docs that if merchant's div is smaller than 240px the button styles will broke
|
|
10
|
-
//# sourceMappingURL=../../../../src/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visa-src.styles.js","sourceRoot":"","sources":["../../../../secure-remote-commerce/providers/visa-src/visa-src.styles.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAa;;AACR,mCAAqB,GAAG,sFAAsF,CAAC;AAE/G,0BAAY,GAAG,0PAA0P,CAAC;AAE1Q,mCAAqB,GAAG,mEAAmE,CAAC;AAE5F,8BAAgB,GAAG,oDAAoD,CAAC;AAExE,+BAAiB,GAAG,iFAAiF,CAAC;AAEtG,qCAAuB,GAAG,2EAA2E,CAAC;AAGxH,wGAAwG"}
|
|
@@ -1,238 +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 { VisaSRC } from './providers/visa-src';
|
|
5
|
-
import { ApiInternal } from '../api/api-internal';
|
|
6
|
-
import { STYLE } from './interfaces';
|
|
7
|
-
import { ObjectHelper } from "../helper/object";
|
|
8
|
-
/**
|
|
9
|
-
* Interface of data used for the Visa Checkout.
|
|
10
|
-
* @interface IVisaSRCMeta
|
|
11
|
-
*
|
|
12
|
-
* @type {object}
|
|
13
|
-
* @param {string} [srci_transaction_id] Used to identify the SRC Id.
|
|
14
|
-
* @param {object} [dpa_data] Object where the DPA creation data is stored.
|
|
15
|
-
* @param {string} [dpa_data.dpa_presentation_name] Name in which the DPA is presented in.
|
|
16
|
-
* @param {string} [dpa_data.dpa_uri] Used for indicating the DPA URI.
|
|
17
|
-
* @param {object} [dpa_transaction_options] Object that stores options for creating a trasaction with DPA.
|
|
18
|
-
* @param {string} [dpa_transaction_options.dpa_locale] DPA’s preferred locale, example en_US.
|
|
19
|
-
* @param {Array} [dpa_transaction_options.dpa_accepted_billing_countries] Used to indicate list of accepted billing countries for DPA.
|
|
20
|
-
* @param {Array} [dpa_transaction_options.dpa_accepted_shipping_countries] Used to indicate list of accepted shipping countries for DPA.
|
|
21
|
-
* @param {string} [dpa_transaction_options.dpa_billing_preference] Used for listing the enumeration for billing preferences for DPA. Options are 'ALL', 'POSTAL_COUNTRY' and 'NONE'.
|
|
22
|
-
* @param {string} [dpa_transaction_options.dpa_shipping_preference] Used for listing the enumeration for shipping preferences for DPA. Options are 'ALL', 'POSTAL_COUNTRY' and 'NONE'.
|
|
23
|
-
* @param {boolean} [dpa_transaction_options.consumer_name_requested] Used to check if the name of the consumer is needed.
|
|
24
|
-
* @param {boolean} [dpa_transaction_options.consumer_email_address_requested] Used to check if the email of the consumer is needed.
|
|
25
|
-
* @param {boolean} [dpa_transaction_options.consumer_phone_number_requested] Used to check if the phone number of the consumer is needed.
|
|
26
|
-
* @param {object} [dpa_transaction_options.payment_options] Object used to check the payment options that are included.
|
|
27
|
-
* @param {number} [dpa_transaction_options.payment_options.dpa_dynamic_data_ttl_minutes] The minimum requested validity period for the transaction credentials.
|
|
28
|
-
* @param {string} [dpa_transaction_options.payment_options.dynamic_data_type] Used for listing the enumeration for dynamic data types. Options are 'TAVV' and 'DTVV'.
|
|
29
|
-
* @param {boolean} [dpa_transaction_options.payment_options.dpa_pan_requested] Used to check if PAN number was requested.
|
|
30
|
-
* @param {string} [dpa_transaction_options.review_action] Used for listing the enumeration of review actions. Options are 'pay' and 'continue'.
|
|
31
|
-
* @param {string} [dpa_transaction_options.checkout_description] Used for indicating the description of the checkout.
|
|
32
|
-
* @param {string} [dpa_transaction_options.transaction_type] Used for listing the enumeration of the type of the transaction. 'PURCHASE', 'BILL_PAYMENT' and 'MONEY_TRANSFER'
|
|
33
|
-
* @param {string} [dpa_transaction_options.order_type] Used for listing the enumeration of the type of the order. Options are 'REAUTHORIZATION', 'RECURRING' and 'INSTALLMENT'.
|
|
34
|
-
* @param {object} [dpa_transaction_options.transaction_amount] Object used to describe the details of the transaction.
|
|
35
|
-
* @param {number} [dpa_transaction_options.transaction_amount.transaction_amount] Used to indicate the amount of the transaction.
|
|
36
|
-
* @param {string} [dpa_transaction_options.transaction_amount.transaction_currency_code] Used to indicate the currency code of the transaction. 3 letter ISO code format.
|
|
37
|
-
* @param {string} [dpa_transaction_options.merchant_order_id] Used to indicate the merchants order Id.
|
|
38
|
-
* @param {string} [dpa_transaction_options.merchant_category_code] Used to indicate the merchants category code.
|
|
39
|
-
* @param {string} [dpa_transaction_options.merchant_country_code] Used to indicate the merchants country code. 2 letter ISO code format.
|
|
40
|
-
* @param {object} [customer] Object where the customer data is stored to prefill in the checkout.
|
|
41
|
-
* @param {string} [customer.email] Customer email.
|
|
42
|
-
* @param {string} [customer.first_name] Customer first name.
|
|
43
|
-
* @param {string} [customer.last_name] Customer last name.
|
|
44
|
-
* @param {object} [customer.phone] Object where the customer phone is stored.
|
|
45
|
-
* @param {string} [customer.phone.country_code] Customer phone country code (example "1" for US).
|
|
46
|
-
* @param {string} [customer.phone.phone] Customer phone number.
|
|
47
|
-
* @param {object} [customer.payment_source] Object where the customer billing address data is stored.
|
|
48
|
-
* @param {string} [customer.payment_source.address_line1] Customer billing address line 1.
|
|
49
|
-
* @param {string} [customer.payment_source.address_line2] Customer billing address line 2.
|
|
50
|
-
* @param {string} [customer.payment_source.address_city] Customer billing address city.
|
|
51
|
-
* @param {string} [customer.payment_source.address_postcode] Customer billing address postcode.
|
|
52
|
-
* @param {string} [customer.payment_source.address_state] Customer billing address state code (if applicable for the country, example "FL" for Florida).
|
|
53
|
-
* @param {string} [customer.payment_source.address_country] Customer billing address country code (example "US").
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* Class SRC include methods for interacting with different secure remote commerce options such as Visa SRC
|
|
57
|
-
* @constructor
|
|
58
|
-
*
|
|
59
|
-
* @param {string} button_selector - Selector of html element. Container for SRC checkout button.
|
|
60
|
-
* @param {string} iframe_selector - Selector of html element. Container for SRC checkout iFrame.
|
|
61
|
-
* @param {string} service_id - Card Scheme Service ID
|
|
62
|
-
* @param {string} public_key_or_access_token - Paydock public key or Access Token
|
|
63
|
-
* @param {IVisaSRCMeta} meta - Data that configures the SRC checkout
|
|
64
|
-
* @example
|
|
65
|
-
* var SRC = new SRC('#checkoutButton', '#checkoutIframe', 'service_id', 'public_key', {});
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
|
-
class SRC {
|
|
69
|
-
constructor(button_selector, iframe_selector, service_id, public_key_or_access_token, meta) {
|
|
70
|
-
this.button_selector = button_selector;
|
|
71
|
-
this.iframe_selector = iframe_selector;
|
|
72
|
-
this.service_id = service_id;
|
|
73
|
-
this.public_key_or_access_token = public_key_or_access_token;
|
|
74
|
-
this.meta = meta;
|
|
75
|
-
this.autoResize = false;
|
|
76
|
-
this.style = {};
|
|
77
|
-
this.api = new ApiInternal(public_key_or_access_token, API_AUTH_TYPE.PUBLIC_KEY);
|
|
78
|
-
this.eventEmitter = new EventEmitter();
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Object contain styles for widget - call before `.load()`.
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* widget.setStyles({
|
|
85
|
-
* button_text_color: '#32a852',
|
|
86
|
-
* primary_color: '#32a852',
|
|
87
|
-
* font_family: 'sans-serif',
|
|
88
|
-
* card_schemes: ['visa']
|
|
89
|
-
* });
|
|
90
|
-
* @param {IStyles} fields - name of styles which can be shown in widget [STYLE]{@link STYLE}
|
|
91
|
-
*/
|
|
92
|
-
setStyles(styles) {
|
|
93
|
-
for (let index in styles) {
|
|
94
|
-
if (styles.hasOwnProperty(index))
|
|
95
|
-
this.setStyle(index, styles[index]);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
setStyle(param, value) {
|
|
99
|
-
if (ObjectHelper.values(STYLE).indexOf(param) !== -1)
|
|
100
|
-
this.style[param] = value;
|
|
101
|
-
else
|
|
102
|
-
console.warn(`Widget::setStyle[s: unsupported style param ${param}`);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* The final method after configuring the SRC to start the load process of SRC checkout
|
|
106
|
-
*
|
|
107
|
-
*/
|
|
108
|
-
load() {
|
|
109
|
-
if (this.provider)
|
|
110
|
-
return;
|
|
111
|
-
this.api.service().getConfig(this.service_id).then(({ type }) => {
|
|
112
|
-
this.meta.customizations = this.style; // assign the style on the start of the widget
|
|
113
|
-
switch (type) {
|
|
114
|
-
case CARD_SCHEME_SERVICE.VISA_SRC:
|
|
115
|
-
this.provider = new VisaSRC(this.button_selector, this.iframe_selector, this.service_id, this.public_key_or_access_token, this.meta, this.eventEmitter, this.autoResize, this.env, this.alias);
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
;
|
|
119
|
-
if (this.provider)
|
|
120
|
-
this.provider.load();
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Current method can change environment. By default environment = sandbox.
|
|
125
|
-
* Also we can change domain alias for this environment. By default domain_alias = paydock.com
|
|
126
|
-
*
|
|
127
|
-
* @example
|
|
128
|
-
* SRC.setEnv('production');
|
|
129
|
-
* @param {string} env - sandbox, production
|
|
130
|
-
* @param {string} [alias] - Own domain alias
|
|
131
|
-
*/
|
|
132
|
-
setEnv(env, alias) {
|
|
133
|
-
if (this.provider)
|
|
134
|
-
return;
|
|
135
|
-
this.env = env;
|
|
136
|
-
this.alias = alias;
|
|
137
|
-
this.api.setEnv(env, alias);
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Method to read the current environment
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* SRC.getEnv();
|
|
144
|
-
*/
|
|
145
|
-
getEnv() {
|
|
146
|
-
if (this.provider)
|
|
147
|
-
return this.provider.getEnv();
|
|
148
|
-
else
|
|
149
|
-
return this.env;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Listen to events of SRC
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
*
|
|
156
|
-
* SRC.on('checkoutCompleted', function (token) {
|
|
157
|
-
* console.log(token);
|
|
158
|
-
* });
|
|
159
|
-
* // or
|
|
160
|
-
* SRC.on('checkoutCompleted').then(function (token) {
|
|
161
|
-
* console.log(token);
|
|
162
|
-
* });
|
|
163
|
-
* @param {string} eventName - Available event names [EVENT]{@link EVENT}
|
|
164
|
-
* @param {listener} [cb]
|
|
165
|
-
* @return {Promise<any> | void}
|
|
166
|
-
*/
|
|
167
|
-
on(eventName, cb) {
|
|
168
|
-
if (typeof cb === "function")
|
|
169
|
-
return this.eventEmitter.subscribe(eventName, cb);
|
|
170
|
-
return new Promise((resolve) => this.eventEmitter.subscribe(eventName, (res) => resolve(res)));
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Using this method you can hide button
|
|
174
|
-
* @param {boolean} [saveSize=false] - using this param you can save iframe's size (if applicable)
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* SRC.hideButton();
|
|
178
|
-
*/
|
|
179
|
-
hideButton(saveSize) {
|
|
180
|
-
if (this.provider && typeof this.provider.hideButton === 'function')
|
|
181
|
-
this.provider.hideButton(saveSize);
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Using this method you can show the SRC button after using hideButton method
|
|
185
|
-
*
|
|
186
|
-
* @example
|
|
187
|
-
* SRC.showButton();
|
|
188
|
-
*/
|
|
189
|
-
showButton() {
|
|
190
|
-
if (this.provider && typeof this.provider.showButton === 'function')
|
|
191
|
-
this.provider.showButton();
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Using this method you can hide checkout after load and button click
|
|
195
|
-
* @param {boolean} [saveSize=false] - using this param you can save iframe's size (if applicable)
|
|
196
|
-
*
|
|
197
|
-
* @example
|
|
198
|
-
* SRC.hideCheckout();
|
|
199
|
-
*/
|
|
200
|
-
hideCheckout(saveSize) {
|
|
201
|
-
if (this.provider && typeof this.provider.hideCheckout === 'function')
|
|
202
|
-
this.provider.hideCheckout(saveSize);
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Using this method you can show checkout after using hideCheckout method
|
|
206
|
-
*
|
|
207
|
-
* @example
|
|
208
|
-
* SRC.showCheckout()
|
|
209
|
-
*/
|
|
210
|
-
showCheckout() {
|
|
211
|
-
if (this.provider && typeof this.provider.showCheckout === 'function')
|
|
212
|
-
this.provider.showCheckout();
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Using this method you can reload the whole checkout
|
|
216
|
-
*
|
|
217
|
-
* @example
|
|
218
|
-
* SRC.reload()
|
|
219
|
-
*/
|
|
220
|
-
reload() {
|
|
221
|
-
if (this.provider)
|
|
222
|
-
this.provider.reload();
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Use this method for resize checkout iFrame according to content height, if applicable
|
|
226
|
-
*
|
|
227
|
-
* @example
|
|
228
|
-
* SRC.useAutoResize();
|
|
229
|
-
*
|
|
230
|
-
*/
|
|
231
|
-
useAutoResize() {
|
|
232
|
-
this.autoResize = true;
|
|
233
|
-
if (this.provider && typeof this.provider.useAutoResize === 'function')
|
|
234
|
-
this.provider.useAutoResize();
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
export { SRC };
|
|
238
|
-
//# 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,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAA0B,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,GAAG;IAYL,YAAsB,eAAuB,EAAY,eAAuB,EAAY,UAAkB,EAAY,0BAAkC,EAAY,IAAkB;QAApK,oBAAe,GA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ault 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
|