@paydock/client-sdk 0.1.0 → 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/.idea/client-sdk-3.iml +0 -12
- package/.idea/jsLibraryMappings.xml +0 -7
- package/.idea/misc.xml +0 -16
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -639
- package/.npmignore +0 -14
- 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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Container } from '../../components/container';
|
|
2
|
+
import { EventEmitter } from '../../helper/event-emitter';
|
|
3
|
+
import { ApiInternal } from "../../api/api-internal";
|
|
4
|
+
import { IFrame } from "../../components/iframe";
|
|
5
|
+
import { IEventData, IFrameEvent } from "../../components/iframe-event";
|
|
6
|
+
import { Link } from '../../components/link';
|
|
7
|
+
export interface IEventSizeData extends IEventData {
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const MESSAGE_WIDGET_STYLE: {
|
|
11
|
+
TEXT_COLOR: string;
|
|
12
|
+
FONT_SIZE: string;
|
|
13
|
+
FONT_FAMILY: string;
|
|
14
|
+
};
|
|
15
|
+
export declare class Message {
|
|
16
|
+
protected title: string;
|
|
17
|
+
protected message: string;
|
|
18
|
+
protected type: 'success' | 'error' | 'in_review';
|
|
19
|
+
protected window: Window;
|
|
20
|
+
protected eventEmitter: EventEmitter;
|
|
21
|
+
protected container: Container;
|
|
22
|
+
protected env: string;
|
|
23
|
+
protected alias?: string;
|
|
24
|
+
protected api: ApiInternal;
|
|
25
|
+
protected iFrame: IFrame;
|
|
26
|
+
protected event: IFrameEvent;
|
|
27
|
+
protected link: Link;
|
|
28
|
+
constructor(selector: string, title: string, message: string, type: 'success' | 'error' | 'in_review');
|
|
29
|
+
setEnv(env: string): void;
|
|
30
|
+
setStyles(styles: any): void;
|
|
31
|
+
load(): void;
|
|
32
|
+
useAutoResize(): void;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAQ,UAAU,EAAE,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,IAAI,EAAuB,MAAM,uBAAuB,CAAC;AAGlE,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;CAIhC,CAAC;AAEF,qBAAa,OAAO;IAcZ,SAAS,CAAC,KAAK,EAAE,MAAM;IACvB,SAAS,CAAC,OAAO,EAAE,MAAM;IACzB,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW;IAdrD,SAAS,CAAC,MAAM,EAAE,MAAM,CAAU;IAClC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAe;IACpC,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAC7B,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;gBAGjB,QAAQ,EAAE,MAAM,EACN,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW;IAW9C,MAAM,CAAC,GAAG,EAAE,MAAM;IAIlB,SAAS,CAAC,MAAM,EAAE,GAAG;IAUrB,IAAI;IAIJ,aAAa;CAWvB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
card: string;
|
|
3
|
+
bank_account: string;
|
|
4
|
+
paypal_wallet: string;
|
|
5
|
+
googlepay_wallet: string;
|
|
6
|
+
flypay: string;
|
|
7
|
+
zip_checkout: string;
|
|
8
|
+
applepay_wallet: string;
|
|
9
|
+
afterpay_wallet: string;
|
|
10
|
+
afterpay_checkout: string;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=payment-methods-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-methods-template.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/payment-methods-template.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,wBA+IE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference types="applepayjs" />
|
|
2
|
+
import type { ApiInternal } from '../../api/api-internal';
|
|
3
|
+
import { Container } from '../../components/container';
|
|
4
|
+
import { IFrame } from '../../components/iframe';
|
|
5
|
+
import type { IFrameEvent } from '../../components/iframe-event';
|
|
6
|
+
import type { EventEmitter } from '../../helper/event-emitter';
|
|
7
|
+
declare global {
|
|
8
|
+
interface Window {
|
|
9
|
+
ApplePaySession: ApplePaySession;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare const PAYMENTS_METHODS: {
|
|
13
|
+
APPLE_PAY: string;
|
|
14
|
+
GOOGLE_PAY: string;
|
|
15
|
+
};
|
|
16
|
+
export declare class PaymentMethods {
|
|
17
|
+
protected methods: string[];
|
|
18
|
+
protected styles: {
|
|
19
|
+
button_color?: string;
|
|
20
|
+
border_color?: string;
|
|
21
|
+
background_color?: string;
|
|
22
|
+
font_family?: string;
|
|
23
|
+
font_size?: string;
|
|
24
|
+
text_color?: string;
|
|
25
|
+
};
|
|
26
|
+
protected chosen: (type: string) => void;
|
|
27
|
+
protected window: Window;
|
|
28
|
+
protected eventEmitter: EventEmitter;
|
|
29
|
+
protected container: Container;
|
|
30
|
+
protected env: string;
|
|
31
|
+
protected alias?: string;
|
|
32
|
+
protected api: ApiInternal;
|
|
33
|
+
protected iFrame: IFrame;
|
|
34
|
+
protected event: IFrameEvent;
|
|
35
|
+
protected disablePaymentMethodOptions: boolean;
|
|
36
|
+
constructor(selector: string, methods: string[], styles: {
|
|
37
|
+
button_color?: string;
|
|
38
|
+
border_color?: string;
|
|
39
|
+
background_color?: string;
|
|
40
|
+
font_family?: string;
|
|
41
|
+
font_size?: string;
|
|
42
|
+
text_color?: string;
|
|
43
|
+
}, chosen: (type: string) => void, instruction_token: string, skip?: boolean);
|
|
44
|
+
private init;
|
|
45
|
+
private setListenerButtons;
|
|
46
|
+
setEnv(instruction_token: any): string;
|
|
47
|
+
private setStyles;
|
|
48
|
+
private isApplePaySupported;
|
|
49
|
+
private setStylesToStandaloneWidget;
|
|
50
|
+
private setPaymentMethodsOrder;
|
|
51
|
+
disablePaymentMethod(): void;
|
|
52
|
+
private queryAllPaymentSource;
|
|
53
|
+
private queryAllPaymentSourceRadioButtons;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=payment-methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-methods.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/payment-methods.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAGjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAO/D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,eAAe,EAAE,eAAe,CAAC;KAClC;CACF;AAED,eAAO,MAAM,gBAAgB;;;CAG5B,CAAC;AASF,qBAAa,cAAc;IAavB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE;IAC3B,SAAS,CAAC,MAAM,EAAE;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IACD,SAAS,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI;IArB1C,SAAS,CAAC,MAAM,EAAE,MAAM,CAAU;IAClC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAe;IACpC,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAC7B,SAAS,CAAC,2BAA2B,EAAE,OAAO,CAAC;gBAG7C,QAAQ,EAAE,MAAM,EACN,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,EACS,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EACxC,iBAAiB,EAAE,MAAM,EACzB,IAAI,UAAQ;IAYd,OAAO,CAAC,IAAI;IAuCZ,OAAO,CAAC,kBAAkB;IAuBnB,MAAM,CAAC,iBAAiB,KAAA;IAU/B,OAAO,CAAC,SAAS;IAoCjB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,2BAA2B;IAOnC,OAAO,CAAC,sBAAsB;IAUvB,oBAAoB;IAqC3B,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,iCAAiC;CAO1C"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: "\n<style>\n @import url('https://fonts.cdnfonts.com/css/segoe-ui-4');\n @import url('https://fonts.cdnfonts.com/css/droid-sans-2');\n @import url('https://fonts.cdnfonts.com/css/helvetica-neue-55');\n @import url('https://fonts.googleapis.com/css2?family=Cantarell&family=Fira+Sans&family=Oxygen&family=Roboto&family=Ubuntu&display=swap');\n \n /* RESET DEFAULT STYLES */\n *,\n *:before,\n *:after {\n box-sizing: border-box;\n }\n\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video,\n input {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n\n body {\n line-height: 1;\n }\n\n ol,\n ul {\n list-style: none;\n }\n\n ul {\n padding: 0;\n margin: 0;\n }\n\n /* MAIN STYLES */\n .wrap {\n padding: 10px;\n background-color: {{background_color}};\n }\n\n .widget-body {\n background-color: #fff;\n border: 1px solid {{border_color}};\n }\n\n .payment-source {\n cursor: pointer;\n padding: 1em 0.8em;\n display: flex;\n align-items: center;\n height: 70px;\n }\n\n .payment-source:not(:last-child) {\n border-bottom: 1px solid {{border_color}};\n }\n\n .payment-source__wrap {\n display: flex;\n align-items: center;\n font-family: {{font_family}};\n font-size: {{font_size}};\n color: {{text_color}}\n }\n\n .payment-source__radio {\n margin-right: 2em;\n width: 18px;\n min-width: 18px;\n height: 18px;\n border: 1px solid {{button_color}};\n border-radius: 50%;\n appearance: none;\n cursor: pointer;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n }\n }\n\n .payment-source__radio::before {\n content: \"\";\n display: block;\n width: 100%;\n height: 100%;\n background-color: #fff;\n border-radius: 50%;\n }\n\n .payment-source__radio:checked::before {\n border: 4px solid {{button_color}};\n outline: 1px solid {{button_color}};\n }\n\n .payment-source__title {\n margin-right: 2em;\n font-weight: 400;\n line-height: 1.2;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n font-size: 14px;\n }\n }\n\n .payment-source__icon {\n margin-right: 2em;\n max-height: 35px;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n }\n }\n\n .payment-source .card__scheme {\n margin-left: auto;\n display: flex;\n align-items: center;\n }\n\n .payment-source .card__scheme__item:not(:last-child) {\n margin-right: 10px;\n }\n\n .payment-source .card__scheme__img {\n max-width: 50px;\n\n @media screen and (max-width: 460px) {\n max-width: 40px;\n }\n\n @media screen and (max-width: 410px) {\n max-width: 30px;\n }\n }\n\n .payment-source__form {\n margin-top: 1em;\n margin-bottom: 1em;\n margin-left: calc(2em + 18px);\n\n @media screen and (max-width: 380px) {\n margin-left: calc(1em + 18px);\n }\n }\n\n .payment-source__form .form-group:not(:last-child) {\n margin-bottom: 1.5em;\n }\n\n .payment-source__form .form-control {\n padding: 10px 2px 10px 10px;\n height: 40px;\n background: #F9F9F9;\n border: 1px solid {{border_color}};\n }\n\n .payment-source__form .form-control:not(:last-child) {\n margin-right: 1.5em;\n }\n\n .payment-source__form .form-control.col-12 {\n width: calc(100% - 1.5em);\n }\n\n .payment-source__form .form-control.col-3 {\n width: calc(33.33% - 1.5em);\n }\n\n .footer__pay-btn {\n margin-left: auto;\n padding: 10px 2em;\n height: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #F6F0EB;\n font-size: 16px;\n background-color: {{button_color}};\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 0 0 0.5px rgba(0, 0, 0, 0.10);\n border: none;\n border-radius: 6px;\n cursor: pointer;\n }\n\n .footer__pay-btn--paypal {\n padding: 5px 2em;\n background-color: #FFC43A;\n }\n\n .footer__pay-btn--gpay {\n font-size: 22px;\n }\n\n .footer__pay-btn--gpay img {\n margin-left: 5px;\n }\n\n .footer__pay-btn img {\n max-height: 100%;\n }\n</style>\n<main class=\"wrap\">\n <div class=\"widget-body\">\n <ul class=\"payment-sources__list\">\n {{paymentMethods}}\n </ul>\n </div>\n</main>\n</div>\n";
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=payment-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-template.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/payment-template.ts"],"names":[],"mappings":";AAAA,wBAoTC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CheckoutButton } from '../checkout-button';
|
|
2
|
+
import { AdditionalParams } from '../runner';
|
|
3
|
+
/**
|
|
4
|
+
* Class AfterpayCheckoutButton is wrapper of CheckoutButton transform usual button into checkout
|
|
5
|
+
*
|
|
6
|
+
* @extends CheckoutButton
|
|
7
|
+
*
|
|
8
|
+
* @constructor
|
|
9
|
+
*
|
|
10
|
+
* @param {string} selector - Selector of html element.
|
|
11
|
+
* @param {string} accessToken - PayDock access-token or users public key
|
|
12
|
+
* @param {string} [gatewayId=default] - PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway
|
|
13
|
+
* @example
|
|
14
|
+
* var widget = new AfterpayCheckoutButton('#button', 'access-token','gatewayId');
|
|
15
|
+
*/
|
|
16
|
+
declare class AfterpayCheckoutButton extends CheckoutButton {
|
|
17
|
+
protected accessToken: string;
|
|
18
|
+
protected gatewayId: string;
|
|
19
|
+
protected showETP: boolean;
|
|
20
|
+
/** @constructs */ constructor(selector: string, accessToken: string, gatewayId?: string);
|
|
21
|
+
/**
|
|
22
|
+
* Method which toggles the "Enhanced Tracking Protection" warning popup to 'on' mode.
|
|
23
|
+
*
|
|
24
|
+
* This popup with a warning about "Enhanced Tracking Protection" limitations
|
|
25
|
+
* would be shown in the Mozilla Firefox browser version 100+
|
|
26
|
+
*
|
|
27
|
+
* By default, the popup would not be shown, until
|
|
28
|
+
* the flag would be set to `true`
|
|
29
|
+
|
|
30
|
+
* @param {doShow} boolean - flag which toggle the popup visibility
|
|
31
|
+
*/
|
|
32
|
+
showEnhancedTrackingProtectionPopup(doShow: boolean): void;
|
|
33
|
+
protected buildAdditionalParams(): AdditionalParams;
|
|
34
|
+
}
|
|
35
|
+
export { AfterpayCheckoutButton };
|
|
36
|
+
//# sourceMappingURL=afterpay-checkout-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"afterpay-checkout-button.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/afterpay/afterpay-checkout-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;;;;;;;;;GAYG;AACH,cAAM,sBAAuB,SAAQ,cAAc;IAIjB,SAAS,CAAC,WAAW,EAAE,MAAM;IAAE,SAAS,CAAC,SAAS,EAAE,MAAM;IAHxF,SAAS,CAAC,OAAO,UAAS;IAE1B,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAY,WAAW,EAAE,MAAM,EAAY,SAAS,GAAE,MAAkB;IAIpG;;;;;;;;;;OAUG;IACI,mCAAmC,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAMjE,SAAS,CAAC,qBAAqB,IAAI,gBAAgB;CAOtD;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AdditionalParams, IContextualRunner, PopupRunner } from '../runner';
|
|
2
|
+
import { ICheckout } from '../../external-checkout';
|
|
3
|
+
import { CheckoutContextualHandlerData } from '../checkout-contextual-handler';
|
|
4
|
+
export declare class AfterpayRunner extends PopupRunner implements IContextualRunner {
|
|
5
|
+
getSuccessRedirectUri(): string;
|
|
6
|
+
getErrorRedirectUri(): string;
|
|
7
|
+
next(checkoutData: ICheckout, params?: AdditionalParams): void;
|
|
8
|
+
onCheckout<T extends CheckoutContextualHandlerData>(event: string, cb: (checkout: ICheckout, data?: T) => void): void;
|
|
9
|
+
error(error: string, code: string, callback: any): any;
|
|
10
|
+
run(): void;
|
|
11
|
+
protected getRedirectUrl(checkout: ICheckout, params?: AdditionalParams): string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=afterpay.runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"afterpay.runner.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/afterpay/afterpay.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAc/E,qBAAa,cAAe,SAAQ,WAAY,YAAW,iBAAiB;IACjE,qBAAqB,IAAI,MAAM;IAO/B,mBAAmB,IAAI,MAAM;IAM7B,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,gBAAgB;IAQvD,UAAU,CAAC,CAAC,SAAS,6BAA6B,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI;IAc9G,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,KAAA;IAQ3C,GAAG,IAAI,IAAI;IAalB,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,MAAM;CASnF"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Container } from '../components/container';
|
|
2
|
+
import { CHECKOUT_MODE, GATEWAY_TYPE } from './checkout-button.interface';
|
|
3
|
+
import { Background } from '../components/background';
|
|
4
|
+
import { EventEmitter } from '../helper/event-emitter';
|
|
5
|
+
import { IPayPalMeta, IAfterpayMeta, IZipmoneyMeta } from '../components/param';
|
|
6
|
+
import { AdditionalParams, IContextualRunner, IRedirectRunner } from './runner';
|
|
7
|
+
import { CheckoutContextualHandler } from './checkout-contextual-handler';
|
|
8
|
+
/**
|
|
9
|
+
* Class CheckoutButton transform usual button into checkout
|
|
10
|
+
*
|
|
11
|
+
* @constructor
|
|
12
|
+
*
|
|
13
|
+
* @param {string} selector - Selector of html element.
|
|
14
|
+
* @param {string} aceessToken - PayDock access token or users public key
|
|
15
|
+
* @param {string} [gatewayId=default] - PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway
|
|
16
|
+
* @param {string} [type=PaypalClassic] - Type of gateway (PaypalClassic, Zipmoney)
|
|
17
|
+
* @example
|
|
18
|
+
* var widget = new CheckoutButton('#button', 'accessToken','gatewayId');
|
|
19
|
+
*/
|
|
20
|
+
declare class CheckoutButton {
|
|
21
|
+
protected accessToken: string;
|
|
22
|
+
protected gatewayId: string;
|
|
23
|
+
protected gatewayType: GATEWAY_TYPE;
|
|
24
|
+
protected mode: CHECKOUT_MODE;
|
|
25
|
+
protected window: Window;
|
|
26
|
+
protected eventEmitter: EventEmitter;
|
|
27
|
+
protected container: Container;
|
|
28
|
+
protected meta: IPayPalMeta;
|
|
29
|
+
protected runner: IContextualRunner | IRedirectRunner;
|
|
30
|
+
protected background?: Background;
|
|
31
|
+
protected checkoutHandler?: CheckoutContextualHandler;
|
|
32
|
+
protected env: string;
|
|
33
|
+
protected alias?: string;
|
|
34
|
+
/** @constructs */ constructor(selector: string, accessToken: string, gatewayId?: string, gatewayType?: GATEWAY_TYPE, mode?: CHECKOUT_MODE);
|
|
35
|
+
protected chooseRunner(gatewayType: GATEWAY_TYPE, mode: CHECKOUT_MODE): void;
|
|
36
|
+
protected buildAdditionalParams(): AdditionalParams;
|
|
37
|
+
protected initCheckout(container: Container): void;
|
|
38
|
+
/**
|
|
39
|
+
* This callback will be called for each event in payment source widget
|
|
40
|
+
*
|
|
41
|
+
* @callback listener
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Listen to events of widget
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
*
|
|
48
|
+
* widget.on('click', function () {
|
|
49
|
+
*
|
|
50
|
+
* });
|
|
51
|
+
* @param {string} eventName - Available event names [CHECKOUT_BUTTON_EVENT]{@link CHECKOUT_BUTTON_EVENT}
|
|
52
|
+
* @param {listener} cb
|
|
53
|
+
*/
|
|
54
|
+
on<T = object>(name: string, handler: (data: T) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* Close popup window forcibly.
|
|
57
|
+
* Only for 'contextual' mode.
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
close(): void;
|
|
61
|
+
/**
|
|
62
|
+
* After finish event of checkout button, data (dataType) will be insert to input (selector)
|
|
63
|
+
*
|
|
64
|
+
* @param {string} selector - css selector . [] #
|
|
65
|
+
* @param {string} dataType - data type of IEventCheckoutFinishData [IEventCheckoutFinishData]{@link #IEventCheckoutFinishData}.
|
|
66
|
+
*/
|
|
67
|
+
onFinishInsert(selector: string, dataType: string): void;
|
|
68
|
+
/**
|
|
69
|
+
* Method for setting meta information for checkout page
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* button.setMeta({
|
|
73
|
+
brand_name: 'paydock',
|
|
74
|
+
reference: '15',
|
|
75
|
+
email: 'wault@paydock.com'
|
|
76
|
+
});
|
|
77
|
+
*
|
|
78
|
+
* @param {(IPayPalMeta|IAfterpayMeta|IZipmoneyMeta)} meta - Data which can be shown on checkout page [IPayPalMeta]{@link IPayPalMeta} [IZipmoneyMeta]{@link IZipmoneyMeta} [IAfterpayMeta]{@link IAfterpayMeta}
|
|
79
|
+
*/
|
|
80
|
+
setMeta(meta: IPayPalMeta | IAfterpayMeta | IZipmoneyMeta): void;
|
|
81
|
+
/**
|
|
82
|
+
* Method for setting backdrop description.
|
|
83
|
+
* Only for 'contextual' mode.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* button.setBackdropDescription('Custom description');
|
|
87
|
+
*
|
|
88
|
+
* @param {string} text - description which can be shown in overlay of back side checkout page
|
|
89
|
+
*/
|
|
90
|
+
setBackdropDescription(text: string): void;
|
|
91
|
+
/**
|
|
92
|
+
* Method for setting backdrop title.
|
|
93
|
+
* Only for 'contextual' mode.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* button.setBackdropTitle('Custom title');
|
|
97
|
+
*
|
|
98
|
+
* @param {text} string - title which can be shown in overlay of back side checkout page
|
|
99
|
+
*/
|
|
100
|
+
setBackdropTitle(text: string): void;
|
|
101
|
+
/**
|
|
102
|
+
* Method for setting suspended redirect uri. Redirect after referred checkout.
|
|
103
|
+
* Only for 'contextual' mode.
|
|
104
|
+
*
|
|
105
|
+
* @param {uri} string - uri for redirect (by default)
|
|
106
|
+
*/
|
|
107
|
+
setSuspendedRedirectUri(uri: string): void;
|
|
108
|
+
/**
|
|
109
|
+
* Method for setting the merchant redirect URL.
|
|
110
|
+
* Merchant's customers redirect after successfull checkout.
|
|
111
|
+
* Only for 'redirect' mode.
|
|
112
|
+
*
|
|
113
|
+
* @param {url} string - redirect url
|
|
114
|
+
*/
|
|
115
|
+
setRedirectUrl(url: string): void;
|
|
116
|
+
getSuccessRedirectUri(): string;
|
|
117
|
+
/**
|
|
118
|
+
* Method for disable backdrop on the page.
|
|
119
|
+
* Only for 'contextual' mode.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* button.turnOffBackdrop();
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
turnOffBackdrop(): void;
|
|
126
|
+
protected turnOffControlBackdrop(): void;
|
|
127
|
+
protected turnOffLoaderBackdrop(): void;
|
|
128
|
+
setEnv(env: string, alias?: string): void;
|
|
129
|
+
getEnv(): string;
|
|
130
|
+
private getRunnerByMode;
|
|
131
|
+
private assertMethodSupport;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @interface IEventCheckoutFinishData
|
|
135
|
+
*
|
|
136
|
+
* @param {string} [payment_source_token]
|
|
137
|
+
*/
|
|
138
|
+
export { CheckoutButton };
|
|
139
|
+
//# sourceMappingURL=checkout-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout-button.d.ts","sourceRoot":"","sources":["../../src/checkout-button/checkout-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAyB,aAAa,EAAE,YAAY,EAAqD,MAAM,6BAA6B,CAAC;AAEpJ,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAwC,MAAM,UAAU,CAAC;AAKtH,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E;;;;;;;;;;;GAWG;AACH,cAAM,cAAc;IAgBZ,SAAS,CAAC,WAAW,EAAE,MAAM;IAC7B,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,WAAW,EAAE,YAAY;IACnC,SAAS,CAAC,IAAI,EAAE,aAAa;IAlBjC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAU;IAClC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAE/B,SAAS,CAAC,IAAI,EAAE,WAAW,CAAM;IACjC,SAAS,CAAC,MAAM,EAAE,iBAAiB,GAAG,eAAe,CAAC;IAEtD,SAAS,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IAClC,SAAS,CAAC,eAAe,CAAC,EAAE,yBAAyB,CAAC;IACtD,SAAS,CAAC,GAAG,EAAE,MAAM,CAAe;IACpC,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEzB,kBAAkB,aAEd,QAAQ,EAAE,MAAM,EACN,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAkB,EAC7B,WAAW,GAAE,YAAkC,EAC/C,IAAI,GAAE,aAAwC;IAQ5D,SAAS,CAAC,YAAY,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa;IAmBrE,SAAS,CAAC,qBAAqB,IAAI,gBAAgB;IAInD,SAAS,CAAC,YAAY,CAAC,SAAS,EAAE,SAAS;IAwC3C;;;;OAIG;IAEH;;;;;;;;;;OAUG;IACI,EAAE,CAAC,CAAC,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI;IAI9D;;;;OAIG;IACI,KAAK;IAKZ;;;;;OAKG;IACI,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAMxD;;;;;;;;;;;OAWG;IACI,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,aAAa,GAAG,aAAa;IAIhE;;;;;;;;OAQG;IACI,sBAAsB,CAAC,IAAI,EAAE,MAAM;IAK1C;;;;;;;;OAQG;IACI,gBAAgB,CAAC,IAAI,EAAE,MAAM;IAKpC;;;;;OAKG;IACI,uBAAuB,CAAC,GAAG,EAAE,MAAM;IAK1C;;;;;;OAMG;IACI,cAAc,CAAC,GAAG,EAAE,MAAM;IAK1B,qBAAqB;IAI5B;;;;;;;OAOG;IACI,eAAe,IAAI,IAAI;IAK9B,SAAS,CAAC,sBAAsB;IAKhC,SAAS,CAAC,qBAAqB;IAIxB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAOlC,MAAM,IAAI,MAAM;IAIvB,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,mBAAmB;CA0B9B;AAED;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @type {object}
|
|
3
|
+
* @param {string} CLICK=click
|
|
4
|
+
* @param {string} POPUP_REDIRECT=popup_redirect
|
|
5
|
+
* @param {string} ERROR=error
|
|
6
|
+
* @param {string} ACCEPTED=accepted
|
|
7
|
+
* @param {string} FINISH=finish
|
|
8
|
+
* @param {string} CLOSE=close
|
|
9
|
+
*/
|
|
10
|
+
export declare const CHECKOUT_BUTTON_EVENT: {
|
|
11
|
+
CLICK: string;
|
|
12
|
+
POPUP_REDIRECT: string;
|
|
13
|
+
REDIRECT: string;
|
|
14
|
+
ERROR: string;
|
|
15
|
+
REFERRED: string;
|
|
16
|
+
DECLINED: string;
|
|
17
|
+
CANCELLED: string;
|
|
18
|
+
ACCEPTED: string;
|
|
19
|
+
FINISH: string;
|
|
20
|
+
CLOSE: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @type {object}
|
|
24
|
+
* @param {string} CONTEXTUAL=contextual
|
|
25
|
+
* @param {string} REDIRECT=redirect
|
|
26
|
+
*/
|
|
27
|
+
export declare enum CHECKOUT_MODE {
|
|
28
|
+
CONTEXTUAL = "contextual",
|
|
29
|
+
REDIRECT = "redirect"
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @param {string} ZIPMONEY=Zipmoney
|
|
34
|
+
* @param {string} PAYPAL=PaypalClassic
|
|
35
|
+
* @param {string} AFTERPAY=Afterpay
|
|
36
|
+
*/
|
|
37
|
+
export declare enum GATEWAY_TYPE {
|
|
38
|
+
ZIPMONEY = "Zipmoney",
|
|
39
|
+
PAYPAL = "PaypalClassic",
|
|
40
|
+
AFTERPAY = "Afterpay"
|
|
41
|
+
}
|
|
42
|
+
export interface IEventCheckoutFinishData {
|
|
43
|
+
payment_source_token: string;
|
|
44
|
+
checkout_email: string;
|
|
45
|
+
checkout_holder: string;
|
|
46
|
+
gateway_type: string;
|
|
47
|
+
}
|
|
48
|
+
export declare const CHECKOUT_BTN_LOG_PREFIX = "[Paydock:CheckoutButton]";
|
|
49
|
+
//# sourceMappingURL=checkout-button.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout-button.interface.d.ts","sourceRoot":"","sources":["../../src/checkout-button/checkout-button.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;CAWjC,CAAC;AAEF;;;;GAIG;AACH,oBAAY,aAAa;IACrB,UAAU,eAAe;IACzB,QAAQ,aAAa;CACxB;AAED;;;;;GAKG;AACH,oBAAY,YAAY;IACpB,QAAQ,aAAa;IACrB,MAAM,kBAAkB;IACxB,QAAQ,aAAa;CACxB;AAED,MAAM,WAAW,wBAAwB;IACrC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,uBAAuB,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IDetails } from '../external-checkout/index';
|
|
2
|
+
import { Background } from '../components/background';
|
|
3
|
+
import { IContextualRunner } from './runner';
|
|
4
|
+
import { EventEmitter } from '../helper/event-emitter';
|
|
5
|
+
import { IDispatcherData } from '../components/dispatcher';
|
|
6
|
+
interface CheckoutContextualHandlerParams {
|
|
7
|
+
accessToken: string;
|
|
8
|
+
gatewayId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CheckoutContextualHandlerData extends IDispatcherData {
|
|
11
|
+
isCloseEvent?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class CheckoutContextualHandler {
|
|
14
|
+
protected background: Background;
|
|
15
|
+
protected runner: IContextualRunner;
|
|
16
|
+
protected eventEmitter: EventEmitter;
|
|
17
|
+
protected params: CheckoutContextualHandlerParams;
|
|
18
|
+
protected env: string;
|
|
19
|
+
protected details: IDetails;
|
|
20
|
+
constructor(background: Background, runner: IContextualRunner, eventEmitter: EventEmitter, params: CheckoutContextualHandlerParams);
|
|
21
|
+
init(env: string): void;
|
|
22
|
+
setEnv(env: string): void;
|
|
23
|
+
protected checkToken(token: string, cb: () => void): void;
|
|
24
|
+
protected createOneTimeToken(token: string): void;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=checkout-contextual-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout-contextual-handler.d.ts","sourceRoot":"","sources":["../../src/checkout-button/checkout-contextual-handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAsC,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAgB,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,UAAU,+BAA+B;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,6BAA8B,SAAQ,eAAe;IAClE,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,qBAAa,yBAAyB;IAK9B,SAAS,CAAC,UAAU,EAAE,UAAU;IAChC,SAAS,CAAC,MAAM,EAAE,iBAAiB;IACnC,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,EAAE,+BAA+B;IAPrD,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC;gBAGd,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,iBAAiB,EACzB,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,+BAA+B;IAO9C,IAAI,CAAC,GAAG,EAAE,MAAM;IAsChB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIhC,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,IAAI;IAgBlD,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM;CAmB7C"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export { CHECKOUT_BUTTON_EVENT, type IEventCheckoutFinishData } from './checkout-button.interface';
|
|
2
|
+
export { ZipmoneyCheckoutButton } from './zipmoney/zipmoney-checkout-button';
|
|
3
|
+
export { AfterpayCheckoutButton } from './afterpay/afterpay-checkout-button';
|
|
4
|
+
export { PaypalCheckoutButton } from './paypal/paypal-checkout-button';
|
|
5
|
+
/**
|
|
6
|
+
* Interface for PayPal checkout meta information
|
|
7
|
+
* @interface IPayPalMeta
|
|
8
|
+
*
|
|
9
|
+
* @param {string} [brand_name] A label that overrides the business name in the PayPal account on the PayPal hosted checkout pages
|
|
10
|
+
* @param {string} [cart_border_color] The HTML hex code for your principal identifying color
|
|
11
|
+
* @param {string} [reference] Merchant Customer Service number displayed on the PayPal pages
|
|
12
|
+
* @param {string} [email] The consumer’s email
|
|
13
|
+
* @param {string} [hdr_img] URL for the image you want to appear at the top left of the payment page
|
|
14
|
+
* @param {string} [logo_img] A URL to your logo image
|
|
15
|
+
* @param {string} [pay_flow_color] Sets the background color for the payment page. By default, the color is white.
|
|
16
|
+
* @param {string} [first_name] The consumer’s given names
|
|
17
|
+
* @param {string} [last_name] The consumer’s surname
|
|
18
|
+
* @param {string} [address_line] Street address
|
|
19
|
+
* @param {string} [address_line2] Second line of the address
|
|
20
|
+
* @param {string} [address_city] City
|
|
21
|
+
* @param {string} [address_state] State
|
|
22
|
+
* @param {string} [address_postcode] Postcode
|
|
23
|
+
* @param {string} [address_country] Country
|
|
24
|
+
* @param {string} [phone] The consumer’s phone number in E.164 international notation (Example: +12345678901)
|
|
25
|
+
* @param {boolean} [hide_shipping_address] Determines whether PayPal displays shipping address fields on the PayPal pages
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Interface for ZipMoney checkout meta information
|
|
29
|
+
* @interface IZipmoneyMeta
|
|
30
|
+
|
|
31
|
+
* @param {string} first_name First name for the customer
|
|
32
|
+
* @param {string} last_name Last name for the customer
|
|
33
|
+
* @param {string} [phone] The consumer’s phone number in E.164 international notation (Example: +12345678901)
|
|
34
|
+
* @param {boolean} [tokenize] Controls whether to tokenize the zip pay / zip money account, defaults to ‘false’
|
|
35
|
+
* @param {string} email The consumer’s email
|
|
36
|
+
* @param {string} [gender] Gender name for the customer
|
|
37
|
+
* @param {string} [date_of_birth] Date of birth name for the customer
|
|
38
|
+
* @param {number} charge.amount Amount to be paid
|
|
39
|
+
* @param {string} [charge.currency] Currency code
|
|
40
|
+
* @param {string} [charge.reference] Reference
|
|
41
|
+
* @param {array} charge.items Collections of orders
|
|
42
|
+
* @param {string} charge.items[].name Name of the item
|
|
43
|
+
* @param {number} charge.items[].amount Amount of the item
|
|
44
|
+
* @param {integer} charge.items[].quantity Quantity of the item
|
|
45
|
+
* @param {string} [charge.items[].type] type of the item, values can be: ‘sku’, ‘tax’, ‘shipping’, ‘discount’
|
|
46
|
+
* @param {string} [charge.items[].reference] reference of the item
|
|
47
|
+
* @param {string} [charge.items[].item_uri] url of the item in your store
|
|
48
|
+
* @param {string} [charge.items[].image_url] url of the image in your store
|
|
49
|
+
* @param {string} [charge.shipping_type] Shipping type, values can be: ‘pickup’, ‘delivery’, defaults to ‘delivery’
|
|
50
|
+
* @param {string} [charge.shipping_address] Object with shipping address details
|
|
51
|
+
* @param {string} [charge.shipping_address.first_name] Shipping first name
|
|
52
|
+
* @param {string} [charge.shipping_address.last_name] Shipping last name
|
|
53
|
+
* @param {string} charge.shipping_address.line1 Shipping address line 1
|
|
54
|
+
* @param {string} charge.shipping_address.line2 Shipping address line 2
|
|
55
|
+
* @param {string} charge.shipping_address.city Shipping city
|
|
56
|
+
* @param {string} charge.shipping_address.state Shipping state
|
|
57
|
+
* @param {string} charge.shipping_address.postcode Shipping postcode
|
|
58
|
+
* @param {string} charge.shipping_address.country Shipping country
|
|
59
|
+
* @param {string} charge.billing_address Object with billing address details
|
|
60
|
+
* @param {string} [charge.billing_address.first_name] Billing first name
|
|
61
|
+
* @param {string} [charge.billing_address.last_name] Billing last name
|
|
62
|
+
* @param {string} charge.billing_address.line1 Billing address line 1
|
|
63
|
+
* @param {string} [charge.billing_address.line2] Billing address line 1
|
|
64
|
+
* @param {string} charge.billing_address.city Billing city
|
|
65
|
+
* @param {string} charge.billing_address.state Billing state
|
|
66
|
+
* @param {string} charge.billing_address.postcode Billing postcode
|
|
67
|
+
* @param {string} charge.billing_address.country Billing country
|
|
68
|
+
*/
|
|
69
|
+
/**
|
|
70
|
+
* Interface for Afterpay checkout meta information
|
|
71
|
+
* @interface IAfterpayMeta
|
|
72
|
+
* @param {number} [amount]
|
|
73
|
+
* @param {number} [currency]
|
|
74
|
+
* @param {string} [first_name]
|
|
75
|
+
* @param {string} [last_name]
|
|
76
|
+
* @param {string} [email]
|
|
77
|
+
* @param {string} [address_line]
|
|
78
|
+
* @param {string} [address_line2]
|
|
79
|
+
* @param {string} [address_city]
|
|
80
|
+
* @param {string} [address_state]
|
|
81
|
+
* @param {string} [address_postcode]
|
|
82
|
+
* @param {string} [address_country]
|
|
83
|
+
* @param {string} [phone]
|
|
84
|
+
*/
|
|
85
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/checkout-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,KAAK,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAEtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH;;;;;;;;;;;;;;;GAeG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CheckoutButton } from '../checkout-button';
|
|
2
|
+
/**
|
|
3
|
+
* Class PaypalCheckoutButton is wrapper of CheckoutButton transform usual button into checkout
|
|
4
|
+
*
|
|
5
|
+
* @extends CheckoutButton
|
|
6
|
+
*
|
|
7
|
+
* @constructor
|
|
8
|
+
*
|
|
9
|
+
* @param {string} selector - Selector of html element.
|
|
10
|
+
* @param {string} publicKey - PayDock users public key
|
|
11
|
+
* @param {string} [gatewayId=default] - PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway
|
|
12
|
+
* @example
|
|
13
|
+
* var widget = new PaypalCheckoutButton('#button', 'publicKey','gatewayId');
|
|
14
|
+
*/
|
|
15
|
+
declare class PaypalCheckoutButton extends CheckoutButton {
|
|
16
|
+
protected publicKey: string;
|
|
17
|
+
protected gatewayId: string;
|
|
18
|
+
/** @constructs */ constructor(selector: string, publicKey: string, gatewayId?: string);
|
|
19
|
+
}
|
|
20
|
+
export { PaypalCheckoutButton };
|
|
21
|
+
//# sourceMappingURL=paypal-checkout-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paypal-checkout-button.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/paypal/paypal-checkout-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD;;;;;;;;;;;;GAYG;AACH,cAAM,oBAAqB,SAAQ,cAAc;IAEf,SAAS,CAAC,SAAS,EAAE,MAAM;IAAE,SAAS,CAAC,SAAS,EAAE,MAAM;IADtF,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAY,SAAS,EAAE,MAAM,EAAY,SAAS,GAAE,MAAkB;CAGrG;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paypal.runner.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/paypal/paypal.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAM3D,qBAAa,YAAa,SAAQ,WAAY,YAAW,iBAAiB;IAC/D,qBAAqB,IAAI,MAAM;IAO/B,mBAAmB,IAAI,MAAM;CAKvC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ICheckout } from '../../external-checkout';
|
|
2
|
+
import { Env } from '../../configs/env';
|
|
3
|
+
export type AdditionalParams = Record<string, string | number | boolean>;
|
|
4
|
+
export type Constructable<T = BaseRunner> = new (...args: any[]) => T;
|
|
5
|
+
export interface IRunner {
|
|
6
|
+
next(checkoutData: ICheckout, params?: AdditionalParams): void;
|
|
7
|
+
error(error: string, code: string, cb: (close: boolean) => void): void;
|
|
8
|
+
getSuccessRedirectUri(): string;
|
|
9
|
+
getErrorRedirectUri(): string;
|
|
10
|
+
setEnv(env: string, alias?: string): void;
|
|
11
|
+
}
|
|
12
|
+
export declare abstract class BaseRunner implements Partial<IRunner> {
|
|
13
|
+
widgetEnv: Env;
|
|
14
|
+
constructor();
|
|
15
|
+
error(error: string, code: string, callback: any): void;
|
|
16
|
+
setEnv(env: string, alias?: string): void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=base.runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.runner.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/runner/base.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,GAAG,EAAc,MAAM,mBAAmB,CAAC;AAEpD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAEzE,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,UAAU,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAEtE,MAAM,WAAW,OAAO;IACpB,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE/D,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAAC;IAEvE,qBAAqB,IAAI,MAAM,CAAC;IAEhC,mBAAmB,IAAI,MAAM,CAAC;IAE9B,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7C;AAED,8BAAsB,UAAW,YAAW,OAAO,CAAC,OAAO,CAAC;IACxD,SAAS,EAAE,GAAG,CAAC;;IAMR,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,KAAA,GAAG,IAAI;IAIlD,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;CAGnD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Background } from '../../components/background';
|
|
2
|
+
import { IRunner, Constructable } from './base.runner';
|
|
3
|
+
import { ICheckout } from '../../external-checkout';
|
|
4
|
+
import { IDispatcherData } from '../../components/dispatcher';
|
|
5
|
+
export declare enum RUNNER_EVENT {
|
|
6
|
+
SUCCESS = "success",
|
|
7
|
+
DECLINED = "declined",
|
|
8
|
+
CLOSE = "close",
|
|
9
|
+
REFERRED = "referred",
|
|
10
|
+
ERROR = "error"
|
|
11
|
+
}
|
|
12
|
+
export interface IContextualRunner extends IRunner {
|
|
13
|
+
run(): void;
|
|
14
|
+
isRunning(): boolean;
|
|
15
|
+
continue(): void;
|
|
16
|
+
stop(): void;
|
|
17
|
+
onStop(cb: () => void): void;
|
|
18
|
+
onCheckout<T extends IDispatcherData>(event: string, cb: (checkout: ICheckout, data?: T) => void): void;
|
|
19
|
+
setBackgroundTitle(text: string): void;
|
|
20
|
+
setBackgroundDescription(text: string): void;
|
|
21
|
+
turnOffBackdrop(): void;
|
|
22
|
+
setSuspendedRedirectUri(uri: string): void;
|
|
23
|
+
}
|
|
24
|
+
export declare function ContextualRunner<BR extends Constructable>(Runner?: BR): {
|
|
25
|
+
new (...args: any[]): {
|
|
26
|
+
background: Background;
|
|
27
|
+
suspendedRedirectUri: string;
|
|
28
|
+
continue(): void;
|
|
29
|
+
stop(): void;
|
|
30
|
+
error(error: string, code: string, callback: any): void;
|
|
31
|
+
setSuspendedRedirectUri(uri: string): void;
|
|
32
|
+
setBackgroundTitle(text: string): void;
|
|
33
|
+
setBackgroundDescription(text: string): void;
|
|
34
|
+
turnOffBackdrop(): void;
|
|
35
|
+
widgetEnv: import("../../configs/env").Env;
|
|
36
|
+
setEnv(env: string, alias?: string): void;
|
|
37
|
+
};
|
|
38
|
+
} & BR;
|
|
39
|
+
//# sourceMappingURL=contextual.runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextual.runner.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/runner/contextual.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiC,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAc,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,oBAAY,YAAY;IACpB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,KAAK,UAAU;CAClB;AAED,MAAM,WAAW,iBAAkB,SAAQ,OAAO;IAC9C,GAAG,IAAI,IAAI,CAAC;IAEZ,SAAS,IAAI,OAAO,CAAC;IAErB,QAAQ,IAAI,IAAI,CAAC;IAEjB,IAAI,IAAI,IAAI,CAAC;IAEb,MAAM,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAE7B,UAAU,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI,GAAG,IAAI,CAAC;IAExG,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7C,eAAe,IAAI,IAAI,CAAC;IAExB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9C;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,aAAa,EAAE,MAAM,GAAE,EAAqB;kBAKpD,GAAG,EAAE;oBAHrB,UAAU;8BACA,MAAM;oBAST,IAAI;gBAER,IAAI;qBAEC,MAAM,QAAQ,MAAM,kBAAa,IAAI;qCAIrB,MAAM;iCAIV,MAAM,GAAG,IAAI;uCAIP,MAAM,GAAG,IAAI;2BAIzB,IAAI;;;;OAKrC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IContextualRunner } from './contextual.runner';
|
|
2
|
+
import { IRedirectRunner } from './redirect.runner';
|
|
3
|
+
export * from './base.runner';
|
|
4
|
+
export * from './contextual.runner';
|
|
5
|
+
export * from './popup.runner';
|
|
6
|
+
export * from './redirect.runner';
|
|
7
|
+
export declare function isContextualRunner(runner: IContextualRunner | IRedirectRunner): runner is IContextualRunner;
|
|
8
|
+
export declare function isRedirectRunner(runner: IContextualRunner | IRedirectRunner): runner is IRedirectRunner;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|