@paydock/client-sdk 1.104.3-beta → 1.105.1
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/.nvmrc +1 -0
- package/README.md +572 -290
- package/api.d.ts +1 -0
- package/api.js +1 -0
- package/bundles/widget.umd.js +9130 -8655
- package/bundles/widget.umd.min.js +1 -2
- package/canvas3ds.d.ts +1 -0
- package/canvas3ds.js +1 -0
- package/checkout-button.d.ts +1 -0
- package/checkout-button.js +1 -0
- package/inicialization-guide.md +7 -0
- package/{bundles/types → lib}/api/api-base.d.ts +1 -2
- package/lib/api/api-base.js +101 -0
- package/lib/api/api-base.js.map +1 -0
- package/{bundles/types → lib}/api/api-charge-internal.d.ts +0 -1
- package/lib/api/api-charge-internal.js +30 -0
- package/lib/api/api-charge-internal.js.map +1 -0
- package/{bundles/types → lib}/api/api-charge.d.ts +0 -1
- package/lib/api/api-charge.js +49 -0
- package/lib/api/api-charge.js.map +1 -0
- package/{bundles/types → lib}/api/api-internal.d.ts +0 -1
- package/lib/api/api-internal.js +13 -0
- package/lib/api/api-internal.js.map +1 -0
- package/{bundles/types → lib}/api/api-service-internal.d.ts +0 -1
- package/lib/api/api-service-internal.js +18 -0
- package/lib/api/api-service-internal.js.map +1 -0
- package/{bundles/types → lib}/api/api.d.ts +1 -2
- package/lib/api/api.js +62 -0
- package/lib/api/api.js.map +1 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +2 -0
- package/lib/api/index.js.map +1 -0
- package/{bundles/types → lib}/canvas-3ds/canvas-3ds.d.ts +1 -2
- package/lib/canvas-3ds/canvas-3ds.js +157 -0
- package/lib/canvas-3ds/canvas-3ds.js.map +1 -0
- package/{bundles/types → lib}/canvas-3ds/index.d.ts +0 -1
- package/lib/canvas-3ds/index.js +2 -0
- package/lib/canvas-3ds/index.js.map +1 -0
- package/{bundles/types → lib}/canvas-3ds/services/gpayments-service.d.ts +0 -1
- package/lib/canvas-3ds/services/gpayments-service.js +181 -0
- package/lib/canvas-3ds/services/gpayments-service.js.map +1 -0
- package/{bundles/types → lib}/canvas-3ds/services/index.d.ts +0 -1
- package/lib/canvas-3ds/services/index.js +2 -0
- package/lib/canvas-3ds/services/index.js.map +1 -0
- package/{bundles/types → lib}/canvas-3ds/services/standalone3ds-service.d.ts +0 -1
- package/lib/canvas-3ds/services/standalone3ds-service.js +32 -0
- package/lib/canvas-3ds/services/standalone3ds-service.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -2
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js +50 -0
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/afterpay/afterpay.runner.d.ts +0 -1
- package/lib/checkout-button/afterpay/afterpay.runner.js +41 -0
- package/lib/checkout-button/afterpay/afterpay.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/checkout-button.d.ts +1 -2
- package/{bundles/types → lib}/checkout-button/checkout-button.interface.d.ts +0 -1
- package/lib/checkout-button/checkout-button.interface.js +45 -0
- package/lib/checkout-button/checkout-button.interface.js.map +1 -0
- package/lib/checkout-button/checkout-button.js +266 -0
- package/lib/checkout-button/checkout-button.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/checkout-contextual-handler.d.ts +0 -1
- package/lib/checkout-button/checkout-contextual-handler.js +75 -0
- package/lib/checkout-button/checkout-contextual-handler.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/index.d.ts +1 -2
- package/lib/checkout-button/index.js +85 -0
- package/lib/checkout-button/index.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -2
- package/lib/checkout-button/paypal/paypal-checkout-button.js +25 -0
- package/lib/checkout-button/paypal/paypal-checkout-button.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/paypal/paypal.runner.d.ts +0 -1
- package/lib/checkout-button/paypal/paypal.runner.js +14 -0
- package/lib/checkout-button/paypal/paypal.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/runner/base.runner.d.ts +3 -4
- package/lib/checkout-button/runner/base.runner.js +13 -0
- package/lib/checkout-button/runner/base.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/runner/contextual.runner.d.ts +1 -2
- package/lib/checkout-button/runner/contextual.runner.js +40 -0
- package/lib/checkout-button/runner/contextual.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/runner/index.d.ts +0 -1
- package/lib/checkout-button/runner/index.js +11 -0
- package/lib/checkout-button/runner/index.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/runner/popup.runner.d.ts +1 -2
- package/lib/checkout-button/runner/popup.runner.js +68 -0
- package/lib/checkout-button/runner/popup.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/runner/redirect.runner.d.ts +1 -2
- package/lib/checkout-button/runner/redirect.runner.js +15 -0
- package/lib/checkout-button/runner/redirect.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -2
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +64 -0
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +1 -2
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +78 -0
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +1 -2
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +49 -0
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.config.d.ts +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.config.js +4 -0
- package/lib/checkout-button/zipmoney/zipmoney.config.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.runner.d.ts +1 -2
- package/lib/checkout-button/zipmoney/zipmoney.runner.js +23 -0
- package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.types.d.ts +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js +1 -0
- package/lib/checkout-button/zipmoney/zipmoney.types.js.map +1 -0
- package/{bundles/types → lib}/components/ability-guard.d.ts +0 -1
- package/lib/components/ability-guard.js +44 -0
- package/lib/components/ability-guard.js.map +1 -0
- package/{bundles/types → lib}/components/background.d.ts +0 -1
- package/lib/components/background.js +193 -0
- package/lib/components/background.js.map +1 -0
- package/{bundles/types → lib}/components/container.d.ts +1 -1
- package/lib/components/container.js +63 -0
- package/lib/components/container.js.map +1 -0
- package/{bundles/types → lib}/components/dispatcher.d.ts +1 -2
- package/lib/components/dispatcher.js +39 -0
- package/lib/components/dispatcher.js.map +1 -0
- package/{bundles/types → lib}/components/element-style.d.ts +1 -2
- package/lib/components/element-style.js +52 -0
- package/lib/components/element-style.js.map +1 -0
- package/{bundles/types → lib}/components/flypay-iframe-event.d.ts +0 -1
- package/lib/components/flypay-iframe-event.js +28 -0
- package/lib/components/flypay-iframe-event.js.map +1 -0
- package/{bundles/types/components/form-interceptor.d.ts → lib/components/form-Interceptor.d.ts} +0 -1
- package/lib/components/form-Interceptor.js +38 -0
- package/lib/components/form-Interceptor.js.map +1 -0
- package/{bundles/types → lib}/components/http-core.d.ts +0 -1
- package/lib/components/http-core.js +57 -0
- package/lib/components/http-core.js.map +1 -0
- package/{bundles/types → lib}/components/iframe-event.d.ts +15 -13
- package/lib/components/iframe-event.js +75 -0
- package/lib/components/iframe-event.js.map +1 -0
- package/{bundles/types → lib}/components/iframe.d.ts +0 -1
- package/lib/components/iframe.js +62 -0
- package/lib/components/iframe.js.map +1 -0
- package/{bundles/types → lib}/components/link.d.ts +1 -2
- package/lib/components/link.js +59 -0
- package/lib/components/link.js.map +1 -0
- package/{bundles/types → lib}/components/loader.d.ts +0 -1
- package/lib/components/loader.js +234 -0
- package/lib/components/loader.js.map +1 -0
- package/{bundles/types → lib}/components/param.d.ts +9 -12
- package/lib/components/param.js +147 -0
- package/lib/components/param.js.map +1 -0
- package/{bundles/types → lib}/components/popup.d.ts +0 -1
- package/lib/components/popup.js +104 -0
- package/lib/components/popup.js.map +1 -0
- package/{bundles/types → lib}/components/storage-dispatcher.d.ts +0 -1
- package/lib/components/storage-dispatcher.js +75 -0
- package/lib/components/storage-dispatcher.js.map +1 -0
- package/{bundles/types → lib}/components/trigger.d.ts +0 -1
- package/lib/components/trigger.js +49 -0
- package/lib/components/trigger.js.map +1 -0
- package/{bundles/types → lib}/components/vault-display-iframe-event.d.ts +0 -1
- package/lib/components/vault-display-iframe-event.js +27 -0
- package/lib/components/vault-display-iframe-event.js.map +1 -0
- package/{bundles/types → lib}/components/wallet-background.d.ts +2 -2
- package/lib/components/wallet-background.js +63 -0
- package/lib/components/wallet-background.js.map +1 -0
- package/{bundles/types → lib}/components/wallet-trigger.d.ts +0 -1
- package/lib/components/wallet-trigger.js +27 -0
- package/lib/components/wallet-trigger.js.map +1 -0
- package/{bundles/types/configs/env/environment.paydock.d.ts → lib/configs/env/env.d.ts} +8 -5
- package/lib/configs/env/env.js +117 -0
- package/lib/configs/env/env.js.map +1 -0
- package/{bundles/types → lib}/configs/sdk.d.ts +2 -3
- package/lib/configs/sdk.js +16 -0
- package/lib/configs/sdk.js.map +1 -0
- package/lib/constants/validators.d.ts +44 -0
- package/lib/constants/validators.js +42 -0
- package/lib/constants/validators.js.map +1 -0
- package/{bundles/types → lib}/external-checkout/builder.d.ts +0 -1
- package/lib/external-checkout/builder.js +45 -0
- package/lib/external-checkout/builder.js.map +1 -0
- package/{bundles/types → lib}/external-checkout/checker.d.ts +0 -1
- package/lib/external-checkout/checker.js +22 -0
- package/lib/external-checkout/checker.js.map +1 -0
- package/lib/external-checkout/index.d.ts +2 -0
- package/lib/external-checkout/index.js +3 -0
- package/lib/external-checkout/index.js.map +1 -0
- package/{bundles/types → lib}/helper/access-token.d.ts +0 -1
- package/lib/helper/access-token.js +44 -0
- package/lib/helper/access-token.js.map +1 -0
- package/{bundles/types → lib}/helper/browser.d.ts +0 -1
- package/lib/helper/browser.js +79 -0
- package/lib/helper/browser.js.map +1 -0
- package/{bundles/types → lib}/helper/event-emitter.d.ts +0 -1
- package/lib/helper/event-emitter.js +23 -0
- package/lib/helper/event-emitter.js.map +1 -0
- package/{bundles/types → lib}/helper/event.d.ts +0 -1
- package/lib/helper/event.js +23 -0
- package/lib/helper/event.js.map +1 -0
- package/{bundles/types → lib}/helper/ms.d.ts +0 -1
- package/lib/helper/ms.js +32 -0
- package/lib/helper/ms.js.map +1 -0
- package/{bundles/types → lib}/helper/object.d.ts +0 -1
- package/lib/helper/object.js +6 -0
- package/lib/helper/object.js.map +1 -0
- package/{bundles/types → lib}/helper/url.d.ts +0 -1
- package/lib/helper/url.js +11 -0
- package/lib/helper/url.js.map +1 -0
- package/{bundles/types → lib}/helper/uuid.d.ts +0 -1
- package/lib/helper/uuid.js +26 -0
- package/lib/helper/uuid.js.map +1 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/{bundles/types → lib}/payment-source/builder.d.ts +0 -1
- package/lib/payment-source/builder.js +49 -0
- package/lib/payment-source/builder.js.map +1 -0
- package/{bundles/types → lib}/payment-source/index.d.ts +0 -1
- package/lib/payment-source/index.js +2 -0
- package/lib/payment-source/index.js.map +1 -0
- package/{bundles/types → lib}/payment-source-widget/html-payment-source-widget.d.ts +17 -14
- package/lib/payment-source-widget/html-payment-source-widget.js +172 -0
- package/lib/payment-source-widget/html-payment-source-widget.js.map +1 -0
- package/{bundles/types → lib}/payment-source-widget/index.d.ts +0 -1
- package/lib/payment-source-widget/index.js +35 -0
- package/lib/payment-source-widget/index.js.map +1 -0
- package/{bundles/types → lib}/payment-source-widget/interfaces.d.ts +0 -1
- package/lib/payment-source-widget/interfaces.js +2 -0
- package/lib/payment-source-widget/interfaces.js.map +1 -0
- package/{bundles/types → lib}/payment-source-widget/payment-source-widget.d.ts +1 -2
- package/lib/payment-source-widget/payment-source-widget.js +142 -0
- package/lib/payment-source-widget/payment-source-widget.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/index.d.ts +0 -1
- package/lib/secure-remote-commerce/index.js +2 -0
- package/lib/secure-remote-commerce/index.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/interfaces.d.ts +5 -6
- package/lib/secure-remote-commerce/interfaces.js +28 -0
- package/lib/secure-remote-commerce/interfaces.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/providers/src-provider.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js +1 -0
- package/lib/secure-remote-commerce/providers/src-provider.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/helper.js +36 -0
- package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/index.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.js +2 -0
- package/lib/secure-remote-commerce/providers/visa-src/index.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/visa-src.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +113 -0
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +10 -0
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/secure-remote-commerce.d.ts +1 -2
- package/lib/secure-remote-commerce/secure-remote-commerce.js +239 -0
- package/lib/secure-remote-commerce/secure-remote-commerce.js.map +1 -0
- package/{bundles/types → lib}/vault-display-widget/index.d.ts +0 -1
- package/lib/vault-display-widget/index.js +14 -0
- package/lib/vault-display-widget/index.js.map +1 -0
- package/{bundles/types → lib}/vault-display-widget/vault-display-widget.d.ts +1 -2
- package/lib/vault-display-widget/vault-display-widget.js +99 -0
- package/lib/vault-display-widget/vault-display-widget.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/afterpay.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/afterpay.wallet-service.js +152 -0
- package/lib/wallet-buttons/afterpay.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/apple.wallet-service.d.ts +2 -1
- package/lib/wallet-buttons/apple.wallet-service.js +324 -0
- package/lib/wallet-buttons/apple.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/flypay-v2.wallet-service.d.ts +9 -2
- package/lib/wallet-buttons/flypay-v2.wallet-service.js +165 -0
- package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/flypay.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/flypay.wallet-service.js +117 -0
- package/lib/wallet-buttons/flypay.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/google.wallet-service.d.ts +3 -1
- package/lib/wallet-buttons/google.wallet-service.js +301 -0
- package/lib/wallet-buttons/google.wallet-service.js.map +1 -0
- package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +3 -0
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js +151 -0
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +1 -0
- package/lib/wallet-buttons/index.d.ts +127 -0
- package/lib/wallet-buttons/index.js +128 -0
- package/lib/wallet-buttons/index.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/interfaces.d.ts +3 -1
- package/lib/wallet-buttons/interfaces.js +1 -0
- package/lib/wallet-buttons/interfaces.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/mastercard.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/mastercard.wallet-service.js +27 -0
- package/lib/wallet-buttons/mastercard.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/paypal.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/paypal.wallet-service.js +144 -0
- package/lib/wallet-buttons/paypal.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/stripe.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/stripe.wallet-service.js +100 -0
- package/lib/wallet-buttons/stripe.wallet-service.js.map +1 -0
- package/{bundles/types/wallet-buttons/wallet-cba-buttons.d.ts → lib/wallet-buttons/wallet-buttons.d.ts} +92 -115
- package/lib/wallet-buttons/wallet-buttons.js +479 -0
- package/lib/wallet-buttons/wallet-buttons.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/wallet-service.d.ts +7 -1
- package/lib/wallet-buttons/wallet-service.js +60 -0
- package/lib/wallet-buttons/wallet-service.js.map +1 -0
- package/{bundles/types → lib}/widget/configuration.d.ts +2 -3
- package/lib/widget/configuration.js +260 -0
- package/lib/widget/configuration.js.map +1 -0
- package/lib/widget/html-multi-widget.d.ts +336 -0
- package/lib/widget/html-multi-widget.js +422 -0
- package/lib/widget/html-multi-widget.js.map +1 -0
- package/{bundles/types → lib}/widget/html-widget.d.ts +1 -2
- package/lib/widget/html-widget.js +127 -0
- package/lib/widget/html-widget.js.map +1 -0
- package/{bundles/types → lib}/widget/index.d.ts +1 -2
- package/lib/widget/index.js +132 -0
- package/lib/widget/index.js.map +1 -0
- package/{bundles/types → lib}/widget/meta.d.ts +0 -1
- package/lib/widget/meta.js +8 -0
- package/lib/widget/meta.js.map +1 -0
- package/{bundles/types → lib}/widget/multi-widget.d.ts +1 -2
- package/lib/widget/multi-widget.js +437 -0
- package/lib/widget/multi-widget.js.map +1 -0
- package/{bundles/types → lib}/widget/style.d.ts +0 -1
- package/lib/widget/style.js +204 -0
- package/lib/widget/style.js.map +1 -0
- package/package.json +42 -164
- package/payment-source-widget.d.ts +1 -0
- package/payment-source-widget.js +1 -0
- package/slate.md +136 -107
- package/tslint.json +129 -0
- package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +43 -0
- package/typings/globals/jasmine/index.d.ts +576 -0
- package/typings/globals/jasmine-ajax/index.d.ts +83 -0
- package/typings/globals/jquery/index.d.ts +3759 -0
- package/typings/index.d.ts +4 -0
- package/vault-display-widget.d.ts +1 -0
- package/vault-display-widget.js +1 -0
- package/vendors/zipmoney.d.ts +18 -0
- package/vendors/zipmoney.js +2 -0
- package/widget.d.ts +1 -0
- package/widget.js +1 -0
- package/bundles/index.cjs +0 -10674
- package/bundles/index.cjs.d.ts +0 -3163
- package/bundles/index.cjs.map +0 -1
- package/bundles/index.mjs +0 -10642
- package/bundles/index.mjs.d.ts +0 -3163
- package/bundles/index.mjs.map +0 -1
- package/bundles/types/api/api-base.d.ts.map +0 -1
- package/bundles/types/api/api-charge-internal.d.ts.map +0 -1
- package/bundles/types/api/api-charge.d.ts.map +0 -1
- package/bundles/types/api/api-internal.d.ts.map +0 -1
- package/bundles/types/api/api-service-internal.d.ts.map +0 -1
- package/bundles/types/api/api.d.ts.map +0 -1
- package/bundles/types/api/index.d.ts +0 -2
- package/bundles/types/api/index.d.ts.map +0 -1
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +0 -1
- package/bundles/types/canvas-3ds/index.d.ts.map +0 -1
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +0 -1
- package/bundles/types/canvas-3ds/services/index.d.ts.map +0 -1
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +0 -1
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +0 -1
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/checkout-button.d.ts.map +0 -1
- package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +0 -1
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +0 -1
- package/bundles/types/checkout-button/index.d.ts.map +0 -1
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +0 -1
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/runner/base.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/runner/index.d.ts.map +0 -1
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/index.d.ts +0 -4
- package/bundles/types/checkout-button/zipmoney/index.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +0 -1
- package/bundles/types/components/ability-guard.d.ts.map +0 -1
- package/bundles/types/components/background.d.ts.map +0 -1
- package/bundles/types/components/container.d.ts.map +0 -1
- package/bundles/types/components/dispatcher.d.ts.map +0 -1
- package/bundles/types/components/element-style.d.ts.map +0 -1
- package/bundles/types/components/flypay-iframe-event.d.ts.map +0 -1
- package/bundles/types/components/form-interceptor.d.ts.map +0 -1
- package/bundles/types/components/http-core.d.ts.map +0 -1
- package/bundles/types/components/iframe-event.d.ts.map +0 -1
- package/bundles/types/components/iframe.d.ts.map +0 -1
- package/bundles/types/components/link.d.ts.map +0 -1
- package/bundles/types/components/loader.d.ts.map +0 -1
- package/bundles/types/components/param.d.ts.map +0 -1
- package/bundles/types/components/popup.d.ts.map +0 -1
- package/bundles/types/components/storage-dispatcher.d.ts.map +0 -1
- package/bundles/types/components/trigger.d.ts.map +0 -1
- package/bundles/types/components/vault-display-iframe-event.d.ts.map +0 -1
- package/bundles/types/components/wallet-background.d.ts.map +0 -1
- package/bundles/types/components/wallet-trigger.d.ts.map +0 -1
- package/bundles/types/configs/env/environment.cba.d.ts +0 -29
- package/bundles/types/configs/env/environment.cba.d.ts.map +0 -1
- package/bundles/types/configs/env/environment.interface.d.ts +0 -12
- package/bundles/types/configs/env/environment.interface.d.ts.map +0 -1
- package/bundles/types/configs/env/environment.paydock.d.ts.map +0 -1
- package/bundles/types/configs/env/index.d.ts +0 -3
- package/bundles/types/configs/env/index.d.ts.map +0 -1
- package/bundles/types/configs/sdk.d.ts.map +0 -1
- package/bundles/types/external-checkout/builder.d.ts.map +0 -1
- package/bundles/types/external-checkout/checker.d.ts.map +0 -1
- package/bundles/types/external-checkout/index.d.ts +0 -3
- package/bundles/types/external-checkout/index.d.ts.map +0 -1
- package/bundles/types/helper/access-token.d.ts.map +0 -1
- package/bundles/types/helper/browser.d.ts.map +0 -1
- package/bundles/types/helper/event-emitter.d.ts.map +0 -1
- package/bundles/types/helper/event.d.ts.map +0 -1
- package/bundles/types/helper/ms.d.ts.map +0 -1
- package/bundles/types/helper/object.d.ts.map +0 -1
- package/bundles/types/helper/url.d.ts.map +0 -1
- package/bundles/types/helper/uuid.d.ts.map +0 -1
- package/bundles/types/index-cba.d.ts +0 -13
- package/bundles/types/index-cba.d.ts.map +0 -1
- package/bundles/types/index.d.ts +0 -14
- package/bundles/types/index.d.ts.map +0 -1
- package/bundles/types/payment-source/builder.d.ts.map +0 -1
- package/bundles/types/payment-source/index.d.ts.map +0 -1
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +0 -1
- package/bundles/types/payment-source-widget/index.d.ts.map +0 -1
- package/bundles/types/payment-source-widget/interfaces.d.ts.map +0 -1
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/index.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +0 -1
- package/bundles/types/vault-display-widget/index.d.ts.map +0 -1
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/index-cba.d.ts +0 -2
- package/bundles/types/wallet-buttons/index-cba.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/index.d.ts +0 -2
- package/bundles/types/wallet-buttons/index.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +0 -366
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/wallet-service.d.ts.map +0 -1
- package/bundles/types/widget/configuration.d.ts.map +0 -1
- package/bundles/types/widget/html-multi-widget.d.ts +0 -266
- package/bundles/types/widget/html-multi-widget.d.ts.map +0 -1
- package/bundles/types/widget/html-widget.d.ts.map +0 -1
- package/bundles/types/widget/index.d.ts.map +0 -1
- package/bundles/types/widget/meta.d.ts.map +0 -1
- package/bundles/types/widget/multi-widget.d.ts.map +0 -1
- package/bundles/types/widget/style.d.ts.map +0 -1
- package/bundles/widget.umd.js.d.ts +0 -3163
- package/bundles/widget.umd.js.map +0 -1
- package/bundles/widget.umd.js.min.d.ts +0 -3163
- package/bundles/widget.umd.min.js.map +0 -1
- package/docs/api-canvas3ds.md +0 -158
- package/docs/api-checkout-button.md +0 -912
- package/docs/api-examples.md +0 -65
- package/docs/api-ps-widget.md +0 -585
- package/docs/api-vault-display.md +0 -94
- package/docs/api-widget.md +0 -2444
- package/docs/api-wrapper.md +0 -78
- package/docs/canvas3ds-examples.md +0 -242
- package/docs/cba-header.md +0 -13
- package/docs/cba-license.md +0 -2
- package/docs/checkout-examples.md +0 -248
- package/docs/header.md +0 -15
- package/docs/html/layout.html +0 -78
- package/docs/html/marked.js +0 -23
- package/docs/html/style.css +0 -365
- package/docs/install/npm.content.md +0 -16
- package/docs/install/npm.example.md +0 -24
- package/docs/install/umd.content.md +0 -20
- package/docs/install/umd.example.md +0 -6
- package/docs/install.md +0 -43
- package/docs/install.readme.t.md +0 -17
- package/docs/install.slate.t.md +0 -17
- package/docs/license.md +0 -2
- package/docs/partials/header.hbs +0 -3
- package/docs/ps-examples.md +0 -129
- package/docs/secure-remote-commerce-examples.md +0 -258
- package/docs/secure-remote-commerce.md +0 -265
- package/docs/vault-display-example.md +0 -132
- package/docs/wallet-buttons-examples.md +0 -580
- package/docs/wallet-buttons.md +0 -424
- package/docs/wallet-cba-buttons-examples.md +0 -388
- package/docs/widget-examples.md +0 -134
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
export const PAYMENT_SOURCE_TYPE = {
|
|
2
|
+
CARD: 'card',
|
|
3
|
+
BANK_ACCOUNT: 'bank_account',
|
|
4
|
+
CHECKOUT: 'checkout',
|
|
5
|
+
};
|
|
6
|
+
export const FORM_FIELD = {
|
|
7
|
+
CARD_NAME: 'card_name',
|
|
8
|
+
CARD_NUMBER: 'card_number',
|
|
9
|
+
EXPIRE_MONTH: 'expire_month',
|
|
10
|
+
EXPIRE_YEAR: 'expire_year',
|
|
11
|
+
CARD_CCV: 'card_ccv',
|
|
12
|
+
CARD_PIN: 'card_pin',
|
|
13
|
+
ACCOUNT_NAME: 'account_name',
|
|
14
|
+
ACCOUNT_BSB: 'account_bsb',
|
|
15
|
+
ACCOUNT_NUMBER: 'account_number',
|
|
16
|
+
ACCOUNT_ROUTING: 'account_routing',
|
|
17
|
+
ACCOUNT_HOLDER_TYPE: 'account_holder_type',
|
|
18
|
+
ACCOUNT_BANK_NAME: 'account_bank_name',
|
|
19
|
+
ACCOUNT_TYPE: 'account_type',
|
|
20
|
+
FIRST_NAME: 'first_name',
|
|
21
|
+
LAST_NAME: 'last_name',
|
|
22
|
+
EMAIL: 'email',
|
|
23
|
+
PHONE: 'phone',
|
|
24
|
+
PHONE2: 'phone2',
|
|
25
|
+
ADDRESS_LINE1: 'address_line1',
|
|
26
|
+
ADDRESS_LINE2: 'address_line2',
|
|
27
|
+
ADDRESS_STATE: 'address_state',
|
|
28
|
+
ADDRESS_COUNTRY: 'address_country',
|
|
29
|
+
ADDRESS_CITY: 'address_city',
|
|
30
|
+
ADDRESS_POSTCODE: 'address_postcode',
|
|
31
|
+
ADDRESS_COMPANY: 'address_company',
|
|
32
|
+
};
|
|
33
|
+
export const STYLE = {
|
|
34
|
+
BACKGROUND_COLOR: 'background_color',
|
|
35
|
+
BACKGROUND_ACTIVE_COLOR: 'background_active_color',
|
|
36
|
+
TEXT_COLOR: 'text_color',
|
|
37
|
+
BORDER_COLOR: 'border_color',
|
|
38
|
+
ICON_SIZE: 'icon_size',
|
|
39
|
+
BUTTON_COLOR: 'button_color',
|
|
40
|
+
ERROR_COLOR: 'error_color',
|
|
41
|
+
SUCCESS_COLOR: 'success_color',
|
|
42
|
+
FONT_SIZE: 'font_size',
|
|
43
|
+
FONT_FAMILY: 'font_family',
|
|
44
|
+
};
|
|
45
|
+
export const VAULT_DISPLAY_STYLE = {
|
|
46
|
+
BACKGROUND_COLOR: 'background_color',
|
|
47
|
+
TEXT_COLOR: 'text_color',
|
|
48
|
+
BORDER_COLOR: 'border_color',
|
|
49
|
+
BUTTON_COLOR: 'button_color',
|
|
50
|
+
FONT_SIZE: 'font_size',
|
|
51
|
+
FONT_FAMILY: 'font_family',
|
|
52
|
+
};
|
|
53
|
+
export const TEXT = {
|
|
54
|
+
TITLE: 'title',
|
|
55
|
+
TITLE_H1: 'title_h1',
|
|
56
|
+
TITLE_H2: 'title_h2',
|
|
57
|
+
TITLE_H3: 'title_h3',
|
|
58
|
+
TITLE_H4: 'title_h4',
|
|
59
|
+
TITLE_H5: 'title_h5',
|
|
60
|
+
TITLE_H6: 'title_h6',
|
|
61
|
+
FINISH: 'finish_text',
|
|
62
|
+
TITLE_DESCRIPTION: 'title_description',
|
|
63
|
+
SUBMIT_BUTTON: 'submit_button',
|
|
64
|
+
SUBMIT_BUTTON_PROCESSING: 'submit_button_processing',
|
|
65
|
+
};
|
|
66
|
+
export const ELEMENT = {
|
|
67
|
+
SUBMIT_BUTTON: 'submit_button',
|
|
68
|
+
TABS: 'tabs',
|
|
69
|
+
};
|
|
70
|
+
export const SUPPORTED_CARD_TYPES = {
|
|
71
|
+
AMEX: 'amex',
|
|
72
|
+
AUSBC: 'ausbc',
|
|
73
|
+
DINERS: 'diners',
|
|
74
|
+
DISCOVER: 'discover',
|
|
75
|
+
JAPCB: 'japcb',
|
|
76
|
+
LASER: 'laser',
|
|
77
|
+
MASTERCARD: 'mastercard',
|
|
78
|
+
SOLO: 'solo',
|
|
79
|
+
VISA: 'visa',
|
|
80
|
+
VISA_WHITE: 'visa_white',
|
|
81
|
+
};
|
|
82
|
+
export const SUPPORTED_CHECKOUT_META_COLLECTION = [].concat([
|
|
83
|
+
'brand_name',
|
|
84
|
+
'cart_border_color',
|
|
85
|
+
'reference',
|
|
86
|
+
'email',
|
|
87
|
+
'hdr_img',
|
|
88
|
+
'logo_img',
|
|
89
|
+
'pay_flow_color',
|
|
90
|
+
'first_name',
|
|
91
|
+
'last_name',
|
|
92
|
+
'address_line',
|
|
93
|
+
'address_line2',
|
|
94
|
+
'address_city',
|
|
95
|
+
'address_state',
|
|
96
|
+
'address_postcode',
|
|
97
|
+
'address_country',
|
|
98
|
+
'phone',
|
|
99
|
+
'hide_shipping_address',
|
|
100
|
+
], [
|
|
101
|
+
'first_name',
|
|
102
|
+
'last_name',
|
|
103
|
+
'phone',
|
|
104
|
+
'tokenize',
|
|
105
|
+
'email',
|
|
106
|
+
'gender',
|
|
107
|
+
'date_of_birth',
|
|
108
|
+
'charge',
|
|
109
|
+
'statistics',
|
|
110
|
+
'hide_shipping_address',
|
|
111
|
+
], [
|
|
112
|
+
'amount',
|
|
113
|
+
'currency',
|
|
114
|
+
'email',
|
|
115
|
+
'first_name',
|
|
116
|
+
'last_name',
|
|
117
|
+
'address_line',
|
|
118
|
+
'address_line2',
|
|
119
|
+
'address_city',
|
|
120
|
+
'address_state',
|
|
121
|
+
'address_postcode',
|
|
122
|
+
'address_country',
|
|
123
|
+
'phone',
|
|
124
|
+
], [
|
|
125
|
+
'customer_storage_number',
|
|
126
|
+
'tokenise_algorithm',
|
|
127
|
+
]);
|
|
128
|
+
export var WALLET_GATEWAY;
|
|
129
|
+
(function (WALLET_GATEWAY) {
|
|
130
|
+
WALLET_GATEWAY["STRIPE"] = "Stripe";
|
|
131
|
+
WALLET_GATEWAY["FLYPAY"] = "Flypay";
|
|
132
|
+
WALLET_GATEWAY["FLYPAY_V2"] = "FlypayV2";
|
|
133
|
+
WALLET_GATEWAY["PAYPAL"] = "Paypal";
|
|
134
|
+
WALLET_GATEWAY["MASTERCARD"] = "MasterCard";
|
|
135
|
+
WALLET_GATEWAY["AFTERPAY"] = "Afterpay";
|
|
136
|
+
})(WALLET_GATEWAY || (WALLET_GATEWAY = {}));
|
|
137
|
+
;
|
|
138
|
+
export var WALLET_TYPE;
|
|
139
|
+
(function (WALLET_TYPE) {
|
|
140
|
+
WALLET_TYPE["GOOGLE"] = "google";
|
|
141
|
+
WALLET_TYPE["APPLE"] = "apple";
|
|
142
|
+
WALLET_TYPE["FLYPAY"] = "flypay";
|
|
143
|
+
WALLET_TYPE["FLYPAY_V2"] = "flypayV2";
|
|
144
|
+
WALLET_TYPE["PAYPAL"] = "paypal";
|
|
145
|
+
WALLET_TYPE["AFTERPAY"] = "afterpay";
|
|
146
|
+
})(WALLET_TYPE || (WALLET_TYPE = {}));
|
|
147
|
+
//# sourceMappingURL=../../src/lib/components/param.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"param.js","sourceRoot":"","sources":["../../components/param.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAA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
+
import { TEMPLATE as LOADER_TEMPLATE, EXTRA_TEMPLATE as LOADER_EXTRA_TEMPLATE, STYLE as LOADER_STYLE, EXTRA_STYLE as LOADER_EXTRA_STYLE, } from "./loader";
|
|
3
|
+
import { Event } from "../helper/event";
|
|
4
|
+
import { ENV } from "../configs/env/env";
|
|
5
|
+
import { Browser } from "../helper/browser";
|
|
6
|
+
const EVENT_CLOSE = 'close';
|
|
7
|
+
const ERROR_STYLES = `<style>
|
|
8
|
+
.error-wrapper {
|
|
9
|
+
color: #ff0000;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
15
|
+
</style>`;
|
|
16
|
+
const ERROR_TEMPLATE = `<div class="error-wrapper"><div>{{error}}</div></div>`;
|
|
17
|
+
export class Popup {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.configs = {
|
|
20
|
+
width: 500,
|
|
21
|
+
height: 500,
|
|
22
|
+
scrollbars: true,
|
|
23
|
+
resizable: true,
|
|
24
|
+
top: 0,
|
|
25
|
+
left: 0,
|
|
26
|
+
};
|
|
27
|
+
this.eventEmitter = new EventEmitter();
|
|
28
|
+
}
|
|
29
|
+
isExist() {
|
|
30
|
+
return !!(this.getElement() && !this.getElement().closed);
|
|
31
|
+
}
|
|
32
|
+
getElement() {
|
|
33
|
+
return this.window;
|
|
34
|
+
}
|
|
35
|
+
init() {
|
|
36
|
+
if (!Browser.isSupportPopUp())
|
|
37
|
+
return this.window = window;
|
|
38
|
+
let configs = this.getConfigs();
|
|
39
|
+
this.window = window.open('about:blank', '_blank', `noopener=false,width=${configs.width},height=${configs.height},top=${configs.top},left=${configs.left},scrollbars=${configs.scrollbars ? 'yes' : 'no'},resizable=${configs.resizable ? 'yes' : 'no'}`);
|
|
40
|
+
this.showLoader();
|
|
41
|
+
let timer = setInterval(() => {
|
|
42
|
+
if (!this.isExist()) {
|
|
43
|
+
clearInterval(timer);
|
|
44
|
+
this.eventEmitter.emit(EVENT_CLOSE, {});
|
|
45
|
+
}
|
|
46
|
+
}, 200);
|
|
47
|
+
}
|
|
48
|
+
redirect(url) {
|
|
49
|
+
if (!this.isExist())
|
|
50
|
+
return;
|
|
51
|
+
this.window.location.href = url;
|
|
52
|
+
}
|
|
53
|
+
close() {
|
|
54
|
+
if (!this.isExist() || !this.getElement().close)
|
|
55
|
+
return;
|
|
56
|
+
this.getElement().close();
|
|
57
|
+
this.window = null;
|
|
58
|
+
}
|
|
59
|
+
focus() {
|
|
60
|
+
if (!this.isExist() || !this.getElement().focus)
|
|
61
|
+
return;
|
|
62
|
+
this.getElement().focus();
|
|
63
|
+
}
|
|
64
|
+
setConfigs(configs) {
|
|
65
|
+
this.configs = Object.assign(this.configs, configs);
|
|
66
|
+
}
|
|
67
|
+
getNetConfigs() {
|
|
68
|
+
return Object.assign({}, this.configs);
|
|
69
|
+
}
|
|
70
|
+
getConfigs() {
|
|
71
|
+
let configs = this.getNetConfigs();
|
|
72
|
+
configs.left = window.screenX + (window.screen.width / 2 - configs.width / 2);
|
|
73
|
+
configs.top = window.screenY + (window.screen.height / 2 - configs.height / 2);
|
|
74
|
+
return configs;
|
|
75
|
+
}
|
|
76
|
+
onClose(cb) {
|
|
77
|
+
this.eventEmitter.subscribe(EVENT_CLOSE, cb);
|
|
78
|
+
}
|
|
79
|
+
initError(error) {
|
|
80
|
+
this.getElement().document.write(".");
|
|
81
|
+
let body = this.getElement().document.body || this.getElement().document.getElementsByTagName('body')[0];
|
|
82
|
+
body.innerHTML = ERROR_STYLES + ERROR_TEMPLATE.replace('{{error}}', error);
|
|
83
|
+
}
|
|
84
|
+
showLoader() {
|
|
85
|
+
this.getElement().document.write(".");
|
|
86
|
+
let body = this.getElement().document.body || this.getElement().document.getElementsByTagName('body')[0];
|
|
87
|
+
body.innerHTML = LOADER_STYLE + LOADER_TEMPLATE;
|
|
88
|
+
if (this.env !== ENV.STAGING || this.env !== ENV.STAGING_1 || this.env !== ENV.STAGING_2 || this.env !== ENV.STAGING_3 || this.env !== ENV.STAGING_4 || this.env !== ENV.STAGING_5 ||
|
|
89
|
+
this.env !== ENV.STAGING_6 || this.env !== ENV.STAGING_7 || this.env !== ENV.STAGING_8 || this.env !== ENV.STAGING_9 || this.env !== ENV.STAGING_10 ||
|
|
90
|
+
this.env !== ENV.STAGING_11 || this.env !== ENV.STAGING_12 || this.env !== ENV.STAGING_13 || this.env !== ENV.STAGING_14 || this.env !== ENV.STAGING_15)
|
|
91
|
+
return;
|
|
92
|
+
let clickCount = 0;
|
|
93
|
+
Event.subscribe('click', body, () => {
|
|
94
|
+
clickCount++;
|
|
95
|
+
if (clickCount !== 5)
|
|
96
|
+
return;
|
|
97
|
+
body.innerHTML = LOADER_EXTRA_STYLE + LOADER_EXTRA_TEMPLATE;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
setEnv(env) {
|
|
101
|
+
this.env = env;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=../../src/lib/components/popup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popup.js","sourceRoot":"","sources":["../../components/popup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACH,QAAQ,IAAI,eAAe,EAAE,cAAc,IAAI,qBAAqB,EAAE,KAAK,IAAI,YAAY,EAC3F,WAAW,IAAI,kBAAkB,GACpC,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAC,GAAG,EAAC,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,GAAG,OAAO,CAAC;AAE5B,MAAM,YAAY,GAAG;;;;;;;;iBAQJ,CAAC;AAElB,MAAM,cAAc,GAAG,uDAAuD,CAAC;AAa/E,MAAM,OAAO,KA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S,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,SAAS,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU;YACnJ,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU;YACvJ,OAAO;QAEX,IAAI,UAAU,GAAG,CAAC,CAAC;QACnB,KAAK,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE;YAChC,UAAU,EAAG,CAAA;YACb,IAAI,UAAU,KAAK,CAAC;gBAChB,OAAO;YAEX,IAAI,CAAC,SAAS,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;QAChE,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,MAAM,CAAC,GAAW;QACrB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;CACJ"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Env, WIDGET_URL } from '../configs/env/env';
|
|
2
|
+
import { Uuid } from '../helper/uuid';
|
|
3
|
+
import { EVENT, IFrameEvent } from './iframe-event';
|
|
4
|
+
const STORAGE_DISPATCHER_URI = '/storage-dispatcher';
|
|
5
|
+
const STORAGE_DISPATCHER_ID = 'pd-storage-dispatcher';
|
|
6
|
+
const LOG_PREFIX = '[Paydock:StorageDispatcher]';
|
|
7
|
+
export var StorageDataIntent;
|
|
8
|
+
(function (StorageDataIntent) {
|
|
9
|
+
StorageDataIntent["WIDGET_SESSION"] = "widget-session";
|
|
10
|
+
})(StorageDataIntent || (StorageDataIntent = {}));
|
|
11
|
+
export class StorageDispatcher {
|
|
12
|
+
constructor(messageSource) {
|
|
13
|
+
this.messageSource = messageSource;
|
|
14
|
+
this.defaultPayload = {
|
|
15
|
+
destination: 'widget.paydock',
|
|
16
|
+
};
|
|
17
|
+
this.env = new Env(WIDGET_URL);
|
|
18
|
+
this.defaultPayload.source = messageSource;
|
|
19
|
+
this.iframeEvent = new IFrameEvent(window);
|
|
20
|
+
}
|
|
21
|
+
create(onLoadCallback) {
|
|
22
|
+
this.onLoadCallback = onLoadCallback;
|
|
23
|
+
if (this.dispatcherFrame)
|
|
24
|
+
this.destroy();
|
|
25
|
+
this.widgetId = Uuid.generate();
|
|
26
|
+
this.setupIframeEventListeners();
|
|
27
|
+
const iFrame = document.createElement('iframe');
|
|
28
|
+
iFrame.setAttribute('src', this.env.getConf().url + STORAGE_DISPATCHER_URI + `?widgetId=${this.widgetId}`);
|
|
29
|
+
iFrame.setAttribute('id', STORAGE_DISPATCHER_ID);
|
|
30
|
+
iFrame.style.display = 'none';
|
|
31
|
+
document.body.appendChild(iFrame);
|
|
32
|
+
this.dispatcherFrame = iFrame;
|
|
33
|
+
console.info(`${LOG_PREFIX} initialized.`);
|
|
34
|
+
return iFrame;
|
|
35
|
+
}
|
|
36
|
+
destroy() {
|
|
37
|
+
if (this.dispatcherFrame && this.dispatcherFrame.parentNode) {
|
|
38
|
+
this.dispatcherFrame.parentNode.removeChild(this.dispatcherFrame);
|
|
39
|
+
}
|
|
40
|
+
this.iframeEvent.clear();
|
|
41
|
+
this.widgetId = undefined;
|
|
42
|
+
this.dispatcherFrame = undefined;
|
|
43
|
+
}
|
|
44
|
+
push(payload, pushCallbacks) {
|
|
45
|
+
var _a;
|
|
46
|
+
this.pushCallbacks = pushCallbacks;
|
|
47
|
+
if (!this.dispatcherFrame) {
|
|
48
|
+
console.error(`${LOG_PREFIX} dispatcher is not initialized.`);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const body = Object.assign(Object.assign({}, this.defaultPayload), payload);
|
|
52
|
+
(_a = this.dispatcherFrame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(body, this.env.getConf().url);
|
|
53
|
+
}
|
|
54
|
+
setEnv(env, alias) {
|
|
55
|
+
this.env.setEnv(env, alias);
|
|
56
|
+
this.create(this.onLoadCallback);
|
|
57
|
+
}
|
|
58
|
+
setupIframeEventListeners() {
|
|
59
|
+
if (!this.widgetId)
|
|
60
|
+
return;
|
|
61
|
+
this.iframeEvent.on(EVENT.AFTER_LOAD, this.widgetId, (_event) => {
|
|
62
|
+
var _a;
|
|
63
|
+
(_a = this.onLoadCallback) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
64
|
+
});
|
|
65
|
+
this.iframeEvent.on(EVENT.DISPATCH_SUCCESS, this.widgetId, (_event) => {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
(_b = (_a = this.pushCallbacks) === null || _a === void 0 ? void 0 : _a.onSuccess) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
68
|
+
});
|
|
69
|
+
this.iframeEvent.on(EVENT.DISPATCH_ERROR, this.widgetId, (_event) => {
|
|
70
|
+
var _a, _b;
|
|
71
|
+
(_b = (_a = this.pushCallbacks) === null || _a === void 0 ? void 0 : _a.onError) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=../../src/lib/components/storage-dispatcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-dispatcher.js","sourceRoot":"","sources":["../../components/storage-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AACrD,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,UAAU,GAAG,6BAA6B,CAAC;AAEjD,MAAM,CAAN,IAA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IAAI,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;;YAClE,YAAA,IAAI,CAAC,aAAa,0CAAE,SAAS,mDAAK;QACtC,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;;YAChE,YAAA,IAAI,CAAC,aAAa,0CAAE,OAAO,mDAAK;QACpC,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ObjectHelper } from '../helper/object';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for classes that represent a trigger data.
|
|
4
|
+
* @interface ITriggerData
|
|
5
|
+
*
|
|
6
|
+
* @param {string} [configuration_token]
|
|
7
|
+
* @param {string} [tab_number]
|
|
8
|
+
* @param {string} [elements]
|
|
9
|
+
* @param {string} [form_values]
|
|
10
|
+
* */
|
|
11
|
+
/**
|
|
12
|
+
* List of available triggers
|
|
13
|
+
*
|
|
14
|
+
* @type {object}
|
|
15
|
+
* @param {string} SUBMIT_FORM=submit_form
|
|
16
|
+
* @param {string} CHANGE_TAB=tab
|
|
17
|
+
* @param {string} HIDE_ELEMENTS=hide_elements
|
|
18
|
+
* @param {string} SHOW_ELEMENTS=show_elements
|
|
19
|
+
* @param {string} REFRESH_CHECKOUT=refresh_checkout
|
|
20
|
+
* @param {string} UPDATE_FORM_VALUES=update_form_values
|
|
21
|
+
* @param {string} INIT_CHECKOUT=init_checkout
|
|
22
|
+
*/
|
|
23
|
+
export const TRIGGER = {
|
|
24
|
+
SUBMIT_FORM: 'submit_form',
|
|
25
|
+
CHANGE_TAB: 'tab',
|
|
26
|
+
HIDE_ELEMENTS: 'hide_elements',
|
|
27
|
+
SHOW_ELEMENTS: 'show_elements',
|
|
28
|
+
REFRESH_CHECKOUT: 'refresh_checkout',
|
|
29
|
+
UPDATE_FORM_VALUES: 'update_form_values',
|
|
30
|
+
INIT_CHECKOUT: 'init_checkout',
|
|
31
|
+
};
|
|
32
|
+
export class Trigger {
|
|
33
|
+
constructor(iFrame) {
|
|
34
|
+
this.iFrame = iFrame;
|
|
35
|
+
}
|
|
36
|
+
push(triggerName, data = {}) {
|
|
37
|
+
if (!this.iFrame.isExist())
|
|
38
|
+
return;
|
|
39
|
+
if (ObjectHelper.values(TRIGGER).indexOf(triggerName) === -1)
|
|
40
|
+
console.warn('unsupported trigger type');
|
|
41
|
+
let body = {
|
|
42
|
+
trigger: triggerName,
|
|
43
|
+
destination: 'widget.paydock',
|
|
44
|
+
data: data,
|
|
45
|
+
};
|
|
46
|
+
this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(body), '*');
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=../../src/lib/components/trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../components/trigger.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAgBhD;;;;;;;;KAQK;AAEL;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,kBAAkB,EAAE,oBAAoB;IACxC,aAAa,EAAE,eAAe;CACjC,CAAC;AAEF,MAAM,OAAO,OAAO;IAIhB,YAAY,MAAc;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,IAAI,CAAC,WAAmB,EAAE,OAAqB,EAAE;QACpD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACtB,OAAO;QAEX,IAAI,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACxD,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QAE7C,IAAI,IAAI,GAAa;YACjB,OAAO,EAAE,WAAW;YACpB,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,IAAI;SACb,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IAClF,CAAC;CACJ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IFrameEvent } from './iframe-event';
|
|
2
|
+
var VAULT_DISPLAY_EVENT;
|
|
3
|
+
(function (VAULT_DISPLAY_EVENT) {
|
|
4
|
+
VAULT_DISPLAY_EVENT["AFTER_LOAD"] = "after_load";
|
|
5
|
+
VAULT_DISPLAY_EVENT["SYSTEM_ERROR"] = "system_error";
|
|
6
|
+
VAULT_DISPLAY_EVENT["CVV_SECURE_CODE_REQUESTED"] = "cvv_secure_code_requested";
|
|
7
|
+
VAULT_DISPLAY_EVENT["CARD_NUMBER_SECURE_CODE_REQUESTED"] = "card_number_secure_code_requested";
|
|
8
|
+
VAULT_DISPLAY_EVENT["ACCESS_FORBIDDEN"] = "access_forbidden";
|
|
9
|
+
VAULT_DISPLAY_EVENT["SESSION_EXPIRED"] = "session_expired";
|
|
10
|
+
VAULT_DISPLAY_EVENT["OPERATION_FORBIDDEN"] = "operation_forbidden";
|
|
11
|
+
})(VAULT_DISPLAY_EVENT || (VAULT_DISPLAY_EVENT = {}));
|
|
12
|
+
export class VaultDisplayIframeEvent extends IFrameEvent {
|
|
13
|
+
on(eventName, widgetId, cb) {
|
|
14
|
+
for (let event in VAULT_DISPLAY_EVENT) {
|
|
15
|
+
if (!VAULT_DISPLAY_EVENT.hasOwnProperty(event))
|
|
16
|
+
continue;
|
|
17
|
+
if (eventName === VAULT_DISPLAY_EVENT[event]) {
|
|
18
|
+
this.listeners.push({
|
|
19
|
+
event: eventName,
|
|
20
|
+
listener: cb,
|
|
21
|
+
widget_id: widgetId,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=../../src/lib/components/vault-display-iframe-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault-display-iframe-event.js","sourceRoot":"","sources":["../../components/vault-display-iframe-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,IAAK,mBAQJ;AARD,WAAK,mBAAmB;IACpB,gDAAyB,CAAA;IACzB,oDAA6B,CAAA;IAC7B,8EAAuD,CAAA;IACvD,8FAAuE,CAAA;IACvE,4DAAqC,CAAA;IACrC,0DAAmC,CAAA;IACnC,kEAA2C,CAAA;AAC/C,CAAC,EARI,mBAAmB,KAAnB,mBAAmB,QAQvB;AAED,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IAC7C,EAAE,CAAI,SAAiB,EAAE,QAAgB,EAAE,EAAqB;QACnE,KAAK,IAAI,KAAK,IAAI,mBAAmB,EAAE;YACnC,IAAI,CAAC,mBAAmB,CAAC,cAAc,CAAC,KAAK,CAAC;gBAC1C,SAAS;YAEb,IAAI,SAAS,KAAK,mBAAmB,CAAC,KAAK,CAAC,EAAE;gBAC1C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;oBAChB,KAAK,EAAE,SAAS;oBAChB,QAAQ,EAAE,EAAE;oBACZ,SAAS,EAAE,QAAQ;iBACtB,CAAC,CAAC;aACN;SACJ;IACL,CAAC;CACJ"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Background } from "./background";
|
|
2
2
|
export declare class WalletBackground extends Background {
|
|
3
3
|
protected bgImageUrl: string;
|
|
4
|
+
protected hideCloseButton: boolean;
|
|
4
5
|
protected imageStyle: HTMLStyleElement;
|
|
5
|
-
constructor(bgImageUrl: string);
|
|
6
|
+
constructor(bgImageUrl: string, hideCloseButton?: boolean);
|
|
6
7
|
initControl(): void;
|
|
7
8
|
clear(): void;
|
|
8
9
|
protected createTemplate(): void;
|
|
9
10
|
private createImageStyles;
|
|
10
11
|
}
|
|
11
|
-
//# sourceMappingURL=wallet-background.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Background } from "./background";
|
|
2
|
+
const TEMPLATE = `
|
|
3
|
+
<div class="checkout-container">
|
|
4
|
+
<div class="checkout-bg-logo"></div>
|
|
5
|
+
<a href="#" data-close>Close</a>
|
|
6
|
+
</div>
|
|
7
|
+
`;
|
|
8
|
+
const STYLES = `
|
|
9
|
+
.checkout-bg-logo {
|
|
10
|
+
display: block;
|
|
11
|
+
background: url({{url}}) no-repeat;
|
|
12
|
+
width: 100px;
|
|
13
|
+
height: 50px;
|
|
14
|
+
margin: 0 auto;
|
|
15
|
+
border-radius: 10px;
|
|
16
|
+
background-size: contain;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
export class WalletBackground extends Background {
|
|
20
|
+
constructor(bgImageUrl, hideCloseButton = false) {
|
|
21
|
+
super();
|
|
22
|
+
this.bgImageUrl = bgImageUrl;
|
|
23
|
+
this.hideCloseButton = hideCloseButton;
|
|
24
|
+
this.imageStyle = null;
|
|
25
|
+
}
|
|
26
|
+
initControl() {
|
|
27
|
+
if (!this.imageStyle)
|
|
28
|
+
this.createImageStyles();
|
|
29
|
+
super.initControl();
|
|
30
|
+
}
|
|
31
|
+
clear() {
|
|
32
|
+
if (this.imageStyle)
|
|
33
|
+
this.imageStyle.parentNode.removeChild(this.imageStyle);
|
|
34
|
+
this.imageStyle = null;
|
|
35
|
+
super.clear();
|
|
36
|
+
}
|
|
37
|
+
createTemplate() {
|
|
38
|
+
let body = document.body || document.getElementsByTagName("body")[0];
|
|
39
|
+
let template = String(TEMPLATE);
|
|
40
|
+
if (this.hideCloseButton === true)
|
|
41
|
+
template = template.replace('<a href="#" data-close>Close</a>', '');
|
|
42
|
+
this.overlay = document.createElement("div");
|
|
43
|
+
this.overlay.classList.add("checkout-overlay");
|
|
44
|
+
this.overlay.setAttribute("checkout-overlay", " ");
|
|
45
|
+
this.overlay.innerHTML = template;
|
|
46
|
+
body.appendChild(this.overlay);
|
|
47
|
+
setTimeout(() => {
|
|
48
|
+
if (this.isInit())
|
|
49
|
+
this.overlay.classList.add("display");
|
|
50
|
+
}, 5);
|
|
51
|
+
}
|
|
52
|
+
createImageStyles() {
|
|
53
|
+
let head = document.head || document.getElementsByTagName("head")[0];
|
|
54
|
+
let css = String(STYLES);
|
|
55
|
+
let container = (document.querySelector(".checkout-container"));
|
|
56
|
+
css = css.replace("{{url}}", this.bgImageUrl);
|
|
57
|
+
this.imageStyle = document.createElement("style");
|
|
58
|
+
this.imageStyle.type = "text/css";
|
|
59
|
+
this.imageStyle.appendChild(document.createTextNode(css));
|
|
60
|
+
head.appendChild(this.imageStyle);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=../../src/lib/components/wallet-background.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-background.js","sourceRoot":"","sources":["../../components/wallet-background.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,QAAQ,GAAG;;;;;CAKhB,CAAC;AAEF,MAAM,MAAM,GAAG;;;;;;;;;;CAUd,CAAC;AAEF,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAG5C,YAAsB,UAAkB,EAAY,kBAA2B,KAAK;QAChF,KAAK,EAAE,CAAC;QADU,eAAU,GAAV,UAAU,CAAQ;QAAY,oBAAe,GAAf,eAAe,CAAiB;QAF1E,eAAU,GAAqB,IAAI,CAAC;IAI9C,CAAC;IAEM,WAAW;QACd,IAAI,CAAC,IAAI,CAAC,UAAU;YAChB,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAE7B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G,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAEzB,IAAI,SAAS,GAA6B,CACtC,QAAQ,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAChD,CAAC;QACF,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAE9C,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC;QAClC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;QAE1D,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;CACJ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ObjectHelper } from '../helper/object';
|
|
2
|
+
import { Trigger } from "./trigger";
|
|
3
|
+
export const TRIGGER = {
|
|
4
|
+
CLOSE: 'close',
|
|
5
|
+
UPDATED: 'updated',
|
|
6
|
+
};
|
|
7
|
+
export class WalletTrigger extends Trigger {
|
|
8
|
+
constructor(iFrame, widgetId) {
|
|
9
|
+
super(iFrame);
|
|
10
|
+
this.widgetId = widgetId;
|
|
11
|
+
}
|
|
12
|
+
push(triggerName, data = {}) {
|
|
13
|
+
if (!this.iFrame.isExist())
|
|
14
|
+
return;
|
|
15
|
+
if (ObjectHelper.values(TRIGGER).indexOf(triggerName) === -1)
|
|
16
|
+
console.warn('unsupported trigger type');
|
|
17
|
+
let body = {
|
|
18
|
+
message_source: 'wallet.paydock',
|
|
19
|
+
reference_id: this.widgetId,
|
|
20
|
+
trigger: triggerName,
|
|
21
|
+
destination: 'widget.paydock',
|
|
22
|
+
data: data,
|
|
23
|
+
};
|
|
24
|
+
this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(body), '*');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=../../src/lib/components/wallet-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-trigger.js","sourceRoot":"","sources":["../../components/wallet-trigger.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACrB,CAAC;AAEF,MAAM,OAAO,aAAc,SAAQ,OAAO;IACtC,YAAY,MAAc,EAAY,QAAgB;QACpD,KAAK,CAAC,MAAM,CAAC,CAAC;QADsB,aAAQ,GAAR,QAAQ,CAAQ;IAEtD,CAAC;IAEM,IAAI,CAAC,WAAmB,EAAE,OAAY,EAAE;QAC3C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACtB,OAAO;QAEX,IAAI,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACxD,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QAE7C,IAAI,IAAI,GAAa;YACjB,cAAc,EAAE,gBAAgB;YAChC,YAAY,EAAE,IAAI,CAAC,QAAQ;YAC3B,OAAO,EAAE,WAAW;YACpB,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,IAAI;SACb,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IAClF,CAAC;CACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export declare type Configs = IConf[];
|
|
2
2
|
export declare const ENV: {
|
|
3
3
|
SANDBOX: string;
|
|
4
4
|
SANDBOX_KOVENA: string;
|
|
@@ -35,14 +35,17 @@ export declare const DEFAULT_ALIAS: {
|
|
|
35
35
|
PAYDOCK: string;
|
|
36
36
|
KOVENA: string;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
export interface IConf {
|
|
39
|
+
env: string;
|
|
40
|
+
url: string;
|
|
41
|
+
}
|
|
42
|
+
export declare class Env {
|
|
41
43
|
private env;
|
|
44
|
+
private configs;
|
|
45
|
+
private alias;
|
|
42
46
|
constructor(configs: Configs, defaultEnv?: string);
|
|
43
47
|
setEnv(env: string, alias?: string): void;
|
|
44
48
|
getEnv(): string;
|
|
45
49
|
getConf(): IConf;
|
|
46
50
|
private isValidMode;
|
|
47
51
|
}
|
|
48
|
-
//# sourceMappingURL=environment.paydock.d.ts.map
|