@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
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { ApiInternal } from "../api/api-internal";
|
|
2
|
+
import { Container } from "../components/container";
|
|
3
|
+
import { EventEmitter } from "../helper/event-emitter";
|
|
4
|
+
import { type IWalletService } from "./wallet-services/wallet-service";
|
|
5
|
+
import { type IWalletMeta } from "../components/param";
|
|
6
|
+
import type { IWalletPaymentSuccessful, IWalletUnavailable, IWalletUpdate } from "./interfaces";
|
|
7
|
+
/**
|
|
8
|
+
* List of available event's name in the wallet button lifecycle
|
|
9
|
+
* @const EVENT
|
|
10
|
+
*
|
|
11
|
+
* @type {object}
|
|
12
|
+
* @param {string} UNAVAILABLE=unavailable
|
|
13
|
+
* @param {string} UPDATE=update
|
|
14
|
+
* @param {string} PAYMENT_SUCCESSFUL=paymentSuccessful
|
|
15
|
+
* @param {string} PAYMENT_ERROR=paymentError
|
|
16
|
+
*/
|
|
17
|
+
export declare const EVENT: {
|
|
18
|
+
UNAVAILABLE: string;
|
|
19
|
+
UPDATE: string;
|
|
20
|
+
PAYMENT_SUCCESSFUL: string;
|
|
21
|
+
PAYMENT_ERROR: string;
|
|
22
|
+
PAYMENT_IN_REVIEW: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Interface of data from events.
|
|
26
|
+
* @interface IEventData
|
|
27
|
+
*
|
|
28
|
+
* @param {string} event
|
|
29
|
+
* @param {void | IWalletPaymentSuccessful | IWalletUpdate | IWalletUnavailable | any} data
|
|
30
|
+
* */
|
|
31
|
+
export interface IEventData {
|
|
32
|
+
event: string;
|
|
33
|
+
data: void | IWalletPaymentSuccessful | IWalletUpdate | IWalletUnavailable | any;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Interface of data from a successful payment result.
|
|
37
|
+
* @interface IWalletPaymentSuccessful
|
|
38
|
+
*
|
|
39
|
+
* @param {string} id
|
|
40
|
+
* @param {number} amount
|
|
41
|
+
* @param {string} currency
|
|
42
|
+
* @param {string} status
|
|
43
|
+
* @param {string} [payer_name]
|
|
44
|
+
* @param {string} [payer_email]
|
|
45
|
+
* @param {string} [payer_phone]
|
|
46
|
+
* */
|
|
47
|
+
/**
|
|
48
|
+
* Interface of data from an update event.
|
|
49
|
+
* @interface IWalletUpdate
|
|
50
|
+
*
|
|
51
|
+
* @param {string} [wallet_response_code]
|
|
52
|
+
* @param {string} [wallet_session_id]
|
|
53
|
+
* @param {object} [payment_source]
|
|
54
|
+
* @param {string} [payment_source.wallet_payment_method_id]
|
|
55
|
+
* @param {string} [payment_source.card_number_last4]
|
|
56
|
+
* @param {string} [payment_source.card_scheme]
|
|
57
|
+
* @param {object} [wallet_loyalty_account]
|
|
58
|
+
* @param {string} [wallet_loyalty_account.id]
|
|
59
|
+
* @param {string} [wallet_loyalty_account.barcode]
|
|
60
|
+
* @param {object} [shipping]
|
|
61
|
+
* @param {string} [shipping.address_line1]
|
|
62
|
+
* @param {string} [shipping.address_line2]
|
|
63
|
+
* @param {string} [shipping.address_postcode]
|
|
64
|
+
* @param {string} [shipping.address_city]
|
|
65
|
+
* @param {string} [shipping.address_state]
|
|
66
|
+
* @param {string} [shipping.address_country]
|
|
67
|
+
* @param {string} [shipping.address_company]
|
|
68
|
+
* @param {string} [shipping.post_office_box_number]
|
|
69
|
+
* @param {string} [shipping.wallet_address_id]
|
|
70
|
+
* @param {string} [shipping.wallet_address_name]
|
|
71
|
+
* @param {string} [shipping.wallet_address_created_timestamp]
|
|
72
|
+
* @param {string} [shipping.wallet_address_updated_timestamp]
|
|
73
|
+
* */
|
|
74
|
+
/**
|
|
75
|
+
* Interface of data from an unavailable event.
|
|
76
|
+
* @interface IWalletUnavailable
|
|
77
|
+
*
|
|
78
|
+
* @param {string} [wallet] For gateways with more than one wallet button available (e.g: MPGS with ApplePay and GooglePay). Possible values for wallet are 'apple' or 'google'.
|
|
79
|
+
* */
|
|
80
|
+
/**
|
|
81
|
+
* Interface of data for wallet button `update` call.
|
|
82
|
+
* @interface IWalletUpdateData
|
|
83
|
+
*
|
|
84
|
+
* @param {boolean} success
|
|
85
|
+
* */
|
|
86
|
+
export interface IWalletUpdateData {
|
|
87
|
+
success: boolean;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Interface of data used by the wallet checkout and payment proccess.
|
|
91
|
+
* @interface IWalletMeta
|
|
92
|
+
*
|
|
93
|
+
* @type {object}
|
|
94
|
+
* @param {string} [amount_label] Label shown next to the total amount to be paid. Required for [ApplePay, GooglePay]. N/A for [ PayPal].
|
|
95
|
+
* @param {string} [country] Country of the user. 2 letter ISO code format. Required for [ ApplePay, GooglePay]. N/A for [PayPal].
|
|
96
|
+
* @param {boolean} [pay_later] Used to enable Pay Later feature in PayPal Smart Checkout WalletButton integration when available. Optional for [PayPal]. N/A for other wallets.
|
|
97
|
+
* @param {boolean} [standalone] Used to enable Standalone Buttons feature in PayPal Smart Checkout WalletButton integration. Used together with `pay_later`. Optional for [PayPal]. N/A for other wallets.
|
|
98
|
+
* @param {boolean} [show_billing_address] Used to hide/show the billing address on ApplePay and GooglePay popups. Default value is false. Optional for [ApplePay, GooglePay]. N/A for other wallets.
|
|
99
|
+
* @param {boolean} [request_shipping] Used to request or not shipping address in the Wallet checkout, being able to handle amount changes via the `update` event. Optional for [PayPal, ApplePay, GooglePay].
|
|
100
|
+
* @param {IApplePayShippingOption[] | IPayPalShippingOption[]} [shipping_options] Used to provide available shipping options.(To use shipping_options the request_shipping flag should be true). Optional for [ApplePay]. N/A for the other wallets.
|
|
101
|
+
* @param {string} [merchant_name] Merchant Name used for GooglePay integration via MPGS. Required for [GooglePay]. N/A for other wallets.
|
|
102
|
+
* @param {object} [raw_data_initialization] Used to provide values to initialize wallet with raw data. Optional for [ApplePay]. N/A for the other wallets.
|
|
103
|
+
* @param {object} [style] Used to style PayPal buttons, check possible values at https://developer.paypal.com/docs/business/checkout/reference/style-guide. Also used at ApplePay to select button type. Optional for [PayPal, ApplePay].
|
|
104
|
+
* @param {object} [style.button_type] Used to select ApplePay button type (e.g: 'buy','donate', etc), check possible values at https://developer.apple.com/documentation/apple_pay_on_the_web/displaying_apple_pay_buttons_using_css. Optional for [ApplePay]. N/A for other wallets.
|
|
105
|
+
* @param {array} [wallets] By default if this is not sent or empty, we will try to show either Apple Pay or Google Pay buttons. This can be limited sending the following array in this field: ['apple','google]. Optional for [ApplePay, GooglePay]. N/A for other wallets.
|
|
106
|
+
*/
|
|
107
|
+
/**
|
|
108
|
+
* Interface of Shipping Options for ApplePay
|
|
109
|
+
* @interface IApplePayShippingOption
|
|
110
|
+
*
|
|
111
|
+
* @type {object}
|
|
112
|
+
* @param {string} [id] Identifier of the Shipping Option. Required.
|
|
113
|
+
* @param {string} [label] Identifier of the Shipping Option. Required.
|
|
114
|
+
* @param {string} [amount] Amount of the Shipping Option. Required.
|
|
115
|
+
* @param {string} [detail] Details of the Shipping Option. Required.
|
|
116
|
+
* @param {string} [type] Type of the Shipping Option. Values can be 'ELECTRONIC', 'GROUND', 'NOT_SHIPPED', 'OVERNIGHT', 'PICKUP', 'PRIORITY', 'SAME_DAY'. Optional.
|
|
117
|
+
*/
|
|
118
|
+
/**
|
|
119
|
+
* Interface of Shipping Options for GooglePay
|
|
120
|
+
* @interface IGooglePayShippingOption
|
|
121
|
+
*
|
|
122
|
+
* @type {object}
|
|
123
|
+
* @param {string} [id] Identifier of the Shipping Option. Required.
|
|
124
|
+
* @param {string} [label] Identifier of the Shipping Option. Required.
|
|
125
|
+
* @param {string} [detail] Details of the Shipping Option. Optional.
|
|
126
|
+
* @param {string} [type] Type of the Shipping Option. Values can be 'ELECTRONIC', 'GROUND', 'NOT_SHIPPED', 'OVERNIGHT', 'PICKUP', 'PRIORITY', 'SAME_DAY'. Optional.
|
|
127
|
+
*/
|
|
128
|
+
/**
|
|
129
|
+
* Interface of Shipping Options for PayPal
|
|
130
|
+
* @interface IPayPalShippingOption
|
|
131
|
+
*
|
|
132
|
+
* @type {object}
|
|
133
|
+
* @param {string} [id] Identifier of the Shipping Option. Required.
|
|
134
|
+
* @param {string} [label] Identifier of the Shipping Option. Required.
|
|
135
|
+
* @param {string} [amount] Amount of the Shipping Option. Required.
|
|
136
|
+
* @param {string} [currency] Currency of the Shipping Option. Required.
|
|
137
|
+
* @param {string} [type] Type of the Shipping Option. Values can be 'SHIPPING' or 'PICKUP'. Required.
|
|
138
|
+
*/
|
|
139
|
+
/**
|
|
140
|
+
* Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Paypal)
|
|
141
|
+
* @constructor
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* var button = new WalletButtons('#wallet-buttons', 'charge-token', { amount_label: 'Total', country: 'us' });
|
|
145
|
+
*
|
|
146
|
+
* @param {string} selector - Selector of html element. Container for the WalletButtons.
|
|
147
|
+
* @param {string} chargeToken - token for the wallet transaction, created with a secure call to `POST charges/wallet`.
|
|
148
|
+
* @param {IWalletMeta} object - data that configures the E-Wallet, which can be shown on checkout page and configures required customer information.
|
|
149
|
+
*/
|
|
150
|
+
declare class WalletButtons {
|
|
151
|
+
protected container: Container;
|
|
152
|
+
protected api: ApiInternal;
|
|
153
|
+
protected service: IWalletService;
|
|
154
|
+
protected eventEmitter: EventEmitter;
|
|
155
|
+
protected hasUpdateHandler: boolean;
|
|
156
|
+
/** @constructs */ constructor(selector: string, chargeToken: string, meta: IWalletMeta);
|
|
157
|
+
/**
|
|
158
|
+
* Initializes the availability checks and inserts the button if possible.
|
|
159
|
+
* Otherwise function onUnavailable(handler: VoidFunction) will be called.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* var button = new WalletButtons(
|
|
163
|
+
* '#buttons',
|
|
164
|
+
* token,
|
|
165
|
+
* {
|
|
166
|
+
* amount_label: 'Total',
|
|
167
|
+
* country: 'DE',
|
|
168
|
+
* }
|
|
169
|
+
* );
|
|
170
|
+
* button.load();
|
|
171
|
+
*/
|
|
172
|
+
load(): void;
|
|
173
|
+
/**
|
|
174
|
+
* Triggers the update process of the wallet, if available.
|
|
175
|
+
* Currently supported by Paypal and ApplePay/GooglePay via MPGS Wallets.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* var button = new WalletButtons(
|
|
179
|
+
* '#buttons',
|
|
180
|
+
* token,
|
|
181
|
+
* {
|
|
182
|
+
* amount_label: 'Total',
|
|
183
|
+
* country: 'DE',
|
|
184
|
+
* }
|
|
185
|
+
* );
|
|
186
|
+
* button.on('update', (data) => {
|
|
187
|
+
* updateChargeAmountInBackend(data);
|
|
188
|
+
* button.update({ success: true });
|
|
189
|
+
* });
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* // ApplePay via MPGS example:
|
|
193
|
+
* var button = new WalletButtons(
|
|
194
|
+
* '#buttons',
|
|
195
|
+
* token,
|
|
196
|
+
* {
|
|
197
|
+
* amount_label: 'Total',
|
|
198
|
+
* country: 'AU',
|
|
199
|
+
* ...
|
|
200
|
+
* }
|
|
201
|
+
* );
|
|
202
|
+
* button.on('update', (data) => {
|
|
203
|
+
* updateChargeAmountInBackend(data);
|
|
204
|
+
* button.update({
|
|
205
|
+
* success: true,
|
|
206
|
+
* body: {
|
|
207
|
+
* amount: 15,
|
|
208
|
+
* shipping_options: [
|
|
209
|
+
* {
|
|
210
|
+
* id: "NEW-FreeShip",
|
|
211
|
+
* label: "NEW - Free Shipping",
|
|
212
|
+
* detail: "Arrives in 3 to 5 days",
|
|
213
|
+
* amount: "0.00"
|
|
214
|
+
* },
|
|
215
|
+
* {
|
|
216
|
+
* id: "NEW - FastShip",
|
|
217
|
+
* label: "NEW - Fast Shipping",
|
|
218
|
+
* detail: "Arrives in less than 1 day",
|
|
219
|
+
* amount: "10.00"
|
|
220
|
+
* }
|
|
221
|
+
* ]
|
|
222
|
+
* }
|
|
223
|
+
* });
|
|
224
|
+
* });
|
|
225
|
+
*/
|
|
226
|
+
update(data: IWalletUpdateData): void;
|
|
227
|
+
/**
|
|
228
|
+
* Current method can change environment. By default environment = sandbox.
|
|
229
|
+
* Also we can change domain alias for this environment. By default domain_alias = paydock.com
|
|
230
|
+
* Bear in mind that you must set an environment before calling `button.load()`.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* button.setEnv('production', 'paydock.com');
|
|
234
|
+
* @param {string} env - sandbox, production
|
|
235
|
+
* @param {string} [alias] - Own domain alias
|
|
236
|
+
*/
|
|
237
|
+
setEnv(env: string, alias?: string): void;
|
|
238
|
+
on(eventName: string): Promise<IEventData>;
|
|
239
|
+
on(eventName: string, cb: (data: IEventData) => void): any;
|
|
240
|
+
/**
|
|
241
|
+
* User to subscribe to the no button available event. This method is used after loading when the button is not available.
|
|
242
|
+
* For MPGS, since can have more than one wallet button configured (ApplePay/GooglePay) you will receive a body (({ wallet: WALLET_TYPE.GOOGLE }) or ({ wallet: WALLET_TYPE.APPLE })) indicating which button is unavailable
|
|
243
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* button.onUnavailable(() => {
|
|
247
|
+
* console.log('No wallet buttons available');
|
|
248
|
+
* });
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* button.onUnavailable().then(() => console.log('No wallet buttons available'));
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* button.onUnavailable(function (data) {console.log('data.wallet :: ', data.wallet)});
|
|
255
|
+
*
|
|
256
|
+
* @param {listener} [handler] - Function to be called when no button is available.
|
|
257
|
+
*/
|
|
258
|
+
onUnavailable(handler?: (data: IEventData) => void): Promise<void> | (() => void);
|
|
259
|
+
/**
|
|
260
|
+
* If the wallet performs some update in the checkout process, the function passed as parameter will be called.
|
|
261
|
+
*
|
|
262
|
+
* NOTE: make sure to call the `button.update(result)` method on handler completion.
|
|
263
|
+
*
|
|
264
|
+
* @example
|
|
265
|
+
* button.onUpdate((data) => {
|
|
266
|
+
* button.update({ success: true });
|
|
267
|
+
* });
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* button.onUpdate().then((data) => throw new Error());
|
|
271
|
+
*
|
|
272
|
+
* @param {listener} [handler] - Function to be called when the payment was successful.
|
|
273
|
+
*/
|
|
274
|
+
onUpdate(handler?: (data: IEventData) => void): Promise<unknown> | (() => void);
|
|
275
|
+
/**
|
|
276
|
+
* If the payment was successful, the function passed as parameter will be called.
|
|
277
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* button.onPaymentSuccessful((data) => {
|
|
281
|
+
* console.log('Payment successful!');
|
|
282
|
+
* });
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* button.onPaymentSuccessful().then((data) => console.log('Payment successful!'));
|
|
286
|
+
*
|
|
287
|
+
* @param {listener} [handler] - Function to be called when the payment was successful.
|
|
288
|
+
*/
|
|
289
|
+
onPaymentSuccessful(handler?: (data: IEventData) => void): Promise<unknown> | (() => void);
|
|
290
|
+
/**
|
|
291
|
+
* If the payment was left in fraud review, the function passed as parameter will be called.
|
|
292
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* button.onPaymentInReview((data) => {
|
|
296
|
+
* console.log('Payment in fraud review');
|
|
297
|
+
* });
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* button.onPaymentInReview().then((data) => console.log('Payment in fraud review'));
|
|
301
|
+
*
|
|
302
|
+
* @param {listener} [handler] - Function to be called when the payment was left in fraud review status.
|
|
303
|
+
*/
|
|
304
|
+
onPaymentInReview(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
305
|
+
/**
|
|
306
|
+
* If the payment was not successful, the function passed as parameter will be called.
|
|
307
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* button.onPaymentError((err) => {
|
|
311
|
+
* console.log('Payment not successful');
|
|
312
|
+
* });
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* button.onPaymentError().then((err) => console.log('Payment not successful'));
|
|
316
|
+
*
|
|
317
|
+
* @param {listener} [handler] - Function to be called when the payment was not successful.
|
|
318
|
+
*/
|
|
319
|
+
onPaymentError(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
320
|
+
private setupServiceCallbacks;
|
|
321
|
+
private setupUnavailableCallback;
|
|
322
|
+
private setupUpdateCallback;
|
|
323
|
+
private setupWalletCallback;
|
|
324
|
+
private setupPaymentCallback;
|
|
325
|
+
private setupPaymentSuccessCallback;
|
|
326
|
+
private setupPaymentInReviewCallback;
|
|
327
|
+
private setupPaymentErrorCallback;
|
|
328
|
+
}
|
|
329
|
+
export { WalletButtons };
|
|
330
|
+
//# sourceMappingURL=wallet-cba-buttons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-cba-buttons.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/wallet-cba-buttons.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAiB,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGvD,OAAO,EAA6E,KAAK,cAAc,EAAgB,MAAM,kCAAkC,CAAC;AAChK,OAAO,EAAE,KAAK,WAAW,EAAyC,MAAM,qBAAqB,CAAC;AAC9F,OAAO,KAAK,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAEhG;;;;;;;;;GASG;AACH,eAAO,MAAM,KAAK;;;;;;CAMjB,CAAC;AAEF;;;;;;KAMK;AACL,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,wBAAwB,GAAG,aAAa,GAAG,kBAAkB,GAAG,GAAG,CAAC;CACpF;AAED;;;;;;;;;;;KAWK;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BK;AAEL;;;;;KAKK;AAEL;;;;;KAKK;AACL,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;;;GAUG;AACH,cAAM,aAAa;IACf,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,OAAO,EAAE,cAAc,CAAC;IAClC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,gBAAgB,UAAS;IAEnC,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW;IAwDpE;;;;;;;;;;;;;;OAcG;IACI,IAAI;IAUX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IACI,MAAM,CAAC,IAAI,EAAE,iBAAiB;IAIrC;;;;;;;;;OASG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAKlC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAC1C,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IA8B3D;;;;;;;;;;;;;;;;;OAiBG;IACI,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IAOzD;;;;;;;;;;;;;;OAcG;IACI,QAAQ,CACX,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IAUxC;;;;;;;;;;;;;OAaG;IACI,mBAAmB,CACtB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IAQxC;;;;;;;;;;;;;OAaG;IACI,iBAAiB,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI;IAO5D;;;;;;;;;;;;;OAaG;IACI,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI;IAOzD,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,oBAAoB;IAoC5B,OAAO,CAAC,2BAA2B;IAOnC,OAAO,CAAC,4BAA4B;IAOpC,OAAO,CAAC,yBAAyB;CAMpC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Container } from '../../components/container';
|
|
2
|
+
import { IWalletService, IWalletServiceMeta, WalletService } from './wallet-service';
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
AfterPay: any;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class AfterPayWalletService extends WalletService implements IWalletService {
|
|
9
|
+
private readonly CHECKOUT_URL;
|
|
10
|
+
private token;
|
|
11
|
+
private storageDispatcher;
|
|
12
|
+
private isRedirectMode;
|
|
13
|
+
constructor(token: string, meta: IWalletServiceMeta);
|
|
14
|
+
load(container: Container): any;
|
|
15
|
+
setEnv(env: string): this;
|
|
16
|
+
private mount;
|
|
17
|
+
private onAfterPayButtonClicked;
|
|
18
|
+
private getCheckoutSession;
|
|
19
|
+
private getButton;
|
|
20
|
+
private getButtonStyle;
|
|
21
|
+
private generateButtonColor;
|
|
22
|
+
private getHeight;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=afterpay.wallet-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"afterpay.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/afterpay.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAKnG,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,QAAQ,EAAE,GAAG,CAAC;KACjB;CACJ;AASD,qBAAa,qBAAsB,SAAQ,aAAc,YAAW,cAAc;IAC9E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,cAAc,CAAU;gBAEpB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAU5C,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;IAM/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAOzB,OAAO,CAAC,KAAK;IAcb,OAAO,CAAC,uBAAuB;IAyE/B,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,SAAS;IA4BjB,OAAO,CAAC,cAAc;IA+BtB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,SAAS;CAOpB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/// <reference types="applepayjs" />
|
|
2
|
+
import type { Container } from "../../components/container";
|
|
3
|
+
import { type ApplePayRawDataInitialization, type ApplePayStyles, type IApplePayShippingOption } from "../../components/param";
|
|
4
|
+
import type { EventEmitter } from '../../helper/event-emitter';
|
|
5
|
+
import { type IWalletService, type IWalletServiceMeta, type IWalletServiceUpdate, WalletService } from "./wallet-service";
|
|
6
|
+
declare global {
|
|
7
|
+
interface Window {
|
|
8
|
+
ApplePaySession: ApplePaySession;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
interface LatestShippingData {
|
|
12
|
+
shippingContact?: ApplePayJS.ApplePayPaymentContact;
|
|
13
|
+
shippingMethod?: ApplePayJS.ApplePayShippingMethod;
|
|
14
|
+
}
|
|
15
|
+
export declare class AppleWalletService extends WalletService implements IWalletService {
|
|
16
|
+
protected gatewayName: string;
|
|
17
|
+
protected eventEmitter: EventEmitter;
|
|
18
|
+
private paymentSession;
|
|
19
|
+
protected latestShippingChangePromiseResolve: (value: unknown) => void;
|
|
20
|
+
protected latestShippingChangePromiseReject: () => void;
|
|
21
|
+
protected selectedShippingOption: IApplePayShippingOption;
|
|
22
|
+
protected latestShippingData: LatestShippingData;
|
|
23
|
+
constructor(publicKey: string, meta: IWalletServiceMeta, gatewayName: string, eventEmitter: EventEmitter);
|
|
24
|
+
protected getGatewayName(): string;
|
|
25
|
+
protected getMerchantId(): string;
|
|
26
|
+
protected getMetaStyles(): ApplePayStyles;
|
|
27
|
+
protected getMetaRawDataInitialization(): ApplePayRawDataInitialization;
|
|
28
|
+
protected isShippingRequired(): boolean;
|
|
29
|
+
protected hasShippingOptions(): boolean;
|
|
30
|
+
load(container: Container): Promise<void>;
|
|
31
|
+
update(data: IWalletServiceUpdate): void;
|
|
32
|
+
private checkAvailability;
|
|
33
|
+
private mount;
|
|
34
|
+
private onApplePayButtonClicked;
|
|
35
|
+
private onCancelPayment;
|
|
36
|
+
private createRequest;
|
|
37
|
+
private getMerchantSession;
|
|
38
|
+
private onValidateMerchant;
|
|
39
|
+
private handleMerchantOnButtonClickEvent;
|
|
40
|
+
private onPaymentAuthorized;
|
|
41
|
+
private onShippingContactSelected;
|
|
42
|
+
private onShippingMethodSelected;
|
|
43
|
+
private parseUpdateData;
|
|
44
|
+
private formatShippingOptions;
|
|
45
|
+
private formatCapabilities;
|
|
46
|
+
private createButtonStyle;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=apple.wallet-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/apple.wallet-service.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACH,KAAK,6BAA6B,EAClC,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAI/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAEH,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,eAAe,EAAE,eAAe,CAAC;KACpC;CACJ;AAED,UAAU,kBAAkB;IACxB,eAAe,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC;IACpD,cAAc,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC;CACtD;AAID,qBAAa,kBAAmB,SAAQ,aAAc,YAAW,cAAc;IAOlB,SAAS,CAAC,WAAW,EAAE,MAAM;IAAE,SAAS,CAAC,YAAY,EAAE,YAAY;IAN5H,OAAO,CAAC,cAAc,CAAkB;IACxC,SAAS,CAAC,kCAAkC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvE,SAAS,CAAC,iCAAiC,EAAE,MAAM,IAAI,CAAC;IACxD,SAAS,CAAC,sBAAsB,EAAE,uBAAuB,CAAC;IAC1D,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAM;gBAE1C,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAY,WAAW,EAAE,MAAM,EAAY,YAAY,EAAE,YAAY;IAK5H,SAAS,CAAC,cAAc,IAAI,MAAM;IAIlC,SAAS,CAAC,aAAa,IAAI,MAAM;IAIjC,SAAS,CAAC,aAAa,IAAI,cAAc;IAgBzC,SAAS,CAAC,4BAA4B,IAAI,6BAA6B;IAiBvE,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAIvC,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAIhC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAqCzC,MAAM,CAAC,IAAI,EAAE,oBAAoB;IAkCxC,OAAO,CAAC,iBAAiB;IAwBzB,OAAO,CAAC,KAAK;IAoBb,OAAO,CAAC,uBAAuB;IAW/B,OAAO,CAAC,eAAe,CAEtB;IAED,OAAO,CAAC,aAAa;IAsCrB,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,kBAAkB,CAczB;IAED,OAAO,CAAC,gCAAgC;IAqBxC,OAAO,CAAC,mBAAmB,CA6C1B;IAED,OAAO,CAAC,yBAAyB,CAShC;IAED,OAAO,CAAC,wBAAwB,CAW/B;IAED,OAAO,CAAC,eAAe,CAmBrB;IAEF,OAAO,CAAC,qBAAqB,CAM1B;IAEH,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,iBAAiB;CAW5B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Checkout } from '@auspayplus/open-payments-checkout';
|
|
2
|
+
import { Container } from '../../components/container';
|
|
3
|
+
import { IWalletService, IWalletServiceMeta, WalletService } from './wallet-service';
|
|
4
|
+
import { Link } from '../../components/link';
|
|
5
|
+
import { WalletBackground } from '../../components/wallet-background';
|
|
6
|
+
export declare class FlypayV2WalletService extends WalletService implements IWalletService {
|
|
7
|
+
protected background: WalletBackground;
|
|
8
|
+
protected checkout: Checkout;
|
|
9
|
+
protected link: Link;
|
|
10
|
+
protected accessToken?: string;
|
|
11
|
+
protected refreshToken?: string;
|
|
12
|
+
protected orderId?: string;
|
|
13
|
+
protected flypayV2Button: HTMLButtonElement;
|
|
14
|
+
private widgetId;
|
|
15
|
+
constructor(publicKey: string, meta: IWalletServiceMeta);
|
|
16
|
+
load(container: Container): any;
|
|
17
|
+
setEnv(env: string): this;
|
|
18
|
+
enable(): void;
|
|
19
|
+
disable(): void;
|
|
20
|
+
private mount;
|
|
21
|
+
private getButton;
|
|
22
|
+
private onFlypayV2ButtonClick;
|
|
23
|
+
private handleMerchantOnButtonClickEvent;
|
|
24
|
+
private getOrderId;
|
|
25
|
+
private flypayV2Checkout;
|
|
26
|
+
private initBackground;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=flypay-v2.wallet-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flypay-v2.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/flypay-v2.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAgB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACnG,OAAO,EAAoB,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAUtE,qBAAa,qBAAsB,SAAQ,aAAc,YAAW,cAAc;IAC9E,SAAS,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACvC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC7B,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,cAAc,EAAE,iBAAiB,CAAC;IAG5C,OAAO,CAAC,QAAQ,CAAiB;gBAErB,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAWhD,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;IAc/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAKlB,MAAM;IAQN,OAAO;IAQd,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,SAAS;IAgBjB,OAAO,CAAC,qBAAqB,CAoB3B;IAEF,OAAO,CAAC,gCAAgC;IAqBxC,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,gBAAgB;IAiCxB,OAAO,CAAC,cAAc;CAgBzB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IFrame } from "../../components/iframe";
|
|
2
|
+
import { Container } from "../../components/container";
|
|
3
|
+
import { Link } from "../../components/link";
|
|
4
|
+
import { FlypayIframeEvent } from "../../components/flypay-iframe-event";
|
|
5
|
+
import { WalletTrigger } from "../../components/wallet-trigger";
|
|
6
|
+
import { WalletBackground } from "../../components/wallet-background";
|
|
7
|
+
import { IWalletService, IWalletServiceMeta, IWalletServiceUpdate, WalletService } from "./wallet-service";
|
|
8
|
+
export declare class FlypayWalletService extends WalletService implements IWalletService {
|
|
9
|
+
protected link: Link;
|
|
10
|
+
protected container: Container;
|
|
11
|
+
protected iFrame: IFrame;
|
|
12
|
+
protected event: FlypayIframeEvent;
|
|
13
|
+
protected token: string;
|
|
14
|
+
protected background: WalletBackground;
|
|
15
|
+
protected triggerElement: WalletTrigger;
|
|
16
|
+
constructor(token: string, meta: IWalletServiceMeta);
|
|
17
|
+
load(container: Container): Promise<void>;
|
|
18
|
+
close(): void;
|
|
19
|
+
update(data: IWalletServiceUpdate): void;
|
|
20
|
+
setEnv(env: string): this;
|
|
21
|
+
private initBackground;
|
|
22
|
+
private setupIFrameEvents;
|
|
23
|
+
private parsePaymentSuccessfulData;
|
|
24
|
+
private parseUpdateData;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=flypay.wallet-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flypay.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/flypay.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAiC,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EACH,iBAAiB,EAEpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAW,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEtE,OAAO,EACH,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAI1B,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAC5E,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,iBAAiB,CAAC;IACnC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACvC,SAAS,CAAC,cAAc,EAAE,aAAa,CAAC;gBAE5B,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAyB5C,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAczC,KAAK,IAAI,IAAI;IAKb,MAAM,CAAC,IAAI,EAAE,oBAAoB;IAIjC,MAAM,CAAC,GAAG,EAAE,MAAM;IAKzB,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,0BAA0B;IASlC,OAAO,CAAC,eAAe;CAmC1B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Container } from '../../components/container';
|
|
2
|
+
import { type GooglePayRawDataInitialization, type GooglePayStyles, type IGooglePayShippingOption } from '../../components/param';
|
|
3
|
+
import type { EventEmitter } from '../../helper/event-emitter';
|
|
4
|
+
import { type IWalletService, type IWalletServiceMeta, type IWalletServiceUpdate, WalletService } from './wallet-service';
|
|
5
|
+
export declare class GoogleWalletService extends WalletService implements IWalletService {
|
|
6
|
+
protected gatewayName: string;
|
|
7
|
+
protected eventEmitter: EventEmitter;
|
|
8
|
+
private paymentsClient;
|
|
9
|
+
protected latestShippingChangePromiseResolve: (value: unknown) => void;
|
|
10
|
+
protected latestShippingChangePromiseReject: () => void;
|
|
11
|
+
protected selectedShippingOption: IGooglePayShippingOption;
|
|
12
|
+
protected processingButtonClick: boolean;
|
|
13
|
+
constructor(publicKey: string, meta: IWalletServiceMeta, gatewayName: string, eventEmitter: EventEmitter);
|
|
14
|
+
protected getGatewayName(): string;
|
|
15
|
+
protected getMerchantId(): string;
|
|
16
|
+
protected getMetaStyles(): GooglePayStyles;
|
|
17
|
+
protected getMetaRawDataInitialization(): GooglePayRawDataInitialization;
|
|
18
|
+
protected isShippingRequired(): boolean;
|
|
19
|
+
protected hasShippingOptions(): boolean;
|
|
20
|
+
load(container: Container): Promise<void>;
|
|
21
|
+
update(data: IWalletServiceUpdate): void;
|
|
22
|
+
private checkAvailability;
|
|
23
|
+
private mount;
|
|
24
|
+
private onGooglePayButtonClicked;
|
|
25
|
+
private handleMerchantOnButtonClickEvent;
|
|
26
|
+
private loadPaymentData;
|
|
27
|
+
private onPaymentAuthorized;
|
|
28
|
+
private onPaymentDataChanged;
|
|
29
|
+
private createRequest;
|
|
30
|
+
private createPaymentDataRequest;
|
|
31
|
+
private createCardData;
|
|
32
|
+
private parseUpdateData;
|
|
33
|
+
private formatShippingOptions;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=google.wallet-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/google.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,KAAK,8BAA8B,EAAE,KAAK,eAAe,EAAE,KAAK,wBAAwB,EAAe,MAAM,wBAAwB,CAAC;AAE/I,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAuB,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAgB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE7J,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAOnB,SAAS,CAAC,WAAW,EAAE,MAAM;IAAE,SAAS,CAAC,YAAY,EAAE,YAAY;IAN5H,OAAO,CAAC,cAAc,CAAqC;IAC3D,SAAS,CAAC,kCAAkC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvE,SAAS,CAAC,iCAAiC,EAAE,MAAM,IAAI,CAAC;IACxD,SAAS,CAAC,sBAAsB,EAAE,wBAAwB,CAAC;IAC3D,SAAS,CAAC,qBAAqB,UAAS;gBAE5B,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAY,WAAW,EAAE,MAAM,EAAY,YAAY,EAAE,YAAY;IAK5H,SAAS,CAAC,cAAc,IAAI,MAAM;IAIlC,SAAS,CAAC,aAAa,IAAI,MAAM;IAIjC,SAAS,CAAC,aAAa,IAAI,eAAe;IAO1C,SAAS,CAAC,4BAA4B,IAAI,8BAA8B;IAOxE,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAIvC,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAIhC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAoDzC,MAAM,CAAC,IAAI,EAAE,oBAAoB;YAqC1B,iBAAiB;IAY/B,OAAO,CAAC,KAAK;IAWb,OAAO,CAAC,wBAAwB;IAehC,OAAO,CAAC,gCAAgC;YAqB1B,eAAe;IAS7B,OAAO,CAAC,mBAAmB;IA8D3B,OAAO,CAAC,oBAAoB;IAgB5B,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,wBAAwB;IAqDhC,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,eAAe,CAmBrB;IAEF,OAAO,CAAC,qBAAqB,CAK1B;CACN"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IWalletService, IWalletServiceUpdate, WalletService } from "./wallet-service";
|
|
2
|
+
export declare class MastercardWalletService extends WalletService implements IWalletService {
|
|
3
|
+
protected initializeChildWallets(): void;
|
|
4
|
+
protected getGatewayName(): string;
|
|
5
|
+
setEnv(env: string): this;
|
|
6
|
+
update(data: IWalletServiceUpdate): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=mastercard.wallet-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mastercard.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/mastercard.wallet-service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEvF,qBAAa,uBAAwB,SAAQ,aAAc,YAAW,cAAc;IAChF,SAAS,CAAC,sBAAsB;IAchC,SAAS,CAAC,cAAc,IAAI,MAAM;IAI3B,MAAM,CAAC,GAAG,EAAE,MAAM;IAKlB,MAAM,CAAC,IAAI,EAAE,oBAAoB;CAG3C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IWalletService, IWalletServiceUpdate, WalletService } from "./wallet-service";
|
|
2
|
+
import { Container } from "../../components/container";
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
paypal: any;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class PaypalWalletService extends WalletService implements IWalletService {
|
|
9
|
+
protected paypal: any;
|
|
10
|
+
protected latestShippingChangePromiseResolve: (value: unknown) => void;
|
|
11
|
+
protected latestShippingChangePromiseReject: () => void;
|
|
12
|
+
protected latestShippingData?: {
|
|
13
|
+
address_city?: string;
|
|
14
|
+
address_state?: string;
|
|
15
|
+
address_postcode?: string;
|
|
16
|
+
address_country?: string;
|
|
17
|
+
};
|
|
18
|
+
protected pendingApprovalPromise?: Promise<any>;
|
|
19
|
+
load(container: Container): Promise<void>;
|
|
20
|
+
update(data: IWalletServiceUpdate): void;
|
|
21
|
+
private renderPaypalCommonComponent;
|
|
22
|
+
private renderPaypalStandaloneComponent;
|
|
23
|
+
private paypalSharedProps;
|
|
24
|
+
private parseUpdateData;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=paypal.wallet-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paypal.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/paypal.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,cAAc,EACd,oBAAoB,EACpB,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,MAAM,EAAE,GAAG,CAAC;KACf;CACJ;AAED,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAC5E,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,kCAAkC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvE,SAAS,CAAC,iCAAiC,EAAE,MAAM,IAAI,CAAC;IACxD,SAAS,CAAC,kBAAkB,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAC;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtI,SAAS,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAEzC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAezC,MAAM,CAAC,IAAI,EAAE,oBAAoB;IAcxC,OAAO,CAAC,2BAA2B;IAkBnC,OAAO,CAAC,+BAA+B;IAqCvC,OAAO,CAAC,iBAAiB;IAiEzB,OAAO,CAAC,eAAe;CA0B1B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Stripe, PaymentRequest, StripePaymentRequestButtonElement, PaymentRequestCompleteStatus } from "@stripe/stripe-js";
|
|
2
|
+
import { IWalletService, WalletService } from "./wallet-service";
|
|
3
|
+
import { Container } from "../../components/container";
|
|
4
|
+
export declare const UI_COMPLETION_STATE: {
|
|
5
|
+
SUCCESS: PaymentRequestCompleteStatus;
|
|
6
|
+
FAIL: PaymentRequestCompleteStatus;
|
|
7
|
+
};
|
|
8
|
+
export declare class StripeWalletService extends WalletService implements IWalletService {
|
|
9
|
+
protected stripe: Stripe;
|
|
10
|
+
protected paymentRequest: PaymentRequest;
|
|
11
|
+
protected initPaymentRequest(): PaymentRequest;
|
|
12
|
+
protected createWalletButton(): StripePaymentRequestButtonElement;
|
|
13
|
+
load(container: Container): Promise<void>;
|
|
14
|
+
private checkAvailability;
|
|
15
|
+
private mount;
|
|
16
|
+
private setOnPaymentMethodSelected;
|
|
17
|
+
private getWalletType;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=stripe.wallet-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripe.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/stripe.wallet-service.ts"],"names":[],"mappings":"AACA,OAAO,EACH,MAAM,EACN,cAAc,EAEd,iCAAiC,EACjC,4BAA4B,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAGH,cAAc,EACd,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAC5E,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAEzC,SAAS,CAAC,kBAAkB,IAAI,cAAc;IAc9C,SAAS,CAAC,kBAAkB,IAAI,iCAAiC;IAM1D,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAWhD,OAAO,CAAC,iBAAiB;IAqBzB,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,0BAA0B;IA0ClC,OAAO,CAAC,aAAa;CAMxB"}
|