@paydock/client-sdk 1.105.1 → 1.105.56-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 +2094 -465
- package/bundles/index.cjs +35088 -0
- package/bundles/index.cjs.d.ts +4021 -0
- package/bundles/index.mjs +35050 -0
- package/bundles/index.mjs.d.ts +4021 -0
- package/bundles/types/api/api-base.d.ts +54 -0
- package/bundles/types/api/api-base.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-charge-internal.d.ts +2 -0
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
- package/bundles/types/api/api-charge.d.ts.map +1 -0
- package/bundles/types/api/api-checkout-internal.d.ts +57 -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/{lib → bundles/types}/api/api-internal.d.ts +5 -0
- package/bundles/types/api/api-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-service-internal.d.ts +3 -1
- package/bundles/types/api/api-service-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api.d.ts +1 -0
- package/bundles/types/api/api.d.ts.map +1 -0
- package/bundles/types/api/index.d.ts +2 -0
- package/bundles/types/api/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
- package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +4 -3
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
- package/bundles/types/checkout/checkout.d.ts +86 -0
- package/bundles/types/checkout/checkout.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts +23 -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 +5 -0
- package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/session-helper.d.ts +5 -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 +19 -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.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 +52 -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/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +3 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +5 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
- package/bundles/types/checkout-button/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
- package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +4 -2
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
- package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +5 -4
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
- package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
- package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
- package/bundles/types/components/ability-guard.d.ts.map +1 -0
- package/{lib → bundles/types}/components/background.d.ts +1 -0
- package/bundles/types/components/background.d.ts.map +1 -0
- package/{lib → bundles/types}/components/container.d.ts +1 -0
- package/bundles/types/components/container.d.ts.map +1 -0
- package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
- package/bundles/types/components/dispatcher.d.ts.map +1 -0
- package/{lib → bundles/types}/components/element-style.d.ts +2 -1
- package/bundles/types/components/element-style.d.ts.map +1 -0
- package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
- package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
- package/{lib/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +1 -0
- package/bundles/types/components/form-interceptor.d.ts.map +1 -0
- package/{lib → bundles/types}/components/http-core.d.ts +1 -0
- package/bundles/types/components/http-core.d.ts.map +1 -0
- package/{lib → bundles/types}/components/iframe-event.d.ts +6 -0
- package/bundles/types/components/iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/iframe.d.ts +3 -0
- package/bundles/types/components/iframe.d.ts.map +1 -0
- package/{lib → bundles/types}/components/link.d.ts +6 -3
- package/bundles/types/components/link.d.ts.map +1 -0
- package/{lib → bundles/types}/components/loader.d.ts +1 -0
- package/bundles/types/components/loader.d.ts.map +1 -0
- package/{lib → bundles/types}/components/param.d.ts +16 -9
- package/bundles/types/components/param.d.ts.map +1 -0
- package/{lib → bundles/types}/components/popup.d.ts +1 -0
- package/bundles/types/components/popup.d.ts.map +1 -0
- package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
- package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
- package/{lib → bundles/types}/components/trigger.d.ts +1 -0
- package/bundles/types/components/trigger.d.ts.map +1 -0
- package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/wallet-background.d.ts +3 -1
- package/bundles/types/components/wallet-background.d.ts.map +1 -0
- package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
- package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.cba.d.ts +29 -0
- package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.interface.d.ts +12 -0
- package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
- package/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
- package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
- package/bundles/types/configs/env/index.d.ts +3 -0
- package/bundles/types/configs/env/index.d.ts.map +1 -0
- package/{lib → bundles/types}/configs/sdk.d.ts +3 -2
- package/bundles/types/configs/sdk.d.ts.map +1 -0
- package/{lib → bundles/types}/constants/validators.d.ts +3 -2
- package/bundles/types/constants/validators.d.ts.map +1 -0
- package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
- package/bundles/types/external-checkout/builder.d.ts.map +1 -0
- package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -0
- package/bundles/types/external-checkout/checker.d.ts.map +1 -0
- package/bundles/types/external-checkout/index.d.ts +3 -0
- package/bundles/types/external-checkout/index.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/access-token.d.ts +2 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/browser.d.ts +1 -0
- package/bundles/types/helper/browser.d.ts.map +1 -0
- package/bundles/types/helper/element-id.d.ts +5 -0
- package/bundles/types/helper/element-id.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/event-emitter.d.ts +2 -0
- package/bundles/types/helper/event-emitter.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/event.d.ts +1 -0
- package/bundles/types/helper/event.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/ms.d.ts +1 -0
- package/bundles/types/helper/ms.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/object.d.ts +1 -0
- package/bundles/types/helper/object.d.ts.map +1 -0
- package/bundles/types/helper/spiner.util.d.ts +6 -0
- package/bundles/types/helper/spiner.util.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/url.d.ts +1 -0
- package/bundles/types/helper/url.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
- package/bundles/types/helper/uuid.d.ts.map +1 -0
- package/bundles/types/helper/widget-logger.d.ts +9 -0
- package/bundles/types/helper/widget-logger.d.ts.map +1 -0
- package/bundles/types/index-cba.d.ts +17 -0
- package/bundles/types/index-cba.d.ts.map +1 -0
- package/bundles/types/index.d.ts +18 -0
- package/bundles/types/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
- package/bundles/types/payment-source/builder.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
- package/bundles/types/payment-source/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
- package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -0
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
- package/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 +59 -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 +18 -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 +86 -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 +84 -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 +37 -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 +104 -0
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/interfaces.d.ts +159 -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/{lib/secure-remote-commerce/providers/visa-src/visa-src.d.ts → bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts} +5 -7
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
- package/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/http/http-request.d.ts +14 -0
- package/bundles/types/shared/http/http-request.d.ts.map +1 -0
- package/bundles/types/shared/http/index.d.ts +2 -0
- package/bundles/types/shared/http/index.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/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
- package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
- package/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/{lib → bundles/types}/wallet-buttons/index.d.ts +5 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/wallet-buttons.d.ts +5 -4
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/afterpay.wallet-service.d.ts +2 -1
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/apple.wallet-service.d.ts +4 -3
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/flypay-v2.wallet-service.d.ts +5 -5
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/flypay.wallet-service.d.ts +7 -6
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/google.wallet-service.d.ts +5 -4
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/mastercard.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/paypal.wallet-service.d.ts +2 -1
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/stripe.wallet-service.d.ts +2 -1
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/wallet-service.d.ts +5 -4
- 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 +195 -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 +10 -0
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/index.d.ts +131 -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 +14 -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-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 +50 -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 +3 -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/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 +17 -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/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-wallet-meta.interface.d.ts +31 -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 +47 -0
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
- package/bundles/types/widget/configuration.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/html-multi-widget.d.ts +6 -4
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
- package/bundles/types/widget/html-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/index.d.ts +2 -1
- package/bundles/types/widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/meta.d.ts +1 -0
- package/bundles/types/widget/meta.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
- package/bundles/types/widget/multi-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/style.d.ts +1 -0
- package/bundles/types/widget/style.d.ts.map +1 -0
- package/bundles/widget.umd.js +33407 -9468
- package/bundles/widget.umd.js.d.ts +4021 -0
- package/bundles/widget.umd.js.min.d.ts +4021 -0
- package/bundles/widget.umd.min.js +61 -1
- 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 +2499 -0
- package/docs/api-wrapper.md +78 -0
- package/docs/canvas3ds-examples.md +242 -0
- package/docs/cba-header.md +13 -0
- package/docs/cba-license.md +2 -0
- package/docs/checkout-examples.md +248 -0
- package/docs/click-to-pay-examples.md +267 -0
- package/docs/click-to-pay.md +339 -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 +58 -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 +636 -0
- package/docs/wallet-buttons-express-examples.md +201 -0
- package/docs/wallet-buttons-express.md +786 -0
- package/docs/wallet-buttons.md +622 -0
- package/docs/wallet-cba-buttons-examples.md +388 -0
- package/docs/widget-examples.md +134 -0
- package/examples/multi-html-widget/simple.html +2 -1
- package/package.json +208 -80
- package/slate.md +227 -191
- package/.nvmrc +0 -1
- package/api.d.ts +0 -1
- package/api.js +0 -1
- package/canvas3ds.d.ts +0 -1
- package/canvas3ds.js +0 -1
- package/checkout-button.d.ts +0 -1
- package/checkout-button.js +0 -1
- package/inicialization-guide.md +0 -7
- package/lib/api/api-base.d.ts +0 -40
- package/lib/api/api-base.js +0 -101
- package/lib/api/api-base.js.map +0 -1
- package/lib/api/api-charge-internal.js +0 -30
- package/lib/api/api-charge-internal.js.map +0 -1
- package/lib/api/api-charge.js +0 -49
- package/lib/api/api-charge.js.map +0 -1
- package/lib/api/api-internal.js +0 -13
- package/lib/api/api-internal.js.map +0 -1
- package/lib/api/api-service-internal.js +0 -18
- package/lib/api/api-service-internal.js.map +0 -1
- package/lib/api/api.js +0 -62
- package/lib/api/api.js.map +0 -1
- package/lib/api/index.d.ts +0 -1
- package/lib/api/index.js +0 -2
- package/lib/api/index.js.map +0 -1
- package/lib/canvas-3ds/canvas-3ds.js +0 -157
- package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
- package/lib/canvas-3ds/index.js +0 -2
- package/lib/canvas-3ds/index.js.map +0 -1
- package/lib/canvas-3ds/services/gpayments-service.js +0 -181
- package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
- package/lib/canvas-3ds/services/index.js +0 -2
- package/lib/canvas-3ds/services/index.js.map +0 -1
- package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
- package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -50
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
- package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
- package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
- package/lib/checkout-button/checkout-button.interface.js +0 -45
- package/lib/checkout-button/checkout-button.interface.js.map +0 -1
- package/lib/checkout-button/checkout-button.js +0 -266
- package/lib/checkout-button/checkout-button.js.map +0 -1
- package/lib/checkout-button/checkout-contextual-handler.js +0 -75
- package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
- package/lib/checkout-button/index.js +0 -85
- package/lib/checkout-button/index.js.map +0 -1
- package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -25
- package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
- package/lib/checkout-button/paypal/paypal.runner.js +0 -14
- package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
- package/lib/checkout-button/runner/base.runner.js +0 -13
- package/lib/checkout-button/runner/base.runner.js.map +0 -1
- package/lib/checkout-button/runner/contextual.runner.js +0 -40
- package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
- package/lib/checkout-button/runner/index.js +0 -11
- package/lib/checkout-button/runner/index.js.map +0 -1
- package/lib/checkout-button/runner/popup.runner.js +0 -68
- package/lib/checkout-button/runner/popup.runner.js.map +0 -1
- package/lib/checkout-button/runner/redirect.runner.js +0 -15
- package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -64
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
- package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
- package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
- package/lib/components/ability-guard.js +0 -44
- package/lib/components/ability-guard.js.map +0 -1
- package/lib/components/background.js +0 -193
- package/lib/components/background.js.map +0 -1
- package/lib/components/container.js +0 -63
- package/lib/components/container.js.map +0 -1
- package/lib/components/dispatcher.js +0 -39
- package/lib/components/dispatcher.js.map +0 -1
- package/lib/components/element-style.js +0 -52
- package/lib/components/element-style.js.map +0 -1
- package/lib/components/flypay-iframe-event.js +0 -28
- package/lib/components/flypay-iframe-event.js.map +0 -1
- package/lib/components/form-Interceptor.js +0 -38
- package/lib/components/form-Interceptor.js.map +0 -1
- package/lib/components/http-core.js +0 -57
- package/lib/components/http-core.js.map +0 -1
- package/lib/components/iframe-event.js +0 -75
- package/lib/components/iframe-event.js.map +0 -1
- package/lib/components/iframe.js +0 -62
- package/lib/components/iframe.js.map +0 -1
- package/lib/components/link.js +0 -59
- package/lib/components/link.js.map +0 -1
- package/lib/components/loader.js +0 -234
- package/lib/components/loader.js.map +0 -1
- package/lib/components/param.js +0 -147
- package/lib/components/param.js.map +0 -1
- package/lib/components/popup.js +0 -104
- package/lib/components/popup.js.map +0 -1
- package/lib/components/storage-dispatcher.js +0 -75
- package/lib/components/storage-dispatcher.js.map +0 -1
- package/lib/components/trigger.js +0 -49
- package/lib/components/trigger.js.map +0 -1
- package/lib/components/vault-display-iframe-event.js +0 -27
- package/lib/components/vault-display-iframe-event.js.map +0 -1
- package/lib/components/wallet-background.js +0 -63
- package/lib/components/wallet-background.js.map +0 -1
- package/lib/components/wallet-trigger.js +0 -27
- package/lib/components/wallet-trigger.js.map +0 -1
- package/lib/configs/env/env.js +0 -117
- package/lib/configs/env/env.js.map +0 -1
- package/lib/configs/sdk.js +0 -16
- package/lib/configs/sdk.js.map +0 -1
- package/lib/constants/validators.js +0 -42
- package/lib/constants/validators.js.map +0 -1
- package/lib/external-checkout/builder.js +0 -45
- package/lib/external-checkout/builder.js.map +0 -1
- package/lib/external-checkout/checker.js +0 -22
- package/lib/external-checkout/checker.js.map +0 -1
- package/lib/external-checkout/index.d.ts +0 -2
- package/lib/external-checkout/index.js +0 -3
- package/lib/external-checkout/index.js.map +0 -1
- package/lib/helper/access-token.js +0 -44
- package/lib/helper/access-token.js.map +0 -1
- package/lib/helper/browser.js +0 -79
- package/lib/helper/browser.js.map +0 -1
- package/lib/helper/event-emitter.js +0 -23
- package/lib/helper/event-emitter.js.map +0 -1
- package/lib/helper/event.js +0 -23
- package/lib/helper/event.js.map +0 -1
- package/lib/helper/ms.js +0 -32
- package/lib/helper/ms.js.map +0 -1
- package/lib/helper/object.js +0 -6
- package/lib/helper/object.js.map +0 -1
- package/lib/helper/url.js +0 -11
- package/lib/helper/url.js.map +0 -1
- package/lib/helper/uuid.js +0 -26
- package/lib/helper/uuid.js.map +0 -1
- package/lib/index.d.ts +0 -15
- package/lib/index.js +0 -15
- package/lib/index.js.map +0 -1
- package/lib/payment-source/builder.js +0 -49
- package/lib/payment-source/builder.js.map +0 -1
- package/lib/payment-source/index.js +0 -2
- package/lib/payment-source/index.js.map +0 -1
- package/lib/payment-source-widget/html-payment-source-widget.js +0 -172
- package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
- package/lib/payment-source-widget/index.js +0 -35
- package/lib/payment-source-widget/index.js.map +0 -1
- package/lib/payment-source-widget/interfaces.js +0 -2
- package/lib/payment-source-widget/interfaces.js.map +0 -1
- package/lib/payment-source-widget/payment-source-widget.js +0 -142
- package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
- package/lib/secure-remote-commerce/index.d.ts +0 -1
- package/lib/secure-remote-commerce/index.js +0 -2
- package/lib/secure-remote-commerce/index.js.map +0 -1
- package/lib/secure-remote-commerce/interfaces.d.ts +0 -71
- package/lib/secure-remote-commerce/interfaces.js +0 -28
- package/lib/secure-remote-commerce/interfaces.js.map +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -7
- package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
- package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
- package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -8
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
- package/lib/secure-remote-commerce/secure-remote-commerce.d.ts +0 -163
- package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -239
- package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
- package/lib/vault-display-widget/index.js +0 -14
- package/lib/vault-display-widget/index.js.map +0 -1
- package/lib/vault-display-widget/vault-display-widget.js +0 -99
- package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
- package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
- package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/apple.wallet-service.js +0 -324
- package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -165
- package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
- package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/google.wallet-service.js +0 -301
- package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +0 -3
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js +0 -151
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +0 -1
- package/lib/wallet-buttons/index.js +0 -128
- package/lib/wallet-buttons/index.js.map +0 -1
- package/lib/wallet-buttons/interfaces.js +0 -1
- package/lib/wallet-buttons/interfaces.js.map +0 -1
- package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
- package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/paypal.wallet-service.js +0 -144
- package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
- package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/wallet-buttons.js +0 -479
- package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
- package/lib/wallet-buttons/wallet-service.js +0 -60
- package/lib/wallet-buttons/wallet-service.js.map +0 -1
- package/lib/widget/configuration.js +0 -260
- package/lib/widget/configuration.js.map +0 -1
- package/lib/widget/html-multi-widget.js +0 -422
- package/lib/widget/html-multi-widget.js.map +0 -1
- package/lib/widget/html-widget.js +0 -127
- package/lib/widget/html-widget.js.map +0 -1
- package/lib/widget/index.js +0 -132
- package/lib/widget/index.js.map +0 -1
- package/lib/widget/meta.js +0 -8
- package/lib/widget/meta.js.map +0 -1
- package/lib/widget/multi-widget.js +0 -437
- package/lib/widget/multi-widget.js.map +0 -1
- package/lib/widget/style.js +0 -204
- package/lib/widget/style.js.map +0 -1
- package/payment-source-widget.d.ts +0 -1
- package/payment-source-widget.js +0 -1
- package/tslint.json +0 -129
- package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
- package/typings/globals/jasmine/index.d.ts +0 -576
- package/typings/globals/jasmine-ajax/index.d.ts +0 -83
- package/typings/globals/jquery/index.d.ts +0 -3759
- package/typings/index.d.ts +0 -4
- package/vault-display-widget.d.ts +0 -1
- package/vault-display-widget.js +0 -1
- package/vendors/zipmoney.d.ts +0 -18
- package/vendors/zipmoney.js +0 -2
- package/widget.d.ts +0 -1
- package/widget.js +0 -1
package/slate.md
CHANGED
|
@@ -16,6 +16,10 @@ Also you will need added gateway ([see API Reference by gateway](https://docs.pa
|
|
|
16
16
|
|
|
17
17
|
## Get started
|
|
18
18
|
|
|
19
|
+
The Client SDK ships in JavaScript ES6 (EcmaScript 2015) in three different
|
|
20
|
+
formats (CJS, ESM and UMD) along with respective TypeScript declarations. Below,
|
|
21
|
+
we exemplify how to import each format.
|
|
22
|
+
|
|
19
23
|
### Download from CDN
|
|
20
24
|
|
|
21
25
|
```html
|
|
@@ -25,77 +29,73 @@ Also you will need added gateway ([see API Reference by gateway](https://docs.pa
|
|
|
25
29
|
</script>
|
|
26
30
|
```
|
|
27
31
|
|
|
28
|
-
You should begin by including the library in your page.
|
|
29
|
-
|
|
30
|
-
Add this script tag to your page to get started with with the url below:
|
|
31
|
-
|
|
32
|
-
*Compressed version for production*
|
|
33
|
-
`https://widget.paydock.com/sdk/latest/widget.umd.min.js`
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
For browser environments, you can import the Client SDK directly from our CDN to
|
|
34
|
+
your project's HTML. To accomplish this, include the Client SDK in your page
|
|
35
|
+
using one and only of the two script tags below. After this step you will be
|
|
36
|
+
able to access the Client SDK features via the global variable `paydock`.
|
|
37
37
|
|
|
38
|
+
For production we recommend using the compressed version (`.min.js`) since
|
|
39
|
+
it will result in faster loading times for your end users.
|
|
38
40
|
|
|
41
|
+
- *Compressed version for production: `https://widget.paydock.com/sdk/latest/widget.umd.min.js`*
|
|
39
42
|
|
|
43
|
+
- *Full version for development and debug: `https://widget.paydock.com/sdk/latest/widget.umd.js`*
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
You may download the production version of the Client SDK scripts [here][min],
|
|
46
|
+
and, the development version [here][max].
|
|
42
47
|
|
|
43
48
|
[min]: https://widget.paydock.com/sdk/latest/widget.umd.min.js
|
|
44
49
|
[max]: https://widget.paydock.com/sdk/latest/widget.umd.js
|
|
45
50
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Also for more advanced use, the library has [UMD](https://github.com/umdjs/umd) format, thus can be used in requireJs, webpack, etc.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
For more advanced use-cases, the library has [UMD](https://github.com/umdjs/umd)
|
|
52
|
+
format that can be used in RequireJS, Webpack, etc.
|
|
59
53
|
|
|
60
54
|
|
|
61
55
|
### With package manager
|
|
62
56
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
import { HtmlWidget } from '@paydock/client-sdk/widget';
|
|
68
|
-
|
|
69
|
-
let widget = new HtmlWidget('#selector', 'publicKey', 'gatewayId');
|
|
57
|
+
```cjs
|
|
58
|
+
// module import - CommonJS/Node projects ✅
|
|
59
|
+
const paydock = require('@paydock/client-sdk')
|
|
60
|
+
const api = new paydock.Api('publicKey');
|
|
70
61
|
```
|
|
71
62
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
var widget = new paydock.HtmlWidget('#tag', 'publicKey', 'gatewayId');
|
|
77
|
-
</script>
|
|
63
|
+
```mjs
|
|
64
|
+
// named import - ESM projects or TypeScript projects ✅
|
|
65
|
+
import { HtmlWidget } from '@paydock/client-sdk'
|
|
66
|
+
const widget = new HtmlWidget('#selector', 'publicKey', 'gatewayId');
|
|
78
67
|
```
|
|
79
68
|
|
|
69
|
+
```mjs
|
|
70
|
+
// namespaced import - ESM projects or TypeScript projects ✅
|
|
71
|
+
import * as Paydock from '@paydock/client-sdk'
|
|
72
|
+
const widget = new Paydock.HtmlWidget('#selector', 'publicKey', 'gatewayId');
|
|
73
|
+
```
|
|
80
74
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
`@paydock/client-sdk/widget`
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Also can use UMD module (global visibility, see above)
|
|
92
|
-
|
|
93
|
-
`@paydock/client-sdk/bundles/widget.umd.js`
|
|
75
|
+
```js
|
|
76
|
+
// default import - We do not provide default exports. They are handled differently by different tools!
|
|
77
|
+
❌
|
|
78
|
+
import paydock from '@paydock/client-sdk'
|
|
79
|
+
>>> "Uncaught SyntaxError: The requested module does not provide an export named 'default'"
|
|
80
|
+
```
|
|
94
81
|
|
|
95
|
-
`@paydock/client-sdk/bundles/widget.umd.min.js`
|
|
96
82
|
|
|
83
|
+
Our NPM package is compatible with all package managers (e.g., `npm`, `yarn`,
|
|
84
|
+
`pnpm`, `bun`). Using `npm` the following command would add the Client SDK as a
|
|
85
|
+
production dependency.
|
|
97
86
|
|
|
87
|
+
```bash
|
|
88
|
+
npm install @paydock/client-sdk
|
|
89
|
+
```
|
|
98
90
|
|
|
91
|
+
After installation is complete, if you are developing in NodeJS environments or
|
|
92
|
+
using tools that expect your JavaScript code to be in CJS format (e.g., Jest,
|
|
93
|
+
Karma, RequireJS, Webpack), you can import the Client SDK using CommonJS modules.
|
|
94
|
+
For these environments the UMD format (`@paydock/client-sdk/bundles/widget.umd.js`)
|
|
95
|
+
can also be used as a fallback. Alternatively, in case you are developing in
|
|
96
|
+
projects that have access to modern bundlers such as Vite or others (e.g., SPA
|
|
97
|
+
libs or SSR Metaframeworks), you can import the Client SDK features using ESM
|
|
98
|
+
through named imports or namespaced imports.
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
## Widget
|
|
@@ -122,11 +122,11 @@ var widget = new paydock.HtmlWidget('#widget', 'publicKey');
|
|
|
122
122
|
widget.load();
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
```javascript
|
|
125
|
+
```javascript
|
|
126
126
|
// ES2015 | TypeScript
|
|
127
127
|
|
|
128
|
-
import { HtmlWidget } from '@paydock/client-sdk
|
|
129
|
-
|
|
128
|
+
import { HtmlWidget } from '@paydock/client-sdk';
|
|
129
|
+
|
|
130
130
|
var widget = new HtmlWidget('#widget', 'publicKey');
|
|
131
131
|
widget.load();
|
|
132
132
|
```
|
|
@@ -134,7 +134,7 @@ widget.load();
|
|
|
134
134
|
Then write only need 2 lines of code in js to initialize widget
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
### Full example
|
|
137
|
+
### Full example
|
|
138
138
|
|
|
139
139
|
```html
|
|
140
140
|
<!DOCTYPE html>
|
|
@@ -197,9 +197,9 @@ widget.setFormFields(['phone', 'email']); // add additional fields for form of w
|
|
|
197
197
|
widget.setSupportedCardIcons(['mastercard', 'visa']); // add icons of supported card types
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
This example shows how you can use a lot of other methods to settings your form
|
|
200
|
+
This example shows how you can use a lot of other methods to settings your form
|
|
201
201
|
|
|
202
|
-
### Full example
|
|
202
|
+
### Full example
|
|
203
203
|
|
|
204
204
|
```html
|
|
205
205
|
<!DOCTYPE html>
|
|
@@ -220,12 +220,12 @@ This example shows how you can use a lot of other methods to settings your form
|
|
|
220
220
|
<script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
|
|
221
221
|
<script>
|
|
222
222
|
var widget = new paydock.HtmlWidget('#widget', 'publicKey', 'gatewayId');
|
|
223
|
-
|
|
223
|
+
|
|
224
224
|
widget.setSupportedCardIcons(['mastercard', 'visa']);
|
|
225
225
|
widget.setFormFields(['phone', 'email']);
|
|
226
226
|
widget.setRefId('custom-ref-id');
|
|
227
227
|
widget.onFinishInsert('input[name="payment_source_token"]', 'payment_source');z
|
|
228
|
-
|
|
228
|
+
|
|
229
229
|
widget.load();
|
|
230
230
|
</script>
|
|
231
231
|
</script>
|
|
@@ -262,10 +262,10 @@ var list = new paydock.HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken
|
|
|
262
262
|
list.load();
|
|
263
263
|
```
|
|
264
264
|
|
|
265
|
-
```javascript
|
|
265
|
+
```javascript
|
|
266
266
|
// ES2015 | TypeScript
|
|
267
267
|
|
|
268
|
-
import { HtmlPaymentSourceWidget } from '@paydock/client-sdk
|
|
268
|
+
import { HtmlPaymentSourceWidget } from '@paydock/client-sdk';
|
|
269
269
|
|
|
270
270
|
var list = new HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken');
|
|
271
271
|
list.load();
|
|
@@ -392,7 +392,7 @@ You must create a button to turn it into checkout-button
|
|
|
392
392
|
var button = new paydock.PaypalCheckoutButton('#button', 'publicKey', 'gatewayId');
|
|
393
393
|
```
|
|
394
394
|
|
|
395
|
-
```javascript
|
|
395
|
+
```javascript
|
|
396
396
|
// ES2015 | TypeScript
|
|
397
397
|
|
|
398
398
|
|
|
@@ -622,11 +622,11 @@ This wrapper helps you to work with paydock api emdpoints
|
|
|
622
622
|
var browserDetails = await new paydock.Api('publicKey').setEnv('env').getBrowserDetails();
|
|
623
623
|
```
|
|
624
624
|
|
|
625
|
-
```javascript
|
|
625
|
+
```javascript
|
|
626
626
|
// ES2015 | TypeScript
|
|
627
627
|
|
|
628
|
-
import { Api } from '@paydock/client-sdk
|
|
629
|
-
|
|
628
|
+
import { Api } from '@paydock/client-sdk';
|
|
629
|
+
|
|
630
630
|
var browserDetails = await new paydock.Api('publicKey').setEnv('env').getBrowserDetails();
|
|
631
631
|
```
|
|
632
632
|
|
|
@@ -639,11 +639,11 @@ var response = await new paydock.Api('publicKey').setEnv('env').charge().preAuth
|
|
|
639
639
|
});
|
|
640
640
|
```
|
|
641
641
|
|
|
642
|
-
```javascript
|
|
642
|
+
```javascript
|
|
643
643
|
// ES2015 | TypeScript
|
|
644
644
|
|
|
645
|
-
import { Api } from '@paydock/client-sdk
|
|
646
|
-
|
|
645
|
+
import { Api } from '@paydock/client-sdk';
|
|
646
|
+
|
|
647
647
|
var response = await new Api('publicKey').setEnv('env').charge().preAuth({
|
|
648
648
|
amount: 100,
|
|
649
649
|
currency: 'AUD',
|
|
@@ -653,7 +653,7 @@ var response = await new Api('publicKey').setEnv('env').charge().preAuth({
|
|
|
653
653
|
|
|
654
654
|
Then write only need 2 lines of code in js to make request
|
|
655
655
|
|
|
656
|
-
### Initialization full example
|
|
656
|
+
### Initialization full example
|
|
657
657
|
|
|
658
658
|
```html
|
|
659
659
|
<!DOCTYPE html>
|
|
@@ -700,10 +700,10 @@ var canvas3ds = new paydock.Canvas3ds('#widget', 'token');
|
|
|
700
700
|
canvas3ds.load();
|
|
701
701
|
```
|
|
702
702
|
|
|
703
|
-
```javascript
|
|
703
|
+
```javascript
|
|
704
704
|
// ES2015 | TypeScript
|
|
705
705
|
|
|
706
|
-
import { Canvas3ds } from '@paydock/client-sdk
|
|
706
|
+
import { Canvas3ds } from '@paydock/client-sdk';
|
|
707
707
|
|
|
708
708
|
var list = new Canvas3ds('#widget', 'token');
|
|
709
709
|
list.load();
|
|
@@ -924,7 +924,7 @@ After you initialized the standalone 3ds charge via `v1/charges/standalone-3ds`
|
|
|
924
924
|
## Vault Display Widget
|
|
925
925
|
You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#vault-display-widget)
|
|
926
926
|
|
|
927
|
-
The vault display form allows viewing card number and CVV. The form can be customised according to your needs.
|
|
927
|
+
The vault display form allows viewing card number and CVV. The form can be customised according to your needs.
|
|
928
928
|
You can set styles as well as subscribe to widget events that help monitor user’s actions in real time.
|
|
929
929
|
|
|
930
930
|
## Vault Display Widget simple example
|
|
@@ -944,18 +944,18 @@ var widget = new paydock.VaultDisplayWidget('#widget', 'token');
|
|
|
944
944
|
widget.load();
|
|
945
945
|
```
|
|
946
946
|
|
|
947
|
-
```javascript
|
|
947
|
+
```javascript
|
|
948
948
|
// ES2015 | TypeScript
|
|
949
949
|
|
|
950
|
-
import { VaultDisplayWidget } from '@paydock/client-sdk
|
|
951
|
-
|
|
950
|
+
import { VaultDisplayWidget } from '@paydock/client-sdk';
|
|
951
|
+
|
|
952
952
|
var widget = new VaultDisplayWidget('#widget', 'token');
|
|
953
953
|
widget.load();
|
|
954
954
|
```
|
|
955
955
|
|
|
956
956
|
Then write only need 2 lines of code in js to initialize widget
|
|
957
957
|
|
|
958
|
-
### Full example
|
|
958
|
+
### Full example
|
|
959
959
|
|
|
960
960
|
```html
|
|
961
961
|
<!DOCTYPE html>
|
|
@@ -966,9 +966,9 @@ Then write only need 2 lines of code in js to initialize widget
|
|
|
966
966
|
<style>iframe {border: 0;width: 100%;height: 300px;}</style>
|
|
967
967
|
</head>
|
|
968
968
|
<body>
|
|
969
|
-
|
|
969
|
+
|
|
970
970
|
<div id="widget"></div>
|
|
971
|
-
|
|
971
|
+
|
|
972
972
|
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
973
973
|
<script>
|
|
974
974
|
var widget = new paydock.VaultDisplayWidget('#widget', 'token');
|
|
@@ -1006,9 +1006,9 @@ widget.setStyles({
|
|
|
1006
1006
|
});
|
|
1007
1007
|
```
|
|
1008
1008
|
|
|
1009
|
-
This example shows how you can use a lot of other methods to settings your form
|
|
1009
|
+
This example shows how you can use a lot of other methods to settings your form
|
|
1010
1010
|
|
|
1011
|
-
### Full example
|
|
1011
|
+
### Full example
|
|
1012
1012
|
|
|
1013
1013
|
```html
|
|
1014
1014
|
<!DOCTYPE html>
|
|
@@ -1019,27 +1019,27 @@ This example shows how you can use a lot of other methods to settings your form
|
|
|
1019
1019
|
<style>iframe {border: 0;width: 40%;height: 450px;}</style>
|
|
1020
1020
|
</head>
|
|
1021
1021
|
<body>
|
|
1022
|
-
|
|
1022
|
+
|
|
1023
1023
|
<div id="widget"></div>
|
|
1024
|
-
|
|
1024
|
+
|
|
1025
1025
|
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
1026
1026
|
<script>
|
|
1027
1027
|
var widget = new paydock.VaultDisplayWidget('#widget', 'token');
|
|
1028
1028
|
|
|
1029
1029
|
widget.setEnv('sandbox');
|
|
1030
|
-
|
|
1030
|
+
|
|
1031
1031
|
widget.on('after_load', function (data) {
|
|
1032
1032
|
console.log(data);
|
|
1033
1033
|
});
|
|
1034
|
-
|
|
1034
|
+
|
|
1035
1035
|
widget.on('cvv_secure_code_requested', function (data) {
|
|
1036
1036
|
console.log(data);
|
|
1037
1037
|
});
|
|
1038
|
-
|
|
1038
|
+
|
|
1039
1039
|
widget.on('card_number_secure_code_requested', function (data) {
|
|
1040
1040
|
console.log(data);
|
|
1041
1041
|
});
|
|
1042
|
-
|
|
1042
|
+
|
|
1043
1043
|
widget.setStyles({
|
|
1044
1044
|
background_color: 'rgb(0, 0, 0)',
|
|
1045
1045
|
border_color: 'yellow',
|
|
@@ -1088,7 +1088,7 @@ let button = new paydock.WalletButtons(
|
|
|
1088
1088
|
button.load();
|
|
1089
1089
|
```
|
|
1090
1090
|
|
|
1091
|
-
```javascript
|
|
1091
|
+
```javascript
|
|
1092
1092
|
// ES2015 | TypeScript
|
|
1093
1093
|
import { WalletButtons } from '@paydock/client-sdk';
|
|
1094
1094
|
|
|
@@ -1103,7 +1103,7 @@ var button = new WalletButtons(
|
|
|
1103
1103
|
button.load();
|
|
1104
1104
|
```
|
|
1105
1105
|
|
|
1106
|
-
Flypay
|
|
1106
|
+
Flypay and Paypal wallets do not require any meta sent to the wallet, so the following is enough for initialization:
|
|
1107
1107
|
```javascript
|
|
1108
1108
|
let button = new paydock.WalletButtons(
|
|
1109
1109
|
"#widget",
|
|
@@ -1113,7 +1113,7 @@ let button = new paydock.WalletButtons(
|
|
|
1113
1113
|
button.load();
|
|
1114
1114
|
```
|
|
1115
1115
|
|
|
1116
|
-
```javascript
|
|
1116
|
+
```javascript
|
|
1117
1117
|
// ES2015 | TypeScript
|
|
1118
1118
|
import { WalletButtons } from '@paydock/client-sdk';
|
|
1119
1119
|
|
|
@@ -1137,7 +1137,7 @@ let button = new paydock.WalletButtons(
|
|
|
1137
1137
|
button.load();
|
|
1138
1138
|
```
|
|
1139
1139
|
|
|
1140
|
-
```javascript
|
|
1140
|
+
```javascript
|
|
1141
1141
|
// ES2015 | TypeScript
|
|
1142
1142
|
import { WalletButtons } from '@paydock/client-sdk';
|
|
1143
1143
|
|
|
@@ -1151,6 +1151,32 @@ var button = new WalletButtons(
|
|
|
1151
1151
|
button.load();
|
|
1152
1152
|
```
|
|
1153
1153
|
|
|
1154
|
+
For Flypay v2 wallet, the client_id is required:
|
|
1155
|
+
```javascript
|
|
1156
|
+
let button = new paydock.WalletButtons(
|
|
1157
|
+
"#widget",
|
|
1158
|
+
token,
|
|
1159
|
+
{
|
|
1160
|
+
client_id: "client_id",
|
|
1161
|
+
}
|
|
1162
|
+
);
|
|
1163
|
+
button.load();
|
|
1164
|
+
```
|
|
1165
|
+
|
|
1166
|
+
```javascript
|
|
1167
|
+
// ES2015 | TypeScript
|
|
1168
|
+
import { WalletButtons } from '@paydock/client-sdk';
|
|
1169
|
+
|
|
1170
|
+
var button = new WalletButtons(
|
|
1171
|
+
'#widget',
|
|
1172
|
+
token,
|
|
1173
|
+
{
|
|
1174
|
+
client_id: "client_id",
|
|
1175
|
+
}
|
|
1176
|
+
);
|
|
1177
|
+
button.load();
|
|
1178
|
+
```
|
|
1179
|
+
|
|
1154
1180
|
### Setting environment
|
|
1155
1181
|
|
|
1156
1182
|
Current method can change environment. By default environment = sandbox.
|
|
@@ -1451,10 +1477,11 @@ _(Required `meta` fields: - . Optional `meta` fields: -)_
|
|
|
1451
1477
|
{
|
|
1452
1478
|
access_token: 'TOKEN',
|
|
1453
1479
|
refresh_token: 'TOKEN',
|
|
1480
|
+
client_id: 'CLIENT_ID',
|
|
1454
1481
|
},
|
|
1455
1482
|
);
|
|
1456
1483
|
button.setEnv('sandbox');
|
|
1457
|
-
button.onUnavailable(() => console.log("No wallet buttons available"));
|
|
1484
|
+
button.onUnavailable((data) => console.log("No wallet buttons available"));
|
|
1458
1485
|
button.onPaymentSuccessful((data) => console.log("The payment was successful"));
|
|
1459
1486
|
button.onPaymentError((data) => console.log("The payment was not successful"));
|
|
1460
1487
|
button.onAuthTokensChanged((data) => console.log('Authentication tokens changed'));
|
|
@@ -1664,54 +1691,57 @@ Similarly, for **GooglePay via MPGS** you can initialize the `PaymentMethodSpeci
|
|
|
1664
1691
|
</html>
|
|
1665
1692
|
```
|
|
1666
1693
|
|
|
1667
|
-
|
|
1668
|
-
You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#SRC).
|
|
1694
|
+
# Click To Pay
|
|
1669
1695
|
|
|
1670
|
-
|
|
1696
|
+
## Overview
|
|
1671
1697
|
|
|
1672
|
-
|
|
1698
|
+
Integrate with Click To Pay using Paydock's Click To Pay widget.
|
|
1699
|
+
For a full description of the methods and parameters, reference the [README file](https://www.npmjs.com/package/@paydock/client-sdk#ClickToPay).
|
|
1673
1700
|
|
|
1674
|
-
|
|
1701
|
+
## Click To Pay simple example
|
|
1702
|
+
|
|
1703
|
+
The following section provides an example use case and integration for the widget.
|
|
1704
|
+
|
|
1705
|
+
### Create a Container
|
|
1706
|
+
|
|
1707
|
+
To integrate the Click To Pay checkout iFrame, create a container in your HTML code. This container serves as the placeholder for the iFrame.
|
|
1675
1708
|
|
|
1676
1709
|
```html
|
|
1677
|
-
<div id="checkoutButton"></div>
|
|
1678
1710
|
<div id="checkoutIframe"></div>
|
|
1679
1711
|
```
|
|
1680
1712
|
|
|
1681
|
-
|
|
1713
|
+
### Initialize the Widget
|
|
1682
1714
|
|
|
1715
|
+
Use the following code to initialize your widget:
|
|
1683
1716
|
|
|
1684
|
-
### Initialization
|
|
1685
1717
|
```javascript
|
|
1686
|
-
var src = new paydock.
|
|
1687
|
-
"#checkoutButton",
|
|
1718
|
+
var src = new paydock.ClickToPay(
|
|
1688
1719
|
"#checkoutIframe",
|
|
1689
|
-
"
|
|
1720
|
+
"service_id",
|
|
1690
1721
|
"paydock_public_key_or_access_token",
|
|
1691
1722
|
{}, // meta
|
|
1692
1723
|
);
|
|
1693
1724
|
src.load();
|
|
1694
1725
|
```
|
|
1695
1726
|
|
|
1696
|
-
```javascript
|
|
1727
|
+
```javascript
|
|
1697
1728
|
// ES2015 | TypeScript
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
var src = new SRC(
|
|
1702
|
-
"#checkoutButton",
|
|
1729
|
+
import { ClickToPay } from '@paydock/client-sdk';
|
|
1730
|
+
var src = new ClickToPay(
|
|
1703
1731
|
"#checkoutIframe",
|
|
1704
|
-
"
|
|
1732
|
+
"service_id",
|
|
1705
1733
|
"paydock_public_key_or_access_token",
|
|
1706
1734
|
{}, // meta
|
|
1707
1735
|
);
|
|
1708
1736
|
src.load();
|
|
1709
1737
|
```
|
|
1710
1738
|
|
|
1711
|
-
*NOTE:*
|
|
1739
|
+
*NOTE:* Paydock recommends that you use a Paydock Access Token instead of a public key for security reasons in production environments. When creating your access token, you must enable the `Secure Remote Commerce` and add a whitelist for the domain of your checkout screen.
|
|
1712
1740
|
|
|
1713
1741
|
### Full example
|
|
1714
1742
|
|
|
1743
|
+
A full example of the container and the initialized widget is as follows:
|
|
1744
|
+
|
|
1715
1745
|
```html
|
|
1716
1746
|
<!DOCTYPE html>
|
|
1717
1747
|
<html lang="en">
|
|
@@ -1721,14 +1751,12 @@ src.load();
|
|
|
1721
1751
|
<style>iframe {border: 0;width: 40%;height: 300px;}</style>
|
|
1722
1752
|
</head>
|
|
1723
1753
|
<body>
|
|
1724
|
-
<div id="checkoutButton"></div>
|
|
1725
1754
|
<div id="checkoutIframe"></div>
|
|
1726
1755
|
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
1727
1756
|
<script>
|
|
1728
|
-
var src = new paydock.
|
|
1729
|
-
"#checkoutButton",
|
|
1757
|
+
var src = new paydock.ClickToPay(
|
|
1730
1758
|
"#checkoutIframe",
|
|
1731
|
-
"
|
|
1759
|
+
"service_id",
|
|
1732
1760
|
"paydock_public_key_or_access_token",
|
|
1733
1761
|
{},
|
|
1734
1762
|
);
|
|
@@ -1738,50 +1766,30 @@ src.load();
|
|
|
1738
1766
|
</html>
|
|
1739
1767
|
```
|
|
1740
1768
|
|
|
1769
|
+
## Customize your Click To Pay Checkout
|
|
1741
1770
|
|
|
1742
|
-
|
|
1771
|
+
The following is an advanced example that includes customization. You can use these methods to enhance your checkout experience.
|
|
1743
1772
|
|
|
1744
1773
|
### Settings
|
|
1745
1774
|
|
|
1746
1775
|
```javascript
|
|
1747
|
-
|
|
1748
|
-
src.setEnv('sandbox'); // set enviroment
|
|
1749
|
-
|
|
1750
|
-
src.hideButton(); // hide button
|
|
1751
|
-
|
|
1752
|
-
src.showButton(); // show button
|
|
1753
|
-
|
|
1776
|
+
src.setEnv('sandbox'); // set environment
|
|
1754
1777
|
src.hideCheckout(); // hide checkout iframe
|
|
1755
|
-
|
|
1756
1778
|
src.showCheckout(); // show checkout iframe
|
|
1757
|
-
|
|
1758
|
-
src.on('checkoutButtonLoaded', () => {
|
|
1759
|
-
console.log("Button loaded");
|
|
1760
|
-
});
|
|
1761
|
-
|
|
1762
|
-
src.on('checkoutButtonClicked', () => {
|
|
1763
|
-
console.log("Button clicked");
|
|
1764
|
-
});
|
|
1765
|
-
|
|
1766
1779
|
src.on('iframeLoaded', () => {
|
|
1767
1780
|
console.log("Initial iframe loaded");
|
|
1768
1781
|
});
|
|
1769
|
-
|
|
1770
1782
|
src.on('checkoutReady', () => {
|
|
1771
1783
|
console.log("Checkout ready to be used");
|
|
1772
1784
|
});
|
|
1773
|
-
|
|
1774
1785
|
src.on('checkoutCompleted', (token) => {
|
|
1775
1786
|
console.log(token);
|
|
1776
1787
|
});
|
|
1777
|
-
|
|
1778
1788
|
src.on('checkoutError', (error) => {
|
|
1779
1789
|
console.log(error);
|
|
1780
1790
|
});
|
|
1781
1791
|
```
|
|
1782
1792
|
|
|
1783
|
-
Here you can see how you can use this methods to customize your checkout experience
|
|
1784
|
-
|
|
1785
1793
|
### Full example
|
|
1786
1794
|
|
|
1787
1795
|
```html
|
|
@@ -1793,64 +1801,72 @@ Here you can see how you can use this methods to customize your checkout experie
|
|
|
1793
1801
|
<style>iframe {border: 0;width: 40%;height: 450px;}</style>
|
|
1794
1802
|
</head>
|
|
1795
1803
|
<body>
|
|
1796
|
-
<div id="checkoutButton"></div>
|
|
1797
1804
|
<div id="checkoutIframe"></div>
|
|
1798
1805
|
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
1799
1806
|
<script>
|
|
1800
|
-
var src = new paydock.
|
|
1801
|
-
"#checkoutButton",
|
|
1807
|
+
var src = new paydock.ClickToPay(
|
|
1802
1808
|
"#checkoutIframe",
|
|
1803
|
-
"
|
|
1809
|
+
"service_id",
|
|
1804
1810
|
"paydock_public_key_or_access_token",
|
|
1805
1811
|
{},
|
|
1806
1812
|
);
|
|
1807
|
-
|
|
1813
|
+
src.on('iframeLoaded', () => {
|
|
1814
|
+
console.log("Initial iframe loaded");
|
|
1815
|
+
});
|
|
1808
1816
|
src.on('checkoutReady', () => {
|
|
1809
1817
|
console.log("Checkout ready to be used");
|
|
1810
1818
|
});
|
|
1811
|
-
|
|
1812
1819
|
src.on('checkoutCompleted', (token) => {
|
|
1813
1820
|
console.log(token);
|
|
1814
1821
|
});
|
|
1822
|
+
src.on('checkoutError', (error) => {
|
|
1823
|
+
console.log(error);
|
|
1824
|
+
});
|
|
1815
1825
|
src.load();
|
|
1816
1826
|
</script>
|
|
1817
1827
|
</body>
|
|
1818
1828
|
</html>
|
|
1819
1829
|
```
|
|
1820
1830
|
|
|
1821
|
-
##
|
|
1822
|
-
### Shipping address:
|
|
1831
|
+
## Customize your billing address fields
|
|
1823
1832
|
|
|
1824
|
-
To customize
|
|
1833
|
+
To customize your billing address experience, Paydock uses a flag that manages whether a customer's billing address is mandatory.
|
|
1834
|
+
The options for this customization are NONE (default option), and POSTAL_COUNTRY or FULL.
|
|
1825
1835
|
|
|
1826
1836
|
```
|
|
1827
|
-
var src = new paydock.
|
|
1828
|
-
"#checkoutButton",
|
|
1837
|
+
var src = new paydock.ClickToPay(
|
|
1829
1838
|
"#checkoutIframe",
|
|
1830
|
-
"
|
|
1839
|
+
"service_id",
|
|
1831
1840
|
"paydock_public_key_or_access_token",
|
|
1832
1841
|
{
|
|
1833
1842
|
"dpa_transaction_options": {
|
|
1834
|
-
"
|
|
1843
|
+
"dpa_billing_preference": "FULL"
|
|
1835
1844
|
}
|
|
1836
1845
|
},
|
|
1837
1846
|
);
|
|
1838
1847
|
```
|
|
1839
1848
|
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1849
|
+
The Click To Pay checkout in the example requires the billing address from the customer, which is then returned as a part of the checkout data. The data is then stored and leveraged in the Paydock charge.
|
|
1850
|
+
You can also provide the billing address at the time of creating the charge. For example, if you have a different method for collecting the billing address, such as outside of the Click To Pay checkout, you can provide it alongside other information at the charge creation step:
|
|
1851
|
+
1. Disable the billing address in Paydock's Click To Pay widget.
|
|
1852
|
+
2. Get your One Time Token from the Click To Pay widget alongside other details that may have been collected outside the Click To Pay checkout as the shipping address.
|
|
1853
|
+
3. Send the billing address when creating the charge.
|
|
1843
1854
|
|
|
1844
1855
|
```
|
|
1845
1856
|
POST v1/charges
|
|
1846
|
-
|
|
1847
1857
|
{
|
|
1848
1858
|
"amount": "10.00",
|
|
1849
1859
|
"currency": "AUD",
|
|
1850
|
-
"token": "
|
|
1860
|
+
"token": "one_time_token",
|
|
1851
1861
|
"customer": {
|
|
1852
1862
|
"payment_source": {
|
|
1853
|
-
"gateway_id": "gateway_id"
|
|
1863
|
+
"gateway_id": "gateway_id",
|
|
1864
|
+
"address_line1": "address_line1",
|
|
1865
|
+
"address_line2": "address_line2",
|
|
1866
|
+
"address_city": "address_city",
|
|
1867
|
+
"address_postcode": "address_postcode",
|
|
1868
|
+
"address_state": "address_state",
|
|
1869
|
+
"address_country": "address_country"
|
|
1854
1870
|
}
|
|
1855
1871
|
},
|
|
1856
1872
|
"shipping": {
|
|
@@ -1865,60 +1881,80 @@ POST v1/charges
|
|
|
1865
1881
|
}
|
|
1866
1882
|
```
|
|
1867
1883
|
|
|
1868
|
-
|
|
1884
|
+
## How to customize accepted cards
|
|
1885
|
+
|
|
1886
|
+
You can send a flag `unaccepted_card_type` to block the usage of a specific card type. The available options are 'DEBIT' and 'CREDIT'.
|
|
1869
1887
|
|
|
1870
|
-
|
|
1888
|
+
### Example code
|
|
1889
|
+
|
|
1890
|
+
The following example demonstrates how to block the card:
|
|
1871
1891
|
|
|
1872
1892
|
```
|
|
1873
|
-
var src = new paydock.
|
|
1874
|
-
"#checkoutButton",
|
|
1893
|
+
var src = new paydock.ClickToPay(
|
|
1875
1894
|
"#checkoutIframe",
|
|
1876
|
-
"
|
|
1877
|
-
"
|
|
1895
|
+
"service_id",
|
|
1896
|
+
"paydock_public_key",
|
|
1878
1897
|
{
|
|
1879
|
-
|
|
1880
|
-
"email": "test@email.com",
|
|
1881
|
-
"first_name": "Name",
|
|
1882
|
-
"last_name": "Surname",
|
|
1883
|
-
"phone": {
|
|
1884
|
-
"country_code": "1",
|
|
1885
|
-
"phone": "2124567890"
|
|
1886
|
-
},
|
|
1887
|
-
"payment_source": {
|
|
1888
|
-
"address_line1": "Line 1",
|
|
1889
|
-
"address_line2": "Line 2",
|
|
1890
|
-
"address_city": "Miami",
|
|
1891
|
-
"address_postcode": "33126",
|
|
1892
|
-
"address_state": "FL",
|
|
1893
|
-
"address_country": "US"
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1898
|
+
unaccepted_card_type: 'DEBIT'
|
|
1896
1899
|
},
|
|
1897
1900
|
);
|
|
1898
1901
|
```
|
|
1899
1902
|
|
|
1900
|
-
##
|
|
1903
|
+
## Personalize the Style
|
|
1901
1904
|
|
|
1902
|
-
|
|
1905
|
+
Customize the look and feel of your UI. The following example demonstrates changes in the styling of the buttons.
|
|
1903
1906
|
|
|
1904
1907
|
### Example code
|
|
1905
1908
|
|
|
1906
1909
|
```
|
|
1907
|
-
var src = new paydock.
|
|
1908
|
-
"#checkoutButton",
|
|
1910
|
+
var src = new paydock.ClickToPay(
|
|
1909
1911
|
"#checkoutIframe",
|
|
1910
|
-
"
|
|
1912
|
+
"service_id",
|
|
1911
1913
|
"paydock_public_key",
|
|
1914
|
+
{},
|
|
1912
1915
|
);
|
|
1916
|
+
src.setStyles({
|
|
1917
|
+
enable_src_popup: true,
|
|
1918
|
+
primary_button_color: 'red',
|
|
1919
|
+
secondary_button_color: 'red',
|
|
1920
|
+
primary_button_text_color: 'red',
|
|
1921
|
+
secondary_button_text_color: 'red',
|
|
1922
|
+
font_family: 'Arial',
|
|
1923
|
+
});
|
|
1924
|
+
```
|
|
1913
1925
|
|
|
1914
|
-
|
|
1926
|
+
## Recognition token
|
|
1915
1927
|
|
|
1916
|
-
|
|
1917
|
-
|
|
1928
|
+
In order to store user information for further payments, click to pay provides a recognition token that is used to load user information.
|
|
1929
|
+
If you already have a recognitionToken stored, you can use it in meta to load the user information.
|
|
1918
1930
|
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1931
|
+
### Storage suggestions
|
|
1932
|
+
Merchant can store the tokens by dropping the token as a 1st party cookie in the browser, and must ensure to manage all the security aspects around dropping/storing the cookie by following the security standards:
|
|
1933
|
+
|
|
1934
|
+
- `Expiration Date=` cookie should be set to expire at a max 180 days
|
|
1935
|
+
- `Secure` flag
|
|
1936
|
+
- `httpOnly` flag
|
|
1937
|
+
- `sameSite=` strict
|
|
1938
|
+
- `Value=` recognition token JWT
|
|
1939
|
+
|
|
1940
|
+
### Example code
|
|
1941
|
+
|
|
1942
|
+
```javascript
|
|
1943
|
+
var src = new paydock.ClickToPay(
|
|
1944
|
+
"#checkoutIframe",
|
|
1945
|
+
"service_id",
|
|
1946
|
+
"paydock_public_key",
|
|
1947
|
+
{
|
|
1948
|
+
"recognition_token": "eyJraWQiOiIy...",
|
|
1949
|
+
},
|
|
1950
|
+
);
|
|
1951
|
+
src.on('recognitionTokenRequested', (data) => {
|
|
1952
|
+
console.log('Recognition token was found: ' + data.data.recognitionToken);
|
|
1953
|
+
// Add recognition token to your store
|
|
1954
|
+
});
|
|
1955
|
+
|
|
1956
|
+
src.on('recognitionTokenDropped', () => {
|
|
1957
|
+
console.log('Recognition token was droped');
|
|
1958
|
+
// Delete recognition token from your store
|
|
1959
|
+
});
|
|
1960
|
+
```
|