@paydock/client-sdk 0.0.3 → 0.1.2-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 +9050 -52
- package/bundles/index.cjs +38558 -0
- package/bundles/index.cjs.d.ts +4777 -0
- package/bundles/index.mjs +38519 -0
- package/bundles/index.mjs.d.ts +4777 -0
- package/bundles/types/api/api-base.d.ts +54 -0
- package/bundles/types/api/api-base.d.ts.map +1 -0
- package/bundles/types/api/api-charge-internal.d.ts +99 -0
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
- package/bundles/types/api/api-charge.d.ts +36 -0
- package/bundles/types/api/api-charge.d.ts.map +1 -0
- package/bundles/types/api/api-checkout-internal.d.ts +58 -0
- package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
- package/bundles/types/api/api-gateway-internal.d.ts +12 -0
- package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
- package/bundles/types/api/api-internal.d.ts +13 -0
- package/bundles/types/api/api-internal.d.ts.map +1 -0
- package/bundles/types/api/api-service-internal.d.ts +19 -0
- package/bundles/types/api/api-service-internal.d.ts.map +1 -0
- package/bundles/types/api/api.d.ts +55 -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/bundles/types/canvas-3ds/canvas-3ds.d.ts +109 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/index.d.ts +2 -0
- package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +43 -0
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/services/index.d.ts +2 -0
- package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +22 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
- package/bundles/types/checkout/checkout.d.ts +107 -0
- package/bundles/types/checkout/checkout.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts +25 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
- package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
- package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
- package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/resource-helper.d.ts +6 -0
- package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/session-helper.d.ts +8 -0
- package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
- package/bundles/types/checkout/index.d.ts +2 -0
- package/bundles/types/checkout/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/index.d.ts +3 -0
- package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
- package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
- package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
- package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
- package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +20 -0
- package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts +21 -0
- package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
- package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
- package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
- package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
- package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
- package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
- package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
- package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +55 -0
- package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts +36 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +13 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/checkout-button.d.ts +139 -0
- package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts +49 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +27 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
- package/bundles/types/checkout-button/index.d.ts +85 -0
- package/bundles/types/checkout-button/index.d.ts.map +1 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts +21 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts +6 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/base.runner.d.ts +18 -0
- package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts +39 -0
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/index.d.ts +9 -0
- package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/popup.runner.d.ts +35 -0
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/redirect.runner.d.ts +17 -0
- 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/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +49 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +39 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +26 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts +4 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts +10 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts +12 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
- package/bundles/types/components/ability-guard.d.ts +12 -0
- package/bundles/types/components/ability-guard.d.ts.map +1 -0
- package/bundles/types/components/background.d.ts +43 -0
- package/bundles/types/components/background.d.ts.map +1 -0
- package/bundles/types/components/container.d.ts +12 -0
- package/bundles/types/components/container.d.ts.map +1 -0
- package/bundles/types/components/dispatcher.d.ts +14 -0
- package/bundles/types/components/dispatcher.d.ts.map +1 -0
- package/bundles/types/components/element-style.d.ts +17 -0
- package/bundles/types/components/element-style.d.ts.map +1 -0
- package/bundles/types/components/flypay-iframe-event.d.ts +15 -0
- package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
- package/{lib/widget/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +2 -1
- package/bundles/types/components/form-interceptor.d.ts.map +1 -0
- package/bundles/types/components/http-core.d.ts +14 -0
- package/bundles/types/components/http-core.d.ts.map +1 -0
- package/bundles/types/components/iframe-event.d.ts +72 -0
- package/bundles/types/components/iframe-event.d.ts.map +1 -0
- package/bundles/types/components/iframe.d.ts +20 -0
- package/bundles/types/components/iframe.d.ts.map +1 -0
- package/bundles/types/components/link.d.ts +27 -0
- package/bundles/types/components/link.d.ts.map +1 -0
- package/bundles/types/components/loader.d.ts +5 -0
- package/bundles/types/components/loader.d.ts.map +1 -0
- package/bundles/types/components/param.d.ts +430 -0
- package/bundles/types/components/param.d.ts.map +1 -0
- package/bundles/types/components/popup.d.ts +30 -0
- package/bundles/types/components/popup.d.ts.map +1 -0
- package/bundles/types/components/storage-dispatcher.d.ts +31 -0
- package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
- package/bundles/types/components/trigger.d.ts +48 -0
- package/bundles/types/components/trigger.d.ts.map +1 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts +5 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
- package/bundles/types/components/wallet-background.d.ts +13 -0
- package/bundles/types/components/wallet-background.d.ts.map +1 -0
- package/bundles/types/components/wallet-trigger.d.ts +19 -0
- package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.cba.d.ts +30 -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/bundles/types/configs/env/environment.paydock.d.ts +49 -0
- 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/bundles/types/configs/sdk.d.ts +10 -0
- package/bundles/types/configs/sdk.d.ts.map +1 -0
- package/bundles/types/constants/validators.d.ts +45 -0
- package/bundles/types/constants/validators.d.ts.map +1 -0
- package/bundles/types/external-checkout/builder.d.ts +29 -0
- package/bundles/types/external-checkout/builder.d.ts.map +1 -0
- package/bundles/types/external-checkout/checker.d.ts +14 -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/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts +9 -0
- package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts +42 -0
- package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts +163 -0
- package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/index.d.ts +3 -0
- package/bundles/types/fraud-prevention/index.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts +79 -0
- package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts +2 -0
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts +20 -0
- package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts.map +1 -0
- package/bundles/types/helper/access-token.d.ts +26 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -0
- package/bundles/types/helper/browser.d.ts +17 -0
- package/bundles/types/helper/browser.d.ts.map +1 -0
- package/bundles/types/helper/deep-clone.d.ts +13 -0
- package/bundles/types/helper/deep-clone.d.ts.map +1 -0
- package/bundles/types/helper/element-id.d.ts +5 -0
- package/bundles/types/helper/element-id.d.ts.map +1 -0
- package/bundles/types/helper/event-emitter.d.ts +7 -0
- package/bundles/types/helper/event-emitter.d.ts.map +1 -0
- package/bundles/types/helper/event-error.d.ts +55 -0
- package/bundles/types/helper/event-error.d.ts.map +1 -0
- package/bundles/types/helper/event.d.ts +10 -0
- package/bundles/types/helper/event.d.ts.map +1 -0
- package/bundles/types/helper/ms.d.ts +6 -0
- package/bundles/types/helper/ms.d.ts.map +1 -0
- package/{lib/widget → bundles/types}/helper/object.d.ts +1 -0
- package/bundles/types/helper/object.d.ts.map +1 -0
- package/bundles/types/helper/process-event-error.d.ts +9 -0
- package/bundles/types/helper/process-event-error.d.ts.map +1 -0
- package/bundles/types/helper/spiner.util.d.ts +6 -0
- package/bundles/types/helper/spiner.util.d.ts.map +1 -0
- package/bundles/types/helper/url.d.ts +5 -0
- package/bundles/types/helper/url.d.ts.map +1 -0
- package/bundles/types/helper/uuid.d.ts +6 -0
- package/bundles/types/helper/uuid.d.ts.map +1 -0
- package/bundles/types/index-cba.d.ts +52 -0
- package/bundles/types/index-cba.d.ts.map +1 -0
- package/bundles/types/index.d.ts +52 -0
- package/bundles/types/index.d.ts.map +1 -0
- package/bundles/types/payment-source/builder.d.ts +23 -0
- package/bundles/types/payment-source/builder.d.ts.map +1 -0
- package/bundles/types/payment-source/index.d.ts +2 -0
- package/bundles/types/payment-source/index.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts +181 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/index.d.ts +35 -0
- package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts +12 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts +93 -0
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/index.d.ts +23 -0
- package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +58 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +17 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
- package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +85 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +83 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +35 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/index.d.ts +105 -0
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/interfaces.d.ts +156 -0
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +25 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts +11 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +86 -0
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
- package/bundles/types/shared/device/device-info.service.d.ts +13 -0
- package/bundles/types/shared/device/device-info.service.d.ts.map +1 -0
- package/bundles/types/shared/http/authorization-strategy.d.ts +41 -0
- package/bundles/types/shared/http/authorization-strategy.d.ts.map +1 -0
- package/bundles/types/shared/http/http-fetcher.d.ts +29 -0
- package/bundles/types/shared/http/http-fetcher.d.ts.map +1 -0
- package/bundles/types/shared/http/http-fetcher.factory.d.ts +17 -0
- package/bundles/types/shared/http/http-fetcher.factory.d.ts.map +1 -0
- package/bundles/types/shared/http/http-request.d.ts +14 -0
- package/bundles/types/shared/http/http-request.d.ts.map +1 -0
- package/bundles/types/shared/http/http-response.dto.d.ts +19 -0
- package/bundles/types/shared/http/http-response.dto.d.ts.map +1 -0
- package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts +12 -0
- package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts.map +1 -0
- package/bundles/types/shared/services/configuration-validation/types.d.ts +73 -0
- package/bundles/types/shared/services/configuration-validation/types.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
- package/bundles/types/shared/shared.constants.d.ts +6 -0
- package/bundles/types/shared/shared.constants.d.ts.map +1 -0
- package/bundles/types/vault-display-widget/index.d.ts +14 -0
- package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts +69 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/enums.d.ts +12 -0
- package/bundles/types/wallet-buttons/enums.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +6 -0
- package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
- package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index.d.ts +138 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts +128 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +321 -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/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +24 -0
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +49 -0
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts +28 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts +26 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts +35 -0
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts +8 -0
- package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts +26 -0
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts +19 -0
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +131 -0
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +252 -0
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +12 -0
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/index.d.ts +245 -0
- package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +44 -0
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts +21 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts +9 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts +13 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts +9 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
- package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +58 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts +5 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +22 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts +5 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts +21 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts +21 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts +164 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +32 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +53 -0
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -0
- package/bundles/types/widget/configuration.d.ts +165 -0
- package/bundles/types/widget/configuration.d.ts.map +1 -0
- package/bundles/types/widget/html-multi-widget.d.ts +337 -0
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
- package/bundles/types/widget/html-widget.d.ts +107 -0
- package/bundles/types/widget/html-widget.d.ts.map +1 -0
- package/bundles/types/widget/index.d.ts +132 -0
- package/bundles/types/widget/index.d.ts.map +1 -0
- package/bundles/types/widget/meta.d.ts +8 -0
- package/bundles/types/widget/meta.d.ts.map +1 -0
- package/bundles/types/widget/multi-widget.d.ts +241 -0
- package/bundles/types/widget/multi-widget.d.ts.map +1 -0
- package/bundles/types/widget/style.d.ts +177 -0
- package/bundles/types/widget/style.d.ts.map +1 -0
- package/bundles/widget.umd.js +38429 -767
- package/bundles/widget.umd.js.d.ts +4777 -0
- package/bundles/widget.umd.js.min.d.ts +4777 -0
- package/bundles/widget.umd.min.js +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 +2542 -0
- package/docs/api-wrapper.md +45 -0
- package/docs/canvas3ds-examples.md +242 -0
- package/docs/cba-header.md +13 -0
- package/docs/cba-license.md +2 -0
- package/docs/checkout-examples.md +248 -0
- package/docs/click-to-pay-examples.md +231 -0
- package/docs/click-to-pay.md +337 -0
- package/docs/fraud-prevention-examples.md +154 -0
- package/docs/fraud-prevention.md +0 -0
- package/docs/header.md +15 -0
- package/docs/html/layout.html +79 -0
- package/docs/html/marked.js +23 -0
- package/docs/html/style.css +365 -0
- package/docs/install/npm.content.md +16 -0
- package/docs/install/npm.example.md +24 -0
- package/docs/install/umd.content.md +20 -0
- package/docs/install/umd.example.md +6 -0
- package/docs/install.md +43 -0
- package/docs/install.readme.t.md +17 -0
- package/docs/install.slate.t.md +17 -0
- package/docs/license.md +2 -0
- package/docs/partials/header.hbs +3 -0
- package/docs/paypal-data-collector-examples.md +59 -0
- package/docs/paypal-data-collector.md +149 -0
- package/docs/paypal-save-payment-source-examples.md +63 -0
- package/docs/paypal-save-payment-source.md +256 -0
- package/docs/ps-examples.md +129 -0
- package/docs/vault-display-example.md +132 -0
- package/docs/wallet-buttons-examples.md +638 -0
- package/docs/wallet-buttons-express-examples.md +201 -0
- package/docs/wallet-buttons-express.md +1076 -0
- package/docs/wallet-buttons.md +625 -0
- package/docs/wallet-cba-buttons-examples.md +388 -0
- package/docs/widget-examples.md +271 -0
- package/examples/html-widget/actions.html +47 -0
- package/examples/html-widget/events.html +2 -2
- package/examples/html-widget/form.html +2 -3
- package/examples/html-widget/html-styles.html +29 -0
- package/examples/html-widget/insert-input.html +2 -2
- package/examples/html-widget/optional-settings.html +30 -0
- package/examples/html-widget/simple.html +3 -3
- package/examples/html-widget/styles.html +3 -3
- package/examples/multi-html-widget/extend.html +7 -2
- package/examples/multi-html-widget/simple.html +6 -8
- package/package.json +225 -55
- package/slate.md +2218 -0
- package/.npmignore +0 -15
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -3
- package/lib/index.js.map +0 -1
- package/lib/widget/components/container.d.ts +0 -9
- package/lib/widget/components/container.js +0 -18
- package/lib/widget/components/container.js.map +0 -1
- package/lib/widget/components/env.d.ts +0 -19
- package/lib/widget/components/env.js +0 -33
- package/lib/widget/components/env.js.map +0 -1
- package/lib/widget/components/event.d.ts +0 -26
- package/lib/widget/components/event.js +0 -49
- package/lib/widget/components/event.js.map +0 -1
- package/lib/widget/components/form-Interceptor.js +0 -38
- package/lib/widget/components/form-Interceptor.js.map +0 -1
- package/lib/widget/components/iframe.d.ts +0 -11
- package/lib/widget/components/iframe.js +0 -31
- package/lib/widget/components/iframe.js.map +0 -1
- package/lib/widget/components/link.d.ts +0 -13
- package/lib/widget/components/link.js +0 -37
- package/lib/widget/components/link.js.map +0 -1
- package/lib/widget/components/param.d.ts +0 -39
- package/lib/widget/components/param.js +0 -21
- package/lib/widget/components/param.js.map +0 -1
- package/lib/widget/components/trigger.d.ts +0 -19
- package/lib/widget/components/trigger.js +0 -22
- package/lib/widget/components/trigger.js.map +0 -1
- package/lib/widget/configuration.d.ts +0 -59
- package/lib/widget/configuration.js +0 -134
- package/lib/widget/configuration.js.map +0 -1
- package/lib/widget/helper/event.d.ts +0 -8
- package/lib/widget/helper/event.js +0 -15
- package/lib/widget/helper/event.js.map +0 -1
- package/lib/widget/helper/object.js +0 -6
- package/lib/widget/helper/object.js.map +0 -1
- package/lib/widget/helper/url.d.ts +0 -3
- package/lib/widget/helper/url.js +0 -8
- package/lib/widget/helper/url.js.map +0 -1
- package/lib/widget/html-multi-widget.d.ts +0 -56
- package/lib/widget/html-multi-widget.js +0 -89
- package/lib/widget/html-multi-widget.js.map +0 -1
- package/lib/widget/html-widget.d.ts +0 -37
- package/lib/widget/html-widget.js +0 -50
- package/lib/widget/html-widget.js.map +0 -1
- package/lib/widget/index.d.ts +0 -5
- package/lib/widget/index.js +0 -6
- package/lib/widget/index.js.map +0 -1
- package/lib/widget/multi-widget.d.ts +0 -22
- package/lib/widget/multi-widget.js +0 -83
- package/lib/widget/multi-widget.js.map +0 -1
package/.npmignore
DELETED
package/lib/index.d.ts
DELETED
package/lib/index.js
DELETED
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export class Container {
|
|
2
|
-
constructor(selector) {
|
|
3
|
-
this.selector = selector;
|
|
4
|
-
}
|
|
5
|
-
isExist() {
|
|
6
|
-
return !!(this.getElement());
|
|
7
|
-
}
|
|
8
|
-
getStyles() {
|
|
9
|
-
return {};
|
|
10
|
-
}
|
|
11
|
-
getTexts() {
|
|
12
|
-
return {};
|
|
13
|
-
}
|
|
14
|
-
getElement() {
|
|
15
|
-
return document.querySelector(this.selector);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=../../../src/lib/widget/components/container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../widget/components/container.ts"],"names":[],"mappings":"AAGA,MAAM;IAKF,YAAY,QAAgB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAGM,OAAO;QACV,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IACjC,CAAC;IAGM,SAAS;QACZ,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;IAGM,QAAQ;QACX,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;IAGM,UAAU;QACb,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;CACJ"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare type Configs = IConf[];
|
|
2
|
-
export declare const ENV: {
|
|
3
|
-
SANDBOX: string;
|
|
4
|
-
PROD: string;
|
|
5
|
-
STAGING: string;
|
|
6
|
-
};
|
|
7
|
-
export interface IConf {
|
|
8
|
-
env: string;
|
|
9
|
-
url: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class Env {
|
|
12
|
-
private env;
|
|
13
|
-
private configs;
|
|
14
|
-
constructor(configs: Configs, defaultEnv?: string);
|
|
15
|
-
setEnv(env: any): void;
|
|
16
|
-
getEnv(): string;
|
|
17
|
-
getConf(): IConf;
|
|
18
|
-
private isValidMode(configs, env);
|
|
19
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export const ENV = {
|
|
2
|
-
SANDBOX: 'sandbox',
|
|
3
|
-
PROD: 'production',
|
|
4
|
-
STAGING: 'staging',
|
|
5
|
-
};
|
|
6
|
-
export class Env {
|
|
7
|
-
constructor(configs, defaultEnv = ENV.SANDBOX) {
|
|
8
|
-
this.configs = configs;
|
|
9
|
-
this.setEnv(defaultEnv);
|
|
10
|
-
}
|
|
11
|
-
setEnv(env) {
|
|
12
|
-
if (!this.isValidMode(this.configs, env))
|
|
13
|
-
throw new Error('unknown env: ' + env);
|
|
14
|
-
this.env = env;
|
|
15
|
-
}
|
|
16
|
-
getEnv() {
|
|
17
|
-
return this.env;
|
|
18
|
-
}
|
|
19
|
-
getConf() {
|
|
20
|
-
for (let index in this.configs) {
|
|
21
|
-
if (this.configs[index].env === this.getEnv())
|
|
22
|
-
return this.configs[index];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
isValidMode(configs, env) {
|
|
26
|
-
for (let index in configs) {
|
|
27
|
-
if (configs[index].env === env)
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=../../../src/lib/widget/components/env.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../../widget/components/env.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,GAAG,GAAG;IACf,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,SAAS;CACrB,CAAA;AASD,MAAM;IAKF,YAAY,OAAgB,EAAE,aAAqB,GAAG,CAAC,OAAO;QAC1D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,GAAG;QACb,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;YACrC,MAAM,IAAI,KAAK,CAAC,eAAe,GAAE,GAAG,CAAC,CAAC;QAE1C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAEM,MAAM;QACT,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAEM,OAAO;QACV,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;YAC7B,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;gBAC1C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;IACL,CAAC;IAEO,WAAW,CAAC,OAAgB,EAAE,GAAW;QAC7C,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;YACxB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC;gBAC3B,MAAM,CAAC,IAAI,CAAC;QACpB,CAAC;QACD,MAAM,CAAC,KAAK,CAAC;IACjB,CAAC;CACJ"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface IEventData {
|
|
2
|
-
event: string;
|
|
3
|
-
purpose: string;
|
|
4
|
-
message_source: string;
|
|
5
|
-
ref_id?: string;
|
|
6
|
-
payment_source?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const EVENT: {
|
|
9
|
-
AFTER_LOAD: string;
|
|
10
|
-
SUBMIT: string;
|
|
11
|
-
FINISH: string;
|
|
12
|
-
VALIDATION_ERROR: string;
|
|
13
|
-
SYSTEM_ERROR: string;
|
|
14
|
-
};
|
|
15
|
-
export interface Listener {
|
|
16
|
-
event: string;
|
|
17
|
-
listener: (event: IEventData) => void;
|
|
18
|
-
}
|
|
19
|
-
export declare type Listeners = Listener[];
|
|
20
|
-
export declare class Event {
|
|
21
|
-
protected listeners: Listeners;
|
|
22
|
-
constructor(subject: Window | null);
|
|
23
|
-
emit(data: IEventData): void;
|
|
24
|
-
on(eventName: string, cb: (data: IEventData) => void): void;
|
|
25
|
-
private subscribe(subject, listener);
|
|
26
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export const EVENT = {
|
|
2
|
-
AFTER_LOAD: 'afterLoad',
|
|
3
|
-
SUBMIT: 'submit',
|
|
4
|
-
FINISH: 'finish',
|
|
5
|
-
VALIDATION_ERROR: 'validationError',
|
|
6
|
-
SYSTEM_ERROR: 'systemError',
|
|
7
|
-
};
|
|
8
|
-
export class Event {
|
|
9
|
-
constructor(subject) {
|
|
10
|
-
this.listeners = [];
|
|
11
|
-
if (!subject)
|
|
12
|
-
return;
|
|
13
|
-
this.subscribe(subject, (event) => {
|
|
14
|
-
let data;
|
|
15
|
-
try {
|
|
16
|
-
data = JSON.parse(event.data);
|
|
17
|
-
}
|
|
18
|
-
catch (error) { }
|
|
19
|
-
if (!data)
|
|
20
|
-
return;
|
|
21
|
-
this.emit(data);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
emit(data) {
|
|
25
|
-
for (let key in this.listeners) {
|
|
26
|
-
if (this.listeners[key].event == data.event)
|
|
27
|
-
this.listeners[key].listener.apply(this, [data]);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
on(eventName, cb) {
|
|
31
|
-
for (let event in EVENT) {
|
|
32
|
-
if (eventName === EVENT[event]) {
|
|
33
|
-
this.listeners.push({
|
|
34
|
-
event: eventName,
|
|
35
|
-
listener: cb
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
subscribe(subject, listener) {
|
|
41
|
-
if (subject.addEventListener) {
|
|
42
|
-
subject.addEventListener("message", listener);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
subject.attachEvent("onmessage", listener);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=../../../src/lib/widget/components/event.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../widget/components/event.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,UAAU,EAAE,WAAW;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,iBAAiB;IACnC,YAAY,EAAE,aAAa;CAC9B,CAAC;AAWF,MAAM;IAKF,YAAY,OAAsB;QAHxB,cAAS,GAAc,EAAE,CAAC;QAIhC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;YACT,MAAM,CAAC;QAEX,IAAI,CAAC,SAAS,CAAC,OAAO,EAAG,CAAC,KAAmB;YACzC,IAAI,IAAuB,CAAC;YAC5B,IAAI,CAAC;gBACD,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;YAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA,CAAC;YAElB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;gBACN,MAAM,CAAC;YAEX,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IAEP,CAAC;IAGM,IAAI,CAAC,IAAgB;QACxB,GAAG,CAAA,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;YAC5B,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC;gBACxC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QACzD,CAAC;IACL,CAAC;IAGM,EAAE,CAAC,SAAiB,EAAE,EAA8B;QACvD,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC;YACtB,EAAE,CAAC,CAAC,SAAS,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAC7B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;oBAChB,KAAK,EAAE,SAAS;oBAChB,QAAQ,EAAE,EAAE;iBACf,CAAC,CAAC;YACP,CAAC;QACL,CAAC;IACL,CAAC;IAGO,SAAS,CAAC,OAAe,EAAE,QAAuC;QACtE,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;YAC3B,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;QAAC,IAAI,CAAC,CAAC;YACE,OAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QACtD,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export class FormInterceptor {
|
|
2
|
-
constructor(selector) {
|
|
3
|
-
this.intercepted = false;
|
|
4
|
-
this.selector = selector;
|
|
5
|
-
}
|
|
6
|
-
getElement() {
|
|
7
|
-
return document.querySelector(this.selector);
|
|
8
|
-
}
|
|
9
|
-
isExist() {
|
|
10
|
-
return !!(this.getElement());
|
|
11
|
-
}
|
|
12
|
-
beforeSubmit(cb) {
|
|
13
|
-
if (!this.isExist())
|
|
14
|
-
return;
|
|
15
|
-
this.subscribe(this.getElement(), (event) => {
|
|
16
|
-
event.preventDefault();
|
|
17
|
-
this.intercepted = true;
|
|
18
|
-
cb.apply(this, []);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
continueSubmit() {
|
|
22
|
-
if (!this.isExist() || !this.intercepted)
|
|
23
|
-
return;
|
|
24
|
-
this.intercepted = false;
|
|
25
|
-
setTimeout(() => {
|
|
26
|
-
this.getElement().submit();
|
|
27
|
-
}, 50);
|
|
28
|
-
}
|
|
29
|
-
subscribe(subject, listener) {
|
|
30
|
-
if (subject.addEventListener) {
|
|
31
|
-
subject.addEventListener("submit", listener);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
subject.attachEvent("onsubmit", listener);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=../../../src/lib/widget/components/form-Interceptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-Interceptor.js","sourceRoot":"","sources":["../../../widget/components/form-Interceptor.ts"],"names":[],"mappings":"AACA,MAAM;IAMF,YAAY,QAAgB;QAHlB,gBAAW,GAAY,KAAK,CAAC;QAInC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,UAAU;QACb,MAAM,CAAkB,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClE,CAAC;IAEM,OAAO;QACV,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IACjC,CAAC;IAEM,YAAY,CAAE,EAAc;QAC/B,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,MAAM,CAAC;QACX,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,KAAY;YAC3C,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,cAAc;QACjB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;YACrC,MAAM,CAAC;QAEX,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,UAAU,CAAC;YACP,IAAI,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,CAAC;QAC/B,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,CAAC;IAIO,SAAS,CAAC,OAAwB,EAAE,QAAgC;QACxE,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;YAC3B,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACjD,CAAC;QAAC,IAAI,CAAC,CAAC;YACE,OAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrD,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Container } from "./container";
|
|
2
|
-
export declare class IFrame {
|
|
3
|
-
protected container: Container;
|
|
4
|
-
constructor(container: Container);
|
|
5
|
-
load(link: string): void;
|
|
6
|
-
remove(): void;
|
|
7
|
-
show(): void;
|
|
8
|
-
hide(): void;
|
|
9
|
-
isExist(): boolean;
|
|
10
|
-
getElement(): HTMLIFrameElement;
|
|
11
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export class IFrame {
|
|
2
|
-
constructor(container) {
|
|
3
|
-
this.container = container;
|
|
4
|
-
}
|
|
5
|
-
load(link) {
|
|
6
|
-
if (!this.container.isExist() || this.isExist())
|
|
7
|
-
return;
|
|
8
|
-
let iFrame = document.createElement('iframe');
|
|
9
|
-
iFrame.setAttribute('src', link);
|
|
10
|
-
this.container.getElement().appendChild(iFrame);
|
|
11
|
-
}
|
|
12
|
-
remove() {
|
|
13
|
-
if (!this.container.isExist() || !this.isExist())
|
|
14
|
-
return;
|
|
15
|
-
var iFrame = this.getElement();
|
|
16
|
-
this.container.getElement().removeChild(iFrame);
|
|
17
|
-
}
|
|
18
|
-
show() {
|
|
19
|
-
}
|
|
20
|
-
hide() {
|
|
21
|
-
}
|
|
22
|
-
isExist() {
|
|
23
|
-
return !!(this.getElement());
|
|
24
|
-
}
|
|
25
|
-
getElement() {
|
|
26
|
-
if (!this.container.isExist())
|
|
27
|
-
return null;
|
|
28
|
-
return this.container.getElement().querySelector('iframe');
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=../../../src/lib/widget/components/iframe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iframe.js","sourceRoot":"","sources":["../../../widget/components/iframe.ts"],"names":[],"mappings":"AAGA,MAAM;IAIF,YAAY,SAAoB;QAC5B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,IAAI,CAAC,IAAY;QACpB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAC5C,MAAM,CAAC;QAEX,IAAI,MAAM,GAAgB,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAC3D,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAEM,MAAM;QACT,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAC7C,MAAM,CAAC;QAEX,IAAI,MAAM,GAAgB,IAAI,CAAC,UAAU,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAEM,IAAI;IAEX,CAAC;IAEM,IAAI;IAEX,CAAC;IAEM,OAAO;QACV,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IACjC,CAAC;IAEM,UAAU;QACb,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,CAAC,IAAI,CAAC;QAEhB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC/D,CAAC;CAEJ"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IParams } from './param';
|
|
2
|
-
import { Env } from "./env";
|
|
3
|
-
export declare class Link {
|
|
4
|
-
protected env: Env;
|
|
5
|
-
protected params: IParams;
|
|
6
|
-
constructor();
|
|
7
|
-
getNetUrl(): string;
|
|
8
|
-
getUrl(): string;
|
|
9
|
-
setParams(params: IParams): void;
|
|
10
|
-
getParams(): IParams;
|
|
11
|
-
setEnv(env: any): void;
|
|
12
|
-
getEnv(): string;
|
|
13
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Env, ENV } from "./env";
|
|
2
|
-
import { Url } from "./../helper/url";
|
|
3
|
-
const WIDGET_LINK = '/remote-action';
|
|
4
|
-
export class Link {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.params = {};
|
|
7
|
-
this.env = new Env([
|
|
8
|
-
{ env: ENV.SANDBOX, url: 'https://widget-sandbox.paydock.com' },
|
|
9
|
-
{ env: ENV.PROD, url: 'https://widget.paydock.com' },
|
|
10
|
-
{ env: ENV.STAGING, url: 'https://widsta.paydock.com' }
|
|
11
|
-
]);
|
|
12
|
-
}
|
|
13
|
-
getNetUrl() {
|
|
14
|
-
return this.env.getConf().url + WIDGET_LINK;
|
|
15
|
-
}
|
|
16
|
-
getUrl() {
|
|
17
|
-
let url = this.getNetUrl();
|
|
18
|
-
let params = this.getParams();
|
|
19
|
-
for (let key in params) {
|
|
20
|
-
url = Url.extendSearchParams(url, key, params[key]);
|
|
21
|
-
}
|
|
22
|
-
return url;
|
|
23
|
-
}
|
|
24
|
-
setParams(params) {
|
|
25
|
-
this.params = Object.assign({}, this.params, params);
|
|
26
|
-
}
|
|
27
|
-
getParams() {
|
|
28
|
-
return this.params;
|
|
29
|
-
}
|
|
30
|
-
setEnv(env) {
|
|
31
|
-
this.env.setEnv(env);
|
|
32
|
-
}
|
|
33
|
-
getEnv() {
|
|
34
|
-
return this.env.getEnv();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=../../../src/lib/widget/components/link.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../widget/components/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAC,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,MAAM,WAAW,GAAG,gBAAgB,CAAA;AAEpC,MAAM;IAKF;QAFU,WAAM,GAAY,EAAE,CAAC;QAG3B,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC;YACf,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,oCAAoC,EAAE;YAC/D,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,4BAA4B,EAAE;YACpD,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,4BAA4B,EAAE;SAC1D,CAAC,CAAC;IACP,CAAC;IAEM,SAAS;QACZ,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,GAAG,WAAW,CAAC;IAChD,CAAC;IAEM,MAAM;QACT,IAAI,GAAG,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAC3B,IAAI,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAC9B,GAAG,CAAC,CAAC,IAAI,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC;YACrB,GAAG,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;QACxD,CAAC;QACD,MAAM,CAAC,GAAG,CAAC;IACf,CAAC;IAEM,SAAS,CAAC,MAAe;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC;IAEM,SAAS;QACZ,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAEM,MAAM,CAAC,GAAG;QACb,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAEM,MAAM;QACT,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;IAC7B,CAAC;CAEJ"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare const STYLE: {
|
|
2
|
-
BACKGROUND_COLOR: string;
|
|
3
|
-
TEXT_COLOR: string;
|
|
4
|
-
BORDER_COLOR: string;
|
|
5
|
-
BUTTON_COLOR: string;
|
|
6
|
-
ERROR_COLOR: string;
|
|
7
|
-
SUCCESS_COLOR: string;
|
|
8
|
-
FONT_SIZE: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const TEXT: {
|
|
11
|
-
TITLE: string;
|
|
12
|
-
FINISH: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const HIDDEN_ELEMENT: {
|
|
15
|
-
SUBMIT_BUTTON: string;
|
|
16
|
-
TABS: string;
|
|
17
|
-
};
|
|
18
|
-
export interface IStyles {
|
|
19
|
-
background_color?: string;
|
|
20
|
-
text_color?: string;
|
|
21
|
-
border_color?: string;
|
|
22
|
-
button_color?: string;
|
|
23
|
-
error_color?: string;
|
|
24
|
-
success_color?: string;
|
|
25
|
-
font_size?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface ITexts {
|
|
28
|
-
title?: string;
|
|
29
|
-
finish_text?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface IParams extends IStyles, ITexts {
|
|
32
|
-
public_key?: string;
|
|
33
|
-
configuration_token?: string;
|
|
34
|
-
configuration_tokens?: string;
|
|
35
|
-
ref_id?: string;
|
|
36
|
-
supported_card_types?: string;
|
|
37
|
-
fields_validation?: boolean;
|
|
38
|
-
hidden_elements?: string;
|
|
39
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export const STYLE = {
|
|
2
|
-
BACKGROUND_COLOR: 'background_color',
|
|
3
|
-
TEXT_COLOR: 'text_color',
|
|
4
|
-
BORDER_COLOR: 'border_color',
|
|
5
|
-
BUTTON_COLOR: 'button_color',
|
|
6
|
-
ERROR_COLOR: 'error_color',
|
|
7
|
-
SUCCESS_COLOR: 'success_color',
|
|
8
|
-
FONT_SIZE: 'font_size',
|
|
9
|
-
};
|
|
10
|
-
export const TEXT = {
|
|
11
|
-
TITLE: 'title',
|
|
12
|
-
FINISH: 'finish_text',
|
|
13
|
-
};
|
|
14
|
-
export const HIDDEN_ELEMENT = {
|
|
15
|
-
SUBMIT_BUTTON: 'submit_button',
|
|
16
|
-
TABS: 'tabs',
|
|
17
|
-
};
|
|
18
|
-
;
|
|
19
|
-
;
|
|
20
|
-
;
|
|
21
|
-
//# sourceMappingURL=../../../src/lib/widget/components/param.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"param.js","sourceRoot":"","sources":["../../../widget/components/param.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,gBAAgB,EAAE,kBAAkB;IACpC,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,SAAS,EAAE,WAAW;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,aAAa;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,aAAa,EAAE,eAAe;IAC9B,IAAI,EAAE,MAAM;CACf,CAAA;AAUA,CAAC;AAMD,CAAC;AAUD,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IFrame } from "./iframe";
|
|
2
|
-
export interface ITrigger {
|
|
3
|
-
trigger: string;
|
|
4
|
-
destination: string;
|
|
5
|
-
data: ITriggerData;
|
|
6
|
-
}
|
|
7
|
-
export interface ITriggerData {
|
|
8
|
-
configuration_token?: string;
|
|
9
|
-
tab_number?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const TRIGGER: {
|
|
12
|
-
SUBMIT_FORM: string;
|
|
13
|
-
CHANGE_TAB: string;
|
|
14
|
-
};
|
|
15
|
-
export declare class Trigger {
|
|
16
|
-
protected iFrame: IFrame;
|
|
17
|
-
constructor(iFrame: IFrame);
|
|
18
|
-
push(triggerName: string, data?: ITriggerData): void;
|
|
19
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export const TRIGGER = {
|
|
2
|
-
SUBMIT_FORM: 'submit_form',
|
|
3
|
-
CHANGE_TAB: 'tab'
|
|
4
|
-
};
|
|
5
|
-
export class Trigger {
|
|
6
|
-
constructor(iFrame) {
|
|
7
|
-
this.iFrame = iFrame;
|
|
8
|
-
}
|
|
9
|
-
push(triggerName, data = {}) {
|
|
10
|
-
if (!this.iFrame.isExist())
|
|
11
|
-
return;
|
|
12
|
-
if ([TRIGGER.SUBMIT_FORM, TRIGGER.CHANGE_TAB].indexOf(triggerName) === -1)
|
|
13
|
-
return;
|
|
14
|
-
let body = {
|
|
15
|
-
trigger: triggerName,
|
|
16
|
-
destination: 'widget.paydock',
|
|
17
|
-
data: data
|
|
18
|
-
};
|
|
19
|
-
this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(body), '*');
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=../../../src/lib/widget/components/trigger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../widget/components/trigger.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,KAAK;CACpB,CAAC;AAEF,MAAM;IAIF,YAAY,MAAc;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,IAAI,CAAC,WAAmB,EAAE,OAAqB,EAAE;QACpD,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACvB,MAAM,CAAC;QAEX,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;YACtE,MAAM,CAAC;QAEX,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"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export declare const PAYMENT_TYPE: {
|
|
2
|
-
CARD: string;
|
|
3
|
-
BANK_ACCOUNT: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const PURPOSE: {
|
|
6
|
-
PAYMENT_SOURCE: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const DEFINED_FORM_FIELDS: {
|
|
9
|
-
CARD_NAME: string;
|
|
10
|
-
CARD_NUMBER: string;
|
|
11
|
-
EXPIRE_MONTH: string;
|
|
12
|
-
EXPIRE_YEAR: string;
|
|
13
|
-
CARD_CCV: string;
|
|
14
|
-
ACCOUNT_NAME: string;
|
|
15
|
-
ACCOUNT_BSB: string;
|
|
16
|
-
ACCOUNT_NUMBER: string;
|
|
17
|
-
ACCOUNT_ROUTING: string;
|
|
18
|
-
ACCOUNT_HOLDER_TYPE: string;
|
|
19
|
-
ACCOUNT_BANK_NAME: string;
|
|
20
|
-
FIRST_NAME: string;
|
|
21
|
-
LAST_NAME: string;
|
|
22
|
-
EMAIL: string;
|
|
23
|
-
PHONE: string;
|
|
24
|
-
ADDRESS_LINE1: string;
|
|
25
|
-
ADDRESS_LINE2: string;
|
|
26
|
-
ADDRESS_STATE: string;
|
|
27
|
-
ADDRESS_COUNTRY: string;
|
|
28
|
-
ADDRESS_CITY: string;
|
|
29
|
-
ADDRESS_POSTCODE: string;
|
|
30
|
-
};
|
|
31
|
-
export interface IGeneral {
|
|
32
|
-
purpose: string;
|
|
33
|
-
predefined_fields: IPredefinedFields;
|
|
34
|
-
defined_form_fields?: string[];
|
|
35
|
-
webhook_destination?: string;
|
|
36
|
-
success_redirect_url?: string;
|
|
37
|
-
error_redirect_url?: string;
|
|
38
|
-
}
|
|
39
|
-
export interface IPredefinedFields {
|
|
40
|
-
gateway_id: string;
|
|
41
|
-
type?: string;
|
|
42
|
-
}
|
|
43
|
-
export declare class Configuration {
|
|
44
|
-
private configs;
|
|
45
|
-
private env;
|
|
46
|
-
static createEachToken(publicKey: string, configs: Configuration[], cb: (tokens: string[]) => void, errorCb?: (errors: string[]) => void): void;
|
|
47
|
-
private static finishCreatingEachToken(tokens, errors, cb, errorCb);
|
|
48
|
-
constructor(gatewayID: string, paymentType?: string, purpose?: string);
|
|
49
|
-
setWebHookDestination(url: string): void;
|
|
50
|
-
setSuccessRedirectUrl(url: string): void;
|
|
51
|
-
setErrorRedirectUrl(url: string): void;
|
|
52
|
-
setFormFields(fields: string[]): void;
|
|
53
|
-
setEnv(env: any): void;
|
|
54
|
-
getEnv(): string;
|
|
55
|
-
createToken(publicKey: string, cb: (token: string) => void, errorCb?: (error: any) => void): void;
|
|
56
|
-
private send(publicKey, cb);
|
|
57
|
-
getConfigs(): IGeneral;
|
|
58
|
-
private getUrl();
|
|
59
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { Env, ENV } from './components/env';
|
|
2
|
-
import { ObjectHelper } from './helper/object';
|
|
3
|
-
export const PAYMENT_TYPE = {
|
|
4
|
-
CARD: 'card',
|
|
5
|
-
BANK_ACCOUNT: 'bank_account',
|
|
6
|
-
};
|
|
7
|
-
export const PURPOSE = {
|
|
8
|
-
PAYMENT_SOURCE: 'payment_source',
|
|
9
|
-
};
|
|
10
|
-
export const DEFINED_FORM_FIELDS = {
|
|
11
|
-
CARD_NAME: 'card_name',
|
|
12
|
-
CARD_NUMBER: 'card_number',
|
|
13
|
-
EXPIRE_MONTH: 'expire_month',
|
|
14
|
-
EXPIRE_YEAR: 'expire_year',
|
|
15
|
-
CARD_CCV: 'card_ccv',
|
|
16
|
-
ACCOUNT_NAME: 'account_name',
|
|
17
|
-
ACCOUNT_BSB: 'account_bsb',
|
|
18
|
-
ACCOUNT_NUMBER: 'account_number',
|
|
19
|
-
ACCOUNT_ROUTING: 'account_routing',
|
|
20
|
-
ACCOUNT_HOLDER_TYPE: 'account_holder_type',
|
|
21
|
-
ACCOUNT_BANK_NAME: 'account_bank_name',
|
|
22
|
-
FIRST_NAME: 'first_name',
|
|
23
|
-
LAST_NAME: 'last_name',
|
|
24
|
-
EMAIL: 'email',
|
|
25
|
-
PHONE: 'phone',
|
|
26
|
-
ADDRESS_LINE1: 'address_line1',
|
|
27
|
-
ADDRESS_LINE2: 'address_line2',
|
|
28
|
-
ADDRESS_STATE: 'address_state',
|
|
29
|
-
ADDRESS_COUNTRY: 'address_country',
|
|
30
|
-
ADDRESS_CITY: 'address_city',
|
|
31
|
-
ADDRESS_POSTCODE: 'address_postcode'
|
|
32
|
-
};
|
|
33
|
-
const CONFIGURATION_LINK = '/v1/remote-action/configs';
|
|
34
|
-
export class Configuration {
|
|
35
|
-
static createEachToken(publicKey, configs, cb, errorCb = (errors) => { }) {
|
|
36
|
-
let tokens = [];
|
|
37
|
-
let errors = [];
|
|
38
|
-
let counter = 0;
|
|
39
|
-
for (let index in configs) {
|
|
40
|
-
configs[index].createToken(publicKey, (token) => {
|
|
41
|
-
tokens.push(token);
|
|
42
|
-
counter++;
|
|
43
|
-
if (configs.length == counter)
|
|
44
|
-
Configuration.finishCreatingEachToken(tokens, errors, cb, errorCb);
|
|
45
|
-
}, (err) => {
|
|
46
|
-
errors.push(`gateway: ${configs[index].getConfigs().predefined_fields.gateway_id} | ${err}`);
|
|
47
|
-
counter++;
|
|
48
|
-
if (configs.length == counter)
|
|
49
|
-
Configuration.finishCreatingEachToken(tokens, errors, cb, errorCb);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
static finishCreatingEachToken(tokens, errors, cb, errorCb) {
|
|
54
|
-
if (errors.length >= 1)
|
|
55
|
-
errorCb(errors);
|
|
56
|
-
else
|
|
57
|
-
cb(tokens);
|
|
58
|
-
}
|
|
59
|
-
constructor(gatewayID, paymentType = PAYMENT_TYPE.CARD, purpose = PURPOSE.PAYMENT_SOURCE) {
|
|
60
|
-
if (ObjectHelper.values(PAYMENT_TYPE).indexOf(paymentType) === -1)
|
|
61
|
-
throw new Error('unsupported payment type');
|
|
62
|
-
if (ObjectHelper.values(PURPOSE).indexOf(purpose) === -1)
|
|
63
|
-
throw new Error('unsupported purpose');
|
|
64
|
-
this.env = new Env([
|
|
65
|
-
{ env: ENV.SANDBOX, url: 'https://api-sandbox.paydock.com' },
|
|
66
|
-
{ env: ENV.PROD, url: 'https://api.paydock.com' },
|
|
67
|
-
{ env: ENV.STAGING, url: 'https://apista.paydock.com' }
|
|
68
|
-
]);
|
|
69
|
-
this.configs = {
|
|
70
|
-
purpose: purpose,
|
|
71
|
-
predefined_fields: {
|
|
72
|
-
gateway_id: gatewayID,
|
|
73
|
-
type: paymentType
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
setWebHookDestination(url) {
|
|
78
|
-
this.configs.webhook_destination = url;
|
|
79
|
-
}
|
|
80
|
-
setSuccessRedirectUrl(url) {
|
|
81
|
-
this.configs.success_redirect_url = url;
|
|
82
|
-
}
|
|
83
|
-
setErrorRedirectUrl(url) {
|
|
84
|
-
this.configs.error_redirect_url = url;
|
|
85
|
-
}
|
|
86
|
-
setFormFields(fields) {
|
|
87
|
-
if (!Array.isArray(this.configs.defined_form_fields))
|
|
88
|
-
this.configs.defined_form_fields = [];
|
|
89
|
-
for (let index in fields) {
|
|
90
|
-
if (ObjectHelper.values(DEFINED_FORM_FIELDS).indexOf(fields[index]) !== -1)
|
|
91
|
-
this.configs.defined_form_fields.push(fields[index]);
|
|
92
|
-
else
|
|
93
|
-
console.warn(`Configuration::setFormFields: unsupported form field ${fields[index]}`);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
setEnv(env) {
|
|
97
|
-
this.env.setEnv(env);
|
|
98
|
-
}
|
|
99
|
-
getEnv() {
|
|
100
|
-
return this.env.getEnv();
|
|
101
|
-
}
|
|
102
|
-
createToken(publicKey, cb, errorCb = (err) => { }) {
|
|
103
|
-
this.send(publicKey, (data, status) => {
|
|
104
|
-
if (status >= 200 && status < 300)
|
|
105
|
-
return cb(data.resource.data.configuration_token);
|
|
106
|
-
if (typeof data.error === "undefined" || typeof data.error.message === "undefined")
|
|
107
|
-
errorCb('unknown error');
|
|
108
|
-
else
|
|
109
|
-
errorCb(data.error.message);
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
send(publicKey, cb) {
|
|
113
|
-
let request = new XMLHttpRequest();
|
|
114
|
-
request.open('POST', this.getUrl(), true);
|
|
115
|
-
request.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
|
|
116
|
-
request.setRequestHeader('x-user-public-key', publicKey);
|
|
117
|
-
request.send(JSON.stringify(this.getConfigs()));
|
|
118
|
-
request.onload = () => {
|
|
119
|
-
let res = {};
|
|
120
|
-
try {
|
|
121
|
-
res = JSON.parse(request.responseText);
|
|
122
|
-
}
|
|
123
|
-
catch (e) { }
|
|
124
|
-
cb(res, request.status);
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
getConfigs() {
|
|
128
|
-
return this.configs;
|
|
129
|
-
}
|
|
130
|
-
getUrl() {
|
|
131
|
-
return this.env.getConf().url + CONFIGURATION_LINK;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
//# sourceMappingURL=../../src/lib/widget/configuration.js.map
|